http://bugs.winehq.org/show_bug.cgi?id=5024
--- Comment #29 from Erich Hoover ehoover@mines.edu 2007-10-19 02:09:28 --- Created an attachment (id=8653) --> (http://bugs.winehq.org/attachment.cgi?id=8653) Fix for WritePrivateProfileString
After looking at things in more depths I can see that some of the permissions are used in rather interesting ways. I believe the attached should do the trick for both fixing the original problem (provided you re-install Thief 3) and also work for all your test cases (which do actually seem to be rather extensive).