← Back to DevelopmentAging & Mixing viewer.dll generatorProgramsClan filesInternet Information ServiceOllyDbg tutorialsMiscellaneousSkinsLinks / Files


← Back to Miscellaneous
This is an easy way to prevent xtrap from closing your game.

Once you've opened your game in Olly, search for all the intermodular calls :

Sort the results by destination and scroll down find kernel32.TerminateProcess :

Check each of the TerminateProcess until you find this structure (it was the second one for me) :

OllyDbg - Client side

005A3FF0  /$  6A 00           PUSH 0                                                  ; /ExitCode = 0
005A3FF2  |.  FF15 C0415C00   CALL DWORD PTR DS:[<&KERNEL32.GetCurrentProcess>]       ; |[KERNEL32.GetCurrentProcess
005A3FF8  |.  50              PUSH EAX                                                ; |hProcess
005A3FF9  |.  FF15 08415C00   CALL DWORD PTR DS:[<&KERNEL32.TerminateProcess>]        ; \KERNEL32.TerminateProcess
005A3FFF  \.  C3              RETN

Find all the references to that procedure (with Ctrl + R with the PUSH 0 line highlighted) :

NOP the CALLs.