
/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* WARNING: Unknown calling convention */

void add_unwind_protect(Function *cleanup,char *arg)

{
  int iVar1;
  
  iVar1 = interrupt_immediately;
  interrupt_immediately = 0;
  add_unwind_protect_internal(cleanup,arg);
  interrupt_immediately = iVar1;
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

void add_unwind_protect(void)

{
  undefined4 uVar1;
  
  uVar1 = interrupt_immediately;
  interrupt_immediately = 0;
  FUN_0007d5c0();
  interrupt_immediately = uVar1;
  return;
}


CALL 0x00032ddd
ADD EAX,0xcc56b
PUSH ESI
PUSH EBX
SUB ESP,0x4
MOV EDX,dword ptr [ESP + 0x14]
LEA EBX,[EAX + 0x72bc]
MOV EAX,dword ptr [ESP + 0x10]
MOV ESI,dword ptr [EBX]
MOV dword ptr [EBX],0x0
CALL 0x0007d5c0
MOV dword ptr [EBX],ESI
ADD ESP,0x4
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nvoid add_unwind_protect(void)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = interrupt_immediately;\n  interrupt_immediately = 0;\n  FUN_0007d5c0();\n  interrupt_immediately = uVar1;\n  return;\n}\n\n" comment (function_definition "void add_unwind_protect(void)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = interrupt_immediately;\n  interrupt_immediately = 0;\n  FUN_0007d5c0();\n  interrupt_immediately = uVar1;\n  return;\n}" primitive_type (function_declarator "add_unwind_protect(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  uVar1 = interrupt_immediately;\n  interrupt_immediately = 0;\n  FUN_0007d5c0();\n  interrupt_immediately = uVar1;\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = interrupt_immediately;" (assignment_expression "uVar1 = interrupt_immediately" identifier = identifier) ;) (expression_statement "interrupt_immediately = 0;" (assignment_expression "interrupt_immediately = 0" identifier = number_literal) ;) (expression_statement "FUN_0007d5c0();" (call_expression "FUN_0007d5c0()" identifier (argument_list "()" ( ))) ;) (expression_statement "interrupt_immediately = uVar1;" (assignment_expression "interrupt_immediately = uVar1" identifier = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n/* WARNING: Unknown calling convention */\n\nvoid add_unwind_protect(Function *cleanup,char *arg)\n\n{\n  int iVar1;\n  \n  iVar1 = interrupt_immediately;\n  interrupt_immediately = 0;\n  add_unwind_protect_internal(cleanup,arg);\n  interrupt_immediately = iVar1;\n  return;\n}\n\n" comment comment (function_definition "void add_unwind_protect(Function *cleanup,char *arg)\n\n{\n  int iVar1;\n  \n  iVar1 = interrupt_immediately;\n  interrupt_immediately = 0;\n  add_unwind_protect_internal(cleanup,arg);\n  interrupt_immediately = iVar1;\n  return;\n}" primitive_type (function_declarator "add_unwind_protect(Function *cleanup,char *arg)" identifier (parameter_list "(Function *cleanup,char *arg)" ( (parameter_declaration "Function *cleanup" type_identifier (pointer_declarator "*cleanup" * identifier)) , (parameter_declaration "char *arg" primitive_type (pointer_declarator "*arg" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  iVar1 = interrupt_immediately;\n  interrupt_immediately = 0;\n  add_unwind_protect_internal(cleanup,arg);\n  interrupt_immediately = iVar1;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (expression_statement "iVar1 = interrupt_immediately;" (assignment_expression "iVar1 = interrupt_immediately" identifier = identifier) ;) (expression_statement "interrupt_immediately = 0;" (assignment_expression "interrupt_immediately = 0" identifier = number_literal) ;) (expression_statement "add_unwind_protect_internal(cleanup,arg);" (call_expression "add_unwind_protect_internal(cleanup,arg)" identifier (argument_list "(cleanup,arg)" ( identifier , identifier ))) ;) (expression_statement "interrupt_immediately = iVar1;" (assignment_expression "interrupt_immediately = iVar1" identifier = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void add_unwind_protect(void)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = interrupt_immediately;\n  interrupt_immediately = 0;\n  FUN_0007d5c0();\n  interrupt_immediately = uVar1;\n  return;\n}\n\n" (function_definition "void add_unwind_protect(void)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = interrupt_immediately;\n  interrupt_immediately = 0;\n  FUN_0007d5c0();\n  interrupt_immediately = uVar1;\n  return;\n}" primitive_type (function_declarator "add_unwind_protect(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  uVar1 = interrupt_immediately;\n  interrupt_immediately = 0;\n  FUN_0007d5c0();\n  interrupt_immediately = uVar1;\n  return;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = interrupt_immediately;" (assignment_expression "uVar1 = interrupt_immediately" identifier = identifier) ;) (expression_statement "interrupt_immediately = 0;" (assignment_expression "interrupt_immediately = 0" identifier = number_literal) ;) (expression_statement "FUN_0007d5c0();" (call_expression "FUN_0007d5c0()" identifier (argument_list "()" ( ))) ;) (expression_statement "interrupt_immediately = uVar1;" (assignment_expression "interrupt_immediately = uVar1" identifier = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (return_statement return ;) })))
(function_definition "void add_unwind_protect(void)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = interrupt_immediately;\n  interrupt_immediately = 0;\n  FUN_0007d5c0();\n  interrupt_immediately = uVar1;\n  return;\n}" (primitive_type "void") (function_declarator "add_unwind_protect(void)" (identifier "add_unwind_protect") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  \n  uVar1 = interrupt_immediately;\n  interrupt_immediately = 0;\n  FUN_0007d5c0();\n  interrupt_immediately = uVar1;\n  return;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (expression_statement "uVar1 = interrupt_immediately;" (assignment_expression "uVar1 = interrupt_immediately" (identifier "uVar1") (= "=") (identifier "interrupt_immediately")) (; ";")) (expression_statement "interrupt_immediately = 0;" (assignment_expression "interrupt_immediately = 0" (identifier "interrupt_immediately") (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_0007d5c0();" (call_expression "FUN_0007d5c0()" (identifier "FUN_0007d5c0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "interrupt_immediately = uVar1;" (assignment_expression "interrupt_immediately = uVar1" (identifier "interrupt_immediately") (= "=") (identifier "uVar1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* WARNING: Unknown calling convention */

void function_1(type_1 *cleanup,char *arg)

{
  int iVar1;
  
  iVar1 = interrupt_immediately;
  interrupt_immediately = 0;
  var_1(cleanup,arg);
  interrupt_immediately = iVar1;
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (return_statement))))

/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */

void MASKED(void)

{
  undefined4 uVar1;
  
  uVar1 = interrupt_immediately;
  interrupt_immediately = 0;
  FUN_0007d5c0();
  interrupt_immediately = uVar1;
  return;
}

