
/* std::wofstream::wofstream() */

void __thiscall std::wofstream::wofstream(wofstream *this)

{
  ios_base *this_00;
  int unaff_EDI;
  
  __x86_get_pc_thunk_di();
  this_00 = (ios_base *)(this + 0x90);
  ios_base::ios_base(this_00);
  *(undefined4 *)(this + 0x100) = 0;
  *(undefined4 *)(this + 0x104) = 0;
  this[0x108] = (wofstream)0x0;
  *(undefined4 *)(this + 0x10c) = 0;
  *(undefined4 *)(this + 0x110) = 0;
  *(undefined4 *)(this + 0x114) = 0;
  *(undefined4 *)(this + 0x118) = 0;
  *(int *)this = unaff_EDI + 0x172cb3;
  *(int *)(this + 0x90) = unaff_EDI + 0x172cc7;
                    /* try { // try from 00219e99 to 00219e9d has its CatchHandler @ 00219ed8 */
  wios::init((wios *)this_00,(wstreambuf *)0x0);
  *(int *)this = unaff_EDI + 0x172ceb;
  *(int *)(this + 0x90) = unaff_EDI + 0x172cff;
                    /* try { // try from 00219ebb to 00219ebf has its CatchHandler @ 00219edc */
  wfilebuf::wfilebuf((wfilebuf *)(this + 4));
                    /* try { // try from 00219ec8 to 00219ecc has its CatchHandler @ 00219eda */
  wios::init((wios *)this_00,(wstreambuf *)(this + 4));
  return;
}



void FUN_00219e10(int *param_1)

{
  int *piVar1;
  int unaff_EDI;
  
  FUN_000559ee();
  piVar1 = param_1 + 0x24;
  FUN_0022bca0(piVar1);
  param_1[0x40] = 0;
  param_1[0x41] = 0;
  *(undefined1 *)(param_1 + 0x42) = 0;
  param_1[0x43] = 0;
  param_1[0x44] = 0;
  param_1[0x45] = 0;
  param_1[0x46] = 0;
  *param_1 = unaff_EDI + 0x172cb3;
  param_1[0x24] = unaff_EDI + 0x172cc7;
                    /* try { // try from 00219e99 to 00219e9d has its CatchHandler @ 00219ed8 */
  FUN_00211dd0(piVar1,0);
  *param_1 = unaff_EDI + 0x172ceb;
  param_1[0x24] = unaff_EDI + 0x172cff;
                    /* try { // try from 00219ebb to 00219ebf has its CatchHandler @ 00219edc */
  FUN_00215250(param_1 + 1);
                    /* try { // try from 00219ec8 to 00219ecc has its CatchHandler @ 00219eda */
  FUN_00211dd0(piVar1,param_1 + 1);
  return;
}


