
/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* std::set_new_handler(void (*)()) */

undefined4 std::set_new_handler(_func_void *param_1)

{
  undefined4 uVar1;
  
  uVar1 = ::(anonymous_namespace)::__new_handler;
  LOCK();
  ::(anonymous_namespace)::__new_handler = param_1;
  UNLOCK();
  return uVar1;
}



/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

undefined4 FUN_001e5270(undefined4 param_1)

{
  undefined4 uVar1;
  
  uVar1 = DAT_003962cc;
  LOCK();
  DAT_003962cc = param_1;
  UNLOCK();
  return uVar1;
}


CALL 0x00035975
ADD EDX,0x1a9d8b
MOV EAX,dword ptr [ESP + 0x4]
XCHG dword ptr [EDX + 0x72cc],EAX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */\n\nundefined4 FUN_001e5270(undefined4 param_1)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = DAT_003962cc;\n  LOCK();\n  DAT_003962cc = param_1;\n  UNLOCK();\n  return uVar1;\n}\n\n" comment (function_definition "undefined4 FUN_001e5270(undefined4 param_1)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = DAT_003962cc;\n  LOCK();\n  DAT_003962cc = param_1;\n  UNLOCK();\n  return uVar1;\n}" type_identifier (function_declarator "FUN_001e5270(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  uVar1 = DAT_003962cc;\n  LOCK();\n  DAT_003962cc = param_1;\n  UNLOCK();\n  return uVar1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = DAT_003962cc;" (assignment_expression "uVar1 = DAT_003962cc" identifier = identifier) ;) (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "DAT_003962cc = param_1;" (assignment_expression "DAT_003962cc = param_1" identifier = identifier) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */\n/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n/* std::set_new_handler(void (*)()) */\n\nundefined4 std::set_new_handler(_func_void *param_1)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = ::(anonymous_namespace)::__new_handler;\n  LOCK();\n  ::(anonymous_namespace)::__new_handler = param_1;\n  UNLOCK();\n  return uVar1;\n}\n\n" comment comment comment (function_definition "undefined4 std::set_new_handler(_func_void *param_1)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = ::(anonymous_namespace)::__new_handler;\n  LOCK();\n  ::(anonymous_namespace)::__new_handler = param_1;\n  UNLOCK();\n  return uVar1;\n}" type_identifier (ERROR "std::" identifier : :) (function_declarator "set_new_handler(_func_void *param_1)" identifier (parameter_list "(_func_void *param_1)" ( (parameter_declaration "_func_void *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  uVar1 = ::(anonymous_namespace)::__new_handler;\n  LOCK();\n  ::(anonymous_namespace)::__new_handler = param_1;\n  UNLOCK();\n  return uVar1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (labeled_statement "uVar1 = ::(anonymous_namespace)::__new_handler;" statement_identifier (ERROR "= ::(anonymous_namespace):" = : : (parenthesized_expression "(anonymous_namespace)" ( identifier )) :) : (expression_statement "__new_handler;" identifier ;)) (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (ERROR "::(" : : () (labeled_statement "anonymous_namespace)::__new_handler = param_1;" statement_identifier (ERROR "):" ) :) : (expression_statement "__new_handler = param_1;" (assignment_expression "__new_handler = param_1" identifier = identifier) ;)) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "undefined4 FUN_001e5270(undefined4 param_1)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = DAT_003962cc;\n  LOCK();\n  DAT_003962cc = param_1;\n  UNLOCK();\n  return uVar1;\n}\n\n" (function_definition "undefined4 FUN_001e5270(undefined4 param_1)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = DAT_003962cc;\n  LOCK();\n  DAT_003962cc = param_1;\n  UNLOCK();\n  return uVar1;\n}" type_identifier (function_declarator "FUN_001e5270(undefined4 param_1)" identifier (parameter_list "(undefined4 param_1)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  uVar1 = DAT_003962cc;\n  LOCK();\n  DAT_003962cc = param_1;\n  UNLOCK();\n  return uVar1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = DAT_003962cc;" (assignment_expression "uVar1 = DAT_003962cc" identifier = identifier) ;) (expression_statement "LOCK();" (call_expression "LOCK()" identifier (argument_list "()" ( ))) ;) (expression_statement "DAT_003962cc = param_1;" (assignment_expression "DAT_003962cc = param_1" identifier = identifier) ;) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" identifier (argument_list "()" ( ))) ;) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_001e5270(undefined4 param_1)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = DAT_003962cc;\n  LOCK();\n  DAT_003962cc = param_1;\n  UNLOCK();\n  return uVar1;\n}" (type_identifier "undefined4") (function_declarator "FUN_001e5270(undefined4 param_1)" (identifier "FUN_001e5270") (parameter_list "(undefined4 param_1)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  \n  uVar1 = DAT_003962cc;\n  LOCK();\n  DAT_003962cc = param_1;\n  UNLOCK();\n  return uVar1;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (expression_statement "uVar1 = DAT_003962cc;" (assignment_expression "uVar1 = DAT_003962cc" (identifier "uVar1") (= "=") (identifier "DAT_003962cc")) (; ";")) (expression_statement "LOCK();" (call_expression "LOCK()" (identifier "LOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "DAT_003962cc = param_1;" (assignment_expression "DAT_003962cc = param_1" (identifier "DAT_003962cc") (= "=") (identifier "param_1")) (; ";")) (expression_statement "UNLOCK();" (call_expression "UNLOCK()" (identifier "UNLOCK") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* std::set_new_handler(void (*)()) */

type_1 std::function_1(type_2 *param_1)

{
  type_1 uVar1;
  
  uVar1 = ::(anonymous_namespace)::__new_handler;
  var_1();
  ::(anonymous_namespace)::__new_handler = param_1;
  var_2();
  return uVar1;
}


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

/* WARNING: Function: __i686.get_pc_thunk.dx replaced with injection: get_pc_thunk_dx */

undefined4 MASKED(undefined4 param_1)

{
  undefined4 uVar1;
  
  uVar1 = DAT_003962cc;
  LOCK();
  DAT_003962cc = param_1;
  UNLOCK();
  return uVar1;
}

