
/* std::wofstream::wofstream(std::string const&, std::_Ios_Openmode) */

void __thiscall std::wofstream::wofstream(wofstream *this,string *param_1,_Ios_Openmode param_2)

{
  wfilebuf *this_00;
  ios_base *this_01;
  long lVar1;
  wios *this_02;
  
  this_01 = (ios_base *)(this + 0xf8);
  ios_base::ios_base(this_01);
  *(undefined8 *)this = 0x677aa8;
  *(undefined8 *)(this + 0x1d0) = 0;
  *(undefined4 *)(this + 0x1d8) = 0;
  this[0x1dc] = (wofstream)0x0;
  *(undefined8 *)(this + 0x1e0) = 0;
  *(undefined8 *)(this + 0x1e8) = 0;
  *(undefined8 *)(this + 0x1f0) = 0;
  *(undefined8 *)(this + 0x1f8) = 0;
  *(undefined8 *)(this + 0xf8) = 0x677ad0;
                    /* try { // try from 004ce3f8 to 004ce3fc has its CatchHandler @ 004ce48c */
  wios::init((wios *)this_01,(wstreambuf *)0x0);
  this_00 = (wfilebuf *)(this + 8);
  *(undefined ***)this = &PTR__wofstream_00677b18;
  *(undefined ***)(this + 0xf8) = &PTR__wofstream_00677b40;
                    /* try { // try from 004ce41d to 004ce421 has its CatchHandler @ 004ce487 */
  wfilebuf::wfilebuf(this_00);
                    /* try { // try from 004ce428 to 004ce472 has its CatchHandler @ 004ce482 */
  wios::init((wios *)this_01,(wstreambuf *)this_00);
  lVar1 = wfilebuf::open(this_00,*(char **)param_1,param_2 | _S_out);
  this_02 = (wios *)(this + *(long *)(*(long *)this + -0x18));
  if (lVar1 != 0) {
    wios::clear(this_02,_S_goodbit);
    return;
  }
  wios::clear(this_02,*(_Ios_Iostate *)(this_02 + 0x20) | _S_failbit);
  return;
}



void FUN_004ce370(long *param_1,undefined8 *param_2,uint param_3)

{
  long *plVar1;
  long *plVar2;
  long lVar3;
  long lVar4;
  
  plVar2 = param_1 + 0x1f;
  FUN_004dc0a0(plVar2);
  *param_1 = (long)&DAT_00677aa8;
  param_1[0x3a] = 0;
  *(undefined4 *)(param_1 + 0x3b) = 0;
  *(undefined1 *)((long)param_1 + 0x1dc) = 0;
  param_1[0x3c] = 0;
  param_1[0x3d] = 0;
  param_1[0x3e] = 0;
  param_1[0x3f] = 0;
  param_1[0x1f] = (long)&DAT_00677ad0;
                    /* try { // try from 004ce3f8 to 004ce3fc has its CatchHandler @ 004ce48c */
  FUN_004c4f50(plVar2,0);
  plVar1 = param_1 + 1;
  *param_1 = (long)&PTR_FUN_00677b18;
  param_1[0x1f] = (long)&PTR_FUN_00677b40;
                    /* try { // try from 004ce41d to 004ce421 has its CatchHandler @ 004ce487 */
  FUN_004c8650(plVar1);
                    /* try { // try from 004ce428 to 004ce472 has its CatchHandler @ 004ce482 */
  FUN_004c4f50(plVar2,plVar1);
  lVar3 = FUN_004cd700(plVar1,*param_2,param_3 | 0x10);
  lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;
  if (lVar3 != 0) {
    FUN_004c4940(lVar4,0);
    return;
  }
  FUN_004c4940(lVar4,*(uint *)(lVar4 + 0x20) | 4);
  return;
}


