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

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

{
  *(undefined4 *)(this + 0x94) = 0x38cab8;
  *(undefined4 *)this = 0x38caa4;
  *(undefined ***)(this + 8) = &PTR__wfilebuf_0038ca28;
  wfilebuf::close((wfilebuf *)(this + 8));
  __basic_file<char>::~__basic_file((__basic_file<char> *)(this + 0x40));
  *(undefined ***)(this + 8) = &PTR__wstreambuf_0038c0e4;
  locale::~locale((locale *)(this + 0x24));
  *(undefined4 *)(this + 4) = 0;
  *(undefined4 *)this = 0x38ca6c;
  *(undefined ***)(this + 0x94) = &PTR__wios_0038c7c8;
  ios_base::~ios_base((ios_base *)(this + 0x94));
  return;
}



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

void FUN_0021bd10(undefined4 *param_1)

{
  param_1[0x25] = &PTR_FUN_0038cab8;
  *param_1 = &PTR_FUN_0038caa4;
  param_1[2] = &PTR_FUN_0038ca28;
  FUN_002199f0(param_1 + 2);
  FUN_001e75f0(param_1 + 0x10);
  param_1[2] = &PTR_FUN_0038c0e4;
  FUN_001e9510(param_1 + 9);
  param_1[1] = 0;
  *param_1 = &DAT_0038ca6c;
  param_1[0x25] = &PTR_FUN_0038c7c8;
  FUN_0022c040(param_1 + 0x25);
  return;
}


