
/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* std::wistream& std::ws<wchar_t, std::char_traits<wchar_t> >(std::wistream&) */

wistream * std::ws<wchar_t,std::char_traits<wchar_t>>(wistream *param_1)

{
  int *piVar1;
  char cVar2;
  ctype *pcVar3;
  int *piVar4;
  int iVar5;
  locale local_20 [16];
  
  locale::locale(local_20,(locale *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x6c));
                    /* try { // try from 0020f50c to 0020f510 has its CatchHandler @ 0020f5e1 */
  pcVar3 = use_facet<std::ctype<wchar_t>>(local_20);
  locale::~locale(local_20);
  piVar1 = *(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c);
  piVar4 = (int *)piVar1[2];
  if ((int *)piVar1[3] <= piVar4) {
    iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1);
    goto joined_r0x0020f545;
  }
LAB_0020f540:
  iVar5 = *piVar4;
joined_r0x0020f545:
  do {
    if (iVar5 == -1) {
LAB_0020f590:
      wios::clear((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),
                  *(_Ios_Iostate *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) |
                  _S_eofbit);
      return param_1;
    }
    cVar2 = (**(code **)(*(int *)pcVar3 + 8))(pcVar3,0x2000,iVar5);
    if (cVar2 == '\0') {
      return param_1;
    }
    piVar4 = (int *)piVar1[2];
    if (piVar4 < (int *)piVar1[3]) {
      iVar5 = *piVar4;
      piVar1[2] = (int)(piVar4 + 1);
    }
    else {
      iVar5 = (**(code **)(*piVar1 + 0x28))(piVar1);
    }
    if (iVar5 == -1) goto LAB_0020f590;
    piVar4 = (int *)piVar1[2];
    if (piVar4 < (int *)piVar1[3]) goto LAB_0020f540;
    iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1);
  } while( true );
}



/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

int * FUN_0020f4d0(int *param_1)

{
  int *piVar1;
  char cVar2;
  int *piVar3;
  int *piVar4;
  int iVar5;
  undefined1 local_20 [16];
  
  FUN_001e8d40(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c);
                    /* try { // try from 0020f50c to 0020f510 has its CatchHandler @ 0020f5e1 */
  piVar3 = (int *)FUN_0023c1d0(local_20);
  FUN_001e9510(local_20);
  piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);
  piVar4 = (int *)piVar1[2];
  if ((int *)piVar1[3] <= piVar4) {
    iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1);
    goto joined_r0x0020f545;
  }
LAB_0020f540:
  iVar5 = *piVar4;
joined_r0x0020f545:
  do {
    if (iVar5 == -1) {
LAB_0020f590:
      iVar5 = *(int *)(*param_1 + -0xc) + (int)param_1;
      FUN_002116a0(iVar5,*(uint *)(iVar5 + 0x14) | 2);
      return param_1;
    }
    cVar2 = (**(code **)(*piVar3 + 8))(piVar3,0x2000,iVar5);
    if (cVar2 == '\0') {
      return param_1;
    }
    piVar4 = (int *)piVar1[2];
    if (piVar4 < (int *)piVar1[3]) {
      iVar5 = *piVar4;
      piVar1[2] = (int)(piVar4 + 1);
    }
    else {
      iVar5 = (**(code **)(*piVar1 + 0x28))(piVar1);
    }
    if (iVar5 == -1) goto LAB_0020f590;
    piVar4 = (int *)piVar1[2];
    if (piVar4 < (int *)piVar1[3]) goto LAB_0020f540;
    iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1);
  } while( true );
}


