AFAIK there is a bug (probably https://bugs.winehq.org//show_bug.cgi?id=55092) in the current implementation where the wow64 context does not alias the native context when the process is in emulation (wow64) mode. I attempted to fix this in https://gitlab.winehq.org/wine/wine/-/merge_requests/123, but it causes conflicts with this MR. I've not looked into this MR in details, but I was wondering if the bug has been taken into consideration.