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

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

{
  fstream *pfVar1;
  
  pfVar1 = this + *(int *)(*(int *)this + -0xc);
  *(undefined4 *)pfVar1 = 0x3a79f8;
  *(undefined4 *)(pfVar1 + 8) = 0x3a7a0c;
  *(undefined4 *)(pfVar1 + 0x94) = 0x3a7a20;
  *(undefined ***)(pfVar1 + 0xc) = &PTR__filebuf_003a7840;
  filebuf::close((filebuf *)(pfVar1 + 0xc));
  __basic_file<char>::~__basic_file((__basic_file<char> *)(pfVar1 + 0x44));
  *(undefined ***)(pfVar1 + 0xc) = &PTR__streambuf_003a70ac;
  locale::~locale((locale *)(pfVar1 + 0x28));
  *(undefined4 *)(pfVar1 + 4) = 0;
  *(undefined4 *)(pfVar1 + 8) = 0x3a7944;
  *(undefined4 *)pfVar1 = 0x3a796c;
  *(undefined ***)(pfVar1 + 0x94) = &PTR__ios_003a77c0;
  ios_base::~ios_base((ios_base *)(pfVar1 + 0x94));
  return;
}



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

void FUN_0022f3f0(int *param_1)

{
  undefined4 *puVar1;
  
  puVar1 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));
  *puVar1 = &PTR_FUN_003a79f8;
  puVar1[2] = &PTR_FUN_003a7a0c;
  puVar1[0x25] = &PTR_FUN_003a7a20;
  puVar1[3] = &PTR_FUN_003a7840;
  FUN_0022d100(puVar1 + 3);
  FUN_001fd860(puVar1 + 0x11);
  puVar1[3] = &PTR_FUN_003a70ac;
  FUN_001ff780(puVar1 + 10);
  puVar1[1] = 0;
  puVar1[2] = &DAT_003a7944;
  *puVar1 = &DAT_003a796c;
  puVar1[0x25] = &PTR_FUN_003a77c0;
  FUN_002422b0(puVar1 + 0x25);
  return;
}


