
/* std::ofstream::ofstream() */

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

{
  ios_base *this_00;
  int unaff_EDI;
  
  __x86_get_pc_thunk_di();
  this_00 = (ios_base *)(this + 0x8c);
  ios_base::ios_base(this_00);
  *(undefined4 *)(this + 0xfc) = 0;
  *(undefined2 *)(this + 0x100) = 0;
  *(undefined4 *)(this + 0x104) = 0;
  *(undefined4 *)(this + 0x108) = 0;
  *(undefined4 *)(this + 0x10c) = 0;
  *(undefined4 *)(this + 0x110) = 0;
  *(undefined **)this = &UNK_001991cf + unaff_EDI;
  *(int *)(this + 0x8c) = unaff_EDI + 0x1991e3;
                    /* try { // try from 00278791 to 00278795 has its CatchHandler @ 002787d0 */
  ios::init((streambuf *)this_00);
  *(int *)this = unaff_EDI + 0x199207;
  *(int *)(this + 0x8c) = unaff_EDI + 0x19921b;
                    /* try { // try from 002787b3 to 002787b7 has its CatchHandler @ 002787d4 */
  filebuf::filebuf((filebuf *)(this + 4));
                    /* try { // try from 002787c0 to 002787c4 has its CatchHandler @ 002787d2 */
  ios::init((streambuf *)this_00);
  return;
}



void FUN_00278710(int *param_1)

{
  int *piVar1;
  int unaff_EDI;
  
  FUN_000b484e();
  piVar1 = param_1 + 0x23;
  FUN_0028d110(piVar1);
  param_1[0x3f] = 0;
  *(undefined2 *)(param_1 + 0x40) = 0;
  param_1[0x41] = 0;
  param_1[0x42] = 0;
  param_1[0x43] = 0;
  param_1[0x44] = 0;
  *param_1 = (int)(&UNK_001991cf + unaff_EDI);
  param_1[0x23] = unaff_EDI + 0x1991e3;
                    /* try { // try from 00278791 to 00278795 has its CatchHandler @ 002787d0 */
  FUN_002728c0(piVar1,0);
  *param_1 = unaff_EDI + 0x199207;
  param_1[0x23] = unaff_EDI + 0x19921b;
                    /* try { // try from 002787b3 to 002787b7 has its CatchHandler @ 002787d4 */
  FUN_00274ae0(param_1 + 1);
                    /* try { // try from 002787c0 to 002787c4 has its CatchHandler @ 002787d2 */
  FUN_002728c0(piVar1,param_1 + 1);
  return;
}


