My understanding is that Wine directly executes the machine code contained in a PE executable. Assuming this is correct, what happens if the machine code contains a system call, which would obviously not be understood by Linux? Does Wine somehow intercept them? If so, how exactly does it work?
I tried to find the answer in Wine's source code, but found it daunting. I couldn't even find the place where the machine code is actually executed.