Sorry to hear about those problems.
On the Adobe CS 5 issue however, if you owned a legit copy of that program you should have the Product key that came either on the install CD/DVD disc or the retail packaging it came in, and you should still be able to reinstall it in Win8.1.
If you purchased it via a website and download, you can look for the product key in the confirmation E-mail that they would have sent to you at the time of purchase. Either of these options would certainly let you reinstall it on your original W8.1 OS.
Now if you lost the install media (CD/DVD disc), the retail packaging containing the product key, or the E-mail containing your product key, or some combination of all 3; good news!!
You still may be able to get it back by calling Adobe and talking to Customer Support and explaining your situation that an OS upgrade crashed your computer, and you have since lost your install media and or E-mailed product key. They can look up your records in their database and ask you supply some personal ID verification questions, and the number of the credit card you purchased the software from and the place of purchase and approximate date. You know you got it around 2012, so that will help them narrow it down, even if you purchased it from an online distributor or retailer. Worse case, they might charge you
$30-$40 to send you out replacement media (Disc or USB); that certainly would be less than the several hundred dollars that program would have cost you.
My largest customer uses the CS3 version and it cost over $600. This isn't a zero-cost fix, but it's cheaper than having to buy the program all over again!
In the case that someone gave you a copy of CS5 from a company or an educational institution or non-profit, and you lost the media, product key, etc. you are simply out of luck, and that's the risk you take when running software that you don't actually own.
Of course you could go back to the person you originally got the CS5 from and explain your situation, maybe they'll give you a replacement copy and key, perhaps even a newer version!
Hope this helps,
BBJ