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

void __cxa_end_catch(void)

{
  int iVar1;
  int *piVar2;
  int iVar3;
  
  piVar2 = (int *)__cxa_get_globals_fast();
  iVar1 = *piVar2;
  if (iVar1 != 0) {
    iVar3 = *(int *)(iVar1 + 0x34) + -0x474e5544 + (uint)(0x432b2aff < *(uint *)(iVar1 + 0x30));
    if (iVar3 != 0 || (uint)-iVar3 < (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500)) {
      *piVar2 = 0;
LAB_0017ffce:
      _Unwind_DeleteException(iVar1 + 0x30);
      return;
    }
    iVar3 = *(int *)(iVar1 + 0x14);
    if (iVar3 < 0) {
      iVar3 = iVar3 + 1;
      if (iVar3 == 0) {
        *piVar2 = *(int *)(iVar1 + 0x10);
      }
    }
    else {
      iVar3 = iVar3 + -1;
      if (iVar3 == 0) {
        *piVar2 = *(int *)(iVar1 + 0x10);
        goto LAB_0017ffce;
      }
      if (iVar3 < 0) {
                    /* WARNING: Subroutine does not return */
        std::terminate();
      }
    }
    *(int *)(iVar1 + 0x14) = iVar3;
  }
  return;
}



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

void FUN_0017ff50(void)

{
  int iVar1;
  int *piVar2;
  int iVar3;
  
  piVar2 = (int *)FUN_0017fca0();
  iVar1 = *piVar2;
  if (iVar1 != 0) {
    iVar3 = *(int *)(iVar1 + 0x34) + -0x474e5544 + (uint)(0x432b2aff < *(uint *)(iVar1 + 0x30));
    if (iVar3 != 0 || (uint)-iVar3 < (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500)) {
      *piVar2 = 0;
LAB_0017ffce:
      FUN_002178f0(iVar1 + 0x30);
      return;
    }
    iVar3 = *(int *)(iVar1 + 0x14);
    if (iVar3 < 0) {
      iVar3 = iVar3 + 1;
      if (iVar3 == 0) {
        *piVar2 = *(int *)(iVar1 + 0x10);
      }
    }
    else {
      iVar3 = iVar3 + -1;
      if (iVar3 == 0) {
        *piVar2 = *(int *)(iVar1 + 0x10);
        goto LAB_0017ffce;
      }
      if (iVar3 < 0) {
                    /* WARNING: Subroutine does not return */
        FUN_0017f140();
      }
    }
    *(int *)(iVar1 + 0x14) = iVar3;
  }
  return;
}


