
- I know that the exe files have the entry point pointer is at 0x10.
- UPX decompression routine starts at 0x800, followed by the compressed exe data and is 2048 aligned.
- The combined exe files are smaller that the original game exe.
- I can do a jump to an offset when I exit the loader, I try to find the UPX decompression routine, but I think my loader trash the compressed data of the main exe

What I don't know:

- If exe files have the size somewhere in the header and when the PS calls some LoadExecutable function a parameter of the size of the exe is passed.
- How to load the main exe when I exit the loader