It looks like the problem is a Wine bug. It's trying to call a function that Wine doesn't have implemented, although it doesn't actually matter whether the function does anything. This function call is only occurring because of CODEX's Denuvo bypass, so legit copies work fine. In the comments of the WineHQ bug someone has posted a .patch file to stub the function out and allow it to run, but you'll have to apply it to the Wine source code and then build the Wine binaries again (I don't know how complicated the Wine build environment is but this should work if you can get it built).
All in all, a very rare issue that I haven't seen before. It's too bad none of the major Wine versions have picked up this stub .patch into their builds in the meantime.
More information on this issue can be found at the following site (in Russian, you'll need to translate): https://www.linux.org.ru/forum/games/16632052