PUSH EBP
MOV EBP,ESP
PUSH EDI
PUSH ESI
CALL 0x000559ea
ADD ESI,0x17fb26
PUSH EBX
SUB ESP,0x34
MOV EDI,dword ptr [EBP + 0x8]
MOV EAX,dword ptr [EDI]
MOV EBX,ESI
MOV dword ptr [EBP + -0x30],ESI
MOV EDX,dword ptr [EAX + -0xc]
ADD EDX,EDI
MOV EAX,EDX
ADD EAX,0x6c
PUSH EAX
LEA EAX,[EBP + -0x1c]
PUSH EAX
MOV dword ptr [EBP + -0x2c],EAX
CALL 0x001e8d40
POP EDX
PUSH dword ptr [EBP + -0x2c]
MOV dword ptr [EBP + -0x30],ESI
CALL 0x0023c1d0
MOV ESI,EAX
POP EAX
MOV EBX,dword ptr [EBP + -0x30]
PUSH dword ptr [EBP + -0x2c]
CALL 0x001e9510
MOV EAX,dword ptr [EDI]
ADD ESP,0x10
MOV EAX,dword ptr [EAX + -0xc]
MOV EBX,dword ptr [EDI + EAX*0x1 + 0x7c]
MOV EAX,dword ptr [EBX + 0x8]
CMP dword ptr [EBX + 0xc],EAX
JBE 0x0020f5d0
LEA ESI,[ESI]
NOP
MOV EAX,dword ptr [EAX]
CMP EAX,-0x1
JZ 0x0020f590
SUB ESP,0x4
MOV EDX,dword ptr [ESI]
PUSH EAX
PUSH 0x2000
PUSH ESI
CALL dword ptr [EDX + 0x8]
ADD ESP,0x10
TEST AL,AL
JZ 0x0020f5ad
MOV EDX,dword ptr [EBX + 0x8]
CMP EDX,dword ptr [EBX + 0xc]
JNC 0x0020f5c0
MOV EAX,dword ptr [EDX]
ADD EDX,0x4
MOV dword ptr [EBX + 0x8],EDX
CMP EAX,-0x1
JZ 0x0020f590
MOV EAX,dword ptr [EBX + 0x8]
CMP EAX,dword ptr [EBX + 0xc]
JC 0x0020f540
SUB ESP,0xc
MOV EAX,dword ptr [EBX]
PUSH EBX
CALL dword ptr [EAX + 0x24]
ADD ESP,0x10
CMP EAX,-0x1
JNZ 0x0020f547
LEA ESI,[ESI]
NOP
MOV EAX,dword ptr [EDI]
SUB ESP,0x8
MOV EBX,dword ptr [EBP + -0x30]
MOV EDX,dword ptr [EAX + -0xc]
ADD EDX,EDI
MOV EAX,dword ptr [EDX + 0x14]
OR EAX,0x2
PUSH EAX
PUSH EDX
CALL 0x002116a0
ADD ESP,0x10
LEA ESP,[EBP + -0xc]
MOV EAX,EDI
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
MOV EAX,dword ptr [EBX]
PUSH EBX
CALL dword ptr [EAX + 0x28]
ADD ESP,0x10
JMP 0x0020f56d
SUB ESP,0xc
MOV EAX,dword ptr [EBX]
PUSH EBX
CALL dword ptr [EAX + 0x24]
ADD ESP,0x10
JMP 0x0020f542
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nint * FUN_0020f4d0(int *param_1)\n\n{\n  int *piVar1;\n  char cVar2;\n  int *piVar3;\n  int *piVar4;\n  int iVar5;\n  undefined1 local_20 [16];\n  \n  FUN_001e8d40(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c);\n                    /* try { // try from 0020f50c to 0020f510 has its CatchHandler @ 0020f5e1 */\n  piVar3 = (int *)FUN_0023c1d0(local_20);\n  FUN_001e9510(local_20);\n  piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n  piVar4 = (int *)piVar1[2];\n  if ((int *)piVar1[3] <= piVar4) {\n    iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1);\n    goto joined_r0x0020f545;\n  }\nLAB_0020f540:\n  iVar5 = *piVar4;\njoined_r0x0020f545:\n  do {\n    if (iVar5 == -1) {\nLAB_0020f590:\n      iVar5 = *(int *)(*param_1 + -0xc) + (int)param_1;\n      FUN_002116a0(iVar5,*(uint *)(iVar5 + 0x14) | 2);\n      return param_1;\n    }\n    cVar2 = (**(code **)(*piVar3 + 8))(piVar3,0x2000,iVar5);\n    if (cVar2 == '\0') {\n      return param_1;\n    }\n    piVar4 = (int *)piVar1[2];\n    if (piVar4 < (int *)piVar1[3]) {\n      iVar5 = *piVar4;\n      piVar1[2] = (int)(piVar4 + 1);\n    }\n    else {\n      iVar5 = (**(code **)(*piVar1 + 0x28))(piVar1);\n    }\n    if (iVar5 == -1) goto LAB_0020f590;\n    piVar4 = (int *)piVar1[2];\n    if (piVar4 < (int *)piVar1[3]) goto LAB_0020f540;\n    iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  } while( true );\n}\n\n" comment (function_definition "int * FUN_0020f4d0(int *param_1)\n\n{\n  int *piVar1;\n  char cVar2;\n  int *piVar3;\n  int *piVar4;\n  int iVar5;\n  undefined1 local_20 [16];\n  \n  FUN_001e8d40(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c);\n                    /* try { // try from 0020f50c to 0020f510 has its CatchHandler @ 0020f5e1 */\n  piVar3 = (int *)FUN_0023c1d0(local_20);\n  FUN_001e9510(local_20);\n  piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n  piVar4 = (int *)piVar1[2];\n  if ((int *)piVar1[3] <= piVar4) {\n    iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1);\n    goto joined_r0x0020f545;\n  }\nLAB_0020f540:\n  iVar5 = *piVar4;\njoined_r0x0020f545:\n  do {\n    if (iVar5 == -1) {\nLAB_0020f590:\n      iVar5 = *(int *)(*param_1 + -0xc) + (int)param_1;\n      FUN_002116a0(iVar5,*(uint *)(iVar5 + 0x14) | 2);\n      return param_1;\n    }\n    cVar2 = (**(code **)(*piVar3 + 8))(piVar3,0x2000,iVar5);\n    if (cVar2 == '\0') {\n      return param_1;\n    }\n    piVar4 = (int *)piVar1[2];\n    if (piVar4 < (int *)piVar1[3]) {\n      iVar5 = *piVar4;\n      piVar1[2] = (int)(piVar4 + 1);\n    }\n    else {\n      iVar5 = (**(code **)(*piVar1 + 0x28))(piVar1);\n    }\n    if (iVar5 == -1) goto LAB_0020f590;\n    piVar4 = (int *)piVar1[2];\n    if (piVar4 < (int *)piVar1[3]) goto LAB_0020f540;\n    iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  } while( true );\n}" primitive_type (pointer_declarator "* FUN_0020f4d0(int *param_1)" * (function_declarator "FUN_0020f4d0(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  int *piVar1;\n  char cVar2;\n  int *piVar3;\n  int *piVar4;\n  int iVar5;\n  undefined1 local_20 [16];\n  \n  FUN_001e8d40(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c);\n                    /* try { // try from 0020f50c to 0020f510 has its CatchHandler @ 0020f5e1 */\n  piVar3 = (int *)FUN_0023c1d0(local_20);\n  FUN_001e9510(local_20);\n  piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n  piVar4 = (int *)piVar1[2];\n  if ((int *)piVar1[3] <= piVar4) {\n    iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1);\n    goto joined_r0x0020f545;\n  }\nLAB_0020f540:\n  iVar5 = *piVar4;\njoined_r0x0020f545:\n  do {\n    if (iVar5 == -1) {\nLAB_0020f590:\n      iVar5 = *(int *)(*param_1 + -0xc) + (int)param_1;\n      FUN_002116a0(iVar5,*(uint *)(iVar5 + 0x14) | 2);\n      return param_1;\n    }\n    cVar2 = (**(code **)(*piVar3 + 8))(piVar3,0x2000,iVar5);\n    if (cVar2 == '\0') {\n      return param_1;\n    }\n    piVar4 = (int *)piVar1[2];\n    if (piVar4 < (int *)piVar1[3]) {\n      iVar5 = *piVar4;\n      piVar1[2] = (int)(piVar4 + 1);\n    }\n    else {\n      iVar5 = (**(code **)(*piVar1 + 0x28))(piVar1);\n    }\n    if (iVar5 == -1) goto LAB_0020f590;\n    piVar4 = (int *)piVar1[2];\n    if (piVar4 < (int *)piVar1[3]) goto LAB_0020f540;\n    iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  } while( true );\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined1 local_20 [16];" type_identifier (array_declarator "local_20 [16]" identifier [ number_literal ]) ;) (expression_statement "FUN_001e8d40(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c);" (call_expression "FUN_001e8d40(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c)" identifier (argument_list "(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c)" ( identifier , (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c" (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (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) ))))) + number_literal) ))) ;) comment (expression_statement "piVar3 = (int *)FUN_0023c1d0(local_20);" (assignment_expression "piVar3 = (int *)FUN_0023c1d0(local_20)" identifier = (cast_expression "(int *)FUN_0023c1d0(local_20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0023c1d0(local_20)" identifier (argument_list "(local_20)" ( identifier ))))) ;) (expression_statement "FUN_001e9510(local_20);" (call_expression "FUN_001e9510(local_20)" identifier (argument_list "(local_20)" ( identifier ))) ;) (expression_statement "piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);" (assignment_expression "piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c)" identifier = (pointer_expression "*(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c)" * (cast_expression "(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c)" ( (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c" (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (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) ))))) + number_literal) ))))) ;) (expression_statement "piVar4 = (int *)piVar1[2];" (assignment_expression "piVar4 = (int *)piVar1[2]" identifier = (cast_expression "(int *)piVar1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ]))) ;) (if_statement "if ((int *)piVar1[3] <= piVar4) {\n    iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1);\n    goto joined_r0x0020f545;\n  }" if (parenthesized_expression "((int *)piVar1[3] <= piVar4)" ( (binary_expression "(int *)piVar1[3] <= piVar4" (cast_expression "(int *)piVar1[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ])) <= identifier) )) (compound_statement "{\n    iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1);\n    goto joined_r0x0020f545;\n  }" { (expression_statement "iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1)" identifier = (call_expression "(**(code **)(*piVar1 + 0x24))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x24))" ( (pointer_expression "**(code **)(*piVar1 + 0x24)" * (pointer_expression "*(code **)(*piVar1 + 0x24)" * (cast_expression "(code **)(*piVar1 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x24)" ( (binary_expression "*piVar1 + 0x24" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier )))) ;) (goto_statement "goto joined_r0x0020f545;" goto statement_identifier ;) })) (labeled_statement "LAB_0020f540:\n  iVar5 = *piVar4;" statement_identifier : (expression_statement "iVar5 = *piVar4;" (assignment_expression "iVar5 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;)) (labeled_statement "joined_r0x0020f545:\n  do {\n    if (iVar5 == -1) {\nLAB_0020f590:\n      iVar5 = *(int *)(*param_1 + -0xc) + (int)param_1;\n      FUN_002116a0(iVar5,*(uint *)(iVar5 + 0x14) | 2);\n      return param_1;\n    }\n    cVar2 = (**(code **)(*piVar3 + 8))(piVar3,0x2000,iVar5);\n    if (cVar2 == '\0') {\n      return param_1;\n    }\n    piVar4 = (int *)piVar1[2];\n    if (piVar4 < (int *)piVar1[3]) {\n      iVar5 = *piVar4;\n      piVar1[2] = (int)(piVar4 + 1);\n    }\n    else {\n      iVar5 = (**(code **)(*piVar1 + 0x28))(piVar1);\n    }\n    if (iVar5 == -1) goto LAB_0020f590;\n    piVar4 = (int *)piVar1[2];\n    if (piVar4 < (int *)piVar1[3]) goto LAB_0020f540;\n    iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  } while( true );" statement_identifier : (do_statement "do {\n    if (iVar5 == -1) {\nLAB_0020f590:\n      iVar5 = *(int *)(*param_1 + -0xc) + (int)param_1;\n      FUN_002116a0(iVar5,*(uint *)(iVar5 + 0x14) | 2);\n      return param_1;\n    }\n    cVar2 = (**(code **)(*piVar3 + 8))(piVar3,0x2000,iVar5);\n    if (cVar2 == '\0') {\n      return param_1;\n    }\n    piVar4 = (int *)piVar1[2];\n    if (piVar4 < (int *)piVar1[3]) {\n      iVar5 = *piVar4;\n      piVar1[2] = (int)(piVar4 + 1);\n    }\n    else {\n      iVar5 = (**(code **)(*piVar1 + 0x28))(piVar1);\n    }\n    if (iVar5 == -1) goto LAB_0020f590;\n    piVar4 = (int *)piVar1[2];\n    if (piVar4 < (int *)piVar1[3]) goto LAB_0020f540;\n    iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  } while( true );" do (compound_statement "{\n    if (iVar5 == -1) {\nLAB_0020f590:\n      iVar5 = *(int *)(*param_1 + -0xc) + (int)param_1;\n      FUN_002116a0(iVar5,*(uint *)(iVar5 + 0x14) | 2);\n      return param_1;\n    }\n    cVar2 = (**(code **)(*piVar3 + 8))(piVar3,0x2000,iVar5);\n    if (cVar2 == '\0') {\n      return param_1;\n    }\n    piVar4 = (int *)piVar1[2];\n    if (piVar4 < (int *)piVar1[3]) {\n      iVar5 = *piVar4;\n      piVar1[2] = (int)(piVar4 + 1);\n    }\n    else {\n      iVar5 = (**(code **)(*piVar1 + 0x28))(piVar1);\n    }\n    if (iVar5 == -1) goto LAB_0020f590;\n    piVar4 = (int *)piVar1[2];\n    if (piVar4 < (int *)piVar1[3]) goto LAB_0020f540;\n    iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  }" { (if_statement "if (iVar5 == -1) {\nLAB_0020f590:\n      iVar5 = *(int *)(*param_1 + -0xc) + (int)param_1;\n      FUN_002116a0(iVar5,*(uint *)(iVar5 + 0x14) | 2);\n      return param_1;\n    }" if (parenthesized_expression "(iVar5 == -1)" ( (binary_expression "iVar5 == -1" identifier == number_literal) )) (compound_statement "{\nLAB_0020f590:\n      iVar5 = *(int *)(*param_1 + -0xc) + (int)param_1;\n      FUN_002116a0(iVar5,*(uint *)(iVar5 + 0x14) | 2);\n      return param_1;\n    }" { (labeled_statement "LAB_0020f590:\n      iVar5 = *(int *)(*param_1 + -0xc) + (int)param_1;" statement_identifier : (expression_statement "iVar5 = *(int *)(*param_1 + -0xc) + (int)param_1;" (assignment_expression "iVar5 = *(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))) ;)) (expression_statement "FUN_002116a0(iVar5,*(uint *)(iVar5 + 0x14) | 2);" (call_expression "FUN_002116a0(iVar5,*(uint *)(iVar5 + 0x14) | 2)" identifier (argument_list "(iVar5,*(uint *)(iVar5 + 0x14) | 2)" ( identifier , (binary_expression "*(uint *)(iVar5 + 0x14) | 2" (pointer_expression "*(uint *)(iVar5 + 0x14)" * (cast_expression "(uint *)(iVar5 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x14)" ( (binary_expression "iVar5 + 0x14" identifier + number_literal) )))) | number_literal) ))) ;) (return_statement "return param_1;" return identifier ;) })) (expression_statement "cVar2 = (**(code **)(*piVar3 + 8))(piVar3,0x2000,iVar5);" (assignment_expression "cVar2 = (**(code **)(*piVar3 + 8))(piVar3,0x2000,iVar5)" identifier = (call_expression "(**(code **)(*piVar3 + 8))(piVar3,0x2000,iVar5)" (parenthesized_expression "(**(code **)(*piVar3 + 8))" ( (pointer_expression "**(code **)(*piVar3 + 8)" * (pointer_expression "*(code **)(*piVar3 + 8)" * (cast_expression "(code **)(*piVar3 + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar3 + 8)" ( (binary_expression "*piVar3 + 8" (pointer_expression "*piVar3" * identifier) + number_literal) ))))) )) (argument_list "(piVar3,0x2000,iVar5)" ( identifier , number_literal , identifier )))) ;) (if_statement "if (cVar2 == '\0') {\n      return param_1;\n    }" if (parenthesized_expression "(cVar2 == '\0')" ( (binary_expression "cVar2 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      return param_1;\n    }" { (return_statement "return param_1;" return identifier ;) })) (expression_statement "piVar4 = (int *)piVar1[2];" (assignment_expression "piVar4 = (int *)piVar1[2]" identifier = (cast_expression "(int *)piVar1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ]))) ;) (if_statement "if (piVar4 < (int *)piVar1[3]) {\n      iVar5 = *piVar4;\n      piVar1[2] = (int)(piVar4 + 1);\n    }\n    else {\n      iVar5 = (**(code **)(*piVar1 + 0x28))(piVar1);\n    }" if (parenthesized_expression "(piVar4 < (int *)piVar1[3])" ( (binary_expression "piVar4 < (int *)piVar1[3]" identifier < (cast_expression "(int *)piVar1[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ]))) )) (compound_statement "{\n      iVar5 = *piVar4;\n      piVar1[2] = (int)(piVar4 + 1);\n    }" { (expression_statement "iVar5 = *piVar4;" (assignment_expression "iVar5 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) (expression_statement "piVar1[2] = (int)(piVar4 + 1);" (assignment_expression "piVar1[2] = (int)(piVar4 + 1)" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = (cast_expression "(int)(piVar4 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(piVar4 + 1)" ( (binary_expression "piVar4 + 1" identifier + number_literal) )))) ;) }) (else_clause "else {\n      iVar5 = (**(code **)(*piVar1 + 0x28))(piVar1);\n    }" else (compound_statement "{\n      iVar5 = (**(code **)(*piVar1 + 0x28))(piVar1);\n    }" { (expression_statement "iVar5 = (**(code **)(*piVar1 + 0x28))(piVar1);" (assignment_expression "iVar5 = (**(code **)(*piVar1 + 0x28))(piVar1)" identifier = (call_expression "(**(code **)(*piVar1 + 0x28))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x28))" ( (pointer_expression "**(code **)(*piVar1 + 0x28)" * (pointer_expression "*(code **)(*piVar1 + 0x28)" * (cast_expression "(code **)(*piVar1 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x28)" ( (binary_expression "*piVar1 + 0x28" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier )))) ;) }))) (if_statement "if (iVar5 == -1) goto LAB_0020f590;" if (parenthesized_expression "(iVar5 == -1)" ( (binary_expression "iVar5 == -1" identifier == number_literal) )) (goto_statement "goto LAB_0020f590;" goto statement_identifier ;)) (expression_statement "piVar4 = (int *)piVar1[2];" (assignment_expression "piVar4 = (int *)piVar1[2]" identifier = (cast_expression "(int *)piVar1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ]))) ;) (if_statement "if (piVar4 < (int *)piVar1[3]) goto LAB_0020f540;" if (parenthesized_expression "(piVar4 < (int *)piVar1[3])" ( (binary_expression "piVar4 < (int *)piVar1[3]" identifier < (cast_expression "(int *)piVar1[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ]))) )) (goto_statement "goto LAB_0020f540;" goto statement_identifier ;)) (expression_statement "iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1)" identifier = (call_expression "(**(code **)(*piVar1 + 0x24))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x24))" ( (pointer_expression "**(code **)(*piVar1 + 0x24)" * (pointer_expression "*(code **)(*piVar1 + 0x24)" * (cast_expression "(code **)(*piVar1 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x24)" ( (binary_expression "*piVar1 + 0x24" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier )))) ;) }) while (parenthesized_expression "( true )" ( true )) ;)) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n/* WARNING: Unknown calling convention -- yet parameter storage is locked */\n/* std::wistream& std::ws<wchar_t, std::char_traits<wchar_t> >(std::wistream&) */\n\nwistream * std::ws<wchar_t,std::char_traits<wchar_t>>(wistream *param_1)\n\n{\n  int *piVar1;\n  char cVar2;\n  ctype *pcVar3;\n  int *piVar4;\n  int iVar5;\n  locale local_20 [16];\n  \n  locale::locale(local_20,(locale *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x6c));\n                    /* try { // try from 0020f50c to 0020f510 has its CatchHandler @ 0020f5e1 */\n  pcVar3 = use_facet<std::ctype<wchar_t>>(local_20);\n  locale::~locale(local_20);\n  piVar1 = *(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c);\n  piVar4 = (int *)piVar1[2];\n  if ((int *)piVar1[3] <= piVar4) {\n    iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1);\n    goto joined_r0x0020f545;\n  }\nLAB_0020f540:\n  iVar5 = *piVar4;\njoined_r0x0020f545:\n  do {\n    if (iVar5 == -1) {\nLAB_0020f590:\n      wios::clear((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                  *(_Ios_Iostate *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) |\n                  _S_eofbit);\n      return param_1;\n    }\n    cVar2 = (**(code **)(*(int *)pcVar3 + 8))(pcVar3,0x2000,iVar5);\n    if (cVar2 == '\0') {\n      return param_1;\n    }\n    piVar4 = (int *)piVar1[2];\n    if (piVar4 < (int *)piVar1[3]) {\n      iVar5 = *piVar4;\n      piVar1[2] = (int)(piVar4 + 1);\n    }\n    else {\n      iVar5 = (**(code **)(*piVar1 + 0x28))(piVar1);\n    }\n    if (iVar5 == -1) goto LAB_0020f590;\n    piVar4 = (int *)piVar1[2];\n    if (piVar4 < (int *)piVar1[3]) goto LAB_0020f540;\n    iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  } while( true );\n}\n\n" comment comment comment (ERROR "wistream * std::ws<wchar_t," (binary_expression "wistream * std::ws<wchar_t" (binary_expression "wistream * std" identifier * identifier) (ERROR "::ws" : : identifier) < identifier) ,) (labeled_statement "std::char_traits<wchar_t>>(wistream *param_1)\n\n{\n  int *piVar1;\n  char cVar2;\n  ctype *pcVar3;\n  int *piVar4;\n  int iVar5;\n  locale local_20 [16];\n  \n  locale::locale(local_20,(locale *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x6c));\n                    /* try { // try from 0020f50c to 0020f510 has its CatchHandler @ 0020f5e1 */\n  pcVar3 = use_facet<std::ctype<wchar_t>>(local_20);\n  locale::~locale(local_20);\n  piVar1 = *(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c);\n  piVar4 = (int *)piVar1[2];\n  if ((int *)piVar1[3] <= piVar4) {\n    iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1);\n    goto joined_r0x0020f545;\n  }\nLAB_0020f540:\n  iVar5 = *piVar4;\njoined_r0x0020f545:\n  do {\n    if (iVar5 == -1) {\nLAB_0020f590:\n      wios::clear((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                  *(_Ios_Iostate *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) |\n                  _S_eofbit);\n      return param_1;\n    }\n    cVar2 = (**(code **)(*(int *)pcVar3 + 8))(pcVar3,0x2000,iVar5);\n    if (cVar2 == '\0') {\n      return param_1;\n    }\n    piVar4 = (int *)piVar1[2];\n    if (piVar4 < (int *)piVar1[3]) {\n      iVar5 = *piVar4;\n      piVar1[2] = (int)(piVar4 + 1);\n    }\n    else {\n      iVar5 = (**(code **)(*piVar1 + 0x28))(piVar1);\n    }\n    if (iVar5 == -1) goto LAB_0020f590;\n    piVar4 = (int *)piVar1[2];\n    if (piVar4 < (int *)piVar1[3]) goto LAB_0020f540;\n    iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  } while( true );\n}" statement_identifier : (ERROR ":char_traits<wchar_t>>(wistream *param_1)" : (binary_expression "char_traits<wchar_t>>(wistream *param_1)" identifier < (binary_expression "wchar_t>>(wistream *param_1)" identifier >> (parenthesized_expression "(wistream *param_1)" ( (binary_expression "wistream *param_1" identifier * identifier) ))))) (compound_statement "{\n  int *piVar1;\n  char cVar2;\n  ctype *pcVar3;\n  int *piVar4;\n  int iVar5;\n  locale local_20 [16];\n  \n  locale::locale(local_20,(locale *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x6c));\n                    /* try { // try from 0020f50c to 0020f510 has its CatchHandler @ 0020f5e1 */\n  pcVar3 = use_facet<std::ctype<wchar_t>>(local_20);\n  locale::~locale(local_20);\n  piVar1 = *(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c);\n  piVar4 = (int *)piVar1[2];\n  if ((int *)piVar1[3] <= piVar4) {\n    iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1);\n    goto joined_r0x0020f545;\n  }\nLAB_0020f540:\n  iVar5 = *piVar4;\njoined_r0x0020f545:\n  do {\n    if (iVar5 == -1) {\nLAB_0020f590:\n      wios::clear((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                  *(_Ios_Iostate *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) |\n                  _S_eofbit);\n      return param_1;\n    }\n    cVar2 = (**(code **)(*(int *)pcVar3 + 8))(pcVar3,0x2000,iVar5);\n    if (cVar2 == '\0') {\n      return param_1;\n    }\n    piVar4 = (int *)piVar1[2];\n    if (piVar4 < (int *)piVar1[3]) {\n      iVar5 = *piVar4;\n      piVar1[2] = (int)(piVar4 + 1);\n    }\n    else {\n      iVar5 = (**(code **)(*piVar1 + 0x28))(piVar1);\n    }\n    if (iVar5 == -1) goto LAB_0020f590;\n    piVar4 = (int *)piVar1[2];\n    if (piVar4 < (int *)piVar1[3]) goto LAB_0020f540;\n    iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  } while( true );\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "ctype *pcVar3;" type_identifier (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "locale local_20 [16];" type_identifier (array_declarator "local_20 [16]" identifier [ number_literal ]) ;) (labeled_statement "locale::locale(local_20,(locale *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x6c));" statement_identifier : (ERROR ":" :) (expression_statement "locale(local_20,(locale *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x6c));" (call_expression "locale(local_20,(locale *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x6c))" identifier (argument_list "(local_20,(locale *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x6c))" ( identifier , (cast_expression "(locale *)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x6c)" ( (type_descriptor "locale *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x6c)" ( (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x6c" (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" * (cast_expression "(int *)(*(int *)param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + -0xc)" ( (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) + number_literal) ))) ))) ;)) comment (expression_statement "pcVar3 = use_facet<std::ctype<wchar_t>>(local_20);" (binary_expression "pcVar3 = use_facet<std::ctype<wchar_t>>(local_20)" (assignment_expression "pcVar3 = use_facet<std" identifier = (binary_expression "use_facet<std" identifier < identifier)) (ERROR "::ctype" : : identifier) < (binary_expression "wchar_t>>(local_20)" identifier >> (parenthesized_expression "(local_20)" ( identifier )))) ;) (labeled_statement "locale::~locale(local_20);" statement_identifier : (ERROR ":" :) (expression_statement "~locale(local_20);" (unary_expression "~locale(local_20)" ~ (call_expression "locale(local_20)" identifier (argument_list "(local_20)" ( identifier )))) ;)) (expression_statement "piVar1 = *(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c);" (assignment_expression "piVar1 = *(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c)" identifier = (pointer_expression "*(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c)" * (cast_expression "(int **)(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c)" ( (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc) + 0x7c" (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" * (cast_expression "(int *)(*(int *)param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + -0xc)" ( (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) + number_literal) ))))) ;) (expression_statement "piVar4 = (int *)piVar1[2];" (assignment_expression "piVar4 = (int *)piVar1[2]" identifier = (cast_expression "(int *)piVar1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ]))) ;) (if_statement "if ((int *)piVar1[3] <= piVar4) {\n    iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1);\n    goto joined_r0x0020f545;\n  }" if (parenthesized_expression "((int *)piVar1[3] <= piVar4)" ( (binary_expression "(int *)piVar1[3] <= piVar4" (cast_expression "(int *)piVar1[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ])) <= identifier) )) (compound_statement "{\n    iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1);\n    goto joined_r0x0020f545;\n  }" { (expression_statement "iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1)" identifier = (call_expression "(**(code **)(*piVar1 + 0x24))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x24))" ( (pointer_expression "**(code **)(*piVar1 + 0x24)" * (pointer_expression "*(code **)(*piVar1 + 0x24)" * (cast_expression "(code **)(*piVar1 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x24)" ( (binary_expression "*piVar1 + 0x24" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier )))) ;) (goto_statement "goto joined_r0x0020f545;" goto statement_identifier ;) })) (labeled_statement "LAB_0020f540:\n  iVar5 = *piVar4;" statement_identifier : (expression_statement "iVar5 = *piVar4;" (assignment_expression "iVar5 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;)) (labeled_statement "joined_r0x0020f545:\n  do {\n    if (iVar5 == -1) {\nLAB_0020f590:\n      wios::clear((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                  *(_Ios_Iostate *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) |\n                  _S_eofbit);\n      return param_1;\n    }\n    cVar2 = (**(code **)(*(int *)pcVar3 + 8))(pcVar3,0x2000,iVar5);\n    if (cVar2 == '\0') {\n      return param_1;\n    }\n    piVar4 = (int *)piVar1[2];\n    if (piVar4 < (int *)piVar1[3]) {\n      iVar5 = *piVar4;\n      piVar1[2] = (int)(piVar4 + 1);\n    }\n    else {\n      iVar5 = (**(code **)(*piVar1 + 0x28))(piVar1);\n    }\n    if (iVar5 == -1) goto LAB_0020f590;\n    piVar4 = (int *)piVar1[2];\n    if (piVar4 < (int *)piVar1[3]) goto LAB_0020f540;\n    iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  } while( true );" statement_identifier : (do_statement "do {\n    if (iVar5 == -1) {\nLAB_0020f590:\n      wios::clear((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                  *(_Ios_Iostate *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) |\n                  _S_eofbit);\n      return param_1;\n    }\n    cVar2 = (**(code **)(*(int *)pcVar3 + 8))(pcVar3,0x2000,iVar5);\n    if (cVar2 == '\0') {\n      return param_1;\n    }\n    piVar4 = (int *)piVar1[2];\n    if (piVar4 < (int *)piVar1[3]) {\n      iVar5 = *piVar4;\n      piVar1[2] = (int)(piVar4 + 1);\n    }\n    else {\n      iVar5 = (**(code **)(*piVar1 + 0x28))(piVar1);\n    }\n    if (iVar5 == -1) goto LAB_0020f590;\n    piVar4 = (int *)piVar1[2];\n    if (piVar4 < (int *)piVar1[3]) goto LAB_0020f540;\n    iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  } while( true );" do (compound_statement "{\n    if (iVar5 == -1) {\nLAB_0020f590:\n      wios::clear((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                  *(_Ios_Iostate *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) |\n                  _S_eofbit);\n      return param_1;\n    }\n    cVar2 = (**(code **)(*(int *)pcVar3 + 8))(pcVar3,0x2000,iVar5);\n    if (cVar2 == '\0') {\n      return param_1;\n    }\n    piVar4 = (int *)piVar1[2];\n    if (piVar4 < (int *)piVar1[3]) {\n      iVar5 = *piVar4;\n      piVar1[2] = (int)(piVar4 + 1);\n    }\n    else {\n      iVar5 = (**(code **)(*piVar1 + 0x28))(piVar1);\n    }\n    if (iVar5 == -1) goto LAB_0020f590;\n    piVar4 = (int *)piVar1[2];\n    if (piVar4 < (int *)piVar1[3]) goto LAB_0020f540;\n    iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  }" { (if_statement "if (iVar5 == -1) {\nLAB_0020f590:\n      wios::clear((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                  *(_Ios_Iostate *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) |\n                  _S_eofbit);\n      return param_1;\n    }" if (parenthesized_expression "(iVar5 == -1)" ( (binary_expression "iVar5 == -1" identifier == number_literal) )) (compound_statement "{\nLAB_0020f590:\n      wios::clear((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                  *(_Ios_Iostate *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) |\n                  _S_eofbit);\n      return param_1;\n    }" { (labeled_statement "LAB_0020f590:\n      wios::clear((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                  *(_Ios_Iostate *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) |\n                  _S_eofbit);" statement_identifier : (labeled_statement "wios::clear((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                  *(_Ios_Iostate *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) |\n                  _S_eofbit);" statement_identifier : (ERROR ":" :) (expression_statement "clear((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                  *(_Ios_Iostate *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) |\n                  _S_eofbit);" (call_expression "clear((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                  *(_Ios_Iostate *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) |\n                  _S_eofbit)" identifier (argument_list "((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)),\n                  *(_Ios_Iostate *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) |\n                  _S_eofbit)" ( (cast_expression "(wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc))" ( (type_descriptor "wios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc))" ( (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" * (cast_expression "(int *)(*(int *)param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + -0xc)" ( (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ))) , (binary_expression "*(_Ios_Iostate *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14) |\n                  _S_eofbit" (pointer_expression "*(_Ios_Iostate *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14)" * (cast_expression "(_Ios_Iostate *)((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14)" ( (type_descriptor "_Ios_Iostate *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14)" ( (binary_expression "(wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc)) + 0x14" (cast_expression "(wios *)(param_1 + *(int *)(*(int *)param_1 + -0xc))" ( (type_descriptor "wios *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + *(int *)(*(int *)param_1 + -0xc))" ( (binary_expression "param_1 + *(int *)(*(int *)param_1 + -0xc)" identifier + (pointer_expression "*(int *)(*(int *)param_1 + -0xc)" * (cast_expression "(int *)(*(int *)param_1 + -0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)param_1 + -0xc)" ( (binary_expression "*(int *)param_1 + -0xc" (pointer_expression "*(int *)param_1" * (cast_expression "(int *)param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ))) + number_literal) )))) | identifier) ))) ;))) (return_statement "return param_1;" return identifier ;) })) (expression_statement "cVar2 = (**(code **)(*(int *)pcVar3 + 8))(pcVar3,0x2000,iVar5);" (assignment_expression "cVar2 = (**(code **)(*(int *)pcVar3 + 8))(pcVar3,0x2000,iVar5)" identifier = (call_expression "(**(code **)(*(int *)pcVar3 + 8))(pcVar3,0x2000,iVar5)" (parenthesized_expression "(**(code **)(*(int *)pcVar3 + 8))" ( (pointer_expression "**(code **)(*(int *)pcVar3 + 8)" * (pointer_expression "*(code **)(*(int *)pcVar3 + 8)" * (cast_expression "(code **)(*(int *)pcVar3 + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)pcVar3 + 8)" ( (binary_expression "*(int *)pcVar3 + 8" (pointer_expression "*(int *)pcVar3" * (cast_expression "(int *)pcVar3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )) (argument_list "(pcVar3,0x2000,iVar5)" ( identifier , number_literal , identifier )))) ;) (if_statement "if (cVar2 == '\0') {\n      return param_1;\n    }" if (parenthesized_expression "(cVar2 == '\0')" ( (binary_expression "cVar2 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      return param_1;\n    }" { (return_statement "return param_1;" return identifier ;) })) (expression_statement "piVar4 = (int *)piVar1[2];" (assignment_expression "piVar4 = (int *)piVar1[2]" identifier = (cast_expression "(int *)piVar1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ]))) ;) (if_statement "if (piVar4 < (int *)piVar1[3]) {\n      iVar5 = *piVar4;\n      piVar1[2] = (int)(piVar4 + 1);\n    }\n    else {\n      iVar5 = (**(code **)(*piVar1 + 0x28))(piVar1);\n    }" if (parenthesized_expression "(piVar4 < (int *)piVar1[3])" ( (binary_expression "piVar4 < (int *)piVar1[3]" identifier < (cast_expression "(int *)piVar1[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ]))) )) (compound_statement "{\n      iVar5 = *piVar4;\n      piVar1[2] = (int)(piVar4 + 1);\n    }" { (expression_statement "iVar5 = *piVar4;" (assignment_expression "iVar5 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) (expression_statement "piVar1[2] = (int)(piVar4 + 1);" (assignment_expression "piVar1[2] = (int)(piVar4 + 1)" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = (cast_expression "(int)(piVar4 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(piVar4 + 1)" ( (binary_expression "piVar4 + 1" identifier + number_literal) )))) ;) }) (else_clause "else {\n      iVar5 = (**(code **)(*piVar1 + 0x28))(piVar1);\n    }" else (compound_statement "{\n      iVar5 = (**(code **)(*piVar1 + 0x28))(piVar1);\n    }" { (expression_statement "iVar5 = (**(code **)(*piVar1 + 0x28))(piVar1);" (assignment_expression "iVar5 = (**(code **)(*piVar1 + 0x28))(piVar1)" identifier = (call_expression "(**(code **)(*piVar1 + 0x28))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x28))" ( (pointer_expression "**(code **)(*piVar1 + 0x28)" * (pointer_expression "*(code **)(*piVar1 + 0x28)" * (cast_expression "(code **)(*piVar1 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x28)" ( (binary_expression "*piVar1 + 0x28" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier )))) ;) }))) (if_statement "if (iVar5 == -1) goto LAB_0020f590;" if (parenthesized_expression "(iVar5 == -1)" ( (binary_expression "iVar5 == -1" identifier == number_literal) )) (goto_statement "goto LAB_0020f590;" goto statement_identifier ;)) (expression_statement "piVar4 = (int *)piVar1[2];" (assignment_expression "piVar4 = (int *)piVar1[2]" identifier = (cast_expression "(int *)piVar1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ]))) ;) (if_statement "if (piVar4 < (int *)piVar1[3]) goto LAB_0020f540;" if (parenthesized_expression "(piVar4 < (int *)piVar1[3])" ( (binary_expression "piVar4 < (int *)piVar1[3]" identifier < (cast_expression "(int *)piVar1[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ]))) )) (goto_statement "goto LAB_0020f540;" goto statement_identifier ;)) (expression_statement "iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1)" identifier = (call_expression "(**(code **)(*piVar1 + 0x24))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x24))" ( (pointer_expression "**(code **)(*piVar1 + 0x24)" * (pointer_expression "*(code **)(*piVar1 + 0x24)" * (cast_expression "(code **)(*piVar1 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x24)" ( (binary_expression "*piVar1 + 0x24" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier )))) ;) }) while (parenthesized_expression "( true )" ( true )) ;)) })))
(translation_unit "int * FUN_0020f4d0(int *param_1)\n\n{\n  int *piVar1;\n  char cVar2;\n  int *piVar3;\n  int *piVar4;\n  int iVar5;\n  undefined1 local_20 [16];\n  \n  FUN_001e8d40(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c);\n                    \n  piVar3 = (int *)FUN_0023c1d0(local_20);\n  FUN_001e9510(local_20);\n  piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n  piVar4 = (int *)piVar1[2];\n  if ((int *)piVar1[3] <= piVar4) {\n    iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1);\n    goto joined_r0x0020f545;\n  }\nLAB_0020f540:\n  iVar5 = *piVar4;\njoined_r0x0020f545:\n  do {\n    if (iVar5 == -1) {\nLAB_0020f590:\n      iVar5 = *(int *)(*param_1 + -0xc) + (int)param_1;\n      FUN_002116a0(iVar5,*(uint *)(iVar5 + 0x14) | 2);\n      return param_1;\n    }\n    cVar2 = (**(code **)(*piVar3 + 8))(piVar3,0x2000,iVar5);\n    if (cVar2 == '\0') {\n      return param_1;\n    }\n    piVar4 = (int *)piVar1[2];\n    if (piVar4 < (int *)piVar1[3]) {\n      iVar5 = *piVar4;\n      piVar1[2] = (int)(piVar4 + 1);\n    }\n    else {\n      iVar5 = (**(code **)(*piVar1 + 0x28))(piVar1);\n    }\n    if (iVar5 == -1) goto LAB_0020f590;\n    piVar4 = (int *)piVar1[2];\n    if (piVar4 < (int *)piVar1[3]) goto LAB_0020f540;\n    iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  } while( true );\n}\n\n" (function_definition "int * FUN_0020f4d0(int *param_1)\n\n{\n  int *piVar1;\n  char cVar2;\n  int *piVar3;\n  int *piVar4;\n  int iVar5;\n  undefined1 local_20 [16];\n  \n  FUN_001e8d40(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c);\n                    \n  piVar3 = (int *)FUN_0023c1d0(local_20);\n  FUN_001e9510(local_20);\n  piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n  piVar4 = (int *)piVar1[2];\n  if ((int *)piVar1[3] <= piVar4) {\n    iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1);\n    goto joined_r0x0020f545;\n  }\nLAB_0020f540:\n  iVar5 = *piVar4;\njoined_r0x0020f545:\n  do {\n    if (iVar5 == -1) {\nLAB_0020f590:\n      iVar5 = *(int *)(*param_1 + -0xc) + (int)param_1;\n      FUN_002116a0(iVar5,*(uint *)(iVar5 + 0x14) | 2);\n      return param_1;\n    }\n    cVar2 = (**(code **)(*piVar3 + 8))(piVar3,0x2000,iVar5);\n    if (cVar2 == '\0') {\n      return param_1;\n    }\n    piVar4 = (int *)piVar1[2];\n    if (piVar4 < (int *)piVar1[3]) {\n      iVar5 = *piVar4;\n      piVar1[2] = (int)(piVar4 + 1);\n    }\n    else {\n      iVar5 = (**(code **)(*piVar1 + 0x28))(piVar1);\n    }\n    if (iVar5 == -1) goto LAB_0020f590;\n    piVar4 = (int *)piVar1[2];\n    if (piVar4 < (int *)piVar1[3]) goto LAB_0020f540;\n    iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  } while( true );\n}" primitive_type (pointer_declarator "* FUN_0020f4d0(int *param_1)" * (function_declarator "FUN_0020f4d0(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) )))) (compound_statement "{\n  int *piVar1;\n  char cVar2;\n  int *piVar3;\n  int *piVar4;\n  int iVar5;\n  undefined1 local_20 [16];\n  \n  FUN_001e8d40(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c);\n                    \n  piVar3 = (int *)FUN_0023c1d0(local_20);\n  FUN_001e9510(local_20);\n  piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n  piVar4 = (int *)piVar1[2];\n  if ((int *)piVar1[3] <= piVar4) {\n    iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1);\n    goto joined_r0x0020f545;\n  }\nLAB_0020f540:\n  iVar5 = *piVar4;\njoined_r0x0020f545:\n  do {\n    if (iVar5 == -1) {\nLAB_0020f590:\n      iVar5 = *(int *)(*param_1 + -0xc) + (int)param_1;\n      FUN_002116a0(iVar5,*(uint *)(iVar5 + 0x14) | 2);\n      return param_1;\n    }\n    cVar2 = (**(code **)(*piVar3 + 8))(piVar3,0x2000,iVar5);\n    if (cVar2 == '\0') {\n      return param_1;\n    }\n    piVar4 = (int *)piVar1[2];\n    if (piVar4 < (int *)piVar1[3]) {\n      iVar5 = *piVar4;\n      piVar1[2] = (int)(piVar4 + 1);\n    }\n    else {\n      iVar5 = (**(code **)(*piVar1 + 0x28))(piVar1);\n    }\n    if (iVar5 == -1) goto LAB_0020f590;\n    piVar4 = (int *)piVar1[2];\n    if (piVar4 < (int *)piVar1[3]) goto LAB_0020f540;\n    iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  } while( true );\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "undefined1 local_20 [16];" type_identifier (array_declarator "local_20 [16]" identifier [ number_literal ]) ;) (expression_statement "FUN_001e8d40(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c);" (call_expression "FUN_001e8d40(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c)" identifier (argument_list "(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c)" ( identifier , (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c" (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (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) ))))) + number_literal) ))) ;) (expression_statement "piVar3 = (int *)FUN_0023c1d0(local_20);" (assignment_expression "piVar3 = (int *)FUN_0023c1d0(local_20)" identifier = (cast_expression "(int *)FUN_0023c1d0(local_20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0023c1d0(local_20)" identifier (argument_list "(local_20)" ( identifier ))))) ;) (expression_statement "FUN_001e9510(local_20);" (call_expression "FUN_001e9510(local_20)" identifier (argument_list "(local_20)" ( identifier ))) ;) (expression_statement "piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);" (assignment_expression "piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c)" identifier = (pointer_expression "*(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c)" * (cast_expression "(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c)" ( (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c" (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc)" (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier) + (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) ))))) + number_literal) ))))) ;) (expression_statement "piVar4 = (int *)piVar1[2];" (assignment_expression "piVar4 = (int *)piVar1[2]" identifier = (cast_expression "(int *)piVar1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ]))) ;) (if_statement "if ((int *)piVar1[3] <= piVar4) {\n    iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1);\n    goto joined_r0x0020f545;\n  }" if (parenthesized_expression "((int *)piVar1[3] <= piVar4)" ( (binary_expression "(int *)piVar1[3] <= piVar4" (cast_expression "(int *)piVar1[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ])) <= identifier) )) (compound_statement "{\n    iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1);\n    goto joined_r0x0020f545;\n  }" { (expression_statement "iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1)" identifier = (call_expression "(**(code **)(*piVar1 + 0x24))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x24))" ( (pointer_expression "**(code **)(*piVar1 + 0x24)" * (pointer_expression "*(code **)(*piVar1 + 0x24)" * (cast_expression "(code **)(*piVar1 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x24)" ( (binary_expression "*piVar1 + 0x24" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier )))) ;) (goto_statement "goto joined_r0x0020f545;" goto statement_identifier ;) })) (labeled_statement "LAB_0020f540:\n  iVar5 = *piVar4;" statement_identifier : (expression_statement "iVar5 = *piVar4;" (assignment_expression "iVar5 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;)) (labeled_statement "joined_r0x0020f545:\n  do {\n    if (iVar5 == -1) {\nLAB_0020f590:\n      iVar5 = *(int *)(*param_1 + -0xc) + (int)param_1;\n      FUN_002116a0(iVar5,*(uint *)(iVar5 + 0x14) | 2);\n      return param_1;\n    }\n    cVar2 = (**(code **)(*piVar3 + 8))(piVar3,0x2000,iVar5);\n    if (cVar2 == '\0') {\n      return param_1;\n    }\n    piVar4 = (int *)piVar1[2];\n    if (piVar4 < (int *)piVar1[3]) {\n      iVar5 = *piVar4;\n      piVar1[2] = (int)(piVar4 + 1);\n    }\n    else {\n      iVar5 = (**(code **)(*piVar1 + 0x28))(piVar1);\n    }\n    if (iVar5 == -1) goto LAB_0020f590;\n    piVar4 = (int *)piVar1[2];\n    if (piVar4 < (int *)piVar1[3]) goto LAB_0020f540;\n    iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  } while( true );" statement_identifier : (do_statement "do {\n    if (iVar5 == -1) {\nLAB_0020f590:\n      iVar5 = *(int *)(*param_1 + -0xc) + (int)param_1;\n      FUN_002116a0(iVar5,*(uint *)(iVar5 + 0x14) | 2);\n      return param_1;\n    }\n    cVar2 = (**(code **)(*piVar3 + 8))(piVar3,0x2000,iVar5);\n    if (cVar2 == '\0') {\n      return param_1;\n    }\n    piVar4 = (int *)piVar1[2];\n    if (piVar4 < (int *)piVar1[3]) {\n      iVar5 = *piVar4;\n      piVar1[2] = (int)(piVar4 + 1);\n    }\n    else {\n      iVar5 = (**(code **)(*piVar1 + 0x28))(piVar1);\n    }\n    if (iVar5 == -1) goto LAB_0020f590;\n    piVar4 = (int *)piVar1[2];\n    if (piVar4 < (int *)piVar1[3]) goto LAB_0020f540;\n    iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  } while( true );" do (compound_statement "{\n    if (iVar5 == -1) {\nLAB_0020f590:\n      iVar5 = *(int *)(*param_1 + -0xc) + (int)param_1;\n      FUN_002116a0(iVar5,*(uint *)(iVar5 + 0x14) | 2);\n      return param_1;\n    }\n    cVar2 = (**(code **)(*piVar3 + 8))(piVar3,0x2000,iVar5);\n    if (cVar2 == '\0') {\n      return param_1;\n    }\n    piVar4 = (int *)piVar1[2];\n    if (piVar4 < (int *)piVar1[3]) {\n      iVar5 = *piVar4;\n      piVar1[2] = (int)(piVar4 + 1);\n    }\n    else {\n      iVar5 = (**(code **)(*piVar1 + 0x28))(piVar1);\n    }\n    if (iVar5 == -1) goto LAB_0020f590;\n    piVar4 = (int *)piVar1[2];\n    if (piVar4 < (int *)piVar1[3]) goto LAB_0020f540;\n    iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  }" { (if_statement "if (iVar5 == -1) {\nLAB_0020f590:\n      iVar5 = *(int *)(*param_1 + -0xc) + (int)param_1;\n      FUN_002116a0(iVar5,*(uint *)(iVar5 + 0x14) | 2);\n      return param_1;\n    }" if (parenthesized_expression "(iVar5 == -1)" ( (binary_expression "iVar5 == -1" identifier == number_literal) )) (compound_statement "{\nLAB_0020f590:\n      iVar5 = *(int *)(*param_1 + -0xc) + (int)param_1;\n      FUN_002116a0(iVar5,*(uint *)(iVar5 + 0x14) | 2);\n      return param_1;\n    }" { (labeled_statement "LAB_0020f590:\n      iVar5 = *(int *)(*param_1 + -0xc) + (int)param_1;" statement_identifier : (expression_statement "iVar5 = *(int *)(*param_1 + -0xc) + (int)param_1;" (assignment_expression "iVar5 = *(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))) ;)) (expression_statement "FUN_002116a0(iVar5,*(uint *)(iVar5 + 0x14) | 2);" (call_expression "FUN_002116a0(iVar5,*(uint *)(iVar5 + 0x14) | 2)" identifier (argument_list "(iVar5,*(uint *)(iVar5 + 0x14) | 2)" ( identifier , (binary_expression "*(uint *)(iVar5 + 0x14) | 2" (pointer_expression "*(uint *)(iVar5 + 0x14)" * (cast_expression "(uint *)(iVar5 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x14)" ( (binary_expression "iVar5 + 0x14" identifier + number_literal) )))) | number_literal) ))) ;) (return_statement "return param_1;" return identifier ;) })) (expression_statement "cVar2 = (**(code **)(*piVar3 + 8))(piVar3,0x2000,iVar5);" (assignment_expression "cVar2 = (**(code **)(*piVar3 + 8))(piVar3,0x2000,iVar5)" identifier = (call_expression "(**(code **)(*piVar3 + 8))(piVar3,0x2000,iVar5)" (parenthesized_expression "(**(code **)(*piVar3 + 8))" ( (pointer_expression "**(code **)(*piVar3 + 8)" * (pointer_expression "*(code **)(*piVar3 + 8)" * (cast_expression "(code **)(*piVar3 + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar3 + 8)" ( (binary_expression "*piVar3 + 8" (pointer_expression "*piVar3" * identifier) + number_literal) ))))) )) (argument_list "(piVar3,0x2000,iVar5)" ( identifier , number_literal , identifier )))) ;) (if_statement "if (cVar2 == '\0') {\n      return param_1;\n    }" if (parenthesized_expression "(cVar2 == '\0')" ( (binary_expression "cVar2 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      return param_1;\n    }" { (return_statement "return param_1;" return identifier ;) })) (expression_statement "piVar4 = (int *)piVar1[2];" (assignment_expression "piVar4 = (int *)piVar1[2]" identifier = (cast_expression "(int *)piVar1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ]))) ;) (if_statement "if (piVar4 < (int *)piVar1[3]) {\n      iVar5 = *piVar4;\n      piVar1[2] = (int)(piVar4 + 1);\n    }\n    else {\n      iVar5 = (**(code **)(*piVar1 + 0x28))(piVar1);\n    }" if (parenthesized_expression "(piVar4 < (int *)piVar1[3])" ( (binary_expression "piVar4 < (int *)piVar1[3]" identifier < (cast_expression "(int *)piVar1[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ]))) )) (compound_statement "{\n      iVar5 = *piVar4;\n      piVar1[2] = (int)(piVar4 + 1);\n    }" { (expression_statement "iVar5 = *piVar4;" (assignment_expression "iVar5 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) (expression_statement "piVar1[2] = (int)(piVar4 + 1);" (assignment_expression "piVar1[2] = (int)(piVar4 + 1)" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = (cast_expression "(int)(piVar4 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(piVar4 + 1)" ( (binary_expression "piVar4 + 1" identifier + number_literal) )))) ;) }) (else_clause "else {\n      iVar5 = (**(code **)(*piVar1 + 0x28))(piVar1);\n    }" else (compound_statement "{\n      iVar5 = (**(code **)(*piVar1 + 0x28))(piVar1);\n    }" { (expression_statement "iVar5 = (**(code **)(*piVar1 + 0x28))(piVar1);" (assignment_expression "iVar5 = (**(code **)(*piVar1 + 0x28))(piVar1)" identifier = (call_expression "(**(code **)(*piVar1 + 0x28))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x28))" ( (pointer_expression "**(code **)(*piVar1 + 0x28)" * (pointer_expression "*(code **)(*piVar1 + 0x28)" * (cast_expression "(code **)(*piVar1 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x28)" ( (binary_expression "*piVar1 + 0x28" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier )))) ;) }))) (if_statement "if (iVar5 == -1) goto LAB_0020f590;" if (parenthesized_expression "(iVar5 == -1)" ( (binary_expression "iVar5 == -1" identifier == number_literal) )) (goto_statement "goto LAB_0020f590;" goto statement_identifier ;)) (expression_statement "piVar4 = (int *)piVar1[2];" (assignment_expression "piVar4 = (int *)piVar1[2]" identifier = (cast_expression "(int *)piVar1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[2]" identifier [ number_literal ]))) ;) (if_statement "if (piVar4 < (int *)piVar1[3]) goto LAB_0020f540;" if (parenthesized_expression "(piVar4 < (int *)piVar1[3])" ( (binary_expression "piVar4 < (int *)piVar1[3]" identifier < (cast_expression "(int *)piVar1[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar1[3]" identifier [ number_literal ]))) )) (goto_statement "goto LAB_0020f540;" goto statement_identifier ;)) (expression_statement "iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1)" identifier = (call_expression "(**(code **)(*piVar1 + 0x24))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x24))" ( (pointer_expression "**(code **)(*piVar1 + 0x24)" * (pointer_expression "*(code **)(*piVar1 + 0x24)" * (cast_expression "(code **)(*piVar1 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar1 + 0x24)" ( (binary_expression "*piVar1 + 0x24" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) )) (argument_list "(piVar1)" ( identifier )))) ;) }) while (parenthesized_expression "( true )" ( true )) ;)) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) + LIT) ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (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 (pointer_expression * IDENT) + LIT) ))))) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (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 )))) ;) (goto_statement goto statement_identifier ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;)) (labeled_statement statement_identifier : (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (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))) ;)) (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 IDENT ;) })) (expression_statement (assignment_expression IDENT = (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 , LIT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (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 )))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (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 )))) ;) }) while (parenthesized_expression ( BOOL )) ;)) })))
(function_definition "int * FUN_0020f4d0(int *param_1)\n\n{\n  int *piVar1;\n  char cVar2;\n  int *piVar3;\n  int *piVar4;\n  int iVar5;\n  undefined1 local_20 [16];\n  \n  FUN_001e8d40(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c);\n                    \n  piVar3 = (int *)FUN_0023c1d0(local_20);\n  FUN_001e9510(local_20);\n  piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n  piVar4 = (int *)piVar1[2];\n  if ((int *)piVar1[3] <= piVar4) {\n    iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1);\n    goto joined_r0x0020f545;\n  }\nLAB_0020f540:\n  iVar5 = *piVar4;\njoined_r0x0020f545:\n  do {\n    if (iVar5 == -1) {\nLAB_0020f590:\n      iVar5 = *(int *)(*param_1 + -0xc) + (int)param_1;\n      FUN_002116a0(iVar5,*(uint *)(iVar5 + 0x14) | 2);\n      return param_1;\n    }\n    cVar2 = (**(code **)(*piVar3 + 8))(piVar3,0x2000,iVar5);\n    if (cVar2 == '\0') {\n      return param_1;\n    }\n    piVar4 = (int *)piVar1[2];\n    if (piVar4 < (int *)piVar1[3]) {\n      iVar5 = *piVar4;\n      piVar1[2] = (int)(piVar4 + 1);\n    }\n    else {\n      iVar5 = (**(code **)(*piVar1 + 0x28))(piVar1);\n    }\n    if (iVar5 == -1) goto LAB_0020f590;\n    piVar4 = (int *)piVar1[2];\n    if (piVar4 < (int *)piVar1[3]) goto LAB_0020f540;\n    iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  } while( true );\n}" (primitive_type "int") (pointer_declarator "* FUN_0020f4d0(int *param_1)" (* "*") (function_declarator "FUN_0020f4d0(int *param_1)" (identifier "FUN_0020f4d0") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")")))) (compound_statement "{\n  int *piVar1;\n  char cVar2;\n  int *piVar3;\n  int *piVar4;\n  int iVar5;\n  undefined1 local_20 [16];\n  \n  FUN_001e8d40(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c);\n                    \n  piVar3 = (int *)FUN_0023c1d0(local_20);\n  FUN_001e9510(local_20);\n  piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);\n  piVar4 = (int *)piVar1[2];\n  if ((int *)piVar1[3] <= piVar4) {\n    iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1);\n    goto joined_r0x0020f545;\n  }\nLAB_0020f540:\n  iVar5 = *piVar4;\njoined_r0x0020f545:\n  do {\n    if (iVar5 == -1) {\nLAB_0020f590:\n      iVar5 = *(int *)(*param_1 + -0xc) + (int)param_1;\n      FUN_002116a0(iVar5,*(uint *)(iVar5 + 0x14) | 2);\n      return param_1;\n    }\n    cVar2 = (**(code **)(*piVar3 + 8))(piVar3,0x2000,iVar5);\n    if (cVar2 == '\0') {\n      return param_1;\n    }\n    piVar4 = (int *)piVar1[2];\n    if (piVar4 < (int *)piVar1[3]) {\n      iVar5 = *piVar4;\n      piVar1[2] = (int)(piVar4 + 1);\n    }\n    else {\n      iVar5 = (**(code **)(*piVar1 + 0x28))(piVar1);\n    }\n    if (iVar5 == -1) goto LAB_0020f590;\n    piVar4 = (int *)piVar1[2];\n    if (piVar4 < (int *)piVar1[3]) goto LAB_0020f540;\n    iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  } while( true );\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "char cVar2;" (primitive_type "char") (identifier "cVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "undefined1 local_20 [16];" (type_identifier "undefined1") (array_declarator "local_20 [16]" (identifier "local_20") ([ "[") (number_literal "16") (] "]")) (; ";")) (expression_statement "FUN_001e8d40(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c);" (call_expression "FUN_001e8d40(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c)" (identifier "FUN_001e8d40") (argument_list "(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c)" (( "(") (identifier "local_20") (, ",") (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c" (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc)" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "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")) () ")"))))) (+ "+") (number_literal "0x6c")) () ")"))) (; ";")) (expression_statement "piVar3 = (int *)FUN_0023c1d0(local_20);" (assignment_expression "piVar3 = (int *)FUN_0023c1d0(local_20)" (identifier "piVar3") (= "=") (cast_expression "(int *)FUN_0023c1d0(local_20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0023c1d0(local_20)" (identifier "FUN_0023c1d0") (argument_list "(local_20)" (( "(") (identifier "local_20") () ")"))))) (; ";")) (expression_statement "FUN_001e9510(local_20);" (call_expression "FUN_001e9510(local_20)" (identifier "FUN_001e9510") (argument_list "(local_20)" (( "(") (identifier "local_20") () ")"))) (; ";")) (expression_statement "piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);" (assignment_expression "piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c)" (identifier "piVar1") (= "=") (pointer_expression "*(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c)" (* "*") (cast_expression "(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c)" (( "(") (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c" (binary_expression "(int)param_1 + *(int *)(*param_1 + -0xc)" (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "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")) () ")"))))) (+ "+") (number_literal "0x7c")) () ")"))))) (; ";")) (expression_statement "piVar4 = (int *)piVar1[2];" (assignment_expression "piVar4 = (int *)piVar1[2]" (identifier "piVar4") (= "=") (cast_expression "(int *)piVar1[2]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (if_statement "if ((int *)piVar1[3] <= piVar4) {\n    iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1);\n    goto joined_r0x0020f545;\n  }" (if "if") (parenthesized_expression "((int *)piVar1[3] <= piVar4)" (( "(") (binary_expression "(int *)piVar1[3] <= piVar4" (cast_expression "(int *)piVar1[3]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]"))) (<= "<=") (identifier "piVar4")) () ")")) (compound_statement "{\n    iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1);\n    goto joined_r0x0020f545;\n  }" ({ "{") (expression_statement "iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1)" (identifier "iVar5") (= "=") (call_expression "(**(code **)(*piVar1 + 0x24))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x24))" (( "(") (pointer_expression "**(code **)(*piVar1 + 0x24)" (* "*") (pointer_expression "*(code **)(*piVar1 + 0x24)" (* "*") (cast_expression "(code **)(*piVar1 + 0x24)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar1 + 0x24)" (( "(") (binary_expression "*piVar1 + 0x24" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "0x24")) () ")"))))) () ")")) (argument_list "(piVar1)" (( "(") (identifier "piVar1") () ")")))) (; ";")) (goto_statement "goto joined_r0x0020f545;" (goto "goto") (statement_identifier "joined_r0x0020f545") (; ";")) (} "}"))) (labeled_statement "LAB_0020f540:\n  iVar5 = *piVar4;" (statement_identifier "LAB_0020f540") (: ":") (expression_statement "iVar5 = *piVar4;" (assignment_expression "iVar5 = *piVar4" (identifier "iVar5") (= "=") (pointer_expression "*piVar4" (* "*") (identifier "piVar4"))) (; ";"))) (labeled_statement "joined_r0x0020f545:\n  do {\n    if (iVar5 == -1) {\nLAB_0020f590:\n      iVar5 = *(int *)(*param_1 + -0xc) + (int)param_1;\n      FUN_002116a0(iVar5,*(uint *)(iVar5 + 0x14) | 2);\n      return param_1;\n    }\n    cVar2 = (**(code **)(*piVar3 + 8))(piVar3,0x2000,iVar5);\n    if (cVar2 == '\0') {\n      return param_1;\n    }\n    piVar4 = (int *)piVar1[2];\n    if (piVar4 < (int *)piVar1[3]) {\n      iVar5 = *piVar4;\n      piVar1[2] = (int)(piVar4 + 1);\n    }\n    else {\n      iVar5 = (**(code **)(*piVar1 + 0x28))(piVar1);\n    }\n    if (iVar5 == -1) goto LAB_0020f590;\n    piVar4 = (int *)piVar1[2];\n    if (piVar4 < (int *)piVar1[3]) goto LAB_0020f540;\n    iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  } while( true );" (statement_identifier "joined_r0x0020f545") (: ":") (do_statement "do {\n    if (iVar5 == -1) {\nLAB_0020f590:\n      iVar5 = *(int *)(*param_1 + -0xc) + (int)param_1;\n      FUN_002116a0(iVar5,*(uint *)(iVar5 + 0x14) | 2);\n      return param_1;\n    }\n    cVar2 = (**(code **)(*piVar3 + 8))(piVar3,0x2000,iVar5);\n    if (cVar2 == '\0') {\n      return param_1;\n    }\n    piVar4 = (int *)piVar1[2];\n    if (piVar4 < (int *)piVar1[3]) {\n      iVar5 = *piVar4;\n      piVar1[2] = (int)(piVar4 + 1);\n    }\n    else {\n      iVar5 = (**(code **)(*piVar1 + 0x28))(piVar1);\n    }\n    if (iVar5 == -1) goto LAB_0020f590;\n    piVar4 = (int *)piVar1[2];\n    if (piVar4 < (int *)piVar1[3]) goto LAB_0020f540;\n    iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  } while( true );" (do "do") (compound_statement "{\n    if (iVar5 == -1) {\nLAB_0020f590:\n      iVar5 = *(int *)(*param_1 + -0xc) + (int)param_1;\n      FUN_002116a0(iVar5,*(uint *)(iVar5 + 0x14) | 2);\n      return param_1;\n    }\n    cVar2 = (**(code **)(*piVar3 + 8))(piVar3,0x2000,iVar5);\n    if (cVar2 == '\0') {\n      return param_1;\n    }\n    piVar4 = (int *)piVar1[2];\n    if (piVar4 < (int *)piVar1[3]) {\n      iVar5 = *piVar4;\n      piVar1[2] = (int)(piVar4 + 1);\n    }\n    else {\n      iVar5 = (**(code **)(*piVar1 + 0x28))(piVar1);\n    }\n    if (iVar5 == -1) goto LAB_0020f590;\n    piVar4 = (int *)piVar1[2];\n    if (piVar4 < (int *)piVar1[3]) goto LAB_0020f540;\n    iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1);\n  }" ({ "{") (if_statement "if (iVar5 == -1) {\nLAB_0020f590:\n      iVar5 = *(int *)(*param_1 + -0xc) + (int)param_1;\n      FUN_002116a0(iVar5,*(uint *)(iVar5 + 0x14) | 2);\n      return param_1;\n    }" (if "if") (parenthesized_expression "(iVar5 == -1)" (( "(") (binary_expression "iVar5 == -1" (identifier "iVar5") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\nLAB_0020f590:\n      iVar5 = *(int *)(*param_1 + -0xc) + (int)param_1;\n      FUN_002116a0(iVar5,*(uint *)(iVar5 + 0x14) | 2);\n      return param_1;\n    }" ({ "{") (labeled_statement "LAB_0020f590:\n      iVar5 = *(int *)(*param_1 + -0xc) + (int)param_1;" (statement_identifier "LAB_0020f590") (: ":") (expression_statement "iVar5 = *(int *)(*param_1 + -0xc) + (int)param_1;" (assignment_expression "iVar5 = *(int *)(*param_1 + -0xc) + (int)param_1" (identifier "iVar5") (= "=") (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")))) (; ";"))) (expression_statement "FUN_002116a0(iVar5,*(uint *)(iVar5 + 0x14) | 2);" (call_expression "FUN_002116a0(iVar5,*(uint *)(iVar5 + 0x14) | 2)" (identifier "FUN_002116a0") (argument_list "(iVar5,*(uint *)(iVar5 + 0x14) | 2)" (( "(") (identifier "iVar5") (, ",") (binary_expression "*(uint *)(iVar5 + 0x14) | 2" (pointer_expression "*(uint *)(iVar5 + 0x14)" (* "*") (cast_expression "(uint *)(iVar5 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x14)" (( "(") (binary_expression "iVar5 + 0x14" (identifier "iVar5") (+ "+") (number_literal "0x14")) () ")")))) (| "|") (number_literal "2")) () ")"))) (; ";")) (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "cVar2 = (**(code **)(*piVar3 + 8))(piVar3,0x2000,iVar5);" (assignment_expression "cVar2 = (**(code **)(*piVar3 + 8))(piVar3,0x2000,iVar5)" (identifier "cVar2") (= "=") (call_expression "(**(code **)(*piVar3 + 8))(piVar3,0x2000,iVar5)" (parenthesized_expression "(**(code **)(*piVar3 + 8))" (( "(") (pointer_expression "**(code **)(*piVar3 + 8)" (* "*") (pointer_expression "*(code **)(*piVar3 + 8)" (* "*") (cast_expression "(code **)(*piVar3 + 8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar3 + 8)" (( "(") (binary_expression "*piVar3 + 8" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (+ "+") (number_literal "8")) () ")"))))) () ")")) (argument_list "(piVar3,0x2000,iVar5)" (( "(") (identifier "piVar3") (, ",") (number_literal "0x2000") (, ",") (identifier "iVar5") () ")")))) (; ";")) (if_statement "if (cVar2 == '\0') {\n      return param_1;\n    }" (if "if") (parenthesized_expression "(cVar2 == '\0')" (( "(") (binary_expression "cVar2 == '\0'" (identifier "cVar2") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      return param_1;\n    }" ({ "{") (return_statement "return param_1;" (return "return") (identifier "param_1") (; ";")) (} "}"))) (expression_statement "piVar4 = (int *)piVar1[2];" (assignment_expression "piVar4 = (int *)piVar1[2]" (identifier "piVar4") (= "=") (cast_expression "(int *)piVar1[2]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (if_statement "if (piVar4 < (int *)piVar1[3]) {\n      iVar5 = *piVar4;\n      piVar1[2] = (int)(piVar4 + 1);\n    }\n    else {\n      iVar5 = (**(code **)(*piVar1 + 0x28))(piVar1);\n    }" (if "if") (parenthesized_expression "(piVar4 < (int *)piVar1[3])" (( "(") (binary_expression "piVar4 < (int *)piVar1[3]" (identifier "piVar4") (< "<") (cast_expression "(int *)piVar1[3]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]")))) () ")")) (compound_statement "{\n      iVar5 = *piVar4;\n      piVar1[2] = (int)(piVar4 + 1);\n    }" ({ "{") (expression_statement "iVar5 = *piVar4;" (assignment_expression "iVar5 = *piVar4" (identifier "iVar5") (= "=") (pointer_expression "*piVar4" (* "*") (identifier "piVar4"))) (; ";")) (expression_statement "piVar1[2] = (int)(piVar4 + 1);" (assignment_expression "piVar1[2] = (int)(piVar4 + 1)" (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(int)(piVar4 + 1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(piVar4 + 1)" (( "(") (binary_expression "piVar4 + 1" (identifier "piVar4") (+ "+") (number_literal "1")) () ")")))) (; ";")) (} "}")) (else_clause "else {\n      iVar5 = (**(code **)(*piVar1 + 0x28))(piVar1);\n    }" (else "else") (compound_statement "{\n      iVar5 = (**(code **)(*piVar1 + 0x28))(piVar1);\n    }" ({ "{") (expression_statement "iVar5 = (**(code **)(*piVar1 + 0x28))(piVar1);" (assignment_expression "iVar5 = (**(code **)(*piVar1 + 0x28))(piVar1)" (identifier "iVar5") (= "=") (call_expression "(**(code **)(*piVar1 + 0x28))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x28))" (( "(") (pointer_expression "**(code **)(*piVar1 + 0x28)" (* "*") (pointer_expression "*(code **)(*piVar1 + 0x28)" (* "*") (cast_expression "(code **)(*piVar1 + 0x28)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar1 + 0x28)" (( "(") (binary_expression "*piVar1 + 0x28" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (argument_list "(piVar1)" (( "(") (identifier "piVar1") () ")")))) (; ";")) (} "}")))) (if_statement "if (iVar5 == -1) goto LAB_0020f590;" (if "if") (parenthesized_expression "(iVar5 == -1)" (( "(") (binary_expression "iVar5 == -1" (identifier "iVar5") (== "==") (number_literal "-1")) () ")")) (goto_statement "goto LAB_0020f590;" (goto "goto") (statement_identifier "LAB_0020f590") (; ";"))) (expression_statement "piVar4 = (int *)piVar1[2];" (assignment_expression "piVar4 = (int *)piVar1[2]" (identifier "piVar4") (= "=") (cast_expression "(int *)piVar1[2]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (if_statement "if (piVar4 < (int *)piVar1[3]) goto LAB_0020f540;" (if "if") (parenthesized_expression "(piVar4 < (int *)piVar1[3])" (( "(") (binary_expression "piVar4 < (int *)piVar1[3]" (identifier "piVar4") (< "<") (cast_expression "(int *)piVar1[3]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]")))) () ")")) (goto_statement "goto LAB_0020f540;" (goto "goto") (statement_identifier "LAB_0020f540") (; ";"))) (expression_statement "iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1);" (assignment_expression "iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1)" (identifier "iVar5") (= "=") (call_expression "(**(code **)(*piVar1 + 0x24))(piVar1)" (parenthesized_expression "(**(code **)(*piVar1 + 0x24))" (( "(") (pointer_expression "**(code **)(*piVar1 + 0x24)" (* "*") (pointer_expression "*(code **)(*piVar1 + 0x24)" (* "*") (cast_expression "(code **)(*piVar1 + 0x24)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar1 + 0x24)" (( "(") (binary_expression "*piVar1 + 0x24" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "0x24")) () ")"))))) () ")")) (argument_list "(piVar1)" (( "(") (identifier "piVar1") () ")")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";"))) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* std::wistream& std::ws<wchar_t, std::char_traits<wchar_t> >(std::wistream&) */

wistream * var_3::ws<var_4,std::char_traits<var_4>>(wistream *var_1)

{
  int *piVar1;
  char var_9;
  type_1 *pcVar3;
  int *var_5;
  int var_6;
  type_2 local_20 [16];
  
  locale::type_2(local_20,(type_2 *)(var_1 + *(int *)(*(int *)var_1 + -0xc) + 0x6c));
                    /* try { // try from 0020f50c to 0020f510 has its CatchHandler @ 0020f5e1 */
  pcVar3 = var_2<var_3::type_1<var_4>>(local_20);
  locale::~type_2(local_20);
  piVar1 = *(int **)(var_1 + *(int *)(*(int *)var_1 + -0xc) + 0x7c);
  var_5 = (int *)piVar1[2];
  if ((int *)piVar1[3] <= var_5) {
    var_6 = (**(type_3 **)(*piVar1 + 0x24))(piVar1);
    goto joined_r0x0020f545;
  }
LAB_0020f540:
  var_6 = *var_5;
joined_r0x0020f545:
  do {
    if (var_6 == -1) {
LAB_0020f590:
      wios::var_7((type_4 *)(var_1 + *(int *)(*(int *)var_1 + -0xc)),
                  *(type_5 *)((type_4 *)(var_1 + *(int *)(*(int *)var_1 + -0xc)) + 0x14) |
                  var_8);
      return var_1;
    }
    var_9 = (**(type_3 **)(*(int *)pcVar3 + 8))(pcVar3,0x2000,var_6);
    if (var_9 == '\0') {
      return var_1;
    }
    var_5 = (int *)piVar1[2];
    if (var_5 < (int *)piVar1[3]) {
      var_6 = *var_5;
      piVar1[2] = (int)(var_5 + 1);
    }
    else {
      var_6 = (**(type_3 **)(*piVar1 + 0x28))(piVar1);
    }
    if (var_6 == -1) goto LAB_0020f590;
    var_5 = (int *)piVar1[2];
    if (var_5 < (int *)piVar1[3]) goto LAB_0020f540;
    var_6 = (**(type_3 **)(*piVar1 + 0x24))(piVar1);
  } while( true );
}


(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)))))) body: (compound_statement (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (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: (pointer_expression argument: (identifier)) right: (number_literal)))))) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator 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: (pointer_expression argument: (identifier)) right: (number_literal)))))) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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))))) (goto_statement label: (statement_identifier)))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier))))) (labeled_statement label: (statement_identifier) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (labeled_statement label: (statement_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)))))) (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 (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (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) (number_literal) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) consequence: (goto_statement label: (statement_identifier))) (expression_statement (assignment_expression left: (identifier) right: (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)))))) condition: (parenthesized_expression (true)))))))

