
/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* std::ios_base::_M_call_callbacks(std::ios_base::event) */

void __thiscall std::ios_base::_M_call_callbacks(ios_base *this,undefined4 param_2)

{
  undefined4 *puVar1;
  
  for (puVar1 = *(undefined4 **)(this + 0x18); puVar1 != (undefined4 *)0x0;
      puVar1 = (undefined4 *)*puVar1) {
                    /* try { // try from 0024422a to 0024422c has its CatchHandler @ 0024423e */
    (*(code *)puVar1[1])(param_2,this,puVar1[2]);
  }
  return;
}



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

void FUN_00244200(int param_1,undefined4 param_2)

{
  undefined4 *puVar1;
  
  for (puVar1 = *(undefined4 **)(param_1 + 0x18); puVar1 != (undefined4 *)0x0;
      puVar1 = (undefined4 *)*puVar1) {
                    /* try { // try from 0024422a to 0024422c has its CatchHandler @ 0024423e */
    (*(code *)puVar1[1])(param_2,param_1,puVar1[2]);
  }
  return;
}


CALL 0x000644b6
ADD EAX,0x16adfb
PUSH EBP
MOV EBP,ESP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0x1c
MOV EDI,dword ptr [EBP + 0x8]
MOV dword ptr [EBP + -0x1c],EAX
MOV ESI,dword ptr [EDI + 0x18]
TEST ESI,ESI
JZ 0x00244236
SUB ESP,0x4
PUSH dword ptr [ESI + 0x8]
PUSH EDI
PUSH dword ptr [EBP + 0xc]
CALL dword ptr [ESI + 0x4]
ADD ESP,0x10
MOV ESI,dword ptr [ESI]
TEST ESI,ESI
JNZ 0x00244220
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n\nvoid FUN_00244200(int param_1,undefined4 param_2)\n\n{\n  undefined4 *puVar1;\n  \n  for (puVar1 = *(undefined4 **)(param_1 + 0x18); puVar1 != (undefined4 *)0x0;\n      puVar1 = (undefined4 *)*puVar1) {\n                    /* try { // try from 0024422a to 0024422c has its CatchHandler @ 0024423e */\n    (*(code *)puVar1[1])(param_2,param_1,puVar1[2]);\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_00244200(int param_1,undefined4 param_2)\n\n{\n  undefined4 *puVar1;\n  \n  for (puVar1 = *(undefined4 **)(param_1 + 0x18); puVar1 != (undefined4 *)0x0;\n      puVar1 = (undefined4 *)*puVar1) {\n                    /* try { // try from 0024422a to 0024422c has its CatchHandler @ 0024423e */\n    (*(code *)puVar1[1])(param_2,param_1,puVar1[2]);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00244200(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  for (puVar1 = *(undefined4 **)(param_1 + 0x18); puVar1 != (undefined4 *)0x0;\n      puVar1 = (undefined4 *)*puVar1) {\n                    /* try { // try from 0024422a to 0024422c has its CatchHandler @ 0024423e */\n    (*(code *)puVar1[1])(param_2,param_1,puVar1[2]);\n  }\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (for_statement "for (puVar1 = *(undefined4 **)(param_1 + 0x18); puVar1 != (undefined4 *)0x0;\n      puVar1 = (undefined4 *)*puVar1) {\n                    /* try { // try from 0024422a to 0024422c has its CatchHandler @ 0024423e */\n    (*(code *)puVar1[1])(param_2,param_1,puVar1[2]);\n  }" for ( (assignment_expression "puVar1 = *(undefined4 **)(param_1 + 0x18)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 0x18)" * (cast_expression "(undefined4 **)(param_1 + 0x18)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ; (binary_expression "puVar1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "puVar1 = (undefined4 *)*puVar1" identifier = (cast_expression "(undefined4 *)*puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ) (compound_statement "{\n                    /* try { // try from 0024422a to 0024422c has its CatchHandler @ 0024423e */\n    (*(code *)puVar1[1])(param_2,param_1,puVar1[2]);\n  }" { comment (expression_statement "(*(code *)puVar1[1])(param_2,param_1,puVar1[2]);" (call_expression "(*(code *)puVar1[1])(param_2,param_1,puVar1[2])" (parenthesized_expression "(*(code *)puVar1[1])" ( (pointer_expression "*(code *)puVar1[1]" * (cast_expression "(code *)puVar1[1]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar1[1]" identifier [ number_literal ]))) )) (argument_list "(param_2,param_1,puVar1[2])" ( identifier , identifier , (subscript_expression "puVar1[2]" identifier [ number_literal ]) ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */\n/* std::ios_base::_M_call_callbacks(std::ios_base::event) */\n\nvoid __thiscall std::ios_base::_M_call_callbacks(ios_base *this,undefined4 param_2)\n\n{\n  undefined4 *puVar1;\n  \n  for (puVar1 = *(undefined4 **)(this + 0x18); puVar1 != (undefined4 *)0x0;\n      puVar1 = (undefined4 *)*puVar1) {\n                    /* try { // try from 0024422a to 0024422c has its CatchHandler @ 0024423e */\n    (*(code *)puVar1[1])(param_2,this,puVar1[2]);\n  }\n  return;\n}\n\n" comment comment (function_definition "void __thiscall std::ios_base::_M_call_callbacks(ios_base *this,undefined4 param_2)\n\n{\n  undefined4 *puVar1;\n  \n  for (puVar1 = *(undefined4 **)(this + 0x18); puVar1 != (undefined4 *)0x0;\n      puVar1 = (undefined4 *)*puVar1) {\n                    /* try { // try from 0024422a to 0024422c has its CatchHandler @ 0024423e */\n    (*(code *)puVar1[1])(param_2,this,puVar1[2]);\n  }\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::ios_base::" identifier : : identifier : :) (function_declarator "_M_call_callbacks(ios_base *this,undefined4 param_2)" identifier (parameter_list "(ios_base *this,undefined4 param_2)" ( (parameter_declaration "ios_base *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  for (puVar1 = *(undefined4 **)(this + 0x18); puVar1 != (undefined4 *)0x0;\n      puVar1 = (undefined4 *)*puVar1) {\n                    /* try { // try from 0024422a to 0024422c has its CatchHandler @ 0024423e */\n    (*(code *)puVar1[1])(param_2,this,puVar1[2]);\n  }\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (for_statement "for (puVar1 = *(undefined4 **)(this + 0x18); puVar1 != (undefined4 *)0x0;\n      puVar1 = (undefined4 *)*puVar1) {\n                    /* try { // try from 0024422a to 0024422c has its CatchHandler @ 0024423e */\n    (*(code *)puVar1[1])(param_2,this,puVar1[2]);\n  }" for ( (assignment_expression "puVar1 = *(undefined4 **)(this + 0x18)" identifier = (pointer_expression "*(undefined4 **)(this + 0x18)" * (cast_expression "(undefined4 **)(this + 0x18)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x18)" ( (binary_expression "this + 0x18" identifier + number_literal) ))))) ; (binary_expression "puVar1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "puVar1 = (undefined4 *)*puVar1" identifier = (cast_expression "(undefined4 *)*puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ) (compound_statement "{\n                    /* try { // try from 0024422a to 0024422c has its CatchHandler @ 0024423e */\n    (*(code *)puVar1[1])(param_2,this,puVar1[2]);\n  }" { comment (expression_statement "(*(code *)puVar1[1])(param_2,this,puVar1[2]);" (call_expression "(*(code *)puVar1[1])(param_2,this,puVar1[2])" (parenthesized_expression "(*(code *)puVar1[1])" ( (pointer_expression "*(code *)puVar1[1]" * (cast_expression "(code *)puVar1[1]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar1[1]" identifier [ number_literal ]))) )) (argument_list "(param_2,this,puVar1[2])" ( identifier , identifier , (subscript_expression "puVar1[2]" identifier [ number_literal ]) ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00244200(int param_1,undefined4 param_2)\n\n{\n  undefined4 *puVar1;\n  \n  for (puVar1 = *(undefined4 **)(param_1 + 0x18); puVar1 != (undefined4 *)0x0;\n      puVar1 = (undefined4 *)*puVar1) {\n                    \n    (*(code *)puVar1[1])(param_2,param_1,puVar1[2]);\n  }\n  return;\n}\n\n" (function_definition "void FUN_00244200(int param_1,undefined4 param_2)\n\n{\n  undefined4 *puVar1;\n  \n  for (puVar1 = *(undefined4 **)(param_1 + 0x18); puVar1 != (undefined4 *)0x0;\n      puVar1 = (undefined4 *)*puVar1) {\n                    \n    (*(code *)puVar1[1])(param_2,param_1,puVar1[2]);\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00244200(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  for (puVar1 = *(undefined4 **)(param_1 + 0x18); puVar1 != (undefined4 *)0x0;\n      puVar1 = (undefined4 *)*puVar1) {\n                    \n    (*(code *)puVar1[1])(param_2,param_1,puVar1[2]);\n  }\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (for_statement "for (puVar1 = *(undefined4 **)(param_1 + 0x18); puVar1 != (undefined4 *)0x0;\n      puVar1 = (undefined4 *)*puVar1) {\n                    \n    (*(code *)puVar1[1])(param_2,param_1,puVar1[2]);\n  }" for ( (assignment_expression "puVar1 = *(undefined4 **)(param_1 + 0x18)" identifier = (pointer_expression "*(undefined4 **)(param_1 + 0x18)" * (cast_expression "(undefined4 **)(param_1 + 0x18)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ; (binary_expression "puVar1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ; (assignment_expression "puVar1 = (undefined4 *)*puVar1" identifier = (cast_expression "(undefined4 *)*puVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar1" * identifier))) ) (compound_statement "{\n                    \n    (*(code *)puVar1[1])(param_2,param_1,puVar1[2]);\n  }" { (expression_statement "(*(code *)puVar1[1])(param_2,param_1,puVar1[2]);" (call_expression "(*(code *)puVar1[1])(param_2,param_1,puVar1[2])" (parenthesized_expression "(*(code *)puVar1[1])" ( (pointer_expression "*(code *)puVar1[1]" * (cast_expression "(code *)puVar1[1]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar1[1]" identifier [ number_literal ]))) )) (argument_list "(param_2,param_1,puVar1[2])" ( identifier , identifier , (subscript_expression "puVar1[2]" identifier [ number_literal ]) ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (for_statement for ( (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ; (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ; (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (argument_list ( IDENT , IDENT , (subscript_expression IDENT [ LIT ]) ))) ;) })) (return_statement return ;) })))
(function_definition "void FUN_00244200(int param_1,undefined4 param_2)\n\n{\n  undefined4 *puVar1;\n  \n  for (puVar1 = *(undefined4 **)(param_1 + 0x18); puVar1 != (undefined4 *)0x0;\n      puVar1 = (undefined4 *)*puVar1) {\n                    \n    (*(code *)puVar1[1])(param_2,param_1,puVar1[2]);\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00244200(int param_1,undefined4 param_2)" (identifier "FUN_00244200") (parameter_list "(int param_1,undefined4 param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  for (puVar1 = *(undefined4 **)(param_1 + 0x18); puVar1 != (undefined4 *)0x0;\n      puVar1 = (undefined4 *)*puVar1) {\n                    \n    (*(code *)puVar1[1])(param_2,param_1,puVar1[2]);\n  }\n  return;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (for_statement "for (puVar1 = *(undefined4 **)(param_1 + 0x18); puVar1 != (undefined4 *)0x0;\n      puVar1 = (undefined4 *)*puVar1) {\n                    \n    (*(code *)puVar1[1])(param_2,param_1,puVar1[2]);\n  }" (for "for") (( "(") (assignment_expression "puVar1 = *(undefined4 **)(param_1 + 0x18)" (identifier "puVar1") (= "=") (pointer_expression "*(undefined4 **)(param_1 + 0x18)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0x18)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")"))))) (; ";") (binary_expression "puVar1 != (undefined4 *)0x0" (identifier "puVar1") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";") (assignment_expression "puVar1 = (undefined4 *)*puVar1" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)*puVar1" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")))) () ")") (compound_statement "{\n                    \n    (*(code *)puVar1[1])(param_2,param_1,puVar1[2]);\n  }" ({ "{") (expression_statement "(*(code *)puVar1[1])(param_2,param_1,puVar1[2]);" (call_expression "(*(code *)puVar1[1])(param_2,param_1,puVar1[2])" (parenthesized_expression "(*(code *)puVar1[1])" (( "(") (pointer_expression "*(code *)puVar1[1]" (* "*") (cast_expression "(code *)puVar1[1]" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")))) () ")")) (argument_list "(param_2,param_1,puVar1[2])" (( "(") (identifier "param_2") (, ",") (identifier "param_1") (, ",") (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.ax replaced with injection: get_pc_thunk_ax */
/* std::ios_base::_M_call_callbacks(std::ios_base::event) */

void __thiscall std::type_1::function_1(type_1 *var_1,type_2 param_2)

{
  type_2 *var_2;
  
  for (var_2 = *(type_2 **)(var_1 + 0x18); var_2 != (type_2 *)0x0;
      var_2 = (type_2 *)*var_2) {
                    /* try { // try from 0024422a to 0024422c has its CatchHandler @ 0024423e */
    (*(type_3 *)var_2[1])(param_2,var_1,var_2[2]);
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (for_statement initializer: (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) condition: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal))) update: (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (pointer_expression argument: (identifier)))) body: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) arguments: (argument_list (identifier) (identifier) (subscript_expression argument: (identifier) index: (number_literal))))))) (return_statement))))

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

void MASKED(int param_1,undefined4 param_2)

{
  undefined4 *puVar1;
  
  for (puVar1 = *(undefined4 **)(param_1 + 0x18); puVar1 != (undefined4 *)0x0;
      puVar1 = (undefined4 *)*puVar1) {
                    /* try { // try from 0024422a to 0024422c has its CatchHandler @ 0024423e */
    (*(code *)puVar1[1])(param_2,param_1,puVar1[2]);
  }
  return;
}

