I've tried it before...
replacing you windows SAM file will help you but remember that all your account will be erased.
here is what I remember:
1. get your windows xp installer
2. go recovery console
3. from their you can copy SAM file form you CD/DVD installer to your HDD.
check the web for specific info