i am a newbie in the world of RE ,

i start to explorer a main entry of a classic game from 90's and i start to see something confuse me as a newbie

this main entry function start with pushing stuff to the stack before it's prologue enter image description here

can someone explain why please .

1 Answer 1


It's saving registers that might be modified by the function. Notice that you can see assignments to all three of those registers throughout the function body. Also notice at the bottom of your screenshot that the values of the registers are restored by popping them right before the return statement, such that the calling function will have the same values for those registers after the call as they did before the call.

  • hi @RolfRolles thanks for the answer , i was thinking about the same .
    – 0x00001F
    Commented Mar 14, 2023 at 12:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.