PUSH R15
MOV R15,RSI
PUSH R14
LEA R14,[0x677aa8]
PUSH R13
MOV R13D,EDX
PUSH R12
PUSH RBP
LEA RBP,[RDI + 0xf8]
PUSH RBX
MOV RBX,RDI
MOV RDI,RBP
SUB RSP,0x8
CALL 0x004dc0a0
LEA RAX,[R14 + 0x28]
MOV qword ptr [RBX],R14
XOR ESI,ESI
MOV qword ptr [RBX + 0x1d0],0x0
MOV RDI,RBP
MOV dword ptr [RBX + 0x1d8],0x0
MOV byte ptr [RBX + 0x1dc],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 0x004c4f50
LEA RAX,[0x677b00]
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 0x004c8650
MOV RSI,R12
MOV RDI,RBP
CALL 0x004c4f50
MOV EDX,R13D
MOV RSI,qword ptr [R15]
MOV RDI,R12
OR EDX,0x10
CALL 0x004cd700
MOV RDX,qword ptr [RBX]
MOV RDI,qword ptr [RDX + -0x18]
ADD RDI,RBX
TEST RAX,RAX
JZ 0x004ce468
XOR ESI,ESI
CALL 0x004c4940
ADD RSP,0x8
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
MOV ESI,dword ptr [RDI + 0x20]
OR ESI,0x4
CALL 0x004c4940
ADD RSP,0x8
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
(translation_unit "void FUN_004ce370(long *param_1,undefined8 *param_2,uint param_3)\n\n{\n  long *plVar1;\n  long *plVar2;\n  long lVar3;\n  long lVar4;\n  \n  plVar2 = param_1 + 0x1f;\n  FUN_004dc0a0(plVar2);\n  *param_1 = (long)&DAT_00677aa8;\n  param_1[0x3a] = 0;\n  *(undefined4 *)(param_1 + 0x3b) = 0;\n  *(undefined1 *)((long)param_1 + 0x1dc) = 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] = (long)&DAT_00677ad0;\n                    /* try { // try from 004ce3f8 to 004ce3fc has its CatchHandler @ 004ce48c */\n  FUN_004c4f50(plVar2,0);\n  plVar1 = param_1 + 1;\n  *param_1 = (long)&PTR_FUN_00677b18;\n  param_1[0x1f] = (long)&PTR_FUN_00677b40;\n                    /* try { // try from 004ce41d to 004ce421 has its CatchHandler @ 004ce487 */\n  FUN_004c8650(plVar1);\n                    /* try { // try from 004ce428 to 004ce472 has its CatchHandler @ 004ce482 */\n  FUN_004c4f50(plVar2,plVar1);\n  lVar3 = FUN_004cd700(plVar1,*param_2,param_3 | 0x10);\n  lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;\n  if (lVar3 != 0) {\n    FUN_004c4940(lVar4,0);\n    return;\n  }\n  FUN_004c4940(lVar4,*(uint *)(lVar4 + 0x20) | 4);\n  return;\n}\n\n" (function_definition "void FUN_004ce370(long *param_1,undefined8 *param_2,uint param_3)\n\n{\n  long *plVar1;\n  long *plVar2;\n  long lVar3;\n  long lVar4;\n  \n  plVar2 = param_1 + 0x1f;\n  FUN_004dc0a0(plVar2);\n  *param_1 = (long)&DAT_00677aa8;\n  param_1[0x3a] = 0;\n  *(undefined4 *)(param_1 + 0x3b) = 0;\n  *(undefined1 *)((long)param_1 + 0x1dc) = 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] = (long)&DAT_00677ad0;\n                    /* try { // try from 004ce3f8 to 004ce3fc has its CatchHandler @ 004ce48c */\n  FUN_004c4f50(plVar2,0);\n  plVar1 = param_1 + 1;\n  *param_1 = (long)&PTR_FUN_00677b18;\n  param_1[0x1f] = (long)&PTR_FUN_00677b40;\n                    /* try { // try from 004ce41d to 004ce421 has its CatchHandler @ 004ce487 */\n  FUN_004c8650(plVar1);\n                    /* try { // try from 004ce428 to 004ce472 has its CatchHandler @ 004ce482 */\n  FUN_004c4f50(plVar2,plVar1);\n  lVar3 = FUN_004cd700(plVar1,*param_2,param_3 | 0x10);\n  lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;\n  if (lVar3 != 0) {\n    FUN_004c4940(lVar4,0);\n    return;\n  }\n  FUN_004c4940(lVar4,*(uint *)(lVar4 + 0x20) | 4);\n  return;\n}" primitive_type (function_declarator "FUN_004ce370(long *param_1,undefined8 *param_2,uint param_3)" identifier (parameter_list "(long *param_1,undefined8 *param_2,uint param_3)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined8 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  long *plVar1;\n  long *plVar2;\n  long lVar3;\n  long lVar4;\n  \n  plVar2 = param_1 + 0x1f;\n  FUN_004dc0a0(plVar2);\n  *param_1 = (long)&DAT_00677aa8;\n  param_1[0x3a] = 0;\n  *(undefined4 *)(param_1 + 0x3b) = 0;\n  *(undefined1 *)((long)param_1 + 0x1dc) = 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] = (long)&DAT_00677ad0;\n                    /* try { // try from 004ce3f8 to 004ce3fc has its CatchHandler @ 004ce48c */\n  FUN_004c4f50(plVar2,0);\n  plVar1 = param_1 + 1;\n  *param_1 = (long)&PTR_FUN_00677b18;\n  param_1[0x1f] = (long)&PTR_FUN_00677b40;\n                    /* try { // try from 004ce41d to 004ce421 has its CatchHandler @ 004ce487 */\n  FUN_004c8650(plVar1);\n                    /* try { // try from 004ce428 to 004ce472 has its CatchHandler @ 004ce482 */\n  FUN_004c4f50(plVar2,plVar1);\n  lVar3 = FUN_004cd700(plVar1,*param_2,param_3 | 0x10);\n  lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;\n  if (lVar3 != 0) {\n    FUN_004c4940(lVar4,0);\n    return;\n  }\n  FUN_004c4940(lVar4,*(uint *)(lVar4 + 0x20) | 4);\n  return;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "long *plVar2;" (sized_type_specifier "long" long) (pointer_declarator "*plVar2" * identifier) ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (expression_statement "plVar2 = param_1 + 0x1f;" (assignment_expression "plVar2 = param_1 + 0x1f" identifier = (binary_expression "param_1 + 0x1f" identifier + number_literal)) ;) (expression_statement "FUN_004dc0a0(plVar2);" (call_expression "FUN_004dc0a0(plVar2)" identifier (argument_list "(plVar2)" ( identifier ))) ;) (expression_statement "*param_1 = (long)&DAT_00677aa8;" (assignment_expression "*param_1 = (long)&DAT_00677aa8" (pointer_expression "*param_1" * identifier) = (cast_expression "(long)&DAT_00677aa8" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&DAT_00677aa8" & identifier))) ;) (expression_statement "param_1[0x3a] = 0;" (assignment_expression "param_1[0x3a] = 0" (subscript_expression "param_1[0x3a]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x3b) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x3b) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x3b)" * (cast_expression "(undefined4 *)(param_1 + 0x3b)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3b)" ( (binary_expression "param_1 + 0x3b" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)((long)param_1 + 0x1dc) = 0;" (assignment_expression "*(undefined1 *)((long)param_1 + 0x1dc) = 0" (pointer_expression "*(undefined1 *)((long)param_1 + 0x1dc)" * (cast_expression "(undefined1 *)((long)param_1 + 0x1dc)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x1dc)" ( (binary_expression "(long)param_1 + 0x1dc" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) 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] = (long)&DAT_00677ad0;" (assignment_expression "param_1[0x1f] = (long)&DAT_00677ad0" (subscript_expression "param_1[0x1f]" identifier [ number_literal ]) = (cast_expression "(long)&DAT_00677ad0" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&DAT_00677ad0" & identifier))) ;) comment (expression_statement "FUN_004c4f50(plVar2,0);" (call_expression "FUN_004c4f50(plVar2,0)" identifier (argument_list "(plVar2,0)" ( identifier , number_literal ))) ;) (expression_statement "plVar1 = param_1 + 1;" (assignment_expression "plVar1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "*param_1 = (long)&PTR_FUN_00677b18;" (assignment_expression "*param_1 = (long)&PTR_FUN_00677b18" (pointer_expression "*param_1" * identifier) = (cast_expression "(long)&PTR_FUN_00677b18" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&PTR_FUN_00677b18" & identifier))) ;) (expression_statement "param_1[0x1f] = (long)&PTR_FUN_00677b40;" (assignment_expression "param_1[0x1f] = (long)&PTR_FUN_00677b40" (subscript_expression "param_1[0x1f]" identifier [ number_literal ]) = (cast_expression "(long)&PTR_FUN_00677b40" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&PTR_FUN_00677b40" & identifier))) ;) comment (expression_statement "FUN_004c8650(plVar1);" (call_expression "FUN_004c8650(plVar1)" identifier (argument_list "(plVar1)" ( identifier ))) ;) comment (expression_statement "FUN_004c4f50(plVar2,plVar1);" (call_expression "FUN_004c4f50(plVar2,plVar1)" identifier (argument_list "(plVar2,plVar1)" ( identifier , identifier ))) ;) (expression_statement "lVar3 = FUN_004cd700(plVar1,*param_2,param_3 | 0x10);" (assignment_expression "lVar3 = FUN_004cd700(plVar1,*param_2,param_3 | 0x10)" identifier = (call_expression "FUN_004cd700(plVar1,*param_2,param_3 | 0x10)" identifier (argument_list "(plVar1,*param_2,param_3 | 0x10)" ( identifier , (pointer_expression "*param_2" * identifier) , (binary_expression "param_3 | 0x10" identifier | number_literal) )))) ;) (expression_statement "lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;" (assignment_expression "lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1" identifier = (binary_expression "*(long *)(*param_1 + -0x18) + (long)param_1" (pointer_expression "*(long *)(*param_1 + -0x18)" * (cast_expression "(long *)(*param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0x18)" ( (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (if_statement "if (lVar3 != 0) {\n    FUN_004c4940(lVar4,0);\n    return;\n  }" if (parenthesized_expression "(lVar3 != 0)" ( (binary_expression "lVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_004c4940(lVar4,0);\n    return;\n  }" { (expression_statement "FUN_004c4940(lVar4,0);" (call_expression "FUN_004c4940(lVar4,0)" identifier (argument_list "(lVar4,0)" ( identifier , number_literal ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_004c4940(lVar4,*(uint *)(lVar4 + 0x20) | 4);" (call_expression "FUN_004c4940(lVar4,*(uint *)(lVar4 + 0x20) | 4)" identifier (argument_list "(lVar4,*(uint *)(lVar4 + 0x20) | 4)" ( identifier , (binary_expression "*(uint *)(lVar4 + 0x20) | 4" (pointer_expression "*(uint *)(lVar4 + 0x20)" * (cast_expression "(uint *)(lVar4 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x20)" ( (binary_expression "lVar4 + 0x20" identifier + number_literal) )))) | number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* std::wofstream::wofstream(std::string const&, std::_Ios_Openmode) */\n\nvoid __thiscall std::wofstream::wofstream(wofstream *this,string *param_1,_Ios_Openmode param_2)\n\n{\n  wfilebuf *this_00;\n  ios_base *this_01;\n  long lVar1;\n  wios *this_02;\n  \n  this_01 = (ios_base *)(this + 0xf8);\n  ios_base::ios_base(this_01);\n  *(undefined8 *)this = 0x677aa8;\n  *(undefined8 *)(this + 0x1d0) = 0;\n  *(undefined4 *)(this + 0x1d8) = 0;\n  this[0x1dc] = (wofstream)0x0;\n  *(undefined8 *)(this + 0x1e0) = 0;\n  *(undefined8 *)(this + 0x1e8) = 0;\n  *(undefined8 *)(this + 0x1f0) = 0;\n  *(undefined8 *)(this + 0x1f8) = 0;\n  *(undefined8 *)(this + 0xf8) = 0x677ad0;\n                    /* try { // try from 004ce3f8 to 004ce3fc has its CatchHandler @ 004ce48c */\n  wios::init((wios *)this_01,(wstreambuf *)0x0);\n  this_00 = (wfilebuf *)(this + 8);\n  *(undefined ***)this = &PTR__wofstream_00677b18;\n  *(undefined ***)(this + 0xf8) = &PTR__wofstream_00677b40;\n                    /* try { // try from 004ce41d to 004ce421 has its CatchHandler @ 004ce487 */\n  wfilebuf::wfilebuf(this_00);\n                    /* try { // try from 004ce428 to 004ce472 has its CatchHandler @ 004ce482 */\n  wios::init((wios *)this_01,(wstreambuf *)this_00);\n  lVar1 = wfilebuf::open(this_00,*(char **)param_1,param_2 | _S_out);\n  this_02 = (wios *)(this + *(long *)(*(long *)this + -0x18));\n  if (lVar1 != 0) {\n    wios::clear(this_02,_S_goodbit);\n    return;\n  }\n  wios::clear(this_02,*(_Ios_Iostate *)(this_02 + 0x20) | _S_failbit);\n  return;\n}\n\n" comment (function_definition "void __thiscall std::wofstream::wofstream(wofstream *this,string *param_1,_Ios_Openmode param_2)\n\n{\n  wfilebuf *this_00;\n  ios_base *this_01;\n  long lVar1;\n  wios *this_02;\n  \n  this_01 = (ios_base *)(this + 0xf8);\n  ios_base::ios_base(this_01);\n  *(undefined8 *)this = 0x677aa8;\n  *(undefined8 *)(this + 0x1d0) = 0;\n  *(undefined4 *)(this + 0x1d8) = 0;\n  this[0x1dc] = (wofstream)0x0;\n  *(undefined8 *)(this + 0x1e0) = 0;\n  *(undefined8 *)(this + 0x1e8) = 0;\n  *(undefined8 *)(this + 0x1f0) = 0;\n  *(undefined8 *)(this + 0x1f8) = 0;\n  *(undefined8 *)(this + 0xf8) = 0x677ad0;\n                    /* try { // try from 004ce3f8 to 004ce3fc has its CatchHandler @ 004ce48c */\n  wios::init((wios *)this_01,(wstreambuf *)0x0);\n  this_00 = (wfilebuf *)(this + 8);\n  *(undefined ***)this = &PTR__wofstream_00677b18;\n  *(undefined ***)(this + 0xf8) = &PTR__wofstream_00677b40;\n                    /* try { // try from 004ce41d to 004ce421 has its CatchHandler @ 004ce487 */\n  wfilebuf::wfilebuf(this_00);\n                    /* try { // try from 004ce428 to 004ce472 has its CatchHandler @ 004ce482 */\n  wios::init((wios *)this_01,(wstreambuf *)this_00);\n  lVar1 = wfilebuf::open(this_00,*(char **)param_1,param_2 | _S_out);\n  this_02 = (wios *)(this + *(long *)(*(long *)this + -0x18));\n  if (lVar1 != 0) {\n    wios::clear(this_02,_S_goodbit);\n    return;\n  }\n  wios::clear(this_02,*(_Ios_Iostate *)(this_02 + 0x20) | _S_failbit);\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::wofstream::" identifier : : identifier : :) (function_declarator "wofstream(wofstream *this,string *param_1,_Ios_Openmode param_2)" identifier (parameter_list "(wofstream *this,string *param_1,_Ios_Openmode param_2)" ( (parameter_declaration "wofstream *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "string *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "_Ios_Openmode param_2" type_identifier identifier) ))) (compound_statement "{\n  wfilebuf *this_00;\n  ios_base *this_01;\n  long lVar1;\n  wios *this_02;\n  \n  this_01 = (ios_base *)(this + 0xf8);\n  ios_base::ios_base(this_01);\n  *(undefined8 *)this = 0x677aa8;\n  *(undefined8 *)(this + 0x1d0) = 0;\n  *(undefined4 *)(this + 0x1d8) = 0;\n  this[0x1dc] = (wofstream)0x0;\n  *(undefined8 *)(this + 0x1e0) = 0;\n  *(undefined8 *)(this + 0x1e8) = 0;\n  *(undefined8 *)(this + 0x1f0) = 0;\n  *(undefined8 *)(this + 0x1f8) = 0;\n  *(undefined8 *)(this + 0xf8) = 0x677ad0;\n                    /* try { // try from 004ce3f8 to 004ce3fc has its CatchHandler @ 004ce48c */\n  wios::init((wios *)this_01,(wstreambuf *)0x0);\n  this_00 = (wfilebuf *)(this + 8);\n  *(undefined ***)this = &PTR__wofstream_00677b18;\n  *(undefined ***)(this + 0xf8) = &PTR__wofstream_00677b40;\n                    /* try { // try from 004ce41d to 004ce421 has its CatchHandler @ 004ce487 */\n  wfilebuf::wfilebuf(this_00);\n                    /* try { // try from 004ce428 to 004ce472 has its CatchHandler @ 004ce482 */\n  wios::init((wios *)this_01,(wstreambuf *)this_00);\n  lVar1 = wfilebuf::open(this_00,*(char **)param_1,param_2 | _S_out);\n  this_02 = (wios *)(this + *(long *)(*(long *)this + -0x18));\n  if (lVar1 != 0) {\n    wios::clear(this_02,_S_goodbit);\n    return;\n  }\n  wios::clear(this_02,*(_Ios_Iostate *)(this_02 + 0x20) | _S_failbit);\n  return;\n}" { (declaration "wfilebuf *this_00;" type_identifier (pointer_declarator "*this_00" * identifier) ;) (declaration "ios_base *this_01;" type_identifier (pointer_declarator "*this_01" * identifier) ;) (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "wios *this_02;" type_identifier (pointer_declarator "*this_02" * identifier) ;) (expression_statement "this_01 = (ios_base *)(this + 0xf8);" (assignment_expression "this_01 = (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_01);" statement_identifier : (ERROR ":" :) (expression_statement "ios_base(this_01);" (call_expression "ios_base(this_01)" identifier (argument_list "(this_01)" ( identifier ))) ;)) (expression_statement "*(undefined8 *)this = 0x677aa8;" (assignment_expression "*(undefined8 *)this = 0x677aa8" (pointer_expression "*(undefined8 *)this" * (cast_expression "(undefined8 *)this" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = 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 "*(undefined4 *)(this + 0x1d8) = 0;" (assignment_expression "*(undefined4 *)(this + 0x1d8) = 0" (pointer_expression "*(undefined4 *)(this + 0x1d8)" * (cast_expression "(undefined4 *)(this + 0x1d8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x1d8)" ( (binary_expression "this + 0x1d8" identifier + number_literal) )))) = number_literal) ;) (expression_statement "this[0x1dc] = (wofstream)0x0;" (assignment_expression "this[0x1dc] = (wofstream)0x0" (subscript_expression "this[0x1dc]" identifier [ number_literal ]) = (cast_expression "(wofstream)0x0" ( (type_descriptor "wofstream" type_identifier) ) 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) = 0x677ad0;" (assignment_expression "*(undefined8 *)(this + 0xf8) = 0x677ad0" (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 "wios::init((wios *)this_01,(wstreambuf *)0x0);" statement_identifier : (ERROR ":" :) (expression_statement "init((wios *)this_01,(wstreambuf *)0x0);" (call_expression "init((wios *)this_01,(wstreambuf *)0x0)" identifier (argument_list "((wios *)this_01,(wstreambuf *)0x0)" ( (cast_expression "(wios *)this_01" ( (type_descriptor "wios *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(wstreambuf *)0x0" ( (type_descriptor "wstreambuf *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;)) (expression_statement "this_00 = (wfilebuf *)(this + 8);" (assignment_expression "this_00 = (wfilebuf *)(this + 8)" identifier = (cast_expression "(wfilebuf *)(this + 8)" ( (type_descriptor "wfilebuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) ;) (expression_statement "*(undefined ***)this = &PTR__wofstream_00677b18;" (assignment_expression "*(undefined ***)this = &PTR__wofstream_00677b18" (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__wofstream_00677b18" & identifier)) ;) (expression_statement "*(undefined ***)(this + 0xf8) = &PTR__wofstream_00677b40;" (assignment_expression "*(undefined ***)(this + 0xf8) = &PTR__wofstream_00677b40" (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__wofstream_00677b40" & identifier)) ;) comment (labeled_statement "wfilebuf::wfilebuf(this_00);" statement_identifier : (ERROR ":" :) (expression_statement "wfilebuf(this_00);" (call_expression "wfilebuf(this_00)" identifier (argument_list "(this_00)" ( identifier ))) ;)) comment (labeled_statement "wios::init((wios *)this_01,(wstreambuf *)this_00);" statement_identifier : (ERROR ":" :) (expression_statement "init((wios *)this_01,(wstreambuf *)this_00);" (call_expression "init((wios *)this_01,(wstreambuf *)this_00)" identifier (argument_list "((wios *)this_01,(wstreambuf *)this_00)" ( (cast_expression "(wios *)this_01" ( (type_descriptor "wios *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(wstreambuf *)this_00" ( (type_descriptor "wstreambuf *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;)) (ERROR "lVar1 = wfilebuf::" (assignment_expression "lVar1 = wfilebuf" identifier = identifier) : :) (expression_statement "open(this_00,*(char **)param_1,param_2 | _S_out);" (call_expression "open(this_00,*(char **)param_1,param_2 | _S_out)" identifier (argument_list "(this_00,*(char **)param_1,param_2 | _S_out)" ( identifier , (pointer_expression "*(char **)param_1" * (cast_expression "(char **)param_1" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , (binary_expression "param_2 | _S_out" identifier | identifier) ))) ;) (expression_statement "this_02 = (wios *)(this + *(long *)(*(long *)this + -0x18));" (assignment_expression "this_02 = (wios *)(this + *(long *)(*(long *)this + -0x18))" identifier = (cast_expression "(wios *)(this + *(long *)(*(long *)this + -0x18))" ( (type_descriptor "wios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(long *)(*(long *)this + -0x18))" ( (binary_expression "this + *(long *)(*(long *)this + -0x18)" identifier + (pointer_expression "*(long *)(*(long *)this + -0x18)" * (cast_expression "(long *)(*(long *)this + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)this + -0x18)" ( (binary_expression "*(long *)this + -0x18" (pointer_expression "*(long *)this" * (cast_expression "(long *)this" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )))) ;) (if_statement "if (lVar1 != 0) {\n    wios::clear(this_02,_S_goodbit);\n    return;\n  }" if (parenthesized_expression "(lVar1 != 0)" ( (binary_expression "lVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    wios::clear(this_02,_S_goodbit);\n    return;\n  }" { (labeled_statement "wios::clear(this_02,_S_goodbit);" statement_identifier : (ERROR ":" :) (expression_statement "clear(this_02,_S_goodbit);" (call_expression "clear(this_02,_S_goodbit)" identifier (argument_list "(this_02,_S_goodbit)" ( identifier , identifier ))) ;)) (return_statement "return;" return ;) })) (labeled_statement "wios::clear(this_02,*(_Ios_Iostate *)(this_02 + 0x20) | _S_failbit);" statement_identifier : (ERROR ":" :) (expression_statement "clear(this_02,*(_Ios_Iostate *)(this_02 + 0x20) | _S_failbit);" (call_expression "clear(this_02,*(_Ios_Iostate *)(this_02 + 0x20) | _S_failbit)" identifier (argument_list "(this_02,*(_Ios_Iostate *)(this_02 + 0x20) | _S_failbit)" ( identifier , (binary_expression "*(_Ios_Iostate *)(this_02 + 0x20) | _S_failbit" (pointer_expression "*(_Ios_Iostate *)(this_02 + 0x20)" * (cast_expression "(_Ios_Iostate *)(this_02 + 0x20)" ( (type_descriptor "_Ios_Iostate *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this_02 + 0x20)" ( (binary_expression "this_02 + 0x20" identifier + number_literal) )))) | identifier) ))) ;)) (return_statement "return;" return ;) })))
(translation_unit "void FUN_004ce370(long *param_1,undefined8 *param_2,uint param_3)\n\n{\n  long *plVar1;\n  long *plVar2;\n  long lVar3;\n  long lVar4;\n  \n  plVar2 = param_1 + 0x1f;\n  FUN_004dc0a0(plVar2);\n  *param_1 = (long)&DAT_00677aa8;\n  param_1[0x3a] = 0;\n  *(undefined4 *)(param_1 + 0x3b) = 0;\n  *(undefined1 *)((long)param_1 + 0x1dc) = 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] = (long)&DAT_00677ad0;\n                    \n  FUN_004c4f50(plVar2,0);\n  plVar1 = param_1 + 1;\n  *param_1 = (long)&PTR_FUN_00677b18;\n  param_1[0x1f] = (long)&PTR_FUN_00677b40;\n                    \n  FUN_004c8650(plVar1);\n                    \n  FUN_004c4f50(plVar2,plVar1);\n  lVar3 = FUN_004cd700(plVar1,*param_2,param_3 | 0x10);\n  lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;\n  if (lVar3 != 0) {\n    FUN_004c4940(lVar4,0);\n    return;\n  }\n  FUN_004c4940(lVar4,*(uint *)(lVar4 + 0x20) | 4);\n  return;\n}\n\n" (function_definition "void FUN_004ce370(long *param_1,undefined8 *param_2,uint param_3)\n\n{\n  long *plVar1;\n  long *plVar2;\n  long lVar3;\n  long lVar4;\n  \n  plVar2 = param_1 + 0x1f;\n  FUN_004dc0a0(plVar2);\n  *param_1 = (long)&DAT_00677aa8;\n  param_1[0x3a] = 0;\n  *(undefined4 *)(param_1 + 0x3b) = 0;\n  *(undefined1 *)((long)param_1 + 0x1dc) = 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] = (long)&DAT_00677ad0;\n                    \n  FUN_004c4f50(plVar2,0);\n  plVar1 = param_1 + 1;\n  *param_1 = (long)&PTR_FUN_00677b18;\n  param_1[0x1f] = (long)&PTR_FUN_00677b40;\n                    \n  FUN_004c8650(plVar1);\n                    \n  FUN_004c4f50(plVar2,plVar1);\n  lVar3 = FUN_004cd700(plVar1,*param_2,param_3 | 0x10);\n  lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;\n  if (lVar3 != 0) {\n    FUN_004c4940(lVar4,0);\n    return;\n  }\n  FUN_004c4940(lVar4,*(uint *)(lVar4 + 0x20) | 4);\n  return;\n}" primitive_type (function_declarator "FUN_004ce370(long *param_1,undefined8 *param_2,uint param_3)" identifier (parameter_list "(long *param_1,undefined8 *param_2,uint param_3)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined8 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "uint param_3" type_identifier identifier) ))) (compound_statement "{\n  long *plVar1;\n  long *plVar2;\n  long lVar3;\n  long lVar4;\n  \n  plVar2 = param_1 + 0x1f;\n  FUN_004dc0a0(plVar2);\n  *param_1 = (long)&DAT_00677aa8;\n  param_1[0x3a] = 0;\n  *(undefined4 *)(param_1 + 0x3b) = 0;\n  *(undefined1 *)((long)param_1 + 0x1dc) = 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] = (long)&DAT_00677ad0;\n                    \n  FUN_004c4f50(plVar2,0);\n  plVar1 = param_1 + 1;\n  *param_1 = (long)&PTR_FUN_00677b18;\n  param_1[0x1f] = (long)&PTR_FUN_00677b40;\n                    \n  FUN_004c8650(plVar1);\n                    \n  FUN_004c4f50(plVar2,plVar1);\n  lVar3 = FUN_004cd700(plVar1,*param_2,param_3 | 0x10);\n  lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;\n  if (lVar3 != 0) {\n    FUN_004c4940(lVar4,0);\n    return;\n  }\n  FUN_004c4940(lVar4,*(uint *)(lVar4 + 0x20) | 4);\n  return;\n}" { (declaration "long *plVar1;" (sized_type_specifier "long" long) (pointer_declarator "*plVar1" * identifier) ;) (declaration "long *plVar2;" (sized_type_specifier "long" long) (pointer_declarator "*plVar2" * identifier) ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (expression_statement "plVar2 = param_1 + 0x1f;" (assignment_expression "plVar2 = param_1 + 0x1f" identifier = (binary_expression "param_1 + 0x1f" identifier + number_literal)) ;) (expression_statement "FUN_004dc0a0(plVar2);" (call_expression "FUN_004dc0a0(plVar2)" identifier (argument_list "(plVar2)" ( identifier ))) ;) (expression_statement "*param_1 = (long)&DAT_00677aa8;" (assignment_expression "*param_1 = (long)&DAT_00677aa8" (pointer_expression "*param_1" * identifier) = (cast_expression "(long)&DAT_00677aa8" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&DAT_00677aa8" & identifier))) ;) (expression_statement "param_1[0x3a] = 0;" (assignment_expression "param_1[0x3a] = 0" (subscript_expression "param_1[0x3a]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined4 *)(param_1 + 0x3b) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x3b) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x3b)" * (cast_expression "(undefined4 *)(param_1 + 0x3b)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3b)" ( (binary_expression "param_1 + 0x3b" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)((long)param_1 + 0x1dc) = 0;" (assignment_expression "*(undefined1 *)((long)param_1 + 0x1dc) = 0" (pointer_expression "*(undefined1 *)((long)param_1 + 0x1dc)" * (cast_expression "(undefined1 *)((long)param_1 + 0x1dc)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x1dc)" ( (binary_expression "(long)param_1 + 0x1dc" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) 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] = (long)&DAT_00677ad0;" (assignment_expression "param_1[0x1f] = (long)&DAT_00677ad0" (subscript_expression "param_1[0x1f]" identifier [ number_literal ]) = (cast_expression "(long)&DAT_00677ad0" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&DAT_00677ad0" & identifier))) ;) (expression_statement "FUN_004c4f50(plVar2,0);" (call_expression "FUN_004c4f50(plVar2,0)" identifier (argument_list "(plVar2,0)" ( identifier , number_literal ))) ;) (expression_statement "plVar1 = param_1 + 1;" (assignment_expression "plVar1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "*param_1 = (long)&PTR_FUN_00677b18;" (assignment_expression "*param_1 = (long)&PTR_FUN_00677b18" (pointer_expression "*param_1" * identifier) = (cast_expression "(long)&PTR_FUN_00677b18" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&PTR_FUN_00677b18" & identifier))) ;) (expression_statement "param_1[0x1f] = (long)&PTR_FUN_00677b40;" (assignment_expression "param_1[0x1f] = (long)&PTR_FUN_00677b40" (subscript_expression "param_1[0x1f]" identifier [ number_literal ]) = (cast_expression "(long)&PTR_FUN_00677b40" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&PTR_FUN_00677b40" & identifier))) ;) (expression_statement "FUN_004c8650(plVar1);" (call_expression "FUN_004c8650(plVar1)" identifier (argument_list "(plVar1)" ( identifier ))) ;) (expression_statement "FUN_004c4f50(plVar2,plVar1);" (call_expression "FUN_004c4f50(plVar2,plVar1)" identifier (argument_list "(plVar2,plVar1)" ( identifier , identifier ))) ;) (expression_statement "lVar3 = FUN_004cd700(plVar1,*param_2,param_3 | 0x10);" (assignment_expression "lVar3 = FUN_004cd700(plVar1,*param_2,param_3 | 0x10)" identifier = (call_expression "FUN_004cd700(plVar1,*param_2,param_3 | 0x10)" identifier (argument_list "(plVar1,*param_2,param_3 | 0x10)" ( identifier , (pointer_expression "*param_2" * identifier) , (binary_expression "param_3 | 0x10" identifier | number_literal) )))) ;) (expression_statement "lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;" (assignment_expression "lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1" identifier = (binary_expression "*(long *)(*param_1 + -0x18) + (long)param_1" (pointer_expression "*(long *)(*param_1 + -0x18)" * (cast_expression "(long *)(*param_1 + -0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0x18)" ( (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier))) ;) (if_statement "if (lVar3 != 0) {\n    FUN_004c4940(lVar4,0);\n    return;\n  }" if (parenthesized_expression "(lVar3 != 0)" ( (binary_expression "lVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_004c4940(lVar4,0);\n    return;\n  }" { (expression_statement "FUN_004c4940(lVar4,0);" (call_expression "FUN_004c4940(lVar4,0)" identifier (argument_list "(lVar4,0)" ( identifier , number_literal ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_004c4940(lVar4,*(uint *)(lVar4 + 0x20) | 4);" (call_expression "FUN_004c4940(lVar4,*(uint *)(lVar4 + 0x20) | 4)" identifier (argument_list "(lVar4,*(uint *)(lVar4 + 0x20) | 4)" ( identifier , (binary_expression "*(uint *)(lVar4 + 0x20) | 4" (pointer_expression "*(uint *)(lVar4 + 0x20)" * (cast_expression "(uint *)(lVar4 + 0x20)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar4 + 0x20)" ( (binary_expression "lVar4 + 0x20" identifier + number_literal) )))) | number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) 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) = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (pointer_expression & 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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) 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 ]) = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (pointer_expression & IDENT))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (pointer_expression & IDENT))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (pointer_expression & IDENT))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression * IDENT) , (binary_expression IDENT | LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) + (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT) ))) ;) (return_statement return ;) })))
(function_definition "void FUN_004ce370(long *param_1,undefined8 *param_2,uint param_3)\n\n{\n  long *plVar1;\n  long *plVar2;\n  long lVar3;\n  long lVar4;\n  \n  plVar2 = param_1 + 0x1f;\n  FUN_004dc0a0(plVar2);\n  *param_1 = (long)&DAT_00677aa8;\n  param_1[0x3a] = 0;\n  *(undefined4 *)(param_1 + 0x3b) = 0;\n  *(undefined1 *)((long)param_1 + 0x1dc) = 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] = (long)&DAT_00677ad0;\n                    \n  FUN_004c4f50(plVar2,0);\n  plVar1 = param_1 + 1;\n  *param_1 = (long)&PTR_FUN_00677b18;\n  param_1[0x1f] = (long)&PTR_FUN_00677b40;\n                    \n  FUN_004c8650(plVar1);\n                    \n  FUN_004c4f50(plVar2,plVar1);\n  lVar3 = FUN_004cd700(plVar1,*param_2,param_3 | 0x10);\n  lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;\n  if (lVar3 != 0) {\n    FUN_004c4940(lVar4,0);\n    return;\n  }\n  FUN_004c4940(lVar4,*(uint *)(lVar4 + 0x20) | 4);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_004ce370(long *param_1,undefined8 *param_2,uint param_3)" (identifier "FUN_004ce370") (parameter_list "(long *param_1,undefined8 *param_2,uint param_3)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined8 *param_2" (type_identifier "undefined8") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) () ")"))) (compound_statement "{\n  long *plVar1;\n  long *plVar2;\n  long lVar3;\n  long lVar4;\n  \n  plVar2 = param_1 + 0x1f;\n  FUN_004dc0a0(plVar2);\n  *param_1 = (long)&DAT_00677aa8;\n  param_1[0x3a] = 0;\n  *(undefined4 *)(param_1 + 0x3b) = 0;\n  *(undefined1 *)((long)param_1 + 0x1dc) = 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] = (long)&DAT_00677ad0;\n                    \n  FUN_004c4f50(plVar2,0);\n  plVar1 = param_1 + 1;\n  *param_1 = (long)&PTR_FUN_00677b18;\n  param_1[0x1f] = (long)&PTR_FUN_00677b40;\n                    \n  FUN_004c8650(plVar1);\n                    \n  FUN_004c4f50(plVar2,plVar1);\n  lVar3 = FUN_004cd700(plVar1,*param_2,param_3 | 0x10);\n  lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;\n  if (lVar3 != 0) {\n    FUN_004c4940(lVar4,0);\n    return;\n  }\n  FUN_004c4940(lVar4,*(uint *)(lVar4 + 0x20) | 4);\n  return;\n}" ({ "{") (declaration "long *plVar1;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar1" (* "*") (identifier "plVar1")) (; ";")) (declaration "long *plVar2;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar2" (* "*") (identifier "plVar2")) (; ";")) (declaration "long lVar3;" (sized_type_specifier "long" (long "long")) (identifier "lVar3") (; ";")) (declaration "long lVar4;" (sized_type_specifier "long" (long "long")) (identifier "lVar4") (; ";")) (expression_statement "plVar2 = param_1 + 0x1f;" (assignment_expression "plVar2 = param_1 + 0x1f" (identifier "plVar2") (= "=") (binary_expression "param_1 + 0x1f" (identifier "param_1") (+ "+") (number_literal "0x1f"))) (; ";")) (expression_statement "FUN_004dc0a0(plVar2);" (call_expression "FUN_004dc0a0(plVar2)" (identifier "FUN_004dc0a0") (argument_list "(plVar2)" (( "(") (identifier "plVar2") () ")"))) (; ";")) (expression_statement "*param_1 = (long)&DAT_00677aa8;" (assignment_expression "*param_1 = (long)&DAT_00677aa8" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(long)&DAT_00677aa8" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (pointer_expression "&DAT_00677aa8" (& "&") (identifier "DAT_00677aa8")))) (; ";")) (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 "*(undefined4 *)(param_1 + 0x3b) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x3b) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x3b)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x3b)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3b)" (( "(") (binary_expression "param_1 + 0x3b" (identifier "param_1") (+ "+") (number_literal "0x3b")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined1 *)((long)param_1 + 0x1dc) = 0;" (assignment_expression "*(undefined1 *)((long)param_1 + 0x1dc) = 0" (pointer_expression "*(undefined1 *)((long)param_1 + 0x1dc)" (* "*") (cast_expression "(undefined1 *)((long)param_1 + 0x1dc)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0x1dc)" (( "(") (binary_expression "(long)param_1 + 0x1dc" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0x1dc")) () ")")))) (= "=") (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] = (long)&DAT_00677ad0;" (assignment_expression "param_1[0x1f] = (long)&DAT_00677ad0" (subscript_expression "param_1[0x1f]" (identifier "param_1") ([ "[") (number_literal "0x1f") (] "]")) (= "=") (cast_expression "(long)&DAT_00677ad0" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (pointer_expression "&DAT_00677ad0" (& "&") (identifier "DAT_00677ad0")))) (; ";")) (expression_statement "FUN_004c4f50(plVar2,0);" (call_expression "FUN_004c4f50(plVar2,0)" (identifier "FUN_004c4f50") (argument_list "(plVar2,0)" (( "(") (identifier "plVar2") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "plVar1 = param_1 + 1;" (assignment_expression "plVar1 = param_1 + 1" (identifier "plVar1") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*param_1 = (long)&PTR_FUN_00677b18;" (assignment_expression "*param_1 = (long)&PTR_FUN_00677b18" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (cast_expression "(long)&PTR_FUN_00677b18" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (pointer_expression "&PTR_FUN_00677b18" (& "&") (identifier "PTR_FUN_00677b18")))) (; ";")) (expression_statement "param_1[0x1f] = (long)&PTR_FUN_00677b40;" (assignment_expression "param_1[0x1f] = (long)&PTR_FUN_00677b40" (subscript_expression "param_1[0x1f]" (identifier "param_1") ([ "[") (number_literal "0x1f") (] "]")) (= "=") (cast_expression "(long)&PTR_FUN_00677b40" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (pointer_expression "&PTR_FUN_00677b40" (& "&") (identifier "PTR_FUN_00677b40")))) (; ";")) (expression_statement "FUN_004c8650(plVar1);" (call_expression "FUN_004c8650(plVar1)" (identifier "FUN_004c8650") (argument_list "(plVar1)" (( "(") (identifier "plVar1") () ")"))) (; ";")) (expression_statement "FUN_004c4f50(plVar2,plVar1);" (call_expression "FUN_004c4f50(plVar2,plVar1)" (identifier "FUN_004c4f50") (argument_list "(plVar2,plVar1)" (( "(") (identifier "plVar2") (, ",") (identifier "plVar1") () ")"))) (; ";")) (expression_statement "lVar3 = FUN_004cd700(plVar1,*param_2,param_3 | 0x10);" (assignment_expression "lVar3 = FUN_004cd700(plVar1,*param_2,param_3 | 0x10)" (identifier "lVar3") (= "=") (call_expression "FUN_004cd700(plVar1,*param_2,param_3 | 0x10)" (identifier "FUN_004cd700") (argument_list "(plVar1,*param_2,param_3 | 0x10)" (( "(") (identifier "plVar1") (, ",") (pointer_expression "*param_2" (* "*") (identifier "param_2")) (, ",") (binary_expression "param_3 | 0x10" (identifier "param_3") (| "|") (number_literal "0x10")) () ")")))) (; ";")) (expression_statement "lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;" (assignment_expression "lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1" (identifier "lVar4") (= "=") (binary_expression "*(long *)(*param_1 + -0x18) + (long)param_1" (pointer_expression "*(long *)(*param_1 + -0x18)" (* "*") (cast_expression "(long *)(*param_1 + -0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -0x18)" (( "(") (binary_expression "*param_1 + -0x18" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0x18")) () ")")))) (+ "+") (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")))) (; ";")) (if_statement "if (lVar3 != 0) {\n    FUN_004c4940(lVar4,0);\n    return;\n  }" (if "if") (parenthesized_expression "(lVar3 != 0)" (( "(") (binary_expression "lVar3 != 0" (identifier "lVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_004c4940(lVar4,0);\n    return;\n  }" ({ "{") (expression_statement "FUN_004c4940(lVar4,0);" (call_expression "FUN_004c4940(lVar4,0)" (identifier "FUN_004c4940") (argument_list "(lVar4,0)" (( "(") (identifier "lVar4") (, ",") (number_literal "0") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_004c4940(lVar4,*(uint *)(lVar4 + 0x20) | 4);" (call_expression "FUN_004c4940(lVar4,*(uint *)(lVar4 + 0x20) | 4)" (identifier "FUN_004c4940") (argument_list "(lVar4,*(uint *)(lVar4 + 0x20) | 4)" (( "(") (identifier "lVar4") (, ",") (binary_expression "*(uint *)(lVar4 + 0x20) | 4" (pointer_expression "*(uint *)(lVar4 + 0x20)" (* "*") (cast_expression "(uint *)(lVar4 + 0x20)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar4 + 0x20)" (( "(") (binary_expression "lVar4 + 0x20" (identifier "lVar4") (+ "+") (number_literal "0x20")) () ")")))) (| "|") (number_literal "4")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* std::wofstream::wofstream(std::string const&, std::_Ios_Openmode) */

void __thiscall std::function_1::function_1(function_1 *var_1,type_1 *param_1,type_2 var_4)

{
  type_3 *this_00;
  type_4 *this_01;
  long var_6;
  type_5 *var_8;
  
  this_01 = (type_4 *)(var_1 + 0xf8);
  ios_base::type_4(this_01);
  *(type_6 *)var_1 = 0x677aa8;
  *(type_6 *)(var_1 + 0x1d0) = 0;
  *(type_7 *)(var_1 + 0x1d8) = 0;
  var_1[0x1dc] = (function_1)0x0;
  *(type_6 *)(var_1 + 0x1e0) = 0;
  *(type_6 *)(var_1 + 0x1e8) = 0;
  *(type_6 *)(var_1 + 0x1f0) = 0;
  *(type_6 *)(var_1 + 0x1f8) = 0;
  *(type_6 *)(var_1 + 0xf8) = 0x677ad0;
                    /* try { // try from 004ce3f8 to 004ce3fc has its CatchHandler @ 004ce48c */
  wios::var_2((type_5 *)this_01,(type_8 *)0x0);
  this_00 = (type_3 *)(var_1 + 8);
  *(type_9 ***)var_1 = &PTR__wofstream_00677b18;
  *(type_9 ***)(var_1 + 0xf8) = &PTR__wofstream_00677b40;
                    /* try { // try from 004ce41d to 004ce421 has its CatchHandler @ 004ce487 */
  wfilebuf::type_3(this_00);
                    /* try { // try from 004ce428 to 004ce472 has its CatchHandler @ 004ce482 */
  wios::var_2((type_5 *)this_01,(type_8 *)this_00);
  var_6 = type_3::var_3(this_00,*(char **)param_1,var_4 | var_5);
  var_8 = (type_5 *)(var_1 + *(long *)(*(long *)var_1 + -0x18));
  if (var_6 != 0) {
    wios::var_7(var_8,_S_goodbit);
    return;
  }
  wios::var_7(var_8,*(type_10 *)(var_8 + 0x20) | var_9);
  return;
}


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

void MASKED(long *param_1,undefined8 *param_2,uint param_3)

{
  long *plVar1;
  long *plVar2;
  long lVar3;
  long lVar4;
  
  plVar2 = param_1 + 0x1f;
  FUN_004dc0a0(plVar2);
  *param_1 = (long)&DAT_00677aa8;
  param_1[0x3a] = 0;
  *(undefined4 *)(param_1 + 0x3b) = 0;
  *(undefined1 *)((long)param_1 + 0x1dc) = 0;
  param_1[0x3c] = 0;
  param_1[0x3d] = 0;
  param_1[0x3e] = 0;
  param_1[0x3f] = 0;
  param_1[0x1f] = (long)&DAT_00677ad0;
                    /* try { // try from 004ce3f8 to 004ce3fc has its CatchHandler @ 004ce48c */
  FUN_004c4f50(plVar2,0);
  plVar1 = param_1 + 1;
  *param_1 = (long)&PTR_FUN_00677b18;
  param_1[0x1f] = (long)&PTR_FUN_00677b40;
                    /* try { // try from 004ce41d to 004ce421 has its CatchHandler @ 004ce487 */
  FUN_004c8650(plVar1);
                    /* try { // try from 004ce428 to 004ce472 has its CatchHandler @ 004ce482 */
  FUN_004c4f50(plVar2,plVar1);
  lVar3 = FUN_004cd700(plVar1,*param_2,param_3 | 0x10);
  lVar4 = *(long *)(*param_1 + -0x18) + (long)param_1;
  if (lVar3 != 0) {
    FUN_004c4940(lVar4,0);
    return;
  }
  FUN_004c4940(lVar4,*(uint *)(lVar4 + 0x20) | 4);
  return;
}

