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

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

{
  ios_base *this_00;
  
  this_00 = (ios_base *)(this + 0xf8);
  ios_base::ios_base(this_00);
  *(undefined8 *)this = 0x4536b0;
  *(undefined2 *)(this + 0x1d8) = 0;
  *(undefined8 *)(this + 0x1d0) = 0;
  *(undefined8 *)(this + 0x1e0) = 0;
  *(undefined8 *)(this + 0x1e8) = 0;
  *(undefined8 *)(this + 0x1f0) = 0;
  *(undefined8 *)(this + 0x1f8) = 0;
  *(undefined8 *)(this + 0xf8) = 0x4536d8;
                    /* try { // try from 0031c364 to 0031c368 has its CatchHandler @ 0031c3a2 */
  ios::init((ios *)this_00,(streambuf *)0x0);
  *(undefined ***)this = &PTR__ofstream_00453720;
  *(undefined ***)(this + 0xf8) = &PTR__ofstream_00453748;
                    /* try { // try from 0031c389 to 0031c38d has its CatchHandler @ 0031c3ac */
  filebuf::filebuf((filebuf *)(this + 8));
                    /* try { // try from 0031c394 to 0031c398 has its CatchHandler @ 0031c3a7 */
  ios::init((ios *)this_00,(streambuf *)(this + 8));
  return;
}



void FUN_0031c2f0(undefined8 *param_1)

{
  undefined8 *puVar1;
  
  puVar1 = param_1 + 0x1f;
  FUN_0032dcb0(puVar1);
  *param_1 = &DAT_004536b0;
  *(undefined2 *)(param_1 + 0x3b) = 0;
  param_1[0x3a] = 0;
  param_1[0x3c] = 0;
  param_1[0x3d] = 0;
  param_1[0x3e] = 0;
  param_1[0x3f] = 0;
  param_1[0x1f] = &DAT_004536d8;
                    /* try { // try from 0031c364 to 0031c368 has its CatchHandler @ 0031c3a2 */
  FUN_003162c0(puVar1,0);
  *param_1 = &PTR_FUN_00453720;
  param_1[0x1f] = &PTR_FUN_00453748;
                    /* try { // try from 0031c389 to 0031c38d has its CatchHandler @ 0031c3ac */
  FUN_003185b0(param_1 + 1);
                    /* try { // try from 0031c394 to 0031c398 has its CatchHandler @ 0031c3a7 */
  FUN_003162c0(puVar1,param_1 + 1);
  return;
}


