https://bugs.winehq.org/show_bug.cgi?id=48442
--- Comment #10 from Esme Povirk madewokherd@gmail.com --- It's too complex to point to just one place, but the most relevant parts are probably marshal.c and marshal-ilgen.c. You may find MONO_VERBOSE_METHOD=sprintf_s to be a useful tool, as it will show the output of the code generation process, as well as the function address which can be used to show disassembly if you have winedbg attached.