I would suggest searching YouTube for QB King77
He has posted many videos that I have personally used to do things like gain s-off, relock boot loader, flash factory RUU back to stock and then the unlock via HTC dev site with links to all you would need. All you need with his videos is a little patience, they are on the money..
Best of luck and DONT WIPE INTERNAL STORAGE, no matter what.
Sent from my HTCONE using Tapatalk