PUSH R14
PUSH R13
LEA R13,[0x4536b0]
PUSH R12
PUSH RBP
LEA RBP,[RDI + 0xf8]
PUSH RBX
MOV RBX,RDI
MOV RDI,RBP
CALL 0x0032dcb0
XOR EAX,EAX
MOV qword ptr [RBX],R13
XOR ESI,ESI
MOV word ptr [RBX + 0x1d8],AX
LEA RAX,[R13 + 0x28]
MOV RDI,RBP
MOV qword ptr [RBX + 0x1d0],0x0
MOV qword ptr [RBX + 0x1e0],0x0
MOV qword ptr [RBX + 0x1e8],0x0
MOV qword ptr [RBX + 0x1f0],0x0
MOV qword ptr [RBX + 0x1f8],0x0
MOV qword ptr [RBX + 0xf8],RAX
CALL 0x003162c0
LEA RAX,[0x453708]
LEA R12,[RBX + 0x8]
MOV RDI,R12
LEA RDX,[RAX + 0x18]
ADD RAX,0x40
MOV qword ptr [RBX],RDX
MOV qword ptr [RBX + 0xf8],RAX
CALL 0x003185b0
MOV RSI,R12
MOV RDI,RBP
CALL 0x003162c0
POP RBX
POP RBP
POP R12
POP R13
POP R14
RET
(translation_unit "void FUN_0031c2f0(undefined8 *param_1)\n\n{\n  undefined8 *puVar1;\n  \n  puVar1 = param_1 + 0x1f;\n  FUN_0032dcb0(puVar1);\n  *param_1 = &DAT_004536b0;\n  *(undefined2 *)(param_1 + 0x3b) = 0;\n  param_1[0x3a] = 0;\n  param_1[0x3c] = 0;\n  param_1[0x3d] = 0;\n  param_1[0x3e] = 0;\n  param_1[0x3f] = 0;\n  param_1[0x1f] = &DAT_004536d8;\n                    /* try { // try from 0031c364 to 0031c368 has its CatchHandler @ 0031c3a2 */\n  FUN_003162c0(puVar1,0);\n  *param_1 = &PTR_FUN_00453720;\n  param_1[0x1f] = &PTR_FUN_00453748;\n                    /* try { // try from 0031c389 to 0031c38d has its CatchHandler @ 0031c3ac */\n  FUN_003185b0(param_1 + 1);\n                    /* try { // try from 0031c394 to 0031c398 has its CatchHandler @ 0031c3a7 */\n  FUN_003162c0(puVar1,param_1 + 1);\n  return;\n}\n\n" (function_definition "void FUN_0031c2f0(undefined8 *param_1)\n\n{\n  undefined8 *puVar1;\n  \n  puVar1 = param_1 + 0x1f;\n  FUN_0032dcb0(puVar1);\n  *param_1 = &DAT_004536b0;\n  *(undefined2 *)(param_1 + 0x3b) = 0;\n  param_1[0x3a] = 0;\n  param_1[0x3c] = 0;\n  param_1[0x3d] = 0;\n  param_1[0x3e] = 0;\n  param_1[0x3f] = 0;\n  param_1[0x1f] = &DAT_004536d8;\n                    /* try { // try from 0031c364 to 0031c368 has its CatchHandler @ 0031c3a2 */\n  FUN_003162c0(puVar1,0);\n  *param_1 = &PTR_FUN_00453720;\n  param_1[0x1f] = &PTR_FUN_00453748;\n                    /* try { // try from 0031c389 to 0031c38d has its CatchHandler @ 0031c3ac */\n  FUN_003185b0(param_1 + 1);\n                    /* try { // try from 0031c394 to 0031c398 has its CatchHandler @ 0031c3a7 */\n  FUN_003162c0(puVar1,param_1 + 1);\n  return;\n}" primitive_type (function_declarator "FUN_0031c2f0(undefined8 *param_1)" identifier (parameter_list "(undefined8 *param_1)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined8 *puVar1;\n  \n  puVar1 = param_1 + 0x1f;\n  FUN_0032dcb0(puVar1);\n  *param_1 = &DAT_004536b0;\n  *(undefined2 *)(param_1 + 0x3b) = 0;\n  param_1[0x3a] = 0;\n  param_1[0x3c] = 0;\n  param_1[0x3d] = 0;\n  param_1[0x3e] = 0;\n  param_1[0x3f] = 0;\n  param_1[0x1f] = &DAT_004536d8;\n                    /* try { // try from 0031c364 to 0031c368 has its CatchHandler @ 0031c3a2 */\n  FUN_003162c0(puVar1,0);\n  *param_1 = &PTR_FUN_00453720;\n  param_1[0x1f] = &PTR_FUN_00453748;\n                    /* try { // try from 0031c389 to 0031c38d has its CatchHandler @ 0031c3ac */\n  FUN_003185b0(param_1 + 1);\n                    /* try { // try from 0031c394 to 0031c398 has its CatchHandler @ 0031c3a7 */\n  FUN_003162c0(puVar1,param_1 + 1);\n  return;\n}" { (declaration "undefined8 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (expression_statement "puVar1 = param_1 + 0x1f;" (assignment_expression "puVar1 = param_1 + 0x1f" identifier = (binary_expression "param_1 + 0x1f" identifier + number_literal)) ;) (expression_statement "FUN_0032dcb0(puVar1);" (call_expression "FUN_0032dcb0(puVar1)" identifier (argument_list "(puVar1)" ( identifier ))) ;) (expression_statement "*param_1 = &DAT_004536b0;" (assignment_expression "*param_1 = &DAT_004536b0" (pointer_expression "*param_1" * identifier) = (pointer_expression "&DAT_004536b0" & identifier)) ;) (expression_statement "*(undefined2 *)(param_1 + 0x3b) = 0;" (assignment_expression "*(undefined2 *)(param_1 + 0x3b) = 0" (pointer_expression "*(undefined2 *)(param_1 + 0x3b)" * (cast_expression "(undefined2 *)(param_1 + 0x3b)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3b)" ( (binary_expression "param_1 + 0x3b" identifier + number_literal) )))) = number_literal) ;) (expression_statement "param_1[0x3a] = 0;" (assignment_expression "param_1[0x3a] = 0" (subscript_expression "param_1[0x3a]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x3c] = 0;" (assignment_expression "param_1[0x3c] = 0" (subscript_expression "param_1[0x3c]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x3d] = 0;" (assignment_expression "param_1[0x3d] = 0" (subscript_expression "param_1[0x3d]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x3e] = 0;" (assignment_expression "param_1[0x3e] = 0" (subscript_expression "param_1[0x3e]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x3f] = 0;" (assignment_expression "param_1[0x3f] = 0" (subscript_expression "param_1[0x3f]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x1f] = &DAT_004536d8;" (assignment_expression "param_1[0x1f] = &DAT_004536d8" (subscript_expression "param_1[0x1f]" identifier [ number_literal ]) = (pointer_expression "&DAT_004536d8" & identifier)) ;) comment (expression_statement "FUN_003162c0(puVar1,0);" (call_expression "FUN_003162c0(puVar1,0)" identifier (argument_list "(puVar1,0)" ( identifier , number_literal ))) ;) (expression_statement "*param_1 = &PTR_FUN_00453720;" (assignment_expression "*param_1 = &PTR_FUN_00453720" (pointer_expression "*param_1" * identifier) = (pointer_expression "&PTR_FUN_00453720" & identifier)) ;) (expression_statement "param_1[0x1f] = &PTR_FUN_00453748;" (assignment_expression "param_1[0x1f] = &PTR_FUN_00453748" (subscript_expression "param_1[0x1f]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_00453748" & identifier)) ;) comment (expression_statement "FUN_003185b0(param_1 + 1);" (call_expression "FUN_003185b0(param_1 + 1)" identifier (argument_list "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) ))) ;) comment (expression_statement "FUN_003162c0(puVar1,param_1 + 1);" (call_expression "FUN_003162c0(puVar1,param_1 + 1)" identifier (argument_list "(puVar1,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  \n  this_00 = (ios_base *)(this + 0xf8);\n  ios_base::ios_base(this_00);\n  *(undefined8 *)this = 0x4536b0;\n  *(undefined2 *)(this + 0x1d8) = 0;\n  *(undefined8 *)(this + 0x1d0) = 0;\n  *(undefined8 *)(this + 0x1e0) = 0;\n  *(undefined8 *)(this + 0x1e8) = 0;\n  *(undefined8 *)(this + 0x1f0) = 0;\n  *(undefined8 *)(this + 0x1f8) = 0;\n  *(undefined8 *)(this + 0xf8) = 0x4536d8;\n                    /* try { // try from 0031c364 to 0031c368 has its CatchHandler @ 0031c3a2 */\n  ios::init((ios *)this_00,(streambuf *)0x0);\n  *(undefined ***)this = &PTR__ofstream_00453720;\n  *(undefined ***)(this + 0xf8) = &PTR__ofstream_00453748;\n                    /* try { // try from 0031c389 to 0031c38d has its CatchHandler @ 0031c3ac */\n  filebuf::filebuf((filebuf *)(this + 8));\n                    /* try { // try from 0031c394 to 0031c398 has its CatchHandler @ 0031c3a7 */\n  ios::init((ios *)this_00,(streambuf *)(this + 8));\n  return;\n}\n\n" comment (function_definition "void __thiscall std::ofstream::ofstream(ofstream *this)\n\n{\n  ios_base *this_00;\n  \n  this_00 = (ios_base *)(this + 0xf8);\n  ios_base::ios_base(this_00);\n  *(undefined8 *)this = 0x4536b0;\n  *(undefined2 *)(this + 0x1d8) = 0;\n  *(undefined8 *)(this + 0x1d0) = 0;\n  *(undefined8 *)(this + 0x1e0) = 0;\n  *(undefined8 *)(this + 0x1e8) = 0;\n  *(undefined8 *)(this + 0x1f0) = 0;\n  *(undefined8 *)(this + 0x1f8) = 0;\n  *(undefined8 *)(this + 0xf8) = 0x4536d8;\n                    /* try { // try from 0031c364 to 0031c368 has its CatchHandler @ 0031c3a2 */\n  ios::init((ios *)this_00,(streambuf *)0x0);\n  *(undefined ***)this = &PTR__ofstream_00453720;\n  *(undefined ***)(this + 0xf8) = &PTR__ofstream_00453748;\n                    /* try { // try from 0031c389 to 0031c38d has its CatchHandler @ 0031c3ac */\n  filebuf::filebuf((filebuf *)(this + 8));\n                    /* try { // try from 0031c394 to 0031c398 has its CatchHandler @ 0031c3a7 */\n  ios::init((ios *)this_00,(streambuf *)(this + 8));\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  \n  this_00 = (ios_base *)(this + 0xf8);\n  ios_base::ios_base(this_00);\n  *(undefined8 *)this = 0x4536b0;\n  *(undefined2 *)(this + 0x1d8) = 0;\n  *(undefined8 *)(this + 0x1d0) = 0;\n  *(undefined8 *)(this + 0x1e0) = 0;\n  *(undefined8 *)(this + 0x1e8) = 0;\n  *(undefined8 *)(this + 0x1f0) = 0;\n  *(undefined8 *)(this + 0x1f8) = 0;\n  *(undefined8 *)(this + 0xf8) = 0x4536d8;\n                    /* try { // try from 0031c364 to 0031c368 has its CatchHandler @ 0031c3a2 */\n  ios::init((ios *)this_00,(streambuf *)0x0);\n  *(undefined ***)this = &PTR__ofstream_00453720;\n  *(undefined ***)(this + 0xf8) = &PTR__ofstream_00453748;\n                    /* try { // try from 0031c389 to 0031c38d has its CatchHandler @ 0031c3ac */\n  filebuf::filebuf((filebuf *)(this + 8));\n                    /* try { // try from 0031c394 to 0031c398 has its CatchHandler @ 0031c3a7 */\n  ios::init((ios *)this_00,(streambuf *)(this + 8));\n  return;\n}" { (declaration "ios_base *this_00;" type_identifier (pointer_declarator "*this_00" * identifier) ;) (expression_statement "this_00 = (ios_base *)(this + 0xf8);" (assignment_expression "this_00 = (ios_base *)(this + 0xf8)" identifier = (cast_expression "(ios_base *)(this + 0xf8)" ( (type_descriptor "ios_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0xf8)" ( (binary_expression "this + 0xf8" 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 "*(undefined8 *)this = 0x4536b0;" (assignment_expression "*(undefined8 *)this = 0x4536b0" (pointer_expression "*(undefined8 *)this" * (cast_expression "(undefined8 *)this" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "*(undefined2 *)(this + 0x1d8) = 0;" (assignment_expression "*(undefined2 *)(this + 0x1d8) = 0" (pointer_expression "*(undefined2 *)(this + 0x1d8)" * (cast_expression "(undefined2 *)(this + 0x1d8)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x1d8)" ( (binary_expression "this + 0x1d8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined8 *)(this + 0x1d0) = 0;" (assignment_expression "*(undefined8 *)(this + 0x1d0) = 0" (pointer_expression "*(undefined8 *)(this + 0x1d0)" * (cast_expression "(undefined8 *)(this + 0x1d0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x1d0)" ( (binary_expression "this + 0x1d0" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined8 *)(this + 0x1e0) = 0;" (assignment_expression "*(undefined8 *)(this + 0x1e0) = 0" (pointer_expression "*(undefined8 *)(this + 0x1e0)" * (cast_expression "(undefined8 *)(this + 0x1e0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x1e0)" ( (binary_expression "this + 0x1e0" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined8 *)(this + 0x1e8) = 0;" (assignment_expression "*(undefined8 *)(this + 0x1e8) = 0" (pointer_expression "*(undefined8 *)(this + 0x1e8)" * (cast_expression "(undefined8 *)(this + 0x1e8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x1e8)" ( (binary_expression "this + 0x1e8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined8 *)(this + 0x1f0) = 0;" (assignment_expression "*(undefined8 *)(this + 0x1f0) = 0" (pointer_expression "*(undefined8 *)(this + 0x1f0)" * (cast_expression "(undefined8 *)(this + 0x1f0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x1f0)" ( (binary_expression "this + 0x1f0" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined8 *)(this + 0x1f8) = 0;" (assignment_expression "*(undefined8 *)(this + 0x1f8) = 0" (pointer_expression "*(undefined8 *)(this + 0x1f8)" * (cast_expression "(undefined8 *)(this + 0x1f8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x1f8)" ( (binary_expression "this + 0x1f8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined8 *)(this + 0xf8) = 0x4536d8;" (assignment_expression "*(undefined8 *)(this + 0xf8) = 0x4536d8" (pointer_expression "*(undefined8 *)(this + 0xf8)" * (cast_expression "(undefined8 *)(this + 0xf8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0xf8)" ( (binary_expression "this + 0xf8" identifier + number_literal) )))) = number_literal) ;) comment (labeled_statement "ios::init((ios *)this_00,(streambuf *)0x0);" statement_identifier : (ERROR ":" :) (expression_statement "init((ios *)this_00,(streambuf *)0x0);" (call_expression "init((ios *)this_00,(streambuf *)0x0)" identifier (argument_list "((ios *)this_00,(streambuf *)0x0)" ( (cast_expression "(ios *)this_00" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(streambuf *)0x0" ( (type_descriptor "streambuf *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;)) (expression_statement "*(undefined ***)this = &PTR__ofstream_00453720;" (assignment_expression "*(undefined ***)this = &PTR__ofstream_00453720" (pointer_expression "*(undefined ***)this" * (cast_expression "(undefined ***)this" ( (type_descriptor "undefined ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) identifier)) = (pointer_expression "&PTR__ofstream_00453720" & identifier)) ;) (expression_statement "*(undefined ***)(this + 0xf8) = &PTR__ofstream_00453748;" (assignment_expression "*(undefined ***)(this + 0xf8) = &PTR__ofstream_00453748" (pointer_expression "*(undefined ***)(this + 0xf8)" * (cast_expression "(undefined ***)(this + 0xf8)" ( (type_descriptor "undefined ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) (parenthesized_expression "(this + 0xf8)" ( (binary_expression "this + 0xf8" identifier + number_literal) )))) = (pointer_expression "&PTR__ofstream_00453748" & identifier)) ;) comment (labeled_statement "filebuf::filebuf((filebuf *)(this + 8));" statement_identifier : (ERROR ":" :) (expression_statement "filebuf((filebuf *)(this + 8));" (call_expression "filebuf((filebuf *)(this + 8))" identifier (argument_list "((filebuf *)(this + 8))" ( (cast_expression "(filebuf *)(this + 8)" ( (type_descriptor "filebuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) ))) ))) ;)) comment (labeled_statement "ios::init((ios *)this_00,(streambuf *)(this + 8));" statement_identifier : (ERROR ":" :) (expression_statement "init((ios *)this_00,(streambuf *)(this + 8));" (call_expression "init((ios *)this_00,(streambuf *)(this + 8))" identifier (argument_list "((ios *)this_00,(streambuf *)(this + 8))" ( (cast_expression "(ios *)this_00" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(streambuf *)(this + 8)" ( (type_descriptor "streambuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) ))) ))) ;)) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0031c2f0(undefined8 *param_1)\n\n{\n  undefined8 *puVar1;\n  \n  puVar1 = param_1 + 0x1f;\n  FUN_0032dcb0(puVar1);\n  *param_1 = &DAT_004536b0;\n  *(undefined2 *)(param_1 + 0x3b) = 0;\n  param_1[0x3a] = 0;\n  param_1[0x3c] = 0;\n  param_1[0x3d] = 0;\n  param_1[0x3e] = 0;\n  param_1[0x3f] = 0;\n  param_1[0x1f] = &DAT_004536d8;\n                    \n  FUN_003162c0(puVar1,0);\n  *param_1 = &PTR_FUN_00453720;\n  param_1[0x1f] = &PTR_FUN_00453748;\n                    \n  FUN_003185b0(param_1 + 1);\n                    \n  FUN_003162c0(puVar1,param_1 + 1);\n  return;\n}\n\n" (function_definition "void FUN_0031c2f0(undefined8 *param_1)\n\n{\n  undefined8 *puVar1;\n  \n  puVar1 = param_1 + 0x1f;\n  FUN_0032dcb0(puVar1);\n  *param_1 = &DAT_004536b0;\n  *(undefined2 *)(param_1 + 0x3b) = 0;\n  param_1[0x3a] = 0;\n  param_1[0x3c] = 0;\n  param_1[0x3d] = 0;\n  param_1[0x3e] = 0;\n  param_1[0x3f] = 0;\n  param_1[0x1f] = &DAT_004536d8;\n                    \n  FUN_003162c0(puVar1,0);\n  *param_1 = &PTR_FUN_00453720;\n  param_1[0x1f] = &PTR_FUN_00453748;\n                    \n  FUN_003185b0(param_1 + 1);\n                    \n  FUN_003162c0(puVar1,param_1 + 1);\n  return;\n}" primitive_type (function_declarator "FUN_0031c2f0(undefined8 *param_1)" identifier (parameter_list "(undefined8 *param_1)" ( (parameter_declaration "undefined8 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined8 *puVar1;\n  \n  puVar1 = param_1 + 0x1f;\n  FUN_0032dcb0(puVar1);\n  *param_1 = &DAT_004536b0;\n  *(undefined2 *)(param_1 + 0x3b) = 0;\n  param_1[0x3a] = 0;\n  param_1[0x3c] = 0;\n  param_1[0x3d] = 0;\n  param_1[0x3e] = 0;\n  param_1[0x3f] = 0;\n  param_1[0x1f] = &DAT_004536d8;\n                    \n  FUN_003162c0(puVar1,0);\n  *param_1 = &PTR_FUN_00453720;\n  param_1[0x1f] = &PTR_FUN_00453748;\n                    \n  FUN_003185b0(param_1 + 1);\n                    \n  FUN_003162c0(puVar1,param_1 + 1);\n  return;\n}" { (declaration "undefined8 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (expression_statement "puVar1 = param_1 + 0x1f;" (assignment_expression "puVar1 = param_1 + 0x1f" identifier = (binary_expression "param_1 + 0x1f" identifier + number_literal)) ;) (expression_statement "FUN_0032dcb0(puVar1);" (call_expression "FUN_0032dcb0(puVar1)" identifier (argument_list "(puVar1)" ( identifier ))) ;) (expression_statement "*param_1 = &DAT_004536b0;" (assignment_expression "*param_1 = &DAT_004536b0" (pointer_expression "*param_1" * identifier) = (pointer_expression "&DAT_004536b0" & identifier)) ;) (expression_statement "*(undefined2 *)(param_1 + 0x3b) = 0;" (assignment_expression "*(undefined2 *)(param_1 + 0x3b) = 0" (pointer_expression "*(undefined2 *)(param_1 + 0x3b)" * (cast_expression "(undefined2 *)(param_1 + 0x3b)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3b)" ( (binary_expression "param_1 + 0x3b" identifier + number_literal) )))) = number_literal) ;) (expression_statement "param_1[0x3a] = 0;" (assignment_expression "param_1[0x3a] = 0" (subscript_expression "param_1[0x3a]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x3c] = 0;" (assignment_expression "param_1[0x3c] = 0" (subscript_expression "param_1[0x3c]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x3d] = 0;" (assignment_expression "param_1[0x3d] = 0" (subscript_expression "param_1[0x3d]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x3e] = 0;" (assignment_expression "param_1[0x3e] = 0" (subscript_expression "param_1[0x3e]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x3f] = 0;" (assignment_expression "param_1[0x3f] = 0" (subscript_expression "param_1[0x3f]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x1f] = &DAT_004536d8;" (assignment_expression "param_1[0x1f] = &DAT_004536d8" (subscript_expression "param_1[0x1f]" identifier [ number_literal ]) = (pointer_expression "&DAT_004536d8" & identifier)) ;) (expression_statement "FUN_003162c0(puVar1,0);" (call_expression "FUN_003162c0(puVar1,0)" identifier (argument_list "(puVar1,0)" ( identifier , number_literal ))) ;) (expression_statement "*param_1 = &PTR_FUN_00453720;" (assignment_expression "*param_1 = &PTR_FUN_00453720" (pointer_expression "*param_1" * identifier) = (pointer_expression "&PTR_FUN_00453720" & identifier)) ;) (expression_statement "param_1[0x1f] = &PTR_FUN_00453748;" (assignment_expression "param_1[0x1f] = &PTR_FUN_00453748" (subscript_expression "param_1[0x1f]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_00453748" & identifier)) ;) (expression_statement "FUN_003185b0(param_1 + 1);" (call_expression "FUN_003185b0(param_1 + 1)" identifier (argument_list "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) ))) ;) (expression_statement "FUN_003162c0(puVar1,param_1 + 1);" (call_expression "FUN_003162c0(puVar1,param_1 + 1)" identifier (argument_list "(puVar1,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) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression & IDENT)) ;) (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 (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression & IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression & IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) ))) ;) (return_statement return ;) })))
(function_definition "void FUN_0031c2f0(undefined8 *param_1)\n\n{\n  undefined8 *puVar1;\n  \n  puVar1 = param_1 + 0x1f;\n  FUN_0032dcb0(puVar1);\n  *param_1 = &DAT_004536b0;\n  *(undefined2 *)(param_1 + 0x3b) = 0;\n  param_1[0x3a] = 0;\n  param_1[0x3c] = 0;\n  param_1[0x3d] = 0;\n  param_1[0x3e] = 0;\n  param_1[0x3f] = 0;\n  param_1[0x1f] = &DAT_004536d8;\n                    \n  FUN_003162c0(puVar1,0);\n  *param_1 = &PTR_FUN_00453720;\n  param_1[0x1f] = &PTR_FUN_00453748;\n                    \n  FUN_003185b0(param_1 + 1);\n                    \n  FUN_003162c0(puVar1,param_1 + 1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0031c2f0(undefined8 *param_1)" (identifier "FUN_0031c2f0") (parameter_list "(undefined8 *param_1)" (( "(") (parameter_declaration "undefined8 *param_1" (type_identifier "undefined8") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  undefined8 *puVar1;\n  \n  puVar1 = param_1 + 0x1f;\n  FUN_0032dcb0(puVar1);\n  *param_1 = &DAT_004536b0;\n  *(undefined2 *)(param_1 + 0x3b) = 0;\n  param_1[0x3a] = 0;\n  param_1[0x3c] = 0;\n  param_1[0x3d] = 0;\n  param_1[0x3e] = 0;\n  param_1[0x3f] = 0;\n  param_1[0x1f] = &DAT_004536d8;\n                    \n  FUN_003162c0(puVar1,0);\n  *param_1 = &PTR_FUN_00453720;\n  param_1[0x1f] = &PTR_FUN_00453748;\n                    \n  FUN_003185b0(param_1 + 1);\n                    \n  FUN_003162c0(puVar1,param_1 + 1);\n  return;\n}" ({ "{") (declaration "undefined8 *puVar1;" (type_identifier "undefined8") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (expression_statement "puVar1 = param_1 + 0x1f;" (assignment_expression "puVar1 = param_1 + 0x1f" (identifier "puVar1") (= "=") (binary_expression "param_1 + 0x1f" (identifier "param_1") (+ "+") (number_literal "0x1f"))) (; ";")) (expression_statement "FUN_0032dcb0(puVar1);" (call_expression "FUN_0032dcb0(puVar1)" (identifier "FUN_0032dcb0") (argument_list "(puVar1)" (( "(") (identifier "puVar1") () ")"))) (; ";")) (expression_statement "*param_1 = &DAT_004536b0;" (assignment_expression "*param_1 = &DAT_004536b0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (pointer_expression "&DAT_004536b0" (& "&") (identifier "DAT_004536b0"))) (; ";")) (expression_statement "*(undefined2 *)(param_1 + 0x3b) = 0;" (assignment_expression "*(undefined2 *)(param_1 + 0x3b) = 0" (pointer_expression "*(undefined2 *)(param_1 + 0x3b)" (* "*") (cast_expression "(undefined2 *)(param_1 + 0x3b)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3b)" (( "(") (binary_expression "param_1 + 0x3b" (identifier "param_1") (+ "+") (number_literal "0x3b")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[0x3a] = 0;" (assignment_expression "param_1[0x3a] = 0" (subscript_expression "param_1[0x3a]" (identifier "param_1") ([ "[") (number_literal "0x3a") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[0x3c] = 0;" (assignment_expression "param_1[0x3c] = 0" (subscript_expression "param_1[0x3c]" (identifier "param_1") ([ "[") (number_literal "0x3c") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[0x3d] = 0;" (assignment_expression "param_1[0x3d] = 0" (subscript_expression "param_1[0x3d]" (identifier "param_1") ([ "[") (number_literal "0x3d") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[0x3e] = 0;" (assignment_expression "param_1[0x3e] = 0" (subscript_expression "param_1[0x3e]" (identifier "param_1") ([ "[") (number_literal "0x3e") (] "]")) (= "=") (number_literal "0")) (; ";")) (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 "param_1[0x1f] = &DAT_004536d8;" (assignment_expression "param_1[0x1f] = &DAT_004536d8" (subscript_expression "param_1[0x1f]" (identifier "param_1") ([ "[") (number_literal "0x1f") (] "]")) (= "=") (pointer_expression "&DAT_004536d8" (& "&") (identifier "DAT_004536d8"))) (; ";")) (expression_statement "FUN_003162c0(puVar1,0);" (call_expression "FUN_003162c0(puVar1,0)" (identifier "FUN_003162c0") (argument_list "(puVar1,0)" (( "(") (identifier "puVar1") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "*param_1 = &PTR_FUN_00453720;" (assignment_expression "*param_1 = &PTR_FUN_00453720" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (pointer_expression "&PTR_FUN_00453720" (& "&") (identifier "PTR_FUN_00453720"))) (; ";")) (expression_statement "param_1[0x1f] = &PTR_FUN_00453748;" (assignment_expression "param_1[0x1f] = &PTR_FUN_00453748" (subscript_expression "param_1[0x1f]" (identifier "param_1") ([ "[") (number_literal "0x1f") (] "]")) (= "=") (pointer_expression "&PTR_FUN_00453748" (& "&") (identifier "PTR_FUN_00453748"))) (; ";")) (expression_statement "FUN_003185b0(param_1 + 1);" (call_expression "FUN_003185b0(param_1 + 1)" (identifier "FUN_003185b0") (argument_list "(param_1 + 1)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")"))) (; ";")) (expression_statement "FUN_003162c0(puVar1,param_1 + 1);" (call_expression "FUN_003162c0(puVar1,param_1 + 1)" (identifier "FUN_003162c0") (argument_list "(puVar1,param_1 + 1)" (( "(") (identifier "puVar1") (, ",") (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_1)

{
  type_1 *this_00;
  
  this_00 = (type_1 *)(var_1 + 0xf8);
  ios_base::type_1(this_00);
  *(type_2 *)var_1 = 0x4536b0;
  *(type_3 *)(var_1 + 0x1d8) = 0;
  *(type_2 *)(var_1 + 0x1d0) = 0;
  *(type_2 *)(var_1 + 0x1e0) = 0;
  *(type_2 *)(var_1 + 0x1e8) = 0;
  *(type_2 *)(var_1 + 0x1f0) = 0;
  *(type_2 *)(var_1 + 0x1f8) = 0;
  *(type_2 *)(var_1 + 0xf8) = 0x4536d8;
                    /* try { // try from 0031c364 to 0031c368 has its CatchHandler @ 0031c3a2 */
  ios::var_2((type_4 *)this_00,(type_5 *)0x0);
  *(type_6 ***)var_1 = &PTR__ofstream_00453720;
  *(type_6 ***)(var_1 + 0xf8) = &PTR__ofstream_00453748;
                    /* try { // try from 0031c389 to 0031c38d has its CatchHandler @ 0031c3ac */
  filebuf::var_3((var_3 *)(var_1 + 8));
                    /* try { // try from 0031c394 to 0031c398 has its CatchHandler @ 0031c3a7 */
  ios::var_2((type_4 *)this_00,(type_5 *)(var_1 + 8));
  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 (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (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: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) (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: (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 (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (pointer_expression argument: (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal))))) (return_statement))))

void MASKED(undefined8 *param_1)

{
  undefined8 *puVar1;
  
  puVar1 = param_1 + 0x1f;
  FUN_0032dcb0(puVar1);
  *param_1 = &DAT_004536b0;
  *(undefined2 *)(param_1 + 0x3b) = 0;
  param_1[0x3a] = 0;
  param_1[0x3c] = 0;
  param_1[0x3d] = 0;
  param_1[0x3e] = 0;
  param_1[0x3f] = 0;
  param_1[0x1f] = &DAT_004536d8;
                    /* try { // try from 0031c364 to 0031c368 has its CatchHandler @ 0031c3a2 */
  FUN_003162c0(puVar1,0);
  *param_1 = &PTR_FUN_00453720;
  param_1[0x1f] = &PTR_FUN_00453748;
                    /* try { // try from 0031c389 to 0031c38d has its CatchHandler @ 0031c3ac */
  FUN_003185b0(param_1 + 1);
                    /* try { // try from 0031c394 to 0031c398 has its CatchHandler @ 0031c3a7 */
  FUN_003162c0(puVar1,param_1 + 1);
  return;
}

