title: Assembly- Calling function inside another i.e nested functions
body: <p><br>
  I try to call windows function inside my custom assembly function<br>
  The pseudocode would be something like:<br></p>
  
  <pre><code>MYFUNC
  PUSH EBP
  PUSH WINDOWSFUNCTIONPARAMETER
  CALL [IMPORTEDWINDOWSFUNCTION]
  POP EBP
  RET
  </code></pre>
  
  <p>So I know its safe to leave this like this if I call only one function inside,<br>
  because thie stack will be restored anyway.
  <br>
  The problem is- why can't i add esp, 0x04 after this? - The app crashes<br>
  Im not sure if i even need to do this but imo its safer to do it after function<br>
  calls, and somehow i cant get this working inside a function<br>
  I'm gratefull for any help :)<br></p>