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

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

{
  *(undefined4 *)(this + -8) = 0x2ff9e8;
  *(undefined4 *)this = 0x2ff9fc;
  *(undefined4 *)(this + 0x8c) = 0x2ffa10;
  *(undefined ***)(this + 4) = &PTR__filebuf_002ff830;
  filebuf::close((filebuf *)(this + 4));
  __basic_file<char>::~__basic_file((__basic_file<char> *)(this + 0x3c));
  *(undefined ***)(this + 4) = &PTR__streambuf_002ff09c;
  locale::~locale((locale *)(this + 0x20));
  *(undefined4 *)(this + -4) = 0;
  *(undefined4 *)this = 0x2ff934;
  *(undefined4 *)(this + -8) = 0x2ff95c;
  *(undefined ***)(this + 0x8c) = &PTR__ios_002ff7b0;
  ios_base::~ios_base((ios_base *)(this + 0x8c));
  return;
}



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

void FUN_001b2ac0(undefined4 *param_1)

{
  param_1[-2] = &PTR_FUN_002ff9e8;
  *param_1 = &PTR_FUN_002ff9fc;
  param_1[0x23] = &PTR_FUN_002ffa10;
  param_1[1] = &PTR_FUN_002ff830;
  FUN_001b0880(param_1 + 1);
  FUN_00180fe0(param_1 + 0xf);
  param_1[1] = &PTR_FUN_002ff09c;
  FUN_00182f00(param_1 + 8);
  param_1[-1] = 0;
  *param_1 = &DAT_002ff934;
  param_1[-2] = &DAT_002ff95c;
  param_1[0x23] = &PTR_FUN_002ff7b0;
  FUN_001c5a30(param_1 + 0x23);
  return;
}