PUSH EDI
PUSH ESI
CALL 0x0004fb7a
ADD ESI,0x1820a9
PUSH EBX
SUB ESP,0x10
MOV EBX,ESI
CALL 0x0017fca0
MOV EDX,dword ptr [EAX]
TEST EDX,EDX
JZ 0x0017ffad
MOV ECX,dword ptr [EDX + 0x30]
MOV EBX,dword ptr [EDX + 0x34]
MOV EDI,0x1
ADD ECX,0xbcd4d500
ADC EBX,0xb8b1aabc
MOV dword ptr [ESP + 0x8],ECX
MOV ECX,0x0
CMP EDI,dword ptr [ESP + 0x8]
MOV dword ptr [ESP + 0xc],EBX
SBB ECX,dword ptr [ESP + 0xc]
JC 0x0017ffc8
MOV ECX,dword ptr [EDX + 0x14]
TEST ECX,ECX
JS 0x0017ffb8
SUB ECX,0x1
JZ 0x0017fff0
JS 0x0017fff7
MOV dword ptr [EDX + 0x14],ECX
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
ADD ECX,0x1
JNZ 0x0017ffaa
MOV EBX,dword ptr [EDX + 0x10]
MOV dword ptr [EAX],EBX
JMP 0x0017ffaa
MOV dword ptr [EAX],0x0
SUB ESP,0xc
ADD EDX,0x30
MOV EBX,ESI
PUSH EDX
CALL 0x002178f0
ADD ESP,0x10
ADD ESP,0x10
POP EBX
POP ESI
POP EDI
RET
MOV ECX,dword ptr [EDX + 0x10]
MOV dword ptr [EAX],ECX
JMP 0x0017ffce
MOV EBX,ESI
CALL 0x0017f140
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nvoid FUN_0017ff50(void)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  \n  piVar2 = (int *)FUN_0017fca0();\n  iVar1 = *piVar2;\n  if (iVar1 != 0) {\n    iVar3 = *(int *)(iVar1 + 0x34) + -0x474e5544 + (uint)(0x432b2aff < *(uint *)(iVar1 + 0x30));\n    if (iVar3 != 0 || (uint)-iVar3 < (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500)) {\n      *piVar2 = 0;\nLAB_0017ffce:\n      FUN_002178f0(iVar1 + 0x30);\n      return;\n    }\n    iVar3 = *(int *)(iVar1 + 0x14);\n    if (iVar3 < 0) {\n      iVar3 = iVar3 + 1;\n      if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n      }\n    }\n    else {\n      iVar3 = iVar3 + -1;\n      if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n        goto LAB_0017ffce;\n      }\n      if (iVar3 < 0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0017f140();\n      }\n    }\n    *(int *)(iVar1 + 0x14) = iVar3;\n  }\n  return;\n}\n\n" comment (function_definition "void FUN_0017ff50(void)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  \n  piVar2 = (int *)FUN_0017fca0();\n  iVar1 = *piVar2;\n  if (iVar1 != 0) {\n    iVar3 = *(int *)(iVar1 + 0x34) + -0x474e5544 + (uint)(0x432b2aff < *(uint *)(iVar1 + 0x30));\n    if (iVar3 != 0 || (uint)-iVar3 < (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500)) {\n      *piVar2 = 0;\nLAB_0017ffce:\n      FUN_002178f0(iVar1 + 0x30);\n      return;\n    }\n    iVar3 = *(int *)(iVar1 + 0x14);\n    if (iVar3 < 0) {\n      iVar3 = iVar3 + 1;\n      if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n      }\n    }\n    else {\n      iVar3 = iVar3 + -1;\n      if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n        goto LAB_0017ffce;\n      }\n      if (iVar3 < 0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0017f140();\n      }\n    }\n    *(int *)(iVar1 + 0x14) = iVar3;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0017ff50(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  \n  piVar2 = (int *)FUN_0017fca0();\n  iVar1 = *piVar2;\n  if (iVar1 != 0) {\n    iVar3 = *(int *)(iVar1 + 0x34) + -0x474e5544 + (uint)(0x432b2aff < *(uint *)(iVar1 + 0x30));\n    if (iVar3 != 0 || (uint)-iVar3 < (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500)) {\n      *piVar2 = 0;\nLAB_0017ffce:\n      FUN_002178f0(iVar1 + 0x30);\n      return;\n    }\n    iVar3 = *(int *)(iVar1 + 0x14);\n    if (iVar3 < 0) {\n      iVar3 = iVar3 + 1;\n      if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n      }\n    }\n    else {\n      iVar3 = iVar3 + -1;\n      if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n        goto LAB_0017ffce;\n      }\n      if (iVar3 < 0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0017f140();\n      }\n    }\n    *(int *)(iVar1 + 0x14) = iVar3;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "piVar2 = (int *)FUN_0017fca0();" (assignment_expression "piVar2 = (int *)FUN_0017fca0()" identifier = (cast_expression "(int *)FUN_0017fca0()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0017fca0()" identifier (argument_list "()" ( ))))) ;) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (if_statement "if (iVar1 != 0) {\n    iVar3 = *(int *)(iVar1 + 0x34) + -0x474e5544 + (uint)(0x432b2aff < *(uint *)(iVar1 + 0x30));\n    if (iVar3 != 0 || (uint)-iVar3 < (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500)) {\n      *piVar2 = 0;\nLAB_0017ffce:\n      FUN_002178f0(iVar1 + 0x30);\n      return;\n    }\n    iVar3 = *(int *)(iVar1 + 0x14);\n    if (iVar3 < 0) {\n      iVar3 = iVar3 + 1;\n      if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n      }\n    }\n    else {\n      iVar3 = iVar3 + -1;\n      if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n        goto LAB_0017ffce;\n      }\n      if (iVar3 < 0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0017f140();\n      }\n    }\n    *(int *)(iVar1 + 0x14) = iVar3;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar3 = *(int *)(iVar1 + 0x34) + -0x474e5544 + (uint)(0x432b2aff < *(uint *)(iVar1 + 0x30));\n    if (iVar3 != 0 || (uint)-iVar3 < (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500)) {\n      *piVar2 = 0;\nLAB_0017ffce:\n      FUN_002178f0(iVar1 + 0x30);\n      return;\n    }\n    iVar3 = *(int *)(iVar1 + 0x14);\n    if (iVar3 < 0) {\n      iVar3 = iVar3 + 1;\n      if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n      }\n    }\n    else {\n      iVar3 = iVar3 + -1;\n      if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n        goto LAB_0017ffce;\n      }\n      if (iVar3 < 0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0017f140();\n      }\n    }\n    *(int *)(iVar1 + 0x14) = iVar3;\n  }" { (expression_statement "iVar3 = *(int *)(iVar1 + 0x34) + -0x474e5544 + (uint)(0x432b2aff < *(uint *)(iVar1 + 0x30));" (assignment_expression "iVar3 = *(int *)(iVar1 + 0x34) + -0x474e5544 + (uint)(0x432b2aff < *(uint *)(iVar1 + 0x30))" identifier = (binary_expression "*(int *)(iVar1 + 0x34) + -0x474e5544 + (uint)(0x432b2aff < *(uint *)(iVar1 + 0x30))" (binary_expression "*(int *)(iVar1 + 0x34) + -0x474e5544" (pointer_expression "*(int *)(iVar1 + 0x34)" * (cast_expression "(int *)(iVar1 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x34)" ( (binary_expression "iVar1 + 0x34" identifier + number_literal) )))) + number_literal) + (call_expression "(uint)(0x432b2aff < *(uint *)(iVar1 + 0x30))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0x432b2aff < *(uint *)(iVar1 + 0x30))" ( (binary_expression "0x432b2aff < *(uint *)(iVar1 + 0x30)" number_literal < (pointer_expression "*(uint *)(iVar1 + 0x30)" * (cast_expression "(uint *)(iVar1 + 0x30)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x30)" ( (binary_expression "iVar1 + 0x30" identifier + number_literal) ))))) ))))) ;) (if_statement "if (iVar3 != 0 || (uint)-iVar3 < (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500)) {\n      *piVar2 = 0;\nLAB_0017ffce:\n      FUN_002178f0(iVar1 + 0x30);\n      return;\n    }" if (parenthesized_expression "(iVar3 != 0 || (uint)-iVar3 < (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500))" ( (binary_expression "iVar3 != 0 || (uint)-iVar3 < (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500)" (binary_expression "iVar3 != 0" identifier != number_literal) || (binary_expression "(uint)-iVar3 < (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500)" (binary_expression "(uint)-iVar3" (parenthesized_expression "(uint)" ( identifier )) - identifier) < (call_expression "(uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500)" ( (binary_expression "1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500" number_literal < (binary_expression "*(uint *)(iVar1 + 0x30) + 0xbcd4d500" (pointer_expression "*(uint *)(iVar1 + 0x30)" * (cast_expression "(uint *)(iVar1 + 0x30)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x30)" ( (binary_expression "iVar1 + 0x30" identifier + number_literal) )))) + number_literal)) ))))) )) (compound_statement "{\n      *piVar2 = 0;\nLAB_0017ffce:\n      FUN_002178f0(iVar1 + 0x30);\n      return;\n    }" { (expression_statement "*piVar2 = 0;" (assignment_expression "*piVar2 = 0" (pointer_expression "*piVar2" * identifier) = number_literal) ;) (labeled_statement "LAB_0017ffce:\n      FUN_002178f0(iVar1 + 0x30);" statement_identifier : (expression_statement "FUN_002178f0(iVar1 + 0x30);" (call_expression "FUN_002178f0(iVar1 + 0x30)" identifier (argument_list "(iVar1 + 0x30)" ( (binary_expression "iVar1 + 0x30" identifier + number_literal) ))) ;)) (return_statement "return;" return ;) })) (expression_statement "iVar3 = *(int *)(iVar1 + 0x14);" (assignment_expression "iVar3 = *(int *)(iVar1 + 0x14)" identifier = (pointer_expression "*(int *)(iVar1 + 0x14)" * (cast_expression "(int *)(iVar1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (iVar3 < 0) {\n      iVar3 = iVar3 + 1;\n      if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n      }\n    }\n    else {\n      iVar3 = iVar3 + -1;\n      if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n        goto LAB_0017ffce;\n      }\n      if (iVar3 < 0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0017f140();\n      }\n    }" if (parenthesized_expression "(iVar3 < 0)" ( (binary_expression "iVar3 < 0" identifier < number_literal) )) (compound_statement "{\n      iVar3 = iVar3 + 1;\n      if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n      }\n    }" { (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (if_statement "if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        *piVar2 = *(int *)(iVar1 + 0x10);\n      }" { (expression_statement "*piVar2 = *(int *)(iVar1 + 0x10);" (assignment_expression "*piVar2 = *(int *)(iVar1 + 0x10)" (pointer_expression "*piVar2" * identifier) = (pointer_expression "*(int *)(iVar1 + 0x10)" * (cast_expression "(int *)(iVar1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) ))))) ;) })) }) (else_clause "else {\n      iVar3 = iVar3 + -1;\n      if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n        goto LAB_0017ffce;\n      }\n      if (iVar3 < 0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0017f140();\n      }\n    }" else (compound_statement "{\n      iVar3 = iVar3 + -1;\n      if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n        goto LAB_0017ffce;\n      }\n      if (iVar3 < 0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0017f140();\n      }\n    }" { (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) (if_statement "if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n        goto LAB_0017ffce;\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        *piVar2 = *(int *)(iVar1 + 0x10);\n        goto LAB_0017ffce;\n      }" { (expression_statement "*piVar2 = *(int *)(iVar1 + 0x10);" (assignment_expression "*piVar2 = *(int *)(iVar1 + 0x10)" (pointer_expression "*piVar2" * identifier) = (pointer_expression "*(int *)(iVar1 + 0x10)" * (cast_expression "(int *)(iVar1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) ))))) ;) (goto_statement "goto LAB_0017ffce;" goto statement_identifier ;) })) (if_statement "if (iVar3 < 0) {\n                    /* WARNING: Subroutine does not return */\n        FUN_0017f140();\n      }" if (parenthesized_expression "(iVar3 < 0)" ( (binary_expression "iVar3 < 0" identifier < number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        FUN_0017f140();\n      }" { comment (expression_statement "FUN_0017f140();" (call_expression "FUN_0017f140()" identifier (argument_list "()" ( ))) ;) })) }))) (expression_statement "*(int *)(iVar1 + 0x14) = iVar3;" (assignment_expression "*(int *)(iVar1 + 0x14) = iVar3" (pointer_expression "*(int *)(iVar1 + 0x14)" * (cast_expression "(int *)(iVar1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) )))) = identifier) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.si replaced with injection: get_pc_thunk_si */\n\nvoid __cxa_end_catch(void)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  \n  piVar2 = (int *)__cxa_get_globals_fast();\n  iVar1 = *piVar2;\n  if (iVar1 != 0) {\n    iVar3 = *(int *)(iVar1 + 0x34) + -0x474e5544 + (uint)(0x432b2aff < *(uint *)(iVar1 + 0x30));\n    if (iVar3 != 0 || (uint)-iVar3 < (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500)) {\n      *piVar2 = 0;\nLAB_0017ffce:\n      _Unwind_DeleteException(iVar1 + 0x30);\n      return;\n    }\n    iVar3 = *(int *)(iVar1 + 0x14);\n    if (iVar3 < 0) {\n      iVar3 = iVar3 + 1;\n      if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n      }\n    }\n    else {\n      iVar3 = iVar3 + -1;\n      if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n        goto LAB_0017ffce;\n      }\n      if (iVar3 < 0) {\n                    /* WARNING: Subroutine does not return */\n        std::terminate();\n      }\n    }\n    *(int *)(iVar1 + 0x14) = iVar3;\n  }\n  return;\n}\n\n" comment (function_definition "void __cxa_end_catch(void)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  \n  piVar2 = (int *)__cxa_get_globals_fast();\n  iVar1 = *piVar2;\n  if (iVar1 != 0) {\n    iVar3 = *(int *)(iVar1 + 0x34) + -0x474e5544 + (uint)(0x432b2aff < *(uint *)(iVar1 + 0x30));\n    if (iVar3 != 0 || (uint)-iVar3 < (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500)) {\n      *piVar2 = 0;\nLAB_0017ffce:\n      _Unwind_DeleteException(iVar1 + 0x30);\n      return;\n    }\n    iVar3 = *(int *)(iVar1 + 0x14);\n    if (iVar3 < 0) {\n      iVar3 = iVar3 + 1;\n      if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n      }\n    }\n    else {\n      iVar3 = iVar3 + -1;\n      if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n        goto LAB_0017ffce;\n      }\n      if (iVar3 < 0) {\n                    /* WARNING: Subroutine does not return */\n        std::terminate();\n      }\n    }\n    *(int *)(iVar1 + 0x14) = iVar3;\n  }\n  return;\n}" primitive_type (function_declarator "__cxa_end_catch(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  \n  piVar2 = (int *)__cxa_get_globals_fast();\n  iVar1 = *piVar2;\n  if (iVar1 != 0) {\n    iVar3 = *(int *)(iVar1 + 0x34) + -0x474e5544 + (uint)(0x432b2aff < *(uint *)(iVar1 + 0x30));\n    if (iVar3 != 0 || (uint)-iVar3 < (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500)) {\n      *piVar2 = 0;\nLAB_0017ffce:\n      _Unwind_DeleteException(iVar1 + 0x30);\n      return;\n    }\n    iVar3 = *(int *)(iVar1 + 0x14);\n    if (iVar3 < 0) {\n      iVar3 = iVar3 + 1;\n      if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n      }\n    }\n    else {\n      iVar3 = iVar3 + -1;\n      if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n        goto LAB_0017ffce;\n      }\n      if (iVar3 < 0) {\n                    /* WARNING: Subroutine does not return */\n        std::terminate();\n      }\n    }\n    *(int *)(iVar1 + 0x14) = iVar3;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "piVar2 = (int *)__cxa_get_globals_fast();" (assignment_expression "piVar2 = (int *)__cxa_get_globals_fast()" identifier = (cast_expression "(int *)__cxa_get_globals_fast()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "__cxa_get_globals_fast()" identifier (argument_list "()" ( ))))) ;) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (if_statement "if (iVar1 != 0) {\n    iVar3 = *(int *)(iVar1 + 0x34) + -0x474e5544 + (uint)(0x432b2aff < *(uint *)(iVar1 + 0x30));\n    if (iVar3 != 0 || (uint)-iVar3 < (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500)) {\n      *piVar2 = 0;\nLAB_0017ffce:\n      _Unwind_DeleteException(iVar1 + 0x30);\n      return;\n    }\n    iVar3 = *(int *)(iVar1 + 0x14);\n    if (iVar3 < 0) {\n      iVar3 = iVar3 + 1;\n      if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n      }\n    }\n    else {\n      iVar3 = iVar3 + -1;\n      if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n        goto LAB_0017ffce;\n      }\n      if (iVar3 < 0) {\n                    /* WARNING: Subroutine does not return */\n        std::terminate();\n      }\n    }\n    *(int *)(iVar1 + 0x14) = iVar3;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar3 = *(int *)(iVar1 + 0x34) + -0x474e5544 + (uint)(0x432b2aff < *(uint *)(iVar1 + 0x30));\n    if (iVar3 != 0 || (uint)-iVar3 < (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500)) {\n      *piVar2 = 0;\nLAB_0017ffce:\n      _Unwind_DeleteException(iVar1 + 0x30);\n      return;\n    }\n    iVar3 = *(int *)(iVar1 + 0x14);\n    if (iVar3 < 0) {\n      iVar3 = iVar3 + 1;\n      if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n      }\n    }\n    else {\n      iVar3 = iVar3 + -1;\n      if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n        goto LAB_0017ffce;\n      }\n      if (iVar3 < 0) {\n                    /* WARNING: Subroutine does not return */\n        std::terminate();\n      }\n    }\n    *(int *)(iVar1 + 0x14) = iVar3;\n  }" { (expression_statement "iVar3 = *(int *)(iVar1 + 0x34) + -0x474e5544 + (uint)(0x432b2aff < *(uint *)(iVar1 + 0x30));" (assignment_expression "iVar3 = *(int *)(iVar1 + 0x34) + -0x474e5544 + (uint)(0x432b2aff < *(uint *)(iVar1 + 0x30))" identifier = (binary_expression "*(int *)(iVar1 + 0x34) + -0x474e5544 + (uint)(0x432b2aff < *(uint *)(iVar1 + 0x30))" (binary_expression "*(int *)(iVar1 + 0x34) + -0x474e5544" (pointer_expression "*(int *)(iVar1 + 0x34)" * (cast_expression "(int *)(iVar1 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x34)" ( (binary_expression "iVar1 + 0x34" identifier + number_literal) )))) + number_literal) + (call_expression "(uint)(0x432b2aff < *(uint *)(iVar1 + 0x30))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0x432b2aff < *(uint *)(iVar1 + 0x30))" ( (binary_expression "0x432b2aff < *(uint *)(iVar1 + 0x30)" number_literal < (pointer_expression "*(uint *)(iVar1 + 0x30)" * (cast_expression "(uint *)(iVar1 + 0x30)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x30)" ( (binary_expression "iVar1 + 0x30" identifier + number_literal) ))))) ))))) ;) (if_statement "if (iVar3 != 0 || (uint)-iVar3 < (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500)) {\n      *piVar2 = 0;\nLAB_0017ffce:\n      _Unwind_DeleteException(iVar1 + 0x30);\n      return;\n    }" if (parenthesized_expression "(iVar3 != 0 || (uint)-iVar3 < (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500))" ( (binary_expression "iVar3 != 0 || (uint)-iVar3 < (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500)" (binary_expression "iVar3 != 0" identifier != number_literal) || (binary_expression "(uint)-iVar3 < (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500)" (binary_expression "(uint)-iVar3" (parenthesized_expression "(uint)" ( identifier )) - identifier) < (call_expression "(uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500)" ( (binary_expression "1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500" number_literal < (binary_expression "*(uint *)(iVar1 + 0x30) + 0xbcd4d500" (pointer_expression "*(uint *)(iVar1 + 0x30)" * (cast_expression "(uint *)(iVar1 + 0x30)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x30)" ( (binary_expression "iVar1 + 0x30" identifier + number_literal) )))) + number_literal)) ))))) )) (compound_statement "{\n      *piVar2 = 0;\nLAB_0017ffce:\n      _Unwind_DeleteException(iVar1 + 0x30);\n      return;\n    }" { (expression_statement "*piVar2 = 0;" (assignment_expression "*piVar2 = 0" (pointer_expression "*piVar2" * identifier) = number_literal) ;) (labeled_statement "LAB_0017ffce:\n      _Unwind_DeleteException(iVar1 + 0x30);" statement_identifier : (expression_statement "_Unwind_DeleteException(iVar1 + 0x30);" (call_expression "_Unwind_DeleteException(iVar1 + 0x30)" identifier (argument_list "(iVar1 + 0x30)" ( (binary_expression "iVar1 + 0x30" identifier + number_literal) ))) ;)) (return_statement "return;" return ;) })) (expression_statement "iVar3 = *(int *)(iVar1 + 0x14);" (assignment_expression "iVar3 = *(int *)(iVar1 + 0x14)" identifier = (pointer_expression "*(int *)(iVar1 + 0x14)" * (cast_expression "(int *)(iVar1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (iVar3 < 0) {\n      iVar3 = iVar3 + 1;\n      if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n      }\n    }\n    else {\n      iVar3 = iVar3 + -1;\n      if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n        goto LAB_0017ffce;\n      }\n      if (iVar3 < 0) {\n                    /* WARNING: Subroutine does not return */\n        std::terminate();\n      }\n    }" if (parenthesized_expression "(iVar3 < 0)" ( (binary_expression "iVar3 < 0" identifier < number_literal) )) (compound_statement "{\n      iVar3 = iVar3 + 1;\n      if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n      }\n    }" { (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (if_statement "if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        *piVar2 = *(int *)(iVar1 + 0x10);\n      }" { (expression_statement "*piVar2 = *(int *)(iVar1 + 0x10);" (assignment_expression "*piVar2 = *(int *)(iVar1 + 0x10)" (pointer_expression "*piVar2" * identifier) = (pointer_expression "*(int *)(iVar1 + 0x10)" * (cast_expression "(int *)(iVar1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) ))))) ;) })) }) (else_clause "else {\n      iVar3 = iVar3 + -1;\n      if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n        goto LAB_0017ffce;\n      }\n      if (iVar3 < 0) {\n                    /* WARNING: Subroutine does not return */\n        std::terminate();\n      }\n    }" else (compound_statement "{\n      iVar3 = iVar3 + -1;\n      if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n        goto LAB_0017ffce;\n      }\n      if (iVar3 < 0) {\n                    /* WARNING: Subroutine does not return */\n        std::terminate();\n      }\n    }" { (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) (if_statement "if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n        goto LAB_0017ffce;\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        *piVar2 = *(int *)(iVar1 + 0x10);\n        goto LAB_0017ffce;\n      }" { (expression_statement "*piVar2 = *(int *)(iVar1 + 0x10);" (assignment_expression "*piVar2 = *(int *)(iVar1 + 0x10)" (pointer_expression "*piVar2" * identifier) = (pointer_expression "*(int *)(iVar1 + 0x10)" * (cast_expression "(int *)(iVar1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) ))))) ;) (goto_statement "goto LAB_0017ffce;" goto statement_identifier ;) })) (if_statement "if (iVar3 < 0) {\n                    /* WARNING: Subroutine does not return */\n        std::terminate();\n      }" if (parenthesized_expression "(iVar3 < 0)" ( (binary_expression "iVar3 < 0" identifier < number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        std::terminate();\n      }" { comment (labeled_statement "std::terminate();" statement_identifier : (ERROR ":" :) (expression_statement "terminate();" (call_expression "terminate()" identifier (argument_list "()" ( ))) ;)) })) }))) (expression_statement "*(int *)(iVar1 + 0x14) = iVar3;" (assignment_expression "*(int *)(iVar1 + 0x14) = iVar3" (pointer_expression "*(int *)(iVar1 + 0x14)" * (cast_expression "(int *)(iVar1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) )))) = identifier) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0017ff50(void)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  \n  piVar2 = (int *)FUN_0017fca0();\n  iVar1 = *piVar2;\n  if (iVar1 != 0) {\n    iVar3 = *(int *)(iVar1 + 0x34) + -0x474e5544 + (uint)(0x432b2aff < *(uint *)(iVar1 + 0x30));\n    if (iVar3 != 0 || (uint)-iVar3 < (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500)) {\n      *piVar2 = 0;\nLAB_0017ffce:\n      FUN_002178f0(iVar1 + 0x30);\n      return;\n    }\n    iVar3 = *(int *)(iVar1 + 0x14);\n    if (iVar3 < 0) {\n      iVar3 = iVar3 + 1;\n      if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n      }\n    }\n    else {\n      iVar3 = iVar3 + -1;\n      if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n        goto LAB_0017ffce;\n      }\n      if (iVar3 < 0) {\n                    \n        FUN_0017f140();\n      }\n    }\n    *(int *)(iVar1 + 0x14) = iVar3;\n  }\n  return;\n}\n\n" (function_definition "void FUN_0017ff50(void)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  \n  piVar2 = (int *)FUN_0017fca0();\n  iVar1 = *piVar2;\n  if (iVar1 != 0) {\n    iVar3 = *(int *)(iVar1 + 0x34) + -0x474e5544 + (uint)(0x432b2aff < *(uint *)(iVar1 + 0x30));\n    if (iVar3 != 0 || (uint)-iVar3 < (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500)) {\n      *piVar2 = 0;\nLAB_0017ffce:\n      FUN_002178f0(iVar1 + 0x30);\n      return;\n    }\n    iVar3 = *(int *)(iVar1 + 0x14);\n    if (iVar3 < 0) {\n      iVar3 = iVar3 + 1;\n      if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n      }\n    }\n    else {\n      iVar3 = iVar3 + -1;\n      if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n        goto LAB_0017ffce;\n      }\n      if (iVar3 < 0) {\n                    \n        FUN_0017f140();\n      }\n    }\n    *(int *)(iVar1 + 0x14) = iVar3;\n  }\n  return;\n}" primitive_type (function_declarator "FUN_0017ff50(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  \n  piVar2 = (int *)FUN_0017fca0();\n  iVar1 = *piVar2;\n  if (iVar1 != 0) {\n    iVar3 = *(int *)(iVar1 + 0x34) + -0x474e5544 + (uint)(0x432b2aff < *(uint *)(iVar1 + 0x30));\n    if (iVar3 != 0 || (uint)-iVar3 < (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500)) {\n      *piVar2 = 0;\nLAB_0017ffce:\n      FUN_002178f0(iVar1 + 0x30);\n      return;\n    }\n    iVar3 = *(int *)(iVar1 + 0x14);\n    if (iVar3 < 0) {\n      iVar3 = iVar3 + 1;\n      if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n      }\n    }\n    else {\n      iVar3 = iVar3 + -1;\n      if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n        goto LAB_0017ffce;\n      }\n      if (iVar3 < 0) {\n                    \n        FUN_0017f140();\n      }\n    }\n    *(int *)(iVar1 + 0x14) = iVar3;\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "piVar2 = (int *)FUN_0017fca0();" (assignment_expression "piVar2 = (int *)FUN_0017fca0()" identifier = (cast_expression "(int *)FUN_0017fca0()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0017fca0()" identifier (argument_list "()" ( ))))) ;) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" identifier = (pointer_expression "*piVar2" * identifier)) ;) (if_statement "if (iVar1 != 0) {\n    iVar3 = *(int *)(iVar1 + 0x34) + -0x474e5544 + (uint)(0x432b2aff < *(uint *)(iVar1 + 0x30));\n    if (iVar3 != 0 || (uint)-iVar3 < (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500)) {\n      *piVar2 = 0;\nLAB_0017ffce:\n      FUN_002178f0(iVar1 + 0x30);\n      return;\n    }\n    iVar3 = *(int *)(iVar1 + 0x14);\n    if (iVar3 < 0) {\n      iVar3 = iVar3 + 1;\n      if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n      }\n    }\n    else {\n      iVar3 = iVar3 + -1;\n      if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n        goto LAB_0017ffce;\n      }\n      if (iVar3 < 0) {\n                    \n        FUN_0017f140();\n      }\n    }\n    *(int *)(iVar1 + 0x14) = iVar3;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar3 = *(int *)(iVar1 + 0x34) + -0x474e5544 + (uint)(0x432b2aff < *(uint *)(iVar1 + 0x30));\n    if (iVar3 != 0 || (uint)-iVar3 < (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500)) {\n      *piVar2 = 0;\nLAB_0017ffce:\n      FUN_002178f0(iVar1 + 0x30);\n      return;\n    }\n    iVar3 = *(int *)(iVar1 + 0x14);\n    if (iVar3 < 0) {\n      iVar3 = iVar3 + 1;\n      if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n      }\n    }\n    else {\n      iVar3 = iVar3 + -1;\n      if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n        goto LAB_0017ffce;\n      }\n      if (iVar3 < 0) {\n                    \n        FUN_0017f140();\n      }\n    }\n    *(int *)(iVar1 + 0x14) = iVar3;\n  }" { (expression_statement "iVar3 = *(int *)(iVar1 + 0x34) + -0x474e5544 + (uint)(0x432b2aff < *(uint *)(iVar1 + 0x30));" (assignment_expression "iVar3 = *(int *)(iVar1 + 0x34) + -0x474e5544 + (uint)(0x432b2aff < *(uint *)(iVar1 + 0x30))" identifier = (binary_expression "*(int *)(iVar1 + 0x34) + -0x474e5544 + (uint)(0x432b2aff < *(uint *)(iVar1 + 0x30))" (binary_expression "*(int *)(iVar1 + 0x34) + -0x474e5544" (pointer_expression "*(int *)(iVar1 + 0x34)" * (cast_expression "(int *)(iVar1 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x34)" ( (binary_expression "iVar1 + 0x34" identifier + number_literal) )))) + number_literal) + (call_expression "(uint)(0x432b2aff < *(uint *)(iVar1 + 0x30))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(0x432b2aff < *(uint *)(iVar1 + 0x30))" ( (binary_expression "0x432b2aff < *(uint *)(iVar1 + 0x30)" number_literal < (pointer_expression "*(uint *)(iVar1 + 0x30)" * (cast_expression "(uint *)(iVar1 + 0x30)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x30)" ( (binary_expression "iVar1 + 0x30" identifier + number_literal) ))))) ))))) ;) (if_statement "if (iVar3 != 0 || (uint)-iVar3 < (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500)) {\n      *piVar2 = 0;\nLAB_0017ffce:\n      FUN_002178f0(iVar1 + 0x30);\n      return;\n    }" if (parenthesized_expression "(iVar3 != 0 || (uint)-iVar3 < (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500))" ( (binary_expression "iVar3 != 0 || (uint)-iVar3 < (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500)" (binary_expression "iVar3 != 0" identifier != number_literal) || (binary_expression "(uint)-iVar3 < (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500)" (binary_expression "(uint)-iVar3" (parenthesized_expression "(uint)" ( identifier )) - identifier) < (call_expression "(uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500)" ( (binary_expression "1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500" number_literal < (binary_expression "*(uint *)(iVar1 + 0x30) + 0xbcd4d500" (pointer_expression "*(uint *)(iVar1 + 0x30)" * (cast_expression "(uint *)(iVar1 + 0x30)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x30)" ( (binary_expression "iVar1 + 0x30" identifier + number_literal) )))) + number_literal)) ))))) )) (compound_statement "{\n      *piVar2 = 0;\nLAB_0017ffce:\n      FUN_002178f0(iVar1 + 0x30);\n      return;\n    }" { (expression_statement "*piVar2 = 0;" (assignment_expression "*piVar2 = 0" (pointer_expression "*piVar2" * identifier) = number_literal) ;) (labeled_statement "LAB_0017ffce:\n      FUN_002178f0(iVar1 + 0x30);" statement_identifier : (expression_statement "FUN_002178f0(iVar1 + 0x30);" (call_expression "FUN_002178f0(iVar1 + 0x30)" identifier (argument_list "(iVar1 + 0x30)" ( (binary_expression "iVar1 + 0x30" identifier + number_literal) ))) ;)) (return_statement "return;" return ;) })) (expression_statement "iVar3 = *(int *)(iVar1 + 0x14);" (assignment_expression "iVar3 = *(int *)(iVar1 + 0x14)" identifier = (pointer_expression "*(int *)(iVar1 + 0x14)" * (cast_expression "(int *)(iVar1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (iVar3 < 0) {\n      iVar3 = iVar3 + 1;\n      if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n      }\n    }\n    else {\n      iVar3 = iVar3 + -1;\n      if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n        goto LAB_0017ffce;\n      }\n      if (iVar3 < 0) {\n                    \n        FUN_0017f140();\n      }\n    }" if (parenthesized_expression "(iVar3 < 0)" ( (binary_expression "iVar3 < 0" identifier < number_literal) )) (compound_statement "{\n      iVar3 = iVar3 + 1;\n      if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n      }\n    }" { (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" identifier = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (if_statement "if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        *piVar2 = *(int *)(iVar1 + 0x10);\n      }" { (expression_statement "*piVar2 = *(int *)(iVar1 + 0x10);" (assignment_expression "*piVar2 = *(int *)(iVar1 + 0x10)" (pointer_expression "*piVar2" * identifier) = (pointer_expression "*(int *)(iVar1 + 0x10)" * (cast_expression "(int *)(iVar1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) ))))) ;) })) }) (else_clause "else {\n      iVar3 = iVar3 + -1;\n      if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n        goto LAB_0017ffce;\n      }\n      if (iVar3 < 0) {\n                    \n        FUN_0017f140();\n      }\n    }" else (compound_statement "{\n      iVar3 = iVar3 + -1;\n      if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n        goto LAB_0017ffce;\n      }\n      if (iVar3 < 0) {\n                    \n        FUN_0017f140();\n      }\n    }" { (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) (if_statement "if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n        goto LAB_0017ffce;\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        *piVar2 = *(int *)(iVar1 + 0x10);\n        goto LAB_0017ffce;\n      }" { (expression_statement "*piVar2 = *(int *)(iVar1 + 0x10);" (assignment_expression "*piVar2 = *(int *)(iVar1 + 0x10)" (pointer_expression "*piVar2" * identifier) = (pointer_expression "*(int *)(iVar1 + 0x10)" * (cast_expression "(int *)(iVar1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) ))))) ;) (goto_statement "goto LAB_0017ffce;" goto statement_identifier ;) })) (if_statement "if (iVar3 < 0) {\n                    \n        FUN_0017f140();\n      }" if (parenthesized_expression "(iVar3 < 0)" ( (binary_expression "iVar3 < 0" identifier < number_literal) )) (compound_statement "{\n                    \n        FUN_0017f140();\n      }" { (expression_statement "FUN_0017f140();" (call_expression "FUN_0017f140()" identifier (argument_list "()" ( ))) ;) })) }))) (expression_statement "*(int *)(iVar1 + 0x14) = iVar3;" (assignment_expression "*(int *)(iVar1 + 0x14) = iVar3" (pointer_expression "*(int *)(iVar1 + 0x14)" * (cast_expression "(int *)(iVar1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) )))) = identifier) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) + (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT != LIT) || (binary_expression (binary_expression (parenthesized_expression ( IDENT )) - IDENT) < (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression LIT < (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ))))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;)) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) }))) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (return_statement return ;) })))
(function_definition "void FUN_0017ff50(void)\n\n{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  \n  piVar2 = (int *)FUN_0017fca0();\n  iVar1 = *piVar2;\n  if (iVar1 != 0) {\n    iVar3 = *(int *)(iVar1 + 0x34) + -0x474e5544 + (uint)(0x432b2aff < *(uint *)(iVar1 + 0x30));\n    if (iVar3 != 0 || (uint)-iVar3 < (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500)) {\n      *piVar2 = 0;\nLAB_0017ffce:\n      FUN_002178f0(iVar1 + 0x30);\n      return;\n    }\n    iVar3 = *(int *)(iVar1 + 0x14);\n    if (iVar3 < 0) {\n      iVar3 = iVar3 + 1;\n      if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n      }\n    }\n    else {\n      iVar3 = iVar3 + -1;\n      if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n        goto LAB_0017ffce;\n      }\n      if (iVar3 < 0) {\n                    \n        FUN_0017f140();\n      }\n    }\n    *(int *)(iVar1 + 0x14) = iVar3;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0017ff50(void)" (identifier "FUN_0017ff50") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  int iVar3;\n  \n  piVar2 = (int *)FUN_0017fca0();\n  iVar1 = *piVar2;\n  if (iVar1 != 0) {\n    iVar3 = *(int *)(iVar1 + 0x34) + -0x474e5544 + (uint)(0x432b2aff < *(uint *)(iVar1 + 0x30));\n    if (iVar3 != 0 || (uint)-iVar3 < (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500)) {\n      *piVar2 = 0;\nLAB_0017ffce:\n      FUN_002178f0(iVar1 + 0x30);\n      return;\n    }\n    iVar3 = *(int *)(iVar1 + 0x14);\n    if (iVar3 < 0) {\n      iVar3 = iVar3 + 1;\n      if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n      }\n    }\n    else {\n      iVar3 = iVar3 + -1;\n      if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n        goto LAB_0017ffce;\n      }\n      if (iVar3 < 0) {\n                    \n        FUN_0017f140();\n      }\n    }\n    *(int *)(iVar1 + 0x14) = iVar3;\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (expression_statement "piVar2 = (int *)FUN_0017fca0();" (assignment_expression "piVar2 = (int *)FUN_0017fca0()" (identifier "piVar2") (= "=") (cast_expression "(int *)FUN_0017fca0()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0017fca0()" (identifier "FUN_0017fca0") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "iVar1 = *piVar2;" (assignment_expression "iVar1 = *piVar2" (identifier "iVar1") (= "=") (pointer_expression "*piVar2" (* "*") (identifier "piVar2"))) (; ";")) (if_statement "if (iVar1 != 0) {\n    iVar3 = *(int *)(iVar1 + 0x34) + -0x474e5544 + (uint)(0x432b2aff < *(uint *)(iVar1 + 0x30));\n    if (iVar3 != 0 || (uint)-iVar3 < (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500)) {\n      *piVar2 = 0;\nLAB_0017ffce:\n      FUN_002178f0(iVar1 + 0x30);\n      return;\n    }\n    iVar3 = *(int *)(iVar1 + 0x14);\n    if (iVar3 < 0) {\n      iVar3 = iVar3 + 1;\n      if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n      }\n    }\n    else {\n      iVar3 = iVar3 + -1;\n      if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n        goto LAB_0017ffce;\n      }\n      if (iVar3 < 0) {\n                    \n        FUN_0017f140();\n      }\n    }\n    *(int *)(iVar1 + 0x14) = iVar3;\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar3 = *(int *)(iVar1 + 0x34) + -0x474e5544 + (uint)(0x432b2aff < *(uint *)(iVar1 + 0x30));\n    if (iVar3 != 0 || (uint)-iVar3 < (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500)) {\n      *piVar2 = 0;\nLAB_0017ffce:\n      FUN_002178f0(iVar1 + 0x30);\n      return;\n    }\n    iVar3 = *(int *)(iVar1 + 0x14);\n    if (iVar3 < 0) {\n      iVar3 = iVar3 + 1;\n      if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n      }\n    }\n    else {\n      iVar3 = iVar3 + -1;\n      if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n        goto LAB_0017ffce;\n      }\n      if (iVar3 < 0) {\n                    \n        FUN_0017f140();\n      }\n    }\n    *(int *)(iVar1 + 0x14) = iVar3;\n  }" ({ "{") (expression_statement "iVar3 = *(int *)(iVar1 + 0x34) + -0x474e5544 + (uint)(0x432b2aff < *(uint *)(iVar1 + 0x30));" (assignment_expression "iVar3 = *(int *)(iVar1 + 0x34) + -0x474e5544 + (uint)(0x432b2aff < *(uint *)(iVar1 + 0x30))" (identifier "iVar3") (= "=") (binary_expression "*(int *)(iVar1 + 0x34) + -0x474e5544 + (uint)(0x432b2aff < *(uint *)(iVar1 + 0x30))" (binary_expression "*(int *)(iVar1 + 0x34) + -0x474e5544" (pointer_expression "*(int *)(iVar1 + 0x34)" (* "*") (cast_expression "(int *)(iVar1 + 0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x34)" (( "(") (binary_expression "iVar1 + 0x34" (identifier "iVar1") (+ "+") (number_literal "0x34")) () ")")))) (+ "+") (number_literal "-0x474e5544")) (+ "+") (call_expression "(uint)(0x432b2aff < *(uint *)(iVar1 + 0x30))" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(0x432b2aff < *(uint *)(iVar1 + 0x30))" (( "(") (binary_expression "0x432b2aff < *(uint *)(iVar1 + 0x30)" (number_literal "0x432b2aff") (< "<") (pointer_expression "*(uint *)(iVar1 + 0x30)" (* "*") (cast_expression "(uint *)(iVar1 + 0x30)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x30)" (( "(") (binary_expression "iVar1 + 0x30" (identifier "iVar1") (+ "+") (number_literal "0x30")) () ")"))))) () ")"))))) (; ";")) (if_statement "if (iVar3 != 0 || (uint)-iVar3 < (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500)) {\n      *piVar2 = 0;\nLAB_0017ffce:\n      FUN_002178f0(iVar1 + 0x30);\n      return;\n    }" (if "if") (parenthesized_expression "(iVar3 != 0 || (uint)-iVar3 < (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500))" (( "(") (binary_expression "iVar3 != 0 || (uint)-iVar3 < (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500)" (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) (|| "||") (binary_expression "(uint)-iVar3 < (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500)" (binary_expression "(uint)-iVar3" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (- "-") (identifier "iVar3")) (< "<") (call_expression "(uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500)" (( "(") (binary_expression "1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500" (number_literal "1") (< "<") (binary_expression "*(uint *)(iVar1 + 0x30) + 0xbcd4d500" (pointer_expression "*(uint *)(iVar1 + 0x30)" (* "*") (cast_expression "(uint *)(iVar1 + 0x30)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x30)" (( "(") (binary_expression "iVar1 + 0x30" (identifier "iVar1") (+ "+") (number_literal "0x30")) () ")")))) (+ "+") (number_literal "0xbcd4d500"))) () ")"))))) () ")")) (compound_statement "{\n      *piVar2 = 0;\nLAB_0017ffce:\n      FUN_002178f0(iVar1 + 0x30);\n      return;\n    }" ({ "{") (expression_statement "*piVar2 = 0;" (assignment_expression "*piVar2 = 0" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_0017ffce:\n      FUN_002178f0(iVar1 + 0x30);" (statement_identifier "LAB_0017ffce") (: ":") (expression_statement "FUN_002178f0(iVar1 + 0x30);" (call_expression "FUN_002178f0(iVar1 + 0x30)" (identifier "FUN_002178f0") (argument_list "(iVar1 + 0x30)" (( "(") (binary_expression "iVar1 + 0x30" (identifier "iVar1") (+ "+") (number_literal "0x30")) () ")"))) (; ";"))) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar3 = *(int *)(iVar1 + 0x14);" (assignment_expression "iVar3 = *(int *)(iVar1 + 0x14)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(iVar1 + 0x14)" (* "*") (cast_expression "(int *)(iVar1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x14)" (( "(") (binary_expression "iVar1 + 0x14" (identifier "iVar1") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (iVar3 < 0) {\n      iVar3 = iVar3 + 1;\n      if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n      }\n    }\n    else {\n      iVar3 = iVar3 + -1;\n      if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n        goto LAB_0017ffce;\n      }\n      if (iVar3 < 0) {\n                    \n        FUN_0017f140();\n      }\n    }" (if "if") (parenthesized_expression "(iVar3 < 0)" (( "(") (binary_expression "iVar3 < 0" (identifier "iVar3") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n      iVar3 = iVar3 + 1;\n      if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n      }\n    }" ({ "{") (expression_statement "iVar3 = iVar3 + 1;" (assignment_expression "iVar3 = iVar3 + 1" (identifier "iVar3") (= "=") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n      }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        *piVar2 = *(int *)(iVar1 + 0x10);\n      }" ({ "{") (expression_statement "*piVar2 = *(int *)(iVar1 + 0x10);" (assignment_expression "*piVar2 = *(int *)(iVar1 + 0x10)" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (= "=") (pointer_expression "*(int *)(iVar1 + 0x10)" (* "*") (cast_expression "(int *)(iVar1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x10)" (( "(") (binary_expression "iVar1 + 0x10" (identifier "iVar1") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n      iVar3 = iVar3 + -1;\n      if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n        goto LAB_0017ffce;\n      }\n      if (iVar3 < 0) {\n                    \n        FUN_0017f140();\n      }\n    }" (else "else") (compound_statement "{\n      iVar3 = iVar3 + -1;\n      if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n        goto LAB_0017ffce;\n      }\n      if (iVar3 < 0) {\n                    \n        FUN_0017f140();\n      }\n    }" ({ "{") (expression_statement "iVar3 = iVar3 + -1;" (assignment_expression "iVar3 = iVar3 + -1" (identifier "iVar3") (= "=") (binary_expression "iVar3 + -1" (identifier "iVar3") (+ "+") (number_literal "-1"))) (; ";")) (if_statement "if (iVar3 == 0) {\n        *piVar2 = *(int *)(iVar1 + 0x10);\n        goto LAB_0017ffce;\n      }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        *piVar2 = *(int *)(iVar1 + 0x10);\n        goto LAB_0017ffce;\n      }" ({ "{") (expression_statement "*piVar2 = *(int *)(iVar1 + 0x10);" (assignment_expression "*piVar2 = *(int *)(iVar1 + 0x10)" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (= "=") (pointer_expression "*(int *)(iVar1 + 0x10)" (* "*") (cast_expression "(int *)(iVar1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x10)" (( "(") (binary_expression "iVar1 + 0x10" (identifier "iVar1") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (goto_statement "goto LAB_0017ffce;" (goto "goto") (statement_identifier "LAB_0017ffce") (; ";")) (} "}"))) (if_statement "if (iVar3 < 0) {\n                    \n        FUN_0017f140();\n      }" (if "if") (parenthesized_expression "(iVar3 < 0)" (( "(") (binary_expression "iVar3 < 0" (identifier "iVar3") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n                    \n        FUN_0017f140();\n      }" ({ "{") (expression_statement "FUN_0017f140();" (call_expression "FUN_0017f140()" (identifier "FUN_0017f140") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (} "}")))) (expression_statement "*(int *)(iVar1 + 0x14) = iVar3;" (assignment_expression "*(int *)(iVar1 + 0x14) = iVar3" (pointer_expression "*(int *)(iVar1 + 0x14)" (* "*") (cast_expression "(int *)(iVar1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x14)" (( "(") (binary_expression "iVar1 + 0x14" (identifier "iVar1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "iVar3")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(void)

{
  int var_2;
  int *piVar2;
  int var_3;
  
  piVar2 = (int *)var_1();
  var_2 = *piVar2;
  if (var_2 != 0) {
    var_3 = *(int *)(var_2 + 0x34) + -0x474e5544 + (type_1)(0x432b2aff < *(type_1 *)(var_2 + 0x30));
    if (var_3 != 0 || (type_1)-var_3 < (type_1)(1 < *(type_1 *)(var_2 + 0x30) + 0xbcd4d500)) {
      *piVar2 = 0;
LAB_0017ffce:
      var_4(var_2 + 0x30);
      return;
    }
    var_3 = *(int *)(var_2 + 0x14);
    if (var_3 < 0) {
      var_3 = var_3 + 1;
      if (var_3 == 0) {
        *piVar2 = *(int *)(var_2 + 0x10);
      }
    }
    else {
      var_3 = var_3 + -1;
      if (var_3 == 0) {
        *piVar2 = *(int *)(var_2 + 0x10);
        goto LAB_0017ffce;
      }
      if (var_3 < 0) {
                    /* WARNING: Subroutine does not return */
        std::var_5();
      }
    }
    *(int *)(var_2 + 0x14) = var_3;
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (number_literal) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (binary_expression left: (parenthesized_expression (identifier)) right: (identifier)) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (number_literal) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))))) (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (goto_statement label: (statement_identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list)))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))))) (return_statement))))

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

void MASKED(void)

{
  int iVar1;
  int *piVar2;
  int iVar3;
  
  piVar2 = (int *)FUN_0017fca0();
  iVar1 = *piVar2;
  if (iVar1 != 0) {
    iVar3 = *(int *)(iVar1 + 0x34) + -0x474e5544 + (uint)(0x432b2aff < *(uint *)(iVar1 + 0x30));
    if (iVar3 != 0 || (uint)-iVar3 < (uint)(1 < *(uint *)(iVar1 + 0x30) + 0xbcd4d500)) {
      *piVar2 = 0;
LAB_0017ffce:
      FUN_002178f0(iVar1 + 0x30);
      return;
    }
    iVar3 = *(int *)(iVar1 + 0x14);
    if (iVar3 < 0) {
      iVar3 = iVar3 + 1;
      if (iVar3 == 0) {
        *piVar2 = *(int *)(iVar1 + 0x10);
      }
    }
    else {
      iVar3 = iVar3 + -1;
      if (iVar3 == 0) {
        *piVar2 = *(int *)(iVar1 + 0x10);
        goto LAB_0017ffce;
      }
      if (iVar3 < 0) {
                    /* WARNING: Subroutine does not return */
        FUN_0017f140();
      }
    }
    *(int *)(iVar1 + 0x14) = iVar3;
  }
  return;
}

