Just place xlive.dll in the Rockstar Games\Grand Theft Auto IV directory and run the game normally (with or without crack)
Ryzen 5 5600, ASUS ROG STRIX B550-F GAMING WIFI II, Corsair Vengeance RGB RT 32GB 3600MHz C16, MSI RTX 5070 Ti Ventus 3X OC , Corsair RMx Series RM750x. AOC AGON AG324UX - 4K 144Hz 1ms