https://bugs.winehq.org/show_bug.cgi?id=50404
--- Comment #16 from Piotr Caban piotr.caban@gmail.com --- The problems I'm seeing in the logs are not related to the commit identified by regression test. I also don't see why using native msvcr120 affects the bug.
Sims 4 process is started with CreateProcess call with bInheritHandles==FALSE and CREATE_NEW_CONSOLE flag. I don't know what's the content of STARTUPINFO from the log. I've tested it with gui application and zeroed startup info. After that, on Windows, GetStdHandle returns NULL for all standard handles. On wine the same values as in parent process are returned but the handles are invalid.
In your logs GetStdHandle(STD_ERROR_HANDLE) returns 0x10 (this is copied from parent process). 0x10 happens to be used as current directory handle. Because of that it passes msvcrt handle validation and is used when writing to stderr. Later it errors on all write operations.