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

uint __thiscall std::streambuf::snextc(streambuf *this)

{
  code *pcVar1;
  byte *pbVar2;
  uint uVar3;
  int iVar4;
  byte *pbVar5;
  
  pbVar5 = *(byte **)(this + 0xc);
  if (*(byte **)(this + 8) < pbVar5) {
    pbVar2 = *(byte **)(this + 8) + 1;
    *(byte **)(this + 8) = pbVar2;
  }
  else {
    pcVar1 = *(code **)(*(int *)this + 0x28);
    if (pcVar1 == (code *)PTR_uflow_0033ec74) {
      pcVar1 = *(code **)(*(int *)this + 0x24);
      if (pcVar1 == (code *)PTR_underflow_0033ee14) {
        return 0xffffffff;
      }
      iVar4 = (*pcVar1)(this);
      if (iVar4 == -1) {
        return 0xffffffff;
      }
      pbVar5 = *(byte **)(this + 0xc);
      pbVar2 = (byte *)(*(int *)(this + 8) + 1);
      *(byte **)(this + 8) = pbVar2;
    }
    else {
      iVar4 = (*pcVar1)(this);
      if (iVar4 == -1) {
        return 0xffffffff;
      }
      pbVar2 = *(byte **)(this + 8);
      pbVar5 = *(byte **)(this + 0xc);
    }
  }
  if (pbVar2 < pbVar5) {
    return (uint)*pbVar2;
  }
  if (*(code **)(*(int *)this + 0x24) == (code *)PTR_underflow_0033ee14) {
    return 0xffffffff;
  }
                    /* WARNING: Could not recover jumptable at 0x001b7b46. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  uVar3 = (**(code **)(*(int *)this + 0x24))();
  return uVar3;
}



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

uint FUN_001b7ad0(int *param_1)

{
  code *pcVar1;
  byte *pbVar2;
  uint uVar3;
  int iVar4;
  byte *pbVar5;
  
  pbVar5 = (byte *)param_1[3];
  if ((byte *)param_1[2] < pbVar5) {
    pbVar2 = (byte *)param_1[2] + 1;
    param_1[2] = (int)pbVar2;
  }
  else {
    pcVar1 = *(code **)(*param_1 + 0x28);
    if (pcVar1 == (code *)PTR_FUN_0033ec74) {
      pcVar1 = *(code **)(*param_1 + 0x24);
      if (pcVar1 == (code *)PTR_FUN_0033ee14) {
        return 0xffffffff;
      }
      iVar4 = (*pcVar1)(param_1);
      if (iVar4 == -1) {
        return 0xffffffff;
      }
      pbVar5 = (byte *)param_1[3];
      pbVar2 = (byte *)(param_1[2] + 1);
      param_1[2] = (int)pbVar2;
    }
    else {
      iVar4 = (*pcVar1)(param_1);
      if (iVar4 == -1) {
        return 0xffffffff;
      }
      pbVar2 = (byte *)param_1[2];
      pbVar5 = (byte *)param_1[3];
    }
  }
  if (pbVar2 < pbVar5) {
    return (uint)*pbVar2;
  }
  if (*(code **)(*param_1 + 0x24) == (code *)PTR_FUN_0033ee14) {
    return 0xffffffff;
  }
                    /* WARNING: Could not recover jumptable at 0x001b7b46. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  uVar3 = (**(code **)(*param_1 + 0x24))();
  return uVar3;
}


PUSH ESI
CALL 0x000487a6
ADD ESI,0x18752a
PUSH EBX
SUB ESP,0x4
MOV EBX,dword ptr [ESP + 0x10]
MOV EAX,dword ptr [EBX + 0x8]
MOV EDX,dword ptr [EBX + 0xc]
CMP EAX,EDX
JNC 0x001b7b08
ADD EAX,0x1
MOV dword ptr [EBX + 0x8],EAX
CMP EAX,EDX
JNC 0x001b7b30
MOVZX EAX,byte 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 + 0xfffffc74]
JNZ 0x001b7b50
MOV EAX,dword ptr [EAX + 0x24]
CMP EAX,dword ptr [ESI + 0xfffffe14]
JNZ 0x001b7b70
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 + 0xfffffe14]
JZ 0x001b7b20
MOV dword ptr [ESP + 0x10],EBX
ADD ESP,0x4
POP EBX
POP ESI
JMP EAX
SUB ESP,0xc
PUSH EBX
CALL EDX
ADD ESP,0x10
CMP EAX,-0x1
JZ 0x001b7b20
MOV EAX,dword ptr [EBX + 0x8]
MOV EDX,dword ptr [EBX + 0xc]
JMP 0x001b7af4
SUB ESP,0xc
PUSH EBX
CALL EAX
ADD ESP,0x10
CMP EAX,-0x1
JZ 0x001b7b20
MOV EAX,dword ptr [EBX + 0x8]
MOV EDX,dword ptr [EBX + 0xc]
ADD EAX,0x1
MOV dword ptr [EBX + 0x8],EAX
JMP 0x001b7af4
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nuint FUN_001b7ad0(int *param_1)\n\n{\n  code *pcVar1;\n  byte *pbVar2;\n  uint uVar3;\n  int iVar4;\n  byte *pbVar5;\n  \n  pbVar5 = (byte *)param_1[3];\n  if ((byte *)param_1[2] < pbVar5) {\n    pbVar2 = (byte *)param_1[2] + 1;\n    param_1[2] = (int)pbVar2;\n  }\n  else {\n    pcVar1 = *(code **)(*param_1 + 0x28);\n    if (pcVar1 == (code *)PTR_FUN_0033ec74) {\n      pcVar1 = *(code **)(*param_1 + 0x24);\n      if (pcVar1 == (code *)PTR_FUN_0033ee14) {\n        return 0xffffffff;\n      }\n      iVar4 = (*pcVar1)(param_1);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar5 = (byte *)param_1[3];\n      pbVar2 = (byte *)(param_1[2] + 1);\n      param_1[2] = (int)pbVar2;\n    }\n    else {\n      iVar4 = (*pcVar1)(param_1);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar2 = (byte *)param_1[2];\n      pbVar5 = (byte *)param_1[3];\n    }\n  }\n  if (pbVar2 < pbVar5) {\n    return (uint)*pbVar2;\n  }\n  if (*(code **)(*param_1 + 0x24) == (code *)PTR_FUN_0033ee14) {\n    return 0xffffffff;\n  }\n                    /* WARNING: Could not recover jumptable at 0x001b7b46. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  uVar3 = (**(code **)(*param_1 + 0x24))();\n  return uVar3;\n}\n\n" comment (function_definition "uint FUN_001b7ad0(int *param_1)\n\n{\n  code *pcVar1;\n  byte *pbVar2;\n  uint uVar3;\n  int iVar4;\n  byte *pbVar5;\n  \n  pbVar5 = (byte *)param_1[3];\n  if ((byte *)param_1[2] < pbVar5) {\n    pbVar2 = (byte *)param_1[2] + 1;\n    param_1[2] = (int)pbVar2;\n  }\n  else {\n    pcVar1 = *(code **)(*param_1 + 0x28);\n    if (pcVar1 == (code *)PTR_FUN_0033ec74) {\n      pcVar1 = *(code **)(*param_1 + 0x24);\n      if (pcVar1 == (code *)PTR_FUN_0033ee14) {\n        return 0xffffffff;\n      }\n      iVar4 = (*pcVar1)(param_1);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar5 = (byte *)param_1[3];\n      pbVar2 = (byte *)(param_1[2] + 1);\n      param_1[2] = (int)pbVar2;\n    }\n    else {\n      iVar4 = (*pcVar1)(param_1);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar2 = (byte *)param_1[2];\n      pbVar5 = (byte *)param_1[3];\n    }\n  }\n  if (pbVar2 < pbVar5) {\n    return (uint)*pbVar2;\n  }\n  if (*(code **)(*param_1 + 0x24) == (code *)PTR_FUN_0033ee14) {\n    return 0xffffffff;\n  }\n                    /* WARNING: Could not recover jumptable at 0x001b7b46. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  uVar3 = (**(code **)(*param_1 + 0x24))();\n  return uVar3;\n}" type_identifier (function_declarator "FUN_001b7ad0(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  byte *pbVar2;\n  uint uVar3;\n  int iVar4;\n  byte *pbVar5;\n  \n  pbVar5 = (byte *)param_1[3];\n  if ((byte *)param_1[2] < pbVar5) {\n    pbVar2 = (byte *)param_1[2] + 1;\n    param_1[2] = (int)pbVar2;\n  }\n  else {\n    pcVar1 = *(code **)(*param_1 + 0x28);\n    if (pcVar1 == (code *)PTR_FUN_0033ec74) {\n      pcVar1 = *(code **)(*param_1 + 0x24);\n      if (pcVar1 == (code *)PTR_FUN_0033ee14) {\n        return 0xffffffff;\n      }\n      iVar4 = (*pcVar1)(param_1);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar5 = (byte *)param_1[3];\n      pbVar2 = (byte *)(param_1[2] + 1);\n      param_1[2] = (int)pbVar2;\n    }\n    else {\n      iVar4 = (*pcVar1)(param_1);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar2 = (byte *)param_1[2];\n      pbVar5 = (byte *)param_1[3];\n    }\n  }\n  if (pbVar2 < pbVar5) {\n    return (uint)*pbVar2;\n  }\n  if (*(code **)(*param_1 + 0x24) == (code *)PTR_FUN_0033ee14) {\n    return 0xffffffff;\n  }\n                    /* WARNING: Could not recover jumptable at 0x001b7b46. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  uVar3 = (**(code **)(*param_1 + 0x24))();\n  return uVar3;\n}" { (declaration "code *pcVar1;" type_identifier (pointer_declarator "*pcVar1" * identifier) ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (expression_statement "pbVar5 = (byte *)param_1[3];" (assignment_expression "pbVar5 = (byte *)param_1[3]" identifier = (cast_expression "(byte *)param_1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[3]" identifier [ number_literal ]))) ;) (if_statement "if ((byte *)param_1[2] < pbVar5) {\n    pbVar2 = (byte *)param_1[2] + 1;\n    param_1[2] = (int)pbVar2;\n  }\n  else {\n    pcVar1 = *(code **)(*param_1 + 0x28);\n    if (pcVar1 == (code *)PTR_FUN_0033ec74) {\n      pcVar1 = *(code **)(*param_1 + 0x24);\n      if (pcVar1 == (code *)PTR_FUN_0033ee14) {\n        return 0xffffffff;\n      }\n      iVar4 = (*pcVar1)(param_1);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar5 = (byte *)param_1[3];\n      pbVar2 = (byte *)(param_1[2] + 1);\n      param_1[2] = (int)pbVar2;\n    }\n    else {\n      iVar4 = (*pcVar1)(param_1);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar2 = (byte *)param_1[2];\n      pbVar5 = (byte *)param_1[3];\n    }\n  }" if (parenthesized_expression "((byte *)param_1[2] < pbVar5)" ( (binary_expression "(byte *)param_1[2] < pbVar5" (cast_expression "(byte *)param_1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ])) < identifier) )) (compound_statement "{\n    pbVar2 = (byte *)param_1[2] + 1;\n    param_1[2] = (int)pbVar2;\n  }" { (expression_statement "pbVar2 = (byte *)param_1[2] + 1;" (assignment_expression "pbVar2 = (byte *)param_1[2] + 1" identifier = (binary_expression "(byte *)param_1[2] + 1" (cast_expression "(byte *)param_1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ])) + number_literal)) ;) (expression_statement "param_1[2] = (int)pbVar2;" (assignment_expression "param_1[2] = (int)pbVar2" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (cast_expression "(int)pbVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) }) (else_clause "else {\n    pcVar1 = *(code **)(*param_1 + 0x28);\n    if (pcVar1 == (code *)PTR_FUN_0033ec74) {\n      pcVar1 = *(code **)(*param_1 + 0x24);\n      if (pcVar1 == (code *)PTR_FUN_0033ee14) {\n        return 0xffffffff;\n      }\n      iVar4 = (*pcVar1)(param_1);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar5 = (byte *)param_1[3];\n      pbVar2 = (byte *)(param_1[2] + 1);\n      param_1[2] = (int)pbVar2;\n    }\n    else {\n      iVar4 = (*pcVar1)(param_1);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar2 = (byte *)param_1[2];\n      pbVar5 = (byte *)param_1[3];\n    }\n  }" else (compound_statement "{\n    pcVar1 = *(code **)(*param_1 + 0x28);\n    if (pcVar1 == (code *)PTR_FUN_0033ec74) {\n      pcVar1 = *(code **)(*param_1 + 0x24);\n      if (pcVar1 == (code *)PTR_FUN_0033ee14) {\n        return 0xffffffff;\n      }\n      iVar4 = (*pcVar1)(param_1);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar5 = (byte *)param_1[3];\n      pbVar2 = (byte *)(param_1[2] + 1);\n      param_1[2] = (int)pbVar2;\n    }\n    else {\n      iVar4 = (*pcVar1)(param_1);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar2 = (byte *)param_1[2];\n      pbVar5 = (byte *)param_1[3];\n    }\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_0033ec74) {\n      pcVar1 = *(code **)(*param_1 + 0x24);\n      if (pcVar1 == (code *)PTR_FUN_0033ee14) {\n        return 0xffffffff;\n      }\n      iVar4 = (*pcVar1)(param_1);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar5 = (byte *)param_1[3];\n      pbVar2 = (byte *)(param_1[2] + 1);\n      param_1[2] = (int)pbVar2;\n    }\n    else {\n      iVar4 = (*pcVar1)(param_1);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar2 = (byte *)param_1[2];\n      pbVar5 = (byte *)param_1[3];\n    }" if (parenthesized_expression "(pcVar1 == (code *)PTR_FUN_0033ec74)" ( (binary_expression "pcVar1 == (code *)PTR_FUN_0033ec74" identifier == (cast_expression "(code *)PTR_FUN_0033ec74" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n      pcVar1 = *(code **)(*param_1 + 0x24);\n      if (pcVar1 == (code *)PTR_FUN_0033ee14) {\n        return 0xffffffff;\n      }\n      iVar4 = (*pcVar1)(param_1);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar5 = (byte *)param_1[3];\n      pbVar2 = (byte *)(param_1[2] + 1);\n      param_1[2] = (int)pbVar2;\n    }" { (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_0033ee14) {\n        return 0xffffffff;\n      }" if (parenthesized_expression "(pcVar1 == (code *)PTR_FUN_0033ee14)" ( (binary_expression "pcVar1 == (code *)PTR_FUN_0033ee14" identifier == (cast_expression "(code *)PTR_FUN_0033ee14" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n        return 0xffffffff;\n      }" { (return_statement "return 0xffffffff;" return number_literal ;) })) (expression_statement "iVar4 = (*pcVar1)(param_1);" (assignment_expression "iVar4 = (*pcVar1)(param_1)" identifier = (call_expression "(*pcVar1)(param_1)" (parenthesized_expression "(*pcVar1)" ( (pointer_expression "*pcVar1" * identifier) )) (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar4 == -1) {\n        return 0xffffffff;\n      }" if (parenthesized_expression "(iVar4 == -1)" ( (binary_expression "iVar4 == -1" identifier == number_literal) )) (compound_statement "{\n        return 0xffffffff;\n      }" { (return_statement "return 0xffffffff;" return number_literal ;) })) (expression_statement "pbVar5 = (byte *)param_1[3];" (assignment_expression "pbVar5 = (byte *)param_1[3]" identifier = (cast_expression "(byte *)param_1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[3]" identifier [ number_literal ]))) ;) (expression_statement "pbVar2 = (byte *)(param_1[2] + 1);" (assignment_expression "pbVar2 = (byte *)(param_1[2] + 1)" identifier = (cast_expression "(byte *)(param_1[2] + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[2] + 1)" ( (binary_expression "param_1[2] + 1" (subscript_expression "param_1[2]" identifier [ number_literal ]) + number_literal) )))) ;) (expression_statement "param_1[2] = (int)pbVar2;" (assignment_expression "param_1[2] = (int)pbVar2" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (cast_expression "(int)pbVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) }) (else_clause "else {\n      iVar4 = (*pcVar1)(param_1);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar2 = (byte *)param_1[2];\n      pbVar5 = (byte *)param_1[3];\n    }" else (compound_statement "{\n      iVar4 = (*pcVar1)(param_1);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar2 = (byte *)param_1[2];\n      pbVar5 = (byte *)param_1[3];\n    }" { (expression_statement "iVar4 = (*pcVar1)(param_1);" (assignment_expression "iVar4 = (*pcVar1)(param_1)" identifier = (call_expression "(*pcVar1)(param_1)" (parenthesized_expression "(*pcVar1)" ( (pointer_expression "*pcVar1" * identifier) )) (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar4 == -1) {\n        return 0xffffffff;\n      }" if (parenthesized_expression "(iVar4 == -1)" ( (binary_expression "iVar4 == -1" identifier == number_literal) )) (compound_statement "{\n        return 0xffffffff;\n      }" { (return_statement "return 0xffffffff;" return number_literal ;) })) (expression_statement "pbVar2 = (byte *)param_1[2];" (assignment_expression "pbVar2 = (byte *)param_1[2]" identifier = (cast_expression "(byte *)param_1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) (expression_statement "pbVar5 = (byte *)param_1[3];" (assignment_expression "pbVar5 = (byte *)param_1[3]" identifier = (cast_expression "(byte *)param_1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[3]" identifier [ number_literal ]))) ;) }))) }))) (if_statement "if (pbVar2 < pbVar5) {\n    return (uint)*pbVar2;\n  }" if (parenthesized_expression "(pbVar2 < pbVar5)" ( (binary_expression "pbVar2 < pbVar5" identifier < identifier) )) (compound_statement "{\n    return (uint)*pbVar2;\n  }" { (return_statement "return (uint)*pbVar2;" return (binary_expression "(uint)*pbVar2" (parenthesized_expression "(uint)" ( identifier )) * identifier) ;) })) (if_statement "if (*(code **)(*param_1 + 0x24) == (code *)PTR_FUN_0033ee14) {\n    return 0xffffffff;\n  }" if (parenthesized_expression "(*(code **)(*param_1 + 0x24) == (code *)PTR_FUN_0033ee14)" ( (binary_expression "*(code **)(*param_1 + 0x24) == (code *)PTR_FUN_0033ee14" (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_0033ee14" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n    return 0xffffffff;\n  }" { (return_statement "return 0xffffffff;" return number_literal ;) })) comment comment (expression_statement "uVar3 = (**(code **)(*param_1 + 0x24))();" (assignment_expression "uVar3 = (**(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 uVar3;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n/* std::streambuf::snextc() */\n\nuint __thiscall std::streambuf::snextc(streambuf *this)\n\n{\n  code *pcVar1;\n  byte *pbVar2;\n  uint uVar3;\n  int iVar4;\n  byte *pbVar5;\n  \n  pbVar5 = *(byte **)(this + 0xc);\n  if (*(byte **)(this + 8) < pbVar5) {\n    pbVar2 = *(byte **)(this + 8) + 1;\n    *(byte **)(this + 8) = pbVar2;\n  }\n  else {\n    pcVar1 = *(code **)(*(int *)this + 0x28);\n    if (pcVar1 == (code *)PTR_uflow_0033ec74) {\n      pcVar1 = *(code **)(*(int *)this + 0x24);\n      if (pcVar1 == (code *)PTR_underflow_0033ee14) {\n        return 0xffffffff;\n      }\n      iVar4 = (*pcVar1)(this);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar5 = *(byte **)(this + 0xc);\n      pbVar2 = (byte *)(*(int *)(this + 8) + 1);\n      *(byte **)(this + 8) = pbVar2;\n    }\n    else {\n      iVar4 = (*pcVar1)(this);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar2 = *(byte **)(this + 8);\n      pbVar5 = *(byte **)(this + 0xc);\n    }\n  }\n  if (pbVar2 < pbVar5) {\n    return (uint)*pbVar2;\n  }\n  if (*(code **)(*(int *)this + 0x24) == (code *)PTR_underflow_0033ee14) {\n    return 0xffffffff;\n  }\n                    /* WARNING: Could not recover jumptable at 0x001b7b46. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  uVar3 = (**(code **)(*(int *)this + 0x24))();\n  return uVar3;\n}\n\n" comment comment (function_definition "uint __thiscall std::streambuf::snextc(streambuf *this)\n\n{\n  code *pcVar1;\n  byte *pbVar2;\n  uint uVar3;\n  int iVar4;\n  byte *pbVar5;\n  \n  pbVar5 = *(byte **)(this + 0xc);\n  if (*(byte **)(this + 8) < pbVar5) {\n    pbVar2 = *(byte **)(this + 8) + 1;\n    *(byte **)(this + 8) = pbVar2;\n  }\n  else {\n    pcVar1 = *(code **)(*(int *)this + 0x28);\n    if (pcVar1 == (code *)PTR_uflow_0033ec74) {\n      pcVar1 = *(code **)(*(int *)this + 0x24);\n      if (pcVar1 == (code *)PTR_underflow_0033ee14) {\n        return 0xffffffff;\n      }\n      iVar4 = (*pcVar1)(this);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar5 = *(byte **)(this + 0xc);\n      pbVar2 = (byte *)(*(int *)(this + 8) + 1);\n      *(byte **)(this + 8) = pbVar2;\n    }\n    else {\n      iVar4 = (*pcVar1)(this);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar2 = *(byte **)(this + 8);\n      pbVar5 = *(byte **)(this + 0xc);\n    }\n  }\n  if (pbVar2 < pbVar5) {\n    return (uint)*pbVar2;\n  }\n  if (*(code **)(*(int *)this + 0x24) == (code *)PTR_underflow_0033ee14) {\n    return 0xffffffff;\n  }\n                    /* WARNING: Could not recover jumptable at 0x001b7b46. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  uVar3 = (**(code **)(*(int *)this + 0x24))();\n  return uVar3;\n}" type_identifier (ms_call_modifier "__thiscall" __thiscall) (ERROR "std::streambuf::" identifier : : identifier : :) (function_declarator "snextc(streambuf *this)" identifier (parameter_list "(streambuf *this)" ( (parameter_declaration "streambuf *this" type_identifier (pointer_declarator "*this" * identifier)) ))) (compound_statement "{\n  code *pcVar1;\n  byte *pbVar2;\n  uint uVar3;\n  int iVar4;\n  byte *pbVar5;\n  \n  pbVar5 = *(byte **)(this + 0xc);\n  if (*(byte **)(this + 8) < pbVar5) {\n    pbVar2 = *(byte **)(this + 8) + 1;\n    *(byte **)(this + 8) = pbVar2;\n  }\n  else {\n    pcVar1 = *(code **)(*(int *)this + 0x28);\n    if (pcVar1 == (code *)PTR_uflow_0033ec74) {\n      pcVar1 = *(code **)(*(int *)this + 0x24);\n      if (pcVar1 == (code *)PTR_underflow_0033ee14) {\n        return 0xffffffff;\n      }\n      iVar4 = (*pcVar1)(this);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar5 = *(byte **)(this + 0xc);\n      pbVar2 = (byte *)(*(int *)(this + 8) + 1);\n      *(byte **)(this + 8) = pbVar2;\n    }\n    else {\n      iVar4 = (*pcVar1)(this);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar2 = *(byte **)(this + 8);\n      pbVar5 = *(byte **)(this + 0xc);\n    }\n  }\n  if (pbVar2 < pbVar5) {\n    return (uint)*pbVar2;\n  }\n  if (*(code **)(*(int *)this + 0x24) == (code *)PTR_underflow_0033ee14) {\n    return 0xffffffff;\n  }\n                    /* WARNING: Could not recover jumptable at 0x001b7b46. Too many branches */\n                    /* WARNING: Treating indirect jump as call */\n  uVar3 = (**(code **)(*(int *)this + 0x24))();\n  return uVar3;\n}" { (declaration "code *pcVar1;" type_identifier (pointer_declarator "*pcVar1" * identifier) ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (expression_statement "pbVar5 = *(byte **)(this + 0xc);" (assignment_expression "pbVar5 = *(byte **)(this + 0xc)" identifier = (pointer_expression "*(byte **)(this + 0xc)" * (cast_expression "(byte **)(this + 0xc)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0xc)" ( (binary_expression "this + 0xc" identifier + number_literal) ))))) ;) (if_statement "if (*(byte **)(this + 8) < pbVar5) {\n    pbVar2 = *(byte **)(this + 8) + 1;\n    *(byte **)(this + 8) = pbVar2;\n  }\n  else {\n    pcVar1 = *(code **)(*(int *)this + 0x28);\n    if (pcVar1 == (code *)PTR_uflow_0033ec74) {\n      pcVar1 = *(code **)(*(int *)this + 0x24);\n      if (pcVar1 == (code *)PTR_underflow_0033ee14) {\n        return 0xffffffff;\n      }\n      iVar4 = (*pcVar1)(this);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar5 = *(byte **)(this + 0xc);\n      pbVar2 = (byte *)(*(int *)(this + 8) + 1);\n      *(byte **)(this + 8) = pbVar2;\n    }\n    else {\n      iVar4 = (*pcVar1)(this);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar2 = *(byte **)(this + 8);\n      pbVar5 = *(byte **)(this + 0xc);\n    }\n  }" if (parenthesized_expression "(*(byte **)(this + 8) < pbVar5)" ( (binary_expression "*(byte **)(this + 8) < pbVar5" (pointer_expression "*(byte **)(this + 8)" * (cast_expression "(byte **)(this + 8)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) < identifier) )) (compound_statement "{\n    pbVar2 = *(byte **)(this + 8) + 1;\n    *(byte **)(this + 8) = pbVar2;\n  }" { (expression_statement "pbVar2 = *(byte **)(this + 8) + 1;" (assignment_expression "pbVar2 = *(byte **)(this + 8) + 1" identifier = (binary_expression "*(byte **)(this + 8) + 1" (pointer_expression "*(byte **)(this + 8)" * (cast_expression "(byte **)(this + 8)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(byte **)(this + 8) = pbVar2;" (assignment_expression "*(byte **)(this + 8) = pbVar2" (pointer_expression "*(byte **)(this + 8)" * (cast_expression "(byte **)(this + 8)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n    pcVar1 = *(code **)(*(int *)this + 0x28);\n    if (pcVar1 == (code *)PTR_uflow_0033ec74) {\n      pcVar1 = *(code **)(*(int *)this + 0x24);\n      if (pcVar1 == (code *)PTR_underflow_0033ee14) {\n        return 0xffffffff;\n      }\n      iVar4 = (*pcVar1)(this);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar5 = *(byte **)(this + 0xc);\n      pbVar2 = (byte *)(*(int *)(this + 8) + 1);\n      *(byte **)(this + 8) = pbVar2;\n    }\n    else {\n      iVar4 = (*pcVar1)(this);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar2 = *(byte **)(this + 8);\n      pbVar5 = *(byte **)(this + 0xc);\n    }\n  }" else (compound_statement "{\n    pcVar1 = *(code **)(*(int *)this + 0x28);\n    if (pcVar1 == (code *)PTR_uflow_0033ec74) {\n      pcVar1 = *(code **)(*(int *)this + 0x24);\n      if (pcVar1 == (code *)PTR_underflow_0033ee14) {\n        return 0xffffffff;\n      }\n      iVar4 = (*pcVar1)(this);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar5 = *(byte **)(this + 0xc);\n      pbVar2 = (byte *)(*(int *)(this + 8) + 1);\n      *(byte **)(this + 8) = pbVar2;\n    }\n    else {\n      iVar4 = (*pcVar1)(this);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar2 = *(byte **)(this + 8);\n      pbVar5 = *(byte **)(this + 0xc);\n    }\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_0033ec74) {\n      pcVar1 = *(code **)(*(int *)this + 0x24);\n      if (pcVar1 == (code *)PTR_underflow_0033ee14) {\n        return 0xffffffff;\n      }\n      iVar4 = (*pcVar1)(this);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar5 = *(byte **)(this + 0xc);\n      pbVar2 = (byte *)(*(int *)(this + 8) + 1);\n      *(byte **)(this + 8) = pbVar2;\n    }\n    else {\n      iVar4 = (*pcVar1)(this);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar2 = *(byte **)(this + 8);\n      pbVar5 = *(byte **)(this + 0xc);\n    }" if (parenthesized_expression "(pcVar1 == (code *)PTR_uflow_0033ec74)" ( (binary_expression "pcVar1 == (code *)PTR_uflow_0033ec74" identifier == (cast_expression "(code *)PTR_uflow_0033ec74" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n      pcVar1 = *(code **)(*(int *)this + 0x24);\n      if (pcVar1 == (code *)PTR_underflow_0033ee14) {\n        return 0xffffffff;\n      }\n      iVar4 = (*pcVar1)(this);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar5 = *(byte **)(this + 0xc);\n      pbVar2 = (byte *)(*(int *)(this + 8) + 1);\n      *(byte **)(this + 8) = pbVar2;\n    }" { (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_0033ee14) {\n        return 0xffffffff;\n      }" if (parenthesized_expression "(pcVar1 == (code *)PTR_underflow_0033ee14)" ( (binary_expression "pcVar1 == (code *)PTR_underflow_0033ee14" identifier == (cast_expression "(code *)PTR_underflow_0033ee14" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n        return 0xffffffff;\n      }" { (return_statement "return 0xffffffff;" return number_literal ;) })) (expression_statement "iVar4 = (*pcVar1)(this);" (assignment_expression "iVar4 = (*pcVar1)(this)" identifier = (call_expression "(*pcVar1)(this)" (parenthesized_expression "(*pcVar1)" ( (pointer_expression "*pcVar1" * identifier) )) (argument_list "(this)" ( identifier )))) ;) (if_statement "if (iVar4 == -1) {\n        return 0xffffffff;\n      }" if (parenthesized_expression "(iVar4 == -1)" ( (binary_expression "iVar4 == -1" identifier == number_literal) )) (compound_statement "{\n        return 0xffffffff;\n      }" { (return_statement "return 0xffffffff;" return number_literal ;) })) (expression_statement "pbVar5 = *(byte **)(this + 0xc);" (assignment_expression "pbVar5 = *(byte **)(this + 0xc)" identifier = (pointer_expression "*(byte **)(this + 0xc)" * (cast_expression "(byte **)(this + 0xc)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0xc)" ( (binary_expression "this + 0xc" identifier + number_literal) ))))) ;) (expression_statement "pbVar2 = (byte *)(*(int *)(this + 8) + 1);" (assignment_expression "pbVar2 = (byte *)(*(int *)(this + 8) + 1)" identifier = (cast_expression "(byte *)(*(int *)(this + 8) + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(this + 8) + 1)" ( (binary_expression "*(int *)(this + 8) + 1" (pointer_expression "*(int *)(this + 8)" * (cast_expression "(int *)(this + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) + number_literal) )))) ;) (expression_statement "*(byte **)(this + 8) = pbVar2;" (assignment_expression "*(byte **)(this + 8) = pbVar2" (pointer_expression "*(byte **)(this + 8)" * (cast_expression "(byte **)(this + 8)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n      iVar4 = (*pcVar1)(this);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar2 = *(byte **)(this + 8);\n      pbVar5 = *(byte **)(this + 0xc);\n    }" else (compound_statement "{\n      iVar4 = (*pcVar1)(this);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar2 = *(byte **)(this + 8);\n      pbVar5 = *(byte **)(this + 0xc);\n    }" { (expression_statement "iVar4 = (*pcVar1)(this);" (assignment_expression "iVar4 = (*pcVar1)(this)" identifier = (call_expression "(*pcVar1)(this)" (parenthesized_expression "(*pcVar1)" ( (pointer_expression "*pcVar1" * identifier) )) (argument_list "(this)" ( identifier )))) ;) (if_statement "if (iVar4 == -1) {\n        return 0xffffffff;\n      }" if (parenthesized_expression "(iVar4 == -1)" ( (binary_expression "iVar4 == -1" identifier == number_literal) )) (compound_statement "{\n        return 0xffffffff;\n      }" { (return_statement "return 0xffffffff;" return number_literal ;) })) (expression_statement "pbVar2 = *(byte **)(this + 8);" (assignment_expression "pbVar2 = *(byte **)(this + 8)" identifier = (pointer_expression "*(byte **)(this + 8)" * (cast_expression "(byte **)(this + 8)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 8)" ( (binary_expression "this + 8" identifier + number_literal) ))))) ;) (expression_statement "pbVar5 = *(byte **)(this + 0xc);" (assignment_expression "pbVar5 = *(byte **)(this + 0xc)" identifier = (pointer_expression "*(byte **)(this + 0xc)" * (cast_expression "(byte **)(this + 0xc)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(this + 0xc)" ( (binary_expression "this + 0xc" identifier + number_literal) ))))) ;) }))) }))) (if_statement "if (pbVar2 < pbVar5) {\n    return (uint)*pbVar2;\n  }" if (parenthesized_expression "(pbVar2 < pbVar5)" ( (binary_expression "pbVar2 < pbVar5" identifier < identifier) )) (compound_statement "{\n    return (uint)*pbVar2;\n  }" { (return_statement "return (uint)*pbVar2;" return (binary_expression "(uint)*pbVar2" (parenthesized_expression "(uint)" ( identifier )) * identifier) ;) })) (if_statement "if (*(code **)(*(int *)this + 0x24) == (code *)PTR_underflow_0033ee14) {\n    return 0xffffffff;\n  }" if (parenthesized_expression "(*(code **)(*(int *)this + 0x24) == (code *)PTR_underflow_0033ee14)" ( (binary_expression "*(code **)(*(int *)this + 0x24) == (code *)PTR_underflow_0033ee14" (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_0033ee14" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n    return 0xffffffff;\n  }" { (return_statement "return 0xffffffff;" return number_literal ;) })) comment comment (expression_statement "uVar3 = (**(code **)(*(int *)this + 0x24))();" (assignment_expression "uVar3 = (**(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 uVar3;" return identifier ;) })))
(translation_unit "uint FUN_001b7ad0(int *param_1)\n\n{\n  code *pcVar1;\n  byte *pbVar2;\n  uint uVar3;\n  int iVar4;\n  byte *pbVar5;\n  \n  pbVar5 = (byte *)param_1[3];\n  if ((byte *)param_1[2] < pbVar5) {\n    pbVar2 = (byte *)param_1[2] + 1;\n    param_1[2] = (int)pbVar2;\n  }\n  else {\n    pcVar1 = *(code **)(*param_1 + 0x28);\n    if (pcVar1 == (code *)PTR_FUN_0033ec74) {\n      pcVar1 = *(code **)(*param_1 + 0x24);\n      if (pcVar1 == (code *)PTR_FUN_0033ee14) {\n        return 0xffffffff;\n      }\n      iVar4 = (*pcVar1)(param_1);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar5 = (byte *)param_1[3];\n      pbVar2 = (byte *)(param_1[2] + 1);\n      param_1[2] = (int)pbVar2;\n    }\n    else {\n      iVar4 = (*pcVar1)(param_1);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar2 = (byte *)param_1[2];\n      pbVar5 = (byte *)param_1[3];\n    }\n  }\n  if (pbVar2 < pbVar5) {\n    return (uint)*pbVar2;\n  }\n  if (*(code **)(*param_1 + 0x24) == (code *)PTR_FUN_0033ee14) {\n    return 0xffffffff;\n  }\n                    \n                    \n  uVar3 = (**(code **)(*param_1 + 0x24))();\n  return uVar3;\n}\n\n" (function_definition "uint FUN_001b7ad0(int *param_1)\n\n{\n  code *pcVar1;\n  byte *pbVar2;\n  uint uVar3;\n  int iVar4;\n  byte *pbVar5;\n  \n  pbVar5 = (byte *)param_1[3];\n  if ((byte *)param_1[2] < pbVar5) {\n    pbVar2 = (byte *)param_1[2] + 1;\n    param_1[2] = (int)pbVar2;\n  }\n  else {\n    pcVar1 = *(code **)(*param_1 + 0x28);\n    if (pcVar1 == (code *)PTR_FUN_0033ec74) {\n      pcVar1 = *(code **)(*param_1 + 0x24);\n      if (pcVar1 == (code *)PTR_FUN_0033ee14) {\n        return 0xffffffff;\n      }\n      iVar4 = (*pcVar1)(param_1);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar5 = (byte *)param_1[3];\n      pbVar2 = (byte *)(param_1[2] + 1);\n      param_1[2] = (int)pbVar2;\n    }\n    else {\n      iVar4 = (*pcVar1)(param_1);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar2 = (byte *)param_1[2];\n      pbVar5 = (byte *)param_1[3];\n    }\n  }\n  if (pbVar2 < pbVar5) {\n    return (uint)*pbVar2;\n  }\n  if (*(code **)(*param_1 + 0x24) == (code *)PTR_FUN_0033ee14) {\n    return 0xffffffff;\n  }\n                    \n                    \n  uVar3 = (**(code **)(*param_1 + 0x24))();\n  return uVar3;\n}" type_identifier (function_declarator "FUN_001b7ad0(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  byte *pbVar2;\n  uint uVar3;\n  int iVar4;\n  byte *pbVar5;\n  \n  pbVar5 = (byte *)param_1[3];\n  if ((byte *)param_1[2] < pbVar5) {\n    pbVar2 = (byte *)param_1[2] + 1;\n    param_1[2] = (int)pbVar2;\n  }\n  else {\n    pcVar1 = *(code **)(*param_1 + 0x28);\n    if (pcVar1 == (code *)PTR_FUN_0033ec74) {\n      pcVar1 = *(code **)(*param_1 + 0x24);\n      if (pcVar1 == (code *)PTR_FUN_0033ee14) {\n        return 0xffffffff;\n      }\n      iVar4 = (*pcVar1)(param_1);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar5 = (byte *)param_1[3];\n      pbVar2 = (byte *)(param_1[2] + 1);\n      param_1[2] = (int)pbVar2;\n    }\n    else {\n      iVar4 = (*pcVar1)(param_1);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar2 = (byte *)param_1[2];\n      pbVar5 = (byte *)param_1[3];\n    }\n  }\n  if (pbVar2 < pbVar5) {\n    return (uint)*pbVar2;\n  }\n  if (*(code **)(*param_1 + 0x24) == (code *)PTR_FUN_0033ee14) {\n    return 0xffffffff;\n  }\n                    \n                    \n  uVar3 = (**(code **)(*param_1 + 0x24))();\n  return uVar3;\n}" { (declaration "code *pcVar1;" type_identifier (pointer_declarator "*pcVar1" * identifier) ;) (declaration "byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "byte *pbVar5;" type_identifier (pointer_declarator "*pbVar5" * identifier) ;) (expression_statement "pbVar5 = (byte *)param_1[3];" (assignment_expression "pbVar5 = (byte *)param_1[3]" identifier = (cast_expression "(byte *)param_1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[3]" identifier [ number_literal ]))) ;) (if_statement "if ((byte *)param_1[2] < pbVar5) {\n    pbVar2 = (byte *)param_1[2] + 1;\n    param_1[2] = (int)pbVar2;\n  }\n  else {\n    pcVar1 = *(code **)(*param_1 + 0x28);\n    if (pcVar1 == (code *)PTR_FUN_0033ec74) {\n      pcVar1 = *(code **)(*param_1 + 0x24);\n      if (pcVar1 == (code *)PTR_FUN_0033ee14) {\n        return 0xffffffff;\n      }\n      iVar4 = (*pcVar1)(param_1);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar5 = (byte *)param_1[3];\n      pbVar2 = (byte *)(param_1[2] + 1);\n      param_1[2] = (int)pbVar2;\n    }\n    else {\n      iVar4 = (*pcVar1)(param_1);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar2 = (byte *)param_1[2];\n      pbVar5 = (byte *)param_1[3];\n    }\n  }" if (parenthesized_expression "((byte *)param_1[2] < pbVar5)" ( (binary_expression "(byte *)param_1[2] < pbVar5" (cast_expression "(byte *)param_1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ])) < identifier) )) (compound_statement "{\n    pbVar2 = (byte *)param_1[2] + 1;\n    param_1[2] = (int)pbVar2;\n  }" { (expression_statement "pbVar2 = (byte *)param_1[2] + 1;" (assignment_expression "pbVar2 = (byte *)param_1[2] + 1" identifier = (binary_expression "(byte *)param_1[2] + 1" (cast_expression "(byte *)param_1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ])) + number_literal)) ;) (expression_statement "param_1[2] = (int)pbVar2;" (assignment_expression "param_1[2] = (int)pbVar2" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (cast_expression "(int)pbVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) }) (else_clause "else {\n    pcVar1 = *(code **)(*param_1 + 0x28);\n    if (pcVar1 == (code *)PTR_FUN_0033ec74) {\n      pcVar1 = *(code **)(*param_1 + 0x24);\n      if (pcVar1 == (code *)PTR_FUN_0033ee14) {\n        return 0xffffffff;\n      }\n      iVar4 = (*pcVar1)(param_1);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar5 = (byte *)param_1[3];\n      pbVar2 = (byte *)(param_1[2] + 1);\n      param_1[2] = (int)pbVar2;\n    }\n    else {\n      iVar4 = (*pcVar1)(param_1);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar2 = (byte *)param_1[2];\n      pbVar5 = (byte *)param_1[3];\n    }\n  }" else (compound_statement "{\n    pcVar1 = *(code **)(*param_1 + 0x28);\n    if (pcVar1 == (code *)PTR_FUN_0033ec74) {\n      pcVar1 = *(code **)(*param_1 + 0x24);\n      if (pcVar1 == (code *)PTR_FUN_0033ee14) {\n        return 0xffffffff;\n      }\n      iVar4 = (*pcVar1)(param_1);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar5 = (byte *)param_1[3];\n      pbVar2 = (byte *)(param_1[2] + 1);\n      param_1[2] = (int)pbVar2;\n    }\n    else {\n      iVar4 = (*pcVar1)(param_1);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar2 = (byte *)param_1[2];\n      pbVar5 = (byte *)param_1[3];\n    }\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_0033ec74) {\n      pcVar1 = *(code **)(*param_1 + 0x24);\n      if (pcVar1 == (code *)PTR_FUN_0033ee14) {\n        return 0xffffffff;\n      }\n      iVar4 = (*pcVar1)(param_1);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar5 = (byte *)param_1[3];\n      pbVar2 = (byte *)(param_1[2] + 1);\n      param_1[2] = (int)pbVar2;\n    }\n    else {\n      iVar4 = (*pcVar1)(param_1);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar2 = (byte *)param_1[2];\n      pbVar5 = (byte *)param_1[3];\n    }" if (parenthesized_expression "(pcVar1 == (code *)PTR_FUN_0033ec74)" ( (binary_expression "pcVar1 == (code *)PTR_FUN_0033ec74" identifier == (cast_expression "(code *)PTR_FUN_0033ec74" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n      pcVar1 = *(code **)(*param_1 + 0x24);\n      if (pcVar1 == (code *)PTR_FUN_0033ee14) {\n        return 0xffffffff;\n      }\n      iVar4 = (*pcVar1)(param_1);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar5 = (byte *)param_1[3];\n      pbVar2 = (byte *)(param_1[2] + 1);\n      param_1[2] = (int)pbVar2;\n    }" { (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_0033ee14) {\n        return 0xffffffff;\n      }" if (parenthesized_expression "(pcVar1 == (code *)PTR_FUN_0033ee14)" ( (binary_expression "pcVar1 == (code *)PTR_FUN_0033ee14" identifier == (cast_expression "(code *)PTR_FUN_0033ee14" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n        return 0xffffffff;\n      }" { (return_statement "return 0xffffffff;" return number_literal ;) })) (expression_statement "iVar4 = (*pcVar1)(param_1);" (assignment_expression "iVar4 = (*pcVar1)(param_1)" identifier = (call_expression "(*pcVar1)(param_1)" (parenthesized_expression "(*pcVar1)" ( (pointer_expression "*pcVar1" * identifier) )) (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar4 == -1) {\n        return 0xffffffff;\n      }" if (parenthesized_expression "(iVar4 == -1)" ( (binary_expression "iVar4 == -1" identifier == number_literal) )) (compound_statement "{\n        return 0xffffffff;\n      }" { (return_statement "return 0xffffffff;" return number_literal ;) })) (expression_statement "pbVar5 = (byte *)param_1[3];" (assignment_expression "pbVar5 = (byte *)param_1[3]" identifier = (cast_expression "(byte *)param_1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[3]" identifier [ number_literal ]))) ;) (expression_statement "pbVar2 = (byte *)(param_1[2] + 1);" (assignment_expression "pbVar2 = (byte *)(param_1[2] + 1)" identifier = (cast_expression "(byte *)(param_1[2] + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[2] + 1)" ( (binary_expression "param_1[2] + 1" (subscript_expression "param_1[2]" identifier [ number_literal ]) + number_literal) )))) ;) (expression_statement "param_1[2] = (int)pbVar2;" (assignment_expression "param_1[2] = (int)pbVar2" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (cast_expression "(int)pbVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) }) (else_clause "else {\n      iVar4 = (*pcVar1)(param_1);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar2 = (byte *)param_1[2];\n      pbVar5 = (byte *)param_1[3];\n    }" else (compound_statement "{\n      iVar4 = (*pcVar1)(param_1);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar2 = (byte *)param_1[2];\n      pbVar5 = (byte *)param_1[3];\n    }" { (expression_statement "iVar4 = (*pcVar1)(param_1);" (assignment_expression "iVar4 = (*pcVar1)(param_1)" identifier = (call_expression "(*pcVar1)(param_1)" (parenthesized_expression "(*pcVar1)" ( (pointer_expression "*pcVar1" * identifier) )) (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar4 == -1) {\n        return 0xffffffff;\n      }" if (parenthesized_expression "(iVar4 == -1)" ( (binary_expression "iVar4 == -1" identifier == number_literal) )) (compound_statement "{\n        return 0xffffffff;\n      }" { (return_statement "return 0xffffffff;" return number_literal ;) })) (expression_statement "pbVar2 = (byte *)param_1[2];" (assignment_expression "pbVar2 = (byte *)param_1[2]" identifier = (cast_expression "(byte *)param_1[2]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[2]" identifier [ number_literal ]))) ;) (expression_statement "pbVar5 = (byte *)param_1[3];" (assignment_expression "pbVar5 = (byte *)param_1[3]" identifier = (cast_expression "(byte *)param_1[3]" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[3]" identifier [ number_literal ]))) ;) }))) }))) (if_statement "if (pbVar2 < pbVar5) {\n    return (uint)*pbVar2;\n  }" if (parenthesized_expression "(pbVar2 < pbVar5)" ( (binary_expression "pbVar2 < pbVar5" identifier < identifier) )) (compound_statement "{\n    return (uint)*pbVar2;\n  }" { (return_statement "return (uint)*pbVar2;" return (binary_expression "(uint)*pbVar2" (parenthesized_expression "(uint)" ( identifier )) * identifier) ;) })) (if_statement "if (*(code **)(*param_1 + 0x24) == (code *)PTR_FUN_0033ee14) {\n    return 0xffffffff;\n  }" if (parenthesized_expression "(*(code **)(*param_1 + 0x24) == (code *)PTR_FUN_0033ee14)" ( (binary_expression "*(code **)(*param_1 + 0x24) == (code *)PTR_FUN_0033ee14" (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_0033ee14" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (compound_statement "{\n    return 0xffffffff;\n  }" { (return_statement "return 0xffffffff;" return number_literal ;) })) (expression_statement "uVar3 = (**(code **)(*param_1 + 0x24))();" (assignment_expression "uVar3 = (**(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 uVar3;" return identifier ;) })))
(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 (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 = (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) }) (else_clause else (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 = (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 = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) }) (else_clause else (compound_statement { (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 = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) }))) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (return_statement return (binary_expression (parenthesized_expression ( IDENT )) * IDENT) ;) })) (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 { (return_statement return LIT ;) })) (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 ;) })))
(function_definition "uint FUN_001b7ad0(int *param_1)\n\n{\n  code *pcVar1;\n  byte *pbVar2;\n  uint uVar3;\n  int iVar4;\n  byte *pbVar5;\n  \n  pbVar5 = (byte *)param_1[3];\n  if ((byte *)param_1[2] < pbVar5) {\n    pbVar2 = (byte *)param_1[2] + 1;\n    param_1[2] = (int)pbVar2;\n  }\n  else {\n    pcVar1 = *(code **)(*param_1 + 0x28);\n    if (pcVar1 == (code *)PTR_FUN_0033ec74) {\n      pcVar1 = *(code **)(*param_1 + 0x24);\n      if (pcVar1 == (code *)PTR_FUN_0033ee14) {\n        return 0xffffffff;\n      }\n      iVar4 = (*pcVar1)(param_1);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar5 = (byte *)param_1[3];\n      pbVar2 = (byte *)(param_1[2] + 1);\n      param_1[2] = (int)pbVar2;\n    }\n    else {\n      iVar4 = (*pcVar1)(param_1);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar2 = (byte *)param_1[2];\n      pbVar5 = (byte *)param_1[3];\n    }\n  }\n  if (pbVar2 < pbVar5) {\n    return (uint)*pbVar2;\n  }\n  if (*(code **)(*param_1 + 0x24) == (code *)PTR_FUN_0033ee14) {\n    return 0xffffffff;\n  }\n                    \n                    \n  uVar3 = (**(code **)(*param_1 + 0x24))();\n  return uVar3;\n}" (type_identifier "uint") (function_declarator "FUN_001b7ad0(int *param_1)" (identifier "FUN_001b7ad0") (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  byte *pbVar2;\n  uint uVar3;\n  int iVar4;\n  byte *pbVar5;\n  \n  pbVar5 = (byte *)param_1[3];\n  if ((byte *)param_1[2] < pbVar5) {\n    pbVar2 = (byte *)param_1[2] + 1;\n    param_1[2] = (int)pbVar2;\n  }\n  else {\n    pcVar1 = *(code **)(*param_1 + 0x28);\n    if (pcVar1 == (code *)PTR_FUN_0033ec74) {\n      pcVar1 = *(code **)(*param_1 + 0x24);\n      if (pcVar1 == (code *)PTR_FUN_0033ee14) {\n        return 0xffffffff;\n      }\n      iVar4 = (*pcVar1)(param_1);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar5 = (byte *)param_1[3];\n      pbVar2 = (byte *)(param_1[2] + 1);\n      param_1[2] = (int)pbVar2;\n    }\n    else {\n      iVar4 = (*pcVar1)(param_1);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar2 = (byte *)param_1[2];\n      pbVar5 = (byte *)param_1[3];\n    }\n  }\n  if (pbVar2 < pbVar5) {\n    return (uint)*pbVar2;\n  }\n  if (*(code **)(*param_1 + 0x24) == (code *)PTR_FUN_0033ee14) {\n    return 0xffffffff;\n  }\n                    \n                    \n  uVar3 = (**(code **)(*param_1 + 0x24))();\n  return uVar3;\n}" ({ "{") (declaration "code *pcVar1;" (type_identifier "code") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "byte *pbVar2;" (type_identifier "byte") (pointer_declarator "*pbVar2" (* "*") (identifier "pbVar2")) (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "byte *pbVar5;" (type_identifier "byte") (pointer_declarator "*pbVar5" (* "*") (identifier "pbVar5")) (; ";")) (expression_statement "pbVar5 = (byte *)param_1[3];" (assignment_expression "pbVar5 = (byte *)param_1[3]" (identifier "pbVar5") (= "=") (cast_expression "(byte *)param_1[3]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")))) (; ";")) (if_statement "if ((byte *)param_1[2] < pbVar5) {\n    pbVar2 = (byte *)param_1[2] + 1;\n    param_1[2] = (int)pbVar2;\n  }\n  else {\n    pcVar1 = *(code **)(*param_1 + 0x28);\n    if (pcVar1 == (code *)PTR_FUN_0033ec74) {\n      pcVar1 = *(code **)(*param_1 + 0x24);\n      if (pcVar1 == (code *)PTR_FUN_0033ee14) {\n        return 0xffffffff;\n      }\n      iVar4 = (*pcVar1)(param_1);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar5 = (byte *)param_1[3];\n      pbVar2 = (byte *)(param_1[2] + 1);\n      param_1[2] = (int)pbVar2;\n    }\n    else {\n      iVar4 = (*pcVar1)(param_1);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar2 = (byte *)param_1[2];\n      pbVar5 = (byte *)param_1[3];\n    }\n  }" (if "if") (parenthesized_expression "((byte *)param_1[2] < pbVar5)" (( "(") (binary_expression "(byte *)param_1[2] < pbVar5" (cast_expression "(byte *)param_1[2]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (< "<") (identifier "pbVar5")) () ")")) (compound_statement "{\n    pbVar2 = (byte *)param_1[2] + 1;\n    param_1[2] = (int)pbVar2;\n  }" ({ "{") (expression_statement "pbVar2 = (byte *)param_1[2] + 1;" (assignment_expression "pbVar2 = (byte *)param_1[2] + 1" (identifier "pbVar2") (= "=") (binary_expression "(byte *)param_1[2] + 1" (cast_expression "(byte *)param_1[2]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "param_1[2] = (int)pbVar2;" (assignment_expression "param_1[2] = (int)pbVar2" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(int)pbVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar2"))) (; ";")) (} "}")) (else_clause "else {\n    pcVar1 = *(code **)(*param_1 + 0x28);\n    if (pcVar1 == (code *)PTR_FUN_0033ec74) {\n      pcVar1 = *(code **)(*param_1 + 0x24);\n      if (pcVar1 == (code *)PTR_FUN_0033ee14) {\n        return 0xffffffff;\n      }\n      iVar4 = (*pcVar1)(param_1);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar5 = (byte *)param_1[3];\n      pbVar2 = (byte *)(param_1[2] + 1);\n      param_1[2] = (int)pbVar2;\n    }\n    else {\n      iVar4 = (*pcVar1)(param_1);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar2 = (byte *)param_1[2];\n      pbVar5 = (byte *)param_1[3];\n    }\n  }" (else "else") (compound_statement "{\n    pcVar1 = *(code **)(*param_1 + 0x28);\n    if (pcVar1 == (code *)PTR_FUN_0033ec74) {\n      pcVar1 = *(code **)(*param_1 + 0x24);\n      if (pcVar1 == (code *)PTR_FUN_0033ee14) {\n        return 0xffffffff;\n      }\n      iVar4 = (*pcVar1)(param_1);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar5 = (byte *)param_1[3];\n      pbVar2 = (byte *)(param_1[2] + 1);\n      param_1[2] = (int)pbVar2;\n    }\n    else {\n      iVar4 = (*pcVar1)(param_1);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar2 = (byte *)param_1[2];\n      pbVar5 = (byte *)param_1[3];\n    }\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_0033ec74) {\n      pcVar1 = *(code **)(*param_1 + 0x24);\n      if (pcVar1 == (code *)PTR_FUN_0033ee14) {\n        return 0xffffffff;\n      }\n      iVar4 = (*pcVar1)(param_1);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar5 = (byte *)param_1[3];\n      pbVar2 = (byte *)(param_1[2] + 1);\n      param_1[2] = (int)pbVar2;\n    }\n    else {\n      iVar4 = (*pcVar1)(param_1);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar2 = (byte *)param_1[2];\n      pbVar5 = (byte *)param_1[3];\n    }" (if "if") (parenthesized_expression "(pcVar1 == (code *)PTR_FUN_0033ec74)" (( "(") (binary_expression "pcVar1 == (code *)PTR_FUN_0033ec74" (identifier "pcVar1") (== "==") (cast_expression "(code *)PTR_FUN_0033ec74" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_0033ec74"))) () ")")) (compound_statement "{\n      pcVar1 = *(code **)(*param_1 + 0x24);\n      if (pcVar1 == (code *)PTR_FUN_0033ee14) {\n        return 0xffffffff;\n      }\n      iVar4 = (*pcVar1)(param_1);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar5 = (byte *)param_1[3];\n      pbVar2 = (byte *)(param_1[2] + 1);\n      param_1[2] = (int)pbVar2;\n    }" ({ "{") (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_0033ee14) {\n        return 0xffffffff;\n      }" (if "if") (parenthesized_expression "(pcVar1 == (code *)PTR_FUN_0033ee14)" (( "(") (binary_expression "pcVar1 == (code *)PTR_FUN_0033ee14" (identifier "pcVar1") (== "==") (cast_expression "(code *)PTR_FUN_0033ee14" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_0033ee14"))) () ")")) (compound_statement "{\n        return 0xffffffff;\n      }" ({ "{") (return_statement "return 0xffffffff;" (return "return") (number_literal "0xffffffff") (; ";")) (} "}"))) (expression_statement "iVar4 = (*pcVar1)(param_1);" (assignment_expression "iVar4 = (*pcVar1)(param_1)" (identifier "iVar4") (= "=") (call_expression "(*pcVar1)(param_1)" (parenthesized_expression "(*pcVar1)" (( "(") (pointer_expression "*pcVar1" (* "*") (identifier "pcVar1")) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (iVar4 == -1) {\n        return 0xffffffff;\n      }" (if "if") (parenthesized_expression "(iVar4 == -1)" (( "(") (binary_expression "iVar4 == -1" (identifier "iVar4") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n        return 0xffffffff;\n      }" ({ "{") (return_statement "return 0xffffffff;" (return "return") (number_literal "0xffffffff") (; ";")) (} "}"))) (expression_statement "pbVar5 = (byte *)param_1[3];" (assignment_expression "pbVar5 = (byte *)param_1[3]" (identifier "pbVar5") (= "=") (cast_expression "(byte *)param_1[3]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")))) (; ";")) (expression_statement "pbVar2 = (byte *)(param_1[2] + 1);" (assignment_expression "pbVar2 = (byte *)(param_1[2] + 1)" (identifier "pbVar2") (= "=") (cast_expression "(byte *)(param_1[2] + 1)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1[2] + 1)" (( "(") (binary_expression "param_1[2] + 1" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (+ "+") (number_literal "1")) () ")")))) (; ";")) (expression_statement "param_1[2] = (int)pbVar2;" (assignment_expression "param_1[2] = (int)pbVar2" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(int)pbVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar2"))) (; ";")) (} "}")) (else_clause "else {\n      iVar4 = (*pcVar1)(param_1);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar2 = (byte *)param_1[2];\n      pbVar5 = (byte *)param_1[3];\n    }" (else "else") (compound_statement "{\n      iVar4 = (*pcVar1)(param_1);\n      if (iVar4 == -1) {\n        return 0xffffffff;\n      }\n      pbVar2 = (byte *)param_1[2];\n      pbVar5 = (byte *)param_1[3];\n    }" ({ "{") (expression_statement "iVar4 = (*pcVar1)(param_1);" (assignment_expression "iVar4 = (*pcVar1)(param_1)" (identifier "iVar4") (= "=") (call_expression "(*pcVar1)(param_1)" (parenthesized_expression "(*pcVar1)" (( "(") (pointer_expression "*pcVar1" (* "*") (identifier "pcVar1")) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (iVar4 == -1) {\n        return 0xffffffff;\n      }" (if "if") (parenthesized_expression "(iVar4 == -1)" (( "(") (binary_expression "iVar4 == -1" (identifier "iVar4") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n        return 0xffffffff;\n      }" ({ "{") (return_statement "return 0xffffffff;" (return "return") (number_literal "0xffffffff") (; ";")) (} "}"))) (expression_statement "pbVar2 = (byte *)param_1[2];" (assignment_expression "pbVar2 = (byte *)param_1[2]" (identifier "pbVar2") (= "=") (cast_expression "(byte *)param_1[2]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")))) (; ";")) (expression_statement "pbVar5 = (byte *)param_1[3];" (assignment_expression "pbVar5 = (byte *)param_1[3]" (identifier "pbVar5") (= "=") (cast_expression "(byte *)param_1[3]" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")))) (; ";")) (} "}")))) (} "}")))) (if_statement "if (pbVar2 < pbVar5) {\n    return (uint)*pbVar2;\n  }" (if "if") (parenthesized_expression "(pbVar2 < pbVar5)" (( "(") (binary_expression "pbVar2 < pbVar5" (identifier "pbVar2") (< "<") (identifier "pbVar5")) () ")")) (compound_statement "{\n    return (uint)*pbVar2;\n  }" ({ "{") (return_statement "return (uint)*pbVar2;" (return "return") (binary_expression "(uint)*pbVar2" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar2")) (; ";")) (} "}"))) (if_statement "if (*(code **)(*param_1 + 0x24) == (code *)PTR_FUN_0033ee14) {\n    return 0xffffffff;\n  }" (if "if") (parenthesized_expression "(*(code **)(*param_1 + 0x24) == (code *)PTR_FUN_0033ee14)" (( "(") (binary_expression "*(code **)(*param_1 + 0x24) == (code *)PTR_FUN_0033ee14" (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_0033ee14" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_0033ee14"))) () ")")) (compound_statement "{\n    return 0xffffffff;\n  }" ({ "{") (return_statement "return 0xffffffff;" (return "return") (number_literal "0xffffffff") (; ";")) (} "}"))) (expression_statement "uVar3 = (**(code **)(*param_1 + 0x24))();" (assignment_expression "uVar3 = (**(code **)(*param_1 + 0x24))()" (identifier "uVar3") (= "=") (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 uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}")))

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

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

{
  type_3 *var_3;
  type_4 *var_5;
  type_1 uVar3;
  int var_4;
  type_4 *var_2;
  
  var_2 = *(type_4 **)(var_1 + 0xc);
  if (*(type_4 **)(var_1 + 8) < var_2) {
    var_5 = *(type_4 **)(var_1 + 8) + 1;
    *(type_4 **)(var_1 + 8) = var_5;
  }
  else {
    var_3 = *(type_3 **)(*(int *)var_1 + 0x28);
    if (var_3 == (type_3 *)PTR_uflow_0033ec74) {
      var_3 = *(type_3 **)(*(int *)var_1 + 0x24);
      if (var_3 == (type_3 *)PTR_underflow_0033ee14) {
        return 0xffffffff;
      }
      var_4 = (*var_3)(var_1);
      if (var_4 == -1) {
        return 0xffffffff;
      }
      var_2 = *(type_4 **)(var_1 + 0xc);
      var_5 = (type_4 *)(*(int *)(var_1 + 8) + 1);
      *(type_4 **)(var_1 + 8) = var_5;
    }
    else {
      var_4 = (*var_3)(var_1);
      if (var_4 == -1) {
        return 0xffffffff;
      }
      var_5 = *(type_4 **)(var_1 + 8);
      var_2 = *(type_4 **)(var_1 + 0xc);
    }
  }
  if (var_5 < var_2) {
    return (type_1)*var_5;
  }
  if (*(type_3 **)(*(int *)var_1 + 0x24) == (type_3 *)PTR_underflow_0033ee14) {
    return 0xffffffff;
  }
                    /* WARNING: Could not recover jumptable at 0x001b7b46. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  uVar3 = (**(type_3 **)(*(int *)var_1 + 0x24))();
  return uVar3;
}


(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: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (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: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))) alternative: (else_clause (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: (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: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))) alternative: (else_clause (compound_statement (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: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (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: (identifier) right: (identifier))) consequence: (compound_statement (return_statement (binary_expression left: (parenthesized_expression (identifier)) right: (identifier))))) (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 (return_statement (number_literal)))) (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)))))

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

uint MASKED(int *param_1)

{
  code *pcVar1;
  byte *pbVar2;
  uint uVar3;
  int iVar4;
  byte *pbVar5;
  
  pbVar5 = (byte *)param_1[3];
  if ((byte *)param_1[2] < pbVar5) {
    pbVar2 = (byte *)param_1[2] + 1;
    param_1[2] = (int)pbVar2;
  }
  else {
    pcVar1 = *(code **)(*param_1 + 0x28);
    if (pcVar1 == (code *)PTR_FUN_0033ec74) {
      pcVar1 = *(code **)(*param_1 + 0x24);
      if (pcVar1 == (code *)PTR_FUN_0033ee14) {
        return 0xffffffff;
      }
      iVar4 = (*pcVar1)(param_1);
      if (iVar4 == -1) {
        return 0xffffffff;
      }
      pbVar5 = (byte *)param_1[3];
      pbVar2 = (byte *)(param_1[2] + 1);
      param_1[2] = (int)pbVar2;
    }
    else {
      iVar4 = (*pcVar1)(param_1);
      if (iVar4 == -1) {
        return 0xffffffff;
      }
      pbVar2 = (byte *)param_1[2];
      pbVar5 = (byte *)param_1[3];
    }
  }
  if (pbVar2 < pbVar5) {
    return (uint)*pbVar2;
  }
  if (*(code **)(*param_1 + 0x24) == (code *)PTR_FUN_0033ee14) {
    return 0xffffffff;
  }
                    /* WARNING: Could not recover jumptable at 0x001b7b46. Too many branches */
                    /* WARNING: Treating indirect jump as call */
  uVar3 = (**(code **)(*param_1 + 0x24))();
  return uVar3;
}