PUSH EBP
MOV EBP,ESP
PUSH EDI
CALL 0x000b484e
ADD EDI,0x19b8e7
PUSH ESI
PUSH EBX
SUB ESP,0x28
MOV ESI,dword ptr [EBP + 0x8]
LEA EAX,[ESI + 0x8c]
MOV EBX,EDI
PUSH EAX
MOV dword ptr [EBP + -0x1c],EAX
CALL 0x0028d110
LEA EDX,[EDI + 0xffffd8e8]
LEA EAX,[EDI + 0xffffd8fc]
XOR ECX,ECX
MOV dword ptr [ESI + 0xfc],0x0
MOV word ptr [ESI + 0x100],CX
MOV dword ptr [ESI + 0x104],0x0
MOV dword ptr [ESI + 0x108],0x0
MOV dword ptr [ESI + 0x10c],0x0
MOV dword ptr [ESI + 0x110],0x0
MOV dword ptr [ESI],EDX
MOV dword ptr [ESI + 0x8c],EAX
POP EAX
MOV dword ptr [EBP + -0x24],EDX
POP EDX
PUSH 0x0
PUSH dword ptr [EBP + -0x1c]
CALL 0x002728c0
LEA EAX,[EDI + 0xffffd914]
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 + 0x8c],EAX
MOV dword ptr [ESP],ECX
CALL 0x00274ae0
POP EAX
POP EDX
PUSH dword ptr [EBP + -0x20]
PUSH dword ptr [EBP + -0x1c]
CALL 0x002728c0
ADD ESP,0x10
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "void FUN_00278710(int *param_1)\n\n{\n  int *piVar1;\n  int unaff_EDI;\n  \n  FUN_000b484e();\n  piVar1 = param_1 + 0x23;\n  FUN_0028d110(piVar1);\n  param_1[0x3f] = 0;\n  *(undefined2 *)(param_1 + 0x40) = 0;\n  param_1[0x41] = 0;\n  param_1[0x42] = 0;\n  param_1[0x43] = 0;\n  param_1[0x44] = 0;\n  *param_1 = (int)(&UNK_001991cf + unaff_EDI);\n  param_1[0x23] = unaff_EDI + 0x1991e3;\n                    /* try { // try from 00278791 to 00278795 has its CatchHandler @ 002787d0 */\n  FUN_002728c0(piVar1,0);\n  *param_1 = unaff_EDI + 0x199207;\n  param_1[0x23] = unaff_EDI + 0x19921b;\n                    /* try { // try from 002787b3 to 002787b7 has its CatchHandler @ 002787d4 */\n  FUN_00274ae0(param_1 + 1);\n                    /* try { // try from 002787c0 to 002787c4 has its CatchHandler @ 002787d2 */\n  FUN_002728c0(piVar1,param_1 + 1);\n  return;\n}\n\n" (function_definition "void FUN_00278710(int *param_1)\n\n{\n  int *piVar1;\n  int unaff_EDI;\n  \n  FUN_000b484e();\n  piVar1 = param_1 + 0x23;\n  FUN_0028d110(piVar1);\n  param_1[0x3f] = 0;\n  *(undefined2 *)(param_1 + 0x40) = 0;\n  param_1[0x41] = 0;\n  param_1[0x42] = 0;\n  param_1[0x43] = 0;\n  param_1[0x44] = 0;\n  *param_1 = (int)(&UNK_001991cf + unaff_EDI);\n  param_1[0x23] = unaff_EDI + 0x1991e3;\n                    /* try { // try from 00278791 to 00278795 has its CatchHandler @ 002787d0 */\n  FUN_002728c0(piVar1,0);\n  *param_1 = unaff_EDI + 0x199207;\n  param_1[0x23] = unaff_EDI + 0x19921b;\n                    /* try { // try from 002787b3 to 002787b7 has its CatchHandler @ 002787d4 */\n  FUN_00274ae0(param_1 + 1);\n                    /* try { // try from 002787c0 to 002787c4 has its CatchHandler @ 002787d2 */\n  FUN_002728c0(piVar1,param_1 + 1);\n  return;\n}" primitive_type (function_declarator "FUN_00278710(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_000b484e();\n  piVar1 = param_1 + 0x23;\n  FUN_0028d110(piVar1);\n  param_1[0x3f] = 0;\n  *(undefined2 *)(param_1 + 0x40) = 0;\n  param_1[0x41] = 0;\n  param_1[0x42] = 0;\n  param_1[0x43] = 0;\n  param_1[0x44] = 0;\n  *param_1 = (int)(&UNK_001991cf + unaff_EDI);\n  param_1[0x23] = unaff_EDI + 0x1991e3;\n                    /* try { // try from 00278791 to 00278795 has its CatchHandler @ 002787d0 */\n  FUN_002728c0(piVar1,0);\n  *param_1 = unaff_EDI + 0x199207;\n  param_1[0x23] = unaff_EDI + 0x19921b;\n                    /* try { // try from 002787b3 to 002787b7 has its CatchHandler @ 002787d4 */\n  FUN_00274ae0(param_1 + 1);\n                    /* try { // try from 002787c0 to 002787c4 has its CatchHandler @ 002787d2 */\n  FUN_002728c0(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_000b484e();" (call_expression "FUN_000b484e()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar1 = param_1 + 0x23;" (assignment_expression "piVar1 = param_1 + 0x23" identifier = (binary_expression "param_1 + 0x23" identifier + number_literal)) ;) (expression_statement "FUN_0028d110(piVar1);" (call_expression "FUN_0028d110(piVar1)" identifier (argument_list "(piVar1)" ( identifier ))) ;) (expression_statement "param_1[0x3f] = 0;" (assignment_expression "param_1[0x3f] = 0" (subscript_expression "param_1[0x3f]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined2 *)(param_1 + 0x40) = 0;" (assignment_expression "*(undefined2 *)(param_1 + 0x40) = 0" (pointer_expression "*(undefined2 *)(param_1 + 0x40)" * (cast_expression "(undefined2 *)(param_1 + 0x40)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_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 "param_1[0x42] = 0;" (assignment_expression "param_1[0x42] = 0" (subscript_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 = (int)(&UNK_001991cf + unaff_EDI);" (assignment_expression "*param_1 = (int)(&UNK_001991cf + unaff_EDI)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(&UNK_001991cf + unaff_EDI)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(&UNK_001991cf + unaff_EDI)" ( (binary_expression "&UNK_001991cf + unaff_EDI" (pointer_expression "&UNK_001991cf" & identifier) + identifier) )))) ;) (expression_statement "param_1[0x23] = unaff_EDI + 0x1991e3;" (assignment_expression "param_1[0x23] = unaff_EDI + 0x1991e3" (subscript_expression "param_1[0x23]" identifier [ number_literal ]) = (binary_expression "unaff_EDI + 0x1991e3" identifier + number_literal)) ;) comment (expression_statement "FUN_002728c0(piVar1,0);" (call_expression "FUN_002728c0(piVar1,0)" identifier (argument_list "(piVar1,0)" ( identifier , number_literal ))) ;) (expression_statement "*param_1 = unaff_EDI + 0x199207;" (assignment_expression "*param_1 = unaff_EDI + 0x199207" (pointer_expression "*param_1" * identifier) = (binary_expression "unaff_EDI + 0x199207" identifier + number_literal)) ;) (expression_statement "param_1[0x23] = unaff_EDI + 0x19921b;" (assignment_expression "param_1[0x23] = unaff_EDI + 0x19921b" (subscript_expression "param_1[0x23]" identifier [ number_literal ]) = (binary_expression "unaff_EDI + 0x19921b" identifier + number_literal)) ;) comment (expression_statement "FUN_00274ae0(param_1 + 1);" (call_expression "FUN_00274ae0(param_1 + 1)" identifier (argument_list "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) ))) ;) comment (expression_statement "FUN_002728c0(piVar1,param_1 + 1);" (call_expression "FUN_002728c0(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::ofstream::ofstream() */\n\nvoid __thiscall std::ofstream::ofstream(ofstream *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 + 0x8c);\n  ios_base::ios_base(this_00);\n  *(undefined4 *)(this + 0xfc) = 0;\n  *(undefined2 *)(this + 0x100) = 0;\n  *(undefined4 *)(this + 0x104) = 0;\n  *(undefined4 *)(this + 0x108) = 0;\n  *(undefined4 *)(this + 0x10c) = 0;\n  *(undefined4 *)(this + 0x110) = 0;\n  *(undefined **)this = &UNK_001991cf + unaff_EDI;\n  *(int *)(this + 0x8c) = unaff_EDI + 0x1991e3;\n                    /* try { // try from 00278791 to 00278795 has its CatchHandler @ 002787d0 */\n  ios::init((streambuf *)this_00);\n  *(int *)this = unaff_EDI + 0x199207;\n  *(int *)(this + 0x8c) = unaff_EDI + 0x19921b;\n                    /* try { // try from 002787b3 to 002787b7 has its CatchHandler @ 002787d4 */\n  filebuf::filebuf((filebuf *)(this + 4));\n                    /* try { // try from 002787c0 to 002787c4 has its CatchHandler @ 002787d2 */\n  ios::init((streambuf *)this_00);\n  return;\n}\n\n" comment (function_definition "void __thiscall std::ofstream::ofstream(ofstream *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 + 0x8c);\n  ios_base::ios_base(this_00);\n  *(undefined4 *)(this + 0xfc) = 0;\n  *(undefined2 *)(this + 0x100) = 0;\n  *(undefined4 *)(this + 0x104) = 0;\n  *(undefined4 *)(this + 0x108) = 0;\n  *(undefined4 *)(this + 0x10c) = 0;\n  *(undefined4 *)(this + 0x110) = 0;\n  *(undefined **)this = &UNK_001991cf + unaff_EDI;\n  *(int *)(this + 0x8c) = unaff_EDI + 0x1991e3;\n                    /* try { // try from 00278791 to 00278795 has its CatchHandler @ 002787d0 */\n  ios::init((streambuf *)this_00);\n  *(int *)this = unaff_EDI + 0x199207;\n  *(int *)(this + 0x8c) = unaff_EDI + 0x19921b;\n                    /* try { // try from 002787b3 to 002787b7 has its CatchHandler @ 002787d4 */\n  filebuf::filebuf((filebuf *)(this + 4));\n                    /* try { // try from 002787c0 to 002787c4 has its CatchHandler @ 002787d2 */\n  ios::init((streambuf *)this_00);\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::ofstream::" identifier : : identifier : :) (function_declarator "ofstream(ofstream *this)" identifier (parameter_list "(ofstream *this)" ( (parameter_declaration "ofstream *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 + 0x8c);\n  ios_base::ios_base(this_00);\n  *(undefined4 *)(this + 0xfc) = 0;\n  *(undefined2 *)(this + 0x100) = 0;\n  *(undefined4 *)(this + 0x104) = 0;\n  *(undefined4 *)(this + 0x108) = 0;\n  *(undefined4 *)(this + 0x10c) = 0;\n  *(undefined4 *)(this + 0x110) = 0;\n  *(undefined **)this = &UNK_001991cf + unaff_EDI;\n  *(int *)(this + 0x8c) = unaff_EDI + 0x1991e3;\n                    /* try { // try from 00278791 to 00278795 has its CatchHandler @ 002787d0 */\n  ios::init((streambuf *)this_00);\n  *(int *)this = unaff_EDI + 0x199207;\n  *(int *)(this + 0x8c) = unaff_EDI + 0x19921b;\n                    /* try { // try from 002787b3 to 002787b7 has its CatchHandler @ 002787d4 */\n  filebuf::filebuf((filebuf *)(this + 4));\n                    /* try { // try from 002787c0 to 002787c4 has its CatchHandler @ 002787d2 */\n  ios::init((streambuf *)this_00);\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 + 0x8c);" (assignment_expression "this_00 = (ios_base *)(this + 0x8c)" identifier = (cast_expression "(ios_base *)(this + 0x8c)" ( (type_descriptor "ios_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x8c)" ( (binary_expression "this + 0x8c" identifier + number_literal) )))) ;) (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 + 0xfc) = 0;" (assignment_expression "*(undefined4 *)(this + 0xfc) = 0" (pointer_expression "*(undefined4 *)(this + 0xfc)" * (cast_expression "(undefined4 *)(this + 0xfc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0xfc)" ( (binary_expression "this + 0xfc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined2 *)(this + 0x100) = 0;" (assignment_expression "*(undefined2 *)(this + 0x100) = 0" (pointer_expression "*(undefined2 *)(this + 0x100)" * (cast_expression "(undefined2 *)(this + 0x100)" ( (type_descriptor "undefined2 *" 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 "*(undefined4 *)(this + 0x108) = 0;" (assignment_expression "*(undefined4 *)(this + 0x108) = 0" (pointer_expression "*(undefined4 *)(this + 0x108)" * (cast_expression "(undefined4 *)(this + 0x108)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x108)" ( (binary_expression "this + 0x108" identifier + number_literal) )))) = 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 "*(undefined **)this = &UNK_001991cf + unaff_EDI;" (assignment_expression "*(undefined **)this = &UNK_001991cf + unaff_EDI" (pointer_expression "*(undefined **)this" * (cast_expression "(undefined **)this" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = (binary_expression "&UNK_001991cf + unaff_EDI" (pointer_expression "&UNK_001991cf" & identifier) + identifier)) ;) (expression_statement "*(int *)(this + 0x8c) = unaff_EDI + 0x1991e3;" (assignment_expression "*(int *)(this + 0x8c) = unaff_EDI + 0x1991e3" (pointer_expression "*(int *)(this + 0x8c)" * (cast_expression "(int *)(this + 0x8c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x8c)" ( (binary_expression "this + 0x8c" identifier + number_literal) )))) = (binary_expression "unaff_EDI + 0x1991e3" identifier + number_literal)) ;) comment (labeled_statement "ios::init((streambuf *)this_00);" statement_identifier : (ERROR ":" :) (expression_statement "init((streambuf *)this_00);" (call_expression "init((streambuf *)this_00)" identifier (argument_list "((streambuf *)this_00)" ( (cast_expression "(streambuf *)this_00" ( (type_descriptor "streambuf *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;)) (expression_statement "*(int *)this = unaff_EDI + 0x199207;" (assignment_expression "*(int *)this = unaff_EDI + 0x199207" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "unaff_EDI + 0x199207" identifier + number_literal)) ;) (expression_statement "*(int *)(this + 0x8c) = unaff_EDI + 0x19921b;" (assignment_expression "*(int *)(this + 0x8c) = unaff_EDI + 0x19921b" (pointer_expression "*(int *)(this + 0x8c)" * (cast_expression "(int *)(this + 0x8c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x8c)" ( (binary_expression "this + 0x8c" identifier + number_literal) )))) = (binary_expression "unaff_EDI + 0x19921b" identifier + number_literal)) ;) comment (labeled_statement "filebuf::filebuf((filebuf *)(this + 4));" statement_identifier : (ERROR ":" :) (expression_statement "filebuf((filebuf *)(this + 4));" (call_expression "filebuf((filebuf *)(this + 4))" identifier (argument_list "((filebuf *)(this + 4))" ( (cast_expression "(filebuf *)(this + 4)" ( (type_descriptor "filebuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) ))) ))) ;)) comment (labeled_statement "ios::init((streambuf *)this_00);" statement_identifier : (ERROR ":" :) (expression_statement "init((streambuf *)this_00);" (call_expression "init((streambuf *)this_00)" identifier (argument_list "((streambuf *)this_00)" ( (cast_expression "(streambuf *)this_00" ( (type_descriptor "streambuf *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;)) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00278710(int *param_1)\n\n{\n  int *piVar1;\n  int unaff_EDI;\n  \n  FUN_000b484e();\n  piVar1 = param_1 + 0x23;\n  FUN_0028d110(piVar1);\n  param_1[0x3f] = 0;\n  *(undefined2 *)(param_1 + 0x40) = 0;\n  param_1[0x41] = 0;\n  param_1[0x42] = 0;\n  param_1[0x43] = 0;\n  param_1[0x44] = 0;\n  *param_1 = (int)(&UNK_001991cf + unaff_EDI);\n  param_1[0x23] = unaff_EDI + 0x1991e3;\n                    \n  FUN_002728c0(piVar1,0);\n  *param_1 = unaff_EDI + 0x199207;\n  param_1[0x23] = unaff_EDI + 0x19921b;\n                    \n  FUN_00274ae0(param_1 + 1);\n                    \n  FUN_002728c0(piVar1,param_1 + 1);\n  return;\n}\n\n" (function_definition "void FUN_00278710(int *param_1)\n\n{\n  int *piVar1;\n  int unaff_EDI;\n  \n  FUN_000b484e();\n  piVar1 = param_1 + 0x23;\n  FUN_0028d110(piVar1);\n  param_1[0x3f] = 0;\n  *(undefined2 *)(param_1 + 0x40) = 0;\n  param_1[0x41] = 0;\n  param_1[0x42] = 0;\n  param_1[0x43] = 0;\n  param_1[0x44] = 0;\n  *param_1 = (int)(&UNK_001991cf + unaff_EDI);\n  param_1[0x23] = unaff_EDI + 0x1991e3;\n                    \n  FUN_002728c0(piVar1,0);\n  *param_1 = unaff_EDI + 0x199207;\n  param_1[0x23] = unaff_EDI + 0x19921b;\n                    \n  FUN_00274ae0(param_1 + 1);\n                    \n  FUN_002728c0(piVar1,param_1 + 1);\n  return;\n}" primitive_type (function_declarator "FUN_00278710(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_000b484e();\n  piVar1 = param_1 + 0x23;\n  FUN_0028d110(piVar1);\n  param_1[0x3f] = 0;\n  *(undefined2 *)(param_1 + 0x40) = 0;\n  param_1[0x41] = 0;\n  param_1[0x42] = 0;\n  param_1[0x43] = 0;\n  param_1[0x44] = 0;\n  *param_1 = (int)(&UNK_001991cf + unaff_EDI);\n  param_1[0x23] = unaff_EDI + 0x1991e3;\n                    \n  FUN_002728c0(piVar1,0);\n  *param_1 = unaff_EDI + 0x199207;\n  param_1[0x23] = unaff_EDI + 0x19921b;\n                    \n  FUN_00274ae0(param_1 + 1);\n                    \n  FUN_002728c0(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_000b484e();" (call_expression "FUN_000b484e()" identifier (argument_list "()" ( ))) ;) (expression_statement "piVar1 = param_1 + 0x23;" (assignment_expression "piVar1 = param_1 + 0x23" identifier = (binary_expression "param_1 + 0x23" identifier + number_literal)) ;) (expression_statement "FUN_0028d110(piVar1);" (call_expression "FUN_0028d110(piVar1)" identifier (argument_list "(piVar1)" ( identifier ))) ;) (expression_statement "param_1[0x3f] = 0;" (assignment_expression "param_1[0x3f] = 0" (subscript_expression "param_1[0x3f]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined2 *)(param_1 + 0x40) = 0;" (assignment_expression "*(undefined2 *)(param_1 + 0x40) = 0" (pointer_expression "*(undefined2 *)(param_1 + 0x40)" * (cast_expression "(undefined2 *)(param_1 + 0x40)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_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 "param_1[0x42] = 0;" (assignment_expression "param_1[0x42] = 0" (subscript_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 = (int)(&UNK_001991cf + unaff_EDI);" (assignment_expression "*param_1 = (int)(&UNK_001991cf + unaff_EDI)" (pointer_expression "*param_1" * identifier) = (cast_expression "(int)(&UNK_001991cf + unaff_EDI)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(&UNK_001991cf + unaff_EDI)" ( (binary_expression "&UNK_001991cf + unaff_EDI" (pointer_expression "&UNK_001991cf" & identifier) + identifier) )))) ;) (expression_statement "param_1[0x23] = unaff_EDI + 0x1991e3;" (assignment_expression "param_1[0x23] = unaff_EDI + 0x1991e3" (subscript_expression "param_1[0x23]" identifier [ number_literal ]) = (binary_expression "unaff_EDI + 0x1991e3" identifier + number_literal)) ;) (expression_statement "FUN_002728c0(piVar1,0);" (call_expression "FUN_002728c0(piVar1,0)" identifier (argument_list "(piVar1,0)" ( identifier , number_literal ))) ;) (expression_statement "*param_1 = unaff_EDI + 0x199207;" (assignment_expression "*param_1 = unaff_EDI + 0x199207" (pointer_expression "*param_1" * identifier) = (binary_expression "unaff_EDI + 0x199207" identifier + number_literal)) ;) (expression_statement "param_1[0x23] = unaff_EDI + 0x19921b;" (assignment_expression "param_1[0x23] = unaff_EDI + 0x19921b" (subscript_expression "param_1[0x23]" identifier [ number_literal ]) = (binary_expression "unaff_EDI + 0x19921b" identifier + number_literal)) ;) (expression_statement "FUN_00274ae0(param_1 + 1);" (call_expression "FUN_00274ae0(param_1 + 1)" identifier (argument_list "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) ))) ;) (expression_statement "FUN_002728c0(piVar1,param_1 + 1);" (call_expression "FUN_002728c0(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 (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) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + IDENT) )))) ;) (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_00278710(int *param_1)\n\n{\n  int *piVar1;\n  int unaff_EDI;\n  \n  FUN_000b484e();\n  piVar1 = param_1 + 0x23;\n  FUN_0028d110(piVar1);\n  param_1[0x3f] = 0;\n  *(undefined2 *)(param_1 + 0x40) = 0;\n  param_1[0x41] = 0;\n  param_1[0x42] = 0;\n  param_1[0x43] = 0;\n  param_1[0x44] = 0;\n  *param_1 = (int)(&UNK_001991cf + unaff_EDI);\n  param_1[0x23] = unaff_EDI + 0x1991e3;\n                    \n  FUN_002728c0(piVar1,0);\n  *param_1 = unaff_EDI + 0x199207;\n  param_1[0x23] = unaff_EDI + 0x19921b;\n                    \n  FUN_00274ae0(param_1 + 1);\n                    \n  FUN_002728c0(piVar1,param_1 + 1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00278710(int *param_1)" (identifier "FUN_00278710") (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_000b484e();\n  piVar1 = param_1 + 0x23;\n  FUN_0028d110(piVar1);\n  param_1[0x3f] = 0;\n  *(undefined2 *)(param_1 + 0x40) = 0;\n  param_1[0x41] = 0;\n  param_1[0x42] = 0;\n  param_1[0x43] = 0;\n  param_1[0x44] = 0;\n  *param_1 = (int)(&UNK_001991cf + unaff_EDI);\n  param_1[0x23] = unaff_EDI + 0x1991e3;\n                    \n  FUN_002728c0(piVar1,0);\n  *param_1 = unaff_EDI + 0x199207;\n  param_1[0x23] = unaff_EDI + 0x19921b;\n                    \n  FUN_00274ae0(param_1 + 1);\n                    \n  FUN_002728c0(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_000b484e();" (call_expression "FUN_000b484e()" (identifier "FUN_000b484e") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "piVar1 = param_1 + 0x23;" (assignment_expression "piVar1 = param_1 + 0x23" (identifier "piVar1") (= "=") (binary_expression "param_1 + 0x23" (identifier "param_1") (+ "+") (number_literal "0x23"))) (; ";")) (expression_statement "FUN_0028d110(piVar1);" (call_expression "FUN_0028d110(piVar1)" (identifier "FUN_0028d110") (argument_list "(piVar1)" (( "(") (identifier "piVar1") () ")"))) (; ";")) (expression_statement "param_1[0x3f] = 0;" (assignment_expression "param_1[0x3f] = 0" (subscript_expression "param_1[0x3f]" (identifier "param_1") ([ "[") (number_literal "0x3f") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined2 *)(param_1 + 0x40) = 0;" (assignment_expression "*(undefined2 *)(param_1 + 0x40) = 0" (pointer_expression "*(undefined2 *)(param_1 + 0x40)" (* "*") (cast_expression "(undefined2 *)(param_1 + 0x40)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x40)" (( "(") (binary_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 "param_1[0x42] = 0;" (assignment_expression "param_1[0x42] = 0" (subscript_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 = (int)(&UNK_001991cf + unaff_EDI);" (assignment_expression "*param_1 = (int)(&UNK_001991cf + unaff_EDI)" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(int)(&UNK_001991cf + unaff_EDI)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(&UNK_001991cf + unaff_EDI)" (( "(") (binary_expression "&UNK_001991cf + unaff_EDI" (pointer_expression "&UNK_001991cf" (& "&") (identifier "UNK_001991cf")) (+ "+") (identifier "unaff_EDI")) () ")")))) (; ";")) (expression_statement "param_1[0x23] = unaff_EDI + 0x1991e3;" (assignment_expression "param_1[0x23] = unaff_EDI + 0x1991e3" (subscript_expression "param_1[0x23]" (identifier "param_1") ([ "[") (number_literal "0x23") (] "]")) (= "=") (binary_expression "unaff_EDI + 0x1991e3" (identifier "unaff_EDI") (+ "+") (number_literal "0x1991e3"))) (; ";")) (expression_statement "FUN_002728c0(piVar1,0);" (call_expression "FUN_002728c0(piVar1,0)" (identifier "FUN_002728c0") (argument_list "(piVar1,0)" (( "(") (identifier "piVar1") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "*param_1 = unaff_EDI + 0x199207;" (assignment_expression "*param_1 = unaff_EDI + 0x199207" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (binary_expression "unaff_EDI + 0x199207" (identifier "unaff_EDI") (+ "+") (number_literal "0x199207"))) (; ";")) (expression_statement "param_1[0x23] = unaff_EDI + 0x19921b;" (assignment_expression "param_1[0x23] = unaff_EDI + 0x19921b" (subscript_expression "param_1[0x23]" (identifier "param_1") ([ "[") (number_literal "0x23") (] "]")) (= "=") (binary_expression "unaff_EDI + 0x19921b" (identifier "unaff_EDI") (+ "+") (number_literal "0x19921b"))) (; ";")) (expression_statement "FUN_00274ae0(param_1 + 1);" (call_expression "FUN_00274ae0(param_1 + 1)" (identifier "FUN_00274ae0") (argument_list "(param_1 + 1)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")"))) (; ";")) (expression_statement "FUN_002728c0(piVar1,param_1 + 1);" (call_expression "FUN_002728c0(piVar1,param_1 + 1)" (identifier "FUN_002728c0") (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::ofstream::ofstream() */

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 + 0x8c);
  ios_base::type_1(this_00);
  *(type_2 *)(var_2 + 0xfc) = 0;
  *(type_3 *)(var_2 + 0x100) = 0;
  *(type_2 *)(var_2 + 0x104) = 0;
  *(type_2 *)(var_2 + 0x108) = 0;
  *(type_2 *)(var_2 + 0x10c) = 0;
  *(type_2 *)(var_2 + 0x110) = 0;
  *(type_4 **)var_2 = &UNK_001991cf + var_3;
  *(int *)(var_2 + 0x8c) = var_3 + 0x1991e3;
                    /* try { // try from 00278791 to 00278795 has its CatchHandler @ 002787d0 */
  ios::var_4((type_5 *)this_00);
  *(int *)var_2 = var_3 + 0x199207;
  *(int *)(var_2 + 0x8c) = var_3 + 0x19921b;
                    /* try { // try from 002787b3 to 002787b7 has its CatchHandler @ 002787d4 */
  filebuf::var_5((var_5 *)(var_2 + 4));
                    /* try { // try from 002787c0 to 002787c4 has its CatchHandler @ 002787d2 */
  ios::var_4((type_5 *)this_00);
  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: (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: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (identifier)))))) (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_000b484e();
  piVar1 = param_1 + 0x23;
  FUN_0028d110(piVar1);
  param_1[0x3f] = 0;
  *(undefined2 *)(param_1 + 0x40) = 0;
  param_1[0x41] = 0;
  param_1[0x42] = 0;
  param_1[0x43] = 0;
  param_1[0x44] = 0;
  *param_1 = (int)(&UNK_001991cf + unaff_EDI);
  param_1[0x23] = unaff_EDI + 0x1991e3;
                    /* try { // try from 00278791 to 00278795 has its CatchHandler @ 002787d0 */
  FUN_002728c0(piVar1,0);
  *param_1 = unaff_EDI + 0x199207;
  param_1[0x23] = unaff_EDI + 0x19921b;
                    /* try { // try from 002787b3 to 002787b7 has its CatchHandler @ 002787d4 */
  FUN_00274ae0(param_1 + 1);
                    /* try { // try from 002787c0 to 002787c4 has its CatchHandler @ 002787d2 */
  FUN_002728c0(piVar1,param_1 + 1);
  return;
}