PUSH ESI
PUSH EBX
CALL 0x00032730
ADD EBX,0x14f539
SUB ESP,0x10
MOV ESI,dword ptr [ESP + 0x1c]
LEA EAX,[EBX + 0xffffd9dc]
LEA EDX,[EAX + 0xc]
MOV dword ptr [ESI + -0x8],EDX
LEA EDX,[EAX + 0x34]
ADD EAX,0x20
MOV dword ptr [ESI],EAX
LEA EAX,[EBX + 0xffffd828]
MOV dword ptr [ESI + 0x8c],EDX
ADD EAX,0x8
MOV dword ptr [ESI + 0x4],EAX
LEA EAX,[ESI + 0x4]
PUSH EAX
CALL 0x001b0880
LEA EAX,[ESI + 0x3c]
MOV dword ptr [ESP],EAX
CALL 0x00180fe0
LEA EAX,[EBX + 0xffffd094]
ADD EAX,0x8
MOV dword ptr [ESI + 0x4],EAX
LEA EAX,[ESI + 0x20]
ADD ESI,0x8c
MOV dword ptr [ESP],EAX
CALL 0x00182f00
LEA EAX,[EBX + 0xffffd934]
MOV dword ptr [ESI + 0xffffff70],0x0
MOV dword ptr [ESI + 0xffffff74],EAX
LEA EAX,[EBX + 0xffffd95c]
MOV dword ptr [ESI + 0xffffff6c],EAX
LEA EAX,[EBX + 0xffffd7a8]
ADD EAX,0x8
MOV dword ptr [ESI],EAX
MOV dword ptr [ESP],ESI
CALL 0x001c5a30
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_001b2ac0(undefined4 *param_1)\n\n{\n  param_1[-2] = &PTR_FUN_002ff9e8;\n  *param_1 = &PTR_FUN_002ff9fc;\n  param_1[0x23] = &PTR_FUN_002ffa10;\n  param_1[1] = &PTR_FUN_002ff830;\n  FUN_001b0880(param_1 + 1);\n  FUN_00180fe0(param_1 + 0xf);\n  param_1[1] = &PTR_FUN_002ff09c;\n  FUN_00182f00(param_1 + 8);\n  param_1[-1] = 0;\n  *param_1 = &DAT_002ff934;\n  param_1[-2] = &DAT_002ff95c;\n  param_1[0x23] = &PTR_FUN_002ff7b0;\n  FUN_001c5a30(param_1 + 0x23);\n  return;\n}\n\n" comment (function_definition "void FUN_001b2ac0(undefined4 *param_1)\n\n{\n  param_1[-2] = &PTR_FUN_002ff9e8;\n  *param_1 = &PTR_FUN_002ff9fc;\n  param_1[0x23] = &PTR_FUN_002ffa10;\n  param_1[1] = &PTR_FUN_002ff830;\n  FUN_001b0880(param_1 + 1);\n  FUN_00180fe0(param_1 + 0xf);\n  param_1[1] = &PTR_FUN_002ff09c;\n  FUN_00182f00(param_1 + 8);\n  param_1[-1] = 0;\n  *param_1 = &DAT_002ff934;\n  param_1[-2] = &DAT_002ff95c;\n  param_1[0x23] = &PTR_FUN_002ff7b0;\n  FUN_001c5a30(param_1 + 0x23);\n  return;\n}" primitive_type (function_declarator "FUN_001b2ac0(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  param_1[-2] = &PTR_FUN_002ff9e8;\n  *param_1 = &PTR_FUN_002ff9fc;\n  param_1[0x23] = &PTR_FUN_002ffa10;\n  param_1[1] = &PTR_FUN_002ff830;\n  FUN_001b0880(param_1 + 1);\n  FUN_00180fe0(param_1 + 0xf);\n  param_1[1] = &PTR_FUN_002ff09c;\n  FUN_00182f00(param_1 + 8);\n  param_1[-1] = 0;\n  *param_1 = &DAT_002ff934;\n  param_1[-2] = &DAT_002ff95c;\n  param_1[0x23] = &PTR_FUN_002ff7b0;\n  FUN_001c5a30(param_1 + 0x23);\n  return;\n}" { (expression_statement "param_1[-2] = &PTR_FUN_002ff9e8;" (assignment_expression "param_1[-2] = &PTR_FUN_002ff9e8" (subscript_expression "param_1[-2]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_002ff9e8" & identifier)) ;) (expression_statement "*param_1 = &PTR_FUN_002ff9fc;" (assignment_expression "*param_1 = &PTR_FUN_002ff9fc" (pointer_expression "*param_1" * identifier) = (pointer_expression "&PTR_FUN_002ff9fc" & identifier)) ;) (expression_statement "param_1[0x23] = &PTR_FUN_002ffa10;" (assignment_expression "param_1[0x23] = &PTR_FUN_002ffa10" (subscript_expression "param_1[0x23]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_002ffa10" & identifier)) ;) (expression_statement "param_1[1] = &PTR_FUN_002ff830;" (assignment_expression "param_1[1] = &PTR_FUN_002ff830" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_002ff830" & identifier)) ;) (expression_statement "FUN_001b0880(param_1 + 1);" (call_expression "FUN_001b0880(param_1 + 1)" identifier (argument_list "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) ))) ;) (expression_statement "FUN_00180fe0(param_1 + 0xf);" (call_expression "FUN_00180fe0(param_1 + 0xf)" identifier (argument_list "(param_1 + 0xf)" ( (binary_expression "param_1 + 0xf" identifier + number_literal) ))) ;) (expression_statement "param_1[1] = &PTR_FUN_002ff09c;" (assignment_expression "param_1[1] = &PTR_FUN_002ff09c" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_002ff09c" & identifier)) ;) (expression_statement "FUN_00182f00(param_1 + 8);" (call_expression "FUN_00182f00(param_1 + 8)" identifier (argument_list "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))) ;) (expression_statement "param_1[-1] = 0;" (assignment_expression "param_1[-1] = 0" (subscript_expression "param_1[-1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_1 = &DAT_002ff934;" (assignment_expression "*param_1 = &DAT_002ff934" (pointer_expression "*param_1" * identifier) = (pointer_expression "&DAT_002ff934" & identifier)) ;) (expression_statement "param_1[-2] = &DAT_002ff95c;" (assignment_expression "param_1[-2] = &DAT_002ff95c" (subscript_expression "param_1[-2]" identifier [ number_literal ]) = (pointer_expression "&DAT_002ff95c" & identifier)) ;) (expression_statement "param_1[0x23] = &PTR_FUN_002ff7b0;" (assignment_expression "param_1[0x23] = &PTR_FUN_002ff7b0" (subscript_expression "param_1[0x23]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_002ff7b0" & identifier)) ;) (expression_statement "FUN_001c5a30(param_1 + 0x23);" (call_expression "FUN_001c5a30(param_1 + 0x23)" identifier (argument_list "(param_1 + 0x23)" ( (binary_expression "param_1 + 0x23" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* non-virtual thunk to std::fstream::~fstream() */\n\nvoid __thiscall std::fstream::~fstream(fstream *this)\n\n{\n  *(undefined4 *)(this + -8) = 0x2ff9e8;\n  *(undefined4 *)this = 0x2ff9fc;\n  *(undefined4 *)(this + 0x8c) = 0x2ffa10;\n  *(undefined ***)(this + 4) = &PTR__filebuf_002ff830;\n  filebuf::close((filebuf *)(this + 4));\n  __basic_file<char>::~__basic_file((__basic_file<char> *)(this + 0x3c));\n  *(undefined ***)(this + 4) = &PTR__streambuf_002ff09c;\n  locale::~locale((locale *)(this + 0x20));\n  *(undefined4 *)(this + -4) = 0;\n  *(undefined4 *)this = 0x2ff934;\n  *(undefined4 *)(this + -8) = 0x2ff95c;\n  *(undefined ***)(this + 0x8c) = &PTR__ios_002ff7b0;\n  ios_base::~ios_base((ios_base *)(this + 0x8c));\n  return;\n}\n\n" comment comment (function_definition "void __thiscall std::fstream::~fstream(fstream *this)\n\n{\n  *(undefined4 *)(this + -8) = 0x2ff9e8;\n  *(undefined4 *)this = 0x2ff9fc;\n  *(undefined4 *)(this + 0x8c) = 0x2ffa10;\n  *(undefined ***)(this + 4) = &PTR__filebuf_002ff830;\n  filebuf::close((filebuf *)(this + 4));\n  __basic_file<char>::~__basic_file((__basic_file<char> *)(this + 0x3c));\n  *(undefined ***)(this + 4) = &PTR__streambuf_002ff09c;\n  locale::~locale((locale *)(this + 0x20));\n  *(undefined4 *)(this + -4) = 0;\n  *(undefined4 *)this = 0x2ff934;\n  *(undefined4 *)(this + -8) = 0x2ff95c;\n  *(undefined ***)(this + 0x8c) = &PTR__ios_002ff7b0;\n  ios_base::~ios_base((ios_base *)(this + 0x8c));\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  *(undefined4 *)(this + -8) = 0x2ff9e8;\n  *(undefined4 *)this = 0x2ff9fc;\n  *(undefined4 *)(this + 0x8c) = 0x2ffa10;\n  *(undefined ***)(this + 4) = &PTR__filebuf_002ff830;\n  filebuf::close((filebuf *)(this + 4));\n  __basic_file<char>::~__basic_file((__basic_file<char> *)(this + 0x3c));\n  *(undefined ***)(this + 4) = &PTR__streambuf_002ff09c;\n  locale::~locale((locale *)(this + 0x20));\n  *(undefined4 *)(this + -4) = 0;\n  *(undefined4 *)this = 0x2ff934;\n  *(undefined4 *)(this + -8) = 0x2ff95c;\n  *(undefined ***)(this + 0x8c) = &PTR__ios_002ff7b0;\n  ios_base::~ios_base((ios_base *)(this + 0x8c));\n  return;\n}" { (expression_statement "*(undefined4 *)(this + -8) = 0x2ff9e8;" (assignment_expression "*(undefined4 *)(this + -8) = 0x2ff9e8" (pointer_expression "*(undefined4 *)(this + -8)" * (cast_expression "(undefined4 *)(this + -8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + -8)" ( (binary_expression "this + -8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)this = 0x2ff9fc;" (assignment_expression "*(undefined4 *)this = 0x2ff9fc" (pointer_expression "*(undefined4 *)this" * (cast_expression "(undefined4 *)this" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "*(undefined4 *)(this + 0x8c) = 0x2ffa10;" (assignment_expression "*(undefined4 *)(this + 0x8c) = 0x2ffa10" (pointer_expression "*(undefined4 *)(this + 0x8c)" * (cast_expression "(undefined4 *)(this + 0x8c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x8c)" ( (binary_expression "this + 0x8c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined ***)(this + 4) = &PTR__filebuf_002ff830;" (assignment_expression "*(undefined ***)(this + 4) = &PTR__filebuf_002ff830" (pointer_expression "*(undefined ***)(this + 4)" * (cast_expression "(undefined ***)(this + 4)" ( (type_descriptor "undefined ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = (pointer_expression "&PTR__filebuf_002ff830" & identifier)) ;) (labeled_statement "filebuf::close((filebuf *)(this + 4));" statement_identifier : (ERROR ":" :) (expression_statement "close((filebuf *)(this + 4));" (call_expression "close((filebuf *)(this + 4))" identifier (argument_list "((filebuf *)(this + 4))" ( (cast_expression "(filebuf *)(this + 4)" ( (type_descriptor "filebuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) ))) ))) ;)) (expression_statement "__basic_file<char>::~__basic_file((__basic_file<char> *)(this + 0x3c));" (binary_expression "__basic_file<char>::~__basic_file((__basic_file<char> *)(this + 0x3c))" (binary_expression "__basic_file<char" identifier < identifier) > (ERROR "::" : :) (unary_expression "~__basic_file((__basic_file<char> *)(this + 0x3c))" ~ (call_expression "__basic_file((__basic_file<char> *)(this + 0x3c))" identifier (argument_list "((__basic_file<char> *)(this + 0x3c))" ( (call_expression "(__basic_file<char> *)(this + 0x3c)" (parenthesized_expression "(__basic_file<char> *)" ( (binary_expression "__basic_file<char> *" (binary_expression "__basic_file<char" identifier < identifier) > (pointer_expression "*" * identifier)) )) (argument_list "(this + 0x3c)" ( (binary_expression "this + 0x3c" identifier + number_literal) ))) ))))) ;) (expression_statement "*(undefined ***)(this + 4) = &PTR__streambuf_002ff09c;" (assignment_expression "*(undefined ***)(this + 4) = &PTR__streambuf_002ff09c" (pointer_expression "*(undefined ***)(this + 4)" * (cast_expression "(undefined ***)(this + 4)" ( (type_descriptor "undefined ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = (pointer_expression "&PTR__streambuf_002ff09c" & identifier)) ;) (labeled_statement "locale::~locale((locale *)(this + 0x20));" statement_identifier : (ERROR ":" :) (expression_statement "~locale((locale *)(this + 0x20));" (unary_expression "~locale((locale *)(this + 0x20))" ~ (call_expression "locale((locale *)(this + 0x20))" identifier (argument_list "((locale *)(this + 0x20))" ( (cast_expression "(locale *)(this + 0x20)" ( (type_descriptor "locale *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x20)" ( (binary_expression "this + 0x20" identifier + number_literal) ))) )))) ;)) (expression_statement "*(undefined4 *)(this + -4) = 0;" (assignment_expression "*(undefined4 *)(this + -4) = 0" (pointer_expression "*(undefined4 *)(this + -4)" * (cast_expression "(undefined4 *)(this + -4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + -4)" ( (binary_expression "this + -4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)this = 0x2ff934;" (assignment_expression "*(undefined4 *)this = 0x2ff934" (pointer_expression "*(undefined4 *)this" * (cast_expression "(undefined4 *)this" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "*(undefined4 *)(this + -8) = 0x2ff95c;" (assignment_expression "*(undefined4 *)(this + -8) = 0x2ff95c" (pointer_expression "*(undefined4 *)(this + -8)" * (cast_expression "(undefined4 *)(this + -8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + -8)" ( (binary_expression "this + -8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined ***)(this + 0x8c) = &PTR__ios_002ff7b0;" (assignment_expression "*(undefined ***)(this + 0x8c) = &PTR__ios_002ff7b0" (pointer_expression "*(undefined ***)(this + 0x8c)" * (cast_expression "(undefined ***)(this + 0x8c)" ( (type_descriptor "undefined ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) (parenthesized_expression "(this + 0x8c)" ( (binary_expression "this + 0x8c" identifier + number_literal) )))) = (pointer_expression "&PTR__ios_002ff7b0" & identifier)) ;) (labeled_statement "ios_base::~ios_base((ios_base *)(this + 0x8c));" statement_identifier : (ERROR ":" :) (expression_statement "~ios_base((ios_base *)(this + 0x8c));" (unary_expression "~ios_base((ios_base *)(this + 0x8c))" ~ (call_expression "ios_base((ios_base *)(this + 0x8c))" identifier (argument_list "((ios_base *)(this + 0x8c))" ( (cast_expression "(ios_base *)(this + 0x8c)" ( (type_descriptor "ios_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x8c)" ( (binary_expression "this + 0x8c" identifier + number_literal) ))) )))) ;)) (return_statement "return;" return ;) })))
(translation_unit "void FUN_001b2ac0(undefined4 *param_1)\n\n{\n  param_1[-2] = &PTR_FUN_002ff9e8;\n  *param_1 = &PTR_FUN_002ff9fc;\n  param_1[0x23] = &PTR_FUN_002ffa10;\n  param_1[1] = &PTR_FUN_002ff830;\n  FUN_001b0880(param_1 + 1);\n  FUN_00180fe0(param_1 + 0xf);\n  param_1[1] = &PTR_FUN_002ff09c;\n  FUN_00182f00(param_1 + 8);\n  param_1[-1] = 0;\n  *param_1 = &DAT_002ff934;\n  param_1[-2] = &DAT_002ff95c;\n  param_1[0x23] = &PTR_FUN_002ff7b0;\n  FUN_001c5a30(param_1 + 0x23);\n  return;\n}\n\n" (function_definition "void FUN_001b2ac0(undefined4 *param_1)\n\n{\n  param_1[-2] = &PTR_FUN_002ff9e8;\n  *param_1 = &PTR_FUN_002ff9fc;\n  param_1[0x23] = &PTR_FUN_002ffa10;\n  param_1[1] = &PTR_FUN_002ff830;\n  FUN_001b0880(param_1 + 1);\n  FUN_00180fe0(param_1 + 0xf);\n  param_1[1] = &PTR_FUN_002ff09c;\n  FUN_00182f00(param_1 + 8);\n  param_1[-1] = 0;\n  *param_1 = &DAT_002ff934;\n  param_1[-2] = &DAT_002ff95c;\n  param_1[0x23] = &PTR_FUN_002ff7b0;\n  FUN_001c5a30(param_1 + 0x23);\n  return;\n}" primitive_type (function_declarator "FUN_001b2ac0(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  param_1[-2] = &PTR_FUN_002ff9e8;\n  *param_1 = &PTR_FUN_002ff9fc;\n  param_1[0x23] = &PTR_FUN_002ffa10;\n  param_1[1] = &PTR_FUN_002ff830;\n  FUN_001b0880(param_1 + 1);\n  FUN_00180fe0(param_1 + 0xf);\n  param_1[1] = &PTR_FUN_002ff09c;\n  FUN_00182f00(param_1 + 8);\n  param_1[-1] = 0;\n  *param_1 = &DAT_002ff934;\n  param_1[-2] = &DAT_002ff95c;\n  param_1[0x23] = &PTR_FUN_002ff7b0;\n  FUN_001c5a30(param_1 + 0x23);\n  return;\n}" { (expression_statement "param_1[-2] = &PTR_FUN_002ff9e8;" (assignment_expression "param_1[-2] = &PTR_FUN_002ff9e8" (subscript_expression "param_1[-2]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_002ff9e8" & identifier)) ;) (expression_statement "*param_1 = &PTR_FUN_002ff9fc;" (assignment_expression "*param_1 = &PTR_FUN_002ff9fc" (pointer_expression "*param_1" * identifier) = (pointer_expression "&PTR_FUN_002ff9fc" & identifier)) ;) (expression_statement "param_1[0x23] = &PTR_FUN_002ffa10;" (assignment_expression "param_1[0x23] = &PTR_FUN_002ffa10" (subscript_expression "param_1[0x23]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_002ffa10" & identifier)) ;) (expression_statement "param_1[1] = &PTR_FUN_002ff830;" (assignment_expression "param_1[1] = &PTR_FUN_002ff830" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_002ff830" & identifier)) ;) (expression_statement "FUN_001b0880(param_1 + 1);" (call_expression "FUN_001b0880(param_1 + 1)" identifier (argument_list "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) ))) ;) (expression_statement "FUN_00180fe0(param_1 + 0xf);" (call_expression "FUN_00180fe0(param_1 + 0xf)" identifier (argument_list "(param_1 + 0xf)" ( (binary_expression "param_1 + 0xf" identifier + number_literal) ))) ;) (expression_statement "param_1[1] = &PTR_FUN_002ff09c;" (assignment_expression "param_1[1] = &PTR_FUN_002ff09c" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_002ff09c" & identifier)) ;) (expression_statement "FUN_00182f00(param_1 + 8);" (call_expression "FUN_00182f00(param_1 + 8)" identifier (argument_list "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))) ;) (expression_statement "param_1[-1] = 0;" (assignment_expression "param_1[-1] = 0" (subscript_expression "param_1[-1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_1 = &DAT_002ff934;" (assignment_expression "*param_1 = &DAT_002ff934" (pointer_expression "*param_1" * identifier) = (pointer_expression "&DAT_002ff934" & identifier)) ;) (expression_statement "param_1[-2] = &DAT_002ff95c;" (assignment_expression "param_1[-2] = &DAT_002ff95c" (subscript_expression "param_1[-2]" identifier [ number_literal ]) = (pointer_expression "&DAT_002ff95c" & identifier)) ;) (expression_statement "param_1[0x23] = &PTR_FUN_002ff7b0;" (assignment_expression "param_1[0x23] = &PTR_FUN_002ff7b0" (subscript_expression "param_1[0x23]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_002ff7b0" & identifier)) ;) (expression_statement "FUN_001c5a30(param_1 + 0x23);" (call_expression "FUN_001c5a30(param_1 + 0x23)" identifier (argument_list "(param_1 + 0x23)" ( (binary_expression "param_1 + 0x23" 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 { (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 (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 (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 (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (return_statement return ;) })))
(function_definition "void FUN_001b2ac0(undefined4 *param_1)\n\n{\n  param_1[-2] = &PTR_FUN_002ff9e8;\n  *param_1 = &PTR_FUN_002ff9fc;\n  param_1[0x23] = &PTR_FUN_002ffa10;\n  param_1[1] = &PTR_FUN_002ff830;\n  FUN_001b0880(param_1 + 1);\n  FUN_00180fe0(param_1 + 0xf);\n  param_1[1] = &PTR_FUN_002ff09c;\n  FUN_00182f00(param_1 + 8);\n  param_1[-1] = 0;\n  *param_1 = &DAT_002ff934;\n  param_1[-2] = &DAT_002ff95c;\n  param_1[0x23] = &PTR_FUN_002ff7b0;\n  FUN_001c5a30(param_1 + 0x23);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001b2ac0(undefined4 *param_1)" (identifier "FUN_001b2ac0") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  param_1[-2] = &PTR_FUN_002ff9e8;\n  *param_1 = &PTR_FUN_002ff9fc;\n  param_1[0x23] = &PTR_FUN_002ffa10;\n  param_1[1] = &PTR_FUN_002ff830;\n  FUN_001b0880(param_1 + 1);\n  FUN_00180fe0(param_1 + 0xf);\n  param_1[1] = &PTR_FUN_002ff09c;\n  FUN_00182f00(param_1 + 8);\n  param_1[-1] = 0;\n  *param_1 = &DAT_002ff934;\n  param_1[-2] = &DAT_002ff95c;\n  param_1[0x23] = &PTR_FUN_002ff7b0;\n  FUN_001c5a30(param_1 + 0x23);\n  return;\n}" ({ "{") (expression_statement "param_1[-2] = &PTR_FUN_002ff9e8;" (assignment_expression "param_1[-2] = &PTR_FUN_002ff9e8" (subscript_expression "param_1[-2]" (identifier "param_1") ([ "[") (number_literal "-2") (] "]")) (= "=") (pointer_expression "&PTR_FUN_002ff9e8" (& "&") (identifier "PTR_FUN_002ff9e8"))) (; ";")) (expression_statement "*param_1 = &PTR_FUN_002ff9fc;" (assignment_expression "*param_1 = &PTR_FUN_002ff9fc" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (pointer_expression "&PTR_FUN_002ff9fc" (& "&") (identifier "PTR_FUN_002ff9fc"))) (; ";")) (expression_statement "param_1[0x23] = &PTR_FUN_002ffa10;" (assignment_expression "param_1[0x23] = &PTR_FUN_002ffa10" (subscript_expression "param_1[0x23]" (identifier "param_1") ([ "[") (number_literal "0x23") (] "]")) (= "=") (pointer_expression "&PTR_FUN_002ffa10" (& "&") (identifier "PTR_FUN_002ffa10"))) (; ";")) (expression_statement "param_1[1] = &PTR_FUN_002ff830;" (assignment_expression "param_1[1] = &PTR_FUN_002ff830" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (pointer_expression "&PTR_FUN_002ff830" (& "&") (identifier "PTR_FUN_002ff830"))) (; ";")) (expression_statement "FUN_001b0880(param_1 + 1);" (call_expression "FUN_001b0880(param_1 + 1)" (identifier "FUN_001b0880") (argument_list "(param_1 + 1)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")"))) (; ";")) (expression_statement "FUN_00180fe0(param_1 + 0xf);" (call_expression "FUN_00180fe0(param_1 + 0xf)" (identifier "FUN_00180fe0") (argument_list "(param_1 + 0xf)" (( "(") (binary_expression "param_1 + 0xf" (identifier "param_1") (+ "+") (number_literal "0xf")) () ")"))) (; ";")) (expression_statement "param_1[1] = &PTR_FUN_002ff09c;" (assignment_expression "param_1[1] = &PTR_FUN_002ff09c" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (pointer_expression "&PTR_FUN_002ff09c" (& "&") (identifier "PTR_FUN_002ff09c"))) (; ";")) (expression_statement "FUN_00182f00(param_1 + 8);" (call_expression "FUN_00182f00(param_1 + 8)" (identifier "FUN_00182f00") (argument_list "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))) (; ";")) (expression_statement "param_1[-1] = 0;" (assignment_expression "param_1[-1] = 0" (subscript_expression "param_1[-1]" (identifier "param_1") ([ "[") (number_literal "-1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*param_1 = &DAT_002ff934;" (assignment_expression "*param_1 = &DAT_002ff934" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (pointer_expression "&DAT_002ff934" (& "&") (identifier "DAT_002ff934"))) (; ";")) (expression_statement "param_1[-2] = &DAT_002ff95c;" (assignment_expression "param_1[-2] = &DAT_002ff95c" (subscript_expression "param_1[-2]" (identifier "param_1") ([ "[") (number_literal "-2") (] "]")) (= "=") (pointer_expression "&DAT_002ff95c" (& "&") (identifier "DAT_002ff95c"))) (; ";")) (expression_statement "param_1[0x23] = &PTR_FUN_002ff7b0;" (assignment_expression "param_1[0x23] = &PTR_FUN_002ff7b0" (subscript_expression "param_1[0x23]" (identifier "param_1") ([ "[") (number_literal "0x23") (] "]")) (= "=") (pointer_expression "&PTR_FUN_002ff7b0" (& "&") (identifier "PTR_FUN_002ff7b0"))) (; ";")) (expression_statement "FUN_001c5a30(param_1 + 0x23);" (call_expression "FUN_001c5a30(param_1 + 0x23)" (identifier "FUN_001c5a30") (argument_list "(param_1 + 0x23)" (( "(") (binary_expression "param_1 + 0x23" (identifier "param_1") (+ "+") (number_literal "0x23")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

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

{
  *(type_1 *)(var_1 + -8) = 0x2ff9e8;
  *(type_1 *)var_1 = 0x2ff9fc;
  *(type_1 *)(var_1 + 0x8c) = 0x2ffa10;
  *(type_2 ***)(var_1 + 4) = &PTR__filebuf_002ff830;
  filebuf::var_2((type_3 *)(var_1 + 4));
  var_3<var_4>::~var_3((var_3<var_4> *)(var_1 + 0x3c));
  *(type_2 ***)(var_1 + 4) = &PTR__streambuf_002ff09c;
  locale::~var_5((var_5 *)(var_1 + 0x20));
  *(type_1 *)(var_1 + -4) = 0;
  *(type_1 *)var_1 = 0x2ff934;
  *(type_1 *)(var_1 + -8) = 0x2ff95c;
  *(type_2 ***)(var_1 + 0x8c) = &PTR__ios_002ff7b0;
  ios_base::~var_6((var_6 *)(var_1 + 0x8c));
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (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 (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: (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 (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(undefined4 *param_1)

{
  param_1[-2] = &PTR_FUN_002ff9e8;
  *param_1 = &PTR_FUN_002ff9fc;
  param_1[0x23] = &PTR_FUN_002ffa10;
  param_1[1] = &PTR_FUN_002ff830;
  FUN_001b0880(param_1 + 1);
  FUN_00180fe0(param_1 + 0xf);
  param_1[1] = &PTR_FUN_002ff09c;
  FUN_00182f00(param_1 + 8);
  param_1[-1] = 0;
  *param_1 = &DAT_002ff934;
  param_1[-2] = &DAT_002ff95c;
  param_1[0x23] = &PTR_FUN_002ff7b0;
  FUN_001c5a30(param_1 + 0x23);
  return;
}

