https://bugs.winehq.org/show_bug.cgi?id=43464
--- Comment #14 from Peteris Krisjanis pecisk@gmail.com --- That's impressive investigative work Dmitry. You have tried to use Windows winsock right? And it didn't help?
I have a feeling that problem is there. It seems process of encrypting that request and sending it should be isolated enough to be valid.
Maybe embedded OpenSSL throws a fit?