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

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

{
  *(undefined4 *)this = 0x2ffbd8;
  *(undefined4 *)(this + 8) = 0x2ffbec;
  *(undefined4 *)(this + 0x98) = 0x2ffc00;
  *(undefined ***)(this + 0xc) = &PTR__wfilebuf_002ffa20;
  wfilebuf::close((wfilebuf *)(this + 0xc));
  __basic_file<char>::~__basic_file((__basic_file<char> *)(this + 0x44));
  *(undefined ***)(this + 0xc) = &PTR__wstreambuf_002ff0dc;
  locale::~locale((locale *)(this + 0x28));
  *(undefined4 *)(this + 4) = 0;
  *(undefined4 *)(this + 8) = 0x2ffb24;
  *(undefined4 *)this = 0x2ffb4c;
  *(undefined ***)(this + 0x98) = &PTR__wios_002ff7c0;
  ios_base::~ios_base((ios_base *)(this + 0x98));
  operator_delete(this);
  return;
}



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

void FUN_001b5a50(undefined4 *param_1)

{
  *param_1 = &PTR_FUN_002ffbd8;
  param_1[2] = &PTR_FUN_002ffbec;
  param_1[0x26] = &PTR_FUN_002ffc00;
  param_1[3] = &PTR_FUN_002ffa20;
  FUN_001b33e0(param_1 + 3);
  FUN_00180fe0(param_1 + 0x11);
  param_1[3] = &PTR_FUN_002ff0dc;
  FUN_00182f00(param_1 + 10);
  param_1[1] = 0;
  param_1[2] = &DAT_002ffb24;
  *param_1 = &DAT_002ffb4c;
  param_1[0x26] = &PTR_FUN_002ff7c0;
  FUN_001c5a30(param_1 + 0x26);
  FUN_001807a0(param_1);
  return;
}


