
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::ifstream::~ifstream() */

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

{
  *(undefined ***)(this + 0x90) = &PTR__ifstream_003ac8e0;
  *(undefined ***)this = &PTR__ifstream_003ac8cc;
  *(undefined ***)(this + 8) = &PTR__filebuf_003ac850;
  filebuf::close((filebuf *)(this + 8));
  __basic_file<char>::~__basic_file((__basic_file<char> *)(this + 0x40));
  *(undefined ***)(this + 8) = &PTR__streambuf_003ac0bc;
  locale::~locale((locale *)(this + 0x24));
  *(undefined4 *)(this + 4) = 0;
  *(undefined **)this = &DAT_003ac894;
  *(undefined ***)(this + 0x90) = &PTR__ios_003ac7d0;
  ios_base::~ios_base((ios_base *)(this + 0x90));
  operator_delete(this);
  return;
}



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

void FUN_002312b0(undefined4 *param_1)

{
  param_1[0x24] = &PTR_FUN_003ac8e0;
  *param_1 = &PTR_FUN_003ac8cc;
  param_1[2] = &PTR_FUN_003ac850;
  FUN_0022f110(param_1 + 2);
  FUN_001ff870(param_1 + 0x10);
  param_1[2] = &PTR_FUN_003ac0bc;
  FUN_00201790(param_1 + 9);
  param_1[1] = 0;
  *param_1 = &DAT_003ac894;
  param_1[0x24] = &PTR_FUN_003ac7d0;
  FUN_002442c0(param_1 + 0x24);
  FUN_001ff030(param_1);
  return;
}