PUSH ESI
PUSH EBX
CALL 0x00036db0
ADD EBX,0x17ac09
SUB ESP,0x10
MOV ESI,dword ptr [ESP + 0x1c]
MOV EAX,dword ptr [ESI]
ADD ESI,dword ptr [EAX + -0xc]
LEA EAX,[EBX + 0xffffd9ec]
LEA EDX,[EAX + 0xc]
MOV dword ptr [ESI],EDX
LEA EDX,[EAX + 0x34]
ADD EAX,0x20
MOV dword ptr [ESI + 0x8],EAX
LEA EAX,[EBX + 0xffffd838]
MOV dword ptr [ESI + 0x94],EDX
ADD EAX,0x8
MOV dword ptr [ESI + 0xc],EAX
LEA EAX,[ESI + 0xc]
PUSH EAX
CALL 0x0022d100
LEA EAX,[ESI + 0x44]
MOV dword ptr [ESP],EAX
CALL 0x001fd860
LEA EAX,[EBX + 0xffffd0a4]
ADD EAX,0x8
MOV dword ptr [ESI + 0xc],EAX
LEA EAX,[ESI + 0x28]
ADD ESI,0x94
MOV dword ptr [ESP],EAX
CALL 0x001ff780
LEA EAX,[EBX + 0xffffd944]
MOV dword ptr [ESI + 0xffffff70],0x0
MOV dword ptr [ESI + 0xffffff74],EAX
LEA EAX,[EBX + 0xffffd96c]
MOV dword ptr [ESI + 0xffffff6c],EAX
LEA EAX,[EBX + 0xffffd7b8]
ADD EAX,0x8
MOV dword ptr [ESI],EAX
MOV dword ptr [ESP],ESI
CALL 0x002422b0
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_0022f3f0(int *param_1)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));\n  *puVar1 = &PTR_FUN_003a79f8;\n  puVar1[2] = &PTR_FUN_003a7a0c;\n  puVar1[0x25] = &PTR_FUN_003a7a20;\n  puVar1[3] = &PTR_FUN_003a7840;\n  FUN_0022d100(puVar1 + 3);\n  FUN_001fd860(puVar1 + 0x11);\n  puVar1[3] = &PTR_FUN_003a70ac;\n  FUN_001ff780(puVar1 + 10);\n  puVar1[1] = 0;\n  puVar1[2] = &DAT_003a7944;\n  *puVar1 = &DAT_003a796c;\n  puVar1[0x25] = &PTR_FUN_003a77c0;\n  FUN_002422b0(puVar1 + 0x25);\n  return;\n}\n\n" comment (function_definition "void FUN_0022f3f0(int *param_1)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));\n  *puVar1 = &PTR_FUN_003a79f8;\n  puVar1[2] = &PTR_FUN_003a7a0c;\n  puVar1[0x25] = &PTR_FUN_003a7a20;\n  puVar1[3] = &PTR_FUN_003a7840;\n  FUN_0022d100(puVar1 + 3);\n  FUN_001fd860(puVar1 + 0x11);\n  puVar1[3] = &PTR_FUN_003a70ac;\n  FUN_001ff780(puVar1 + 10);\n  puVar1[1] = 0;\n  puVar1[2] = &DAT_003a7944;\n  *puVar1 = &DAT_003a796c;\n  puVar1[0x25] = &PTR_FUN_003a77c0;\n  FUN_002422b0(puVar1 + 0x25);\n  return;\n}" primitive_type (function_declarator "FUN_0022f3f0(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 = &PTR_FUN_003a79f8;\n  puVar1[2] = &PTR_FUN_003a7a0c;\n  puVar1[0x25] = &PTR_FUN_003a7a20;\n  puVar1[3] = &PTR_FUN_003a7840;\n  FUN_0022d100(puVar1 + 3);\n  FUN_001fd860(puVar1 + 0x11);\n  puVar1[3] = &PTR_FUN_003a70ac;\n  FUN_001ff780(puVar1 + 10);\n  puVar1[1] = 0;\n  puVar1[2] = &DAT_003a7944;\n  *puVar1 = &DAT_003a796c;\n  puVar1[0x25] = &PTR_FUN_003a77c0;\n  FUN_002422b0(puVar1 + 0x25);\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 = &PTR_FUN_003a79f8;" (assignment_expression "*puVar1 = &PTR_FUN_003a79f8" (pointer_expression "*puVar1" * identifier) = (pointer_expression "&PTR_FUN_003a79f8" & identifier)) ;) (expression_statement "puVar1[2] = &PTR_FUN_003a7a0c;" (assignment_expression "puVar1[2] = &PTR_FUN_003a7a0c" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_003a7a0c" & identifier)) ;) (expression_statement "puVar1[0x25] = &PTR_FUN_003a7a20;" (assignment_expression "puVar1[0x25] = &PTR_FUN_003a7a20" (subscript_expression "puVar1[0x25]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_003a7a20" & identifier)) ;) (expression_statement "puVar1[3] = &PTR_FUN_003a7840;" (assignment_expression "puVar1[3] = &PTR_FUN_003a7840" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_003a7840" & identifier)) ;) (expression_statement "FUN_0022d100(puVar1 + 3);" (call_expression "FUN_0022d100(puVar1 + 3)" identifier (argument_list "(puVar1 + 3)" ( (binary_expression "puVar1 + 3" identifier + number_literal) ))) ;) (expression_statement "FUN_001fd860(puVar1 + 0x11);" (call_expression "FUN_001fd860(puVar1 + 0x11)" identifier (argument_list "(puVar1 + 0x11)" ( (binary_expression "puVar1 + 0x11" identifier + number_literal) ))) ;) (expression_statement "puVar1[3] = &PTR_FUN_003a70ac;" (assignment_expression "puVar1[3] = &PTR_FUN_003a70ac" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_003a70ac" & identifier)) ;) (expression_statement "FUN_001ff780(puVar1 + 10);" (call_expression "FUN_001ff780(puVar1 + 10)" identifier (argument_list "(puVar1 + 10)" ( (binary_expression "puVar1 + 10" 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[2] = &DAT_003a7944;" (assignment_expression "puVar1[2] = &DAT_003a7944" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = (pointer_expression "&DAT_003a7944" & identifier)) ;) (expression_statement "*puVar1 = &DAT_003a796c;" (assignment_expression "*puVar1 = &DAT_003a796c" (pointer_expression "*puVar1" * identifier) = (pointer_expression "&DAT_003a796c" & identifier)) ;) (expression_statement "puVar1[0x25] = &PTR_FUN_003a77c0;" (assignment_expression "puVar1[0x25] = &PTR_FUN_003a77c0" (subscript_expression "puVar1[0x25]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_003a77c0" & identifier)) ;) (expression_statement "FUN_002422b0(puVar1 + 0x25);" (call_expression "FUN_002422b0(puVar1 + 0x25)" identifier (argument_list "(puVar1 + 0x25)" ( (binary_expression "puVar1 + 0x25" identifier + number_literal) ))) ;) (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::fstream::~fstream() */\n\nvoid __thiscall std::fstream::~fstream(fstream *this)\n\n{\n  fstream *pfVar1;\n  \n  pfVar1 = this + *(int *)(*(int *)this + -0xc);\n  *(undefined4 *)pfVar1 = 0x3a79f8;\n  *(undefined4 *)(pfVar1 + 8) = 0x3a7a0c;\n  *(undefined4 *)(pfVar1 + 0x94) = 0x3a7a20;\n  *(undefined ***)(pfVar1 + 0xc) = &PTR__filebuf_003a7840;\n  filebuf::close((filebuf *)(pfVar1 + 0xc));\n  __basic_file<char>::~__basic_file((__basic_file<char> *)(pfVar1 + 0x44));\n  *(undefined ***)(pfVar1 + 0xc) = &PTR__streambuf_003a70ac;\n  locale::~locale((locale *)(pfVar1 + 0x28));\n  *(undefined4 *)(pfVar1 + 4) = 0;\n  *(undefined4 *)(pfVar1 + 8) = 0x3a7944;\n  *(undefined4 *)pfVar1 = 0x3a796c;\n  *(undefined ***)(pfVar1 + 0x94) = &PTR__ios_003a77c0;\n  ios_base::~ios_base((ios_base *)(pfVar1 + 0x94));\n  return;\n}\n\n" comment comment (function_definition "void __thiscall std::fstream::~fstream(fstream *this)\n\n{\n  fstream *pfVar1;\n  \n  pfVar1 = this + *(int *)(*(int *)this + -0xc);\n  *(undefined4 *)pfVar1 = 0x3a79f8;\n  *(undefined4 *)(pfVar1 + 8) = 0x3a7a0c;\n  *(undefined4 *)(pfVar1 + 0x94) = 0x3a7a20;\n  *(undefined ***)(pfVar1 + 0xc) = &PTR__filebuf_003a7840;\n  filebuf::close((filebuf *)(pfVar1 + 0xc));\n  __basic_file<char>::~__basic_file((__basic_file<char> *)(pfVar1 + 0x44));\n  *(undefined ***)(pfVar1 + 0xc) = &PTR__streambuf_003a70ac;\n  locale::~locale((locale *)(pfVar1 + 0x28));\n  *(undefined4 *)(pfVar1 + 4) = 0;\n  *(undefined4 *)(pfVar1 + 8) = 0x3a7944;\n  *(undefined4 *)pfVar1 = 0x3a796c;\n  *(undefined ***)(pfVar1 + 0x94) = &PTR__ios_003a77c0;\n  ios_base::~ios_base((ios_base *)(pfVar1 + 0x94));\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::fstream::~" identifier : : identifier : : ~) (function_declarator "fstream(fstream *this)" identifier (parameter_list "(fstream *this)" ( (parameter_declaration "fstream *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  fstream *pfVar1;\n  \n  pfVar1 = this + *(int *)(*(int *)this + -0xc);\n  *(undefined4 *)pfVar1 = 0x3a79f8;\n  *(undefined4 *)(pfVar1 + 8) = 0x3a7a0c;\n  *(undefined4 *)(pfVar1 + 0x94) = 0x3a7a20;\n  *(undefined ***)(pfVar1 + 0xc) = &PTR__filebuf_003a7840;\n  filebuf::close((filebuf *)(pfVar1 + 0xc));\n  __basic_file<char>::~__basic_file((__basic_file<char> *)(pfVar1 + 0x44));\n  *(undefined ***)(pfVar1 + 0xc) = &PTR__streambuf_003a70ac;\n  locale::~locale((locale *)(pfVar1 + 0x28));\n  *(undefined4 *)(pfVar1 + 4) = 0;\n  *(undefined4 *)(pfVar1 + 8) = 0x3a7944;\n  *(undefined4 *)pfVar1 = 0x3a796c;\n  *(undefined ***)(pfVar1 + 0x94) = &PTR__ios_003a77c0;\n  ios_base::~ios_base((ios_base *)(pfVar1 + 0x94));\n  return;\n}" { (declaration "fstream *pfVar1;" type_identifier (pointer_declarator "*pfVar1" * identifier) ;) (expression_statement "pfVar1 = this + *(int *)(*(int *)this + -0xc);" (assignment_expression "pfVar1 = 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 *)pfVar1 = 0x3a79f8;" (assignment_expression "*(undefined4 *)pfVar1 = 0x3a79f8" (pointer_expression "*(undefined4 *)pfVar1" * (cast_expression "(undefined4 *)pfVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "*(undefined4 *)(pfVar1 + 8) = 0x3a7a0c;" (assignment_expression "*(undefined4 *)(pfVar1 + 8) = 0x3a7a0c" (pointer_expression "*(undefined4 *)(pfVar1 + 8)" * (cast_expression "(undefined4 *)(pfVar1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pfVar1 + 8)" ( (binary_expression "pfVar1 + 8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(pfVar1 + 0x94) = 0x3a7a20;" (assignment_expression "*(undefined4 *)(pfVar1 + 0x94) = 0x3a7a20" (pointer_expression "*(undefined4 *)(pfVar1 + 0x94)" * (cast_expression "(undefined4 *)(pfVar1 + 0x94)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pfVar1 + 0x94)" ( (binary_expression "pfVar1 + 0x94" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined ***)(pfVar1 + 0xc) = &PTR__filebuf_003a7840;" (assignment_expression "*(undefined ***)(pfVar1 + 0xc) = &PTR__filebuf_003a7840" (pointer_expression "*(undefined ***)(pfVar1 + 0xc)" * (cast_expression "(undefined ***)(pfVar1 + 0xc)" ( (type_descriptor "undefined ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) (parenthesized_expression "(pfVar1 + 0xc)" ( (binary_expression "pfVar1 + 0xc" identifier + number_literal) )))) = (pointer_expression "&PTR__filebuf_003a7840" & identifier)) ;) (labeled_statement "filebuf::close((filebuf *)(pfVar1 + 0xc));" statement_identifier : (ERROR ":" :) (expression_statement "close((filebuf *)(pfVar1 + 0xc));" (call_expression "close((filebuf *)(pfVar1 + 0xc))" identifier (argument_list "((filebuf *)(pfVar1 + 0xc))" ( (cast_expression "(filebuf *)(pfVar1 + 0xc)" ( (type_descriptor "filebuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pfVar1 + 0xc)" ( (binary_expression "pfVar1 + 0xc" identifier + number_literal) ))) ))) ;)) (expression_statement "__basic_file<char>::~__basic_file((__basic_file<char> *)(pfVar1 + 0x44));" (binary_expression "__basic_file<char>::~__basic_file((__basic_file<char> *)(pfVar1 + 0x44))" (binary_expression "__basic_file<char" identifier < identifier) > (ERROR "::" : :) (unary_expression "~__basic_file((__basic_file<char> *)(pfVar1 + 0x44))" ~ (call_expression "__basic_file((__basic_file<char> *)(pfVar1 + 0x44))" identifier (argument_list "((__basic_file<char> *)(pfVar1 + 0x44))" ( (call_expression "(__basic_file<char> *)(pfVar1 + 0x44)" (parenthesized_expression "(__basic_file<char> *)" ( (binary_expression "__basic_file<char> *" (binary_expression "__basic_file<char" identifier < identifier) > (pointer_expression "*" * identifier)) )) (argument_list "(pfVar1 + 0x44)" ( (binary_expression "pfVar1 + 0x44" identifier + number_literal) ))) ))))) ;) (expression_statement "*(undefined ***)(pfVar1 + 0xc) = &PTR__streambuf_003a70ac;" (assignment_expression "*(undefined ***)(pfVar1 + 0xc) = &PTR__streambuf_003a70ac" (pointer_expression "*(undefined ***)(pfVar1 + 0xc)" * (cast_expression "(undefined ***)(pfVar1 + 0xc)" ( (type_descriptor "undefined ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) (parenthesized_expression "(pfVar1 + 0xc)" ( (binary_expression "pfVar1 + 0xc" identifier + number_literal) )))) = (pointer_expression "&PTR__streambuf_003a70ac" & identifier)) ;) (labeled_statement "locale::~locale((locale *)(pfVar1 + 0x28));" statement_identifier : (ERROR ":" :) (expression_statement "~locale((locale *)(pfVar1 + 0x28));" (unary_expression "~locale((locale *)(pfVar1 + 0x28))" ~ (call_expression "locale((locale *)(pfVar1 + 0x28))" identifier (argument_list "((locale *)(pfVar1 + 0x28))" ( (cast_expression "(locale *)(pfVar1 + 0x28)" ( (type_descriptor "locale *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pfVar1 + 0x28)" ( (binary_expression "pfVar1 + 0x28" identifier + number_literal) ))) )))) ;)) (expression_statement "*(undefined4 *)(pfVar1 + 4) = 0;" (assignment_expression "*(undefined4 *)(pfVar1 + 4) = 0" (pointer_expression "*(undefined4 *)(pfVar1 + 4)" * (cast_expression "(undefined4 *)(pfVar1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pfVar1 + 4)" ( (binary_expression "pfVar1 + 4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(pfVar1 + 8) = 0x3a7944;" (assignment_expression "*(undefined4 *)(pfVar1 + 8) = 0x3a7944" (pointer_expression "*(undefined4 *)(pfVar1 + 8)" * (cast_expression "(undefined4 *)(pfVar1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pfVar1 + 8)" ( (binary_expression "pfVar1 + 8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)pfVar1 = 0x3a796c;" (assignment_expression "*(undefined4 *)pfVar1 = 0x3a796c" (pointer_expression "*(undefined4 *)pfVar1" * (cast_expression "(undefined4 *)pfVar1" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "*(undefined ***)(pfVar1 + 0x94) = &PTR__ios_003a77c0;" (assignment_expression "*(undefined ***)(pfVar1 + 0x94) = &PTR__ios_003a77c0" (pointer_expression "*(undefined ***)(pfVar1 + 0x94)" * (cast_expression "(undefined ***)(pfVar1 + 0x94)" ( (type_descriptor "undefined ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) (parenthesized_expression "(pfVar1 + 0x94)" ( (binary_expression "pfVar1 + 0x94" identifier + number_literal) )))) = (pointer_expression "&PTR__ios_003a77c0" & identifier)) ;) (labeled_statement "ios_base::~ios_base((ios_base *)(pfVar1 + 0x94));" statement_identifier : (ERROR ":" :) (expression_statement "~ios_base((ios_base *)(pfVar1 + 0x94));" (unary_expression "~ios_base((ios_base *)(pfVar1 + 0x94))" ~ (call_expression "ios_base((ios_base *)(pfVar1 + 0x94))" identifier (argument_list "((ios_base *)(pfVar1 + 0x94))" ( (cast_expression "(ios_base *)(pfVar1 + 0x94)" ( (type_descriptor "ios_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pfVar1 + 0x94)" ( (binary_expression "pfVar1 + 0x94" identifier + number_literal) ))) )))) ;)) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0022f3f0(int *param_1)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));\n  *puVar1 = &PTR_FUN_003a79f8;\n  puVar1[2] = &PTR_FUN_003a7a0c;\n  puVar1[0x25] = &PTR_FUN_003a7a20;\n  puVar1[3] = &PTR_FUN_003a7840;\n  FUN_0022d100(puVar1 + 3);\n  FUN_001fd860(puVar1 + 0x11);\n  puVar1[3] = &PTR_FUN_003a70ac;\n  FUN_001ff780(puVar1 + 10);\n  puVar1[1] = 0;\n  puVar1[2] = &DAT_003a7944;\n  *puVar1 = &DAT_003a796c;\n  puVar1[0x25] = &PTR_FUN_003a77c0;\n  FUN_002422b0(puVar1 + 0x25);\n  return;\n}\n\n" (function_definition "void FUN_0022f3f0(int *param_1)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));\n  *puVar1 = &PTR_FUN_003a79f8;\n  puVar1[2] = &PTR_FUN_003a7a0c;\n  puVar1[0x25] = &PTR_FUN_003a7a20;\n  puVar1[3] = &PTR_FUN_003a7840;\n  FUN_0022d100(puVar1 + 3);\n  FUN_001fd860(puVar1 + 0x11);\n  puVar1[3] = &PTR_FUN_003a70ac;\n  FUN_001ff780(puVar1 + 10);\n  puVar1[1] = 0;\n  puVar1[2] = &DAT_003a7944;\n  *puVar1 = &DAT_003a796c;\n  puVar1[0x25] = &PTR_FUN_003a77c0;\n  FUN_002422b0(puVar1 + 0x25);\n  return;\n}" primitive_type (function_declarator "FUN_0022f3f0(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 = &PTR_FUN_003a79f8;\n  puVar1[2] = &PTR_FUN_003a7a0c;\n  puVar1[0x25] = &PTR_FUN_003a7a20;\n  puVar1[3] = &PTR_FUN_003a7840;\n  FUN_0022d100(puVar1 + 3);\n  FUN_001fd860(puVar1 + 0x11);\n  puVar1[3] = &PTR_FUN_003a70ac;\n  FUN_001ff780(puVar1 + 10);\n  puVar1[1] = 0;\n  puVar1[2] = &DAT_003a7944;\n  *puVar1 = &DAT_003a796c;\n  puVar1[0x25] = &PTR_FUN_003a77c0;\n  FUN_002422b0(puVar1 + 0x25);\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 = &PTR_FUN_003a79f8;" (assignment_expression "*puVar1 = &PTR_FUN_003a79f8" (pointer_expression "*puVar1" * identifier) = (pointer_expression "&PTR_FUN_003a79f8" & identifier)) ;) (expression_statement "puVar1[2] = &PTR_FUN_003a7a0c;" (assignment_expression "puVar1[2] = &PTR_FUN_003a7a0c" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_003a7a0c" & identifier)) ;) (expression_statement "puVar1[0x25] = &PTR_FUN_003a7a20;" (assignment_expression "puVar1[0x25] = &PTR_FUN_003a7a20" (subscript_expression "puVar1[0x25]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_003a7a20" & identifier)) ;) (expression_statement "puVar1[3] = &PTR_FUN_003a7840;" (assignment_expression "puVar1[3] = &PTR_FUN_003a7840" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_003a7840" & identifier)) ;) (expression_statement "FUN_0022d100(puVar1 + 3);" (call_expression "FUN_0022d100(puVar1 + 3)" identifier (argument_list "(puVar1 + 3)" ( (binary_expression "puVar1 + 3" identifier + number_literal) ))) ;) (expression_statement "FUN_001fd860(puVar1 + 0x11);" (call_expression "FUN_001fd860(puVar1 + 0x11)" identifier (argument_list "(puVar1 + 0x11)" ( (binary_expression "puVar1 + 0x11" identifier + number_literal) ))) ;) (expression_statement "puVar1[3] = &PTR_FUN_003a70ac;" (assignment_expression "puVar1[3] = &PTR_FUN_003a70ac" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_003a70ac" & identifier)) ;) (expression_statement "FUN_001ff780(puVar1 + 10);" (call_expression "FUN_001ff780(puVar1 + 10)" identifier (argument_list "(puVar1 + 10)" ( (binary_expression "puVar1 + 10" 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[2] = &DAT_003a7944;" (assignment_expression "puVar1[2] = &DAT_003a7944" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = (pointer_expression "&DAT_003a7944" & identifier)) ;) (expression_statement "*puVar1 = &DAT_003a796c;" (assignment_expression "*puVar1 = &DAT_003a796c" (pointer_expression "*puVar1" * identifier) = (pointer_expression "&DAT_003a796c" & identifier)) ;) (expression_statement "puVar1[0x25] = &PTR_FUN_003a77c0;" (assignment_expression "puVar1[0x25] = &PTR_FUN_003a77c0" (subscript_expression "puVar1[0x25]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_003a77c0" & identifier)) ;) (expression_statement "FUN_002422b0(puVar1 + 0x25);" (call_expression "FUN_002422b0(puVar1 + 0x25)" identifier (argument_list "(puVar1 + 0x25)" ( (binary_expression "puVar1 + 0x25" identifier + number_literal) ))) ;) (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 (pointer_expression * IDENT) = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (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 ( (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression & IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression & IDENT)) ;) (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) ))) ;) (return_statement return ;) })))
(function_definition "void FUN_0022f3f0(int *param_1)\n\n{\n  undefined4 *puVar1;\n  \n  puVar1 = (undefined4 *)((int)param_1 + *(int *)(*param_1 + -0xc));\n  *puVar1 = &PTR_FUN_003a79f8;\n  puVar1[2] = &PTR_FUN_003a7a0c;\n  puVar1[0x25] = &PTR_FUN_003a7a20;\n  puVar1[3] = &PTR_FUN_003a7840;\n  FUN_0022d100(puVar1 + 3);\n  FUN_001fd860(puVar1 + 0x11);\n  puVar1[3] = &PTR_FUN_003a70ac;\n  FUN_001ff780(puVar1 + 10);\n  puVar1[1] = 0;\n  puVar1[2] = &DAT_003a7944;\n  *puVar1 = &DAT_003a796c;\n  puVar1[0x25] = &PTR_FUN_003a77c0;\n  FUN_002422b0(puVar1 + 0x25);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0022f3f0(int *param_1)" (identifier "FUN_0022f3f0") (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 = &PTR_FUN_003a79f8;\n  puVar1[2] = &PTR_FUN_003a7a0c;\n  puVar1[0x25] = &PTR_FUN_003a7a20;\n  puVar1[3] = &PTR_FUN_003a7840;\n  FUN_0022d100(puVar1 + 3);\n  FUN_001fd860(puVar1 + 0x11);\n  puVar1[3] = &PTR_FUN_003a70ac;\n  FUN_001ff780(puVar1 + 10);\n  puVar1[1] = 0;\n  puVar1[2] = &DAT_003a7944;\n  *puVar1 = &DAT_003a796c;\n  puVar1[0x25] = &PTR_FUN_003a77c0;\n  FUN_002422b0(puVar1 + 0x25);\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 = &PTR_FUN_003a79f8;" (assignment_expression "*puVar1 = &PTR_FUN_003a79f8" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (pointer_expression "&PTR_FUN_003a79f8" (& "&") (identifier "PTR_FUN_003a79f8"))) (; ";")) (expression_statement "puVar1[2] = &PTR_FUN_003a7a0c;" (assignment_expression "puVar1[2] = &PTR_FUN_003a7a0c" (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (pointer_expression "&PTR_FUN_003a7a0c" (& "&") (identifier "PTR_FUN_003a7a0c"))) (; ";")) (expression_statement "puVar1[0x25] = &PTR_FUN_003a7a20;" (assignment_expression "puVar1[0x25] = &PTR_FUN_003a7a20" (subscript_expression "puVar1[0x25]" (identifier "puVar1") ([ "[") (number_literal "0x25") (] "]")) (= "=") (pointer_expression "&PTR_FUN_003a7a20" (& "&") (identifier "PTR_FUN_003a7a20"))) (; ";")) (expression_statement "puVar1[3] = &PTR_FUN_003a7840;" (assignment_expression "puVar1[3] = &PTR_FUN_003a7840" (subscript_expression "puVar1[3]" (identifier "puVar1") ([ "[") (number_literal "3") (] "]")) (= "=") (pointer_expression "&PTR_FUN_003a7840" (& "&") (identifier "PTR_FUN_003a7840"))) (; ";")) (expression_statement "FUN_0022d100(puVar1 + 3);" (call_expression "FUN_0022d100(puVar1 + 3)" (identifier "FUN_0022d100") (argument_list "(puVar1 + 3)" (( "(") (binary_expression "puVar1 + 3" (identifier "puVar1") (+ "+") (number_literal "3")) () ")"))) (; ";")) (expression_statement "FUN_001fd860(puVar1 + 0x11);" (call_expression "FUN_001fd860(puVar1 + 0x11)" (identifier "FUN_001fd860") (argument_list "(puVar1 + 0x11)" (( "(") (binary_expression "puVar1 + 0x11" (identifier "puVar1") (+ "+") (number_literal "0x11")) () ")"))) (; ";")) (expression_statement "puVar1[3] = &PTR_FUN_003a70ac;" (assignment_expression "puVar1[3] = &PTR_FUN_003a70ac" (subscript_expression "puVar1[3]" (identifier "puVar1") ([ "[") (number_literal "3") (] "]")) (= "=") (pointer_expression "&PTR_FUN_003a70ac" (& "&") (identifier "PTR_FUN_003a70ac"))) (; ";")) (expression_statement "FUN_001ff780(puVar1 + 10);" (call_expression "FUN_001ff780(puVar1 + 10)" (identifier "FUN_001ff780") (argument_list "(puVar1 + 10)" (( "(") (binary_expression "puVar1 + 10" (identifier "puVar1") (+ "+") (number_literal "10")) () ")"))) (; ";")) (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[2] = &DAT_003a7944;" (assignment_expression "puVar1[2] = &DAT_003a7944" (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (pointer_expression "&DAT_003a7944" (& "&") (identifier "DAT_003a7944"))) (; ";")) (expression_statement "*puVar1 = &DAT_003a796c;" (assignment_expression "*puVar1 = &DAT_003a796c" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (pointer_expression "&DAT_003a796c" (& "&") (identifier "DAT_003a796c"))) (; ";")) (expression_statement "puVar1[0x25] = &PTR_FUN_003a77c0;" (assignment_expression "puVar1[0x25] = &PTR_FUN_003a77c0" (subscript_expression "puVar1[0x25]" (identifier "puVar1") ([ "[") (number_literal "0x25") (] "]")) (= "=") (pointer_expression "&PTR_FUN_003a77c0" (& "&") (identifier "PTR_FUN_003a77c0"))) (; ";")) (expression_statement "FUN_002422b0(puVar1 + 0x25);" (call_expression "FUN_002422b0(puVar1 + 0x25)" (identifier "FUN_002422b0") (argument_list "(puVar1 + 0x25)" (( "(") (binary_expression "puVar1 + 0x25" (identifier "puVar1") (+ "+") (number_literal "0x25")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

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 = 0x3a79f8;
  *(type_1 *)(var_2 + 8) = 0x3a7a0c;
  *(type_1 *)(var_2 + 0x94) = 0x3a7a20;
  *(type_2 ***)(var_2 + 0xc) = &PTR__filebuf_003a7840;
  filebuf::var_3((type_3 *)(var_2 + 0xc));
  var_4<var_5>::~var_4((var_4<var_5> *)(var_2 + 0x44));
  *(type_2 ***)(var_2 + 0xc) = &PTR__streambuf_003a70ac;
  locale::~var_6((var_6 *)(var_2 + 0x28));
  *(type_1 *)(var_2 + 4) = 0;
  *(type_1 *)(var_2 + 8) = 0x3a7944;
  *(type_1 *)var_2 = 0x3a796c;
  *(type_2 ***)(var_2 + 0x94) = &PTR__ios_003a77c0;
  ios_base::~var_7((var_7 *)(var_2 + 0x94));
  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: (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 (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) 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 (binary_expression left: (identifier) right: (number_literal))))) (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 (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (identifier)))) (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))))) (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 = &PTR_FUN_003a79f8;
  puVar1[2] = &PTR_FUN_003a7a0c;
  puVar1[0x25] = &PTR_FUN_003a7a20;
  puVar1[3] = &PTR_FUN_003a7840;
  FUN_0022d100(puVar1 + 3);
  FUN_001fd860(puVar1 + 0x11);
  puVar1[3] = &PTR_FUN_003a70ac;
  FUN_001ff780(puVar1 + 10);
  puVar1[1] = 0;
  puVar1[2] = &DAT_003a7944;
  *puVar1 = &DAT_003a796c;
  puVar1[0x25] = &PTR_FUN_003a77c0;
  FUN_002422b0(puVar1 + 0x25);
  return;
}

