
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::filebuf::open(char const*, std::_Ios_Openmode) */

filebuf * __thiscall std::filebuf::open(filebuf *this,char *param_1,_Ios_Openmode param_2)

{
  __basic_file<char> *this_00;
  undefined4 uVar1;
  char cVar2;
  uint local_2c [6];
  undefined4 uStack_14;
  
  uStack_14 = 0x217959;
  this_00 = (__basic_file<char> *)(this + 0x38);
  cVar2 = __basic_file<char>::is_open(this_00);
  if (cVar2 == '\0') {
    __basic_file<char>::open((char *)this_00,(_Ios_Openmode)param_1,param_2);
    cVar2 = __basic_file<char>::is_open(this_00);
    if (cVar2 != '\0') {
      _M_allocate_internal_buffer(this);
      *(_Ios_Openmode *)(this + 0x40) = param_2;
      *(undefined2 *)(this + 0x65) = 0;
      uVar1 = *(undefined4 *)(this + 0x5c);
      *(undefined4 *)(this + 0x14) = 0;
      *(undefined4 *)(this + 4) = uVar1;
      *(undefined4 *)(this + 8) = uVar1;
      *(undefined4 *)(this + 0xc) = uVar1;
      *(undefined4 *)(this + 0x10) = 0;
      *(undefined4 *)(this + 0x18) = 0;
      *(undefined4 *)(this + 0x4c) = *(undefined4 *)(this + 0x44);
      *(undefined4 *)(this + 0x50) = *(undefined4 *)(this + 0x48);
      *(undefined4 *)(this + 0x54) = *(undefined4 *)(this + 0x44);
      *(undefined4 *)(this + 0x58) = *(undefined4 *)(this + 0x48);
      if (((param_2 & _S_ate) != ~(_S_ios_openmode_min|_S_ios_openmode_max)) &&
         ((**(code **)(*(int *)this + 0x10))(local_2c,this,0,0,2,param_2),
         (local_2c[0] & 0x1b4) == 0xffffffff)) {
        close(this);
        return (filebuf *)0x0;
      }
      return this;
    }
  }
  return (filebuf *)0x0;
}



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

int * FUN_00217950(int *param_1,undefined4 param_2,uint param_3)

