
/* std::ifstream::ifstream() */

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

{
  ios_base *this_00;
  
  this_00 = (ios_base *)(this + 0x100);
  ios_base::ios_base(this_00);
  *(undefined **)this = &DAT_00439600;
  *(undefined2 *)(this + 0x1e0) = 0;
  *(undefined8 *)(this + 0x1d8) = 0;
  *(undefined8 *)(this + 0x1e8) = 0;
  *(undefined8 *)(this + 0x1f0) = 0;
  *(undefined8 *)(this + 0x1f8) = 0;
  *(undefined8 *)(this + 0x200) = 0;
  *(undefined **)(this + 0x100) = &DAT_00439628;
  *(undefined8 *)(this + 8) = 0;
                    /* try { // try from 00306ecc to 00306ed0 has its CatchHandler @ 00306f0a */
  ios::init((ios *)this_00,(streambuf *)0x0);
  *(undefined ***)this = &PTR__ifstream_00439670;
  *(undefined ***)(this + 0x100) = &PTR__ifstream_00439698;
                    /* try { // try from 00306ef1 to 00306ef5 has its CatchHandler @ 00306f14 */
  filebuf::filebuf((filebuf *)(this + 0x10));
                    /* try { // try from 00306efc to 00306f00 has its CatchHandler @ 00306f0f */
  ios::init((ios *)this_00,(streambuf *)(this + 0x10));
  return;
}



void FUN_00306e50(undefined8 *param_1)

{
  undefined8 *puVar1;
  
  puVar1 = param_1 + 0x20;
  FUN_003189c0(puVar1);
  *param_1 = &DAT_00439600;
  *(undefined2 *)(param_1 + 0x3c) = 0;
  param_1[0x3b] = 0;
  param_1[0x3d] = 0;
  param_1[0x3e] = 0;
  param_1[0x3f] = 0;
  param_1[0x40] = 0;
  param_1[0x20] = &DAT_00439628;
  param_1[1] = 0;
                    /* try { // try from 00306ecc to 00306ed0 has its CatchHandler @ 00306f0a */
  FUN_00300fd0(puVar1,0);
  *param_1 = &PTR_FUN_00439670;
  param_1[0x20] = &PTR_FUN_00439698;
                    /* try { // try from 00306ef1 to 00306ef5 has its CatchHandler @ 00306f14 */
  FUN_003032c0(param_1 + 2);
                    /* try { // try from 00306efc to 00306f00 has its CatchHandler @ 00306f0f */
  FUN_00300fd0(puVar1,param_1 + 2);
  return;
}