PUSH EBP
MOV EBP,ESP
PUSH EDI
CALL 0x000559ee
ADD EDI,0x1751e7
PUSH ESI
PUSH EBX
SUB ESP,0x28
MOV ESI,dword ptr [EBP + 0x8]
LEA EAX,[ESI + 0x90]
MOV EBX,EDI
PUSH EAX
MOV dword ptr [EBP + -0x1c],EAX
CALL 0x0022bca0
LEA EDX,[EDI + 0xffffdacc]
LEA EAX,[EDI + 0xffffdae0]
MOV dword ptr [ESI + 0x100],0x0
MOV dword ptr [ESI + 0x104],0x0
MOV byte ptr [ESI + 0x108],0x0
MOV dword ptr [ESI + 0x10c],0x0
MOV dword ptr [ESI + 0x110],0x0
MOV dword ptr [ESI + 0x114],0x0
MOV dword ptr [ESI + 0x118],0x0
MOV dword ptr [ESI],EDX
MOV dword ptr [ESI + 0x90],EAX
POP ECX
POP EAX
PUSH 0x0
PUSH dword ptr [EBP + -0x1c]
MOV dword ptr [EBP + -0x24],EDX
CALL 0x00211dd0
LEA EAX,[EDI + 0xffffdaf8]
LEA ECX,[ESI + 0x4]
MOV dword ptr [EBP + -0x20],ECX
LEA EDX,[EAX + 0xc]
ADD EAX,0x20
MOV dword ptr [ESI],EDX
MOV dword ptr [ESI + 0x90],EAX
MOV dword ptr [ESP],ECX
CALL 0x00215250
POP EAX
POP EDX
PUSH dword ptr [EBP + -0x20]
PUSH dword ptr [EBP + -0x1c]
CALL 0x00211dd0
ADD ESP,0x10
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "void FUN_00219e10(int *param_1)\n\n{\n  int *piVar1;\n  int unaff_EDI;\n  \n  FUN_000559ee();\n  piVar1 = param_1 + 0x24;\n  FUN_0022bca0(piVar1);\n  param_1[0x40] = 0;\n  param_1[0x41] = 0;\n  *(undefined1 *)(param_1 + 0x42) = 0;\n  param_1[0x43] = 0;\n  param_1[0x44] = 0;\n  param_1[0x45] = 0;\n  param_1[0x46] = 0;\n  *param_1 = unaff_EDI + 0x172cb3;\n  param_1[0x24] = unaff_EDI + 0x172cc7;\n                    /* try { // try from 00219e99 to 00219e9d has its CatchHandler @ 00219ed8 */\n  FUN_00211dd0(piVar1,0);\n  *param_1 = unaff_EDI + 0x172ceb;\n  param_1[0x24] = unaff_EDI + 0x172cff;\n                    /* try { // try from 00219ebb to 00219ebf has its CatchHandler @ 00219edc */\n  FUN_00215250(param_1 + 1);\n                    /* try { // try from 00219ec8 to 00219ecc has its CatchHandler @ 00219eda */\n  FUN_00211dd0(piVar1,param_1 + 1);\n  return;\n}\n\n" (function_definition "void FUN_00219e10(int *param_1)\n\n{\n  int *piVar1;\n  int unaff_EDI;\n  \n  FUN_000559ee();\n  piVar1 = param_1 + 0x24;\n  FUN_0022bca0(piVar1);\n  param_1[0x40] = 0;\n  param_1[0x41] = 0;\n  *(undefined1 *)(param_1 + 0x42) = 0;\n  param_1[0x43] = 0;\n  param_1[0x44] = 0;\n  param_1[0x45] = 0;\n  param_1[0x46] = 0;\n  *param_1 = unaff_EDI + 0x172cb3;\n  param_1[0x24] = unaff_EDI + 0x172cc7;\n                    /* try { // try from 00219e99 to 00219e9d has its CatchHandler @ 00219ed8 */\n  FUN_00211dd0(piVar1,0);\n  *param_1 = unaff_EDI + 0x172ceb;\n  param_1[0x24] = unaff_EDI + 0x172cff;\n                    /* try { // try from 00219ebb to 00219ebf has its CatchHandler @ 00219edc */\n  FUN_00215250(param_1 + 1);\n                    /* try { // try from 00219ec8 to 00219ecc has its CatchHandler @ 00219eda */\n  FUN_00211dd0(piVar1,param_1 + 1);\n  return;\n}" primitive_type (function_declarator "FUN_00219e10(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  int unaff_EDI;\n  \n  FUN_000559ee();\n  piVar1 = param_1 + 0x24;\n  FUN_0022bca0(piVar1);\n  param_1[0x40] = 0;\n  param_1[0x41] = 0;\n  *(undefined1 *)(param_1 + 0x42) = 0;\n  param_1[0x43] = 0;\n  param_1[0x44] = 0;\n  param_1[0x45] = 0;\n  param_1[0x46] = 0;\n  *param_1 = unaff_EDI + 0x172cb3;\n  param_1[0x24] = unaff_EDI + 0x172cc7;\n                    /* try { // try from 00219e99 to 00219e9d has its CatchHandler @ 00219ed8 */\n  FUN_00211dd0(piVar1,0);\n  *param_1 = unaff_EDI + 0x172ceb;\n  param_1[0x24] = unaff_EDI + 0x172cff;\n                    /* try { // try from 00219ebb to 00219ebf has its CatchHandler @ 00219edc */\n  FUN_00215250(param_1 + 1);\n                    /* try { // try from 00219ec8 to 00219ecc has its CatchHandler @ 00219eda */\n  FUN_00211dd0(piVar1,param_1 + 1);\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (expression_statement "FUN_000559ee();" (call_expression "FUN_000559ee()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar1 = param_1 + 0x24;" (assignment_expression "piVar1 = param_1 + 0x24" identifier = (binary_expression "param_1 + 0x24" identifier + number_literal)) ;) (expression_statement "FUN_0022bca0(piVar1);" (call_expression "FUN_0022bca0(piVar1)" identifier (argument_list "(piVar1)" ( identifier ))) ;) (expression_statement "param_1[0x40] = 0;" (assignment_expression "param_1[0x40] = 0" (subscript_expression "param_1[0x40]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x41] = 0;" (assignment_expression "param_1[0x41] = 0" (subscript_expression "param_1[0x41]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined1 *)(param_1 + 0x42) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 0x42) = 0" (pointer_expression "*(undefined1 *)(param_1 + 0x42)" * (cast_expression "(undefined1 *)(param_1 + 0x42)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x42)" ( (binary_expression "param_1 + 0x42" identifier + number_literal) )))) = number_literal) ;) (expression_statement "param_1[0x43] = 0;" (assignment_expression "param_1[0x43] = 0" (subscript_expression "param_1[0x43]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x44] = 0;" (assignment_expression "param_1[0x44] = 0" (subscript_expression "param_1[0x44]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x45] = 0;" (assignment_expression "param_1[0x45] = 0" (subscript_expression "param_1[0x45]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x46] = 0;" (assignment_expression "param_1[0x46] = 0" (subscript_expression "param_1[0x46]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_1 = unaff_EDI + 0x172cb3;" (assignment_expression "*param_1 = unaff_EDI + 0x172cb3" (pointer_expression "*param_1" * identifier) = (binary_expression "unaff_EDI + 0x172cb3" identifier + number_literal)) ;) (expression_statement "param_1[0x24] = unaff_EDI + 0x172cc7;" (assignment_expression "param_1[0x24] = unaff_EDI + 0x172cc7" (subscript_expression "param_1[0x24]" identifier [ number_literal ]) = (binary_expression "unaff_EDI + 0x172cc7" identifier + number_literal)) ;) comment (expression_statement "FUN_00211dd0(piVar1,0);" (call_expression "FUN_00211dd0(piVar1,0)" identifier (argument_list "(piVar1,0)" ( identifier , number_literal ))) ;) (expression_statement "*param_1 = unaff_EDI + 0x172ceb;" (assignment_expression "*param_1 = unaff_EDI + 0x172ceb" (pointer_expression "*param_1" * identifier) = (binary_expression "unaff_EDI + 0x172ceb" identifier + number_literal)) ;) (expression_statement "param_1[0x24] = unaff_EDI + 0x172cff;" (assignment_expression "param_1[0x24] = unaff_EDI + 0x172cff" (subscript_expression "param_1[0x24]" identifier [ number_literal ]) = (binary_expression "unaff_EDI + 0x172cff" identifier + number_literal)) ;) comment (expression_statement "FUN_00215250(param_1 + 1);" (call_expression "FUN_00215250(param_1 + 1)" identifier (argument_list "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) ))) ;) comment (expression_statement "FUN_00211dd0(piVar1,param_1 + 1);" (call_expression "FUN_00211dd0(piVar1,param_1 + 1)" identifier (argument_list "(piVar1,param_1 + 1)" ( identifier , (binary_expression "param_1 + 1" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* std::wofstream::wofstream() */\n\nvoid __thiscall std::wofstream::wofstream(wofstream *this)\n\n{\n  ios_base *this_00;\n  int unaff_EDI;\n  \n  __x86_get_pc_thunk_di();\n  this_00 = (ios_base *)(this + 0x90);\n  ios_base::ios_base(this_00);\n  *(undefined4 *)(this + 0x100) = 0;\n  *(undefined4 *)(this + 0x104) = 0;\n  this[0x108] = (wofstream)0x0;\n  *(undefined4 *)(this + 0x10c) = 0;\n  *(undefined4 *)(this + 0x110) = 0;\n  *(undefined4 *)(this + 0x114) = 0;\n  *(undefined4 *)(this + 0x118) = 0;\n  *(int *)this = unaff_EDI + 0x172cb3;\n  *(int *)(this + 0x90) = unaff_EDI + 0x172cc7;\n                    /* try { // try from 00219e99 to 00219e9d has its CatchHandler @ 00219ed8 */\n  wios::init((wios *)this_00,(wstreambuf *)0x0);\n  *(int *)this = unaff_EDI + 0x172ceb;\n  *(int *)(this + 0x90) = unaff_EDI + 0x172cff;\n                    /* try { // try from 00219ebb to 00219ebf has its CatchHandler @ 00219edc */\n  wfilebuf::wfilebuf((wfilebuf *)(this + 4));\n                    /* try { // try from 00219ec8 to 00219ecc has its CatchHandler @ 00219eda */\n  wios::init((wios *)this_00,(wstreambuf *)(this + 4));\n  return;\n}\n\n" comment (function_definition "void __thiscall std::wofstream::wofstream(wofstream *this)\n\n{\n  ios_base *this_00;\n  int unaff_EDI;\n  \n  __x86_get_pc_thunk_di();\n  this_00 = (ios_base *)(this + 0x90);\n  ios_base::ios_base(this_00);\n  *(undefined4 *)(this + 0x100) = 0;\n  *(undefined4 *)(this + 0x104) = 0;\n  this[0x108] = (wofstream)0x0;\n  *(undefined4 *)(this + 0x10c) = 0;\n  *(undefined4 *)(this + 0x110) = 0;\n  *(undefined4 *)(this + 0x114) = 0;\n  *(undefined4 *)(this + 0x118) = 0;\n  *(int *)this = unaff_EDI + 0x172cb3;\n  *(int *)(this + 0x90) = unaff_EDI + 0x172cc7;\n                    /* try { // try from 00219e99 to 00219e9d has its CatchHandler @ 00219ed8 */\n  wios::init((wios *)this_00,(wstreambuf *)0x0);\n  *(int *)this = unaff_EDI + 0x172ceb;\n  *(int *)(this + 0x90) = unaff_EDI + 0x172cff;\n                    /* try { // try from 00219ebb to 00219ebf has its CatchHandler @ 00219edc */\n  wfilebuf::wfilebuf((wfilebuf *)(this + 4));\n                    /* try { // try from 00219ec8 to 00219ecc has its CatchHandler @ 00219eda */\n  wios::init((wios *)this_00,(wstreambuf *)(this + 4));\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::wofstream::" identifier : : identifier : :) (function_declarator "wofstream(wofstream *this)" identifier (parameter_list "(wofstream *this)" ( (parameter_declaration "wofstream *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  ios_base *this_00;\n  int unaff_EDI;\n  \n  __x86_get_pc_thunk_di();\n  this_00 = (ios_base *)(this + 0x90);\n  ios_base::ios_base(this_00);\n  *(undefined4 *)(this + 0x100) = 0;\n  *(undefined4 *)(this + 0x104) = 0;\n  this[0x108] = (wofstream)0x0;\n  *(undefined4 *)(this + 0x10c) = 0;\n  *(undefined4 *)(this + 0x110) = 0;\n  *(undefined4 *)(this + 0x114) = 0;\n  *(undefined4 *)(this + 0x118) = 0;\n  *(int *)this = unaff_EDI + 0x172cb3;\n  *(int *)(this + 0x90) = unaff_EDI + 0x172cc7;\n                    /* try { // try from 00219e99 to 00219e9d has its CatchHandler @ 00219ed8 */\n  wios::init((wios *)this_00,(wstreambuf *)0x0);\n  *(int *)this = unaff_EDI + 0x172ceb;\n  *(int *)(this + 0x90) = unaff_EDI + 0x172cff;\n                    /* try { // try from 00219ebb to 00219ebf has its CatchHandler @ 00219edc */\n  wfilebuf::wfilebuf((wfilebuf *)(this + 4));\n                    /* try { // try from 00219ec8 to 00219ecc has its CatchHandler @ 00219eda */\n  wios::init((wios *)this_00,(wstreambuf *)(this + 4));\n  return;\n}" { (declaration "ios_base *this_00;" type_identifier (pointer_declarator "*this_00" * identifier) ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (expression_statement "__x86_get_pc_thunk_di();" (call_expression "__x86_get_pc_thunk_di()" identifier (argument_list "()" ( ))) ;) (expression_statement "this_00 = (ios_base *)(this + 0x90);" (assignment_expression "this_00 = (ios_base *)(this + 0x90)" identifier = (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) )))) ;) (labeled_statement "ios_base::ios_base(this_00);" statement_identifier : (ERROR ":" :) (expression_statement "ios_base(this_00);" (call_expression "ios_base(this_00)" identifier (argument_list "(this_00)" ( identifier ))) ;)) (expression_statement "*(undefined4 *)(this + 0x100) = 0;" (assignment_expression "*(undefined4 *)(this + 0x100) = 0" (pointer_expression "*(undefined4 *)(this + 0x100)" * (cast_expression "(undefined4 *)(this + 0x100)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x100)" ( (binary_expression "this + 0x100" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(this + 0x104) = 0;" (assignment_expression "*(undefined4 *)(this + 0x104) = 0" (pointer_expression "*(undefined4 *)(this + 0x104)" * (cast_expression "(undefined4 *)(this + 0x104)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x104)" ( (binary_expression "this + 0x104" identifier + number_literal) )))) = number_literal) ;) (expression_statement "this[0x108] = (wofstream)0x0;" (assignment_expression "this[0x108] = (wofstream)0x0" (subscript_expression "this[0x108]" identifier [ number_literal ]) = (cast_expression "(wofstream)0x0" ( (type_descriptor "wofstream" type_identifier) ) number_literal)) ;) (expression_statement "*(undefined4 *)(this + 0x10c) = 0;" (assignment_expression "*(undefined4 *)(this + 0x10c) = 0" (pointer_expression "*(undefined4 *)(this + 0x10c)" * (cast_expression "(undefined4 *)(this + 0x10c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x10c)" ( (binary_expression "this + 0x10c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(this + 0x110) = 0;" (assignment_expression "*(undefined4 *)(this + 0x110) = 0" (pointer_expression "*(undefined4 *)(this + 0x110)" * (cast_expression "(undefined4 *)(this + 0x110)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x110)" ( (binary_expression "this + 0x110" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(this + 0x114) = 0;" (assignment_expression "*(undefined4 *)(this + 0x114) = 0" (pointer_expression "*(undefined4 *)(this + 0x114)" * (cast_expression "(undefined4 *)(this + 0x114)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x114)" ( (binary_expression "this + 0x114" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(this + 0x118) = 0;" (assignment_expression "*(undefined4 *)(this + 0x118) = 0" (pointer_expression "*(undefined4 *)(this + 0x118)" * (cast_expression "(undefined4 *)(this + 0x118)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x118)" ( (binary_expression "this + 0x118" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(int *)this = unaff_EDI + 0x172cb3;" (assignment_expression "*(int *)this = unaff_EDI + 0x172cb3" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "unaff_EDI + 0x172cb3" identifier + number_literal)) ;) (expression_statement "*(int *)(this + 0x90) = unaff_EDI + 0x172cc7;" (assignment_expression "*(int *)(this + 0x90) = unaff_EDI + 0x172cc7" (pointer_expression "*(int *)(this + 0x90)" * (cast_expression "(int *)(this + 0x90)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x90)" ( (binary_expression "this + 0x90" identifier + number_literal) )))) = (binary_expression "unaff_EDI + 0x172cc7" identifier + number_literal)) ;) comment (labeled_statement "wios::init((wios *)this_00,(wstreambuf *)0x0);" statement_identifier : (ERROR ":" :) (expression_statement "init((wios *)this_00,(wstreambuf *)0x0);" (call_expression "init((wios *)this_00,(wstreambuf *)0x0)" identifier (argument_list "((wios *)this_00,(wstreambuf *)0x0)" ( (cast_expression "(wios *)this_00" ( (type_descriptor "wios *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(wstreambuf *)0x0" ( (type_descriptor "wstreambuf *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;)) (expression_statement "*(int *)this = unaff_EDI + 0x172ceb;" (assignment_expression "*(int *)this = unaff_EDI + 0x172ceb" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "unaff_EDI + 0x172ceb" identifier + number_literal)) ;) (expression_statement "*(int *)(this + 0x90) = unaff_EDI + 0x172cff;" (assignment_expression "*(int *)(this + 0x90) = unaff_EDI + 0x172cff" (pointer_expression "*(int *)(this + 0x90)" * (cast_expression "(int *)(this + 0x90)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x90)" ( (binary_expression "this + 0x90" identifier + number_literal) )))) = (binary_expression "unaff_EDI + 0x172cff" identifier + number_literal)) ;) comment (labeled_statement "wfilebuf::wfilebuf((wfilebuf *)(this + 4));" statement_identifier : (ERROR ":" :) (expression_statement "wfilebuf((wfilebuf *)(this + 4));" (call_expression "wfilebuf((wfilebuf *)(this + 4))" identifier (argument_list "((wfilebuf *)(this + 4))" ( (cast_expression "(wfilebuf *)(this + 4)" ( (type_descriptor "wfilebuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) ))) ))) ;)) comment (labeled_statement "wios::init((wios *)this_00,(wstreambuf *)(this + 4));" statement_identifier : (ERROR ":" :) (expression_statement "init((wios *)this_00,(wstreambuf *)(this + 4));" (call_expression "init((wios *)this_00,(wstreambuf *)(this + 4))" identifier (argument_list "((wios *)this_00,(wstreambuf *)(this + 4))" ( (cast_expression "(wios *)this_00" ( (type_descriptor "wios *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(wstreambuf *)(this + 4)" ( (type_descriptor "wstreambuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) ))) ))) ;)) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00219e10(int *param_1)\n\n{\n  int *piVar1;\n  int unaff_EDI;\n  \n  FUN_000559ee();\n  piVar1 = param_1 + 0x24;\n  FUN_0022bca0(piVar1);\n  param_1[0x40] = 0;\n  param_1[0x41] = 0;\n  *(undefined1 *)(param_1 + 0x42) = 0;\n  param_1[0x43] = 0;\n  param_1[0x44] = 0;\n  param_1[0x45] = 0;\n  param_1[0x46] = 0;\n  *param_1 = unaff_EDI + 0x172cb3;\n  param_1[0x24] = unaff_EDI + 0x172cc7;\n                    \n  FUN_00211dd0(piVar1,0);\n  *param_1 = unaff_EDI + 0x172ceb;\n  param_1[0x24] = unaff_EDI + 0x172cff;\n                    \n  FUN_00215250(param_1 + 1);\n                    \n  FUN_00211dd0(piVar1,param_1 + 1);\n  return;\n}\n\n" (function_definition "void FUN_00219e10(int *param_1)\n\n{\n  int *piVar1;\n  int unaff_EDI;\n  \n  FUN_000559ee();\n  piVar1 = param_1 + 0x24;\n  FUN_0022bca0(piVar1);\n  param_1[0x40] = 0;\n  param_1[0x41] = 0;\n  *(undefined1 *)(param_1 + 0x42) = 0;\n  param_1[0x43] = 0;\n  param_1[0x44] = 0;\n  param_1[0x45] = 0;\n  param_1[0x46] = 0;\n  *param_1 = unaff_EDI + 0x172cb3;\n  param_1[0x24] = unaff_EDI + 0x172cc7;\n                    \n  FUN_00211dd0(piVar1,0);\n  *param_1 = unaff_EDI + 0x172ceb;\n  param_1[0x24] = unaff_EDI + 0x172cff;\n                    \n  FUN_00215250(param_1 + 1);\n                    \n  FUN_00211dd0(piVar1,param_1 + 1);\n  return;\n}" primitive_type (function_declarator "FUN_00219e10(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int *piVar1;\n  int unaff_EDI;\n  \n  FUN_000559ee();\n  piVar1 = param_1 + 0x24;\n  FUN_0022bca0(piVar1);\n  param_1[0x40] = 0;\n  param_1[0x41] = 0;\n  *(undefined1 *)(param_1 + 0x42) = 0;\n  param_1[0x43] = 0;\n  param_1[0x44] = 0;\n  param_1[0x45] = 0;\n  param_1[0x46] = 0;\n  *param_1 = unaff_EDI + 0x172cb3;\n  param_1[0x24] = unaff_EDI + 0x172cc7;\n                    \n  FUN_00211dd0(piVar1,0);\n  *param_1 = unaff_EDI + 0x172ceb;\n  param_1[0x24] = unaff_EDI + 0x172cff;\n                    \n  FUN_00215250(param_1 + 1);\n                    \n  FUN_00211dd0(piVar1,param_1 + 1);\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int unaff_EDI;" primitive_type identifier ;) (expression_statement "FUN_000559ee();" (call_expression "FUN_000559ee()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar1 = param_1 + 0x24;" (assignment_expression "piVar1 = param_1 + 0x24" identifier = (binary_expression "param_1 + 0x24" identifier + number_literal)) ;) (expression_statement "FUN_0022bca0(piVar1);" (call_expression "FUN_0022bca0(piVar1)" identifier (argument_list "(piVar1)" ( identifier ))) ;) (expression_statement "param_1[0x40] = 0;" (assignment_expression "param_1[0x40] = 0" (subscript_expression "param_1[0x40]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x41] = 0;" (assignment_expression "param_1[0x41] = 0" (subscript_expression "param_1[0x41]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined1 *)(param_1 + 0x42) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 0x42) = 0" (pointer_expression "*(undefined1 *)(param_1 + 0x42)" * (cast_expression "(undefined1 *)(param_1 + 0x42)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x42)" ( (binary_expression "param_1 + 0x42" identifier + number_literal) )))) = number_literal) ;) (expression_statement "param_1[0x43] = 0;" (assignment_expression "param_1[0x43] = 0" (subscript_expression "param_1[0x43]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x44] = 0;" (assignment_expression "param_1[0x44] = 0" (subscript_expression "param_1[0x44]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x45] = 0;" (assignment_expression "param_1[0x45] = 0" (subscript_expression "param_1[0x45]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x46] = 0;" (assignment_expression "param_1[0x46] = 0" (subscript_expression "param_1[0x46]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*param_1 = unaff_EDI + 0x172cb3;" (assignment_expression "*param_1 = unaff_EDI + 0x172cb3" (pointer_expression "*param_1" * identifier) = (binary_expression "unaff_EDI + 0x172cb3" identifier + number_literal)) ;) (expression_statement "param_1[0x24] = unaff_EDI + 0x172cc7;" (assignment_expression "param_1[0x24] = unaff_EDI + 0x172cc7" (subscript_expression "param_1[0x24]" identifier [ number_literal ]) = (binary_expression "unaff_EDI + 0x172cc7" identifier + number_literal)) ;) (expression_statement "FUN_00211dd0(piVar1,0);" (call_expression "FUN_00211dd0(piVar1,0)" identifier (argument_list "(piVar1,0)" ( identifier , number_literal ))) ;) (expression_statement "*param_1 = unaff_EDI + 0x172ceb;" (assignment_expression "*param_1 = unaff_EDI + 0x172ceb" (pointer_expression "*param_1" * identifier) = (binary_expression "unaff_EDI + 0x172ceb" identifier + number_literal)) ;) (expression_statement "param_1[0x24] = unaff_EDI + 0x172cff;" (assignment_expression "param_1[0x24] = unaff_EDI + 0x172cff" (subscript_expression "param_1[0x24]" identifier [ number_literal ]) = (binary_expression "unaff_EDI + 0x172cff" identifier + number_literal)) ;) (expression_statement "FUN_00215250(param_1 + 1);" (call_expression "FUN_00215250(param_1 + 1)" identifier (argument_list "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) ))) ;) (expression_statement "FUN_00211dd0(piVar1,param_1 + 1);" (call_expression "FUN_00211dd0(piVar1,param_1 + 1)" identifier (argument_list "(piVar1,param_1 + 1)" ( identifier , (binary_expression "param_1 + 1" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00219e10(int *param_1)\n\n{\n  int *piVar1;\n  int unaff_EDI;\n  \n  FUN_000559ee();\n  piVar1 = param_1 + 0x24;\n  FUN_0022bca0(piVar1);\n  param_1[0x40] = 0;\n  param_1[0x41] = 0;\n  *(undefined1 *)(param_1 + 0x42) = 0;\n  param_1[0x43] = 0;\n  param_1[0x44] = 0;\n  param_1[0x45] = 0;\n  param_1[0x46] = 0;\n  *param_1 = unaff_EDI + 0x172cb3;\n  param_1[0x24] = unaff_EDI + 0x172cc7;\n                    \n  FUN_00211dd0(piVar1,0);\n  *param_1 = unaff_EDI + 0x172ceb;\n  param_1[0x24] = unaff_EDI + 0x172cff;\n                    \n  FUN_00215250(param_1 + 1);\n                    \n  FUN_00211dd0(piVar1,param_1 + 1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00219e10(int *param_1)" (identifier "FUN_00219e10") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int *piVar1;\n  int unaff_EDI;\n  \n  FUN_000559ee();\n  piVar1 = param_1 + 0x24;\n  FUN_0022bca0(piVar1);\n  param_1[0x40] = 0;\n  param_1[0x41] = 0;\n  *(undefined1 *)(param_1 + 0x42) = 0;\n  param_1[0x43] = 0;\n  param_1[0x44] = 0;\n  param_1[0x45] = 0;\n  param_1[0x46] = 0;\n  *param_1 = unaff_EDI + 0x172cb3;\n  param_1[0x24] = unaff_EDI + 0x172cc7;\n                    \n  FUN_00211dd0(piVar1,0);\n  *param_1 = unaff_EDI + 0x172ceb;\n  param_1[0x24] = unaff_EDI + 0x172cff;\n                    \n  FUN_00215250(param_1 + 1);\n                    \n  FUN_00211dd0(piVar1,param_1 + 1);\n  return;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int unaff_EDI;" (primitive_type "int") (identifier "unaff_EDI") (; ";")) (expression_statement "FUN_000559ee();" (call_expression "FUN_000559ee()" (identifier "FUN_000559ee") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "piVar1 = param_1 + 0x24;" (assignment_expression "piVar1 = param_1 + 0x24" (identifier "piVar1") (= "=") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24"))) (; ";")) (expression_statement "FUN_0022bca0(piVar1);" (call_expression "FUN_0022bca0(piVar1)" (identifier "FUN_0022bca0") (argument_list "(piVar1)" (( "(") (identifier "piVar1") () ")"))) (; ";")) (expression_statement "param_1[0x40] = 0;" (assignment_expression "param_1[0x40] = 0" (subscript_expression "param_1[0x40]" (identifier "param_1") ([ "[") (number_literal "0x40") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[0x41] = 0;" (assignment_expression "param_1[0x41] = 0" (subscript_expression "param_1[0x41]" (identifier "param_1") ([ "[") (number_literal "0x41") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined1 *)(param_1 + 0x42) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 0x42) = 0" (pointer_expression "*(undefined1 *)(param_1 + 0x42)" (* "*") (cast_expression "(undefined1 *)(param_1 + 0x42)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x42)" (( "(") (binary_expression "param_1 + 0x42" (identifier "param_1") (+ "+") (number_literal "0x42")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[0x43] = 0;" (assignment_expression "param_1[0x43] = 0" (subscript_expression "param_1[0x43]" (identifier "param_1") ([ "[") (number_literal "0x43") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[0x44] = 0;" (assignment_expression "param_1[0x44] = 0" (subscript_expression "param_1[0x44]" (identifier "param_1") ([ "[") (number_literal "0x44") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[0x45] = 0;" (assignment_expression "param_1[0x45] = 0" (subscript_expression "param_1[0x45]" (identifier "param_1") ([ "[") (number_literal "0x45") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[0x46] = 0;" (assignment_expression "param_1[0x46] = 0" (subscript_expression "param_1[0x46]" (identifier "param_1") ([ "[") (number_literal "0x46") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*param_1 = unaff_EDI + 0x172cb3;" (assignment_expression "*param_1 = unaff_EDI + 0x172cb3" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (binary_expression "unaff_EDI + 0x172cb3" (identifier "unaff_EDI") (+ "+") (number_literal "0x172cb3"))) (; ";")) (expression_statement "param_1[0x24] = unaff_EDI + 0x172cc7;" (assignment_expression "param_1[0x24] = unaff_EDI + 0x172cc7" (subscript_expression "param_1[0x24]" (identifier "param_1") ([ "[") (number_literal "0x24") (] "]")) (= "=") (binary_expression "unaff_EDI + 0x172cc7" (identifier "unaff_EDI") (+ "+") (number_literal "0x172cc7"))) (; ";")) (expression_statement "FUN_00211dd0(piVar1,0);" (call_expression "FUN_00211dd0(piVar1,0)" (identifier "FUN_00211dd0") (argument_list "(piVar1,0)" (( "(") (identifier "piVar1") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "*param_1 = unaff_EDI + 0x172ceb;" (assignment_expression "*param_1 = unaff_EDI + 0x172ceb" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (binary_expression "unaff_EDI + 0x172ceb" (identifier "unaff_EDI") (+ "+") (number_literal "0x172ceb"))) (; ";")) (expression_statement "param_1[0x24] = unaff_EDI + 0x172cff;" (assignment_expression "param_1[0x24] = unaff_EDI + 0x172cff" (subscript_expression "param_1[0x24]" (identifier "param_1") ([ "[") (number_literal "0x24") (] "]")) (= "=") (binary_expression "unaff_EDI + 0x172cff" (identifier "unaff_EDI") (+ "+") (number_literal "0x172cff"))) (; ";")) (expression_statement "FUN_00215250(param_1 + 1);" (call_expression "FUN_00215250(param_1 + 1)" (identifier "FUN_00215250") (argument_list "(param_1 + 1)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")"))) (; ";")) (expression_statement "FUN_00211dd0(piVar1,param_1 + 1);" (call_expression "FUN_00211dd0(piVar1,param_1 + 1)" (identifier "FUN_00211dd0") (argument_list "(piVar1,param_1 + 1)" (( "(") (identifier "piVar1") (, ",") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* std::wofstream::wofstream() */

void __thiscall std::function_1::function_1(function_1 *var_2)

{
  type_1 *this_00;
  int var_3;
  
  var_1();
  this_00 = (type_1 *)(var_2 + 0x90);
  ios_base::type_1(this_00);
  *(type_2 *)(var_2 + 0x100) = 0;
  *(type_2 *)(var_2 + 0x104) = 0;
  var_2[0x108] = (function_1)0x0;
  *(type_2 *)(var_2 + 0x10c) = 0;
  *(type_2 *)(var_2 + 0x110) = 0;
  *(type_2 *)(var_2 + 0x114) = 0;
  *(type_2 *)(var_2 + 0x118) = 0;
  *(int *)var_2 = var_3 + 0x172cb3;
  *(int *)(var_2 + 0x90) = var_3 + 0x172cc7;
                    /* try { // try from 00219e99 to 00219e9d has its CatchHandler @ 00219ed8 */
  wios::var_4((type_3 *)this_00,(type_4 *)0x0);
  *(int *)var_2 = var_3 + 0x172ceb;
  *(int *)(var_2 + 0x90) = var_3 + 0x172cff;
                    /* try { // try from 00219ebb to 00219ebf has its CatchHandler @ 00219edc */
  wfilebuf::var_5((var_5 *)(var_2 + 4));
                    /* try { // try from 00219ec8 to 00219ecc has its CatchHandler @ 00219eda */
  wios::var_4((type_3 *)this_00,(type_4 *)(var_2 + 4));
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (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: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) 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: (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: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (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 (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal))))) (return_statement))))

void MASKED(int *param_1)

{
  int *piVar1;
  int unaff_EDI;
  
  FUN_000559ee();
  piVar1 = param_1 + 0x24;
  FUN_0022bca0(piVar1);
  param_1[0x40] = 0;
  param_1[0x41] = 0;
  *(undefined1 *)(param_1 + 0x42) = 0;
  param_1[0x43] = 0;
  param_1[0x44] = 0;
  param_1[0x45] = 0;
  param_1[0x46] = 0;
  *param_1 = unaff_EDI + 0x172cb3;
  param_1[0x24] = unaff_EDI + 0x172cc7;
                    /* try { // try from 00219e99 to 00219e9d has its CatchHandler @ 00219ed8 */
  FUN_00211dd0(piVar1,0);
  *param_1 = unaff_EDI + 0x172ceb;
  param_1[0x24] = unaff_EDI + 0x172cff;
                    /* try { // try from 00219ebb to 00219ebf has its CatchHandler @ 00219edc */
  FUN_00215250(param_1 + 1);
                    /* try { // try from 00219ec8 to 00219ecc has its CatchHandler @ 00219eda */
  FUN_00211dd0(piVar1,param_1 + 1);
  return;
}

