
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* virtual thunk to std::istream::~istream() */

void __thiscall std::istream::~istream(istream *this)

{
  istream *piVar1;
  
  piVar1 = this + *(int *)(*(int *)this + -0xc);
  *(undefined4 *)(piVar1 + 4) = 0;
  *(undefined4 *)piVar1 = 0x2ff744;
  *(undefined ***)(piVar1 + 8) = &PTR__ios_002ff7b0;
  ios_base::~ios_base((ios_base *)(piVar1 + 8));
  operator_delete(piVar1);
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void FUN_001a3970(int *param_1)

{
  undefined4 *puVar1;
  
  puVar1 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));
  puVar1[1] = 0;
  *puVar1 = &PTR_FUN_002ff744;
  puVar1[2] = &PTR_FUN_002ff7b0;
  FUN_001c5a30(puVar1 + 2);
  FUN_001807a0(puVar1);
  return;
}


PUSH ESI
PUSH EBX
CALL 0x00032730
ADD EBX,0x15e689
SUB ESP,0x10
MOV ESI,dword ptr [ESP + 0x1c]
MOV EAX,dword ptr [ESI]
ADD ESI,dword ptr [EAX + -0xc]
LEA EAX,[EBX + 0xffffd738]
MOV dword ptr [ESI + 0x4],0x0
ADD EAX,0xc
MOV dword ptr [ESI],EAX
LEA EAX,[EBX + 0xffffd7a8]
ADD EAX,0x8
MOV dword ptr [ESI + 0x8],EAX
LEA EAX,[ESI + 0x8]
PUSH EAX
CALL 0x001c5a30
MOV dword ptr [ESP],ESI
CALL 0x001807a0
ADD ESP,0x14
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_001a3970(int *param_1)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));\n  puVar1[1] = 0;\n  *puVar1 = &PTR_FUN_002ff744;\n  puVar1[2] = &PTR_FUN_002ff7b0;\n  FUN_001c5a30(puVar1 + 2);\n  FUN_001807a0(puVar1);\n  return;\n}\n\n" comment (function_definition "void FUN_001a3970(int *param_1)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));\n  puVar1[1] = 0;\n  *puVar1 = &PTR_FUN_002ff744;\n  puVar1[2] = &PTR_FUN_002ff7b0;\n  FUN_001c5a30(puVar1 + 2);\n  FUN_001807a0(puVar1);\n  return;\n}" primitive_type (function_declarator "FUN_001a3970(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));\n  puVar1[1] = 0;\n  *puVar1 = &PTR_FUN_002ff744;\n  puVar1[2] = &PTR_FUN_002ff7b0;\n  FUN_001c5a30(puVar1 + 2);\n  FUN_001807a0(puVar1);\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (expression_statement "puVar1 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));" (assignment_expression "puVar1 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc))" identifier = (cast_expression "(undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc))" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc))" ( (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )))) ;) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar1 = &PTR_FUN_002ff744;" (assignment_expression "*puVar1 = &PTR_FUN_002ff744" (pointer_expression "*puVar1" * identifier) = (pointer_expression "&PTR_FUN_002ff744" & identifier)) ;) (expression_statement "puVar1[2] = &PTR_FUN_002ff7b0;" (assignment_expression "puVar1[2] = &PTR_FUN_002ff7b0" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_002ff7b0" & identifier)) ;) (expression_statement "FUN_001c5a30(puVar1 + 2);" (call_expression "FUN_001c5a30(puVar1 + 2)" identifier (argument_list "(puVar1 + 2)" ( (binary_expression "puVar1 + 2" identifier + number_literal) ))) ;) (expression_statement "FUN_001807a0(puVar1);" (call_expression "FUN_001807a0(puVar1)" identifier (argument_list "(puVar1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* virtual thunk to std::istream::~istream() */\n\nvoid __thiscall std::istream::~istream(istream *this)\n\n{\n  istream *piVar1;\n  \n  piVar1 = this + *(int *)(*(int *)this + -0xc);\n  *(undefined4 *)(piVar1 + 4) = 0;\n  *(undefined4 *)piVar1 = 0x2ff744;\n  *(undefined ***)(piVar1 + 8) = &PTR__ios_002ff7b0;\n  ios_base::~ios_base((ios_base *)(piVar1 + 8));\n  operator_delete(piVar1);\n  return;\n}\n\n" comment comment (function_definition "void __thiscall std::istream::~istream(istream *this)\n\n{\n  istream *piVar1;\n  \n  piVar1 = this + *(int *)(*(int *)this + -0xc);\n  *(undefined4 *)(piVar1 + 4) = 0;\n  *(undefined4 *)piVar1 = 0x2ff744;\n  *(undefined ***)(piVar1 + 8) = &PTR__ios_002ff7b0;\n  ios_base::~ios_base((ios_base *)(piVar1 + 8));\n  operator_delete(piVar1);\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::istream::~" identifier : : identifier : : ~) (function_declarator "istream(istream *this)" identifier (parameter_list "(istream *this)" ( (parameter_declaration "istream *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  istream *piVar1;\n  \n  piVar1 = this + *(int *)(*(int *)this + -0xc);\n  *(undefined4 *)(piVar1 + 4) = 0;\n  *(undefined4 *)piVar1 = 0x2ff744;\n  *(undefined ***)(piVar1 + 8) = &PTR__ios_002ff7b0;\n  ios_base::~ios_base((ios_base *)(piVar1 + 8));\n  operator_delete(piVar1);\n  return;\n}" { (declaration "istream *piVar1;" type_identifier (pointer_declarator "*piVar1" * identifier) ;) (expression_statement "piVar1 = this + *(int *)(*(int *)this + -0xc);" (assignment_expression "piVar1 = this + *(int *)(*(int *)this + -0xc)" identifier = (binary_expression "this + *(int *)(*(int *)this + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)this + -0xc)" * (cast_expression "(int *)(*(int *)this + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -0xc)" ( (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))))) ;) (expression_statement "*(undefined4 *)(piVar1 + 4) = 0;" (assignment_expression "*(undefined4 *)(piVar1 + 4) = 0" (pointer_expression "*(undefined4 *)(piVar1 + 4)" * (cast_expression "(undefined4 *)(piVar1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 4)" ( (binary_expression "piVar1 + 4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)piVar1 = 0x2ff744;" (assignment_expression "*(undefined4 *)piVar1 = 0x2ff744" (pointer_expression "*(undefined4 *)piVar1" * (cast_expression "(undefined4 *)piVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "*(undefined ***)(piVar1 + 8) = &PTR__ios_002ff7b0;" (assignment_expression "*(undefined ***)(piVar1 + 8) = &PTR__ios_002ff7b0" (pointer_expression "*(undefined ***)(piVar1 + 8)" * (cast_expression "(undefined ***)(piVar1 + 8)" ( (type_descriptor "undefined ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) (parenthesized_expression "(piVar1 + 8)" ( (binary_expression "piVar1 + 8" identifier + number_literal) )))) = (pointer_expression "&PTR__ios_002ff7b0" & identifier)) ;) (labeled_statement "ios_base::~ios_base((ios_base *)(piVar1 + 8));" statement_identifier : (ERROR ":" :) (expression_statement "~ios_base((ios_base *)(piVar1 + 8));" (unary_expression "~ios_base((ios_base *)(piVar1 + 8))" ~ (call_expression "ios_base((ios_base *)(piVar1 + 8))" identifier (argument_list "((ios_base *)(piVar1 + 8))" ( (cast_expression "(ios_base *)(piVar1 + 8)" ( (type_descriptor "ios_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 8)" ( (binary_expression "piVar1 + 8" identifier + number_literal) ))) )))) ;)) (expression_statement "operator_delete(piVar1);" (call_expression "operator_delete(piVar1)" identifier (argument_list "(piVar1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_001a3970(int *param_1)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));\n  puVar1[1] = 0;\n  *puVar1 = &PTR_FUN_002ff744;\n  puVar1[2] = &PTR_FUN_002ff7b0;\n  FUN_001c5a30(puVar1 + 2);\n  FUN_001807a0(puVar1);\n  return;\n}\n\n" (function_definition "void FUN_001a3970(int *param_1)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));\n  puVar1[1] = 0;\n  *puVar1 = &PTR_FUN_002ff744;\n  puVar1[2] = &PTR_FUN_002ff7b0;\n  FUN_001c5a30(puVar1 + 2);\n  FUN_001807a0(puVar1);\n  return;\n}" primitive_type (function_declarator "FUN_001a3970(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));\n  puVar1[1] = 0;\n  *puVar1 = &PTR_FUN_002ff744;\n  puVar1[2] = &PTR_FUN_002ff7b0;\n  FUN_001c5a30(puVar1 + 2);\n  FUN_001807a0(puVar1);\n  return;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (expression_statement "puVar1 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));" (assignment_expression "puVar1 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc))" identifier = (cast_expression "(undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc))" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc))" ( (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )))) ;) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar1 = &PTR_FUN_002ff744;" (assignment_expression "*puVar1 = &PTR_FUN_002ff744" (pointer_expression "*puVar1" * identifier) = (pointer_expression "&PTR_FUN_002ff744" & identifier)) ;) (expression_statement "puVar1[2] = &PTR_FUN_002ff7b0;" (assignment_expression "puVar1[2] = &PTR_FUN_002ff7b0" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_002ff7b0" & identifier)) ;) (expression_statement "FUN_001c5a30(puVar1 + 2);" (call_expression "FUN_001c5a30(puVar1 + 2)" identifier (argument_list "(puVar1 + 2)" ( (binary_expression "puVar1 + 2" identifier + number_literal) ))) ;) (expression_statement "FUN_001807a0(puVar1);" (call_expression "FUN_001807a0(puVar1)" identifier (argument_list "(puVar1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression & IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_001a3970(int *param_1)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));\n  puVar1[1] = 0;\n  *puVar1 = &PTR_FUN_002ff744;\n  puVar1[2] = &PTR_FUN_002ff7b0;\n  FUN_001c5a30(puVar1 + 2);\n  FUN_001807a0(puVar1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001a3970(int *param_1)" (identifier "FUN_001a3970") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));\n  puVar1[1] = 0;\n  *puVar1 = &PTR_FUN_002ff744;\n  puVar1[2] = &PTR_FUN_002ff7b0;\n  FUN_001c5a30(puVar1 + 2);\n  FUN_001807a0(puVar1);\n  return;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (expression_statement "puVar1 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));" (assignment_expression "puVar1 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc))" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc))" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc))" (( "(") (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc)" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (pointer_expression "*(int *)(*param_1 + -0xc)" (* "*") (cast_expression "(int *)(*param_1 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -0xc)" (( "(") (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0xc")) () ")"))))) () ")")))) (; ";")) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*puVar1 = &PTR_FUN_002ff744;" (assignment_expression "*puVar1 = &PTR_FUN_002ff744" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (pointer_expression "&PTR_FUN_002ff744" (& "&") (identifier "PTR_FUN_002ff744"))) (; ";")) (expression_statement "puVar1[2] = &PTR_FUN_002ff7b0;" (assignment_expression "puVar1[2] = &PTR_FUN_002ff7b0" (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (pointer_expression "&PTR_FUN_002ff7b0" (& "&") (identifier "PTR_FUN_002ff7b0"))) (; ";")) (expression_statement "FUN_001c5a30(puVar1 + 2);" (call_expression "FUN_001c5a30(puVar1 + 2)" (identifier "FUN_001c5a30") (argument_list "(puVar1 + 2)" (( "(") (binary_expression "puVar1 + 2" (identifier "puVar1") (+ "+") (number_literal "2")) () ")"))) (; ";")) (expression_statement "FUN_001807a0(puVar1);" (call_expression "FUN_001807a0(puVar1)" (identifier "FUN_001807a0") (argument_list "(puVar1)" (( "(") (identifier "puVar1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* virtual thunk to std::istream::~istream() */

void __thiscall std::function_1::~function_1(function_1 *var_1)

{
  function_1 *var_2;
  
  var_2 = var_1 + *(int *)(*(int *)var_1 + -0xc);
  *(type_1 *)(var_2 + 4) = 0;
  *(type_1 *)var_2 = 0x2ff744;
  *(type_2 ***)(var_2 + 8) = &PTR__ios_002ff7b0;
  ios_base::~var_3((var_3 *)(var_2 + 8));
  var_4(var_2);
  return;
}


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

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void MASKED(int *param_1)

{
  undefined4 *puVar1;
  
  puVar1 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));
  puVar1[1] = 0;
  *puVar1 = &PTR_FUN_002ff744;
  puVar1[2] = &PTR_FUN_002ff7b0;
  FUN_001c5a30(puVar1 + 2);
  FUN_001807a0(puVar1);
  return;
}