PUSH R14
PUSH R13
LEA R13,[0x439600]
PUSH R12
PUSH RBP
LEA RBP,[RDI + 0x100]
PUSH RBX
MOV RBX,RDI
MOV RDI,RBP
CALL 0x003189c0
XOR EAX,EAX
MOV qword ptr [RBX],R13
XOR ESI,ESI
MOV word ptr [RBX + 0x1e0],AX
LEA RAX,[R13 + 0x28]
MOV RDI,RBP
MOV qword ptr [RBX + 0x1d8],0x0
MOV qword ptr [RBX + 0x1e8],0x0
MOV qword ptr [RBX + 0x1f0],0x0
MOV qword ptr [RBX + 0x1f8],0x0
MOV qword ptr [RBX + 0x200],0x0
MOV qword ptr [RBX + 0x100],RAX
MOV qword ptr [RBX + 0x8],0x0
CALL 0x00300fd0
LEA RAX,[0x439658]
LEA R12,[RBX + 0x10]
MOV RDI,R12
LEA RDX,[RAX + 0x18]
ADD RAX,0x40
MOV qword ptr [RBX],RDX
MOV qword ptr [RBX + 0x100],RAX
CALL 0x003032c0
MOV RSI,R12
MOV RDI,RBP
CALL 0x00300fd0
POP RBX
POP RBP
POP R12
POP R13
POP R14
RET
(translation_unit "void FUN_00306e50(undefined8 *param_1)\n\n{\n  undefined8 *puVar1;\n  \n  puVar1 = param_1 + 0x20;\n  FUN_003189c0(puVar1);\n  *param_1 = &DAT_00439600;\n  *(undefined2 *)(param_1 + 0x3c) = 0;\n  param_1[0x3b] = 0;\n  param_1[0x3d] = 0;\n  param_1[0x3e] = 0;\n  param_1[0x3f] = 0;\n  param_1[0x40] = 0;\n  param_1[0x20] = &DAT_00439628;\n  param_1[1] = 0;\n                    /* try { // try from 00306ecc to 00306ed0 has its CatchHandler @ 00306f0a */\n  FUN_00300fd0(puVar1,0);\n  *param_1 = &PTR_FUN_00439670;\n  param_1[0x20] = &PTR_FUN_00439698;\n                    /* try { // try from 00306ef1 to 00306ef5 has its CatchHandler @ 00306f14 */\n  FUN_003032c0(param_1 + 2);\n                    /* try { // try from 00306efc to 00306f00 has its CatchHandler @ 00306f0f */\n  FUN_00300fd0(puVar1,param_1 + 2);\n  return;\n}\n\n" (function_definition "void FUN_00306e50(undefined8 *param_1)\n\n{\n  undefined8 *puVar1;\n  \n  puVar1 = param_1 + 0x20;\n  FUN_003189c0(puVar1);\n  *param_1 = &DAT_00439600;\n  *(undefined2 *)(param_1 + 0x3c) = 0;\n  param_1[0x3b] = 0;\n  param_1[0x3d] = 0;\n  param_1[0x3e] = 0;\n  param_1[0x3f] = 0;\n  param_1[0x40] = 0;\n  param_1[0x20] = &DAT_00439628;\n  param_1[1] = 0;\n                    /* try { // try from 00306ecc to 00306ed0 has its CatchHandler @ 00306f0a */\n  FUN_00300fd0(puVar1,0);\n  *param_1 = &PTR_FUN_00439670;\n  param_1[0x20] = &PTR_FUN_00439698;\n                    /* try { // try from 00306ef1 to 00306ef5 has its CatchHandler @ 00306f14 */\n  FUN_003032c0(param_1 + 2);\n                    /* try { // try from 00306efc to 00306f00 has its CatchHandler @ 00306f0f */\n  FUN_00300fd0(puVar1,param_1 + 2);\n  return;\n}" primitive_type (function_declarator "FUN_00306e50(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 + 0x20;\n  FUN_003189c0(puVar1);\n  *param_1 = &DAT_00439600;\n  *(undefined2 *)(param_1 + 0x3c) = 0;\n  param_1[0x3b] = 0;\n  param_1[0x3d] = 0;\n  param_1[0x3e] = 0;\n  param_1[0x3f] = 0;\n  param_1[0x40] = 0;\n  param_1[0x20] = &DAT_00439628;\n  param_1[1] = 0;\n                    /* try { // try from 00306ecc to 00306ed0 has its CatchHandler @ 00306f0a */\n  FUN_00300fd0(puVar1,0);\n  *param_1 = &PTR_FUN_00439670;\n  param_1[0x20] = &PTR_FUN_00439698;\n                    /* try { // try from 00306ef1 to 00306ef5 has its CatchHandler @ 00306f14 */\n  FUN_003032c0(param_1 + 2);\n                    /* try { // try from 00306efc to 00306f00 has its CatchHandler @ 00306f0f */\n  FUN_00300fd0(puVar1,param_1 + 2);\n  return;\n}" { (declaration "undefined8 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (expression_statement "puVar1 = param_1 + 0x20;" (assignment_expression "puVar1 = param_1 + 0x20" identifier = (binary_expression "param_1 + 0x20" identifier + number_literal)) ;) (expression_statement "FUN_003189c0(puVar1);" (call_expression "FUN_003189c0(puVar1)" identifier (argument_list "(puVar1)" ( identifier ))) ;) (expression_statement "*param_1 = &DAT_00439600;" (assignment_expression "*param_1 = &DAT_00439600" (pointer_expression "*param_1" * identifier) = (pointer_expression "&DAT_00439600" & identifier)) ;) (expression_statement "*(undefined2 *)(param_1 + 0x3c) = 0;" (assignment_expression "*(undefined2 *)(param_1 + 0x3c) = 0" (pointer_expression "*(undefined2 *)(param_1 + 0x3c)" * (cast_expression "(undefined2 *)(param_1 + 0x3c)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "param_1[0x3b] = 0;" (assignment_expression "param_1[0x3b] = 0" (subscript_expression "param_1[0x3b]" 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[0x40] = 0;" (assignment_expression "param_1[0x40] = 0" (subscript_expression "param_1[0x40]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x20] = &DAT_00439628;" (assignment_expression "param_1[0x20] = &DAT_00439628" (subscript_expression "param_1[0x20]" identifier [ number_literal ]) = (pointer_expression "&DAT_00439628" & identifier)) ;) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) comment (expression_statement "FUN_00300fd0(puVar1,0);" (call_expression "FUN_00300fd0(puVar1,0)" identifier (argument_list "(puVar1,0)" ( identifier , number_literal ))) ;) (expression_statement "*param_1 = &PTR_FUN_00439670;" (assignment_expression "*param_1 = &PTR_FUN_00439670" (pointer_expression "*param_1" * identifier) = (pointer_expression "&PTR_FUN_00439670" & identifier)) ;) (expression_statement "param_1[0x20] = &PTR_FUN_00439698;" (assignment_expression "param_1[0x20] = &PTR_FUN_00439698" (subscript_expression "param_1[0x20]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_00439698" & identifier)) ;) comment (expression_statement "FUN_003032c0(param_1 + 2);" (call_expression "FUN_003032c0(param_1 + 2)" identifier (argument_list "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) ))) ;) comment (expression_statement "FUN_00300fd0(puVar1,param_1 + 2);" (call_expression "FUN_00300fd0(puVar1,param_1 + 2)" identifier (argument_list "(puVar1,param_1 + 2)" ( identifier , (binary_expression "param_1 + 2" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* std::ifstream::ifstream() */\n\nvoid __thiscall std::ifstream::ifstream(ifstream *this)\n\n{\n  ios_base *this_00;\n  \n  this_00 = (ios_base *)(this + 0x100);\n  ios_base::ios_base(this_00);\n  *(undefined **)this = &DAT_00439600;\n  *(undefined2 *)(this + 0x1e0) = 0;\n  *(undefined8 *)(this + 0x1d8) = 0;\n  *(undefined8 *)(this + 0x1e8) = 0;\n  *(undefined8 *)(this + 0x1f0) = 0;\n  *(undefined8 *)(this + 0x1f8) = 0;\n  *(undefined8 *)(this + 0x200) = 0;\n  *(undefined **)(this + 0x100) = &DAT_00439628;\n  *(undefined8 *)(this + 8) = 0;\n                    /* try { // try from 00306ecc to 00306ed0 has its CatchHandler @ 00306f0a */\n  ios::init((ios *)this_00,(streambuf *)0x0);\n  *(undefined ***)this = &PTR__ifstream_00439670;\n  *(undefined ***)(this + 0x100) = &PTR__ifstream_00439698;\n                    /* try { // try from 00306ef1 to 00306ef5 has its CatchHandler @ 00306f14 */\n  filebuf::filebuf((filebuf *)(this + 0x10));\n                    /* try { // try from 00306efc to 00306f00 has its CatchHandler @ 00306f0f */\n  ios::init((ios *)this_00,(streambuf *)(this + 0x10));\n  return;\n}\n\n" comment (function_definition "void __thiscall std::ifstream::ifstream(ifstream *this)\n\n{\n  ios_base *this_00;\n  \n  this_00 = (ios_base *)(this + 0x100);\n  ios_base::ios_base(this_00);\n  *(undefined **)this = &DAT_00439600;\n  *(undefined2 *)(this + 0x1e0) = 0;\n  *(undefined8 *)(this + 0x1d8) = 0;\n  *(undefined8 *)(this + 0x1e8) = 0;\n  *(undefined8 *)(this + 0x1f0) = 0;\n  *(undefined8 *)(this + 0x1f8) = 0;\n  *(undefined8 *)(this + 0x200) = 0;\n  *(undefined **)(this + 0x100) = &DAT_00439628;\n  *(undefined8 *)(this + 8) = 0;\n                    /* try { // try from 00306ecc to 00306ed0 has its CatchHandler @ 00306f0a */\n  ios::init((ios *)this_00,(streambuf *)0x0);\n  *(undefined ***)this = &PTR__ifstream_00439670;\n  *(undefined ***)(this + 0x100) = &PTR__ifstream_00439698;\n                    /* try { // try from 00306ef1 to 00306ef5 has its CatchHandler @ 00306f14 */\n  filebuf::filebuf((filebuf *)(this + 0x10));\n                    /* try { // try from 00306efc to 00306f00 has its CatchHandler @ 00306f0f */\n  ios::init((ios *)this_00,(streambuf *)(this + 0x10));\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::ifstream::" identifier : : identifier : :) (function_declarator "ifstream(ifstream *this)" identifier (parameter_list "(ifstream *this)" ( (parameter_declaration "ifstream *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  ios_base *this_00;\n  \n  this_00 = (ios_base *)(this + 0x100);\n  ios_base::ios_base(this_00);\n  *(undefined **)this = &DAT_00439600;\n  *(undefined2 *)(this + 0x1e0) = 0;\n  *(undefined8 *)(this + 0x1d8) = 0;\n  *(undefined8 *)(this + 0x1e8) = 0;\n  *(undefined8 *)(this + 0x1f0) = 0;\n  *(undefined8 *)(this + 0x1f8) = 0;\n  *(undefined8 *)(this + 0x200) = 0;\n  *(undefined **)(this + 0x100) = &DAT_00439628;\n  *(undefined8 *)(this + 8) = 0;\n                    /* try { // try from 00306ecc to 00306ed0 has its CatchHandler @ 00306f0a */\n  ios::init((ios *)this_00,(streambuf *)0x0);\n  *(undefined ***)this = &PTR__ifstream_00439670;\n  *(undefined ***)(this + 0x100) = &PTR__ifstream_00439698;\n                    /* try { // try from 00306ef1 to 00306ef5 has its CatchHandler @ 00306f14 */\n  filebuf::filebuf((filebuf *)(this + 0x10));\n                    /* try { // try from 00306efc to 00306f00 has its CatchHandler @ 00306f0f */\n  ios::init((ios *)this_00,(streambuf *)(this + 0x10));\n  return;\n}" { (declaration "ios_base *this_00;" type_identifier (pointer_declarator "*this_00" * identifier) ;) (expression_statement "this_00 = (ios_base *)(this + 0x100);" (assignment_expression "this_00 = (ios_base *)(this + 0x100)" identifier = (cast_expression "(ios_base *)(this + 0x100)" ( (type_descriptor "ios_base *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x100)" ( (binary_expression "this + 0x100" 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 "*(undefined **)this = &DAT_00439600;" (assignment_expression "*(undefined **)this = &DAT_00439600" (pointer_expression "*(undefined **)this" * (cast_expression "(undefined **)this" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = (pointer_expression "&DAT_00439600" & identifier)) ;) (expression_statement "*(undefined2 *)(this + 0x1e0) = 0;" (assignment_expression "*(undefined2 *)(this + 0x1e0) = 0" (pointer_expression "*(undefined2 *)(this + 0x1e0)" * (cast_expression "(undefined2 *)(this + 0x1e0)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x1e0)" ( (binary_expression "this + 0x1e0" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined8 *)(this + 0x1d8) = 0;" (assignment_expression "*(undefined8 *)(this + 0x1d8) = 0" (pointer_expression "*(undefined8 *)(this + 0x1d8)" * (cast_expression "(undefined8 *)(this + 0x1d8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x1d8)" ( (binary_expression "this + 0x1d8" 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 + 0x200) = 0;" (assignment_expression "*(undefined8 *)(this + 0x200) = 0" (pointer_expression "*(undefined8 *)(this + 0x200)" * (cast_expression "(undefined8 *)(this + 0x200)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x200)" ( (binary_expression "this + 0x200" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined **)(this + 0x100) = &DAT_00439628;" (assignment_expression "*(undefined **)(this + 0x100) = &DAT_00439628" (pointer_expression "*(undefined **)(this + 0x100)" * (cast_expression "(undefined **)(this + 0x100)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0x100)" ( (binary_expression "this + 0x100" identifier + number_literal) )))) = (pointer_expression "&DAT_00439628" & identifier)) ;) (expression_statement "*(undefined8 *)(this + 8) = 0;" (assignment_expression "*(undefined8 *)(this + 8) = 0" (pointer_expression "*(undefined8 *)(this + 8)" * (cast_expression "(undefined8 *)(this + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" 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__ifstream_00439670;" (assignment_expression "*(undefined ***)this = &PTR__ifstream_00439670" (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__ifstream_00439670" & identifier)) ;) (expression_statement "*(undefined ***)(this + 0x100) = &PTR__ifstream_00439698;" (assignment_expression "*(undefined ***)(this + 0x100) = &PTR__ifstream_00439698" (pointer_expression "*(undefined ***)(this + 0x100)" * (cast_expression "(undefined ***)(this + 0x100)" ( (type_descriptor "undefined ***" type_identifier (abstract_pointer_declarator "***" * (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *)))) ) (parenthesized_expression "(this + 0x100)" ( (binary_expression "this + 0x100" identifier + number_literal) )))) = (pointer_expression "&PTR__ifstream_00439698" & identifier)) ;) comment (labeled_statement "filebuf::filebuf((filebuf *)(this + 0x10));" statement_identifier : (ERROR ":" :) (expression_statement "filebuf((filebuf *)(this + 0x10));" (call_expression "filebuf((filebuf *)(this + 0x10))" identifier (argument_list "((filebuf *)(this + 0x10))" ( (cast_expression "(filebuf *)(this + 0x10)" ( (type_descriptor "filebuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) ))) ))) ;)) comment (labeled_statement "ios::init((ios *)this_00,(streambuf *)(this + 0x10));" statement_identifier : (ERROR ":" :) (expression_statement "init((ios *)this_00,(streambuf *)(this + 0x10));" (call_expression "init((ios *)this_00,(streambuf *)(this + 0x10))" identifier (argument_list "((ios *)this_00,(streambuf *)(this + 0x10))" ( (cast_expression "(ios *)this_00" ( (type_descriptor "ios *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(streambuf *)(this + 0x10)" ( (type_descriptor "streambuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) ))) ))) ;)) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00306e50(undefined8 *param_1)\n\n{\n  undefined8 *puVar1;\n  \n  puVar1 = param_1 + 0x20;\n  FUN_003189c0(puVar1);\n  *param_1 = &DAT_00439600;\n  *(undefined2 *)(param_1 + 0x3c) = 0;\n  param_1[0x3b] = 0;\n  param_1[0x3d] = 0;\n  param_1[0x3e] = 0;\n  param_1[0x3f] = 0;\n  param_1[0x40] = 0;\n  param_1[0x20] = &DAT_00439628;\n  param_1[1] = 0;\n                    \n  FUN_00300fd0(puVar1,0);\n  *param_1 = &PTR_FUN_00439670;\n  param_1[0x20] = &PTR_FUN_00439698;\n                    \n  FUN_003032c0(param_1 + 2);\n                    \n  FUN_00300fd0(puVar1,param_1 + 2);\n  return;\n}\n\n" (function_definition "void FUN_00306e50(undefined8 *param_1)\n\n{\n  undefined8 *puVar1;\n  \n  puVar1 = param_1 + 0x20;\n  FUN_003189c0(puVar1);\n  *param_1 = &DAT_00439600;\n  *(undefined2 *)(param_1 + 0x3c) = 0;\n  param_1[0x3b] = 0;\n  param_1[0x3d] = 0;\n  param_1[0x3e] = 0;\n  param_1[0x3f] = 0;\n  param_1[0x40] = 0;\n  param_1[0x20] = &DAT_00439628;\n  param_1[1] = 0;\n                    \n  FUN_00300fd0(puVar1,0);\n  *param_1 = &PTR_FUN_00439670;\n  param_1[0x20] = &PTR_FUN_00439698;\n                    \n  FUN_003032c0(param_1 + 2);\n                    \n  FUN_00300fd0(puVar1,param_1 + 2);\n  return;\n}" primitive_type (function_declarator "FUN_00306e50(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 + 0x20;\n  FUN_003189c0(puVar1);\n  *param_1 = &DAT_00439600;\n  *(undefined2 *)(param_1 + 0x3c) = 0;\n  param_1[0x3b] = 0;\n  param_1[0x3d] = 0;\n  param_1[0x3e] = 0;\n  param_1[0x3f] = 0;\n  param_1[0x40] = 0;\n  param_1[0x20] = &DAT_00439628;\n  param_1[1] = 0;\n                    \n  FUN_00300fd0(puVar1,0);\n  *param_1 = &PTR_FUN_00439670;\n  param_1[0x20] = &PTR_FUN_00439698;\n                    \n  FUN_003032c0(param_1 + 2);\n                    \n  FUN_00300fd0(puVar1,param_1 + 2);\n  return;\n}" { (declaration "undefined8 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (expression_statement "puVar1 = param_1 + 0x20;" (assignment_expression "puVar1 = param_1 + 0x20" identifier = (binary_expression "param_1 + 0x20" identifier + number_literal)) ;) (expression_statement "FUN_003189c0(puVar1);" (call_expression "FUN_003189c0(puVar1)" identifier (argument_list "(puVar1)" ( identifier ))) ;) (expression_statement "*param_1 = &DAT_00439600;" (assignment_expression "*param_1 = &DAT_00439600" (pointer_expression "*param_1" * identifier) = (pointer_expression "&DAT_00439600" & identifier)) ;) (expression_statement "*(undefined2 *)(param_1 + 0x3c) = 0;" (assignment_expression "*(undefined2 *)(param_1 + 0x3c) = 0" (pointer_expression "*(undefined2 *)(param_1 + 0x3c)" * (cast_expression "(undefined2 *)(param_1 + 0x3c)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "param_1[0x3b] = 0;" (assignment_expression "param_1[0x3b] = 0" (subscript_expression "param_1[0x3b]" 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[0x40] = 0;" (assignment_expression "param_1[0x40] = 0" (subscript_expression "param_1[0x40]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x20] = &DAT_00439628;" (assignment_expression "param_1[0x20] = &DAT_00439628" (subscript_expression "param_1[0x20]" identifier [ number_literal ]) = (pointer_expression "&DAT_00439628" & identifier)) ;) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "FUN_00300fd0(puVar1,0);" (call_expression "FUN_00300fd0(puVar1,0)" identifier (argument_list "(puVar1,0)" ( identifier , number_literal ))) ;) (expression_statement "*param_1 = &PTR_FUN_00439670;" (assignment_expression "*param_1 = &PTR_FUN_00439670" (pointer_expression "*param_1" * identifier) = (pointer_expression "&PTR_FUN_00439670" & identifier)) ;) (expression_statement "param_1[0x20] = &PTR_FUN_00439698;" (assignment_expression "param_1[0x20] = &PTR_FUN_00439698" (subscript_expression "param_1[0x20]" identifier [ number_literal ]) = (pointer_expression "&PTR_FUN_00439698" & identifier)) ;) (expression_statement "FUN_003032c0(param_1 + 2);" (call_expression "FUN_003032c0(param_1 + 2)" identifier (argument_list "(param_1 + 2)" ( (binary_expression "param_1 + 2" identifier + number_literal) ))) ;) (expression_statement "FUN_00300fd0(puVar1,param_1 + 2);" (call_expression "FUN_00300fd0(puVar1,param_1 + 2)" identifier (argument_list "(puVar1,param_1 + 2)" ( identifier , (binary_expression "param_1 + 2" 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 (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (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_00306e50(undefined8 *param_1)\n\n{\n  undefined8 *puVar1;\n  \n  puVar1 = param_1 + 0x20;\n  FUN_003189c0(puVar1);\n  *param_1 = &DAT_00439600;\n  *(undefined2 *)(param_1 + 0x3c) = 0;\n  param_1[0x3b] = 0;\n  param_1[0x3d] = 0;\n  param_1[0x3e] = 0;\n  param_1[0x3f] = 0;\n  param_1[0x40] = 0;\n  param_1[0x20] = &DAT_00439628;\n  param_1[1] = 0;\n                    \n  FUN_00300fd0(puVar1,0);\n  *param_1 = &PTR_FUN_00439670;\n  param_1[0x20] = &PTR_FUN_00439698;\n                    \n  FUN_003032c0(param_1 + 2);\n                    \n  FUN_00300fd0(puVar1,param_1 + 2);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00306e50(undefined8 *param_1)" (identifier "FUN_00306e50") (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 + 0x20;\n  FUN_003189c0(puVar1);\n  *param_1 = &DAT_00439600;\n  *(undefined2 *)(param_1 + 0x3c) = 0;\n  param_1[0x3b] = 0;\n  param_1[0x3d] = 0;\n  param_1[0x3e] = 0;\n  param_1[0x3f] = 0;\n  param_1[0x40] = 0;\n  param_1[0x20] = &DAT_00439628;\n  param_1[1] = 0;\n                    \n  FUN_00300fd0(puVar1,0);\n  *param_1 = &PTR_FUN_00439670;\n  param_1[0x20] = &PTR_FUN_00439698;\n                    \n  FUN_003032c0(param_1 + 2);\n                    \n  FUN_00300fd0(puVar1,param_1 + 2);\n  return;\n}" ({ "{") (declaration "undefined8 *puVar1;" (type_identifier "undefined8") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (expression_statement "puVar1 = param_1 + 0x20;" (assignment_expression "puVar1 = param_1 + 0x20" (identifier "puVar1") (= "=") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20"))) (; ";")) (expression_statement "FUN_003189c0(puVar1);" (call_expression "FUN_003189c0(puVar1)" (identifier "FUN_003189c0") (argument_list "(puVar1)" (( "(") (identifier "puVar1") () ")"))) (; ";")) (expression_statement "*param_1 = &DAT_00439600;" (assignment_expression "*param_1 = &DAT_00439600" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (pointer_expression "&DAT_00439600" (& "&") (identifier "DAT_00439600"))) (; ";")) (expression_statement "*(undefined2 *)(param_1 + 0x3c) = 0;" (assignment_expression "*(undefined2 *)(param_1 + 0x3c) = 0" (pointer_expression "*(undefined2 *)(param_1 + 0x3c)" (* "*") (cast_expression "(undefined2 *)(param_1 + 0x3c)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3c)" (( "(") (binary_expression "param_1 + 0x3c" (identifier "param_1") (+ "+") (number_literal "0x3c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[0x3b] = 0;" (assignment_expression "param_1[0x3b] = 0" (subscript_expression "param_1[0x3b]" (identifier "param_1") ([ "[") (number_literal "0x3b") (] "]")) (= "=") (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[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[0x20] = &DAT_00439628;" (assignment_expression "param_1[0x20] = &DAT_00439628" (subscript_expression "param_1[0x20]" (identifier "param_1") ([ "[") (number_literal "0x20") (] "]")) (= "=") (pointer_expression "&DAT_00439628" (& "&") (identifier "DAT_00439628"))) (; ";")) (expression_statement "param_1[1] = 0;" (assignment_expression "param_1[1] = 0" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_00300fd0(puVar1,0);" (call_expression "FUN_00300fd0(puVar1,0)" (identifier "FUN_00300fd0") (argument_list "(puVar1,0)" (( "(") (identifier "puVar1") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "*param_1 = &PTR_FUN_00439670;" (assignment_expression "*param_1 = &PTR_FUN_00439670" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (pointer_expression "&PTR_FUN_00439670" (& "&") (identifier "PTR_FUN_00439670"))) (; ";")) (expression_statement "param_1[0x20] = &PTR_FUN_00439698;" (assignment_expression "param_1[0x20] = &PTR_FUN_00439698" (subscript_expression "param_1[0x20]" (identifier "param_1") ([ "[") (number_literal "0x20") (] "]")) (= "=") (pointer_expression "&PTR_FUN_00439698" (& "&") (identifier "PTR_FUN_00439698"))) (; ";")) (expression_statement "FUN_003032c0(param_1 + 2);" (call_expression "FUN_003032c0(param_1 + 2)" (identifier "FUN_003032c0") (argument_list "(param_1 + 2)" (( "(") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")"))) (; ";")) (expression_statement "FUN_00300fd0(puVar1,param_1 + 2);" (call_expression "FUN_00300fd0(puVar1,param_1 + 2)" (identifier "FUN_00300fd0") (argument_list "(puVar1,param_1 + 2)" (( "(") (identifier "puVar1") (, ",") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* std::ifstream::ifstream() */

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

{
  type_1 *this_00;
  
  this_00 = (type_1 *)(var_1 + 0x100);
  ios_base::type_1(this_00);
  *(type_2 **)var_1 = &DAT_00439600;
  *(type_3 *)(var_1 + 0x1e0) = 0;
  *(type_4 *)(var_1 + 0x1d8) = 0;
  *(type_4 *)(var_1 + 0x1e8) = 0;
  *(type_4 *)(var_1 + 0x1f0) = 0;
  *(type_4 *)(var_1 + 0x1f8) = 0;
  *(type_4 *)(var_1 + 0x200) = 0;
  *(type_2 **)(var_1 + 0x100) = &DAT_00439628;
  *(type_4 *)(var_1 + 8) = 0;
                    /* try { // try from 00306ecc to 00306ed0 has its CatchHandler @ 00306f0a */
  ios::var_2((type_5 *)this_00,(type_6 *)0x0);
  *(type_2 ***)var_1 = &PTR__ifstream_00439670;
  *(type_2 ***)(var_1 + 0x100) = &PTR__ifstream_00439698;
                    /* try { // try from 00306ef1 to 00306ef5 has its CatchHandler @ 00306f14 */
  filebuf::var_3((var_3 *)(var_1 + 0x10));
                    /* try { // try from 00306efc to 00306f00 has its CatchHandler @ 00306f0f */
  ios::var_2((type_5 *)this_00,(type_6 *)(var_1 + 0x10));
  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 (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) 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: (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 + 0x20;
  FUN_003189c0(puVar1);
  *param_1 = &DAT_00439600;
  *(undefined2 *)(param_1 + 0x3c) = 0;
  param_1[0x3b] = 0;
  param_1[0x3d] = 0;
  param_1[0x3e] = 0;
  param_1[0x3f] = 0;
  param_1[0x40] = 0;
  param_1[0x20] = &DAT_00439628;
  param_1[1] = 0;
                    /* try { // try from 00306ecc to 00306ed0 has its CatchHandler @ 00306f0a */
  FUN_00300fd0(puVar1,0);
  *param_1 = &PTR_FUN_00439670;
  param_1[0x20] = &PTR_FUN_00439698;
                    /* try { // try from 00306ef1 to 00306ef5 has its CatchHandler @ 00306f14 */
  FUN_003032c0(param_1 + 2);
                    /* try { // try from 00306efc to 00306f00 has its CatchHandler @ 00306f0f */
  FUN_00300fd0(puVar1,param_1 + 2);
  return;
}

