https://bugs.winehq.org/show_bug.cgi?id=38601
--- Comment #3 from Bruno Jesus 00cpxxx@gmail.com --- Created attachment 51526 --> https://bugs.winehq.org/attachment.cgi?id=51526 test patch
This is a first attempt, it's not 100% accurate, specially because of the MS bug in the function. Can you please test?