Here are a couple of links on how to convert to a legal copy. Of course you could just buy a copy from a retailer too.
Converting Pirated Windows XP Into a Legal Copy Genuine Microsoft Software Newegg.com - Microsoft Windows XP Home Edition SP3 English for System Builders 1 Pack CD - Operating Systems
It may not fix your issue without formatting the hard drive and doing a new install of the OS.