There are thousands of posts about repairing Windows XP so use google about...

"XP Repair Install" and "XP SFC SCANNOW" for starters.

The problem is that repair can be so time consuming that I tend to use the backup copy.
Bob