PUSH ESI
PUSH EBX
CALL 0x00032730
ADD EBX,0x14c5a9
SUB ESP,0x10
MOV ESI,dword ptr [ESP + 0x1c]
LEA EAX,[EBX + 0xffffdbcc]
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 + 0xffffda18]
MOV dword ptr [ESI + 0x98],EDX
ADD EAX,0x8
MOV dword ptr [ESI + 0xc],EAX
LEA EAX,[ESI + 0xc]
PUSH EAX
CALL 0x001b33e0
LEA EAX,[ESI + 0x44]
MOV dword ptr [ESP],EAX
CALL 0x00180fe0
LEA EAX,[EBX + 0xffffd0d4]
ADD EAX,0x8
MOV dword ptr [ESI + 0xc],EAX
LEA EAX,[ESI + 0x28]
MOV dword ptr [ESP],EAX
CALL 0x00182f00
LEA EAX,[EBX + 0xffffdb24]
MOV dword ptr [ESI + 0x4],0x0
MOV dword ptr [ESI + 0x8],EAX
LEA EAX,[EBX + 0xffffdb4c]
MOV dword ptr [ESI],EAX
LEA EAX,[EBX + 0xffffd7b8]
ADD EAX,0x8
MOV dword ptr [ESI + 0x98],EAX
LEA EAX,[ESI + 0x98]
MOV dword ptr [ESP],EAX
CALL 0x001c5a30
MOV dword ptr [ESP],ESI
CALL 0x001807a0
ADD ESP,0x14
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_001b5a50(undefined4 *param_1)\n\n{\n  *param_1 = &PTR_FUN_002ffbd8;\n  param_1[2] = &PTR_FUN_002ffbec;\n  param_1[0x26] = &PTR_FUN_002ffc00;\n  param_1[3] = &PTR_FUN_002ffa20;\n  FUN_001b33e0(param_1 + 3);\n  FUN_00180fe0(param_1 + 0x11);\n  param_1[3] = &PTR_FUN_002ff0dc;\n  FUN_00182f00(param_1 + 10);\n  param_1[1] = 0;\n  param_1[2] = &DAT_002ffb24;\n  *param_1 = &DAT_002ffb4c;\n  param_1[0x26] = &PTR_FUN_002ff7c0;\n  FUN_001c5a30(param_1 + 0x26);\n  FUN_001807a0(param_1);\n  return;\n}\n\n" comment (function_definition "void FUN_001b5a50(undefined4 *param_1)\n\n{\n  *param_1 = &PTR_FUN_002ffbd8;\n  param_1[2] = &PTR_FUN_002ffbec;\n  param_1[0x26] = &PTR_FUN_002ffc00;\n  param_1[3] = &PTR_FUN_002ffa20;\n  FUN_001b33e0(param_1 + 3);\n  FUN_00180fe0(param_1 + 0x11);\n  param_1[3] = &PTR_FUN_002ff0dc;\n  FUN_00182f00(param_1 + 10);\n  param_1[1] = 0;\n  param_1[2] = &DAT_002ffb24;\n  *param_1 = &DAT_002ffb4c;\n  param_1[0x26] = &PTR_FUN_002ff7c0;\n  FUN_001c5a30(param_1 + 0x26);\n  FUN_001807a0(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_001b5a50(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 = &PTR_FUN_002ffbd8;\n  param_1[2] = &PTR_FUN_002ffbec;\n  param_1[0x26] = &PTR_FUN_002ffc00;\n  param_1[3] = &PTR_FUN_002ffa20;\n  FUN_001b33e0(param_1 + 3);\n  FUN_00180fe0(param_1 + 0x11);\n  param_1[3] = &PTR_FUN_002ff0dc;\n  FUN_00182f00(param_1 + 10);\n  param_1[1] = 0;\n  param_1[2] = &DAT_002ffb24;\n  *param_1 = &DAT_002ffb4c;\n  param_1[0x26] = &PTR_FUN_002ff7c0;\n  FUN_001c5a30(param_1 + 0x26);\n  FUN_001807a0(param_1);\n  return;\n}" { (expression_statement "*param_1 = &PTR_FUN_002ffbd8;" (assignment_expression "*param_1 = &PTR_FUN_002ffbd8" (pointer_expression "*param_1" * identifier) = (pointer_expression "&PTR_FUN_002ffbd8" & identifier)) ;) (expression_statement "param_1[2] = &PTR_FUN_002ffbec;" (assignment_expression "param_1[2] = &PTR_FUN_002ffbec" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_002ffbec" & identifier)) ;) (expression_statement "param_1[0x26] = &PTR_FUN_002ffc00;" (assignment_expression "param_1[0x26] = &PTR_FUN_002ffc00" (subscript_expression "param_1[0x26]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_002ffc00" & identifier)) ;) (expression_statement "param_1[3] = &PTR_FUN_002ffa20;" (assignment_expression "param_1[3] = &PTR_FUN_002ffa20" (subscript_expression "param_1[3]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_002ffa20" & identifier)) ;) (expression_statement "FUN_001b33e0(param_1 + 3);" (call_expression "FUN_001b33e0(param_1 + 3)" identifier (argument_list "(param_1 + 3)" ( (binary_expression "param_1 + 3" identifier + number_literal) ))) ;) (expression_statement "FUN_00180fe0(param_1 + 0x11);" (call_expression "FUN_00180fe0(param_1 + 0x11)" identifier (argument_list "(param_1 + 0x11)" ( (binary_expression "param_1 + 0x11" identifier + number_literal) ))) ;) (expression_statement "param_1[3] = &PTR_FUN_002ff0dc;" (assignment_expression "param_1[3] = &PTR_FUN_002ff0dc" (subscript_expression "param_1[3]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_002ff0dc" & identifier)) ;) (expression_statement "FUN_00182f00(param_1 + 10);" (call_expression "FUN_00182f00(param_1 + 10)" identifier (argument_list "(param_1 + 10)" ( (binary_expression "param_1 + 10" 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[2] = &DAT_002ffb24;" (assignment_expression "param_1[2] = &DAT_002ffb24" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (pointer_expression "&DAT_002ffb24" & identifier)) ;) (expression_statement "*param_1 = &DAT_002ffb4c;" (assignment_expression "*param_1 = &DAT_002ffb4c" (pointer_expression "*param_1" * identifier) = (pointer_expression "&DAT_002ffb4c" & identifier)) ;) (expression_statement "param_1[0x26] = &PTR_FUN_002ff7c0;" (assignment_expression "param_1[0x26] = &PTR_FUN_002ff7c0" (subscript_expression "param_1[0x26]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_002ff7c0" & identifier)) ;) (expression_statement "FUN_001c5a30(param_1 + 0x26);" (call_expression "FUN_001c5a30(param_1 + 0x26)" identifier (argument_list "(param_1 + 0x26)" ( (binary_expression "param_1 + 0x26" identifier + number_literal) ))) ;) (expression_statement "FUN_001807a0(param_1);" (call_expression "FUN_001807a0(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::wfstream::~wfstream() */\n\nvoid __thiscall std::wfstream::~wfstream(wfstream *this)\n\n{\n  *(undefined4 *)this = 0x2ffbd8;\n  *(undefined4 *)(this + 8) = 0x2ffbec;\n  *(undefined4 *)(this + 0x98) = 0x2ffc00;\n  *(undefined ***)(this + 0xc) = &PTR__wfilebuf_002ffa20;\n  wfilebuf::close((wfilebuf *)(this + 0xc));\n  __basic_file<char>::~__basic_file((__basic_file<char> *)(this + 0x44));\n  *(undefined ***)(this + 0xc) = &PTR__wstreambuf_002ff0dc;\n  locale::~locale((locale *)(this + 0x28));\n  *(undefined4 *)(this + 4) = 0;\n  *(undefined4 *)(this + 8) = 0x2ffb24;\n  *(undefined4 *)this = 0x2ffb4c;\n  *(undefined ***)(this + 0x98) = &PTR__wios_002ff7c0;\n  ios_base::~ios_base((ios_base *)(this + 0x98));\n  operator_delete(this);\n  return;\n}\n\n" comment comment (function_definition "void __thiscall std::wfstream::~wfstream(wfstream *this)\n\n{\n  *(undefined4 *)this = 0x2ffbd8;\n  *(undefined4 *)(this + 8) = 0x2ffbec;\n  *(undefined4 *)(this + 0x98) = 0x2ffc00;\n  *(undefined ***)(this + 0xc) = &PTR__wfilebuf_002ffa20;\n  wfilebuf::close((wfilebuf *)(this + 0xc));\n  __basic_file<char>::~__basic_file((__basic_file<char> *)(this + 0x44));\n  *(undefined ***)(this + 0xc) = &PTR__wstreambuf_002ff0dc;\n  locale::~locale((locale *)(this + 0x28));\n  *(undefined4 *)(this + 4) = 0;\n  *(undefined4 *)(this + 8) = 0x2ffb24;\n  *(undefined4 *)this = 0x2ffb4c;\n  *(undefined ***)(this + 0x98) = &PTR__wios_002ff7c0;\n  ios_base::~ios_base((ios_base *)(this + 0x98));\n  operator_delete(this);\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::wfstream::~" identifier : : identifier : : ~) (function_declarator "wfstream(wfstream *this)" identifier (parameter_list "(wfstream *this)" ( (parameter_declaration "wfstream *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  *(undefined4 *)this = 0x2ffbd8;\n  *(undefined4 *)(this + 8) = 0x2ffbec;\n  *(undefined4 *)(this + 0x98) = 0x2ffc00;\n  *(undefined ***)(this + 0xc) = &PTR__wfilebuf_002ffa20;\n  wfilebuf::close((wfilebuf *)(this + 0xc));\n  __basic_file<char>::~__basic_file((__basic_file<char> *)(this + 0x44));\n  *(undefined ***)(this + 0xc) = &PTR__wstreambuf_002ff0dc;\n  locale::~locale((locale *)(this + 0x28));\n  *(undefined4 *)(this + 4) = 0;\n  *(undefined4 *)(this + 8) = 0x2ffb24;\n  *(undefined4 *)this = 0x2ffb4c;\n  *(undefined ***)(this + 0x98) = &PTR__wios_002ff7c0;\n  ios_base::~ios_base((ios_base *)(this + 0x98));\n  operator_delete(this);\n  return;\n}" { (expression_statement "*(undefined4 *)this = 0x2ffbd8;" (assignment_expression "*(undefined4 *)this = 0x2ffbd8" (pointer_expression "*(undefined4 *)this" * (cast_expression "(undefined4 *)this" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "*(undefined4 *)(this + 8) = 0x2ffbec;" (assignment_expression "*(undefined4 *)(this + 8) = 0x2ffbec" (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 + 0x98) = 0x2ffc00;" (assignment_expression "*(undefined4 *)(this + 0x98) = 0x2ffc00" (pointer_expression "*(undefined4 *)(this + 0x98)" * (cast_expression "(undefined4 *)(this + 0x98)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x98)" ( (binary_expression "this + 0x98" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined ***)(this + 0xc) = &PTR__wfilebuf_002ffa20;" (assignment_expression "*(undefined ***)(this + 0xc) = &PTR__wfilebuf_002ffa20" (pointer_expression "*(undefined ***)(this + 0xc)" * (cast_expression "(undefined ***)(this + 0xc)" ( (type_descriptor "undefined ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) (parenthesized_expression "(this + 0xc)" ( (binary_expression "this + 0xc" identifier + number_literal) )))) = (pointer_expression "&PTR__wfilebuf_002ffa20" & identifier)) ;) (labeled_statement "wfilebuf::close((wfilebuf *)(this + 0xc));" statement_identifier : (ERROR ":" :) (expression_statement "close((wfilebuf *)(this + 0xc));" (call_expression "close((wfilebuf *)(this + 0xc))" identifier (argument_list "((wfilebuf *)(this + 0xc))" ( (cast_expression "(wfilebuf *)(this + 0xc)" ( (type_descriptor "wfilebuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0xc)" ( (binary_expression "this + 0xc" identifier + number_literal) ))) ))) ;)) (expression_statement "__basic_file<char>::~__basic_file((__basic_file<char> *)(this + 0x44));" (binary_expression "__basic_file<char>::~__basic_file((__basic_file<char> *)(this + 0x44))" (binary_expression "__basic_file<char" identifier < identifier) > (ERROR "::" : :) (unary_expression "~__basic_file((__basic_file<char> *)(this + 0x44))" ~ (call_expression "__basic_file((__basic_file<char> *)(this + 0x44))" identifier (argument_list "((__basic_file<char> *)(this + 0x44))" ( (call_expression "(__basic_file<char> *)(this + 0x44)" (parenthesized_expression "(__basic_file<char> *)" ( (binary_expression "__basic_file<char> *" (binary_expression "__basic_file<char" identifier < identifier) > (pointer_expression "*" * identifier)) )) (argument_list "(this + 0x44)" ( (binary_expression "this + 0x44" identifier + number_literal) ))) ))))) ;) (expression_statement "*(undefined ***)(this + 0xc) = &PTR__wstreambuf_002ff0dc;" (assignment_expression "*(undefined ***)(this + 0xc) = &PTR__wstreambuf_002ff0dc" (pointer_expression "*(undefined ***)(this + 0xc)" * (cast_expression "(undefined ***)(this + 0xc)" ( (type_descriptor "undefined ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) (parenthesized_expression "(this + 0xc)" ( (binary_expression "this + 0xc" identifier + number_literal) )))) = (pointer_expression "&PTR__wstreambuf_002ff0dc" & identifier)) ;) (labeled_statement "locale::~locale((locale *)(this + 0x28));" statement_identifier : (ERROR ":" :) (expression_statement "~locale((locale *)(this + 0x28));" (unary_expression "~locale((locale *)(this + 0x28))" ~ (call_expression "locale((locale *)(this + 0x28))" identifier (argument_list "((locale *)(this + 0x28))" ( (cast_expression "(locale *)(this + 0x28)" ( (type_descriptor "locale *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x28)" ( (binary_expression "this + 0x28" 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 + 8) = 0x2ffb24;" (assignment_expression "*(undefined4 *)(this + 8) = 0x2ffb24" (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 = 0x2ffb4c;" (assignment_expression "*(undefined4 *)this = 0x2ffb4c" (pointer_expression "*(undefined4 *)this" * (cast_expression "(undefined4 *)this" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "*(undefined ***)(this + 0x98) = &PTR__wios_002ff7c0;" (assignment_expression "*(undefined ***)(this + 0x98) = &PTR__wios_002ff7c0" (pointer_expression "*(undefined ***)(this + 0x98)" * (cast_expression "(undefined ***)(this + 0x98)" ( (type_descriptor "undefined ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) (parenthesized_expression "(this + 0x98)" ( (binary_expression "this + 0x98" identifier + number_literal) )))) = (pointer_expression "&PTR__wios_002ff7c0" & identifier)) ;) (labeled_statement "ios_base::~ios_base((ios_base *)(this + 0x98));" statement_identifier : (ERROR ":" :) (expression_statement "~ios_base((ios_base *)(this + 0x98));" (unary_expression "~ios_base((ios_base *)(this + 0x98))" ~ (call_expression "ios_base((ios_base *)(this + 0x98))" identifier (argument_list "((ios_base *)(this + 0x98))" ( (cast_expression "(ios_base *)(this + 0x98)" ( (type_descriptor "ios_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x98)" ( (binary_expression "this + 0x98" 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_001b5a50(undefined4 *param_1)\n\n{\n  *param_1 = &PTR_FUN_002ffbd8;\n  param_1[2] = &PTR_FUN_002ffbec;\n  param_1[0x26] = &PTR_FUN_002ffc00;\n  param_1[3] = &PTR_FUN_002ffa20;\n  FUN_001b33e0(param_1 + 3);\n  FUN_00180fe0(param_1 + 0x11);\n  param_1[3] = &PTR_FUN_002ff0dc;\n  FUN_00182f00(param_1 + 10);\n  param_1[1] = 0;\n  param_1[2] = &DAT_002ffb24;\n  *param_1 = &DAT_002ffb4c;\n  param_1[0x26] = &PTR_FUN_002ff7c0;\n  FUN_001c5a30(param_1 + 0x26);\n  FUN_001807a0(param_1);\n  return;\n}\n\n" (function_definition "void FUN_001b5a50(undefined4 *param_1)\n\n{\n  *param_1 = &PTR_FUN_002ffbd8;\n  param_1[2] = &PTR_FUN_002ffbec;\n  param_1[0x26] = &PTR_FUN_002ffc00;\n  param_1[3] = &PTR_FUN_002ffa20;\n  FUN_001b33e0(param_1 + 3);\n  FUN_00180fe0(param_1 + 0x11);\n  param_1[3] = &PTR_FUN_002ff0dc;\n  FUN_00182f00(param_1 + 10);\n  param_1[1] = 0;\n  param_1[2] = &DAT_002ffb24;\n  *param_1 = &DAT_002ffb4c;\n  param_1[0x26] = &PTR_FUN_002ff7c0;\n  FUN_001c5a30(param_1 + 0x26);\n  FUN_001807a0(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_001b5a50(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 = &PTR_FUN_002ffbd8;\n  param_1[2] = &PTR_FUN_002ffbec;\n  param_1[0x26] = &PTR_FUN_002ffc00;\n  param_1[3] = &PTR_FUN_002ffa20;\n  FUN_001b33e0(param_1 + 3);\n  FUN_00180fe0(param_1 + 0x11);\n  param_1[3] = &PTR_FUN_002ff0dc;\n  FUN_00182f00(param_1 + 10);\n  param_1[1] = 0;\n  param_1[2] = &DAT_002ffb24;\n  *param_1 = &DAT_002ffb4c;\n  param_1[0x26] = &PTR_FUN_002ff7c0;\n  FUN_001c5a30(param_1 + 0x26);\n  FUN_001807a0(param_1);\n  return;\n}" { (expression_statement "*param_1 = &PTR_FUN_002ffbd8;" (assignment_expression "*param_1 = &PTR_FUN_002ffbd8" (pointer_expression "*param_1" * identifier) = (pointer_expression "&PTR_FUN_002ffbd8" & identifier)) ;) (expression_statement "param_1[2] = &PTR_FUN_002ffbec;" (assignment_expression "param_1[2] = &PTR_FUN_002ffbec" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_002ffbec" & identifier)) ;) (expression_statement "param_1[0x26] = &PTR_FUN_002ffc00;" (assignment_expression "param_1[0x26] = &PTR_FUN_002ffc00" (subscript_expression "param_1[0x26]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_002ffc00" & identifier)) ;) (expression_statement "param_1[3] = &PTR_FUN_002ffa20;" (assignment_expression "param_1[3] = &PTR_FUN_002ffa20" (subscript_expression "param_1[3]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_002ffa20" & identifier)) ;) (expression_statement "FUN_001b33e0(param_1 + 3);" (call_expression "FUN_001b33e0(param_1 + 3)" identifier (argument_list "(param_1 + 3)" ( (binary_expression "param_1 + 3" identifier + number_literal) ))) ;) (expression_statement "FUN_00180fe0(param_1 + 0x11);" (call_expression "FUN_00180fe0(param_1 + 0x11)" identifier (argument_list "(param_1 + 0x11)" ( (binary_expression "param_1 + 0x11" identifier + number_literal) ))) ;) (expression_statement "param_1[3] = &PTR_FUN_002ff0dc;" (assignment_expression "param_1[3] = &PTR_FUN_002ff0dc" (subscript_expression "param_1[3]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_002ff0dc" & identifier)) ;) (expression_statement "FUN_00182f00(param_1 + 10);" (call_expression "FUN_00182f00(param_1 + 10)" identifier (argument_list "(param_1 + 10)" ( (binary_expression "param_1 + 10" 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[2] = &DAT_002ffb24;" (assignment_expression "param_1[2] = &DAT_002ffb24" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (pointer_expression "&DAT_002ffb24" & identifier)) ;) (expression_statement "*param_1 = &DAT_002ffb4c;" (assignment_expression "*param_1 = &DAT_002ffb4c" (pointer_expression "*param_1" * identifier) = (pointer_expression "&DAT_002ffb4c" & identifier)) ;) (expression_statement "param_1[0x26] = &PTR_FUN_002ff7c0;" (assignment_expression "param_1[0x26] = &PTR_FUN_002ff7c0" (subscript_expression "param_1[0x26]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_002ff7c0" & identifier)) ;) (expression_statement "FUN_001c5a30(param_1 + 0x26);" (call_expression "FUN_001c5a30(param_1 + 0x26)" identifier (argument_list "(param_1 + 0x26)" ( (binary_expression "param_1 + 0x26" identifier + number_literal) ))) ;) (expression_statement "FUN_001807a0(param_1);" (call_expression "FUN_001807a0(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 (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) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_001b5a50(undefined4 *param_1)\n\n{\n  *param_1 = &PTR_FUN_002ffbd8;\n  param_1[2] = &PTR_FUN_002ffbec;\n  param_1[0x26] = &PTR_FUN_002ffc00;\n  param_1[3] = &PTR_FUN_002ffa20;\n  FUN_001b33e0(param_1 + 3);\n  FUN_00180fe0(param_1 + 0x11);\n  param_1[3] = &PTR_FUN_002ff0dc;\n  FUN_00182f00(param_1 + 10);\n  param_1[1] = 0;\n  param_1[2] = &DAT_002ffb24;\n  *param_1 = &DAT_002ffb4c;\n  param_1[0x26] = &PTR_FUN_002ff7c0;\n  FUN_001c5a30(param_1 + 0x26);\n  FUN_001807a0(param_1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001b5a50(undefined4 *param_1)" (identifier "FUN_001b5a50") (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 = &PTR_FUN_002ffbd8;\n  param_1[2] = &PTR_FUN_002ffbec;\n  param_1[0x26] = &PTR_FUN_002ffc00;\n  param_1[3] = &PTR_FUN_002ffa20;\n  FUN_001b33e0(param_1 + 3);\n  FUN_00180fe0(param_1 + 0x11);\n  param_1[3] = &PTR_FUN_002ff0dc;\n  FUN_00182f00(param_1 + 10);\n  param_1[1] = 0;\n  param_1[2] = &DAT_002ffb24;\n  *param_1 = &DAT_002ffb4c;\n  param_1[0x26] = &PTR_FUN_002ff7c0;\n  FUN_001c5a30(param_1 + 0x26);\n  FUN_001807a0(param_1);\n  return;\n}" ({ "{") (expression_statement "*param_1 = &PTR_FUN_002ffbd8;" (assignment_expression "*param_1 = &PTR_FUN_002ffbd8" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (pointer_expression "&PTR_FUN_002ffbd8" (& "&") (identifier "PTR_FUN_002ffbd8"))) (; ";")) (expression_statement "param_1[2] = &PTR_FUN_002ffbec;" (assignment_expression "param_1[2] = &PTR_FUN_002ffbec" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (pointer_expression "&PTR_FUN_002ffbec" (& "&") (identifier "PTR_FUN_002ffbec"))) (; ";")) (expression_statement "param_1[0x26] = &PTR_FUN_002ffc00;" (assignment_expression "param_1[0x26] = &PTR_FUN_002ffc00" (subscript_expression "param_1[0x26]" (identifier "param_1") ([ "[") (number_literal "0x26") (] "]")) (= "=") (pointer_expression "&PTR_FUN_002ffc00" (& "&") (identifier "PTR_FUN_002ffc00"))) (; ";")) (expression_statement "param_1[3] = &PTR_FUN_002ffa20;" (assignment_expression "param_1[3] = &PTR_FUN_002ffa20" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (pointer_expression "&PTR_FUN_002ffa20" (& "&") (identifier "PTR_FUN_002ffa20"))) (; ";")) (expression_statement "FUN_001b33e0(param_1 + 3);" (call_expression "FUN_001b33e0(param_1 + 3)" (identifier "FUN_001b33e0") (argument_list "(param_1 + 3)" (( "(") (binary_expression "param_1 + 3" (identifier "param_1") (+ "+") (number_literal "3")) () ")"))) (; ";")) (expression_statement "FUN_00180fe0(param_1 + 0x11);" (call_expression "FUN_00180fe0(param_1 + 0x11)" (identifier "FUN_00180fe0") (argument_list "(param_1 + 0x11)" (( "(") (binary_expression "param_1 + 0x11" (identifier "param_1") (+ "+") (number_literal "0x11")) () ")"))) (; ";")) (expression_statement "param_1[3] = &PTR_FUN_002ff0dc;" (assignment_expression "param_1[3] = &PTR_FUN_002ff0dc" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (pointer_expression "&PTR_FUN_002ff0dc" (& "&") (identifier "PTR_FUN_002ff0dc"))) (; ";")) (expression_statement "FUN_00182f00(param_1 + 10);" (call_expression "FUN_00182f00(param_1 + 10)" (identifier "FUN_00182f00") (argument_list "(param_1 + 10)" (( "(") (binary_expression "param_1 + 10" (identifier "param_1") (+ "+") (number_literal "10")) () ")"))) (; ";")) (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[2] = &DAT_002ffb24;" (assignment_expression "param_1[2] = &DAT_002ffb24" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (pointer_expression "&DAT_002ffb24" (& "&") (identifier "DAT_002ffb24"))) (; ";")) (expression_statement "*param_1 = &DAT_002ffb4c;" (assignment_expression "*param_1 = &DAT_002ffb4c" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (pointer_expression "&DAT_002ffb4c" (& "&") (identifier "DAT_002ffb4c"))) (; ";")) (expression_statement "param_1[0x26] = &PTR_FUN_002ff7c0;" (assignment_expression "param_1[0x26] = &PTR_FUN_002ff7c0" (subscript_expression "param_1[0x26]" (identifier "param_1") ([ "[") (number_literal "0x26") (] "]")) (= "=") (pointer_expression "&PTR_FUN_002ff7c0" (& "&") (identifier "PTR_FUN_002ff7c0"))) (; ";")) (expression_statement "FUN_001c5a30(param_1 + 0x26);" (call_expression "FUN_001c5a30(param_1 + 0x26)" (identifier "FUN_001c5a30") (argument_list "(param_1 + 0x26)" (( "(") (binary_expression "param_1 + 0x26" (identifier "param_1") (+ "+") (number_literal "0x26")) () ")"))) (; ";")) (expression_statement "FUN_001807a0(param_1);" (call_expression "FUN_001807a0(param_1)" (identifier "FUN_001807a0") (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::wfstream::~wfstream() */

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

{
  *(type_1 *)var_1 = 0x2ffbd8;
  *(type_1 *)(var_1 + 8) = 0x2ffbec;
  *(type_1 *)(var_1 + 0x98) = 0x2ffc00;
  *(type_2 ***)(var_1 + 0xc) = &PTR__wfilebuf_002ffa20;
  wfilebuf::var_2((type_3 *)(var_1 + 0xc));
  var_3<var_4>::~var_3((var_3<var_4> *)(var_1 + 0x44));
  *(type_2 ***)(var_1 + 0xc) = &PTR__wstreambuf_002ff0dc;
  locale::~var_5((var_5 *)(var_1 + 0x28));
  *(type_1 *)(var_1 + 4) = 0;
  *(type_1 *)(var_1 + 8) = 0x2ffb24;
  *(type_1 *)var_1 = 0x2ffb4c;
  *(type_2 ***)(var_1 + 0x98) = &PTR__wios_002ff7c0;
  ios_base::~var_6((var_6 *)(var_1 + 0x98));
  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: (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))))) (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 = &PTR_FUN_002ffbd8;
  param_1[2] = &PTR_FUN_002ffbec;
  param_1[0x26] = &PTR_FUN_002ffc00;
  param_1[3] = &PTR_FUN_002ffa20;
  FUN_001b33e0(param_1 + 3);
  FUN_00180fe0(param_1 + 0x11);
  param_1[3] = &PTR_FUN_002ff0dc;
  FUN_00182f00(param_1 + 10);
  param_1[1] = 0;
  param_1[2] = &DAT_002ffb24;
  *param_1 = &DAT_002ffb4c;
  param_1[0x26] = &PTR_FUN_002ff7c0;
  FUN_001c5a30(param_1 + 0x26);
  FUN_001807a0(param_1);
  return;
}