PUSH ESI
PUSH EBX
CALL 0x00035840
ADD EBX,0x1732e9
SUB ESP,0x10
MOV ESI,dword ptr [ESP + 0x1c]
LEA EAX,[EBX + 0xffffda98]
LEA EDX,[EAX + 0xc]
ADD EAX,0x20
MOV dword ptr [ESI + 0x94],EAX
LEA EAX,[EBX + 0xffffda20]
MOV dword ptr [ESI],EDX
ADD EAX,0x8
MOV dword ptr [ESI + 0x8],EAX
LEA EAX,[ESI + 0x8]
PUSH EAX
CALL 0x002199f0
LEA EAX,[ESI + 0x40]
MOV dword ptr [ESP],EAX
CALL 0x001e75f0
LEA EAX,[EBX + 0xffffd0dc]
ADD EAX,0x8
MOV dword ptr [ESI + 0x8],EAX
LEA EAX,[ESI + 0x24]
ADD ESI,0x94
MOV dword ptr [ESP],EAX
CALL 0x001e9510
LEA EAX,[EBX + 0xffffda6c]
MOV dword ptr [ESI + 0xffffff70],0x0
MOV dword ptr [ESI + 0xffffff6c],EAX
LEA EAX,[EBX + 0xffffd7c0]
ADD EAX,0x8
MOV dword ptr [ESI],EAX
MOV dword ptr [ESP],ESI
CALL 0x0022c040
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_0021bd10(undefined4 *param_1)\n\n{\n  param_1[0x25] = &PTR_FUN_0038cab8;\n  *param_1 = &PTR_FUN_0038caa4;\n  param_1[2] = &PTR_FUN_0038ca28;\n  FUN_002199f0(param_1 + 2);\n  FUN_001e75f0(param_1 + 0x10);\n  param_1[2] = &PTR_FUN_0038c0e4;\n  FUN_001e9510(param_1 + 9);\n  param_1[1] = 0;\n  *param_1 = &DAT_0038ca6c;\n  param_1[0x25] = &PTR_FUN_0038c7c8;\n  FUN_0022c040(param_1 + 0x25);\n  return;\n}\n\n" comment (function_definition "void FUN_0021bd10(undefined4 *param_1)\n\n{\n  param_1[0x25] = &PTR_FUN_0038cab8;\n  *param_1 = &PTR_FUN_0038caa4;\n  param_1[2] = &PTR_FUN_0038ca28;\n  FUN_002199f0(param_1 + 2);\n  FUN_001e75f0(param_1 + 0x10);\n  param_1[2] = &PTR_FUN_0038c0e4;\n  FUN_001e9510(param_1 + 9);\n  param_1[1] = 0;\n  *param_1 = &DAT_0038ca6c;\n  param_1[0x25] = &PTR_FUN_0038c7c8;\n  FUN_0022c040(param_1 + 0x25);\n  return;\n}" primitive_type (function_declarator "FUN_0021bd10(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[0x25] = &PTR_FUN_0038cab8;\n  *param_1 = &PTR_FUN_0038caa4;\n  param_1[2] = &PTR_FUN_0038ca28;\n  FUN_002199f0(param_1 + 2);\n  FUN_001e75f0(param_1 + 0x10);\n  param_1[2] = &PTR_FUN_0038c0e4;\n  FUN_001e9510(param_1 + 9);\n  param_1[1] = 0;\n  *param_1 = &DAT_0038ca6c;\n  param_1[0x25] = &PTR_FUN_0038c7c8;\n  FUN_0022c040(param_1 + 0x25);\n  return;\n}" { (expression_statement "param_1[0x25] = &PTR_FUN_0038cab8;" (assignment_expression "param_1[0x25] = &PTR_FUN_0038cab8" (subscript_expression "param_1[0x25]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_0038cab8" & identifier)) ;) (expression_statement "*param_1 = &PTR_FUN_0038caa4;" (assignment_expression "*param_1 = &PTR_FUN_0038caa4" (pointer_expression "*param_1" * identifier) = (pointer_expression "&PTR_FUN_0038caa4" & identifier)) ;) (expression_statement "param_1[2] = &PTR_FUN_0038ca28;" (assignment_expression "param_1[2] = &PTR_FUN_0038ca28" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_0038ca28" & identifier)) ;) (expression_statement "FUN_002199f0(param_1 + 2);" (call_expression "FUN_002199f0(param_1 + 2)" identifier (argument_list "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) ))) ;) (expression_statement "FUN_001e75f0(param_1 + 0x10);" (call_expression "FUN_001e75f0(param_1 + 0x10)" identifier (argument_list "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))) ;) (expression_statement "param_1[2] = &PTR_FUN_0038c0e4;" (assignment_expression "param_1[2] = &PTR_FUN_0038c0e4" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_0038c0e4" & identifier)) ;) (expression_statement "FUN_001e9510(param_1 + 9);" (call_expression "FUN_001e9510(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_0038ca6c;" (assignment_expression "*param_1 = &DAT_0038ca6c" (pointer_expression "*param_1" * identifier) = (pointer_expression "&DAT_0038ca6c" & identifier)) ;) (expression_statement "param_1[0x25] = &PTR_FUN_0038c7c8;" (assignment_expression "param_1[0x25] = &PTR_FUN_0038c7c8" (subscript_expression "param_1[0x25]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_0038c7c8" & identifier)) ;) (expression_statement "FUN_0022c040(param_1 + 0x25);" (call_expression "FUN_0022c040(param_1 + 0x25)" identifier (argument_list "(param_1 + 0x25)" ( (binary_expression "param_1 + 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/* std::wifstream::~wifstream() */\n\nvoid __thiscall std::wifstream::~wifstream(wifstream *this)\n\n{\n  *(undefined4 *)(this + 0x94) = 0x38cab8;\n  *(undefined4 *)this = 0x38caa4;\n  *(undefined ***)(this + 8) = &PTR__wfilebuf_0038ca28;\n  wfilebuf::close((wfilebuf *)(this + 8));\n  __basic_file<char>::~__basic_file((__basic_file<char> *)(this + 0x40));\n  *(undefined ***)(this + 8) = &PTR__wstreambuf_0038c0e4;\n  locale::~locale((locale *)(this + 0x24));\n  *(undefined4 *)(this + 4) = 0;\n  *(undefined4 *)this = 0x38ca6c;\n  *(undefined ***)(this + 0x94) = &PTR__wios_0038c7c8;\n  ios_base::~ios_base((ios_base *)(this + 0x94));\n  return;\n}\n\n" comment comment (function_definition "void __thiscall std::wifstream::~wifstream(wifstream *this)\n\n{\n  *(undefined4 *)(this + 0x94) = 0x38cab8;\n  *(undefined4 *)this = 0x38caa4;\n  *(undefined ***)(this + 8) = &PTR__wfilebuf_0038ca28;\n  wfilebuf::close((wfilebuf *)(this + 8));\n  __basic_file<char>::~__basic_file((__basic_file<char> *)(this + 0x40));\n  *(undefined ***)(this + 8) = &PTR__wstreambuf_0038c0e4;\n  locale::~locale((locale *)(this + 0x24));\n  *(undefined4 *)(this + 4) = 0;\n  *(undefined4 *)this = 0x38ca6c;\n  *(undefined ***)(this + 0x94) = &PTR__wios_0038c7c8;\n  ios_base::~ios_base((ios_base *)(this + 0x94));\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::wifstream::~" identifier : : identifier : : ~) (function_declarator "wifstream(wifstream *this)" identifier (parameter_list "(wifstream *this)" ( (parameter_declaration "wifstream *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  *(undefined4 *)(this + 0x94) = 0x38cab8;\n  *(undefined4 *)this = 0x38caa4;\n  *(undefined ***)(this + 8) = &PTR__wfilebuf_0038ca28;\n  wfilebuf::close((wfilebuf *)(this + 8));\n  __basic_file<char>::~__basic_file((__basic_file<char> *)(this + 0x40));\n  *(undefined ***)(this + 8) = &PTR__wstreambuf_0038c0e4;\n  locale::~locale((locale *)(this + 0x24));\n  *(undefined4 *)(this + 4) = 0;\n  *(undefined4 *)this = 0x38ca6c;\n  *(undefined ***)(this + 0x94) = &PTR__wios_0038c7c8;\n  ios_base::~ios_base((ios_base *)(this + 0x94));\n  return;\n}" { (expression_statement "*(undefined4 *)(this + 0x94) = 0x38cab8;" (assignment_expression "*(undefined4 *)(this + 0x94) = 0x38cab8" (pointer_expression "*(undefined4 *)(this + 0x94)" * (cast_expression "(undefined4 *)(this + 0x94)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x94)" ( (binary_expression "this + 0x94" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)this = 0x38caa4;" (assignment_expression "*(undefined4 *)this = 0x38caa4" (pointer_expression "*(undefined4 *)this" * (cast_expression "(undefined4 *)this" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "*(undefined ***)(this + 8) = &PTR__wfilebuf_0038ca28;" (assignment_expression "*(undefined ***)(this + 8) = &PTR__wfilebuf_0038ca28" (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__wfilebuf_0038ca28" & identifier)) ;) (labeled_statement "wfilebuf::close((wfilebuf *)(this + 8));" statement_identifier : (ERROR ":" :) (expression_statement "close((wfilebuf *)(this + 8));" (call_expression "close((wfilebuf *)(this + 8))" identifier (argument_list "((wfilebuf *)(this + 8))" ( (cast_expression "(wfilebuf *)(this + 8)" ( (type_descriptor "wfilebuf *" 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__wstreambuf_0038c0e4;" (assignment_expression "*(undefined ***)(this + 8) = &PTR__wstreambuf_0038c0e4" (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__wstreambuf_0038c0e4" & 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 "*(undefined4 *)this = 0x38ca6c;" (assignment_expression "*(undefined4 *)this = 0x38ca6c" (pointer_expression "*(undefined4 *)this" * (cast_expression "(undefined4 *)this" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "*(undefined ***)(this + 0x94) = &PTR__wios_0038c7c8;" (assignment_expression "*(undefined ***)(this + 0x94) = &PTR__wios_0038c7c8" (pointer_expression "*(undefined ***)(this + 0x94)" * (cast_expression "(undefined ***)(this + 0x94)" ( (type_descriptor "undefined ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) (parenthesized_expression "(this + 0x94)" ( (binary_expression "this + 0x94" identifier + number_literal) )))) = (pointer_expression "&PTR__wios_0038c7c8" & identifier)) ;) (labeled_statement "ios_base::~ios_base((ios_base *)(this + 0x94));" statement_identifier : (ERROR ":" :) (expression_statement "~ios_base((ios_base *)(this + 0x94));" (unary_expression "~ios_base((ios_base *)(this + 0x94))" ~ (call_expression "ios_base((ios_base *)(this + 0x94))" identifier (argument_list "((ios_base *)(this + 0x94))" ( (cast_expression "(ios_base *)(this + 0x94)" ( (type_descriptor "ios_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x94)" ( (binary_expression "this + 0x94" identifier + number_literal) ))) )))) ;)) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0021bd10(undefined4 *param_1)\n\n{\n  param_1[0x25] = &PTR_FUN_0038cab8;\n  *param_1 = &PTR_FUN_0038caa4;\n  param_1[2] = &PTR_FUN_0038ca28;\n  FUN_002199f0(param_1 + 2);\n  FUN_001e75f0(param_1 + 0x10);\n  param_1[2] = &PTR_FUN_0038c0e4;\n  FUN_001e9510(param_1 + 9);\n  param_1[1] = 0;\n  *param_1 = &DAT_0038ca6c;\n  param_1[0x25] = &PTR_FUN_0038c7c8;\n  FUN_0022c040(param_1 + 0x25);\n  return;\n}\n\n" (function_definition "void FUN_0021bd10(undefined4 *param_1)\n\n{\n  param_1[0x25] = &PTR_FUN_0038cab8;\n  *param_1 = &PTR_FUN_0038caa4;\n  param_1[2] = &PTR_FUN_0038ca28;\n  FUN_002199f0(param_1 + 2);\n  FUN_001e75f0(param_1 + 0x10);\n  param_1[2] = &PTR_FUN_0038c0e4;\n  FUN_001e9510(param_1 + 9);\n  param_1[1] = 0;\n  *param_1 = &DAT_0038ca6c;\n  param_1[0x25] = &PTR_FUN_0038c7c8;\n  FUN_0022c040(param_1 + 0x25);\n  return;\n}" primitive_type (function_declarator "FUN_0021bd10(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[0x25] = &PTR_FUN_0038cab8;\n  *param_1 = &PTR_FUN_0038caa4;\n  param_1[2] = &PTR_FUN_0038ca28;\n  FUN_002199f0(param_1 + 2);\n  FUN_001e75f0(param_1 + 0x10);\n  param_1[2] = &PTR_FUN_0038c0e4;\n  FUN_001e9510(param_1 + 9);\n  param_1[1] = 0;\n  *param_1 = &DAT_0038ca6c;\n  param_1[0x25] = &PTR_FUN_0038c7c8;\n  FUN_0022c040(param_1 + 0x25);\n  return;\n}" { (expression_statement "param_1[0x25] = &PTR_FUN_0038cab8;" (assignment_expression "param_1[0x25] = &PTR_FUN_0038cab8" (subscript_expression "param_1[0x25]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_0038cab8" & identifier)) ;) (expression_statement "*param_1 = &PTR_FUN_0038caa4;" (assignment_expression "*param_1 = &PTR_FUN_0038caa4" (pointer_expression "*param_1" * identifier) = (pointer_expression "&PTR_FUN_0038caa4" & identifier)) ;) (expression_statement "param_1[2] = &PTR_FUN_0038ca28;" (assignment_expression "param_1[2] = &PTR_FUN_0038ca28" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_0038ca28" & identifier)) ;) (expression_statement "FUN_002199f0(param_1 + 2);" (call_expression "FUN_002199f0(param_1 + 2)" identifier (argument_list "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) ))) ;) (expression_statement "FUN_001e75f0(param_1 + 0x10);" (call_expression "FUN_001e75f0(param_1 + 0x10)" identifier (argument_list "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))) ;) (expression_statement "param_1[2] = &PTR_FUN_0038c0e4;" (assignment_expression "param_1[2] = &PTR_FUN_0038c0e4" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_0038c0e4" & identifier)) ;) (expression_statement "FUN_001e9510(param_1 + 9);" (call_expression "FUN_001e9510(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_0038ca6c;" (assignment_expression "*param_1 = &DAT_0038ca6c" (pointer_expression "*param_1" * identifier) = (pointer_expression "&DAT_0038ca6c" & identifier)) ;) (expression_statement "param_1[0x25] = &PTR_FUN_0038c7c8;" (assignment_expression "param_1[0x25] = &PTR_FUN_0038c7c8" (subscript_expression "param_1[0x25]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_0038c7c8" & identifier)) ;) (expression_statement "FUN_0022c040(param_1 + 0x25);" (call_expression "FUN_0022c040(param_1 + 0x25)" identifier (argument_list "(param_1 + 0x25)" ( (binary_expression "param_1 + 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 { (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) ))) ;) (return_statement return ;) })))
(function_definition "void FUN_0021bd10(undefined4 *param_1)\n\n{\n  param_1[0x25] = &PTR_FUN_0038cab8;\n  *param_1 = &PTR_FUN_0038caa4;\n  param_1[2] = &PTR_FUN_0038ca28;\n  FUN_002199f0(param_1 + 2);\n  FUN_001e75f0(param_1 + 0x10);\n  param_1[2] = &PTR_FUN_0038c0e4;\n  FUN_001e9510(param_1 + 9);\n  param_1[1] = 0;\n  *param_1 = &DAT_0038ca6c;\n  param_1[0x25] = &PTR_FUN_0038c7c8;\n  FUN_0022c040(param_1 + 0x25);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0021bd10(undefined4 *param_1)" (identifier "FUN_0021bd10") (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[0x25] = &PTR_FUN_0038cab8;\n  *param_1 = &PTR_FUN_0038caa4;\n  param_1[2] = &PTR_FUN_0038ca28;\n  FUN_002199f0(param_1 + 2);\n  FUN_001e75f0(param_1 + 0x10);\n  param_1[2] = &PTR_FUN_0038c0e4;\n  FUN_001e9510(param_1 + 9);\n  param_1[1] = 0;\n  *param_1 = &DAT_0038ca6c;\n  param_1[0x25] = &PTR_FUN_0038c7c8;\n  FUN_0022c040(param_1 + 0x25);\n  return;\n}" ({ "{") (expression_statement "param_1[0x25] = &PTR_FUN_0038cab8;" (assignment_expression "param_1[0x25] = &PTR_FUN_0038cab8" (subscript_expression "param_1[0x25]" (identifier "param_1") ([ "[") (number_literal "0x25") (] "]")) (= "=") (pointer_expression "&PTR_FUN_0038cab8" (& "&") (identifier "PTR_FUN_0038cab8"))) (; ";")) (expression_statement "*param_1 = &PTR_FUN_0038caa4;" (assignment_expression "*param_1 = &PTR_FUN_0038caa4" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (pointer_expression "&PTR_FUN_0038caa4" (& "&") (identifier "PTR_FUN_0038caa4"))) (; ";")) (expression_statement "param_1[2] = &PTR_FUN_0038ca28;" (assignment_expression "param_1[2] = &PTR_FUN_0038ca28" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (pointer_expression "&PTR_FUN_0038ca28" (& "&") (identifier "PTR_FUN_0038ca28"))) (; ";")) (expression_statement "FUN_002199f0(param_1 + 2);" (call_expression "FUN_002199f0(param_1 + 2)" (identifier "FUN_002199f0") (argument_list "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")"))) (; ";")) (expression_statement "FUN_001e75f0(param_1 + 0x10);" (call_expression "FUN_001e75f0(param_1 + 0x10)" (identifier "FUN_001e75f0") (argument_list "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))) (; ";")) (expression_statement "param_1[2] = &PTR_FUN_0038c0e4;" (assignment_expression "param_1[2] = &PTR_FUN_0038c0e4" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (pointer_expression "&PTR_FUN_0038c0e4" (& "&") (identifier "PTR_FUN_0038c0e4"))) (; ";")) (expression_statement "FUN_001e9510(param_1 + 9);" (call_expression "FUN_001e9510(param_1 + 9)" (identifier "FUN_001e9510") (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_0038ca6c;" (assignment_expression "*param_1 = &DAT_0038ca6c" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (pointer_expression "&DAT_0038ca6c" (& "&") (identifier "DAT_0038ca6c"))) (; ";")) (expression_statement "param_1[0x25] = &PTR_FUN_0038c7c8;" (assignment_expression "param_1[0x25] = &PTR_FUN_0038c7c8" (subscript_expression "param_1[0x25]" (identifier "param_1") ([ "[") (number_literal "0x25") (] "]")) (= "=") (pointer_expression "&PTR_FUN_0038c7c8" (& "&") (identifier "PTR_FUN_0038c7c8"))) (; ";")) (expression_statement "FUN_0022c040(param_1 + 0x25);" (call_expression "FUN_0022c040(param_1 + 0x25)" (identifier "FUN_0022c040") (argument_list "(param_1 + 0x25)" (( "(") (binary_expression "param_1 + 0x25" (identifier "param_1") (+ "+") (number_literal "0x25")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

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

{
  *(type_1 *)(var_1 + 0x94) = 0x38cab8;
  *(type_1 *)var_1 = 0x38caa4;
  *(type_2 ***)(var_1 + 8) = &PTR__wfilebuf_0038ca28;
  wfilebuf::var_2((type_3 *)(var_1 + 8));
  var_3<var_4>::~var_3((var_3<var_4> *)(var_1 + 0x40));
  *(type_2 ***)(var_1 + 8) = &PTR__wstreambuf_0038c0e4;
  locale::~var_5((var_5 *)(var_1 + 0x24));
  *(type_1 *)(var_1 + 4) = 0;
  *(type_1 *)var_1 = 0x38ca6c;
  *(type_2 ***)(var_1 + 0x94) = &PTR__wios_0038c7c8;
  ios_base::~var_6((var_6 *)(var_1 + 0x94));
  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))))) (return_statement))))

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

void MASKED(undefined4 *param_1)

{
  param_1[0x25] = &PTR_FUN_0038cab8;
  *param_1 = &PTR_FUN_0038caa4;
  param_1[2] = &PTR_FUN_0038ca28;
  FUN_002199f0(param_1 + 2);
  FUN_001e75f0(param_1 + 0x10);
  param_1[2] = &PTR_FUN_0038c0e4;
  FUN_001e9510(param_1 + 9);
  param_1[1] = 0;
  *param_1 = &DAT_0038ca6c;
  param_1[0x25] = &PTR_FUN_0038c7c8;
  FUN_0022c040(param_1 + 0x25);
  return;
}

