
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::wfstream::wfstream(std::string const&, std::_Ios_Openmode) */

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

{
  wfilebuf *this_00;
  int iVar1;
  int iVar2;
  wios *this_01;
  _Ios_Openmode in_stack_00000010;
  
  iVar2 = *(int *)(param_1 + 8);
  iVar1 = *(int *)(iVar2 + -0xc);
  *(int *)this = iVar2;
  *(undefined4 *)(this + iVar1) = *(undefined4 *)(param_1 + 0xc);
  *(undefined4 *)(this + 4) = 0;
  wios::init((wios *)(this + *(int *)(iVar2 + -0xc)),(wstreambuf *)0x0);
  iVar2 = *(int *)(param_1 + 0x10);
  *(int *)(this + 8) = iVar2;
  iVar2 = *(int *)(iVar2 + -0xc);
  *(undefined4 *)(this + iVar2 + 8) = *(undefined4 *)(param_1 + 0x14);
                    /* try { // try from 001b4ba9 to 001b4bad has its CatchHandler @ 001b4c62 */
  wios::init((wios *)(this + iVar2 + 8),(wstreambuf *)0x0);
  iVar2 = *(int *)(param_1 + 4);
  *(int *)this = iVar2;
  *(undefined4 *)(this + *(int *)(iVar2 + -0xc)) = *(undefined4 *)(param_1 + 0x18);
  *(undefined4 *)(this + 8) = *(undefined4 *)(param_1 + 0x1c);
  iVar2 = *(int *)param_1;
  *(int *)this = iVar2;
  *(undefined4 *)(this + *(int *)(iVar2 + -0xc)) = *(undefined4 *)(param_1 + 0x20);
  *(undefined4 *)(this + 8) = *(undefined4 *)(param_1 + 0x24);
  this_00 = (wfilebuf *)(this + 0xc);
                    /* try { // try from 001b4be1 to 001b4be5 has its CatchHandler @ 001b4c60 */
  wfilebuf::wfilebuf(this_00);
                    /* try { // try from 001b4bf6 to 001b4c52 has its CatchHandler @ 001b4c5e */
  wios::init((wios *)(this + *(int *)(*(int *)this + -0xc)),(wstreambuf *)this_00);
  iVar2 = wfilebuf::open(this_00,*(char **)param_2,in_stack_00000010);
  this_01 = (wios *)(this + *(int *)(*(int *)this + -0xc));
  if (iVar2 != 0) {
    wios::clear(this_01,_S_goodbit);
    return;
  }
  wios::clear(this_01,*(_Ios_Iostate *)(this_01 + 0x14) | _S_failbit);
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void FUN_001b4b50(int *param_1,int *param_2,undefined4 *param_3,undefined4 param_4)

{
  int *piVar1;
  int iVar2;
  int iVar3;
  
  iVar2 = param_2[2];
  iVar3 = *(int *)(iVar2 + -0xc);
  *param_1 = iVar2;
  *(int *)((int)param_1 + iVar3) = param_2[3];
  param_1[1] = 0;
  FUN_001ab7c0(*(int *)(iVar2 + -0xc) + (int)param_1,0);
  iVar2 = param_2[4];
  param_1[2] = iVar2;
  piVar1 = (int *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8);
  *piVar1 = param_2[5];
                    /* try { // try from 001b4ba9 to 001b4bad has its CatchHandler @ 001b4c62 */
  FUN_001ab7c0(piVar1,0);
  iVar2 = param_2[1];
  *param_1 = iVar2;
  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[6];
  param_1[2] = param_2[7];
  iVar2 = *param_2;
  *param_1 = iVar2;
  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[8];
  param_1[2] = param_2[9];
  piVar1 = param_1 + 3;
                    /* try { // try from 001b4be1 to 001b4be5 has its CatchHandler @ 001b4c60 */
  FUN_001aec40(piVar1);
                    /* try { // try from 001b4bf6 to 001b4c52 has its CatchHandler @ 001b4c5e */
  FUN_001ab7c0(*(int *)(*param_1 + -0xc) + (int)param_1,piVar1);
  iVar2 = FUN_001b3ed0(piVar1,*param_3,param_4);
  iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;
  if (iVar2 != 0) {
    FUN_001ab090(iVar3,0);
    return;
  }
  FUN_001ab090(iVar3,*(uint *)(iVar3 + 0x14) | 4);
  return;
}


PUSH EBP
MOV EBP,ESP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00032730
ADD EBX,0x14d4a5
SUB ESP,0x24
MOV EDI,dword ptr [EBP + 0xc]
MOV ESI,dword ptr [EBP + 0x8]
MOV EAX,dword ptr [EDI + 0x8]
MOV EDX,dword ptr [EAX + -0xc]
MOV dword ptr [ESI],EAX
MOV ECX,dword ptr [EDI + 0xc]
MOV dword ptr [EBP + -0x1c],EBX
MOV dword ptr [ESI + EDX*0x1],ECX
MOV dword ptr [ESI + 0x4],0x0
MOV ECX,dword ptr [EAX + -0xc]
PUSH 0x0
ADD ECX,ESI
PUSH ECX
CALL 0x001ab7c0
MOV EAX,dword ptr [EDI + 0x10]
MOV dword ptr [ESI + 0x8],EAX
MOV EAX,dword ptr [EAX + -0xc]
MOV EDX,dword ptr [EDI + 0x14]
LEA EAX,[ESI + EAX*0x1 + 0x8]
MOV dword ptr [EAX],EDX
POP ECX
POP EBX
MOV EBX,dword ptr [EBP + -0x1c]
PUSH 0x0
PUSH EAX
CALL 0x001ab7c0
MOV EAX,dword ptr [EDI + 0x4]
MOV EBX,dword ptr [EBP + -0x1c]
MOV dword ptr [ESI],EAX
MOV EAX,dword ptr [EAX + -0xc]
MOV EDX,dword ptr [EDI + 0x18]
MOV dword ptr [ESI + EAX*0x1],EDX
MOV EAX,dword ptr [EDI + 0x1c]
MOV dword ptr [ESI + 0x8],EAX
MOV EAX,dword ptr [EDI]
MOV dword ptr [ESI],EAX
MOV EAX,dword ptr [EAX + -0xc]
MOV EDX,dword ptr [EDI + 0x20]
MOV dword ptr [ESI + EAX*0x1],EDX
MOV EAX,dword ptr [EDI + 0x24]
MOV dword ptr [ESI + 0x8],EAX
LEA EAX,[ESI + 0xc]
MOV dword ptr [EBP + -0x20],EAX
MOV dword ptr [ESP],EAX
CALL 0x001aec40
POP EAX
POP EDX
PUSH dword ptr [EBP + -0x20]
MOV EAX,dword ptr [ESI]
MOV EBX,dword ptr [EBP + -0x1c]
MOV ECX,dword ptr [EAX + -0xc]
ADD ECX,ESI
PUSH ECX
CALL 0x001ab7c0
MOV EAX,dword ptr [EBP + 0x10]
ADD ESP,0xc
MOV EBX,dword ptr [EBP + -0x1c]
PUSH dword ptr [EBP + 0x14]
PUSH dword ptr [EAX]
PUSH dword ptr [EBP + -0x20]
CALL 0x001b3ed0
MOV EDX,dword ptr [ESI]
ADD ESP,0x10
MOV ECX,dword ptr [EDX + -0xc]
ADD ECX,ESI
TEST EAX,EAX
JZ 0x001b4c40
SUB ESP,0x8
MOV EBX,dword ptr [EBP + -0x1c]
PUSH 0x0
PUSH ECX
CALL 0x001ab090
ADD ESP,0x10
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ECX + 0x14]
SUB ESP,0x8
MOV EBX,dword ptr [EBP + -0x1c]
OR EAX,0x4
PUSH EAX
PUSH ECX
CALL 0x001ab090
ADD ESP,0x10
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_001b4b50(int *param_1,int *param_2,undefined4 *param_3,undefined4 param_4)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = param_2[2];\n  iVar3 = *(int *)(iVar2 + -0xc);\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + iVar3) = param_2[3];\n  param_1[1] = 0;\n  FUN_001ab7c0(*(int *)(iVar2 + -0xc) + (int)param_1,0);\n  iVar2 = param_2[4];\n  param_1[2] = iVar2;\n  piVar1 = (int *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8);\n  *piVar1 = param_2[5];\n                    /* try { // try from 001b4ba9 to 001b4bad has its CatchHandler @ 001b4c62 */\n  FUN_001ab7c0(piVar1,0);\n  iVar2 = param_2[1];\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[6];\n  param_1[2] = param_2[7];\n  iVar2 = *param_2;\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[8];\n  param_1[2] = param_2[9];\n  piVar1 = param_1 + 3;\n                    /* try { // try from 001b4be1 to 001b4be5 has its CatchHandler @ 001b4c60 */\n  FUN_001aec40(piVar1);\n                    /* try { // try from 001b4bf6 to 001b4c52 has its CatchHandler @ 001b4c5e */\n  FUN_001ab7c0(*(int *)(*param_1 + -0xc) + (int)param_1,piVar1);\n  iVar2 = FUN_001b3ed0(piVar1,*param_3,param_4);\n  iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  if (iVar2 != 0) {\n    FUN_001ab090(iVar3,0);\n    return;\n  }\n  FUN_001ab090(iVar3,*(uint *)(iVar3 + 0x14) | 4);\n  return;\n}\n\n" comment (function_definition "void FUN_001b4b50(int *param_1,int *param_2,undefined4 *param_3,undefined4 param_4)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = param_2[2];\n  iVar3 = *(int *)(iVar2 + -0xc);\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + iVar3) = param_2[3];\n  param_1[1] = 0;\n  FUN_001ab7c0(*(int *)(iVar2 + -0xc) + (int)param_1,0);\n  iVar2 = param_2[4];\n  param_1[2] = iVar2;\n  piVar1 = (int *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8);\n  *piVar1 = param_2[5];\n                    /* try { // try from 001b4ba9 to 001b4bad has its CatchHandler @ 001b4c62 */\n  FUN_001ab7c0(piVar1,0);\n  iVar2 = param_2[1];\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[6];\n  param_1[2] = param_2[7];\n  iVar2 = *param_2;\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[8];\n  param_1[2] = param_2[9];\n  piVar1 = param_1 + 3;\n                    /* try { // try from 001b4be1 to 001b4be5 has its CatchHandler @ 001b4c60 */\n  FUN_001aec40(piVar1);\n                    /* try { // try from 001b4bf6 to 001b4c52 has its CatchHandler @ 001b4c5e */\n  FUN_001ab7c0(*(int *)(*param_1 + -0xc) + (int)param_1,piVar1);\n  iVar2 = FUN_001b3ed0(piVar1,*param_3,param_4);\n  iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  if (iVar2 != 0) {\n    FUN_001ab090(iVar3,0);\n    return;\n  }\n  FUN_001ab090(iVar3,*(uint *)(iVar3 + 0x14) | 4);\n  return;\n}" primitive_type (function_declarator "FUN_001b4b50(int *param_1,int *param_2,undefined4 *param_3,undefined4 param_4)" identifier (parameter_list "(int *param_1,int *param_2,undefined4 *param_3,undefined4 param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = param_2[2];\n  iVar3 = *(int *)(iVar2 + -0xc);\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + iVar3) = param_2[3];\n  param_1[1] = 0;\n  FUN_001ab7c0(*(int *)(iVar2 + -0xc) + (int)param_1,0);\n  iVar2 = param_2[4];\n  param_1[2] = iVar2;\n  piVar1 = (int *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8);\n  *piVar1 = param_2[5];\n                    /* try { // try from 001b4ba9 to 001b4bad has its CatchHandler @ 001b4c62 */\n  FUN_001ab7c0(piVar1,0);\n  iVar2 = param_2[1];\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[6];\n  param_1[2] = param_2[7];\n  iVar2 = *param_2;\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[8];\n  param_1[2] = param_2[9];\n  piVar1 = param_1 + 3;\n                    /* try { // try from 001b4be1 to 001b4be5 has its CatchHandler @ 001b4c60 */\n  FUN_001aec40(piVar1);\n                    /* try { // try from 001b4bf6 to 001b4c52 has its CatchHandler @ 001b4c5e */\n  FUN_001ab7c0(*(int *)(*param_1 + -0xc) + (int)param_1,piVar1);\n  iVar2 = FUN_001b3ed0(piVar1,*param_3,param_4);\n  iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  if (iVar2 != 0) {\n    FUN_001ab090(iVar3,0);\n    return;\n  }\n  FUN_001ab090(iVar3,*(uint *)(iVar3 + 0x14) | 4);\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar2 = param_2[2];" (assignment_expression "iVar2 = param_2[2]" identifier = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) (expression_statement "iVar3 = *(int *)(iVar2 + -0xc);" (assignment_expression "iVar3 = *(int *)(iVar2 + -0xc)" identifier = (pointer_expression "*(int *)(iVar2 + -0xc)" * (cast_expression "(int *)(iVar2 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) ))))) ;) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "*(int *)((int)param_1 + iVar3) = param_2[3];" (assignment_expression "*(int *)((int)param_1 + iVar3) = param_2[3]" (pointer_expression "*(int *)((int)param_1 + iVar3)" * (cast_expression "(int *)((int)param_1 + iVar3)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + iVar3)" ( (binary_expression "(int)param_1 + iVar3" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = (subscript_expression "param_2[3]" identifier [ number_literal ])) ;) (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_001ab7c0(*(int *)(iVar2 + -0xc) + (int)param_1,0);" (call_expression "FUN_001ab7c0(*(int *)(iVar2 + -0xc) + (int)param_1,0)" identifier (argument_list "(*(int *)(iVar2 + -0xc) + (int)param_1,0)" ( (binary_expression "*(int *)(iVar2 + -0xc) + (int)param_1" (pointer_expression "*(int *)(iVar2 + -0xc)" * (cast_expression "(int *)(iVar2 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) )))) + (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) , number_literal ))) ;) (expression_statement "iVar2 = param_2[4];" (assignment_expression "iVar2 = param_2[4]" identifier = (subscript_expression "param_2[4]" identifier [ number_literal ])) ;) (expression_statement "param_1[2] = iVar2;" (assignment_expression "param_1[2] = iVar2" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar1 = (int *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8);" (assignment_expression "piVar1 = (int *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8)" identifier = (cast_expression "(int *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(iVar2 + -0xc) + 8)" ( (binary_expression "(int)param_1 + *(int *)(iVar2 + -0xc) + 8" (binary_expression "(int)param_1 + *(int *)(iVar2 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(iVar2 + -0xc)" * (cast_expression "(int *)(iVar2 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) ))))) + number_literal) )))) ;) (expression_statement "*piVar1 = param_2[5];" (assignment_expression "*piVar1 = param_2[5]" (pointer_expression "*piVar1" * identifier) = (subscript_expression "param_2[5]" identifier [ number_literal ])) ;) comment (expression_statement "FUN_001ab7c0(piVar1,0);" (call_expression "FUN_001ab7c0(piVar1,0)" identifier (argument_list "(piVar1,0)" ( identifier , number_literal ))) ;) (expression_statement "iVar2 = param_2[1];" (assignment_expression "iVar2 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[6];" (assignment_expression "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[6]" (pointer_expression "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc))" * (cast_expression "(int *)((int)param_1 + *(int *)(iVar2 + -0xc))" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(iVar2 + -0xc))" ( (binary_expression "(int)param_1 + *(int *)(iVar2 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(iVar2 + -0xc)" * (cast_expression "(int *)(iVar2 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) ))))) )))) = (subscript_expression "param_2[6]" identifier [ number_literal ])) ;) (expression_statement "param_1[2] = param_2[7];" (assignment_expression "param_1[2] = param_2[7]" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (subscript_expression "param_2[7]" identifier [ number_literal ])) ;) (expression_statement "iVar2 = *param_2;" (assignment_expression "iVar2 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[8];" (assignment_expression "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[8]" (pointer_expression "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc))" * (cast_expression "(int *)((int)param_1 + *(int *)(iVar2 + -0xc))" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(iVar2 + -0xc))" ( (binary_expression "(int)param_1 + *(int *)(iVar2 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(iVar2 + -0xc)" * (cast_expression "(int *)(iVar2 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) ))))) )))) = (subscript_expression "param_2[8]" identifier [ number_literal ])) ;) (expression_statement "param_1[2] = param_2[9];" (assignment_expression "param_1[2] = param_2[9]" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (subscript_expression "param_2[9]" identifier [ number_literal ])) ;) (expression_statement "piVar1 = param_1 + 3;" (assignment_expression "piVar1 = param_1 + 3" identifier = (binary_expression "param_1 + 3" identifier + number_literal)) ;) comment (expression_statement "FUN_001aec40(piVar1);" (call_expression "FUN_001aec40(piVar1)" identifier (argument_list "(piVar1)" ( identifier ))) ;) comment (expression_statement "FUN_001ab7c0(*(int *)(*param_1 + -0xc) + (int)param_1,piVar1);" (call_expression "FUN_001ab7c0(*(int *)(*param_1 + -0xc) + (int)param_1,piVar1)" identifier (argument_list "(*(int *)(*param_1 + -0xc) + (int)param_1,piVar1)" ( (binary_expression "*(int *)(*param_1 + -0xc) + (int)param_1" (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) , identifier ))) ;) (expression_statement "iVar2 = FUN_001b3ed0(piVar1,*param_3,param_4);" (assignment_expression "iVar2 = FUN_001b3ed0(piVar1,*param_3,param_4)" identifier = (call_expression "FUN_001b3ed0(piVar1,*param_3,param_4)" identifier (argument_list "(piVar1,*param_3,param_4)" ( identifier , (pointer_expression "*param_3" * identifier) , identifier )))) ;) (expression_statement "iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;" (assignment_expression "iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1" identifier = (binary_expression "*(int *)(*param_1 + -0xc) + (int)param_1" (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (iVar2 != 0) {\n    FUN_001ab090(iVar3,0);\n    return;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_001ab090(iVar3,0);\n    return;\n  }" { (expression_statement "FUN_001ab090(iVar3,0);" (call_expression "FUN_001ab090(iVar3,0)" identifier (argument_list "(iVar3,0)" ( identifier , number_literal ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_001ab090(iVar3,*(uint *)(iVar3 + 0x14) | 4);" (call_expression "FUN_001ab090(iVar3,*(uint *)(iVar3 + 0x14) | 4)" identifier (argument_list "(iVar3,*(uint *)(iVar3 + 0x14) | 4)" ( identifier , (binary_expression "*(uint *)(iVar3 + 0x14) | 4" (pointer_expression "*(uint *)(iVar3 + 0x14)" * (cast_expression "(uint *)(iVar3 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) )))) | number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* std::wfstream::wfstream(std::string const&, std::_Ios_Openmode) */\n\nvoid __thiscall std::wfstream::wfstream(wfstream *this,string *param_1,_Ios_Openmode param_2)\n\n{\n  wfilebuf *this_00;\n  int iVar1;\n  int iVar2;\n  wios *this_01;\n  _Ios_Openmode in_stack_00000010;\n  \n  iVar2 = *(int *)(param_1 + 8);\n  iVar1 = *(int *)(iVar2 + -0xc);\n  *(int *)this = iVar2;\n  *(undefined4 *)(this + iVar1) = *(undefined4 *)(param_1 + 0xc);\n  *(undefined4 *)(this + 4) = 0;\n  wios::init((wios *)(this + *(int *)(iVar2 + -0xc)),(wstreambuf *)0x0);\n  iVar2 = *(int *)(param_1 + 0x10);\n  *(int *)(this + 8) = iVar2;\n  iVar2 = *(int *)(iVar2 + -0xc);\n  *(undefined4 *)(this + iVar2 + 8) = *(undefined4 *)(param_1 + 0x14);\n                    /* try { // try from 001b4ba9 to 001b4bad has its CatchHandler @ 001b4c62 */\n  wios::init((wios *)(this + iVar2 + 8),(wstreambuf *)0x0);\n  iVar2 = *(int *)(param_1 + 4);\n  *(int *)this = iVar2;\n  *(undefined4 *)(this + *(int *)(iVar2 + -0xc)) = *(undefined4 *)(param_1 + 0x18);\n  *(undefined4 *)(this + 8) = *(undefined4 *)(param_1 + 0x1c);\n  iVar2 = *(int *)param_1;\n  *(int *)this = iVar2;\n  *(undefined4 *)(this + *(int *)(iVar2 + -0xc)) = *(undefined4 *)(param_1 + 0x20);\n  *(undefined4 *)(this + 8) = *(undefined4 *)(param_1 + 0x24);\n  this_00 = (wfilebuf *)(this + 0xc);\n                    /* try { // try from 001b4be1 to 001b4be5 has its CatchHandler @ 001b4c60 */\n  wfilebuf::wfilebuf(this_00);\n                    /* try { // try from 001b4bf6 to 001b4c52 has its CatchHandler @ 001b4c5e */\n  wios::init((wios *)(this + *(int *)(*(int *)this + -0xc)),(wstreambuf *)this_00);\n  iVar2 = wfilebuf::open(this_00,*(char **)param_2,in_stack_00000010);\n  this_01 = (wios *)(this + *(int *)(*(int *)this + -0xc));\n  if (iVar2 != 0) {\n    wios::clear(this_01,_S_goodbit);\n    return;\n  }\n  wios::clear(this_01,*(_Ios_Iostate *)(this_01 + 0x14) | _S_failbit);\n  return;\n}\n\n" comment comment (function_definition "void __thiscall std::wfstream::wfstream(wfstream *this,string *param_1,_Ios_Openmode param_2)\n\n{\n  wfilebuf *this_00;\n  int iVar1;\n  int iVar2;\n  wios *this_01;\n  _Ios_Openmode in_stack_00000010;\n  \n  iVar2 = *(int *)(param_1 + 8);\n  iVar1 = *(int *)(iVar2 + -0xc);\n  *(int *)this = iVar2;\n  *(undefined4 *)(this + iVar1) = *(undefined4 *)(param_1 + 0xc);\n  *(undefined4 *)(this + 4) = 0;\n  wios::init((wios *)(this + *(int *)(iVar2 + -0xc)),(wstreambuf *)0x0);\n  iVar2 = *(int *)(param_1 + 0x10);\n  *(int *)(this + 8) = iVar2;\n  iVar2 = *(int *)(iVar2 + -0xc);\n  *(undefined4 *)(this + iVar2 + 8) = *(undefined4 *)(param_1 + 0x14);\n                    /* try { // try from 001b4ba9 to 001b4bad has its CatchHandler @ 001b4c62 */\n  wios::init((wios *)(this + iVar2 + 8),(wstreambuf *)0x0);\n  iVar2 = *(int *)(param_1 + 4);\n  *(int *)this = iVar2;\n  *(undefined4 *)(this + *(int *)(iVar2 + -0xc)) = *(undefined4 *)(param_1 + 0x18);\n  *(undefined4 *)(this + 8) = *(undefined4 *)(param_1 + 0x1c);\n  iVar2 = *(int *)param_1;\n  *(int *)this = iVar2;\n  *(undefined4 *)(this + *(int *)(iVar2 + -0xc)) = *(undefined4 *)(param_1 + 0x20);\n  *(undefined4 *)(this + 8) = *(undefined4 *)(param_1 + 0x24);\n  this_00 = (wfilebuf *)(this + 0xc);\n                    /* try { // try from 001b4be1 to 001b4be5 has its CatchHandler @ 001b4c60 */\n  wfilebuf::wfilebuf(this_00);\n                    /* try { // try from 001b4bf6 to 001b4c52 has its CatchHandler @ 001b4c5e */\n  wios::init((wios *)(this + *(int *)(*(int *)this + -0xc)),(wstreambuf *)this_00);\n  iVar2 = wfilebuf::open(this_00,*(char **)param_2,in_stack_00000010);\n  this_01 = (wios *)(this + *(int *)(*(int *)this + -0xc));\n  if (iVar2 != 0) {\n    wios::clear(this_01,_S_goodbit);\n    return;\n  }\n  wios::clear(this_01,*(_Ios_Iostate *)(this_01 + 0x14) | _S_failbit);\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::wfstream::" identifier : : identifier : :) (function_declarator "wfstream(wfstream *this,string *param_1,_Ios_Openmode param_2)" identifier (parameter_list "(wfstream *this,string *param_1,_Ios_Openmode param_2)" ( (parameter_declaration "wfstream *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  int iVar1;\n  int iVar2;\n  wios *this_01;\n  _Ios_Openmode in_stack_00000010;\n  \n  iVar2 = *(int *)(param_1 + 8);\n  iVar1 = *(int *)(iVar2 + -0xc);\n  *(int *)this = iVar2;\n  *(undefined4 *)(this + iVar1) = *(undefined4 *)(param_1 + 0xc);\n  *(undefined4 *)(this + 4) = 0;\n  wios::init((wios *)(this + *(int *)(iVar2 + -0xc)),(wstreambuf *)0x0);\n  iVar2 = *(int *)(param_1 + 0x10);\n  *(int *)(this + 8) = iVar2;\n  iVar2 = *(int *)(iVar2 + -0xc);\n  *(undefined4 *)(this + iVar2 + 8) = *(undefined4 *)(param_1 + 0x14);\n                    /* try { // try from 001b4ba9 to 001b4bad has its CatchHandler @ 001b4c62 */\n  wios::init((wios *)(this + iVar2 + 8),(wstreambuf *)0x0);\n  iVar2 = *(int *)(param_1 + 4);\n  *(int *)this = iVar2;\n  *(undefined4 *)(this + *(int *)(iVar2 + -0xc)) = *(undefined4 *)(param_1 + 0x18);\n  *(undefined4 *)(this + 8) = *(undefined4 *)(param_1 + 0x1c);\n  iVar2 = *(int *)param_1;\n  *(int *)this = iVar2;\n  *(undefined4 *)(this + *(int *)(iVar2 + -0xc)) = *(undefined4 *)(param_1 + 0x20);\n  *(undefined4 *)(this + 8) = *(undefined4 *)(param_1 + 0x24);\n  this_00 = (wfilebuf *)(this + 0xc);\n                    /* try { // try from 001b4be1 to 001b4be5 has its CatchHandler @ 001b4c60 */\n  wfilebuf::wfilebuf(this_00);\n                    /* try { // try from 001b4bf6 to 001b4c52 has its CatchHandler @ 001b4c5e */\n  wios::init((wios *)(this + *(int *)(*(int *)this + -0xc)),(wstreambuf *)this_00);\n  iVar2 = wfilebuf::open(this_00,*(char **)param_2,in_stack_00000010);\n  this_01 = (wios *)(this + *(int *)(*(int *)this + -0xc));\n  if (iVar2 != 0) {\n    wios::clear(this_01,_S_goodbit);\n    return;\n  }\n  wios::clear(this_01,*(_Ios_Iostate *)(this_01 + 0x14) | _S_failbit);\n  return;\n}" { (declaration "wfilebuf *this_00;" type_identifier (pointer_declarator "*this_00" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "wios *this_01;" type_identifier (pointer_declarator "*this_01" * identifier) ;) (declaration "_Ios_Openmode in_stack_00000010;" type_identifier identifier ;) (expression_statement "iVar2 = *(int *)(param_1 + 8);" (assignment_expression "iVar2 = *(int *)(param_1 + 8)" identifier = (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = *(int *)(iVar2 + -0xc);" (assignment_expression "iVar1 = *(int *)(iVar2 + -0xc)" identifier = (pointer_expression "*(int *)(iVar2 + -0xc)" * (cast_expression "(int *)(iVar2 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) ))))) ;) (expression_statement "*(int *)this = iVar2;" (assignment_expression "*(int *)this = iVar2" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*(undefined4 *)(this + iVar1) = *(undefined4 *)(param_1 + 0xc);" (assignment_expression "*(undefined4 *)(this + iVar1) = *(undefined4 *)(param_1 + 0xc)" (pointer_expression "*(undefined4 *)(this + iVar1)" * (cast_expression "(undefined4 *)(this + iVar1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + iVar1)" ( (binary_expression "this + iVar1" identifier + identifier) )))) = (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(this + 4) = 0;" (assignment_expression "*(undefined4 *)(this + 4) = 0" (pointer_expression "*(undefined4 *)(this + 4)" * (cast_expression "(undefined4 *)(this + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 4)" ( (binary_expression "this + 4" identifier + number_literal) )))) = number_literal) ;) (labeled_statement "wios::init((wios *)(this + *(int *)(iVar2 + -0xc)),(wstreambuf *)0x0);" statement_identifier : (ERROR ":" :) (expression_statement "init((wios *)(this + *(int *)(iVar2 + -0xc)),(wstreambuf *)0x0);" (call_expression "init((wios *)(this + *(int *)(iVar2 + -0xc)),(wstreambuf *)0x0)" identifier (argument_list "((wios *)(this + *(int *)(iVar2 + -0xc)),(wstreambuf *)0x0)" ( (cast_expression "(wios *)(this + *(int *)(iVar2 + -0xc))" ( (type_descriptor "wios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(int *)(iVar2 + -0xc))" ( (binary_expression "this + *(int *)(iVar2 + -0xc)" identifier + (pointer_expression "*(int *)(iVar2 + -0xc)" * (cast_expression "(int *)(iVar2 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) ))))) ))) , (cast_expression "(wstreambuf *)0x0" ( (type_descriptor "wstreambuf *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;)) (expression_statement "iVar2 = *(int *)(param_1 + 0x10);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x10)" identifier = (pointer_expression "*(int *)(param_1 + 0x10)" * (cast_expression "(int *)(param_1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(this + 8) = iVar2;" (assignment_expression "*(int *)(this + 8) = iVar2" (pointer_expression "*(int *)(this + 8)" * (cast_expression "(int *)(this + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar2 = *(int *)(iVar2 + -0xc);" (assignment_expression "iVar2 = *(int *)(iVar2 + -0xc)" identifier = (pointer_expression "*(int *)(iVar2 + -0xc)" * (cast_expression "(int *)(iVar2 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(this + iVar2 + 8) = *(undefined4 *)(param_1 + 0x14);" (assignment_expression "*(undefined4 *)(this + iVar2 + 8) = *(undefined4 *)(param_1 + 0x14)" (pointer_expression "*(undefined4 *)(this + iVar2 + 8)" * (cast_expression "(undefined4 *)(this + iVar2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + iVar2 + 8)" ( (binary_expression "this + iVar2 + 8" (binary_expression "this + iVar2" identifier + identifier) + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) comment (labeled_statement "wios::init((wios *)(this + iVar2 + 8),(wstreambuf *)0x0);" statement_identifier : (ERROR ":" :) (expression_statement "init((wios *)(this + iVar2 + 8),(wstreambuf *)0x0);" (call_expression "init((wios *)(this + iVar2 + 8),(wstreambuf *)0x0)" identifier (argument_list "((wios *)(this + iVar2 + 8),(wstreambuf *)0x0)" ( (cast_expression "(wios *)(this + iVar2 + 8)" ( (type_descriptor "wios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + iVar2 + 8)" ( (binary_expression "this + iVar2 + 8" (binary_expression "this + iVar2" identifier + identifier) + number_literal) ))) , (cast_expression "(wstreambuf *)0x0" ( (type_descriptor "wstreambuf *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;)) (expression_statement "iVar2 = *(int *)(param_1 + 4);" (assignment_expression "iVar2 = *(int *)(param_1 + 4)" identifier = (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "*(int *)this = iVar2;" (assignment_expression "*(int *)this = iVar2" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*(undefined4 *)(this + *(int *)(iVar2 + -0xc)) = *(undefined4 *)(param_1 + 0x18);" (assignment_expression "*(undefined4 *)(this + *(int *)(iVar2 + -0xc)) = *(undefined4 *)(param_1 + 0x18)" (pointer_expression "*(undefined4 *)(this + *(int *)(iVar2 + -0xc))" * (cast_expression "(undefined4 *)(this + *(int *)(iVar2 + -0xc))" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(int *)(iVar2 + -0xc))" ( (binary_expression "this + *(int *)(iVar2 + -0xc)" identifier + (pointer_expression "*(int *)(iVar2 + -0xc)" * (cast_expression "(int *)(iVar2 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) ))))) )))) = (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(this + 8) = *(undefined4 *)(param_1 + 0x1c);" (assignment_expression "*(undefined4 *)(this + 8) = *(undefined4 *)(param_1 + 0x1c)" (pointer_expression "*(undefined4 *)(this + 8)" * (cast_expression "(undefined4 *)(this + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_1 + 0x1c)" * (cast_expression "(undefined4 *)(param_1 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1c)" ( (binary_expression "param_1 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = *(int *)param_1;" (assignment_expression "iVar2 = *(int *)param_1" identifier = (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*(int *)this = iVar2;" (assignment_expression "*(int *)this = iVar2" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = identifier) ;) (expression_statement "*(undefined4 *)(this + *(int *)(iVar2 + -0xc)) = *(undefined4 *)(param_1 + 0x20);" (assignment_expression "*(undefined4 *)(this + *(int *)(iVar2 + -0xc)) = *(undefined4 *)(param_1 + 0x20)" (pointer_expression "*(undefined4 *)(this + *(int *)(iVar2 + -0xc))" * (cast_expression "(undefined4 *)(this + *(int *)(iVar2 + -0xc))" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(int *)(iVar2 + -0xc))" ( (binary_expression "this + *(int *)(iVar2 + -0xc)" identifier + (pointer_expression "*(int *)(iVar2 + -0xc)" * (cast_expression "(int *)(iVar2 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) ))))) )))) = (pointer_expression "*(undefined4 *)(param_1 + 0x20)" * (cast_expression "(undefined4 *)(param_1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(this + 8) = *(undefined4 *)(param_1 + 0x24);" (assignment_expression "*(undefined4 *)(this + 8) = *(undefined4 *)(param_1 + 0x24)" (pointer_expression "*(undefined4 *)(this + 8)" * (cast_expression "(undefined4 *)(this + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_1 + 0x24)" * (cast_expression "(undefined4 *)(param_1 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) ;) (expression_statement "this_00 = (wfilebuf *)(this + 0xc);" (assignment_expression "this_00 = (wfilebuf *)(this + 0xc)" identifier = (cast_expression "(wfilebuf *)(this + 0xc)" ( (type_descriptor "wfilebuf *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0xc)" ( (binary_expression "this + 0xc" identifier + number_literal) )))) ;) 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 + *(int *)(*(int *)this + -0xc)),(wstreambuf *)this_00);" statement_identifier : (ERROR ":" :) (expression_statement "init((wios *)(this + *(int *)(*(int *)this + -0xc)),(wstreambuf *)this_00);" (call_expression "init((wios *)(this + *(int *)(*(int *)this + -0xc)),(wstreambuf *)this_00)" identifier (argument_list "((wios *)(this + *(int *)(*(int *)this + -0xc)),(wstreambuf *)this_00)" ( (cast_expression "(wios *)(this + *(int *)(*(int *)this + -0xc))" ( (type_descriptor "wios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(int *)(*(int *)this + -0xc))" ( (binary_expression "this + *(int *)(*(int *)this + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)this + -0xc)" * (cast_expression "(int *)(*(int *)this + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -0xc)" ( (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ))) , (cast_expression "(wstreambuf *)this_00" ( (type_descriptor "wstreambuf *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;)) (ERROR "iVar2 = wfilebuf::" (assignment_expression "iVar2 = wfilebuf" identifier = identifier) : :) (expression_statement "open(this_00,*(char **)param_2,in_stack_00000010);" (call_expression "open(this_00,*(char **)param_2,in_stack_00000010)" identifier (argument_list "(this_00,*(char **)param_2,in_stack_00000010)" ( identifier , (pointer_expression "*(char **)param_2" * (cast_expression "(char **)param_2" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , identifier ))) ;) (expression_statement "this_01 = (wios *)(this + *(int *)(*(int *)this + -0xc));" (assignment_expression "this_01 = (wios *)(this + *(int *)(*(int *)this + -0xc))" identifier = (cast_expression "(wios *)(this + *(int *)(*(int *)this + -0xc))" ( (type_descriptor "wios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + *(int *)(*(int *)this + -0xc))" ( (binary_expression "this + *(int *)(*(int *)this + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)this + -0xc)" * (cast_expression "(int *)(*(int *)this + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)this + -0xc)" ( (binary_expression "*(int *)this + -0xc" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )))) ;) (if_statement "if (iVar2 != 0) {\n    wios::clear(this_01,_S_goodbit);\n    return;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    wios::clear(this_01,_S_goodbit);\n    return;\n  }" { (labeled_statement "wios::clear(this_01,_S_goodbit);" statement_identifier : (ERROR ":" :) (expression_statement "clear(this_01,_S_goodbit);" (call_expression "clear(this_01,_S_goodbit)" identifier (argument_list "(this_01,_S_goodbit)" ( identifier , identifier ))) ;)) (return_statement "return;" return ;) })) (labeled_statement "wios::clear(this_01,*(_Ios_Iostate *)(this_01 + 0x14) | _S_failbit);" statement_identifier : (ERROR ":" :) (expression_statement "clear(this_01,*(_Ios_Iostate *)(this_01 + 0x14) | _S_failbit);" (call_expression "clear(this_01,*(_Ios_Iostate *)(this_01 + 0x14) | _S_failbit)" identifier (argument_list "(this_01,*(_Ios_Iostate *)(this_01 + 0x14) | _S_failbit)" ( identifier , (binary_expression "*(_Ios_Iostate *)(this_01 + 0x14) | _S_failbit" (pointer_expression "*(_Ios_Iostate *)(this_01 + 0x14)" * (cast_expression "(_Ios_Iostate *)(this_01 + 0x14)" ( (type_descriptor "_Ios_Iostate *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this_01 + 0x14)" ( (binary_expression "this_01 + 0x14" identifier + number_literal) )))) | identifier) ))) ;)) (return_statement "return;" return ;) })))
(translation_unit "void FUN_001b4b50(int *param_1,int *param_2,undefined4 *param_3,undefined4 param_4)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = param_2[2];\n  iVar3 = *(int *)(iVar2 + -0xc);\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + iVar3) = param_2[3];\n  param_1[1] = 0;\n  FUN_001ab7c0(*(int *)(iVar2 + -0xc) + (int)param_1,0);\n  iVar2 = param_2[4];\n  param_1[2] = iVar2;\n  piVar1 = (int *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8);\n  *piVar1 = param_2[5];\n                    \n  FUN_001ab7c0(piVar1,0);\n  iVar2 = param_2[1];\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[6];\n  param_1[2] = param_2[7];\n  iVar2 = *param_2;\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[8];\n  param_1[2] = param_2[9];\n  piVar1 = param_1 + 3;\n                    \n  FUN_001aec40(piVar1);\n                    \n  FUN_001ab7c0(*(int *)(*param_1 + -0xc) + (int)param_1,piVar1);\n  iVar2 = FUN_001b3ed0(piVar1,*param_3,param_4);\n  iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  if (iVar2 != 0) {\n    FUN_001ab090(iVar3,0);\n    return;\n  }\n  FUN_001ab090(iVar3,*(uint *)(iVar3 + 0x14) | 4);\n  return;\n}\n\n" (function_definition "void FUN_001b4b50(int *param_1,int *param_2,undefined4 *param_3,undefined4 param_4)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = param_2[2];\n  iVar3 = *(int *)(iVar2 + -0xc);\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + iVar3) = param_2[3];\n  param_1[1] = 0;\n  FUN_001ab7c0(*(int *)(iVar2 + -0xc) + (int)param_1,0);\n  iVar2 = param_2[4];\n  param_1[2] = iVar2;\n  piVar1 = (int *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8);\n  *piVar1 = param_2[5];\n                    \n  FUN_001ab7c0(piVar1,0);\n  iVar2 = param_2[1];\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[6];\n  param_1[2] = param_2[7];\n  iVar2 = *param_2;\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[8];\n  param_1[2] = param_2[9];\n  piVar1 = param_1 + 3;\n                    \n  FUN_001aec40(piVar1);\n                    \n  FUN_001ab7c0(*(int *)(*param_1 + -0xc) + (int)param_1,piVar1);\n  iVar2 = FUN_001b3ed0(piVar1,*param_3,param_4);\n  iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  if (iVar2 != 0) {\n    FUN_001ab090(iVar3,0);\n    return;\n  }\n  FUN_001ab090(iVar3,*(uint *)(iVar3 + 0x14) | 4);\n  return;\n}" primitive_type (function_declarator "FUN_001b4b50(int *param_1,int *param_2,undefined4 *param_3,undefined4 param_4)" identifier (parameter_list "(int *param_1,int *param_2,undefined4 *param_3,undefined4 param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = param_2[2];\n  iVar3 = *(int *)(iVar2 + -0xc);\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + iVar3) = param_2[3];\n  param_1[1] = 0;\n  FUN_001ab7c0(*(int *)(iVar2 + -0xc) + (int)param_1,0);\n  iVar2 = param_2[4];\n  param_1[2] = iVar2;\n  piVar1 = (int *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8);\n  *piVar1 = param_2[5];\n                    \n  FUN_001ab7c0(piVar1,0);\n  iVar2 = param_2[1];\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[6];\n  param_1[2] = param_2[7];\n  iVar2 = *param_2;\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[8];\n  param_1[2] = param_2[9];\n  piVar1 = param_1 + 3;\n                    \n  FUN_001aec40(piVar1);\n                    \n  FUN_001ab7c0(*(int *)(*param_1 + -0xc) + (int)param_1,piVar1);\n  iVar2 = FUN_001b3ed0(piVar1,*param_3,param_4);\n  iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  if (iVar2 != 0) {\n    FUN_001ab090(iVar3,0);\n    return;\n  }\n  FUN_001ab090(iVar3,*(uint *)(iVar3 + 0x14) | 4);\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar2 = param_2[2];" (assignment_expression "iVar2 = param_2[2]" identifier = (subscript_expression "param_2[2]" identifier [ number_literal ])) ;) (expression_statement "iVar3 = *(int *)(iVar2 + -0xc);" (assignment_expression "iVar3 = *(int *)(iVar2 + -0xc)" identifier = (pointer_expression "*(int *)(iVar2 + -0xc)" * (cast_expression "(int *)(iVar2 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) ))))) ;) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "*(int *)((int)param_1 + iVar3) = param_2[3];" (assignment_expression "*(int *)((int)param_1 + iVar3) = param_2[3]" (pointer_expression "*(int *)((int)param_1 + iVar3)" * (cast_expression "(int *)((int)param_1 + iVar3)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + iVar3)" ( (binary_expression "(int)param_1 + iVar3" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = (subscript_expression "param_2[3]" identifier [ number_literal ])) ;) (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_001ab7c0(*(int *)(iVar2 + -0xc) + (int)param_1,0);" (call_expression "FUN_001ab7c0(*(int *)(iVar2 + -0xc) + (int)param_1,0)" identifier (argument_list "(*(int *)(iVar2 + -0xc) + (int)param_1,0)" ( (binary_expression "*(int *)(iVar2 + -0xc) + (int)param_1" (pointer_expression "*(int *)(iVar2 + -0xc)" * (cast_expression "(int *)(iVar2 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) )))) + (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) , number_literal ))) ;) (expression_statement "iVar2 = param_2[4];" (assignment_expression "iVar2 = param_2[4]" identifier = (subscript_expression "param_2[4]" identifier [ number_literal ])) ;) (expression_statement "param_1[2] = iVar2;" (assignment_expression "param_1[2] = iVar2" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar1 = (int *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8);" (assignment_expression "piVar1 = (int *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8)" identifier = (cast_expression "(int *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(iVar2 + -0xc) + 8)" ( (binary_expression "(int)param_1 + *(int *)(iVar2 + -0xc) + 8" (binary_expression "(int)param_1 + *(int *)(iVar2 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(iVar2 + -0xc)" * (cast_expression "(int *)(iVar2 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) ))))) + number_literal) )))) ;) (expression_statement "*piVar1 = param_2[5];" (assignment_expression "*piVar1 = param_2[5]" (pointer_expression "*piVar1" * identifier) = (subscript_expression "param_2[5]" identifier [ number_literal ])) ;) (expression_statement "FUN_001ab7c0(piVar1,0);" (call_expression "FUN_001ab7c0(piVar1,0)" identifier (argument_list "(piVar1,0)" ( identifier , number_literal ))) ;) (expression_statement "iVar2 = param_2[1];" (assignment_expression "iVar2 = param_2[1]" identifier = (subscript_expression "param_2[1]" identifier [ number_literal ])) ;) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[6];" (assignment_expression "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[6]" (pointer_expression "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc))" * (cast_expression "(int *)((int)param_1 + *(int *)(iVar2 + -0xc))" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(iVar2 + -0xc))" ( (binary_expression "(int)param_1 + *(int *)(iVar2 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(iVar2 + -0xc)" * (cast_expression "(int *)(iVar2 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) ))))) )))) = (subscript_expression "param_2[6]" identifier [ number_literal ])) ;) (expression_statement "param_1[2] = param_2[7];" (assignment_expression "param_1[2] = param_2[7]" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (subscript_expression "param_2[7]" identifier [ number_literal ])) ;) (expression_statement "iVar2 = *param_2;" (assignment_expression "iVar2 = *param_2" identifier = (pointer_expression "*param_2" * identifier)) ;) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[8];" (assignment_expression "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[8]" (pointer_expression "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc))" * (cast_expression "(int *)((int)param_1 + *(int *)(iVar2 + -0xc))" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + *(int *)(iVar2 + -0xc))" ( (binary_expression "(int)param_1 + *(int *)(iVar2 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (pointer_expression "*(int *)(iVar2 + -0xc)" * (cast_expression "(int *)(iVar2 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + -0xc)" ( (binary_expression "iVar2 + -0xc" identifier + number_literal) ))))) )))) = (subscript_expression "param_2[8]" identifier [ number_literal ])) ;) (expression_statement "param_1[2] = param_2[9];" (assignment_expression "param_1[2] = param_2[9]" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (subscript_expression "param_2[9]" identifier [ number_literal ])) ;) (expression_statement "piVar1 = param_1 + 3;" (assignment_expression "piVar1 = param_1 + 3" identifier = (binary_expression "param_1 + 3" identifier + number_literal)) ;) (expression_statement "FUN_001aec40(piVar1);" (call_expression "FUN_001aec40(piVar1)" identifier (argument_list "(piVar1)" ( identifier ))) ;) (expression_statement "FUN_001ab7c0(*(int *)(*param_1 + -0xc) + (int)param_1,piVar1);" (call_expression "FUN_001ab7c0(*(int *)(*param_1 + -0xc) + (int)param_1,piVar1)" identifier (argument_list "(*(int *)(*param_1 + -0xc) + (int)param_1,piVar1)" ( (binary_expression "*(int *)(*param_1 + -0xc) + (int)param_1" (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) , identifier ))) ;) (expression_statement "iVar2 = FUN_001b3ed0(piVar1,*param_3,param_4);" (assignment_expression "iVar2 = FUN_001b3ed0(piVar1,*param_3,param_4)" identifier = (call_expression "FUN_001b3ed0(piVar1,*param_3,param_4)" identifier (argument_list "(piVar1,*param_3,param_4)" ( identifier , (pointer_expression "*param_3" * identifier) , identifier )))) ;) (expression_statement "iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;" (assignment_expression "iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1" identifier = (binary_expression "*(int *)(*param_1 + -0xc) + (int)param_1" (pointer_expression "*(int *)(*param_1 + -0xc)" * (cast_expression "(int *)(*param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + -0xc)" ( (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" * identifier) + number_literal) )))) + (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier))) ;) (if_statement "if (iVar2 != 0) {\n    FUN_001ab090(iVar3,0);\n    return;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_001ab090(iVar3,0);\n    return;\n  }" { (expression_statement "FUN_001ab090(iVar3,0);" (call_expression "FUN_001ab090(iVar3,0)" identifier (argument_list "(iVar3,0)" ( identifier , number_literal ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_001ab090(iVar3,*(uint *)(iVar3 + 0x14) | 4);" (call_expression "FUN_001ab090(iVar3,*(uint *)(iVar3 + 0x14) | 4)" identifier (argument_list "(iVar3,*(uint *)(iVar3 + 0x14) | 4)" ( identifier , (binary_expression "*(uint *)(iVar3 + 0x14) | 4" (pointer_expression "*(uint *)(iVar3 + 0x14)" * (cast_expression "(uint *)(iVar3 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 0x14" identifier + number_literal) )))) | number_literal) ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) )))) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (cast_expression ( (type_descriptor TYPE) ) IDENT)) , LIT ))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )))) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )))) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) + (cast_expression ( (type_descriptor TYPE) ) IDENT)) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression * IDENT) , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) + (cast_expression ( (type_descriptor TYPE) ) 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_001b4b50(int *param_1,int *param_2,undefined4 *param_3,undefined4 param_4)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = param_2[2];\n  iVar3 = *(int *)(iVar2 + -0xc);\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + iVar3) = param_2[3];\n  param_1[1] = 0;\n  FUN_001ab7c0(*(int *)(iVar2 + -0xc) + (int)param_1,0);\n  iVar2 = param_2[4];\n  param_1[2] = iVar2;\n  piVar1 = (int *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8);\n  *piVar1 = param_2[5];\n                    \n  FUN_001ab7c0(piVar1,0);\n  iVar2 = param_2[1];\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[6];\n  param_1[2] = param_2[7];\n  iVar2 = *param_2;\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[8];\n  param_1[2] = param_2[9];\n  piVar1 = param_1 + 3;\n                    \n  FUN_001aec40(piVar1);\n                    \n  FUN_001ab7c0(*(int *)(*param_1 + -0xc) + (int)param_1,piVar1);\n  iVar2 = FUN_001b3ed0(piVar1,*param_3,param_4);\n  iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  if (iVar2 != 0) {\n    FUN_001ab090(iVar3,0);\n    return;\n  }\n  FUN_001ab090(iVar3,*(uint *)(iVar3 + 0x14) | 4);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001b4b50(int *param_1,int *param_2,undefined4 *param_3,undefined4 param_4)" (identifier "FUN_001b4b50") (parameter_list "(int *param_1,int *param_2,undefined4 *param_3,undefined4 param_4)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined4 *param_3" (type_identifier "undefined4") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  \n  iVar2 = param_2[2];\n  iVar3 = *(int *)(iVar2 + -0xc);\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + iVar3) = param_2[3];\n  param_1[1] = 0;\n  FUN_001ab7c0(*(int *)(iVar2 + -0xc) + (int)param_1,0);\n  iVar2 = param_2[4];\n  param_1[2] = iVar2;\n  piVar1 = (int *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8);\n  *piVar1 = param_2[5];\n                    \n  FUN_001ab7c0(piVar1,0);\n  iVar2 = param_2[1];\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[6];\n  param_1[2] = param_2[7];\n  iVar2 = *param_2;\n  *param_1 = iVar2;\n  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[8];\n  param_1[2] = param_2[9];\n  piVar1 = param_1 + 3;\n                    \n  FUN_001aec40(piVar1);\n                    \n  FUN_001ab7c0(*(int *)(*param_1 + -0xc) + (int)param_1,piVar1);\n  iVar2 = FUN_001b3ed0(piVar1,*param_3,param_4);\n  iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;\n  if (iVar2 != 0) {\n    FUN_001ab090(iVar3,0);\n    return;\n  }\n  FUN_001ab090(iVar3,*(uint *)(iVar3 + 0x14) | 4);\n  return;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (expression_statement "iVar2 = param_2[2];" (assignment_expression "iVar2 = param_2[2]" (identifier "iVar2") (= "=") (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "iVar3 = *(int *)(iVar2 + -0xc);" (assignment_expression "iVar3 = *(int *)(iVar2 + -0xc)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(iVar2 + -0xc)" (* "*") (cast_expression "(int *)(iVar2 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + -0xc)" (( "(") (binary_expression "iVar2 + -0xc" (identifier "iVar2") (+ "+") (number_literal "-0xc")) () ")"))))) (; ";")) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "*(int *)((int)param_1 + iVar3) = param_2[3];" (assignment_expression "*(int *)((int)param_1 + iVar3) = param_2[3]" (pointer_expression "*(int *)((int)param_1 + iVar3)" (* "*") (cast_expression "(int *)((int)param_1 + iVar3)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + iVar3)" (( "(") (binary_expression "(int)param_1 + iVar3" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (identifier "iVar3")) () ")")))) (= "=") (subscript_expression "param_2[3]" (identifier "param_2") ([ "[") (number_literal "3") (] "]"))) (; ";")) (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_001ab7c0(*(int *)(iVar2 + -0xc) + (int)param_1,0);" (call_expression "FUN_001ab7c0(*(int *)(iVar2 + -0xc) + (int)param_1,0)" (identifier "FUN_001ab7c0") (argument_list "(*(int *)(iVar2 + -0xc) + (int)param_1,0)" (( "(") (binary_expression "*(int *)(iVar2 + -0xc) + (int)param_1" (pointer_expression "*(int *)(iVar2 + -0xc)" (* "*") (cast_expression "(int *)(iVar2 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + -0xc)" (( "(") (binary_expression "iVar2 + -0xc" (identifier "iVar2") (+ "+") (number_literal "-0xc")) () ")")))) (+ "+") (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1"))) (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "iVar2 = param_2[4];" (assignment_expression "iVar2 = param_2[4]" (identifier "iVar2") (= "=") (subscript_expression "param_2[4]" (identifier "param_2") ([ "[") (number_literal "4") (] "]"))) (; ";")) (expression_statement "param_1[2] = iVar2;" (assignment_expression "param_1[2] = iVar2" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "piVar1 = (int *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8);" (assignment_expression "piVar1 = (int *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8)" (identifier "piVar1") (= "=") (cast_expression "(int *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + *(int *)(iVar2 + -0xc) + 8)" (( "(") (binary_expression "(int)param_1 + *(int *)(iVar2 + -0xc) + 8" (binary_expression "(int)param_1 + *(int *)(iVar2 + -0xc)" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (pointer_expression "*(int *)(iVar2 + -0xc)" (* "*") (cast_expression "(int *)(iVar2 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + -0xc)" (( "(") (binary_expression "iVar2 + -0xc" (identifier "iVar2") (+ "+") (number_literal "-0xc")) () ")"))))) (+ "+") (number_literal "8")) () ")")))) (; ";")) (expression_statement "*piVar1 = param_2[5];" (assignment_expression "*piVar1 = param_2[5]" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (subscript_expression "param_2[5]" (identifier "param_2") ([ "[") (number_literal "5") (] "]"))) (; ";")) (expression_statement "FUN_001ab7c0(piVar1,0);" (call_expression "FUN_001ab7c0(piVar1,0)" (identifier "FUN_001ab7c0") (argument_list "(piVar1,0)" (( "(") (identifier "piVar1") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "iVar2 = param_2[1];" (assignment_expression "iVar2 = param_2[1]" (identifier "iVar2") (= "=") (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[6];" (assignment_expression "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[6]" (pointer_expression "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc))" (* "*") (cast_expression "(int *)((int)param_1 + *(int *)(iVar2 + -0xc))" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + *(int *)(iVar2 + -0xc))" (( "(") (binary_expression "(int)param_1 + *(int *)(iVar2 + -0xc)" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (pointer_expression "*(int *)(iVar2 + -0xc)" (* "*") (cast_expression "(int *)(iVar2 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + -0xc)" (( "(") (binary_expression "iVar2 + -0xc" (identifier "iVar2") (+ "+") (number_literal "-0xc")) () ")"))))) () ")")))) (= "=") (subscript_expression "param_2[6]" (identifier "param_2") ([ "[") (number_literal "6") (] "]"))) (; ";")) (expression_statement "param_1[2] = param_2[7];" (assignment_expression "param_1[2] = param_2[7]" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (subscript_expression "param_2[7]" (identifier "param_2") ([ "[") (number_literal "7") (] "]"))) (; ";")) (expression_statement "iVar2 = *param_2;" (assignment_expression "iVar2 = *param_2" (identifier "iVar2") (= "=") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (; ";")) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[8];" (assignment_expression "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[8]" (pointer_expression "*(int *)((int)param_1 + *(int *)(iVar2 + -0xc))" (* "*") (cast_expression "(int *)((int)param_1 + *(int *)(iVar2 + -0xc))" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + *(int *)(iVar2 + -0xc))" (( "(") (binary_expression "(int)param_1 + *(int *)(iVar2 + -0xc)" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (pointer_expression "*(int *)(iVar2 + -0xc)" (* "*") (cast_expression "(int *)(iVar2 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + -0xc)" (( "(") (binary_expression "iVar2 + -0xc" (identifier "iVar2") (+ "+") (number_literal "-0xc")) () ")"))))) () ")")))) (= "=") (subscript_expression "param_2[8]" (identifier "param_2") ([ "[") (number_literal "8") (] "]"))) (; ";")) (expression_statement "param_1[2] = param_2[9];" (assignment_expression "param_1[2] = param_2[9]" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (subscript_expression "param_2[9]" (identifier "param_2") ([ "[") (number_literal "9") (] "]"))) (; ";")) (expression_statement "piVar1 = param_1 + 3;" (assignment_expression "piVar1 = param_1 + 3" (identifier "piVar1") (= "=") (binary_expression "param_1 + 3" (identifier "param_1") (+ "+") (number_literal "3"))) (; ";")) (expression_statement "FUN_001aec40(piVar1);" (call_expression "FUN_001aec40(piVar1)" (identifier "FUN_001aec40") (argument_list "(piVar1)" (( "(") (identifier "piVar1") () ")"))) (; ";")) (expression_statement "FUN_001ab7c0(*(int *)(*param_1 + -0xc) + (int)param_1,piVar1);" (call_expression "FUN_001ab7c0(*(int *)(*param_1 + -0xc) + (int)param_1,piVar1)" (identifier "FUN_001ab7c0") (argument_list "(*(int *)(*param_1 + -0xc) + (int)param_1,piVar1)" (( "(") (binary_expression "*(int *)(*param_1 + -0xc) + (int)param_1" (pointer_expression "*(int *)(*param_1 + -0xc)" (* "*") (cast_expression "(int *)(*param_1 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -0xc)" (( "(") (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0xc")) () ")")))) (+ "+") (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1"))) (, ",") (identifier "piVar1") () ")"))) (; ";")) (expression_statement "iVar2 = FUN_001b3ed0(piVar1,*param_3,param_4);" (assignment_expression "iVar2 = FUN_001b3ed0(piVar1,*param_3,param_4)" (identifier "iVar2") (= "=") (call_expression "FUN_001b3ed0(piVar1,*param_3,param_4)" (identifier "FUN_001b3ed0") (argument_list "(piVar1,*param_3,param_4)" (( "(") (identifier "piVar1") (, ",") (pointer_expression "*param_3" (* "*") (identifier "param_3")) (, ",") (identifier "param_4") () ")")))) (; ";")) (expression_statement "iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;" (assignment_expression "iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1" (identifier "iVar3") (= "=") (binary_expression "*(int *)(*param_1 + -0xc) + (int)param_1" (pointer_expression "*(int *)(*param_1 + -0xc)" (* "*") (cast_expression "(int *)(*param_1 + -0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + -0xc)" (( "(") (binary_expression "*param_1 + -0xc" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-0xc")) () ")")))) (+ "+") (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")))) (; ";")) (if_statement "if (iVar2 != 0) {\n    FUN_001ab090(iVar3,0);\n    return;\n  }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_001ab090(iVar3,0);\n    return;\n  }" ({ "{") (expression_statement "FUN_001ab090(iVar3,0);" (call_expression "FUN_001ab090(iVar3,0)" (identifier "FUN_001ab090") (argument_list "(iVar3,0)" (( "(") (identifier "iVar3") (, ",") (number_literal "0") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_001ab090(iVar3,*(uint *)(iVar3 + 0x14) | 4);" (call_expression "FUN_001ab090(iVar3,*(uint *)(iVar3 + 0x14) | 4)" (identifier "FUN_001ab090") (argument_list "(iVar3,*(uint *)(iVar3 + 0x14) | 4)" (( "(") (identifier "iVar3") (, ",") (binary_expression "*(uint *)(iVar3 + 0x14) | 4" (pointer_expression "*(uint *)(iVar3 + 0x14)" (* "*") (cast_expression "(uint *)(iVar3 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x14)" (( "(") (binary_expression "iVar3 + 0x14" (identifier "iVar3") (+ "+") (number_literal "0x14")) () ")")))) (| "|") (number_literal "4")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::wfstream::wfstream(std::string const&, std::_Ios_Openmode) */

void __thiscall std::function_1::function_1(function_1 *var_3,type_1 *var_1,type_2 param_2)

{
  type_3 *this_00;
  int var_4;
  int var_2;
  type_4 *var_8;
  type_2 in_stack_00000010;
  
  var_2 = *(int *)(var_1 + 8);
  var_4 = *(int *)(var_2 + -0xc);
  *(int *)var_3 = var_2;
  *(type_5 *)(var_3 + var_4) = *(type_5 *)(var_1 + 0xc);
  *(type_5 *)(var_3 + 4) = 0;
  wios::var_5((type_4 *)(var_3 + *(int *)(var_2 + -0xc)),(type_6 *)0x0);
  var_2 = *(int *)(var_1 + 0x10);
  *(int *)(var_3 + 8) = var_2;
  var_2 = *(int *)(var_2 + -0xc);
  *(type_5 *)(var_3 + var_2 + 8) = *(type_5 *)(var_1 + 0x14);
                    /* try { // try from 001b4ba9 to 001b4bad has its CatchHandler @ 001b4c62 */
  wios::var_5((type_4 *)(var_3 + var_2 + 8),(type_6 *)0x0);
  var_2 = *(int *)(var_1 + 4);
  *(int *)var_3 = var_2;
  *(type_5 *)(var_3 + *(int *)(var_2 + -0xc)) = *(type_5 *)(var_1 + 0x18);
  *(type_5 *)(var_3 + 8) = *(type_5 *)(var_1 + 0x1c);
  var_2 = *(int *)var_1;
  *(int *)var_3 = var_2;
  *(type_5 *)(var_3 + *(int *)(var_2 + -0xc)) = *(type_5 *)(var_1 + 0x20);
  *(type_5 *)(var_3 + 8) = *(type_5 *)(var_1 + 0x24);
  this_00 = (type_3 *)(var_3 + 0xc);
                    /* try { // try from 001b4be1 to 001b4be5 has its CatchHandler @ 001b4c60 */
  wfilebuf::type_3(this_00);
                    /* try { // try from 001b4bf6 to 001b4c52 has its CatchHandler @ 001b4c5e */
  wios::var_5((type_4 *)(var_3 + *(int *)(*(int *)var_3 + -0xc)),(type_6 *)this_00);
  var_2 = type_3::var_6(this_00,*(char **)param_2,in_stack_00000010);
  var_8 = (type_4 *)(var_3 + *(int *)(*(int *)var_3 + -0xc));
  if (var_2 != 0) {
    wios::var_7(var_8,_S_goodbit);
    return;
  }
  wios::var_7(var_8,*(type_7 *)(var_8 + 0x14) | var_9);
  return;
}


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

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void MASKED(int *param_1,int *param_2,undefined4 *param_3,undefined4 param_4)

{
  int *piVar1;
  int iVar2;
  int iVar3;
  
  iVar2 = param_2[2];
  iVar3 = *(int *)(iVar2 + -0xc);
  *param_1 = iVar2;
  *(int *)((int)param_1 + iVar3) = param_2[3];
  param_1[1] = 0;
  FUN_001ab7c0(*(int *)(iVar2 + -0xc) + (int)param_1,0);
  iVar2 = param_2[4];
  param_1[2] = iVar2;
  piVar1 = (int *)((int)param_1 + *(int *)(iVar2 + -0xc) + 8);
  *piVar1 = param_2[5];
                    /* try { // try from 001b4ba9 to 001b4bad has its CatchHandler @ 001b4c62 */
  FUN_001ab7c0(piVar1,0);
  iVar2 = param_2[1];
  *param_1 = iVar2;
  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[6];
  param_1[2] = param_2[7];
  iVar2 = *param_2;
  *param_1 = iVar2;
  *(int *)((int)param_1 + *(int *)(iVar2 + -0xc)) = param_2[8];
  param_1[2] = param_2[9];
  piVar1 = param_1 + 3;
                    /* try { // try from 001b4be1 to 001b4be5 has its CatchHandler @ 001b4c60 */
  FUN_001aec40(piVar1);
                    /* try { // try from 001b4bf6 to 001b4c52 has its CatchHandler @ 001b4c5e */
  FUN_001ab7c0(*(int *)(*param_1 + -0xc) + (int)param_1,piVar1);
  iVar2 = FUN_001b3ed0(piVar1,*param_3,param_4);
  iVar3 = *(int *)(*param_1 + -0xc) + (int)param_1;
  if (iVar2 != 0) {
    FUN_001ab090(iVar3,0);
    return;
  }
  FUN_001ab090(iVar3,*(uint *)(iVar3 + 0x14) | 4);
  return;
}

