
/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */
/* std::wstreambuf::snextc() */

undefined4 __thiscall std::wstreambuf::snextc(wstreambuf *this)

{
  code *pcVar1;
  undefined4 uVar2;
  int iVar3;
  int *piVar4;
  
  piVar4 = *(int **)(this + 8);
  if (*(int **)(this + 0xc) <= piVar4) {
    pcVar1 = *(code **)(*(int *)this + 0x28);
    if (pcVar1 != (code *)PTR_uflow_0038eb94) {
      iVar3 = (*pcVar1)(this);
      goto LAB_001f2c74;
    }
    pcVar1 = *(code **)(*(int *)this + 0x24);
    if (pcVar1 == (code *)PTR_underflow_0038ed8c) {
      return 0xffffffff;
    }
    iVar3 = (*pcVar1)(this);
    if (iVar3 == -1) {
      return 0xffffffff;
    }
    piVar4 = *(int **)(this + 8);
  }
  iVar3 = *piVar4;
  *(int **)(this + 8) = piVar4 + 1;
LAB_001f2c74:
  if (iVar3 != -1) {
    if (*(undefined4 **)(this + 8) < *(undefined4 **)(this + 0xc)) {
      return **(undefined4 **)(this + 8);
    }
    if (*(code **)(*(int *)this + 0x24) != (code *)PTR_underflow_0038ed8c) {
                    /* WARNING: Could not recover jumptable at 0x001f2cce. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      uVar2 = (**(code **)(*(int *)this + 0x24))();
      return uVar2;
    }
  }
  return 0xffffffff;
}



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

undefined4 FUN_001f2c50(int *param_1)

{
  code *pcVar1;
  undefined4 uVar2;
  int iVar3;
  int *piVar4;
  
  piVar4 = (int *)param_1[2];
  if ((int *)param_1[3] <= piVar4) {
    pcVar1 = *(code **)(*param_1 + 0x28);
    if (pcVar1 != (code *)PTR_FUN_0038eb94) {
      iVar3 = (*pcVar1)(param_1);
      goto LAB_001f2c74;
    }
    pcVar1 = *(code **)(*param_1 + 0x24);
    if (pcVar1 == (code *)PTR_FUN_0038ed8c) {
      return 0xffffffff;
    }
    iVar3 = (*pcVar1)(param_1);
    if (iVar3 == -1) {
      return 0xffffffff;
    }
    piVar4 = (int *)param_1[2];
  }
  iVar3 = *piVar4;
  param_1[2] = (int)(piVar4 + 1);
LAB_001f2c74:
  if (iVar3 != -1) {
    if ((undefined4 *)param_1[2] < (undefined4 *)param_1[3]) {
      return *(undefined4 *)param_1[2];
    }
    if (*(code **)(*param_1 + 0x24) != (code *)PTR_FUN_0038ed8c) {
                    /* WARNING: Could not recover jumptable at 0x001f2cce. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      uVar2 = (**(code **)(*param_1 + 0x24))();
      return uVar2;
    }
  }
  return 0xffffffff;
}


PUSH ESI
CALL 0x000559ea
ADD ESI,0x19c3aa
PUSH EBX
SUB ESP,0x4
MOV EBX,dword ptr [ESP + 0x10]
MOV EDX,dword ptr [EBX + 0x8]
CMP EDX,dword ptr [EBX + 0xc]
JNC 0x001f2c90
MOV EAX,dword ptr [EDX]
ADD EDX,0x4
MOV dword ptr [EBX + 0x8],EDX
CMP EAX,-0x1
JZ 0x001f2ca8
MOV EAX,dword ptr [EBX + 0x8]
CMP EAX,dword ptr [EBX + 0xc]
JNC 0x001f2cb8
MOV EAX,dword ptr [EAX]
ADD ESP,0x4
POP EBX
POP ESI
RET
MOV EAX,dword ptr [EBX]
MOV EDX,dword ptr [EAX + 0x28]
CMP EDX,dword ptr [ESI + 0xfffffb94]
JNZ 0x001f2ce8
MOV EAX,dword ptr [EAX + 0x24]
CMP EAX,dword ptr [ESI + 0xfffffd8c]
JNZ 0x001f2cd0
ADD ESP,0x4
MOV EAX,0xffffffff
POP EBX
POP ESI
RET
MOV EAX,dword ptr [EBX]
MOV EAX,dword ptr [EAX + 0x24]
CMP EAX,dword ptr [ESI + 0xfffffd8c]
JZ 0x001f2ca8
MOV dword ptr [ESP + 0x10],EBX
ADD ESP,0x4
POP EBX
POP ESI
JMP EAX
SUB ESP,0xc
PUSH EBX
CALL EAX
ADD ESP,0x10
CMP EAX,-0x1
JZ 0x001f2ca8
MOV EDX,dword ptr [EBX + 0x8]
JMP 0x001f2c6c
SUB ESP,0xc
PUSH EBX
CALL EDX
ADD ESP,0x10
JMP 0x001f2c74
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nundefined4 FUN_001f2c50(int *param_1)\n\n{\n  code *pcVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int *piVar4;\n  \n  piVar4 = (int *)param_1[2];\n  if ((int *)param_1[3] <= piVar4) {\n    pcVar1 = *(code **)(*param_1 + 0x28);\n    if (pcVar1 != (code *)PTR_FUN_0038eb94) {\n      iVar3 = (*pcVar1)(param_1);\n      goto LAB_001f2c74;\n    }\n    pcVar1 = *(code **)(*param_1 + 0x24);\n    if (pcVar1 == (code *)PTR_FUN_0038ed8c) {\n      return 0xffffffff;\n    }\n    iVar3 = (*pcVar1)(param_1);\n    if (iVar3 == -1) {\n      return 0xffffffff;\n    }\n    piVar4 = (int *)param_1[2];\n  }\n  iVar3 = *piVar4;\n  param_1[2] = (int)(piVar4 + 1);\nLAB_001f2c74:\n  if (iVar3 != -1) {\n    if ((undefined4 *)param_1[2] < (undefined4 *)param_1[3]) {\n      return *(undefined4 *)param_1[2];\n    }\n    if (*(code **)(*param_1 + 0x24) != (code *)PTR_FUN_0038ed8c) {\n                    /* WARNING: Could not recover jumptable at 0x001f2cce. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar2 = (**(code **)(*param_1 + 0x24))();\n      return uVar2;\n    }\n  }\n  return 0xffffffff;\n}\n\n" comment (function_definition "undefined4 FUN_001f2c50(int *param_1)\n\n{\n  code *pcVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int *piVar4;\n  \n  piVar4 = (int *)param_1[2];\n  if ((int *)param_1[3] <= piVar4) {\n    pcVar1 = *(code **)(*param_1 + 0x28);\n    if (pcVar1 != (code *)PTR_FUN_0038eb94) {\n      iVar3 = (*pcVar1)(param_1);\n      goto LAB_001f2c74;\n    }\n    pcVar1 = *(code **)(*param_1 + 0x24);\n    if (pcVar1 == (code *)PTR_FUN_0038ed8c) {\n      return 0xffffffff;\n    }\n    iVar3 = (*pcVar1)(param_1);\n    if (iVar3 == -1) {\n      return 0xffffffff;\n    }\n    piVar4 = (int *)param_1[2];\n  }\n  iVar3 = *piVar4;\n  param_1[2] = (int)(piVar4 + 1);\nLAB_001f2c74:\n  if (iVar3 != -1) {\n    if ((undefined4 *)param_1[2] < (undefined4 *)param_1[3]) {\n      return *(undefined4 *)param_1[2];\n    }\n    if (*(code **)(*param_1 + 0x24) != (code *)PTR_FUN_0038ed8c) {\n                    /* WARNING: Could not recover jumptable at 0x001f2cce. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar2 = (**(code **)(*param_1 + 0x24))();\n      return uVar2;\n    }\n  }\n  return 0xffffffff;\n}" type_identifier (function_declarator "FUN_001f2c50(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  code *pcVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int *piVar4;\n  \n  piVar4 = (int *)param_1[2];\n  if ((int *)param_1[3] <= piVar4) {\n    pcVar1 = *(code **)(*param_1 + 0x28);\n    if (pcVar1 != (code *)PTR_FUN_0038eb94) {\n      iVar3 = (*pcVar1)(param_1);\n      goto LAB_001f2c74;\n    }\n    pcVar1 = *(code **)(*param_1 + 0x24);\n    if (pcVar1 == (code *)PTR_FUN_0038ed8c) {\n      return 0xffffffff;\n    }\n    iVar3 = (*pcVar1)(param_1);\n    if (iVar3 == -1) {\n      return 0xffffffff;\n    }\n    piVar4 = (int *)param_1[2];\n  }\n  iVar3 = *piVar4;\n  param_1[2] = (int)(piVar4 + 1);\nLAB_001f2c74:\n  if (iVar3 != -1) {\n    if ((undefined4 *)param_1[2] < (undefined4 *)param_1[3]) {\n      return *(undefined4 *)param_1[2];\n    }\n    if (*(code **)(*param_1 + 0x24) != (code *)PTR_FUN_0038ed8c) {\n                    /* WARNING: Could not recover jumptable at 0x001f2cce. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar2 = (**(code **)(*param_1 + 0x24))();\n      return uVar2;\n    }\n  }\n  return 0xffffffff;\n}" { (declaration "code *pcVar1;" type_identifier (pointer_declarator "*pcVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (expression_statement "piVar4 = (int *)param_1[2];" (assignment_expression "piVar4 = (int *)param_1[2]" identifier = (cast_expression "(int *)param_1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) (if_statement "if ((int *)param_1[3] <= piVar4) {\n    pcVar1 = *(code **)(*param_1 + 0x28);\n    if (pcVar1 != (code *)PTR_FUN_0038eb94) {\n      iVar3 = (*pcVar1)(param_1);\n      goto LAB_001f2c74;\n    }\n    pcVar1 = *(code **)(*param_1 + 0x24);\n    if (pcVar1 == (code *)PTR_FUN_0038ed8c) {\n      return 0xffffffff;\n    }\n    iVar3 = (*pcVar1)(param_1);\n    if (iVar3 == -1) {\n      return 0xffffffff;\n    }\n    piVar4 = (int *)param_1[2];\n  }" if (parenthesized_expression "((int *)param_1[3] <= piVar4)" ( (binary_expression "(int *)param_1[3] <= piVar4" (cast_expression "(int *)param_1[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[3]" identifier [ number_literal ])) <= identifier) )) (compound_statement "{\n    pcVar1 = *(code **)(*param_1 + 0x28);\n    if (pcVar1 != (code *)PTR_FUN_0038eb94) {\n      iVar3 = (*pcVar1)(param_1);\n      goto LAB_001f2c74;\n    }\n    pcVar1 = *(code **)(*param_1 + 0x24);\n    if (pcVar1 == (code *)PTR_FUN_0038ed8c) {\n      return 0xffffffff;\n    }\n    iVar3 = (*pcVar1)(param_1);\n    if (iVar3 == -1) {\n      return 0xffffffff;\n    }\n    piVar4 = (int *)param_1[2];\n  }" { (expression_statement "pcVar1 = *(code **)(*param_1 + 0x28);" (assignment_expression "pcVar1 = *(code **)(*param_1 + 0x28)" identifier = (pointer_expression "*(code **)(*param_1 + 0x28)" * (cast_expression "(code **)(*param_1 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x28)" ( (binary_expression "*param_1 + 0x28" (pointer_expression "*param_1" * identifier) + number_literal) ))))) ;) (if_statement "if (pcVar1 != (code *)PTR_FUN_0038eb94) {\n      iVar3 = (*pcVar1)(param_1);\n      goto LAB_001f2c74;\n    }" if (parenthesized_expression "(pcVar1 != (code *)PTR_FUN_0038eb94)" ( (binary_expression "pcVar1 != (code *)PTR_FUN_0038eb94" identifier != (cast_expression "(code *)PTR_FUN_0038eb94" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n      iVar3 = (*pcVar1)(param_1);\n      goto LAB_001f2c74;\n    }" { (expression_statement "iVar3 = (*pcVar1)(param_1);" (assignment_expression "iVar3 = (*pcVar1)(param_1)" identifier = (call_expression "(*pcVar1)(param_1)" (parenthesized_expression "(*pcVar1)" ( (pointer_expression "*pcVar1" * identifier) )) (argument_list "(param_1)" ( identifier )))) ;) (goto_statement "goto LAB_001f2c74;" goto statement_identifier ;) })) (expression_statement "pcVar1 = *(code **)(*param_1 + 0x24);" (assignment_expression "pcVar1 = *(code **)(*param_1 + 0x24)" identifier = (pointer_expression "*(code **)(*param_1 + 0x24)" * (cast_expression "(code **)(*param_1 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x24)" ( (binary_expression "*param_1 + 0x24" (pointer_expression "*param_1" * identifier) + number_literal) ))))) ;) (if_statement "if (pcVar1 == (code *)PTR_FUN_0038ed8c) {\n      return 0xffffffff;\n    }" if (parenthesized_expression "(pcVar1 == (code *)PTR_FUN_0038ed8c)" ( (binary_expression "pcVar1 == (code *)PTR_FUN_0038ed8c" identifier == (cast_expression "(code *)PTR_FUN_0038ed8c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n      return 0xffffffff;\n    }" { (return_statement "return 0xffffffff;" return number_literal ;) })) (expression_statement "iVar3 = (*pcVar1)(param_1);" (assignment_expression "iVar3 = (*pcVar1)(param_1)" identifier = (call_expression "(*pcVar1)(param_1)" (parenthesized_expression "(*pcVar1)" ( (pointer_expression "*pcVar1" * identifier) )) (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar3 == -1) {\n      return 0xffffffff;\n    }" if (parenthesized_expression "(iVar3 == -1)" ( (binary_expression "iVar3 == -1" identifier == number_literal) )) (compound_statement "{\n      return 0xffffffff;\n    }" { (return_statement "return 0xffffffff;" return number_literal ;) })) (expression_statement "piVar4 = (int *)param_1[2];" (assignment_expression "piVar4 = (int *)param_1[2]" identifier = (cast_expression "(int *)param_1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) })) (expression_statement "iVar3 = *piVar4;" (assignment_expression "iVar3 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) (expression_statement "param_1[2] = (int)(piVar4 + 1);" (assignment_expression "param_1[2] = (int)(piVar4 + 1)" (subscript_expression "param_1[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) )))) ;) (labeled_statement "LAB_001f2c74:\n  if (iVar3 != -1) {\n    if ((undefined4 *)param_1[2] < (undefined4 *)param_1[3]) {\n      return *(undefined4 *)param_1[2];\n    }\n    if (*(code **)(*param_1 + 0x24) != (code *)PTR_FUN_0038ed8c) {\n                    /* WARNING: Could not recover jumptable at 0x001f2cce. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar2 = (**(code **)(*param_1 + 0x24))();\n      return uVar2;\n    }\n  }" statement_identifier : (if_statement "if (iVar3 != -1) {\n    if ((undefined4 *)param_1[2] < (undefined4 *)param_1[3]) {\n      return *(undefined4 *)param_1[2];\n    }\n    if (*(code **)(*param_1 + 0x24) != (code *)PTR_FUN_0038ed8c) {\n                    /* WARNING: Could not recover jumptable at 0x001f2cce. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar2 = (**(code **)(*param_1 + 0x24))();\n      return uVar2;\n    }\n  }" if (parenthesized_expression "(iVar3 != -1)" ( (binary_expression "iVar3 != -1" identifier != number_literal) )) (compound_statement "{\n    if ((undefined4 *)param_1[2] < (undefined4 *)param_1[3]) {\n      return *(undefined4 *)param_1[2];\n    }\n    if (*(code **)(*param_1 + 0x24) != (code *)PTR_FUN_0038ed8c) {\n                    /* WARNING: Could not recover jumptable at 0x001f2cce. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar2 = (**(code **)(*param_1 + 0x24))();\n      return uVar2;\n    }\n  }" { (if_statement "if ((undefined4 *)param_1[2] < (undefined4 *)param_1[3]) {\n      return *(undefined4 *)param_1[2];\n    }" if (parenthesized_expression "((undefined4 *)param_1[2] < (undefined4 *)param_1[3])" ( (binary_expression "(undefined4 *)param_1[2] < (undefined4 *)param_1[3]" (cast_expression "(undefined4 *)param_1[2]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ])) < (cast_expression "(undefined4 *)param_1[3]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[3]" identifier [ number_literal ]))) )) (compound_statement "{\n      return *(undefined4 *)param_1[2];\n    }" { (return_statement "return *(undefined4 *)param_1[2];" return (pointer_expression "*(undefined4 *)param_1[2]" * (cast_expression "(undefined4 *)param_1[2]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) })) (if_statement "if (*(code **)(*param_1 + 0x24) != (code *)PTR_FUN_0038ed8c) {\n                    /* WARNING: Could not recover jumptable at 0x001f2cce. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar2 = (**(code **)(*param_1 + 0x24))();\n      return uVar2;\n    }" if (parenthesized_expression "(*(code **)(*param_1 + 0x24) != (code *)PTR_FUN_0038ed8c)" ( (binary_expression "*(code **)(*param_1 + 0x24) != (code *)PTR_FUN_0038ed8c" (pointer_expression "*(code **)(*param_1 + 0x24)" * (cast_expression "(code **)(*param_1 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x24)" ( (binary_expression "*param_1 + 0x24" (pointer_expression "*param_1" * identifier) + number_literal) )))) != (cast_expression "(code *)PTR_FUN_0038ed8c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x001f2cce. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar2 = (**(code **)(*param_1 + 0x24))();\n      return uVar2;\n    }" { comment comment (expression_statement "uVar2 = (**(code **)(*param_1 + 0x24))();" (assignment_expression "uVar2 = (**(code **)(*param_1 + 0x24))()" identifier = (call_expression "(**(code **)(*param_1 + 0x24))()" (parenthesized_expression "(**(code **)(*param_1 + 0x24))" ( (pointer_expression "**(code **)(*param_1 + 0x24)" * (pointer_expression "*(code **)(*param_1 + 0x24)" * (cast_expression "(code **)(*param_1 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x24)" ( (binary_expression "*param_1 + 0x24" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "()" ( )))) ;) (return_statement "return uVar2;" return identifier ;) })) }))) (return_statement "return 0xffffffff;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n/* std::wstreambuf::snextc() */\n\nundefined4 __thiscall std::wstreambuf::snextc(wstreambuf *this)\n\n{\n  code *pcVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int *piVar4;\n  \n  piVar4 = *(int **)(this + 8);\n  if (*(int **)(this + 0xc) <= piVar4) {\n    pcVar1 = *(code **)(*(int *)this + 0x28);\n    if (pcVar1 != (code *)PTR_uflow_0038eb94) {\n      iVar3 = (*pcVar1)(this);\n      goto LAB_001f2c74;\n    }\n    pcVar1 = *(code **)(*(int *)this + 0x24);\n    if (pcVar1 == (code *)PTR_underflow_0038ed8c) {\n      return 0xffffffff;\n    }\n    iVar3 = (*pcVar1)(this);\n    if (iVar3 == -1) {\n      return 0xffffffff;\n    }\n    piVar4 = *(int **)(this + 8);\n  }\n  iVar3 = *piVar4;\n  *(int **)(this + 8) = piVar4 + 1;\nLAB_001f2c74:\n  if (iVar3 != -1) {\n    if (*(undefined4 **)(this + 8) < *(undefined4 **)(this + 0xc)) {\n      return **(undefined4 **)(this + 8);\n    }\n    if (*(code **)(*(int *)this + 0x24) != (code *)PTR_underflow_0038ed8c) {\n                    /* WARNING: Could not recover jumptable at 0x001f2cce. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar2 = (**(code **)(*(int *)this + 0x24))();\n      return uVar2;\n    }\n  }\n  return 0xffffffff;\n}\n\n" comment comment (function_definition "undefined4 __thiscall std::wstreambuf::snextc(wstreambuf *this)\n\n{\n  code *pcVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int *piVar4;\n  \n  piVar4 = *(int **)(this + 8);\n  if (*(int **)(this + 0xc) <= piVar4) {\n    pcVar1 = *(code **)(*(int *)this + 0x28);\n    if (pcVar1 != (code *)PTR_uflow_0038eb94) {\n      iVar3 = (*pcVar1)(this);\n      goto LAB_001f2c74;\n    }\n    pcVar1 = *(code **)(*(int *)this + 0x24);\n    if (pcVar1 == (code *)PTR_underflow_0038ed8c) {\n      return 0xffffffff;\n    }\n    iVar3 = (*pcVar1)(this);\n    if (iVar3 == -1) {\n      return 0xffffffff;\n    }\n    piVar4 = *(int **)(this + 8);\n  }\n  iVar3 = *piVar4;\n  *(int **)(this + 8) = piVar4 + 1;\nLAB_001f2c74:\n  if (iVar3 != -1) {\n    if (*(undefined4 **)(this + 8) < *(undefined4 **)(this + 0xc)) {\n      return **(undefined4 **)(this + 8);\n    }\n    if (*(code **)(*(int *)this + 0x24) != (code *)PTR_underflow_0038ed8c) {\n                    /* WARNING: Could not recover jumptable at 0x001f2cce. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar2 = (**(code **)(*(int *)this + 0x24))();\n      return uVar2;\n    }\n  }\n  return 0xffffffff;\n}" type_identifier (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::wstreambuf::" identifier : : identifier : :) (function_declarator "snextc(wstreambuf *this)" identifier (parameter_list "(wstreambuf *this)" ( (parameter_declaration "wstreambuf *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  code *pcVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int *piVar4;\n  \n  piVar4 = *(int **)(this + 8);\n  if (*(int **)(this + 0xc) <= piVar4) {\n    pcVar1 = *(code **)(*(int *)this + 0x28);\n    if (pcVar1 != (code *)PTR_uflow_0038eb94) {\n      iVar3 = (*pcVar1)(this);\n      goto LAB_001f2c74;\n    }\n    pcVar1 = *(code **)(*(int *)this + 0x24);\n    if (pcVar1 == (code *)PTR_underflow_0038ed8c) {\n      return 0xffffffff;\n    }\n    iVar3 = (*pcVar1)(this);\n    if (iVar3 == -1) {\n      return 0xffffffff;\n    }\n    piVar4 = *(int **)(this + 8);\n  }\n  iVar3 = *piVar4;\n  *(int **)(this + 8) = piVar4 + 1;\nLAB_001f2c74:\n  if (iVar3 != -1) {\n    if (*(undefined4 **)(this + 8) < *(undefined4 **)(this + 0xc)) {\n      return **(undefined4 **)(this + 8);\n    }\n    if (*(code **)(*(int *)this + 0x24) != (code *)PTR_underflow_0038ed8c) {\n                    /* WARNING: Could not recover jumptable at 0x001f2cce. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar2 = (**(code **)(*(int *)this + 0x24))();\n      return uVar2;\n    }\n  }\n  return 0xffffffff;\n}" { (declaration "code *pcVar1;" type_identifier (pointer_declarator "*pcVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (expression_statement "piVar4 = *(int **)(this + 8);" (assignment_expression "piVar4 = *(int **)(this + 8)" identifier = (pointer_expression "*(int **)(this + 8)" * (cast_expression "(int **)(this + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) ))))) ;) (if_statement "if (*(int **)(this + 0xc) <= piVar4) {\n    pcVar1 = *(code **)(*(int *)this + 0x28);\n    if (pcVar1 != (code *)PTR_uflow_0038eb94) {\n      iVar3 = (*pcVar1)(this);\n      goto LAB_001f2c74;\n    }\n    pcVar1 = *(code **)(*(int *)this + 0x24);\n    if (pcVar1 == (code *)PTR_underflow_0038ed8c) {\n      return 0xffffffff;\n    }\n    iVar3 = (*pcVar1)(this);\n    if (iVar3 == -1) {\n      return 0xffffffff;\n    }\n    piVar4 = *(int **)(this + 8);\n  }" if (parenthesized_expression "(*(int **)(this + 0xc) <= piVar4)" ( (binary_expression "*(int **)(this + 0xc) <= piVar4" (pointer_expression "*(int **)(this + 0xc)" * (cast_expression "(int **)(this + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0xc)" ( (binary_expression "this + 0xc" identifier + number_literal) )))) <= identifier) )) (compound_statement "{\n    pcVar1 = *(code **)(*(int *)this + 0x28);\n    if (pcVar1 != (code *)PTR_uflow_0038eb94) {\n      iVar3 = (*pcVar1)(this);\n      goto LAB_001f2c74;\n    }\n    pcVar1 = *(code **)(*(int *)this + 0x24);\n    if (pcVar1 == (code *)PTR_underflow_0038ed8c) {\n      return 0xffffffff;\n    }\n    iVar3 = (*pcVar1)(this);\n    if (iVar3 == -1) {\n      return 0xffffffff;\n    }\n    piVar4 = *(int **)(this + 8);\n  }" { (expression_statement "pcVar1 = *(code **)(*(int *)this + 0x28);" (assignment_expression "pcVar1 = *(code **)(*(int *)this + 0x28)" identifier = (pointer_expression "*(code **)(*(int *)this + 0x28)" * (cast_expression "(code **)(*(int *)this + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)this + 0x28)" ( (binary_expression "*(int *)this + 0x28" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ;) (if_statement "if (pcVar1 != (code *)PTR_uflow_0038eb94) {\n      iVar3 = (*pcVar1)(this);\n      goto LAB_001f2c74;\n    }" if (parenthesized_expression "(pcVar1 != (code *)PTR_uflow_0038eb94)" ( (binary_expression "pcVar1 != (code *)PTR_uflow_0038eb94" identifier != (cast_expression "(code *)PTR_uflow_0038eb94" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n      iVar3 = (*pcVar1)(this);\n      goto LAB_001f2c74;\n    }" { (expression_statement "iVar3 = (*pcVar1)(this);" (assignment_expression "iVar3 = (*pcVar1)(this)" identifier = (call_expression "(*pcVar1)(this)" (parenthesized_expression "(*pcVar1)" ( (pointer_expression "*pcVar1" * identifier) )) (argument_list "(this)" ( identifier )))) ;) (goto_statement "goto LAB_001f2c74;" goto statement_identifier ;) })) (expression_statement "pcVar1 = *(code **)(*(int *)this + 0x24);" (assignment_expression "pcVar1 = *(code **)(*(int *)this + 0x24)" identifier = (pointer_expression "*(code **)(*(int *)this + 0x24)" * (cast_expression "(code **)(*(int *)this + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)this + 0x24)" ( (binary_expression "*(int *)this + 0x24" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) ;) (if_statement "if (pcVar1 == (code *)PTR_underflow_0038ed8c) {\n      return 0xffffffff;\n    }" if (parenthesized_expression "(pcVar1 == (code *)PTR_underflow_0038ed8c)" ( (binary_expression "pcVar1 == (code *)PTR_underflow_0038ed8c" identifier == (cast_expression "(code *)PTR_underflow_0038ed8c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n      return 0xffffffff;\n    }" { (return_statement "return 0xffffffff;" return number_literal ;) })) (expression_statement "iVar3 = (*pcVar1)(this);" (assignment_expression "iVar3 = (*pcVar1)(this)" identifier = (call_expression "(*pcVar1)(this)" (parenthesized_expression "(*pcVar1)" ( (pointer_expression "*pcVar1" * identifier) )) (argument_list "(this)" ( identifier )))) ;) (if_statement "if (iVar3 == -1) {\n      return 0xffffffff;\n    }" if (parenthesized_expression "(iVar3 == -1)" ( (binary_expression "iVar3 == -1" identifier == number_literal) )) (compound_statement "{\n      return 0xffffffff;\n    }" { (return_statement "return 0xffffffff;" return number_literal ;) })) (expression_statement "piVar4 = *(int **)(this + 8);" (assignment_expression "piVar4 = *(int **)(this + 8)" identifier = (pointer_expression "*(int **)(this + 8)" * (cast_expression "(int **)(this + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) ))))) ;) })) (expression_statement "iVar3 = *piVar4;" (assignment_expression "iVar3 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) (expression_statement "*(int **)(this + 8) = piVar4 + 1;" (assignment_expression "*(int **)(this + 8) = piVar4 + 1" (pointer_expression "*(int **)(this + 8)" * (cast_expression "(int **)(this + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) = (binary_expression "piVar4 + 1" identifier + number_literal)) ;) (labeled_statement "LAB_001f2c74:\n  if (iVar3 != -1) {\n    if (*(undefined4 **)(this + 8) < *(undefined4 **)(this + 0xc)) {\n      return **(undefined4 **)(this + 8);\n    }\n    if (*(code **)(*(int *)this + 0x24) != (code *)PTR_underflow_0038ed8c) {\n                    /* WARNING: Could not recover jumptable at 0x001f2cce. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar2 = (**(code **)(*(int *)this + 0x24))();\n      return uVar2;\n    }\n  }" statement_identifier : (if_statement "if (iVar3 != -1) {\n    if (*(undefined4 **)(this + 8) < *(undefined4 **)(this + 0xc)) {\n      return **(undefined4 **)(this + 8);\n    }\n    if (*(code **)(*(int *)this + 0x24) != (code *)PTR_underflow_0038ed8c) {\n                    /* WARNING: Could not recover jumptable at 0x001f2cce. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar2 = (**(code **)(*(int *)this + 0x24))();\n      return uVar2;\n    }\n  }" if (parenthesized_expression "(iVar3 != -1)" ( (binary_expression "iVar3 != -1" identifier != number_literal) )) (compound_statement "{\n    if (*(undefined4 **)(this + 8) < *(undefined4 **)(this + 0xc)) {\n      return **(undefined4 **)(this + 8);\n    }\n    if (*(code **)(*(int *)this + 0x24) != (code *)PTR_underflow_0038ed8c) {\n                    /* WARNING: Could not recover jumptable at 0x001f2cce. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar2 = (**(code **)(*(int *)this + 0x24))();\n      return uVar2;\n    }\n  }" { (if_statement "if (*(undefined4 **)(this + 8) < *(undefined4 **)(this + 0xc)) {\n      return **(undefined4 **)(this + 8);\n    }" if (parenthesized_expression "(*(undefined4 **)(this + 8) < *(undefined4 **)(this + 0xc))" ( (binary_expression "*(undefined4 **)(this + 8) < *(undefined4 **)(this + 0xc)" (pointer_expression "*(undefined4 **)(this + 8)" * (cast_expression "(undefined4 **)(this + 8)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) < (pointer_expression "*(undefined4 **)(this + 0xc)" * (cast_expression "(undefined4 **)(this + 0xc)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0xc)" ( (binary_expression "this + 0xc" identifier + number_literal) ))))) )) (compound_statement "{\n      return **(undefined4 **)(this + 8);\n    }" { (return_statement "return **(undefined4 **)(this + 8);" return (pointer_expression "**(undefined4 **)(this + 8)" * (pointer_expression "*(undefined4 **)(this + 8)" * (cast_expression "(undefined4 **)(this + 8)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) ))))) ;) })) (if_statement "if (*(code **)(*(int *)this + 0x24) != (code *)PTR_underflow_0038ed8c) {\n                    /* WARNING: Could not recover jumptable at 0x001f2cce. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar2 = (**(code **)(*(int *)this + 0x24))();\n      return uVar2;\n    }" if (parenthesized_expression "(*(code **)(*(int *)this + 0x24) != (code *)PTR_underflow_0038ed8c)" ( (binary_expression "*(code **)(*(int *)this + 0x24) != (code *)PTR_underflow_0038ed8c" (pointer_expression "*(code **)(*(int *)this + 0x24)" * (cast_expression "(code **)(*(int *)this + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)this + 0x24)" ( (binary_expression "*(int *)this + 0x24" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) )))) != (cast_expression "(code *)PTR_underflow_0038ed8c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n                    /* WARNING: Could not recover jumptable at 0x001f2cce. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n      uVar2 = (**(code **)(*(int *)this + 0x24))();\n      return uVar2;\n    }" { comment comment (expression_statement "uVar2 = (**(code **)(*(int *)this + 0x24))();" (assignment_expression "uVar2 = (**(code **)(*(int *)this + 0x24))()" identifier = (call_expression "(**(code **)(*(int *)this + 0x24))()" (parenthesized_expression "(**(code **)(*(int *)this + 0x24))" ( (pointer_expression "**(code **)(*(int *)this + 0x24)" * (pointer_expression "*(code **)(*(int *)this + 0x24)" * (cast_expression "(code **)(*(int *)this + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)this + 0x24)" ( (binary_expression "*(int *)this + 0x24" (pointer_expression "*(int *)this" * (cast_expression "(int *)this" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) + number_literal) ))))) )) (argument_list "()" ( )))) ;) (return_statement "return uVar2;" return identifier ;) })) }))) (return_statement "return 0xffffffff;" return number_literal ;) })))
(translation_unit "undefined4 FUN_001f2c50(int *param_1)\n\n{\n  code *pcVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int *piVar4;\n  \n  piVar4 = (int *)param_1[2];\n  if ((int *)param_1[3] <= piVar4) {\n    pcVar1 = *(code **)(*param_1 + 0x28);\n    if (pcVar1 != (code *)PTR_FUN_0038eb94) {\n      iVar3 = (*pcVar1)(param_1);\n      goto LAB_001f2c74;\n    }\n    pcVar1 = *(code **)(*param_1 + 0x24);\n    if (pcVar1 == (code *)PTR_FUN_0038ed8c) {\n      return 0xffffffff;\n    }\n    iVar3 = (*pcVar1)(param_1);\n    if (iVar3 == -1) {\n      return 0xffffffff;\n    }\n    piVar4 = (int *)param_1[2];\n  }\n  iVar3 = *piVar4;\n  param_1[2] = (int)(piVar4 + 1);\nLAB_001f2c74:\n  if (iVar3 != -1) {\n    if ((undefined4 *)param_1[2] < (undefined4 *)param_1[3]) {\n      return *(undefined4 *)param_1[2];\n    }\n    if (*(code **)(*param_1 + 0x24) != (code *)PTR_FUN_0038ed8c) {\n                    \n                    \n      uVar2 = (**(code **)(*param_1 + 0x24))();\n      return uVar2;\n    }\n  }\n  return 0xffffffff;\n}\n\n" (function_definition "undefined4 FUN_001f2c50(int *param_1)\n\n{\n  code *pcVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int *piVar4;\n  \n  piVar4 = (int *)param_1[2];\n  if ((int *)param_1[3] <= piVar4) {\n    pcVar1 = *(code **)(*param_1 + 0x28);\n    if (pcVar1 != (code *)PTR_FUN_0038eb94) {\n      iVar3 = (*pcVar1)(param_1);\n      goto LAB_001f2c74;\n    }\n    pcVar1 = *(code **)(*param_1 + 0x24);\n    if (pcVar1 == (code *)PTR_FUN_0038ed8c) {\n      return 0xffffffff;\n    }\n    iVar3 = (*pcVar1)(param_1);\n    if (iVar3 == -1) {\n      return 0xffffffff;\n    }\n    piVar4 = (int *)param_1[2];\n  }\n  iVar3 = *piVar4;\n  param_1[2] = (int)(piVar4 + 1);\nLAB_001f2c74:\n  if (iVar3 != -1) {\n    if ((undefined4 *)param_1[2] < (undefined4 *)param_1[3]) {\n      return *(undefined4 *)param_1[2];\n    }\n    if (*(code **)(*param_1 + 0x24) != (code *)PTR_FUN_0038ed8c) {\n                    \n                    \n      uVar2 = (**(code **)(*param_1 + 0x24))();\n      return uVar2;\n    }\n  }\n  return 0xffffffff;\n}" type_identifier (function_declarator "FUN_001f2c50(int *param_1)" identifier (parameter_list "(int *param_1)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  code *pcVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int *piVar4;\n  \n  piVar4 = (int *)param_1[2];\n  if ((int *)param_1[3] <= piVar4) {\n    pcVar1 = *(code **)(*param_1 + 0x28);\n    if (pcVar1 != (code *)PTR_FUN_0038eb94) {\n      iVar3 = (*pcVar1)(param_1);\n      goto LAB_001f2c74;\n    }\n    pcVar1 = *(code **)(*param_1 + 0x24);\n    if (pcVar1 == (code *)PTR_FUN_0038ed8c) {\n      return 0xffffffff;\n    }\n    iVar3 = (*pcVar1)(param_1);\n    if (iVar3 == -1) {\n      return 0xffffffff;\n    }\n    piVar4 = (int *)param_1[2];\n  }\n  iVar3 = *piVar4;\n  param_1[2] = (int)(piVar4 + 1);\nLAB_001f2c74:\n  if (iVar3 != -1) {\n    if ((undefined4 *)param_1[2] < (undefined4 *)param_1[3]) {\n      return *(undefined4 *)param_1[2];\n    }\n    if (*(code **)(*param_1 + 0x24) != (code *)PTR_FUN_0038ed8c) {\n                    \n                    \n      uVar2 = (**(code **)(*param_1 + 0x24))();\n      return uVar2;\n    }\n  }\n  return 0xffffffff;\n}" { (declaration "code *pcVar1;" type_identifier (pointer_declarator "*pcVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (expression_statement "piVar4 = (int *)param_1[2];" (assignment_expression "piVar4 = (int *)param_1[2]" identifier = (cast_expression "(int *)param_1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) (if_statement "if ((int *)param_1[3] <= piVar4) {\n    pcVar1 = *(code **)(*param_1 + 0x28);\n    if (pcVar1 != (code *)PTR_FUN_0038eb94) {\n      iVar3 = (*pcVar1)(param_1);\n      goto LAB_001f2c74;\n    }\n    pcVar1 = *(code **)(*param_1 + 0x24);\n    if (pcVar1 == (code *)PTR_FUN_0038ed8c) {\n      return 0xffffffff;\n    }\n    iVar3 = (*pcVar1)(param_1);\n    if (iVar3 == -1) {\n      return 0xffffffff;\n    }\n    piVar4 = (int *)param_1[2];\n  }" if (parenthesized_expression "((int *)param_1[3] <= piVar4)" ( (binary_expression "(int *)param_1[3] <= piVar4" (cast_expression "(int *)param_1[3]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[3]" identifier [ number_literal ])) <= identifier) )) (compound_statement "{\n    pcVar1 = *(code **)(*param_1 + 0x28);\n    if (pcVar1 != (code *)PTR_FUN_0038eb94) {\n      iVar3 = (*pcVar1)(param_1);\n      goto LAB_001f2c74;\n    }\n    pcVar1 = *(code **)(*param_1 + 0x24);\n    if (pcVar1 == (code *)PTR_FUN_0038ed8c) {\n      return 0xffffffff;\n    }\n    iVar3 = (*pcVar1)(param_1);\n    if (iVar3 == -1) {\n      return 0xffffffff;\n    }\n    piVar4 = (int *)param_1[2];\n  }" { (expression_statement "pcVar1 = *(code **)(*param_1 + 0x28);" (assignment_expression "pcVar1 = *(code **)(*param_1 + 0x28)" identifier = (pointer_expression "*(code **)(*param_1 + 0x28)" * (cast_expression "(code **)(*param_1 + 0x28)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x28)" ( (binary_expression "*param_1 + 0x28" (pointer_expression "*param_1" * identifier) + number_literal) ))))) ;) (if_statement "if (pcVar1 != (code *)PTR_FUN_0038eb94) {\n      iVar3 = (*pcVar1)(param_1);\n      goto LAB_001f2c74;\n    }" if (parenthesized_expression "(pcVar1 != (code *)PTR_FUN_0038eb94)" ( (binary_expression "pcVar1 != (code *)PTR_FUN_0038eb94" identifier != (cast_expression "(code *)PTR_FUN_0038eb94" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n      iVar3 = (*pcVar1)(param_1);\n      goto LAB_001f2c74;\n    }" { (expression_statement "iVar3 = (*pcVar1)(param_1);" (assignment_expression "iVar3 = (*pcVar1)(param_1)" identifier = (call_expression "(*pcVar1)(param_1)" (parenthesized_expression "(*pcVar1)" ( (pointer_expression "*pcVar1" * identifier) )) (argument_list "(param_1)" ( identifier )))) ;) (goto_statement "goto LAB_001f2c74;" goto statement_identifier ;) })) (expression_statement "pcVar1 = *(code **)(*param_1 + 0x24);" (assignment_expression "pcVar1 = *(code **)(*param_1 + 0x24)" identifier = (pointer_expression "*(code **)(*param_1 + 0x24)" * (cast_expression "(code **)(*param_1 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x24)" ( (binary_expression "*param_1 + 0x24" (pointer_expression "*param_1" * identifier) + number_literal) ))))) ;) (if_statement "if (pcVar1 == (code *)PTR_FUN_0038ed8c) {\n      return 0xffffffff;\n    }" if (parenthesized_expression "(pcVar1 == (code *)PTR_FUN_0038ed8c)" ( (binary_expression "pcVar1 == (code *)PTR_FUN_0038ed8c" identifier == (cast_expression "(code *)PTR_FUN_0038ed8c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n      return 0xffffffff;\n    }" { (return_statement "return 0xffffffff;" return number_literal ;) })) (expression_statement "iVar3 = (*pcVar1)(param_1);" (assignment_expression "iVar3 = (*pcVar1)(param_1)" identifier = (call_expression "(*pcVar1)(param_1)" (parenthesized_expression "(*pcVar1)" ( (pointer_expression "*pcVar1" * identifier) )) (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar3 == -1) {\n      return 0xffffffff;\n    }" if (parenthesized_expression "(iVar3 == -1)" ( (binary_expression "iVar3 == -1" identifier == number_literal) )) (compound_statement "{\n      return 0xffffffff;\n    }" { (return_statement "return 0xffffffff;" return number_literal ;) })) (expression_statement "piVar4 = (int *)param_1[2];" (assignment_expression "piVar4 = (int *)param_1[2]" identifier = (cast_expression "(int *)param_1[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) })) (expression_statement "iVar3 = *piVar4;" (assignment_expression "iVar3 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) (expression_statement "param_1[2] = (int)(piVar4 + 1);" (assignment_expression "param_1[2] = (int)(piVar4 + 1)" (subscript_expression "param_1[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) )))) ;) (labeled_statement "LAB_001f2c74:\n  if (iVar3 != -1) {\n    if ((undefined4 *)param_1[2] < (undefined4 *)param_1[3]) {\n      return *(undefined4 *)param_1[2];\n    }\n    if (*(code **)(*param_1 + 0x24) != (code *)PTR_FUN_0038ed8c) {\n                    \n                    \n      uVar2 = (**(code **)(*param_1 + 0x24))();\n      return uVar2;\n    }\n  }" statement_identifier : (if_statement "if (iVar3 != -1) {\n    if ((undefined4 *)param_1[2] < (undefined4 *)param_1[3]) {\n      return *(undefined4 *)param_1[2];\n    }\n    if (*(code **)(*param_1 + 0x24) != (code *)PTR_FUN_0038ed8c) {\n                    \n                    \n      uVar2 = (**(code **)(*param_1 + 0x24))();\n      return uVar2;\n    }\n  }" if (parenthesized_expression "(iVar3 != -1)" ( (binary_expression "iVar3 != -1" identifier != number_literal) )) (compound_statement "{\n    if ((undefined4 *)param_1[2] < (undefined4 *)param_1[3]) {\n      return *(undefined4 *)param_1[2];\n    }\n    if (*(code **)(*param_1 + 0x24) != (code *)PTR_FUN_0038ed8c) {\n                    \n                    \n      uVar2 = (**(code **)(*param_1 + 0x24))();\n      return uVar2;\n    }\n  }" { (if_statement "if ((undefined4 *)param_1[2] < (undefined4 *)param_1[3]) {\n      return *(undefined4 *)param_1[2];\n    }" if (parenthesized_expression "((undefined4 *)param_1[2] < (undefined4 *)param_1[3])" ( (binary_expression "(undefined4 *)param_1[2] < (undefined4 *)param_1[3]" (cast_expression "(undefined4 *)param_1[2]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ])) < (cast_expression "(undefined4 *)param_1[3]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[3]" identifier [ number_literal ]))) )) (compound_statement "{\n      return *(undefined4 *)param_1[2];\n    }" { (return_statement "return *(undefined4 *)param_1[2];" return (pointer_expression "*(undefined4 *)param_1[2]" * (cast_expression "(undefined4 *)param_1[2]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) })) (if_statement "if (*(code **)(*param_1 + 0x24) != (code *)PTR_FUN_0038ed8c) {\n                    \n                    \n      uVar2 = (**(code **)(*param_1 + 0x24))();\n      return uVar2;\n    }" if (parenthesized_expression "(*(code **)(*param_1 + 0x24) != (code *)PTR_FUN_0038ed8c)" ( (binary_expression "*(code **)(*param_1 + 0x24) != (code *)PTR_FUN_0038ed8c" (pointer_expression "*(code **)(*param_1 + 0x24)" * (cast_expression "(code **)(*param_1 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x24)" ( (binary_expression "*param_1 + 0x24" (pointer_expression "*param_1" * identifier) + number_literal) )))) != (cast_expression "(code *)PTR_FUN_0038ed8c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n                    \n                    \n      uVar2 = (**(code **)(*param_1 + 0x24))();\n      return uVar2;\n    }" { (expression_statement "uVar2 = (**(code **)(*param_1 + 0x24))();" (assignment_expression "uVar2 = (**(code **)(*param_1 + 0x24))()" identifier = (call_expression "(**(code **)(*param_1 + 0x24))()" (parenthesized_expression "(**(code **)(*param_1 + 0x24))" ( (pointer_expression "**(code **)(*param_1 + 0x24)" * (pointer_expression "*(code **)(*param_1 + 0x24)" * (cast_expression "(code **)(*param_1 + 0x24)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 0x24)" ( (binary_expression "*param_1 + 0x24" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "()" ( )))) ;) (return_statement "return uVar2;" return identifier ;) })) }))) (return_statement "return 0xffffffff;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * 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 (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT )))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) })) (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) )))) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) < (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (return_statement return (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) 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 ( )))) ;) (return_statement return IDENT ;) })) }))) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_001f2c50(int *param_1)\n\n{\n  code *pcVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int *piVar4;\n  \n  piVar4 = (int *)param_1[2];\n  if ((int *)param_1[3] <= piVar4) {\n    pcVar1 = *(code **)(*param_1 + 0x28);\n    if (pcVar1 != (code *)PTR_FUN_0038eb94) {\n      iVar3 = (*pcVar1)(param_1);\n      goto LAB_001f2c74;\n    }\n    pcVar1 = *(code **)(*param_1 + 0x24);\n    if (pcVar1 == (code *)PTR_FUN_0038ed8c) {\n      return 0xffffffff;\n    }\n    iVar3 = (*pcVar1)(param_1);\n    if (iVar3 == -1) {\n      return 0xffffffff;\n    }\n    piVar4 = (int *)param_1[2];\n  }\n  iVar3 = *piVar4;\n  param_1[2] = (int)(piVar4 + 1);\nLAB_001f2c74:\n  if (iVar3 != -1) {\n    if ((undefined4 *)param_1[2] < (undefined4 *)param_1[3]) {\n      return *(undefined4 *)param_1[2];\n    }\n    if (*(code **)(*param_1 + 0x24) != (code *)PTR_FUN_0038ed8c) {\n                    \n                    \n      uVar2 = (**(code **)(*param_1 + 0x24))();\n      return uVar2;\n    }\n  }\n  return 0xffffffff;\n}" (type_identifier "undefined4") (function_declarator "FUN_001f2c50(int *param_1)" (identifier "FUN_001f2c50") (parameter_list "(int *param_1)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  code *pcVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int *piVar4;\n  \n  piVar4 = (int *)param_1[2];\n  if ((int *)param_1[3] <= piVar4) {\n    pcVar1 = *(code **)(*param_1 + 0x28);\n    if (pcVar1 != (code *)PTR_FUN_0038eb94) {\n      iVar3 = (*pcVar1)(param_1);\n      goto LAB_001f2c74;\n    }\n    pcVar1 = *(code **)(*param_1 + 0x24);\n    if (pcVar1 == (code *)PTR_FUN_0038ed8c) {\n      return 0xffffffff;\n    }\n    iVar3 = (*pcVar1)(param_1);\n    if (iVar3 == -1) {\n      return 0xffffffff;\n    }\n    piVar4 = (int *)param_1[2];\n  }\n  iVar3 = *piVar4;\n  param_1[2] = (int)(piVar4 + 1);\nLAB_001f2c74:\n  if (iVar3 != -1) {\n    if ((undefined4 *)param_1[2] < (undefined4 *)param_1[3]) {\n      return *(undefined4 *)param_1[2];\n    }\n    if (*(code **)(*param_1 + 0x24) != (code *)PTR_FUN_0038ed8c) {\n                    \n                    \n      uVar2 = (**(code **)(*param_1 + 0x24))();\n      return uVar2;\n    }\n  }\n  return 0xffffffff;\n}" ({ "{") (declaration "code *pcVar1;" (type_identifier "code") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (expression_statement "piVar4 = (int *)param_1[2];" (assignment_expression "piVar4 = (int *)param_1[2]" (identifier "piVar4") (= "=") (cast_expression "(int *)param_1[2]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (if_statement "if ((int *)param_1[3] <= piVar4) {\n    pcVar1 = *(code **)(*param_1 + 0x28);\n    if (pcVar1 != (code *)PTR_FUN_0038eb94) {\n      iVar3 = (*pcVar1)(param_1);\n      goto LAB_001f2c74;\n    }\n    pcVar1 = *(code **)(*param_1 + 0x24);\n    if (pcVar1 == (code *)PTR_FUN_0038ed8c) {\n      return 0xffffffff;\n    }\n    iVar3 = (*pcVar1)(param_1);\n    if (iVar3 == -1) {\n      return 0xffffffff;\n    }\n    piVar4 = (int *)param_1[2];\n  }" (if "if") (parenthesized_expression "((int *)param_1[3] <= piVar4)" (( "(") (binary_expression "(int *)param_1[3] <= piVar4" (cast_expression "(int *)param_1[3]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]"))) (<= "<=") (identifier "piVar4")) () ")")) (compound_statement "{\n    pcVar1 = *(code **)(*param_1 + 0x28);\n    if (pcVar1 != (code *)PTR_FUN_0038eb94) {\n      iVar3 = (*pcVar1)(param_1);\n      goto LAB_001f2c74;\n    }\n    pcVar1 = *(code **)(*param_1 + 0x24);\n    if (pcVar1 == (code *)PTR_FUN_0038ed8c) {\n      return 0xffffffff;\n    }\n    iVar3 = (*pcVar1)(param_1);\n    if (iVar3 == -1) {\n      return 0xffffffff;\n    }\n    piVar4 = (int *)param_1[2];\n  }" ({ "{") (expression_statement "pcVar1 = *(code **)(*param_1 + 0x28);" (assignment_expression "pcVar1 = *(code **)(*param_1 + 0x28)" (identifier "pcVar1") (= "=") (pointer_expression "*(code **)(*param_1 + 0x28)" (* "*") (cast_expression "(code **)(*param_1 + 0x28)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_1 + 0x28)" (( "(") (binary_expression "*param_1 + 0x28" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (if_statement "if (pcVar1 != (code *)PTR_FUN_0038eb94) {\n      iVar3 = (*pcVar1)(param_1);\n      goto LAB_001f2c74;\n    }" (if "if") (parenthesized_expression "(pcVar1 != (code *)PTR_FUN_0038eb94)" (( "(") (binary_expression "pcVar1 != (code *)PTR_FUN_0038eb94" (identifier "pcVar1") (!= "!=") (cast_expression "(code *)PTR_FUN_0038eb94" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_0038eb94"))) () ")")) (compound_statement "{\n      iVar3 = (*pcVar1)(param_1);\n      goto LAB_001f2c74;\n    }" ({ "{") (expression_statement "iVar3 = (*pcVar1)(param_1);" (assignment_expression "iVar3 = (*pcVar1)(param_1)" (identifier "iVar3") (= "=") (call_expression "(*pcVar1)(param_1)" (parenthesized_expression "(*pcVar1)" (( "(") (pointer_expression "*pcVar1" (* "*") (identifier "pcVar1")) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (goto_statement "goto LAB_001f2c74;" (goto "goto") (statement_identifier "LAB_001f2c74") (; ";")) (} "}"))) (expression_statement "pcVar1 = *(code **)(*param_1 + 0x24);" (assignment_expression "pcVar1 = *(code **)(*param_1 + 0x24)" (identifier "pcVar1") (= "=") (pointer_expression "*(code **)(*param_1 + 0x24)" (* "*") (cast_expression "(code **)(*param_1 + 0x24)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_1 + 0x24)" (( "(") (binary_expression "*param_1 + 0x24" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x24")) () ")"))))) (; ";")) (if_statement "if (pcVar1 == (code *)PTR_FUN_0038ed8c) {\n      return 0xffffffff;\n    }" (if "if") (parenthesized_expression "(pcVar1 == (code *)PTR_FUN_0038ed8c)" (( "(") (binary_expression "pcVar1 == (code *)PTR_FUN_0038ed8c" (identifier "pcVar1") (== "==") (cast_expression "(code *)PTR_FUN_0038ed8c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_0038ed8c"))) () ")")) (compound_statement "{\n      return 0xffffffff;\n    }" ({ "{") (return_statement "return 0xffffffff;" (return "return") (number_literal "0xffffffff") (; ";")) (} "}"))) (expression_statement "iVar3 = (*pcVar1)(param_1);" (assignment_expression "iVar3 = (*pcVar1)(param_1)" (identifier "iVar3") (= "=") (call_expression "(*pcVar1)(param_1)" (parenthesized_expression "(*pcVar1)" (( "(") (pointer_expression "*pcVar1" (* "*") (identifier "pcVar1")) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (iVar3 == -1) {\n      return 0xffffffff;\n    }" (if "if") (parenthesized_expression "(iVar3 == -1)" (( "(") (binary_expression "iVar3 == -1" (identifier "iVar3") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n      return 0xffffffff;\n    }" ({ "{") (return_statement "return 0xffffffff;" (return "return") (number_literal "0xffffffff") (; ";")) (} "}"))) (expression_statement "piVar4 = (int *)param_1[2];" (assignment_expression "piVar4 = (int *)param_1[2]" (identifier "piVar4") (= "=") (cast_expression "(int *)param_1[2]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (} "}"))) (expression_statement "iVar3 = *piVar4;" (assignment_expression "iVar3 = *piVar4" (identifier "iVar3") (= "=") (pointer_expression "*piVar4" (* "*") (identifier "piVar4"))) (; ";")) (expression_statement "param_1[2] = (int)(piVar4 + 1);" (assignment_expression "param_1[2] = (int)(piVar4 + 1)" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (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")) () ")")))) (; ";")) (labeled_statement "LAB_001f2c74:\n  if (iVar3 != -1) {\n    if ((undefined4 *)param_1[2] < (undefined4 *)param_1[3]) {\n      return *(undefined4 *)param_1[2];\n    }\n    if (*(code **)(*param_1 + 0x24) != (code *)PTR_FUN_0038ed8c) {\n                    \n                    \n      uVar2 = (**(code **)(*param_1 + 0x24))();\n      return uVar2;\n    }\n  }" (statement_identifier "LAB_001f2c74") (: ":") (if_statement "if (iVar3 != -1) {\n    if ((undefined4 *)param_1[2] < (undefined4 *)param_1[3]) {\n      return *(undefined4 *)param_1[2];\n    }\n    if (*(code **)(*param_1 + 0x24) != (code *)PTR_FUN_0038ed8c) {\n                    \n                    \n      uVar2 = (**(code **)(*param_1 + 0x24))();\n      return uVar2;\n    }\n  }" (if "if") (parenthesized_expression "(iVar3 != -1)" (( "(") (binary_expression "iVar3 != -1" (identifier "iVar3") (!= "!=") (number_literal "-1")) () ")")) (compound_statement "{\n    if ((undefined4 *)param_1[2] < (undefined4 *)param_1[3]) {\n      return *(undefined4 *)param_1[2];\n    }\n    if (*(code **)(*param_1 + 0x24) != (code *)PTR_FUN_0038ed8c) {\n                    \n                    \n      uVar2 = (**(code **)(*param_1 + 0x24))();\n      return uVar2;\n    }\n  }" ({ "{") (if_statement "if ((undefined4 *)param_1[2] < (undefined4 *)param_1[3]) {\n      return *(undefined4 *)param_1[2];\n    }" (if "if") (parenthesized_expression "((undefined4 *)param_1[2] < (undefined4 *)param_1[3])" (( "(") (binary_expression "(undefined4 *)param_1[2] < (undefined4 *)param_1[3]" (cast_expression "(undefined4 *)param_1[2]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (< "<") (cast_expression "(undefined4 *)param_1[3]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")))) () ")")) (compound_statement "{\n      return *(undefined4 *)param_1[2];\n    }" ({ "{") (return_statement "return *(undefined4 *)param_1[2];" (return "return") (pointer_expression "*(undefined4 *)param_1[2]" (* "*") (cast_expression "(undefined4 *)param_1[2]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (} "}"))) (if_statement "if (*(code **)(*param_1 + 0x24) != (code *)PTR_FUN_0038ed8c) {\n                    \n                    \n      uVar2 = (**(code **)(*param_1 + 0x24))();\n      return uVar2;\n    }" (if "if") (parenthesized_expression "(*(code **)(*param_1 + 0x24) != (code *)PTR_FUN_0038ed8c)" (( "(") (binary_expression "*(code **)(*param_1 + 0x24) != (code *)PTR_FUN_0038ed8c" (pointer_expression "*(code **)(*param_1 + 0x24)" (* "*") (cast_expression "(code **)(*param_1 + 0x24)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_1 + 0x24)" (( "(") (binary_expression "*param_1 + 0x24" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x24")) () ")")))) (!= "!=") (cast_expression "(code *)PTR_FUN_0038ed8c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_0038ed8c"))) () ")")) (compound_statement "{\n                    \n                    \n      uVar2 = (**(code **)(*param_1 + 0x24))();\n      return uVar2;\n    }" ({ "{") (expression_statement "uVar2 = (**(code **)(*param_1 + 0x24))();" (assignment_expression "uVar2 = (**(code **)(*param_1 + 0x24))()" (identifier "uVar2") (= "=") (call_expression "(**(code **)(*param_1 + 0x24))()" (parenthesized_expression "(**(code **)(*param_1 + 0x24))" (( "(") (pointer_expression "**(code **)(*param_1 + 0x24)" (* "*") (pointer_expression "*(code **)(*param_1 + 0x24)" (* "*") (cast_expression "(code **)(*param_1 + 0x24)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_1 + 0x24)" (( "(") (binary_expression "*param_1 + 0x24" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x24")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (} "}")))) (return_statement "return 0xffffffff;" (return "return") (number_literal "0xffffffff") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */
/* std::wstreambuf::snextc() */

type_1 __thiscall std::type_2::function_1(type_2 *var_1)

{
  type_3 *var_3;
  type_1 uVar2;
  int var_4;
  int *var_2;
  
  var_2 = *(int **)(var_1 + 8);
  if (*(int **)(var_1 + 0xc) <= var_2) {
    var_3 = *(type_3 **)(*(int *)var_1 + 0x28);
    if (var_3 != (type_3 *)PTR_uflow_0038eb94) {
      var_4 = (*var_3)(var_1);
      goto LAB_001f2c74;
    }
    var_3 = *(type_3 **)(*(int *)var_1 + 0x24);
    if (var_3 == (type_3 *)PTR_underflow_0038ed8c) {
      return 0xffffffff;
    }
    var_4 = (*var_3)(var_1);
    if (var_4 == -1) {
      return 0xffffffff;
    }
    var_2 = *(int **)(var_1 + 8);
  }
  var_4 = *var_2;
  *(int **)(var_1 + 8) = var_2 + 1;
LAB_001f2c74:
  if (var_4 != -1) {
    if (*(type_1 **)(var_1 + 8) < *(type_1 **)(var_1 + 0xc)) {
      return **(type_1 **)(var_1 + 8);
    }
    if (*(type_3 **)(*(int *)var_1 + 0x24) != (type_3 *)PTR_underflow_0038ed8c) {
                    /* WARNING: Could not recover jumptable at 0x001f2cce. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      uVar2 = (**(type_3 **)(*(int *)var_1 + 0x24))();
      return uVar2;
    }
  }
  return 0xffffffff;
}


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

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

undefined4 MASKED(int *param_1)

{
  code *pcVar1;
  undefined4 uVar2;
  int iVar3;
  int *piVar4;
  
  piVar4 = (int *)param_1[2];
  if ((int *)param_1[3] <= piVar4) {
    pcVar1 = *(code **)(*param_1 + 0x28);
    if (pcVar1 != (code *)PTR_FUN_0038eb94) {
      iVar3 = (*pcVar1)(param_1);
      goto LAB_001f2c74;
    }
    pcVar1 = *(code **)(*param_1 + 0x24);
    if (pcVar1 == (code *)PTR_FUN_0038ed8c) {
      return 0xffffffff;
    }
    iVar3 = (*pcVar1)(param_1);
    if (iVar3 == -1) {
      return 0xffffffff;
    }
    piVar4 = (int *)param_1[2];
  }
  iVar3 = *piVar4;
  param_1[2] = (int)(piVar4 + 1);
LAB_001f2c74:
  if (iVar3 != -1) {
    if ((undefined4 *)param_1[2] < (undefined4 *)param_1[3]) {
      return *(undefined4 *)param_1[2];
    }
    if (*(code **)(*param_1 + 0x24) != (code *)PTR_FUN_0038ed8c) {
                    /* WARNING: Could not recover jumptable at 0x001f2cce. Too many branches */
                    /* WARNING: Treating indirect jump as call */
      uVar2 = (**(code **)(*param_1 + 0x24))();
      return uVar2;
    }
  }
  return 0xffffffff;
}

