//i want to get the values of message box from the stack back to c++, can someone plz help
Code:#include <iostream> #include <windows.h> using namespace std; int main() { char *arg1Address; __asm { mov eax, [ebp+4] mov arg1Address , eax } MessageBox(NULL,"Asm","",0); //0040104A |. 6A 00 PUSH 0 ; /Style = MB_OK|MB_APPLMODAL //0040104C |. 68 20104300 PUSH ffff.00431020 ; |Title = "" //00401051 |. 68 1C104300 PUSH ffff.0043101C ; |Text = "Asm" //00401056 |. 6A 00 PUSH 0 ; |hOwner = NULL //00401058 |. FF15 D4B24300 CALL DWORD PTR DS:[<&USER32.MessageBoxA>] ; \MessageBoxA return 0; }