Looks like your system is in pretty bad shape. I assume you have
your XP disk. If you don't, just borrow from a friend...
Try this:
Start > Run and type in regedit
Locate these key and delete the bolded ones:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Winsock
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Winsock2
Restart the PC. This step is a must, otherwise Windows can't repair
itself.
After the PC boots up, go to Start > Control Panel > Network
Connections
Right click on your connection and select Properties.
Click on the Install button.
Click Protocol, then click on
Add.
Click Have disk.
Copy and paste in C:\Windows\inf
You will see a list of protocols. Select Internet Protocol
(TCP/IP), then click OK.