/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */

int * MASKED(int *param_1)

{
  int *piVar1;
  char cVar2;
  int *piVar3;
  int *piVar4;
  int iVar5;
  undefined1 local_20 [16];
  
  FUN_001e8d40(local_20,(int)param_1 + *(int *)(*param_1 + -0xc) + 0x6c);
                    /* try { // try from 0020f50c to 0020f510 has its CatchHandler @ 0020f5e1 */
  piVar3 = (int *)FUN_0023c1d0(local_20);
  FUN_001e9510(local_20);
  piVar1 = *(int **)((int)param_1 + *(int *)(*param_1 + -0xc) + 0x7c);
  piVar4 = (int *)piVar1[2];
  if ((int *)piVar1[3] <= piVar4) {
    iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1);
    goto joined_r0x0020f545;
  }
LAB_0020f540:
  iVar5 = *piVar4;
joined_r0x0020f545:
  do {
    if (iVar5 == -1) {
LAB_0020f590:
      iVar5 = *(int *)(*param_1 + -0xc) + (int)param_1;
      FUN_002116a0(iVar5,*(uint *)(iVar5 + 0x14) | 2);
      return param_1;
    }
    cVar2 = (**(code **)(*piVar3 + 8))(piVar3,0x2000,iVar5);
    if (cVar2 == '\0') {
      return param_1;
    }
    piVar4 = (int *)piVar1[2];
    if (piVar4 < (int *)piVar1[3]) {
      iVar5 = *piVar4;
      piVar1[2] = (int)(piVar4 + 1);
    }
    else {
      iVar5 = (**(code **)(*piVar1 + 0x28))(piVar1);
    }
    if (iVar5 == -1) goto LAB_0020f590;
    piVar4 = (int *)piVar1[2];
    if (piVar4 < (int *)piVar1[3]) goto LAB_0020f540;
    iVar5 = (**(code **)(*piVar1 + 0x24))(piVar1);
  } while( true );
}