{
  int *piVar1;
  int iVar2;
  char cVar3;
  uint local_2c [6];
  undefined4 uStack_14;
  
  uStack_14 = 0x217959;
  piVar1 = param_1 + 0xe;
  cVar3 = FUN_001e73e0(piVar1);
  if (cVar3 == '\0') {
    FUN_001e74f0(piVar1,param_2,param_3);
    cVar3 = FUN_001e73e0(piVar1);
    if (cVar3 != '\0') {
      FUN_00213b70(param_1);
      param_1[0x10] = param_3;
      *(undefined2 *)((int)param_1 + 0x65) = 0;
      iVar2 = param_1[0x17];
      param_1[5] = 0;
      param_1[1] = iVar2;
      param_1[2] = iVar2;
      param_1[3] = iVar2;
      param_1[4] = 0;
      param_1[6] = 0;
      param_1[0x13] = param_1[0x11];
      param_1[0x14] = param_1[0x12];
      param_1[0x15] = param_1[0x11];
      param_1[0x16] = param_1[0x12];
      if (((param_3 & 2) != 0) &&
         ((**(code **)(*param_1 + 0x10))(local_2c,param_1,0,0,2,param_3),
         (local_2c[0] & 0x1b4) == 0xffffffff)) {
        FUN_00216e90(param_1);
        return (int *)0x0;
      }
      return param_1;
    }
  }
  return (int *)0x0;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00035840
ADD EBX,0x1776a7
SUB ESP,0x28
MOV EDI,dword ptr [ESP + 0x3c]
MOV ESI,dword ptr [ESP + 0x44]
LEA EBP,[EDI + 0x38]
PUSH EBP
CALL 0x001e73e0
ADD ESP,0x10
TEST AL,AL
JNZ 0x00217a2c
PUSH 0x1b4
PUSH ESI
PUSH dword ptr [ESP + 0x3c]
PUSH EBP
CALL 0x001e74f0
MOV dword ptr [ESP],EBP
CALL 0x001e73e0
ADD ESP,0x10
TEST AL,AL
JZ 0x00217a2c
SUB ESP,0xc
PUSH EDI
CALL 0x00213b70
XOR EAX,EAX
MOV EDX,dword ptr [EDI + 0x48]
MOV dword ptr [EDI + 0x40],ESI
MOV word ptr [EDI + 0x65],AX
MOV EAX,dword ptr [EDI + 0x5c]
ADD ESP,0x10
MOV dword ptr [EDI + 0x14],0x0
MOV dword ptr [EDI + 0x4],EAX
MOV dword ptr [EDI + 0x8],EAX
MOV dword ptr [EDI + 0xc],EAX
MOV EAX,dword ptr [EDI + 0x44]
MOV dword ptr [EDI + 0x10],0x0
MOV dword ptr [EDI + 0x18],0x0
MOV dword ptr [EDI + 0x4c],EAX
MOV dword ptr [EDI + 0x50],EDX
MOV dword ptr [EDI + 0x54],EAX
MOV dword ptr [EDI + 0x58],EDX
TEST ESI,0x2
JZ 0x00217a13
MOV EAX,dword ptr [EDI]
MOV EDX,ESP
SUB ESP,0x8
PUSH ESI
PUSH 0x2
PUSH 0x0
PUSH 0x0
PUSH EDI
PUSH EDX
CALL dword ptr [EAX + 0x10]
ADD ESP,0x1c
MOV EAX,dword ptr [ESP + 0x4]
AND EAX,dword ptr [ESP]
CMP EAX,-0x1
JZ 0x00217a20
ADD ESP,0x1c
MOV EAX,EDI
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH EDI
CALL 0x00216e90
ADD ESP,0x10
ADD ESP,0x1c
XOR EAX,EAX
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\nint * FUN_00217950(int *param_1,undefined4 param_2,uint param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  char cVar3;\n  uint local_2c [6];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x217959;\n  piVar1 = param_1 + 0xe;\n  cVar3 = FUN_001e73e0(piVar1);\n  if (cVar3 == '\0') {\n    FUN_001e74f0(piVar1,param_2,param_3);\n    cVar3 = FUN_001e73e0(piVar1);\n    if (cVar3 != '\0') {\n      FUN_00213b70(param_1);\n      param_1[0x10] = param_3;\n      *(undefined2 *)((int)param_1 + 0x65) = 0;\n      iVar2 = param_1[0x17];\n      param_1[5] = 0;\n      param_1[1] = iVar2;\n      param_1[2] = iVar2;\n      param_1[3] = iVar2;\n      param_1[4] = 0;\n      param_1[6] = 0;\n      param_1[0x13] = param_1[0x11];\n      param_1[0x14] = param_1[0x12];\n      param_1[0x15] = param_1[0x11];\n      param_1[0x16] = param_1[0x12];\n      if (((param_3 & 2) != 0) &&\n         ((**(code **)(*param_1 + 0x10))(local_2c,param_1,0,0,2,param_3),\n         (local_2c[0] & 0x1b4) == 0xffffffff)) {\n        FUN_00216e90(param_1);\n        return (int *)0x0;\n      }\n      return param_1;\n    }\n  }\n  return (int *)0x0;\n}\n\n" comment (function_definition "int * FUN_00217950(int *param_1,undefined4 param_2,uint param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  char cVar3;\n  uint local_2c [6];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x217959;\n  piVar1 = param_1 + 0xe;\n  cVar3 = FUN_001e73e0(piVar1);\n  if (cVar3 == '\0') {\n    FUN_001e74f0(piVar1,param_2,param_3);\n    cVar3 = FUN_001e73e0(piVar1);\n    if (cVar3 != '\0') {\n      FUN_00213b70(param_1);\n      param_1[0x10] = param_3;\n      *(undefined2 *)((int)param_1 + 0x65) = 0;\n      iVar2 = param_1[0x17];\n      param_1[5] = 0;\n      param_1[1] = iVar2;\n      param_1[2] = iVar2;\n      param_1[3] = iVar2;\n      param_1[4] = 0;\n      param_1[6] = 0;\n      param_1[0x13] = param_1[0x11];\n      param_1[0x14] = param_1[0x12];\n      param_1[0x15] = param_1[0x11];\n      param_1[0x16] = param_1[0x12];\n      if (((param_3 & 2) != 0) &&\n         ((**(code **)(*param_1 + 0x10))(local_2c,param_1,0,0,2,param_3),\n         (local_2c[0] & 0x1b4) == 0xffffffff)) {\n        FUN_00216e90(param_1);\n        return (int *)0x0;\n      }\n      return param_1;\n    }\n  }\n  return (int *)0x0;\n}" primitive_type (pointer_declarator "* FUN_00217950(int *param_1,undefined4 param_2,uint param_3)" * (function_declarator "FUN_00217950(int *param_1,undefined4 param_2,uint param_3)" identifier (parameter_list "(int *param_1,undefined4 param_2,uint param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) )))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  char cVar3;\n  uint local_2c [6];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x217959;\n  piVar1 = param_1 + 0xe;\n  cVar3 = FUN_001e73e0(piVar1);\n  if (cVar3 == '\0') {\n    FUN_001e74f0(piVar1,param_2,param_3);\n    cVar3 = FUN_001e73e0(piVar1);\n    if (cVar3 != '\0') {\n      FUN_00213b70(param_1);\n      param_1[0x10] = param_3;\n      *(undefined2 *)((int)param_1 + 0x65) = 0;\n      iVar2 = param_1[0x17];\n      param_1[5] = 0;\n      param_1[1] = iVar2;\n      param_1[2] = iVar2;\n      param_1[3] = iVar2;\n      param_1[4] = 0;\n      param_1[6] = 0;\n      param_1[0x13] = param_1[0x11];\n      param_1[0x14] = param_1[0x12];\n      param_1[0x15] = param_1[0x11];\n      param_1[0x16] = param_1[0x12];\n      if (((param_3 & 2) != 0) &&\n         ((**(code **)(*param_1 + 0x10))(local_2c,param_1,0,0,2,param_3),\n         (local_2c[0] & 0x1b4) == 0xffffffff)) {\n        FUN_00216e90(param_1);\n        return (int *)0x0;\n      }\n      return param_1;\n    }\n  }\n  return (int *)0x0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char cVar3;" primitive_type identifier ;) (declaration "uint local_2c [6];" type_identifier (array_declarator "local_2c [6]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x217959;" (assignment_expression "uStack_14 = 0x217959" identifier = number_literal) ;) (expression_statement "piVar1 = param_1 + 0xe;" (assignment_expression "piVar1 = param_1 + 0xe" identifier = (binary_expression "param_1 + 0xe" identifier + number_literal)) ;) (expression_statement "cVar3 = FUN_001e73e0(piVar1);" (assignment_expression "cVar3 = FUN_001e73e0(piVar1)" identifier = (call_expression "FUN_001e73e0(piVar1)" identifier (argument_list "(piVar1)" ( identifier )))) ;) (if_statement "if (cVar3 == '\0') {\n    FUN_001e74f0(piVar1,param_2,param_3);\n    cVar3 = FUN_001e73e0(piVar1);\n    if (cVar3 != '\0') {\n      FUN_00213b70(param_1);\n      param_1[0x10] = param_3;\n      *(undefined2 *)((int)param_1 + 0x65) = 0;\n      iVar2 = param_1[0x17];\n      param_1[5] = 0;\n      param_1[1] = iVar2;\n      param_1[2] = iVar2;\n      param_1[3] = iVar2;\n      param_1[4] = 0;\n      param_1[6] = 0;\n      param_1[0x13] = param_1[0x11];\n      param_1[0x14] = param_1[0x12];\n      param_1[0x15] = param_1[0x11];\n      param_1[0x16] = param_1[0x12];\n      if (((param_3 & 2) != 0) &&\n         ((**(code **)(*param_1 + 0x10))(local_2c,param_1,0,0,2,param_3),\n         (local_2c[0] & 0x1b4) == 0xffffffff)) {\n        FUN_00216e90(param_1);\n        return (int *)0x0;\n      }\n      return param_1;\n    }\n  }" if (parenthesized_expression "(cVar3 == '\0')" ( (binary_expression "cVar3 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_001e74f0(piVar1,param_2,param_3);\n    cVar3 = FUN_001e73e0(piVar1);\n    if (cVar3 != '\0') {\n      FUN_00213b70(param_1);\n      param_1[0x10] = param_3;\n      *(undefined2 *)((int)param_1 + 0x65) = 0;\n      iVar2 = param_1[0x17];\n      param_1[5] = 0;\n      param_1[1] = iVar2;\n      param_1[2] = iVar2;\n      param_1[3] = iVar2;\n      param_1[4] = 0;\n      param_1[6] = 0;\n      param_1[0x13] = param_1[0x11];\n      param_1[0x14] = param_1[0x12];\n      param_1[0x15] = param_1[0x11];\n      param_1[0x16] = param_1[0x12];\n      if (((param_3 & 2) != 0) &&\n         ((**(code **)(*param_1 + 0x10))(local_2c,param_1,0,0,2,param_3),\n         (local_2c[0] & 0x1b4) == 0xffffffff)) {\n        FUN_00216e90(param_1);\n        return (int *)0x0;\n      }\n      return param_1;\n    }\n  }" { (expression_statement "FUN_001e74f0(piVar1,param_2,param_3);" (call_expression "FUN_001e74f0(piVar1,param_2,param_3)" identifier (argument_list "(piVar1,param_2,param_3)" ( identifier , identifier , identifier ))) ;) (expression_statement "cVar3 = FUN_001e73e0(piVar1);" (assignment_expression "cVar3 = FUN_001e73e0(piVar1)" identifier = (call_expression "FUN_001e73e0(piVar1)" identifier (argument_list "(piVar1)" ( identifier )))) ;) (if_statement "if (cVar3 != '\0') {\n      FUN_00213b70(param_1);\n      param_1[0x10] = param_3;\n      *(undefined2 *)((int)param_1 + 0x65) = 0;\n      iVar2 = param_1[0x17];\n      param_1[5] = 0;\n      param_1[1] = iVar2;\n      param_1[2] = iVar2;\n      param_1[3] = iVar2;\n      param_1[4] = 0;\n      param_1[6] = 0;\n      param_1[0x13] = param_1[0x11];\n      param_1[0x14] = param_1[0x12];\n      param_1[0x15] = param_1[0x11];\n      param_1[0x16] = param_1[0x12];\n      if (((param_3 & 2) != 0) &&\n         ((**(code **)(*param_1 + 0x10))(local_2c,param_1,0,0,2,param_3),\n         (local_2c[0] & 0x1b4) == 0xffffffff)) {\n        FUN_00216e90(param_1);\n        return (int *)0x0;\n      }\n      return param_1;\n    }" if (parenthesized_expression "(cVar3 != '\0')" ( (binary_expression "cVar3 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      FUN_00213b70(param_1);\n      param_1[0x10] = param_3;\n      *(undefined2 *)((int)param_1 + 0x65) = 0;\n      iVar2 = param_1[0x17];\n      param_1[5] = 0;\n      param_1[1] = iVar2;\n      param_1[2] = iVar2;\n      param_1[3] = iVar2;\n      param_1[4] = 0;\n      param_1[6] = 0;\n      param_1[0x13] = param_1[0x11];\n      param_1[0x14] = param_1[0x12];\n      param_1[0x15] = param_1[0x11];\n      param_1[0x16] = param_1[0x12];\n      if (((param_3 & 2) != 0) &&\n         ((**(code **)(*param_1 + 0x10))(local_2c,param_1,0,0,2,param_3),\n         (local_2c[0] & 0x1b4) == 0xffffffff)) {\n        FUN_00216e90(param_1);\n        return (int *)0x0;\n      }\n      return param_1;\n    }" { (expression_statement "FUN_00213b70(param_1);" (call_expression "FUN_00213b70(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "param_1[0x10] = param_3;" (assignment_expression "param_1[0x10] = param_3" (subscript_expression "param_1[0x10]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined2 *)((int)param_1 + 0x65) = 0;" (assignment_expression "*(undefined2 *)((int)param_1 + 0x65) = 0" (pointer_expression "*(undefined2 *)((int)param_1 + 0x65)" * (cast_expression "(undefined2 *)((int)param_1 + 0x65)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x65)" ( (binary_expression "(int)param_1 + 0x65" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "iVar2 = param_1[0x17];" (assignment_expression "iVar2 = param_1[0x17]" identifier = (subscript_expression "param_1[0x17]" identifier [ number_literal ])) ;) (expression_statement "param_1[5] = 0;" (assignment_expression "param_1[5] = 0" (subscript_expression "param_1[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[1] = iVar2;" (assignment_expression "param_1[1] = iVar2" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[2] = iVar2;" (assignment_expression "param_1[2] = iVar2" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[3] = iVar2;" (assignment_expression "param_1[3] = iVar2" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[6] = 0;" (assignment_expression "param_1[6] = 0" (subscript_expression "param_1[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x13] = param_1[0x11];" (assignment_expression "param_1[0x13] = param_1[0x11]" (subscript_expression "param_1[0x13]" identifier [ number_literal ]) = (subscript_expression "param_1[0x11]" identifier [ number_literal ])) ;) (expression_statement "param_1[0x14] = param_1[0x12];" (assignment_expression "param_1[0x14] = param_1[0x12]" (subscript_expression "param_1[0x14]" identifier [ number_literal ]) = (subscript_expression "param_1[0x12]" identifier [ number_literal ])) ;) (expression_statement "param_1[0x15] = param_1[0x11];" (assignment_expression "param_1[0x15] = param_1[0x11]" (subscript_expression "param_1[0x15]" identifier [ number_literal ]) = (subscript_expression "param_1[0x11]" identifier [ number_literal ])) ;) (expression_statement "param_1[0x16] = param_1[0x12];" (assignment_expression "param_1[0x16] = param_1[0x12]" (subscript_expression "param_1[0x16]" identifier [ number_literal ]) = (subscript_expression "param_1[0x12]" identifier [ number_literal ])) ;) (if_statement "if (((param_3 & 2) != 0) &&\n         ((**(code **)(*param_1 + 0x10))(local_2c,param_1,0,0,2,param_3),\n         (local_2c[0] & 0x1b4) == 0xffffffff)) {\n        FUN_00216e90(param_1);\n        return (int *)0x0;\n      }" if (parenthesized_expression "(((param_3 & 2) != 0) &&\n         ((**(code **)(*param_1 + 0x10))(local_2c,param_1,0,0,2,param_3),\n         (local_2c[0] & 0x1b4) == 0xffffffff))" ( (binary_expression "((param_3 & 2) != 0) &&\n         ((**(code **)(*param_1 + 0x10))(local_2c,param_1,0,0,2,param_3),\n         (local_2c[0] & 0x1b4) == 0xffffffff)" (parenthesized_expression "((param_3 & 2) != 0)" ( (binary_expression "(param_3 & 2) != 0" (parenthesized_expression "(param_3 & 2)" ( (binary_expression "param_3 & 2" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "((**(code **)(*param_1 + 0x10))(local_2c,param_1,0,0,2,param_3),\n         (local_2c[0] & 0x1b4) == 0xffffffff)" ( (comma_expression "(**(code **)(*param_1 + 0x10))(local_2c,param_1,0,0,2,param_3),\n         (local_2c[0] & 0x1b4) == 0xffffffff" (call_expression "(**(code **)(*param_1 + 0x10))(local_2c,param_1,0,0,2,param_3)" (parenthesized_expression "(**(code **)(*param_1 + 0x10))" ( (pointer_expression "**(code **)(*param_1 + 0x10)" * (pointer_expression "*(code **)(*param_1 + 0x10)" * (cast_expression "(code **)(*param_1 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x10)" ( (binary_expression "*param_1 + 0x10" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "(local_2c,param_1,0,0,2,param_3)" ( identifier , identifier , number_literal , number_literal , number_literal , identifier ))) , (binary_expression "(local_2c[0] & 0x1b4) == 0xffffffff" (parenthesized_expression "(local_2c[0] & 0x1b4)" ( (binary_expression "local_2c[0] & 0x1b4" (subscript_expression "local_2c[0]" identifier [ number_literal ]) & number_literal) )) == number_literal)) ))) )) (compound_statement "{\n        FUN_00216e90(param_1);\n        return (int *)0x0;\n      }" { (expression_statement "FUN_00216e90(param_1);" (call_expression "FUN_00216e90(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (return_statement "return param_1;" return identifier ;) })) })) (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* std::filebuf::open(char const*, std::_Ios_Openmode) */\n\nfilebuf * __thiscall std::filebuf::open(filebuf *this,char *param_1,_Ios_Openmode param_2)\n\n{\n  __basic_file<char> *this_00;\n  undefined4 uVar1;\n  char cVar2;\n  uint local_2c [6];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x217959;\n  this_00 = (__basic_file<char> *)(this + 0x38);\n  cVar2 = __basic_file<char>::is_open(this_00);\n  if (cVar2 == '\0') {\n    __basic_file<char>::open((char *)this_00,(_Ios_Openmode)param_1,param_2);\n    cVar2 = __basic_file<char>::is_open(this_00);\n    if (cVar2 != '\0') {\n      _M_allocate_internal_buffer(this);\n      *(_Ios_Openmode *)(this + 0x40) = param_2;\n      *(undefined2 *)(this + 0x65) = 0;\n      uVar1 = *(undefined4 *)(this + 0x5c);\n      *(undefined4 *)(this + 0x14) = 0;\n      *(undefined4 *)(this + 4) = uVar1;\n      *(undefined4 *)(this + 8) = uVar1;\n      *(undefined4 *)(this + 0xc) = uVar1;\n      *(undefined4 *)(this + 0x10) = 0;\n      *(undefined4 *)(this + 0x18) = 0;\n      *(undefined4 *)(this + 0x4c) = *(undefined4 *)(this + 0x44);\n      *(undefined4 *)(this + 0x50) = *(undefined4 *)(this + 0x48);\n      *(undefined4 *)(this + 0x54) = *(undefined4 *)(this + 0x44);\n      *(undefined4 *)(this + 0x58) = *(undefined4 *)(this + 0x48);\n      if (((param_2 & _S_ate) != ~(_S_ios_openmode_min|_S_ios_openmode_max)) &&\n         ((**(code **)(*(int *)this + 0x10))(local_2c,this,0,0,2,param_2),\n         (local_2c[0] & 0x1b4) == 0xffffffff)) {\n        close(this);\n        return (filebuf *)0x0;\n      }\n      return this;\n    }\n  }\n  return (filebuf *)0x0;\n}\n\n" comment comment (ERROR "filebuf * __thiscall std::filebuf::open(filebuf *this,char *param_1,_Ios_Openmode param_2)" (binary_expression "filebuf * __thiscall std::filebuf::open(filebuf *this" (binary_expression "filebuf * __thiscall" identifier * identifier) (ERROR "std::filebuf::open(filebuf" identifier : : identifier : : identifier ( identifier) * identifier) , primitive_type (pointer_declarator "*param_1" * identifier) , identifier identifier )) (compound_statement "{\n  __basic_file<char> *this_00;\n  undefined4 uVar1;\n  char cVar2;\n  uint local_2c [6];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x217959;\n  this_00 = (__basic_file<char> *)(this + 0x38);\n  cVar2 = __basic_file<char>::is_open(this_00);\n  if (cVar2 == '\0') {\n    __basic_file<char>::open((char *)this_00,(_Ios_Openmode)param_1,param_2);\n    cVar2 = __basic_file<char>::is_open(this_00);\n    if (cVar2 != '\0') {\n      _M_allocate_internal_buffer(this);\n      *(_Ios_Openmode *)(this + 0x40) = param_2;\n      *(undefined2 *)(this + 0x65) = 0;\n      uVar1 = *(undefined4 *)(this + 0x5c);\n      *(undefined4 *)(this + 0x14) = 0;\n      *(undefined4 *)(this + 4) = uVar1;\n      *(undefined4 *)(this + 8) = uVar1;\n      *(undefined4 *)(this + 0xc) = uVar1;\n      *(undefined4 *)(this + 0x10) = 0;\n      *(undefined4 *)(this + 0x18) = 0;\n      *(undefined4 *)(this + 0x4c) = *(undefined4 *)(this + 0x44);\n      *(undefined4 *)(this + 0x50) = *(undefined4 *)(this + 0x48);\n      *(undefined4 *)(this + 0x54) = *(undefined4 *)(this + 0x44);\n      *(undefined4 *)(this + 0x58) = *(undefined4 *)(this + 0x48);\n      if (((param_2 & _S_ate) != ~(_S_ios_openmode_min|_S_ios_openmode_max)) &&\n         ((**(code **)(*(int *)this + 0x10))(local_2c,this,0,0,2,param_2),\n         (local_2c[0] & 0x1b4) == 0xffffffff)) {\n        close(this);\n        return (filebuf *)0x0;\n      }\n      return this;\n    }\n  }\n  return (filebuf *)0x0;\n}" { (expression_statement "__basic_file<char> *this_00;" (binary_expression "__basic_file<char> *this_00" (binary_expression "__basic_file<char" identifier < identifier) > (pointer_expression "*this_00" * identifier)) ;) (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "uint local_2c [6];" type_identifier (array_declarator "local_2c [6]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x217959;" (assignment_expression "uStack_14 = 0x217959" identifier = number_literal) ;) (expression_statement "this_00 = (__basic_file<char> *)(this + 0x38);" (assignment_expression "this_00 = (__basic_file<char> *)(this + 0x38)" identifier = (call_expression "(__basic_file<char> *)(this + 0x38)" (parenthesized_expression "(__basic_file<char> *)" ( (binary_expression "__basic_file<char> *" (binary_expression "__basic_file<char" identifier < identifier) > (pointer_expression "*" * identifier)) )) (argument_list "(this + 0x38)" ( (binary_expression "this + 0x38" identifier + number_literal) )))) ;) (expression_statement "cVar2 = __basic_file<char>::is_open(this_00);" (assignment_expression "cVar2 = __basic_file<char>::is_open(this_00)" identifier = (binary_expression "__basic_file<char>::is_open(this_00)" (binary_expression "__basic_file<char" identifier < identifier) > (ERROR "::" : :) (call_expression "is_open(this_00)" identifier (argument_list "(this_00)" ( identifier ))))) ;) (if_statement "if (cVar2 == '\0') {\n    __basic_file<char>::open((char *)this_00,(_Ios_Openmode)param_1,param_2);\n    cVar2 = __basic_file<char>::is_open(this_00);\n    if (cVar2 != '\0') {\n      _M_allocate_internal_buffer(this);\n      *(_Ios_Openmode *)(this + 0x40) = param_2;\n      *(undefined2 *)(this + 0x65) = 0;\n      uVar1 = *(undefined4 *)(this + 0x5c);\n      *(undefined4 *)(this + 0x14) = 0;\n      *(undefined4 *)(this + 4) = uVar1;\n      *(undefined4 *)(this + 8) = uVar1;\n      *(undefined4 *)(this + 0xc) = uVar1;\n      *(undefined4 *)(this + 0x10) = 0;\n      *(undefined4 *)(this + 0x18) = 0;\n      *(undefined4 *)(this + 0x4c) = *(undefined4 *)(this + 0x44);\n      *(undefined4 *)(this + 0x50) = *(undefined4 *)(this + 0x48);\n      *(undefined4 *)(this + 0x54) = *(undefined4 *)(this + 0x44);\n      *(undefined4 *)(this + 0x58) = *(undefined4 *)(this + 0x48);\n      if (((param_2 & _S_ate) != ~(_S_ios_openmode_min|_S_ios_openmode_max)) &&\n         ((**(code **)(*(int *)this + 0x10))(local_2c,this,0,0,2,param_2),\n         (local_2c[0] & 0x1b4) == 0xffffffff)) {\n        close(this);\n        return (filebuf *)0x0;\n      }\n      return this;\n    }\n  }" if (parenthesized_expression "(cVar2 == '\0')" ( (binary_expression "cVar2 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    __basic_file<char>::open((char *)this_00,(_Ios_Openmode)param_1,param_2);\n    cVar2 = __basic_file<char>::is_open(this_00);\n    if (cVar2 != '\0') {\n      _M_allocate_internal_buffer(this);\n      *(_Ios_Openmode *)(this + 0x40) = param_2;\n      *(undefined2 *)(this + 0x65) = 0;\n      uVar1 = *(undefined4 *)(this + 0x5c);\n      *(undefined4 *)(this + 0x14) = 0;\n      *(undefined4 *)(this + 4) = uVar1;\n      *(undefined4 *)(this + 8) = uVar1;\n      *(undefined4 *)(this + 0xc) = uVar1;\n      *(undefined4 *)(this + 0x10) = 0;\n      *(undefined4 *)(this + 0x18) = 0;\n      *(undefined4 *)(this + 0x4c) = *(undefined4 *)(this + 0x44);\n      *(undefined4 *)(this + 0x50) = *(undefined4 *)(this + 0x48);\n      *(undefined4 *)(this + 0x54) = *(undefined4 *)(this + 0x44);\n      *(undefined4 *)(this + 0x58) = *(undefined4 *)(this + 0x48);\n      if (((param_2 & _S_ate) != ~(_S_ios_openmode_min|_S_ios_openmode_max)) &&\n         ((**(code **)(*(int *)this + 0x10))(local_2c,this,0,0,2,param_2),\n         (local_2c[0] & 0x1b4) == 0xffffffff)) {\n        close(this);\n        return (filebuf *)0x0;\n      }\n      return this;\n    }\n  }" { (expression_statement "__basic_file<char>::open((char *)this_00,(_Ios_Openmode)param_1,param_2);" (binary_expression "__basic_file<char>::open((char *)this_00,(_Ios_Openmode)param_1,param_2)" (binary_expression "__basic_file<char" identifier < identifier) > (ERROR "::" : :) (call_expression "open((char *)this_00,(_Ios_Openmode)param_1,param_2)" identifier (argument_list "((char *)this_00,(_Ios_Openmode)param_1,param_2)" ( (cast_expression "(char *)this_00" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(_Ios_Openmode)param_1" ( (type_descriptor "_Ios_Openmode" type_identifier) ) identifier) , identifier )))) ;) (expression_statement "cVar2 = __basic_file<char>::is_open(this_00);" (assignment_expression "cVar2 = __basic_file<char>::is_open(this_00)" identifier = (binary_expression "__basic_file<char>::is_open(this_00)" (binary_expression "__basic_file<char" identifier < identifier) > (ERROR "::" : :) (call_expression "is_open(this_00)" identifier (argument_list "(this_00)" ( identifier ))))) ;) (if_statement "if (cVar2 != '\0') {\n      _M_allocate_internal_buffer(this);\n      *(_Ios_Openmode *)(this + 0x40) = param_2;\n      *(undefined2 *)(this + 0x65) = 0;\n      uVar1 = *(undefined4 *)(this + 0x5c);\n      *(undefined4 *)(this + 0x14) = 0;\n      *(undefined4 *)(this + 4) = uVar1;\n      *(undefined4 *)(this + 8) = uVar1;\n      *(undefined4 *)(this + 0xc) = uVar1;\n      *(undefined4 *)(this + 0x10) = 0;\n      *(undefined4 *)(this + 0x18) = 0;\n      *(undefined4 *)(this + 0x4c) = *(undefined4 *)(this + 0x44);\n      *(undefined4 *)(this + 0x50) = *(undefined4 *)(this + 0x48);\n      *(undefined4 *)(this + 0x54) = *(undefined4 *)(this + 0x44);\n      *(undefined4 *)(this + 0x58) = *(undefined4 *)(this + 0x48);\n      if (((param_2 & _S_ate) != ~(_S_ios_openmode_min|_S_ios_openmode_max)) &&\n         ((**(code **)(*(int *)this + 0x10))(local_2c,this,0,0,2,param_2),\n         (local_2c[0] & 0x1b4) == 0xffffffff)) {\n        close(this);\n        return (filebuf *)0x0;\n      }\n      return this;\n    }" if (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      _M_allocate_internal_buffer(this);\n      *(_Ios_Openmode *)(this + 0x40) = param_2;\n      *(undefined2 *)(this + 0x65) = 0;\n      uVar1 = *(undefined4 *)(this + 0x5c);\n      *(undefined4 *)(this + 0x14) = 0;\n      *(undefined4 *)(this + 4) = uVar1;\n      *(undefined4 *)(this + 8) = uVar1;\n      *(undefined4 *)(this + 0xc) = uVar1;\n      *(undefined4 *)(this + 0x10) = 0;\n      *(undefined4 *)(this + 0x18) = 0;\n      *(undefined4 *)(this + 0x4c) = *(undefined4 *)(this + 0x44);\n      *(undefined4 *)(this + 0x50) = *(undefined4 *)(this + 0x48);\n      *(undefined4 *)(this + 0x54) = *(undefined4 *)(this + 0x44);\n      *(undefined4 *)(this + 0x58) = *(undefined4 *)(this + 0x48);\n      if (((param_2 & _S_ate) != ~(_S_ios_openmode_min|_S_ios_openmode_max)) &&\n         ((**(code **)(*(int *)this + 0x10))(local_2c,this,0,0,2,param_2),\n         (local_2c[0] & 0x1b4) == 0xffffffff)) {\n        close(this);\n        return (filebuf *)0x0;\n      }\n      return this;\n    }" { (expression_statement "_M_allocate_internal_buffer(this);" (call_expression "_M_allocate_internal_buffer(this)" identifier (argument_list "(this)" ( identifier ))) ;) (expression_statement "*(_Ios_Openmode *)(this + 0x40) = param_2;" (assignment_expression "*(_Ios_Openmode *)(this + 0x40) = param_2" (pointer_expression "*(_Ios_Openmode *)(this + 0x40)" * (cast_expression "(_Ios_Openmode *)(this + 0x40)" ( (type_descriptor "_Ios_Openmode *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x40)" ( (binary_expression "this + 0x40" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined2 *)(this + 0x65) = 0;" (assignment_expression "*(undefined2 *)(this + 0x65) = 0" (pointer_expression "*(undefined2 *)(this + 0x65)" * (cast_expression "(undefined2 *)(this + 0x65)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x65)" ( (binary_expression "this + 0x65" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar1 = *(undefined4 *)(this + 0x5c);" (assignment_expression "uVar1 = *(undefined4 *)(this + 0x5c)" identifier = (pointer_expression "*(undefined4 *)(this + 0x5c)" * (cast_expression "(undefined4 *)(this + 0x5c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x5c)" ( (binary_expression "this + 0x5c" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(this + 0x14) = 0;" (assignment_expression "*(undefined4 *)(this + 0x14) = 0" (pointer_expression "*(undefined4 *)(this + 0x14)" * (cast_expression "(undefined4 *)(this + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x14)" ( (binary_expression "this + 0x14" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(this + 4) = uVar1;" (assignment_expression "*(undefined4 *)(this + 4) = uVar1" (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) )))) = identifier) ;) (expression_statement "*(undefined4 *)(this + 8) = uVar1;" (assignment_expression "*(undefined4 *)(this + 8) = uVar1" (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) )))) = identifier) ;) (expression_statement "*(undefined4 *)(this + 0xc) = uVar1;" (assignment_expression "*(undefined4 *)(this + 0xc) = uVar1" (pointer_expression "*(undefined4 *)(this + 0xc)" * (cast_expression "(undefined4 *)(this + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0xc)" ( (binary_expression "this + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(this + 0x10) = 0;" (assignment_expression "*(undefined4 *)(this + 0x10) = 0" (pointer_expression "*(undefined4 *)(this + 0x10)" * (cast_expression "(undefined4 *)(this + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x10)" ( (binary_expression "this + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(this + 0x18) = 0;" (assignment_expression "*(undefined4 *)(this + 0x18) = 0" (pointer_expression "*(undefined4 *)(this + 0x18)" * (cast_expression "(undefined4 *)(this + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x18)" ( (binary_expression "this + 0x18" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(this + 0x4c) = *(undefined4 *)(this + 0x44);" (assignment_expression "*(undefined4 *)(this + 0x4c) = *(undefined4 *)(this + 0x44)" (pointer_expression "*(undefined4 *)(this + 0x4c)" * (cast_expression "(undefined4 *)(this + 0x4c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x4c)" ( (binary_expression "this + 0x4c" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(this + 0x44)" * (cast_expression "(undefined4 *)(this + 0x44)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x44)" ( (binary_expression "this + 0x44" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(this + 0x50) = *(undefined4 *)(this + 0x48);" (assignment_expression "*(undefined4 *)(this + 0x50) = *(undefined4 *)(this + 0x48)" (pointer_expression "*(undefined4 *)(this + 0x50)" * (cast_expression "(undefined4 *)(this + 0x50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x50)" ( (binary_expression "this + 0x50" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(this + 0x48)" * (cast_expression "(undefined4 *)(this + 0x48)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x48)" ( (binary_expression "this + 0x48" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(this + 0x54) = *(undefined4 *)(this + 0x44);" (assignment_expression "*(undefined4 *)(this + 0x54) = *(undefined4 *)(this + 0x44)" (pointer_expression "*(undefined4 *)(this + 0x54)" * (cast_expression "(undefined4 *)(this + 0x54)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x54)" ( (binary_expression "this + 0x54" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(this + 0x44)" * (cast_expression "(undefined4 *)(this + 0x44)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x44)" ( (binary_expression "this + 0x44" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(this + 0x58) = *(undefined4 *)(this + 0x48);" (assignment_expression "*(undefined4 *)(this + 0x58) = *(undefined4 *)(this + 0x48)" (pointer_expression "*(undefined4 *)(this + 0x58)" * (cast_expression "(undefined4 *)(this + 0x58)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x58)" ( (binary_expression "this + 0x58" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(this + 0x48)" * (cast_expression "(undefined4 *)(this + 0x48)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 0x48)" ( (binary_expression "this + 0x48" identifier + number_literal) ))))) ;) (if_statement "if (((param_2 & _S_ate) != ~(_S_ios_openmode_min|_S_ios_openmode_max)) &&\n         ((**(code **)(*(int *)this + 0x10))(local_2c,this,0,0,2,param_2),\n         (local_2c[0] & 0x1b4) == 0xffffffff)) {\n        close(this);\n        return (filebuf *)0x0;\n      }" if (parenthesized_expression "(((param_2 & _S_ate) != ~(_S_ios_openmode_min|_S_ios_openmode_max)) &&\n         ((**(code **)(*(int *)this + 0x10))(local_2c,this,0,0,2,param_2),\n         (local_2c[0] & 0x1b4) == 0xffffffff))" ( (binary_expression "((param_2 & _S_ate) != ~(_S_ios_openmode_min|_S_ios_openmode_max)) &&\n         ((**(code **)(*(int *)this + 0x10))(local_2c,this,0,0,2,param_2),\n         (local_2c[0] & 0x1b4) == 0xffffffff)" (parenthesized_expression "((param_2 & _S_ate) != ~(_S_ios_openmode_min|_S_ios_openmode_max))" ( (binary_expression "(param_2 & _S_ate) != ~(_S_ios_openmode_min|_S_ios_openmode_max)" (parenthesized_expression "(param_2 & _S_ate)" ( (binary_expression "param_2 & _S_ate" identifier & identifier) )) != (unary_expression "~(_S_ios_openmode_min|_S_ios_openmode_max)" ~ (parenthesized_expression "(_S_ios_openmode_min|_S_ios_openmode_max)" ( (binary_expression "_S_ios_openmode_min|_S_ios_openmode_max" identifier | identifier) )))) )) && (parenthesized_expression "((**(code **)(*(int *)this + 0x10))(local_2c,this,0,0,2,param_2),\n         (local_2c[0] & 0x1b4) == 0xffffffff)" ( (comma_expression "(**(code **)(*(int *)this + 0x10))(local_2c,this,0,0,2,param_2),\n         (local_2c[0] & 0x1b4) == 0xffffffff" (call_expression "(**(code **)(*(int *)this + 0x10))(local_2c,this,0,0,2,param_2)" (parenthesized_expression "(**(code **)(*(int *)this + 0x10))" ( (pointer_expression "**(code **)(*(int *)this + 0x10)" * (pointer_expression "*(code **)(*(int *)this + 0x10)" * (cast_expression "(code **)(*(int *)this + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)this + 0x10)" ( (binary_expression "*(int *)this + 0x10" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )) (argument_list "(local_2c,this,0,0,2,param_2)" ( identifier , identifier , number_literal , number_literal , number_literal , identifier ))) , (binary_expression "(local_2c[0] & 0x1b4) == 0xffffffff" (parenthesized_expression "(local_2c[0] & 0x1b4)" ( (binary_expression "local_2c[0] & 0x1b4" (subscript_expression "local_2c[0]" identifier [ number_literal ]) & number_literal) )) == number_literal)) ))) )) (compound_statement "{\n        close(this);\n        return (filebuf *)0x0;\n      }" { (expression_statement "close(this);" (call_expression "close(this)" identifier (argument_list "(this)" ( identifier ))) ;) (return_statement "return (filebuf *)0x0;" return (cast_expression "(filebuf *)0x0" ( (type_descriptor "filebuf *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (return_statement "return this;" return identifier ;) })) })) (return_statement "return (filebuf *)0x0;" return (cast_expression "(filebuf *)0x0" ( (type_descriptor "filebuf *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) }))
(translation_unit "int * FUN_00217950(int *param_1,undefined4 param_2,uint param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  char cVar3;\n  uint local_2c [6];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x217959;\n  piVar1 = param_1 + 0xe;\n  cVar3 = FUN_001e73e0(piVar1);\n  if (cVar3 == '\0') {\n    FUN_001e74f0(piVar1,param_2,param_3);\n    cVar3 = FUN_001e73e0(piVar1);\n    if (cVar3 != '\0') {\n      FUN_00213b70(param_1);\n      param_1[0x10] = param_3;\n      *(undefined2 *)((int)param_1 + 0x65) = 0;\n      iVar2 = param_1[0x17];\n      param_1[5] = 0;\n      param_1[1] = iVar2;\n      param_1[2] = iVar2;\n      param_1[3] = iVar2;\n      param_1[4] = 0;\n      param_1[6] = 0;\n      param_1[0x13] = param_1[0x11];\n      param_1[0x14] = param_1[0x12];\n      param_1[0x15] = param_1[0x11];\n      param_1[0x16] = param_1[0x12];\n      if (((param_3 & 2) != 0) &&\n         ((**(code **)(*param_1 + 0x10))(local_2c,param_1,0,0,2,param_3),\n         (local_2c[0] & 0x1b4) == 0xffffffff)) {\n        FUN_00216e90(param_1);\n        return (int *)0x0;\n      }\n      return param_1;\n    }\n  }\n  return (int *)0x0;\n}\n\n" (function_definition "int * FUN_00217950(int *param_1,undefined4 param_2,uint param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  char cVar3;\n  uint local_2c [6];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x217959;\n  piVar1 = param_1 + 0xe;\n  cVar3 = FUN_001e73e0(piVar1);\n  if (cVar3 == '\0') {\n    FUN_001e74f0(piVar1,param_2,param_3);\n    cVar3 = FUN_001e73e0(piVar1);\n    if (cVar3 != '\0') {\n      FUN_00213b70(param_1);\n      param_1[0x10] = param_3;\n      *(undefined2 *)((int)param_1 + 0x65) = 0;\n      iVar2 = param_1[0x17];\n      param_1[5] = 0;\n      param_1[1] = iVar2;\n      param_1[2] = iVar2;\n      param_1[3] = iVar2;\n      param_1[4] = 0;\n      param_1[6] = 0;\n      param_1[0x13] = param_1[0x11];\n      param_1[0x14] = param_1[0x12];\n      param_1[0x15] = param_1[0x11];\n      param_1[0x16] = param_1[0x12];\n      if (((param_3 & 2) != 0) &&\n         ((**(code **)(*param_1 + 0x10))(local_2c,param_1,0,0,2,param_3),\n         (local_2c[0] & 0x1b4) == 0xffffffff)) {\n        FUN_00216e90(param_1);\n        return (int *)0x0;\n      }\n      return param_1;\n    }\n  }\n  return (int *)0x0;\n}" primitive_type (pointer_declarator "* FUN_00217950(int *param_1,undefined4 param_2,uint param_3)" * (function_declarator "FUN_00217950(int *param_1,undefined4 param_2,uint param_3)" identifier (parameter_list "(int *param_1,undefined4 param_2,uint param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "uint param_3" type_identifier identifier) )))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  char cVar3;\n  uint local_2c [6];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x217959;\n  piVar1 = param_1 + 0xe;\n  cVar3 = FUN_001e73e0(piVar1);\n  if (cVar3 == '\0') {\n    FUN_001e74f0(piVar1,param_2,param_3);\n    cVar3 = FUN_001e73e0(piVar1);\n    if (cVar3 != '\0') {\n      FUN_00213b70(param_1);\n      param_1[0x10] = param_3;\n      *(undefined2 *)((int)param_1 + 0x65) = 0;\n      iVar2 = param_1[0x17];\n      param_1[5] = 0;\n      param_1[1] = iVar2;\n      param_1[2] = iVar2;\n      param_1[3] = iVar2;\n      param_1[4] = 0;\n      param_1[6] = 0;\n      param_1[0x13] = param_1[0x11];\n      param_1[0x14] = param_1[0x12];\n      param_1[0x15] = param_1[0x11];\n      param_1[0x16] = param_1[0x12];\n      if (((param_3 & 2) != 0) &&\n         ((**(code **)(*param_1 + 0x10))(local_2c,param_1,0,0,2,param_3),\n         (local_2c[0] & 0x1b4) == 0xffffffff)) {\n        FUN_00216e90(param_1);\n        return (int *)0x0;\n      }\n      return param_1;\n    }\n  }\n  return (int *)0x0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char cVar3;" primitive_type identifier ;) (declaration "uint local_2c [6];" type_identifier (array_declarator "local_2c [6]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x217959;" (assignment_expression "uStack_14 = 0x217959" identifier = number_literal) ;) (expression_statement "piVar1 = param_1 + 0xe;" (assignment_expression "piVar1 = param_1 + 0xe" identifier = (binary_expression "param_1 + 0xe" identifier + number_literal)) ;) (expression_statement "cVar3 = FUN_001e73e0(piVar1);" (assignment_expression "cVar3 = FUN_001e73e0(piVar1)" identifier = (call_expression "FUN_001e73e0(piVar1)" identifier (argument_list "(piVar1)" ( identifier )))) ;) (if_statement "if (cVar3 == '\0') {\n    FUN_001e74f0(piVar1,param_2,param_3);\n    cVar3 = FUN_001e73e0(piVar1);\n    if (cVar3 != '\0') {\n      FUN_00213b70(param_1);\n      param_1[0x10] = param_3;\n      *(undefined2 *)((int)param_1 + 0x65) = 0;\n      iVar2 = param_1[0x17];\n      param_1[5] = 0;\n      param_1[1] = iVar2;\n      param_1[2] = iVar2;\n      param_1[3] = iVar2;\n      param_1[4] = 0;\n      param_1[6] = 0;\n      param_1[0x13] = param_1[0x11];\n      param_1[0x14] = param_1[0x12];\n      param_1[0x15] = param_1[0x11];\n      param_1[0x16] = param_1[0x12];\n      if (((param_3 & 2) != 0) &&\n         ((**(code **)(*param_1 + 0x10))(local_2c,param_1,0,0,2,param_3),\n         (local_2c[0] & 0x1b4) == 0xffffffff)) {\n        FUN_00216e90(param_1);\n        return (int *)0x0;\n      }\n      return param_1;\n    }\n  }" if (parenthesized_expression "(cVar3 == '\0')" ( (binary_expression "cVar3 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_001e74f0(piVar1,param_2,param_3);\n    cVar3 = FUN_001e73e0(piVar1);\n    if (cVar3 != '\0') {\n      FUN_00213b70(param_1);\n      param_1[0x10] = param_3;\n      *(undefined2 *)((int)param_1 + 0x65) = 0;\n      iVar2 = param_1[0x17];\n      param_1[5] = 0;\n      param_1[1] = iVar2;\n      param_1[2] = iVar2;\n      param_1[3] = iVar2;\n      param_1[4] = 0;\n      param_1[6] = 0;\n      param_1[0x13] = param_1[0x11];\n      param_1[0x14] = param_1[0x12];\n      param_1[0x15] = param_1[0x11];\n      param_1[0x16] = param_1[0x12];\n      if (((param_3 & 2) != 0) &&\n         ((**(code **)(*param_1 + 0x10))(local_2c,param_1,0,0,2,param_3),\n         (local_2c[0] & 0x1b4) == 0xffffffff)) {\n        FUN_00216e90(param_1);\n        return (int *)0x0;\n      }\n      return param_1;\n    }\n  }" { (expression_statement "FUN_001e74f0(piVar1,param_2,param_3);" (call_expression "FUN_001e74f0(piVar1,param_2,param_3)" identifier (argument_list "(piVar1,param_2,param_3)" ( identifier , identifier , identifier ))) ;) (expression_statement "cVar3 = FUN_001e73e0(piVar1);" (assignment_expression "cVar3 = FUN_001e73e0(piVar1)" identifier = (call_expression "FUN_001e73e0(piVar1)" identifier (argument_list "(piVar1)" ( identifier )))) ;) (if_statement "if (cVar3 != '\0') {\n      FUN_00213b70(param_1);\n      param_1[0x10] = param_3;\n      *(undefined2 *)((int)param_1 + 0x65) = 0;\n      iVar2 = param_1[0x17];\n      param_1[5] = 0;\n      param_1[1] = iVar2;\n      param_1[2] = iVar2;\n      param_1[3] = iVar2;\n      param_1[4] = 0;\n      param_1[6] = 0;\n      param_1[0x13] = param_1[0x11];\n      param_1[0x14] = param_1[0x12];\n      param_1[0x15] = param_1[0x11];\n      param_1[0x16] = param_1[0x12];\n      if (((param_3 & 2) != 0) &&\n         ((**(code **)(*param_1 + 0x10))(local_2c,param_1,0,0,2,param_3),\n         (local_2c[0] & 0x1b4) == 0xffffffff)) {\n        FUN_00216e90(param_1);\n        return (int *)0x0;\n      }\n      return param_1;\n    }" if (parenthesized_expression "(cVar3 != '\0')" ( (binary_expression "cVar3 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      FUN_00213b70(param_1);\n      param_1[0x10] = param_3;\n      *(undefined2 *)((int)param_1 + 0x65) = 0;\n      iVar2 = param_1[0x17];\n      param_1[5] = 0;\n      param_1[1] = iVar2;\n      param_1[2] = iVar2;\n      param_1[3] = iVar2;\n      param_1[4] = 0;\n      param_1[6] = 0;\n      param_1[0x13] = param_1[0x11];\n      param_1[0x14] = param_1[0x12];\n      param_1[0x15] = param_1[0x11];\n      param_1[0x16] = param_1[0x12];\n      if (((param_3 & 2) != 0) &&\n         ((**(code **)(*param_1 + 0x10))(local_2c,param_1,0,0,2,param_3),\n         (local_2c[0] & 0x1b4) == 0xffffffff)) {\n        FUN_00216e90(param_1);\n        return (int *)0x0;\n      }\n      return param_1;\n    }" { (expression_statement "FUN_00213b70(param_1);" (call_expression "FUN_00213b70(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "param_1[0x10] = param_3;" (assignment_expression "param_1[0x10] = param_3" (subscript_expression "param_1[0x10]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined2 *)((int)param_1 + 0x65) = 0;" (assignment_expression "*(undefined2 *)((int)param_1 + 0x65) = 0" (pointer_expression "*(undefined2 *)((int)param_1 + 0x65)" * (cast_expression "(undefined2 *)((int)param_1 + 0x65)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_1 + 0x65)" ( (binary_expression "(int)param_1 + 0x65" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "iVar2 = param_1[0x17];" (assignment_expression "iVar2 = param_1[0x17]" identifier = (subscript_expression "param_1[0x17]" identifier [ number_literal ])) ;) (expression_statement "param_1[5] = 0;" (assignment_expression "param_1[5] = 0" (subscript_expression "param_1[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[1] = iVar2;" (assignment_expression "param_1[1] = iVar2" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[2] = iVar2;" (assignment_expression "param_1[2] = iVar2" (subscript_expression "param_1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[3] = iVar2;" (assignment_expression "param_1[3] = iVar2" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[6] = 0;" (assignment_expression "param_1[6] = 0" (subscript_expression "param_1[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x13] = param_1[0x11];" (assignment_expression "param_1[0x13] = param_1[0x11]" (subscript_expression "param_1[0x13]" identifier [ number_literal ]) = (subscript_expression "param_1[0x11]" identifier [ number_literal ])) ;) (expression_statement "param_1[0x14] = param_1[0x12];" (assignment_expression "param_1[0x14] = param_1[0x12]" (subscript_expression "param_1[0x14]" identifier [ number_literal ]) = (subscript_expression "param_1[0x12]" identifier [ number_literal ])) ;) (expression_statement "param_1[0x15] = param_1[0x11];" (assignment_expression "param_1[0x15] = param_1[0x11]" (subscript_expression "param_1[0x15]" identifier [ number_literal ]) = (subscript_expression "param_1[0x11]" identifier [ number_literal ])) ;) (expression_statement "param_1[0x16] = param_1[0x12];" (assignment_expression "param_1[0x16] = param_1[0x12]" (subscript_expression "param_1[0x16]" identifier [ number_literal ]) = (subscript_expression "param_1[0x12]" identifier [ number_literal ])) ;) (if_statement "if (((param_3 & 2) != 0) &&\n         ((**(code **)(*param_1 + 0x10))(local_2c,param_1,0,0,2,param_3),\n         (local_2c[0] & 0x1b4) == 0xffffffff)) {\n        FUN_00216e90(param_1);\n        return (int *)0x0;\n      }" if (parenthesized_expression "(((param_3 & 2) != 0) &&\n         ((**(code **)(*param_1 + 0x10))(local_2c,param_1,0,0,2,param_3),\n         (local_2c[0] & 0x1b4) == 0xffffffff))" ( (binary_expression "((param_3 & 2) != 0) &&\n         ((**(code **)(*param_1 + 0x10))(local_2c,param_1,0,0,2,param_3),\n         (local_2c[0] & 0x1b4) == 0xffffffff)" (parenthesized_expression "((param_3 & 2) != 0)" ( (binary_expression "(param_3 & 2) != 0" (parenthesized_expression "(param_3 & 2)" ( (binary_expression "param_3 & 2" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "((**(code **)(*param_1 + 0x10))(local_2c,param_1,0,0,2,param_3),\n         (local_2c[0] & 0x1b4) == 0xffffffff)" ( (comma_expression "(**(code **)(*param_1 + 0x10))(local_2c,param_1,0,0,2,param_3),\n         (local_2c[0] & 0x1b4) == 0xffffffff" (call_expression "(**(code **)(*param_1 + 0x10))(local_2c,param_1,0,0,2,param_3)" (parenthesized_expression "(**(code **)(*param_1 + 0x10))" ( (pointer_expression "**(code **)(*param_1 + 0x10)" * (pointer_expression "*(code **)(*param_1 + 0x10)" * (cast_expression "(code **)(*param_1 + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x10)" ( (binary_expression "*param_1 + 0x10" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "(local_2c,param_1,0,0,2,param_3)" ( identifier , identifier , number_literal , number_literal , number_literal , identifier ))) , (binary_expression "(local_2c[0] & 0x1b4) == 0xffffffff" (parenthesized_expression "(local_2c[0] & 0x1b4)" ( (binary_expression "local_2c[0] & 0x1b4" (subscript_expression "local_2c[0]" identifier [ number_literal ]) & number_literal) )) == number_literal)) ))) )) (compound_statement "{\n        FUN_00216e90(param_1);\n        return (int *)0x0;\n      }" { (expression_statement "FUN_00216e90(param_1);" (call_expression "FUN_00216e90(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (return_statement "return param_1;" return identifier ;) })) })) (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = 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) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (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 ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) && (parenthesized_expression ( (comma_expression (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT , IDENT , LIT , LIT , LIT , IDENT ))) , (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) & LIT) )) == LIT)) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) (return_statement return IDENT ;) })) })) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })))
(function_definition "int * FUN_00217950(int *param_1,undefined4 param_2,uint param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  char cVar3;\n  uint local_2c [6];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x217959;\n  piVar1 = param_1 + 0xe;\n  cVar3 = FUN_001e73e0(piVar1);\n  if (cVar3 == '\0') {\n    FUN_001e74f0(piVar1,param_2,param_3);\n    cVar3 = FUN_001e73e0(piVar1);\n    if (cVar3 != '\0') {\n      FUN_00213b70(param_1);\n      param_1[0x10] = param_3;\n      *(undefined2 *)((int)param_1 + 0x65) = 0;\n      iVar2 = param_1[0x17];\n      param_1[5] = 0;\n      param_1[1] = iVar2;\n      param_1[2] = iVar2;\n      param_1[3] = iVar2;\n      param_1[4] = 0;\n      param_1[6] = 0;\n      param_1[0x13] = param_1[0x11];\n      param_1[0x14] = param_1[0x12];\n      param_1[0x15] = param_1[0x11];\n      param_1[0x16] = param_1[0x12];\n      if (((param_3 & 2) != 0) &&\n         ((**(code **)(*param_1 + 0x10))(local_2c,param_1,0,0,2,param_3),\n         (local_2c[0] & 0x1b4) == 0xffffffff)) {\n        FUN_00216e90(param_1);\n        return (int *)0x0;\n      }\n      return param_1;\n    }\n  }\n  return (int *)0x0;\n}" (primitive_type "int") (pointer_declarator "* FUN_00217950(int *param_1,undefined4 param_2,uint param_3)" (* "*") (function_declarator "FUN_00217950(int *param_1,undefined4 param_2,uint param_3)" (identifier "FUN_00217950") (parameter_list "(int *param_1,undefined4 param_2,uint param_3)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "uint param_3" (type_identifier "uint") (identifier "param_3")) () ")")))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  char cVar3;\n  uint local_2c [6];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x217959;\n  piVar1 = param_1 + 0xe;\n  cVar3 = FUN_001e73e0(piVar1);\n  if (cVar3 == '\0') {\n    FUN_001e74f0(piVar1,param_2,param_3);\n    cVar3 = FUN_001e73e0(piVar1);\n    if (cVar3 != '\0') {\n      FUN_00213b70(param_1);\n      param_1[0x10] = param_3;\n      *(undefined2 *)((int)param_1 + 0x65) = 0;\n      iVar2 = param_1[0x17];\n      param_1[5] = 0;\n      param_1[1] = iVar2;\n      param_1[2] = iVar2;\n      param_1[3] = iVar2;\n      param_1[4] = 0;\n      param_1[6] = 0;\n      param_1[0x13] = param_1[0x11];\n      param_1[0x14] = param_1[0x12];\n      param_1[0x15] = param_1[0x11];\n      param_1[0x16] = param_1[0x12];\n      if (((param_3 & 2) != 0) &&\n         ((**(code **)(*param_1 + 0x10))(local_2c,param_1,0,0,2,param_3),\n         (local_2c[0] & 0x1b4) == 0xffffffff)) {\n        FUN_00216e90(param_1);\n        return (int *)0x0;\n      }\n      return param_1;\n    }\n  }\n  return (int *)0x0;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "char cVar3;" (primitive_type "char") (identifier "cVar3") (; ";")) (declaration "uint local_2c [6];" (type_identifier "uint") (array_declarator "local_2c [6]" (identifier "local_2c") ([ "[") (number_literal "6") (] "]")) (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x217959;" (assignment_expression "uStack_14 = 0x217959" (identifier "uStack_14") (= "=") (number_literal "0x217959")) (; ";")) (expression_statement "piVar1 = param_1 + 0xe;" (assignment_expression "piVar1 = param_1 + 0xe" (identifier "piVar1") (= "=") (binary_expression "param_1 + 0xe" (identifier "param_1") (+ "+") (number_literal "0xe"))) (; ";")) (expression_statement "cVar3 = FUN_001e73e0(piVar1);" (assignment_expression "cVar3 = FUN_001e73e0(piVar1)" (identifier "cVar3") (= "=") (call_expression "FUN_001e73e0(piVar1)" (identifier "FUN_001e73e0") (argument_list "(piVar1)" (( "(") (identifier "piVar1") () ")")))) (; ";")) (if_statement "if (cVar3 == '\0') {\n    FUN_001e74f0(piVar1,param_2,param_3);\n    cVar3 = FUN_001e73e0(piVar1);\n    if (cVar3 != '\0') {\n      FUN_00213b70(param_1);\n      param_1[0x10] = param_3;\n      *(undefined2 *)((int)param_1 + 0x65) = 0;\n      iVar2 = param_1[0x17];\n      param_1[5] = 0;\n      param_1[1] = iVar2;\n      param_1[2] = iVar2;\n      param_1[3] = iVar2;\n      param_1[4] = 0;\n      param_1[6] = 0;\n      param_1[0x13] = param_1[0x11];\n      param_1[0x14] = param_1[0x12];\n      param_1[0x15] = param_1[0x11];\n      param_1[0x16] = param_1[0x12];\n      if (((param_3 & 2) != 0) &&\n         ((**(code **)(*param_1 + 0x10))(local_2c,param_1,0,0,2,param_3),\n         (local_2c[0] & 0x1b4) == 0xffffffff)) {\n        FUN_00216e90(param_1);\n        return (int *)0x0;\n      }\n      return param_1;\n    }\n  }" (if "if") (parenthesized_expression "(cVar3 == '\0')" (( "(") (binary_expression "cVar3 == '\0'" (identifier "cVar3") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    FUN_001e74f0(piVar1,param_2,param_3);\n    cVar3 = FUN_001e73e0(piVar1);\n    if (cVar3 != '\0') {\n      FUN_00213b70(param_1);\n      param_1[0x10] = param_3;\n      *(undefined2 *)((int)param_1 + 0x65) = 0;\n      iVar2 = param_1[0x17];\n      param_1[5] = 0;\n      param_1[1] = iVar2;\n      param_1[2] = iVar2;\n      param_1[3] = iVar2;\n      param_1[4] = 0;\n      param_1[6] = 0;\n      param_1[0x13] = param_1[0x11];\n      param_1[0x14] = param_1[0x12];\n      param_1[0x15] = param_1[0x11];\n      param_1[0x16] = param_1[0x12];\n      if (((param_3 & 2) != 0) &&\n         ((**(code **)(*param_1 + 0x10))(local_2c,param_1,0,0,2,param_3),\n         (local_2c[0] & 0x1b4) == 0xffffffff)) {\n        FUN_00216e90(param_1);\n        return (int *)0x0;\n      }\n      return param_1;\n    }\n  }" ({ "{") (expression_statement "FUN_001e74f0(piVar1,param_2,param_3);" (call_expression "FUN_001e74f0(piVar1,param_2,param_3)" (identifier "FUN_001e74f0") (argument_list "(piVar1,param_2,param_3)" (( "(") (identifier "piVar1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")"))) (; ";")) (expression_statement "cVar3 = FUN_001e73e0(piVar1);" (assignment_expression "cVar3 = FUN_001e73e0(piVar1)" (identifier "cVar3") (= "=") (call_expression "FUN_001e73e0(piVar1)" (identifier "FUN_001e73e0") (argument_list "(piVar1)" (( "(") (identifier "piVar1") () ")")))) (; ";")) (if_statement "if (cVar3 != '\0') {\n      FUN_00213b70(param_1);\n      param_1[0x10] = param_3;\n      *(undefined2 *)((int)param_1 + 0x65) = 0;\n      iVar2 = param_1[0x17];\n      param_1[5] = 0;\n      param_1[1] = iVar2;\n      param_1[2] = iVar2;\n      param_1[3] = iVar2;\n      param_1[4] = 0;\n      param_1[6] = 0;\n      param_1[0x13] = param_1[0x11];\n      param_1[0x14] = param_1[0x12];\n      param_1[0x15] = param_1[0x11];\n      param_1[0x16] = param_1[0x12];\n      if (((param_3 & 2) != 0) &&\n         ((**(code **)(*param_1 + 0x10))(local_2c,param_1,0,0,2,param_3),\n         (local_2c[0] & 0x1b4) == 0xffffffff)) {\n        FUN_00216e90(param_1);\n        return (int *)0x0;\n      }\n      return param_1;\n    }" (if "if") (parenthesized_expression "(cVar3 != '\0')" (( "(") (binary_expression "cVar3 != '\0'" (identifier "cVar3") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      FUN_00213b70(param_1);\n      param_1[0x10] = param_3;\n      *(undefined2 *)((int)param_1 + 0x65) = 0;\n      iVar2 = param_1[0x17];\n      param_1[5] = 0;\n      param_1[1] = iVar2;\n      param_1[2] = iVar2;\n      param_1[3] = iVar2;\n      param_1[4] = 0;\n      param_1[6] = 0;\n      param_1[0x13] = param_1[0x11];\n      param_1[0x14] = param_1[0x12];\n      param_1[0x15] = param_1[0x11];\n      param_1[0x16] = param_1[0x12];\n      if (((param_3 & 2) != 0) &&\n         ((**(code **)(*param_1 + 0x10))(local_2c,param_1,0,0,2,param_3),\n         (local_2c[0] & 0x1b4) == 0xffffffff)) {\n        FUN_00216e90(param_1);\n        return (int *)0x0;\n      }\n      return param_1;\n    }" ({ "{") (expression_statement "FUN_00213b70(param_1);" (call_expression "FUN_00213b70(param_1)" (identifier "FUN_00213b70") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (expression_statement "param_1[0x10] = param_3;" (assignment_expression "param_1[0x10] = param_3" (subscript_expression "param_1[0x10]" (identifier "param_1") ([ "[") (number_literal "0x10") (] "]")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "*(undefined2 *)((int)param_1 + 0x65) = 0;" (assignment_expression "*(undefined2 *)((int)param_1 + 0x65) = 0" (pointer_expression "*(undefined2 *)((int)param_1 + 0x65)" (* "*") (cast_expression "(undefined2 *)((int)param_1 + 0x65)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_1 + 0x65)" (( "(") (binary_expression "(int)param_1 + 0x65" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1")) (+ "+") (number_literal "0x65")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar2 = param_1[0x17];" (assignment_expression "iVar2 = param_1[0x17]" (identifier "iVar2") (= "=") (subscript_expression "param_1[0x17]" (identifier "param_1") ([ "[") (number_literal "0x17") (] "]"))) (; ";")) (expression_statement "param_1[5] = 0;" (assignment_expression "param_1[5] = 0" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[1] = iVar2;" (assignment_expression "param_1[1] = iVar2" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar2")) (; ";")) (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 "param_1[3] = iVar2;" (assignment_expression "param_1[3] = iVar2" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[6] = 0;" (assignment_expression "param_1[6] = 0" (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[0x13] = param_1[0x11];" (assignment_expression "param_1[0x13] = param_1[0x11]" (subscript_expression "param_1[0x13]" (identifier "param_1") ([ "[") (number_literal "0x13") (] "]")) (= "=") (subscript_expression "param_1[0x11]" (identifier "param_1") ([ "[") (number_literal "0x11") (] "]"))) (; ";")) (expression_statement "param_1[0x14] = param_1[0x12];" (assignment_expression "param_1[0x14] = param_1[0x12]" (subscript_expression "param_1[0x14]" (identifier "param_1") ([ "[") (number_literal "0x14") (] "]")) (= "=") (subscript_expression "param_1[0x12]" (identifier "param_1") ([ "[") (number_literal "0x12") (] "]"))) (; ";")) (expression_statement "param_1[0x15] = param_1[0x11];" (assignment_expression "param_1[0x15] = param_1[0x11]" (subscript_expression "param_1[0x15]" (identifier "param_1") ([ "[") (number_literal "0x15") (] "]")) (= "=") (subscript_expression "param_1[0x11]" (identifier "param_1") ([ "[") (number_literal "0x11") (] "]"))) (; ";")) (expression_statement "param_1[0x16] = param_1[0x12];" (assignment_expression "param_1[0x16] = param_1[0x12]" (subscript_expression "param_1[0x16]" (identifier "param_1") ([ "[") (number_literal "0x16") (] "]")) (= "=") (subscript_expression "param_1[0x12]" (identifier "param_1") ([ "[") (number_literal "0x12") (] "]"))) (; ";")) (if_statement "if (((param_3 & 2) != 0) &&\n         ((**(code **)(*param_1 + 0x10))(local_2c,param_1,0,0,2,param_3),\n         (local_2c[0] & 0x1b4) == 0xffffffff)) {\n        FUN_00216e90(param_1);\n        return (int *)0x0;\n      }" (if "if") (parenthesized_expression "(((param_3 & 2) != 0) &&\n         ((**(code **)(*param_1 + 0x10))(local_2c,param_1,0,0,2,param_3),\n         (local_2c[0] & 0x1b4) == 0xffffffff))" (( "(") (binary_expression "((param_3 & 2) != 0) &&\n         ((**(code **)(*param_1 + 0x10))(local_2c,param_1,0,0,2,param_3),\n         (local_2c[0] & 0x1b4) == 0xffffffff)" (parenthesized_expression "((param_3 & 2) != 0)" (( "(") (binary_expression "(param_3 & 2) != 0" (parenthesized_expression "(param_3 & 2)" (( "(") (binary_expression "param_3 & 2" (identifier "param_3") (& "&") (number_literal "2")) () ")")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((**(code **)(*param_1 + 0x10))(local_2c,param_1,0,0,2,param_3),\n         (local_2c[0] & 0x1b4) == 0xffffffff)" (( "(") (comma_expression "(**(code **)(*param_1 + 0x10))(local_2c,param_1,0,0,2,param_3),\n         (local_2c[0] & 0x1b4) == 0xffffffff" (call_expression "(**(code **)(*param_1 + 0x10))(local_2c,param_1,0,0,2,param_3)" (parenthesized_expression "(**(code **)(*param_1 + 0x10))" (( "(") (pointer_expression "**(code **)(*param_1 + 0x10)" (* "*") (pointer_expression "*(code **)(*param_1 + 0x10)" (* "*") (cast_expression "(code **)(*param_1 + 0x10)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_1 + 0x10)" (( "(") (binary_expression "*param_1 + 0x10" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x10")) () ")"))))) () ")")) (argument_list "(local_2c,param_1,0,0,2,param_3)" (( "(") (identifier "local_2c") (, ",") (identifier "param_1") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (number_literal "2") (, ",") (identifier "param_3") () ")"))) (, ",") (binary_expression "(local_2c[0] & 0x1b4) == 0xffffffff" (parenthesized_expression "(local_2c[0] & 0x1b4)" (( "(") (binary_expression "local_2c[0] & 0x1b4" (subscript_expression "local_2c[0]" (identifier "local_2c") ([ "[") (number_literal "0") (] "]")) (& "&") (number_literal "0x1b4")) () ")")) (== "==") (number_literal "0xffffffff"))) () ")"))) () ")")) (compound_statement "{\n        FUN_00216e90(param_1);\n        return (int *)0x0;\n      }" ({ "{") (expression_statement "FUN_00216e90(param_1);" (call_expression "FUN_00216e90(param_1)" (identifier "FUN_00216e90") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (return_statement "return (int *)0x0;" (return "return") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (} "}"))) (return_statement "return (int *)0x0;" (return "return") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* std::filebuf::open(char const*, std::_Ios_Openmode) */

type_6 * __thiscall std::type_6::var_6(type_6 *var_3,char *param_1,type_3 var_8)

{
  var_1<var_2> *this_00;
  type_1 uVar1;
  char var_5;
  type_2 local_2c [6];
  type_1 uStack_14;
  
  uStack_14 = 0x217959;
  this_00 = (var_1<var_2> *)(var_3 + 0x38);
  var_5 = var_1<var_2>::var_4(this_00);
  if (var_5 == '\0') {
    var_1<var_2>::var_6((char *)this_00,(type_3)param_1,var_8);
    var_5 = var_1<var_2>::var_4(this_00);
    if (var_5 != '\0') {
      var_7(var_3);
      *(type_3 *)(var_3 + 0x40) = var_8;
      *(type_4 *)(var_3 + 0x65) = 0;
      uVar1 = *(type_1 *)(var_3 + 0x5c);
      *(type_1 *)(var_3 + 0x14) = 0;
      *(type_1 *)(var_3 + 4) = uVar1;
      *(type_1 *)(var_3 + 8) = uVar1;
      *(type_1 *)(var_3 + 0xc) = uVar1;
      *(type_1 *)(var_3 + 0x10) = 0;
      *(type_1 *)(var_3 + 0x18) = 0;
      *(type_1 *)(var_3 + 0x4c) = *(type_1 *)(var_3 + 0x44);
      *(type_1 *)(var_3 + 0x50) = *(type_1 *)(var_3 + 0x48);
      *(type_1 *)(var_3 + 0x54) = *(type_1 *)(var_3 + 0x44);
      *(type_1 *)(var_3 + 0x58) = *(type_1 *)(var_3 + 0x48);
      if (((var_8 & var_9) != ~(var_10|var_11)) &&
         ((**(type_5 **)(*(int *)var_3 + 0x10))(local_2c,var_3,0,0,2,var_8),
         (local_2c[0] & 0x1b4) == 0xffffffff)) {
        var_12(var_3);
        return (type_6 *)0x0;
      }
      return var_3;
    }
  }
  return (type_6 *)0x0;
}


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

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

int * MASKED(int *param_1,undefined4 param_2,uint param_3)

{
  int *piVar1;
  int iVar2;
  char cVar3;
  uint local_2c [6];
  undefined4 uStack_14;
  
  uStack_14 = 0x217959;
  piVar1 = param_1 + 0xe;
  cVar3 = FUN_001e73e0(piVar1);
  if (cVar3 == '\0') {
    FUN_001e74f0(piVar1,param_2,param_3);
    cVar3 = FUN_001e73e0(piVar1);
    if (cVar3 != '\0') {
      FUN_00213b70(param_1);
      param_1[0x10] = param_3;
      *(undefined2 *)((int)param_1 + 0x65) = 0;
      iVar2 = param_1[0x17];
      param_1[5] = 0;
      param_1[1] = iVar2;
      param_1[2] = iVar2;
      param_1[3] = iVar2;
      param_1[4] = 0;
      param_1[6] = 0;
      param_1[0x13] = param_1[0x11];
      param_1[0x14] = param_1[0x12];
      param_1[0x15] = param_1[0x11];
      param_1[0x16] = param_1[0x12];
      if (((param_3 & 2) != 0) &&
         ((**(code **)(*param_1 + 0x10))(local_2c,param_1,0,0,2,param_3),
         (local_2c[0] & 0x1b4) == 0xffffffff)) {
        FUN_00216e90(param_1);
        return (int *)0x0;
      }
      return param_1;
    }
  }
  return (int *)0x0;
}