PUSH ESI
PUSH EBX
CALL 0x00036f20
ADD EBX,0x17dd49
SUB ESP,0x10
MOV ESI,dword ptr [ESP + 0x1c]
LEA EAX,[EBX + 0xffffd8c0]
LEA EDX,[EAX + 0xc]
ADD EAX,0x20
MOV dword ptr [ESI + 0x90],EAX
LEA EAX,[EBX + 0xffffd848]
MOV dword ptr [ESI],EDX
ADD EAX,0x8
MOV dword ptr [ESI + 0x8],EAX
LEA EAX,[ESI + 0x8]
PUSH EAX
CALL 0x0022f110
LEA EAX,[ESI + 0x40]
MOV dword ptr [ESP],EAX
CALL 0x001ff870
LEA EAX,[EBX + 0xffffd0b4]
ADD EAX,0x8
MOV dword ptr [ESI + 0x8],EAX
LEA EAX,[ESI + 0x24]
MOV dword ptr [ESP],EAX
CALL 0x00201790
LEA EAX,[EBX + 0xffffd894]
MOV dword ptr [ESI + 0x4],0x0
MOV dword ptr [ESI],EAX
LEA EAX,[EBX + 0xffffd7c8]
ADD EAX,0x8
MOV dword ptr [ESI + 0x90],EAX
LEA EAX,[ESI + 0x90]
MOV dword ptr [ESP],EAX
CALL 0x002442c0
MOV dword ptr [ESP],ESI
CALL 0x001ff030
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_002312b0(undefined4 *param_1)\n\n{\n  param_1[0x24] = &PTR_FUN_003ac8e0;\n  *param_1 = &PTR_FUN_003ac8cc;\n  param_1[2] = &PTR_FUN_003ac850;\n  FUN_0022f110(param_1 + 2);\n  FUN_001ff870(param_1 + 0x10);\n  param_1[2] = &PTR_FUN_003ac0bc;\n  FUN_00201790(param_1 + 9);\n  param_1[1] = 0;\n  *param_1 = &DAT_003ac894;\n  param_1[0x24] = &PTR_FUN_003ac7d0;\n  FUN_002442c0(param_1 + 0x24);\n  FUN_001ff030(param_1);\n  return;\n}\n\n" comment (function_definition "void FUN_002312b0(undefined4 *param_1)\n\n{\n  param_1[0x24] = &PTR_FUN_003ac8e0;\n  *param_1 = &PTR_FUN_003ac8cc;\n  param_1[2] = &PTR_FUN_003ac850;\n  FUN_0022f110(param_1 + 2);\n  FUN_001ff870(param_1 + 0x10);\n  param_1[2] = &PTR_FUN_003ac0bc;\n  FUN_00201790(param_1 + 9);\n  param_1[1] = 0;\n  *param_1 = &DAT_003ac894;\n  param_1[0x24] = &PTR_FUN_003ac7d0;\n  FUN_002442c0(param_1 + 0x24);\n  FUN_001ff030(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_002312b0(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[0x24] = &PTR_FUN_003ac8e0;\n  *param_1 = &PTR_FUN_003ac8cc;\n  param_1[2] = &PTR_FUN_003ac850;\n  FUN_0022f110(param_1 + 2);\n  FUN_001ff870(param_1 + 0x10);\n  param_1[2] = &PTR_FUN_003ac0bc;\n  FUN_00201790(param_1 + 9);\n  param_1[1] = 0;\n  *param_1 = &DAT_003ac894;\n  param_1[0x24] = &PTR_FUN_003ac7d0;\n  FUN_002442c0(param_1 + 0x24);\n  FUN_001ff030(param_1);\n  return;\n}" { (expression_statement "param_1[0x24] = &PTR_FUN_003ac8e0;" (assignment_expression "param_1[0x24] = &PTR_FUN_003ac8e0" (subscript_expression "param_1[0x24]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_003ac8e0" & identifier)) ;) (expression_statement "*param_1 = &PTR_FUN_003ac8cc;" (assignment_expression "*param_1 = &PTR_FUN_003ac8cc" (pointer_expression "*param_1" * identifier) = (pointer_expression "&PTR_FUN_003ac8cc" & identifier)) ;) (expression_statement "param_1[2] = &PTR_FUN_003ac850;" (assignment_expression "param_1[2] = &PTR_FUN_003ac850" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_003ac850" & identifier)) ;) (expression_statement "FUN_0022f110(param_1 + 2);" (call_expression "FUN_0022f110(param_1 + 2)" identifier (argument_list "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) ))) ;) (expression_statement "FUN_001ff870(param_1 + 0x10);" (call_expression "FUN_001ff870(param_1 + 0x10)" identifier (argument_list "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))) ;) (expression_statement "param_1[2] = &PTR_FUN_003ac0bc;" (assignment_expression "param_1[2] = &PTR_FUN_003ac0bc" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_003ac0bc" & identifier)) ;) (expression_statement "FUN_00201790(param_1 + 9);" (call_expression "FUN_00201790(param_1 + 9)" identifier (argument_list "(param_1 + 9)" ( (binary_expression "param_1 + 9" 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_003ac894;" (assignment_expression "*param_1 = &DAT_003ac894" (pointer_expression "*param_1" * identifier) = (pointer_expression "&DAT_003ac894" & identifier)) ;) (expression_statement "param_1[0x24] = &PTR_FUN_003ac7d0;" (assignment_expression "param_1[0x24] = &PTR_FUN_003ac7d0" (subscript_expression "param_1[0x24]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_003ac7d0" & identifier)) ;) (expression_statement "FUN_002442c0(param_1 + 0x24);" (call_expression "FUN_002442c0(param_1 + 0x24)" identifier (argument_list "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))) ;) (expression_statement "FUN_001ff030(param_1);" (call_expression "FUN_001ff030(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* std::ifstream::~ifstream() */\n\nvoid __thiscall std::ifstream::~ifstream(ifstream *this)\n\n{\n  *(undefined ***)(this + 0x90) = &PTR__ifstream_003ac8e0;\n  *(undefined ***)this = &PTR__ifstream_003ac8cc;\n  *(undefined ***)(this + 8) = &PTR__filebuf_003ac850;\n  filebuf::close((filebuf *)(this + 8));\n  __basic_file<char>::~__basic_file((__basic_file<char> *)(this + 0x40));\n  *(undefined ***)(this + 8) = &PTR__streambuf_003ac0bc;\n  locale::~locale((locale *)(this + 0x24));\n  *(undefined4 *)(this + 4) = 0;\n  *(undefined **)this = &DAT_003ac894;\n  *(undefined ***)(this + 0x90) = &PTR__ios_003ac7d0;\n  ios_base::~ios_base((ios_base *)(this + 0x90));\n  operator_delete(this);\n  return;\n}\n\n" comment comment (function_definition "void __thiscall std::ifstream::~ifstream(ifstream *this)\n\n{\n  *(undefined ***)(this + 0x90) = &PTR__ifstream_003ac8e0;\n  *(undefined ***)this = &PTR__ifstream_003ac8cc;\n  *(undefined ***)(this + 8) = &PTR__filebuf_003ac850;\n  filebuf::close((filebuf *)(this + 8));\n  __basic_file<char>::~__basic_file((__basic_file<char> *)(this + 0x40));\n  *(undefined ***)(this + 8) = &PTR__streambuf_003ac0bc;\n  locale::~locale((locale *)(this + 0x24));\n  *(undefined4 *)(this + 4) = 0;\n  *(undefined **)this = &DAT_003ac894;\n  *(undefined ***)(this + 0x90) = &PTR__ios_003ac7d0;\n  ios_base::~ios_base((ios_base *)(this + 0x90));\n  operator_delete(this);\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::ifstream::~" identifier : : identifier : : ~) (function_declarator "ifstream(ifstream *this)" identifier (parameter_list "(ifstream *this)" ( (parameter_declaration "ifstream *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  *(undefined ***)(this + 0x90) = &PTR__ifstream_003ac8e0;\n  *(undefined ***)this = &PTR__ifstream_003ac8cc;\n  *(undefined ***)(this + 8) = &PTR__filebuf_003ac850;\n  filebuf::close((filebuf *)(this + 8));\n  __basic_file<char>::~__basic_file((__basic_file<char> *)(this + 0x40));\n  *(undefined ***)(this + 8) = &PTR__streambuf_003ac0bc;\n  locale::~locale((locale *)(this + 0x24));\n  *(undefined4 *)(this + 4) = 0;\n  *(undefined **)this = &DAT_003ac894;\n  *(undefined ***)(this + 0x90) = &PTR__ios_003ac7d0;\n  ios_base::~ios_base((ios_base *)(this + 0x90));\n  operator_delete(this);\n  return;\n}" { (expression_statement "*(undefined ***)(this + 0x90) = &PTR__ifstream_003ac8e0;" (assignment_expression "*(undefined ***)(this + 0x90) = &PTR__ifstream_003ac8e0" (pointer_expression "*(undefined ***)(this + 0x90)" * (cast_expression "(undefined ***)(this + 0x90)" ( (type_descriptor "undefined ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) (parenthesized_expression "(this + 0x90)" ( (binary_expression "this + 0x90" identifier + number_literal) )))) = (pointer_expression "&PTR__ifstream_003ac8e0" & identifier)) ;) (expression_statement "*(undefined ***)this = &PTR__ifstream_003ac8cc;" (assignment_expression "*(undefined ***)this = &PTR__ifstream_003ac8cc" (pointer_expression "*(undefined ***)this" * (cast_expression "(undefined ***)this" ( (type_descriptor "undefined ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) identifier)) = (pointer_expression "&PTR__ifstream_003ac8cc" & identifier)) ;) (expression_statement "*(undefined ***)(this + 8) = &PTR__filebuf_003ac850;" (assignment_expression "*(undefined ***)(this + 8) = &PTR__filebuf_003ac850" (pointer_expression "*(undefined ***)(this + 8)" * (cast_expression "(undefined ***)(this + 8)" ( (type_descriptor "undefined ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) = (pointer_expression "&PTR__filebuf_003ac850" & identifier)) ;) (labeled_statement "filebuf::close((filebuf *)(this + 8));" statement_identifier : (ERROR ":" :) (expression_statement "close((filebuf *)(this + 8));" (call_expression "close((filebuf *)(this + 8))" identifier (argument_list "((filebuf *)(this + 8))" ( (cast_expression "(filebuf *)(this + 8)" ( (type_descriptor "filebuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) ))) ))) ;)) (expression_statement "__basic_file<char>::~__basic_file((__basic_file<char> *)(this + 0x40));" (binary_expression "__basic_file<char>::~__basic_file((__basic_file<char> *)(this + 0x40))" (binary_expression "__basic_file<char" identifier < identifier) > (ERROR "::" : :) (unary_expression "~__basic_file((__basic_file<char> *)(this + 0x40))" ~ (call_expression "__basic_file((__basic_file<char> *)(this + 0x40))" identifier (argument_list "((__basic_file<char> *)(this + 0x40))" ( (call_expression "(__basic_file<char> *)(this + 0x40)" (parenthesized_expression "(__basic_file<char> *)" ( (binary_expression "__basic_file<char> *" (binary_expression "__basic_file<char" identifier < identifier) > (pointer_expression "*" * identifier)) )) (argument_list "(this + 0x40)" ( (binary_expression "this + 0x40" identifier + number_literal) ))) ))))) ;) (expression_statement "*(undefined ***)(this + 8) = &PTR__streambuf_003ac0bc;" (assignment_expression "*(undefined ***)(this + 8) = &PTR__streambuf_003ac0bc" (pointer_expression "*(undefined ***)(this + 8)" * (cast_expression "(undefined ***)(this + 8)" ( (type_descriptor "undefined ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) = (pointer_expression "&PTR__streambuf_003ac0bc" & identifier)) ;) (labeled_statement "locale::~locale((locale *)(this + 0x24));" statement_identifier : (ERROR ":" :) (expression_statement "~locale((locale *)(this + 0x24));" (unary_expression "~locale((locale *)(this + 0x24))" ~ (call_expression "locale((locale *)(this + 0x24))" identifier (argument_list "((locale *)(this + 0x24))" ( (cast_expression "(locale *)(this + 0x24)" ( (type_descriptor "locale *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x24)" ( (binary_expression "this + 0x24" 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 "*(undefined **)this = &DAT_003ac894;" (assignment_expression "*(undefined **)this = &DAT_003ac894" (pointer_expression "*(undefined **)this" * (cast_expression "(undefined **)this" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = (pointer_expression "&DAT_003ac894" & identifier)) ;) (expression_statement "*(undefined ***)(this + 0x90) = &PTR__ios_003ac7d0;" (assignment_expression "*(undefined ***)(this + 0x90) = &PTR__ios_003ac7d0" (pointer_expression "*(undefined ***)(this + 0x90)" * (cast_expression "(undefined ***)(this + 0x90)" ( (type_descriptor "undefined ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) (parenthesized_expression "(this + 0x90)" ( (binary_expression "this + 0x90" identifier + number_literal) )))) = (pointer_expression "&PTR__ios_003ac7d0" & identifier)) ;) (labeled_statement "ios_base::~ios_base((ios_base *)(this + 0x90));" statement_identifier : (ERROR ":" :) (expression_statement "~ios_base((ios_base *)(this + 0x90));" (unary_expression "~ios_base((ios_base *)(this + 0x90))" ~ (call_expression "ios_base((ios_base *)(this + 0x90))" identifier (argument_list "((ios_base *)(this + 0x90))" ( (cast_expression "(ios_base *)(this + 0x90)" ( (type_descriptor "ios_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x90)" ( (binary_expression "this + 0x90" identifier + number_literal) ))) )))) ;)) (expression_statement "operator_delete(this);" (call_expression "operator_delete(this)" identifier (argument_list "(this)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_002312b0(undefined4 *param_1)\n\n{\n  param_1[0x24] = &PTR_FUN_003ac8e0;\n  *param_1 = &PTR_FUN_003ac8cc;\n  param_1[2] = &PTR_FUN_003ac850;\n  FUN_0022f110(param_1 + 2);\n  FUN_001ff870(param_1 + 0x10);\n  param_1[2] = &PTR_FUN_003ac0bc;\n  FUN_00201790(param_1 + 9);\n  param_1[1] = 0;\n  *param_1 = &DAT_003ac894;\n  param_1[0x24] = &PTR_FUN_003ac7d0;\n  FUN_002442c0(param_1 + 0x24);\n  FUN_001ff030(param_1);\n  return;\n}\n\n" (function_definition "void FUN_002312b0(undefined4 *param_1)\n\n{\n  param_1[0x24] = &PTR_FUN_003ac8e0;\n  *param_1 = &PTR_FUN_003ac8cc;\n  param_1[2] = &PTR_FUN_003ac850;\n  FUN_0022f110(param_1 + 2);\n  FUN_001ff870(param_1 + 0x10);\n  param_1[2] = &PTR_FUN_003ac0bc;\n  FUN_00201790(param_1 + 9);\n  param_1[1] = 0;\n  *param_1 = &DAT_003ac894;\n  param_1[0x24] = &PTR_FUN_003ac7d0;\n  FUN_002442c0(param_1 + 0x24);\n  FUN_001ff030(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_002312b0(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[0x24] = &PTR_FUN_003ac8e0;\n  *param_1 = &PTR_FUN_003ac8cc;\n  param_1[2] = &PTR_FUN_003ac850;\n  FUN_0022f110(param_1 + 2);\n  FUN_001ff870(param_1 + 0x10);\n  param_1[2] = &PTR_FUN_003ac0bc;\n  FUN_00201790(param_1 + 9);\n  param_1[1] = 0;\n  *param_1 = &DAT_003ac894;\n  param_1[0x24] = &PTR_FUN_003ac7d0;\n  FUN_002442c0(param_1 + 0x24);\n  FUN_001ff030(param_1);\n  return;\n}" { (expression_statement "param_1[0x24] = &PTR_FUN_003ac8e0;" (assignment_expression "param_1[0x24] = &PTR_FUN_003ac8e0" (subscript_expression "param_1[0x24]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_003ac8e0" & identifier)) ;) (expression_statement "*param_1 = &PTR_FUN_003ac8cc;" (assignment_expression "*param_1 = &PTR_FUN_003ac8cc" (pointer_expression "*param_1" * identifier) = (pointer_expression "&PTR_FUN_003ac8cc" & identifier)) ;) (expression_statement "param_1[2] = &PTR_FUN_003ac850;" (assignment_expression "param_1[2] = &PTR_FUN_003ac850" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_003ac850" & identifier)) ;) (expression_statement "FUN_0022f110(param_1 + 2);" (call_expression "FUN_0022f110(param_1 + 2)" identifier (argument_list "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) ))) ;) (expression_statement "FUN_001ff870(param_1 + 0x10);" (call_expression "FUN_001ff870(param_1 + 0x10)" identifier (argument_list "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))) ;) (expression_statement "param_1[2] = &PTR_FUN_003ac0bc;" (assignment_expression "param_1[2] = &PTR_FUN_003ac0bc" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_003ac0bc" & identifier)) ;) (expression_statement "FUN_00201790(param_1 + 9);" (call_expression "FUN_00201790(param_1 + 9)" identifier (argument_list "(param_1 + 9)" ( (binary_expression "param_1 + 9" 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_003ac894;" (assignment_expression "*param_1 = &DAT_003ac894" (pointer_expression "*param_1" * identifier) = (pointer_expression "&DAT_003ac894" & identifier)) ;) (expression_statement "param_1[0x24] = &PTR_FUN_003ac7d0;" (assignment_expression "param_1[0x24] = &PTR_FUN_003ac7d0" (subscript_expression "param_1[0x24]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_003ac7d0" & identifier)) ;) (expression_statement "FUN_002442c0(param_1 + 0x24);" (call_expression "FUN_002442c0(param_1 + 0x24)" identifier (argument_list "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))) ;) (expression_statement "FUN_001ff030(param_1);" (call_expression "FUN_001ff030(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (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 (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 (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_002312b0(undefined4 *param_1)\n\n{\n  param_1[0x24] = &PTR_FUN_003ac8e0;\n  *param_1 = &PTR_FUN_003ac8cc;\n  param_1[2] = &PTR_FUN_003ac850;\n  FUN_0022f110(param_1 + 2);\n  FUN_001ff870(param_1 + 0x10);\n  param_1[2] = &PTR_FUN_003ac0bc;\n  FUN_00201790(param_1 + 9);\n  param_1[1] = 0;\n  *param_1 = &DAT_003ac894;\n  param_1[0x24] = &PTR_FUN_003ac7d0;\n  FUN_002442c0(param_1 + 0x24);\n  FUN_001ff030(param_1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_002312b0(undefined4 *param_1)" (identifier "FUN_002312b0") (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[0x24] = &PTR_FUN_003ac8e0;\n  *param_1 = &PTR_FUN_003ac8cc;\n  param_1[2] = &PTR_FUN_003ac850;\n  FUN_0022f110(param_1 + 2);\n  FUN_001ff870(param_1 + 0x10);\n  param_1[2] = &PTR_FUN_003ac0bc;\n  FUN_00201790(param_1 + 9);\n  param_1[1] = 0;\n  *param_1 = &DAT_003ac894;\n  param_1[0x24] = &PTR_FUN_003ac7d0;\n  FUN_002442c0(param_1 + 0x24);\n  FUN_001ff030(param_1);\n  return;\n}" ({ "{") (expression_statement "param_1[0x24] = &PTR_FUN_003ac8e0;" (assignment_expression "param_1[0x24] = &PTR_FUN_003ac8e0" (subscript_expression "param_1[0x24]" (identifier "param_1") ([ "[") (number_literal "0x24") (] "]")) (= "=") (pointer_expression "&PTR_FUN_003ac8e0" (& "&") (identifier "PTR_FUN_003ac8e0"))) (; ";")) (expression_statement "*param_1 = &PTR_FUN_003ac8cc;" (assignment_expression "*param_1 = &PTR_FUN_003ac8cc" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (pointer_expression "&PTR_FUN_003ac8cc" (& "&") (identifier "PTR_FUN_003ac8cc"))) (; ";")) (expression_statement "param_1[2] = &PTR_FUN_003ac850;" (assignment_expression "param_1[2] = &PTR_FUN_003ac850" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (pointer_expression "&PTR_FUN_003ac850" (& "&") (identifier "PTR_FUN_003ac850"))) (; ";")) (expression_statement "FUN_0022f110(param_1 + 2);" (call_expression "FUN_0022f110(param_1 + 2)" (identifier "FUN_0022f110") (argument_list "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")"))) (; ";")) (expression_statement "FUN_001ff870(param_1 + 0x10);" (call_expression "FUN_001ff870(param_1 + 0x10)" (identifier "FUN_001ff870") (argument_list "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))) (; ";")) (expression_statement "param_1[2] = &PTR_FUN_003ac0bc;" (assignment_expression "param_1[2] = &PTR_FUN_003ac0bc" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (pointer_expression "&PTR_FUN_003ac0bc" (& "&") (identifier "PTR_FUN_003ac0bc"))) (; ";")) (expression_statement "FUN_00201790(param_1 + 9);" (call_expression "FUN_00201790(param_1 + 9)" (identifier "FUN_00201790") (argument_list "(param_1 + 9)" (( "(") (binary_expression "param_1 + 9" (identifier "param_1") (+ "+") (number_literal "9")) () ")"))) (; ";")) (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_003ac894;" (assignment_expression "*param_1 = &DAT_003ac894" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (pointer_expression "&DAT_003ac894" (& "&") (identifier "DAT_003ac894"))) (; ";")) (expression_statement "param_1[0x24] = &PTR_FUN_003ac7d0;" (assignment_expression "param_1[0x24] = &PTR_FUN_003ac7d0" (subscript_expression "param_1[0x24]" (identifier "param_1") ([ "[") (number_literal "0x24") (] "]")) (= "=") (pointer_expression "&PTR_FUN_003ac7d0" (& "&") (identifier "PTR_FUN_003ac7d0"))) (; ";")) (expression_statement "FUN_002442c0(param_1 + 0x24);" (call_expression "FUN_002442c0(param_1 + 0x24)" (identifier "FUN_002442c0") (argument_list "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")"))) (; ";")) (expression_statement "FUN_001ff030(param_1);" (call_expression "FUN_001ff030(param_1)" (identifier "FUN_001ff030") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::ifstream::~ifstream() */

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

{
  *(type_1 ***)(var_1 + 0x90) = &PTR__ifstream_003ac8e0;
  *(type_1 ***)var_1 = &PTR__ifstream_003ac8cc;
  *(type_1 ***)(var_1 + 8) = &PTR__filebuf_003ac850;
  filebuf::var_2((type_2 *)(var_1 + 8));
  var_3<var_4>::~var_3((var_3<var_4> *)(var_1 + 0x40));
  *(type_1 ***)(var_1 + 8) = &PTR__streambuf_003ac0bc;
  locale::~var_5((var_5 *)(var_1 + 0x24));
  *(type_3 *)(var_1 + 4) = 0;
  *(type_1 **)var_1 = &DAT_003ac894;
  *(type_1 ***)(var_1 + 0x90) = &PTR__ios_003ac7d0;
  ios_base::~var_6((var_6 *)(var_1 + 0x90));
  var_7(var_1);
  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 (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 (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(undefined4 *param_1)

{
  param_1[0x24] = &PTR_FUN_003ac8e0;
  *param_1 = &PTR_FUN_003ac8cc;
  param_1[2] = &PTR_FUN_003ac850;
  FUN_0022f110(param_1 + 2);
  FUN_001ff870(param_1 + 0x10);
  param_1[2] = &PTR_FUN_003ac0bc;
  FUN_00201790(param_1 + 9);
  param_1[1] = 0;
  *param_1 = &DAT_003ac894;
  param_1[0x24] = &PTR_FUN_003ac7d0;
  FUN_002442c0(param_1 + 0x24);
  FUN_001ff030(param_1);
  return;
}

