Yeah, I experienced this problem hardcore when trying to find an ebook I wanted to buy DRM-free. You search for that and you get a ton of PDF sharing sites. As it turned out, it was hard to find a legit link there because the publisher didn't offer any DRM free options, mind you.
But yeah, when I was looking for a proper way to purchase, all I found was pirate versions.