You probably won't be able to recover from a corrupted registry file. All you can try is to use the HD manufacturer's diagnostic utility and allow it to "repair" the HD if it finds errors, then run chkdsk /x on the drive and hope you can use the old profile after that.