Sounds like you still have SP2 on your computer - you were fortunate that probably only the files or setting restored were not changed during SP2 upgrade. However, does it appear in you add/remove programs?
A couple of suggestions:-
1/ firstly get the SP2 on disk or download the full version from M$ site. We will use this to make a slipstream disk ie merge you XP CD with SP2 to make a new CD and if necessary reinstall SP2. here is a link on how to slipstream SP2 http://www.winsupersite.com/showcase/windowsxp_sp2_slipstream.asp
2/ Download "MS security analyser v1.2.2"
http://www.microsoft.com/technet/security/tools/mbsahome.mspx - this checks your system to see if all sp2 files are installed among other things.
3/ In future dont do a repair, there are many things you can do instead e.g. use the recover console or safe mode - if need help let me know.
Let me know how you go
Peter
My laptop was running on SP2. A few days ago, the windows hanged at "Starting Windows". I then tried to rectify it by repairing with the Windows CD Rom containing SP1. Thankfully, it worked. I was able to log in again and all my files were intact. However, how can I upgrade the SP1 to SP2? I went to the Windows download website and they detected that I already have SP2 in my laptop. Can someone please advise? Thanks.

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic