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

void input_backward(uint num)

{
}



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

void __regparm3 FUN_000ab35c(uint param_1)

{
  int iVar1;
  uint uVar2;
  int iVar3;
  undefined4 extraout_EDX;
  
  iVar3 = DAT_000d1720;
  uVar2 = *(uint *)(DAT_000d1720 + 0x14);
  if (uVar2 <= param_1) {
    param_1 = uVar2;
  }
  if (param_1 != 0) {
    *(uint *)(DAT_000d1720 + 0x14) = uVar2 - param_1;
    uVar2 = *(uint *)(iVar3 + 8);
    if (uVar2 < param_1) {
      iVar1 = (~uVar2 + param_1) / *(uint *)(iVar3 + 4) + 1;
      *(uint *)(iVar3 + 8) =
           ((*(int *)(iVar3 + 4) * *(int *)(iVar3 + 0xc) + uVar2) - param_1) % *(uint *)(iVar3 + 4);
      *(int *)(iVar3 + 0xc) = *(int *)(iVar3 + 0xc) - iVar1;
      __printf_chk(1,&DAT_000cdb19,iVar1,param_1);
      if (*(int *)(iVar3 + 8) != 0) {
        __printf_chk(1,&DAT_000cdb20,*(int *)(iVar3 + 8),extraout_EDX);
        return;
      }
    }
    else {
      *(uint *)(iVar3 + 8) = uVar2 - param_1;
      if (param_1 < 5) {
        do {
          FUN_00019f93();
          if (param_1 == 1) {
            return;
          }
          FUN_00019f93();
          param_1 = param_1 - 2;
        } while (param_1 != 0);
      }
      else {
        __printf_chk(1,&DAT_000cdb13,param_1,iVar3);
      }
    }
  }
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
SUB ESP,0xc
CALL 0x00017640
ADD EBX,0x256b8
LEA EDX,[EBX + 0xd00]
MOV EDI,dword ptr [EDX]
MOV EDX,dword ptr [EDI + 0x14]
MOV ESI,EAX
CMP EDX,EAX
JA 0x000ab381
MOV ESI,EDX
TEST ESI,ESI
JZ 0x000ab3ae
SUB EDX,ESI
MOV dword ptr [EDI + 0x14],EDX
MOV EBP,dword ptr [EDI + 0x8]
CMP EBP,ESI
JC 0x000ab3b6
SUB EBP,ESI
MOV dword ptr [EDI + 0x8],EBP
CMP ESI,0x4
JBE 0x000ab414
PUSH EDI
PUSH ESI
LEA EAX,[EBX + 0xffffd0f3]
PUSH EAX
PUSH 0x1
CALL 0x00016f40
ADD ESP,0x10
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,EBP
NOT EAX
ADD EAX,ESI
XOR EDX,EDX
DIV dword ptr [EDI + 0x4]
LEA ECX,[EAX + 0x1]
MOV EAX,dword ptr [EDI + 0x4]
IMUL EAX,dword ptr [EDI + 0xc]
ADD EAX,EBP
SUB EAX,ESI
XOR EDX,EDX
DIV dword ptr [EDI + 0x4]
MOV dword ptr [EDI + 0x8],EDX
MOV EAX,dword ptr [EDI + 0xc]
SUB EAX,ECX
MOV dword ptr [EDI + 0xc],EAX
PUSH ESI
PUSH ECX
LEA EAX,[EBX + 0xffffd0f9]
PUSH EAX
PUSH 0x1
CALL 0x00016f40
MOV EAX,dword ptr [EDI + 0x8]
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000ab3ae
PUSH EDX
PUSH EAX
LEA EAX,[EBX + 0xffffd100]
PUSH EAX
PUSH 0x1
CALL 0x00016f40
ADD ESP,0x10
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,0x8
CALL 0x00019f93
DEC ESI
JZ 0x000ab3ae
MOV EAX,0x8
CALL 0x00019f93
DEC ESI
JNZ 0x000ab414
JMP 0x000ab3ae
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_000ab35c(uint param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  undefined4 extraout_EDX;\n  \n  iVar3 = DAT_000d1720;\n  uVar2 = *(uint *)(DAT_000d1720 + 0x14);\n  if (uVar2 <= param_1) {\n    param_1 = uVar2;\n  }\n  if (param_1 != 0) {\n    *(uint *)(DAT_000d1720 + 0x14) = uVar2 - param_1;\n    uVar2 = *(uint *)(iVar3 + 8);\n    if (uVar2 < param_1) {\n      iVar1 = (~uVar2 + param_1) / *(uint *)(iVar3 + 4) + 1;\n      *(uint *)(iVar3 + 8) =\n           ((*(int *)(iVar3 + 4) * *(int *)(iVar3 + 0xc) + uVar2) - param_1) % *(uint *)(iVar3 + 4);\n      *(int *)(iVar3 + 0xc) = *(int *)(iVar3 + 0xc) - iVar1;\n      __printf_chk(1,&DAT_000cdb19,iVar1,param_1);\n      if (*(int *)(iVar3 + 8) != 0) {\n        __printf_chk(1,&DAT_000cdb20,*(int *)(iVar3 + 8),extraout_EDX);\n        return;\n      }\n    }\n    else {\n      *(uint *)(iVar3 + 8) = uVar2 - param_1;\n      if (param_1 < 5) {\n        do {\n          FUN_00019f93();\n          if (param_1 == 1) {\n            return;\n          }\n          FUN_00019f93();\n          param_1 = param_1 - 2;\n        } while (param_1 != 0);\n      }\n      else {\n        __printf_chk(1,&DAT_000cdb13,param_1,iVar3);\n      }\n    }\n  }\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_000ab35c(uint param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  undefined4 extraout_EDX;\n  \n  iVar3 = DAT_000d1720;\n  uVar2 = *(uint *)(DAT_000d1720 + 0x14);\n  if (uVar2 <= param_1) {\n    param_1 = uVar2;\n  }\n  if (param_1 != 0) {\n    *(uint *)(DAT_000d1720 + 0x14) = uVar2 - param_1;\n    uVar2 = *(uint *)(iVar3 + 8);\n    if (uVar2 < param_1) {\n      iVar1 = (~uVar2 + param_1) / *(uint *)(iVar3 + 4) + 1;\n      *(uint *)(iVar3 + 8) =\n           ((*(int *)(iVar3 + 4) * *(int *)(iVar3 + 0xc) + uVar2) - param_1) % *(uint *)(iVar3 + 4);\n      *(int *)(iVar3 + 0xc) = *(int *)(iVar3 + 0xc) - iVar1;\n      __printf_chk(1,&DAT_000cdb19,iVar1,param_1);\n      if (*(int *)(iVar3 + 8) != 0) {\n        __printf_chk(1,&DAT_000cdb20,*(int *)(iVar3 + 8),extraout_EDX);\n        return;\n      }\n    }\n    else {\n      *(uint *)(iVar3 + 8) = uVar2 - param_1;\n      if (param_1 < 5) {\n        do {\n          FUN_00019f93();\n          if (param_1 == 1) {\n            return;\n          }\n          FUN_00019f93();\n          param_1 = param_1 - 2;\n        } while (param_1 != 0);\n      }\n      else {\n        __printf_chk(1,&DAT_000cdb13,param_1,iVar3);\n      }\n    }\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000ab35c(uint param_1)" identifier (parameter_list "(uint param_1)" ( (parameter_declaration "uint param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  undefined4 extraout_EDX;\n  \n  iVar3 = DAT_000d1720;\n  uVar2 = *(uint *)(DAT_000d1720 + 0x14);\n  if (uVar2 <= param_1) {\n    param_1 = uVar2;\n  }\n  if (param_1 != 0) {\n    *(uint *)(DAT_000d1720 + 0x14) = uVar2 - param_1;\n    uVar2 = *(uint *)(iVar3 + 8);\n    if (uVar2 < param_1) {\n      iVar1 = (~uVar2 + param_1) / *(uint *)(iVar3 + 4) + 1;\n      *(uint *)(iVar3 + 8) =\n           ((*(int *)(iVar3 + 4) * *(int *)(iVar3 + 0xc) + uVar2) - param_1) % *(uint *)(iVar3 + 4);\n      *(int *)(iVar3 + 0xc) = *(int *)(iVar3 + 0xc) - iVar1;\n      __printf_chk(1,&DAT_000cdb19,iVar1,param_1);\n      if (*(int *)(iVar3 + 8) != 0) {\n        __printf_chk(1,&DAT_000cdb20,*(int *)(iVar3 + 8),extraout_EDX);\n        return;\n      }\n    }\n    else {\n      *(uint *)(iVar3 + 8) = uVar2 - param_1;\n      if (param_1 < 5) {\n        do {\n          FUN_00019f93();\n          if (param_1 == 1) {\n            return;\n          }\n          FUN_00019f93();\n          param_1 = param_1 - 2;\n        } while (param_1 != 0);\n      }\n      else {\n        __printf_chk(1,&DAT_000cdb13,param_1,iVar3);\n      }\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 extraout_EDX;" type_identifier identifier ;) (expression_statement "iVar3 = DAT_000d1720;" (assignment_expression "iVar3 = DAT_000d1720" identifier = identifier) ;) (expression_statement "uVar2 = *(uint *)(DAT_000d1720 + 0x14);" (assignment_expression "uVar2 = *(uint *)(DAT_000d1720 + 0x14)" identifier = (pointer_expression "*(uint *)(DAT_000d1720 + 0x14)" * (cast_expression "(uint *)(DAT_000d1720 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_000d1720 + 0x14)" ( (binary_expression "DAT_000d1720 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (uVar2 <= param_1) {\n    param_1 = uVar2;\n  }" if (parenthesized_expression "(uVar2 <= param_1)" ( (binary_expression "uVar2 <= param_1" identifier <= identifier) )) (compound_statement "{\n    param_1 = uVar2;\n  }" { (expression_statement "param_1 = uVar2;" (assignment_expression "param_1 = uVar2" identifier = identifier) ;) })) (if_statement "if (param_1 != 0) {\n    *(uint *)(DAT_000d1720 + 0x14) = uVar2 - param_1;\n    uVar2 = *(uint *)(iVar3 + 8);\n    if (uVar2 < param_1) {\n      iVar1 = (~uVar2 + param_1) / *(uint *)(iVar3 + 4) + 1;\n      *(uint *)(iVar3 + 8) =\n           ((*(int *)(iVar3 + 4) * *(int *)(iVar3 + 0xc) + uVar2) - param_1) % *(uint *)(iVar3 + 4);\n      *(int *)(iVar3 + 0xc) = *(int *)(iVar3 + 0xc) - iVar1;\n      __printf_chk(1,&DAT_000cdb19,iVar1,param_1);\n      if (*(int *)(iVar3 + 8) != 0) {\n        __printf_chk(1,&DAT_000cdb20,*(int *)(iVar3 + 8),extraout_EDX);\n        return;\n      }\n    }\n    else {\n      *(uint *)(iVar3 + 8) = uVar2 - param_1;\n      if (param_1 < 5) {\n        do {\n          FUN_00019f93();\n          if (param_1 == 1) {\n            return;\n          }\n          FUN_00019f93();\n          param_1 = param_1 - 2;\n        } while (param_1 != 0);\n      }\n      else {\n        __printf_chk(1,&DAT_000cdb13,param_1,iVar3);\n      }\n    }\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    *(uint *)(DAT_000d1720 + 0x14) = uVar2 - param_1;\n    uVar2 = *(uint *)(iVar3 + 8);\n    if (uVar2 < param_1) {\n      iVar1 = (~uVar2 + param_1) / *(uint *)(iVar3 + 4) + 1;\n      *(uint *)(iVar3 + 8) =\n           ((*(int *)(iVar3 + 4) * *(int *)(iVar3 + 0xc) + uVar2) - param_1) % *(uint *)(iVar3 + 4);\n      *(int *)(iVar3 + 0xc) = *(int *)(iVar3 + 0xc) - iVar1;\n      __printf_chk(1,&DAT_000cdb19,iVar1,param_1);\n      if (*(int *)(iVar3 + 8) != 0) {\n        __printf_chk(1,&DAT_000cdb20,*(int *)(iVar3 + 8),extraout_EDX);\n        return;\n      }\n    }\n    else {\n      *(uint *)(iVar3 + 8) = uVar2 - param_1;\n      if (param_1 < 5) {\n        do {\n          FUN_00019f93();\n          if (param_1 == 1) {\n            return;\n          }\n          FUN_00019f93();\n          param_1 = param_1 - 2;\n        } while (param_1 != 0);\n      }\n      else {\n        __printf_chk(1,&DAT_000cdb13,param_1,iVar3);\n      }\n    }\n  }" { (expression_statement "*(uint *)(DAT_000d1720 + 0x14) = uVar2 - param_1;" (assignment_expression "*(uint *)(DAT_000d1720 + 0x14) = uVar2 - param_1" (pointer_expression "*(uint *)(DAT_000d1720 + 0x14)" * (cast_expression "(uint *)(DAT_000d1720 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_000d1720 + 0x14)" ( (binary_expression "DAT_000d1720 + 0x14" identifier + number_literal) )))) = (binary_expression "uVar2 - param_1" identifier - identifier)) ;) (expression_statement "uVar2 = *(uint *)(iVar3 + 8);" (assignment_expression "uVar2 = *(uint *)(iVar3 + 8)" identifier = (pointer_expression "*(uint *)(iVar3 + 8)" * (cast_expression "(uint *)(iVar3 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) ))))) ;) (if_statement "if (uVar2 < param_1) {\n      iVar1 = (~uVar2 + param_1) / *(uint *)(iVar3 + 4) + 1;\n      *(uint *)(iVar3 + 8) =\n           ((*(int *)(iVar3 + 4) * *(int *)(iVar3 + 0xc) + uVar2) - param_1) % *(uint *)(iVar3 + 4);\n      *(int *)(iVar3 + 0xc) = *(int *)(iVar3 + 0xc) - iVar1;\n      __printf_chk(1,&DAT_000cdb19,iVar1,param_1);\n      if (*(int *)(iVar3 + 8) != 0) {\n        __printf_chk(1,&DAT_000cdb20,*(int *)(iVar3 + 8),extraout_EDX);\n        return;\n      }\n    }\n    else {\n      *(uint *)(iVar3 + 8) = uVar2 - param_1;\n      if (param_1 < 5) {\n        do {\n          FUN_00019f93();\n          if (param_1 == 1) {\n            return;\n          }\n          FUN_00019f93();\n          param_1 = param_1 - 2;\n        } while (param_1 != 0);\n      }\n      else {\n        __printf_chk(1,&DAT_000cdb13,param_1,iVar3);\n      }\n    }" if (parenthesized_expression "(uVar2 < param_1)" ( (binary_expression "uVar2 < param_1" identifier < identifier) )) (compound_statement "{\n      iVar1 = (~uVar2 + param_1) / *(uint *)(iVar3 + 4) + 1;\n      *(uint *)(iVar3 + 8) =\n           ((*(int *)(iVar3 + 4) * *(int *)(iVar3 + 0xc) + uVar2) - param_1) % *(uint *)(iVar3 + 4);\n      *(int *)(iVar3 + 0xc) = *(int *)(iVar3 + 0xc) - iVar1;\n      __printf_chk(1,&DAT_000cdb19,iVar1,param_1);\n      if (*(int *)(iVar3 + 8) != 0) {\n        __printf_chk(1,&DAT_000cdb20,*(int *)(iVar3 + 8),extraout_EDX);\n        return;\n      }\n    }" { (expression_statement "iVar1 = (~uVar2 + param_1) / *(uint *)(iVar3 + 4) + 1;" (assignment_expression "iVar1 = (~uVar2 + param_1) / *(uint *)(iVar3 + 4) + 1" identifier = (binary_expression "(~uVar2 + param_1) / *(uint *)(iVar3 + 4) + 1" (binary_expression "(~uVar2 + param_1) / *(uint *)(iVar3 + 4)" (parenthesized_expression "(~uVar2 + param_1)" ( (binary_expression "~uVar2 + param_1" (unary_expression "~uVar2" ~ identifier) + identifier) )) / (pointer_expression "*(uint *)(iVar3 + 4)" * (cast_expression "(uint *)(iVar3 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 4)" ( (binary_expression "iVar3 + 4" identifier + number_literal) ))))) + number_literal)) ;) (expression_statement "*(uint *)(iVar3 + 8) =\n           ((*(int *)(iVar3 + 4) * *(int *)(iVar3 + 0xc) + uVar2) - param_1) % *(uint *)(iVar3 + 4);" (assignment_expression "*(uint *)(iVar3 + 8) =\n           ((*(int *)(iVar3 + 4) * *(int *)(iVar3 + 0xc) + uVar2) - param_1) % *(uint *)(iVar3 + 4)" (pointer_expression "*(uint *)(iVar3 + 8)" * (cast_expression "(uint *)(iVar3 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) )))) = (binary_expression "((*(int *)(iVar3 + 4) * *(int *)(iVar3 + 0xc) + uVar2) - param_1) % *(uint *)(iVar3 + 4)" (parenthesized_expression "((*(int *)(iVar3 + 4) * *(int *)(iVar3 + 0xc) + uVar2) - param_1)" ( (binary_expression "(*(int *)(iVar3 + 4) * *(int *)(iVar3 + 0xc) + uVar2) - param_1" (parenthesized_expression "(*(int *)(iVar3 + 4) * *(int *)(iVar3 + 0xc) + uVar2)" ( (binary_expression "*(int *)(iVar3 + 4) * *(int *)(iVar3 + 0xc) + uVar2" (binary_expression "*(int *)(iVar3 + 4) * *(int *)(iVar3 + 0xc)" (pointer_expression "*(int *)(iVar3 + 4)" * (cast_expression "(int *)(iVar3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 4)" ( (binary_expression "iVar3 + 4" identifier + number_literal) )))) * (pointer_expression "*(int *)(iVar3 + 0xc)" * (cast_expression "(int *)(iVar3 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) ))))) + identifier) )) - identifier) )) % (pointer_expression "*(uint *)(iVar3 + 4)" * (cast_expression "(uint *)(iVar3 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 4)" ( (binary_expression "iVar3 + 4" identifier + number_literal) )))))) ;) (expression_statement "*(int *)(iVar3 + 0xc) = *(int *)(iVar3 + 0xc) - iVar1;" (assignment_expression "*(int *)(iVar3 + 0xc) = *(int *)(iVar3 + 0xc) - iVar1" (pointer_expression "*(int *)(iVar3 + 0xc)" * (cast_expression "(int *)(iVar3 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar3 + 0xc) - iVar1" (pointer_expression "*(int *)(iVar3 + 0xc)" * (cast_expression "(int *)(iVar3 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) )))) - identifier)) ;) (expression_statement "__printf_chk(1,&DAT_000cdb19,iVar1,param_1);" (call_expression "__printf_chk(1,&DAT_000cdb19,iVar1,param_1)" identifier (argument_list "(1,&DAT_000cdb19,iVar1,param_1)" ( number_literal , (pointer_expression "&DAT_000cdb19" & identifier) , identifier , identifier ))) ;) (if_statement "if (*(int *)(iVar3 + 8) != 0) {\n        __printf_chk(1,&DAT_000cdb20,*(int *)(iVar3 + 8),extraout_EDX);\n        return;\n      }" if (parenthesized_expression "(*(int *)(iVar3 + 8) != 0)" ( (binary_expression "*(int *)(iVar3 + 8) != 0" (pointer_expression "*(int *)(iVar3 + 8)" * (cast_expression "(int *)(iVar3 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n        __printf_chk(1,&DAT_000cdb20,*(int *)(iVar3 + 8),extraout_EDX);\n        return;\n      }" { (expression_statement "__printf_chk(1,&DAT_000cdb20,*(int *)(iVar3 + 8),extraout_EDX);" (call_expression "__printf_chk(1,&DAT_000cdb20,*(int *)(iVar3 + 8),extraout_EDX)" identifier (argument_list "(1,&DAT_000cdb20,*(int *)(iVar3 + 8),extraout_EDX)" ( number_literal , (pointer_expression "&DAT_000cdb20" & identifier) , (pointer_expression "*(int *)(iVar3 + 8)" * (cast_expression "(int *)(iVar3 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) )))) , identifier ))) ;) (return_statement "return;" return ;) })) }) (else_clause "else {\n      *(uint *)(iVar3 + 8) = uVar2 - param_1;\n      if (param_1 < 5) {\n        do {\n          FUN_00019f93();\n          if (param_1 == 1) {\n            return;\n          }\n          FUN_00019f93();\n          param_1 = param_1 - 2;\n        } while (param_1 != 0);\n      }\n      else {\n        __printf_chk(1,&DAT_000cdb13,param_1,iVar3);\n      }\n    }" else (compound_statement "{\n      *(uint *)(iVar3 + 8) = uVar2 - param_1;\n      if (param_1 < 5) {\n        do {\n          FUN_00019f93();\n          if (param_1 == 1) {\n            return;\n          }\n          FUN_00019f93();\n          param_1 = param_1 - 2;\n        } while (param_1 != 0);\n      }\n      else {\n        __printf_chk(1,&DAT_000cdb13,param_1,iVar3);\n      }\n    }" { (expression_statement "*(uint *)(iVar3 + 8) = uVar2 - param_1;" (assignment_expression "*(uint *)(iVar3 + 8) = uVar2 - param_1" (pointer_expression "*(uint *)(iVar3 + 8)" * (cast_expression "(uint *)(iVar3 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) )))) = (binary_expression "uVar2 - param_1" identifier - identifier)) ;) (if_statement "if (param_1 < 5) {\n        do {\n          FUN_00019f93();\n          if (param_1 == 1) {\n            return;\n          }\n          FUN_00019f93();\n          param_1 = param_1 - 2;\n        } while (param_1 != 0);\n      }\n      else {\n        __printf_chk(1,&DAT_000cdb13,param_1,iVar3);\n      }" if (parenthesized_expression "(param_1 < 5)" ( (binary_expression "param_1 < 5" identifier < number_literal) )) (compound_statement "{\n        do {\n          FUN_00019f93();\n          if (param_1 == 1) {\n            return;\n          }\n          FUN_00019f93();\n          param_1 = param_1 - 2;\n        } while (param_1 != 0);\n      }" { (do_statement "do {\n          FUN_00019f93();\n          if (param_1 == 1) {\n            return;\n          }\n          FUN_00019f93();\n          param_1 = param_1 - 2;\n        } while (param_1 != 0);" do (compound_statement "{\n          FUN_00019f93();\n          if (param_1 == 1) {\n            return;\n          }\n          FUN_00019f93();\n          param_1 = param_1 - 2;\n        }" { (expression_statement "FUN_00019f93();" (call_expression "FUN_00019f93()" identifier (argument_list "()" ( ))) ;) (if_statement "if (param_1 == 1) {\n            return;\n          }" if (parenthesized_expression "(param_1 == 1)" ( (binary_expression "param_1 == 1" identifier == number_literal) )) (compound_statement "{\n            return;\n          }" { (return_statement "return;" return ;) })) (expression_statement "FUN_00019f93();" (call_expression "FUN_00019f93()" identifier (argument_list "()" ( ))) ;) (expression_statement "param_1 = param_1 - 2;" (assignment_expression "param_1 = param_1 - 2" identifier = (binary_expression "param_1 - 2" identifier - number_literal)) ;) }) while (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) ;) }) (else_clause "else {\n        __printf_chk(1,&DAT_000cdb13,param_1,iVar3);\n      }" else (compound_statement "{\n        __printf_chk(1,&DAT_000cdb13,param_1,iVar3);\n      }" { (expression_statement "__printf_chk(1,&DAT_000cdb13,param_1,iVar3);" (call_expression "__printf_chk(1,&DAT_000cdb13,param_1,iVar3)" identifier (argument_list "(1,&DAT_000cdb13,param_1,iVar3)" ( number_literal , (pointer_expression "&DAT_000cdb13" & identifier) , identifier , identifier ))) ;) }))) }))) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid input_backward(uint num)\n\n{\n}\n\n" comment (function_definition "void input_backward(uint num)\n\n{\n}" primitive_type (function_declarator "input_backward(uint num)" identifier (parameter_list "(uint num)" ( (parameter_declaration "uint num" type_identifier identifier) ))) (compound_statement "{\n}" { })))
(translation_unit "void __regparm3 FUN_000ab35c(uint param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  undefined4 extraout_EDX;\n  \n  iVar3 = DAT_000d1720;\n  uVar2 = *(uint *)(DAT_000d1720 + 0x14);\n  if (uVar2 <= param_1) {\n    param_1 = uVar2;\n  }\n  if (param_1 != 0) {\n    *(uint *)(DAT_000d1720 + 0x14) = uVar2 - param_1;\n    uVar2 = *(uint *)(iVar3 + 8);\n    if (uVar2 < param_1) {\n      iVar1 = (~uVar2 + param_1) / *(uint *)(iVar3 + 4) + 1;\n      *(uint *)(iVar3 + 8) =\n           ((*(int *)(iVar3 + 4) * *(int *)(iVar3 + 0xc) + uVar2) - param_1) % *(uint *)(iVar3 + 4);\n      *(int *)(iVar3 + 0xc) = *(int *)(iVar3 + 0xc) - iVar1;\n      __printf_chk(1,&DAT_000cdb19,iVar1,param_1);\n      if (*(int *)(iVar3 + 8) != 0) {\n        __printf_chk(1,&DAT_000cdb20,*(int *)(iVar3 + 8),extraout_EDX);\n        return;\n      }\n    }\n    else {\n      *(uint *)(iVar3 + 8) = uVar2 - param_1;\n      if (param_1 < 5) {\n        do {\n          FUN_00019f93();\n          if (param_1 == 1) {\n            return;\n          }\n          FUN_00019f93();\n          param_1 = param_1 - 2;\n        } while (param_1 != 0);\n      }\n      else {\n        __printf_chk(1,&DAT_000cdb13,param_1,iVar3);\n      }\n    }\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_000ab35c(uint param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  undefined4 extraout_EDX;\n  \n  iVar3 = DAT_000d1720;\n  uVar2 = *(uint *)(DAT_000d1720 + 0x14);\n  if (uVar2 <= param_1) {\n    param_1 = uVar2;\n  }\n  if (param_1 != 0) {\n    *(uint *)(DAT_000d1720 + 0x14) = uVar2 - param_1;\n    uVar2 = *(uint *)(iVar3 + 8);\n    if (uVar2 < param_1) {\n      iVar1 = (~uVar2 + param_1) / *(uint *)(iVar3 + 4) + 1;\n      *(uint *)(iVar3 + 8) =\n           ((*(int *)(iVar3 + 4) * *(int *)(iVar3 + 0xc) + uVar2) - param_1) % *(uint *)(iVar3 + 4);\n      *(int *)(iVar3 + 0xc) = *(int *)(iVar3 + 0xc) - iVar1;\n      __printf_chk(1,&DAT_000cdb19,iVar1,param_1);\n      if (*(int *)(iVar3 + 8) != 0) {\n        __printf_chk(1,&DAT_000cdb20,*(int *)(iVar3 + 8),extraout_EDX);\n        return;\n      }\n    }\n    else {\n      *(uint *)(iVar3 + 8) = uVar2 - param_1;\n      if (param_1 < 5) {\n        do {\n          FUN_00019f93();\n          if (param_1 == 1) {\n            return;\n          }\n          FUN_00019f93();\n          param_1 = param_1 - 2;\n        } while (param_1 != 0);\n      }\n      else {\n        __printf_chk(1,&DAT_000cdb13,param_1,iVar3);\n      }\n    }\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000ab35c(uint param_1)" identifier (parameter_list "(uint param_1)" ( (parameter_declaration "uint param_1" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  undefined4 extraout_EDX;\n  \n  iVar3 = DAT_000d1720;\n  uVar2 = *(uint *)(DAT_000d1720 + 0x14);\n  if (uVar2 <= param_1) {\n    param_1 = uVar2;\n  }\n  if (param_1 != 0) {\n    *(uint *)(DAT_000d1720 + 0x14) = uVar2 - param_1;\n    uVar2 = *(uint *)(iVar3 + 8);\n    if (uVar2 < param_1) {\n      iVar1 = (~uVar2 + param_1) / *(uint *)(iVar3 + 4) + 1;\n      *(uint *)(iVar3 + 8) =\n           ((*(int *)(iVar3 + 4) * *(int *)(iVar3 + 0xc) + uVar2) - param_1) % *(uint *)(iVar3 + 4);\n      *(int *)(iVar3 + 0xc) = *(int *)(iVar3 + 0xc) - iVar1;\n      __printf_chk(1,&DAT_000cdb19,iVar1,param_1);\n      if (*(int *)(iVar3 + 8) != 0) {\n        __printf_chk(1,&DAT_000cdb20,*(int *)(iVar3 + 8),extraout_EDX);\n        return;\n      }\n    }\n    else {\n      *(uint *)(iVar3 + 8) = uVar2 - param_1;\n      if (param_1 < 5) {\n        do {\n          FUN_00019f93();\n          if (param_1 == 1) {\n            return;\n          }\n          FUN_00019f93();\n          param_1 = param_1 - 2;\n        } while (param_1 != 0);\n      }\n      else {\n        __printf_chk(1,&DAT_000cdb13,param_1,iVar3);\n      }\n    }\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 extraout_EDX;" type_identifier identifier ;) (expression_statement "iVar3 = DAT_000d1720;" (assignment_expression "iVar3 = DAT_000d1720" identifier = identifier) ;) (expression_statement "uVar2 = *(uint *)(DAT_000d1720 + 0x14);" (assignment_expression "uVar2 = *(uint *)(DAT_000d1720 + 0x14)" identifier = (pointer_expression "*(uint *)(DAT_000d1720 + 0x14)" * (cast_expression "(uint *)(DAT_000d1720 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_000d1720 + 0x14)" ( (binary_expression "DAT_000d1720 + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (uVar2 <= param_1) {\n    param_1 = uVar2;\n  }" if (parenthesized_expression "(uVar2 <= param_1)" ( (binary_expression "uVar2 <= param_1" identifier <= identifier) )) (compound_statement "{\n    param_1 = uVar2;\n  }" { (expression_statement "param_1 = uVar2;" (assignment_expression "param_1 = uVar2" identifier = identifier) ;) })) (if_statement "if (param_1 != 0) {\n    *(uint *)(DAT_000d1720 + 0x14) = uVar2 - param_1;\n    uVar2 = *(uint *)(iVar3 + 8);\n    if (uVar2 < param_1) {\n      iVar1 = (~uVar2 + param_1) / *(uint *)(iVar3 + 4) + 1;\n      *(uint *)(iVar3 + 8) =\n           ((*(int *)(iVar3 + 4) * *(int *)(iVar3 + 0xc) + uVar2) - param_1) % *(uint *)(iVar3 + 4);\n      *(int *)(iVar3 + 0xc) = *(int *)(iVar3 + 0xc) - iVar1;\n      __printf_chk(1,&DAT_000cdb19,iVar1,param_1);\n      if (*(int *)(iVar3 + 8) != 0) {\n        __printf_chk(1,&DAT_000cdb20,*(int *)(iVar3 + 8),extraout_EDX);\n        return;\n      }\n    }\n    else {\n      *(uint *)(iVar3 + 8) = uVar2 - param_1;\n      if (param_1 < 5) {\n        do {\n          FUN_00019f93();\n          if (param_1 == 1) {\n            return;\n          }\n          FUN_00019f93();\n          param_1 = param_1 - 2;\n        } while (param_1 != 0);\n      }\n      else {\n        __printf_chk(1,&DAT_000cdb13,param_1,iVar3);\n      }\n    }\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    *(uint *)(DAT_000d1720 + 0x14) = uVar2 - param_1;\n    uVar2 = *(uint *)(iVar3 + 8);\n    if (uVar2 < param_1) {\n      iVar1 = (~uVar2 + param_1) / *(uint *)(iVar3 + 4) + 1;\n      *(uint *)(iVar3 + 8) =\n           ((*(int *)(iVar3 + 4) * *(int *)(iVar3 + 0xc) + uVar2) - param_1) % *(uint *)(iVar3 + 4);\n      *(int *)(iVar3 + 0xc) = *(int *)(iVar3 + 0xc) - iVar1;\n      __printf_chk(1,&DAT_000cdb19,iVar1,param_1);\n      if (*(int *)(iVar3 + 8) != 0) {\n        __printf_chk(1,&DAT_000cdb20,*(int *)(iVar3 + 8),extraout_EDX);\n        return;\n      }\n    }\n    else {\n      *(uint *)(iVar3 + 8) = uVar2 - param_1;\n      if (param_1 < 5) {\n        do {\n          FUN_00019f93();\n          if (param_1 == 1) {\n            return;\n          }\n          FUN_00019f93();\n          param_1 = param_1 - 2;\n        } while (param_1 != 0);\n      }\n      else {\n        __printf_chk(1,&DAT_000cdb13,param_1,iVar3);\n      }\n    }\n  }" { (expression_statement "*(uint *)(DAT_000d1720 + 0x14) = uVar2 - param_1;" (assignment_expression "*(uint *)(DAT_000d1720 + 0x14) = uVar2 - param_1" (pointer_expression "*(uint *)(DAT_000d1720 + 0x14)" * (cast_expression "(uint *)(DAT_000d1720 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(DAT_000d1720 + 0x14)" ( (binary_expression "DAT_000d1720 + 0x14" identifier + number_literal) )))) = (binary_expression "uVar2 - param_1" identifier - identifier)) ;) (expression_statement "uVar2 = *(uint *)(iVar3 + 8);" (assignment_expression "uVar2 = *(uint *)(iVar3 + 8)" identifier = (pointer_expression "*(uint *)(iVar3 + 8)" * (cast_expression "(uint *)(iVar3 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) ))))) ;) (if_statement "if (uVar2 < param_1) {\n      iVar1 = (~uVar2 + param_1) / *(uint *)(iVar3 + 4) + 1;\n      *(uint *)(iVar3 + 8) =\n           ((*(int *)(iVar3 + 4) * *(int *)(iVar3 + 0xc) + uVar2) - param_1) % *(uint *)(iVar3 + 4);\n      *(int *)(iVar3 + 0xc) = *(int *)(iVar3 + 0xc) - iVar1;\n      __printf_chk(1,&DAT_000cdb19,iVar1,param_1);\n      if (*(int *)(iVar3 + 8) != 0) {\n        __printf_chk(1,&DAT_000cdb20,*(int *)(iVar3 + 8),extraout_EDX);\n        return;\n      }\n    }\n    else {\n      *(uint *)(iVar3 + 8) = uVar2 - param_1;\n      if (param_1 < 5) {\n        do {\n          FUN_00019f93();\n          if (param_1 == 1) {\n            return;\n          }\n          FUN_00019f93();\n          param_1 = param_1 - 2;\n        } while (param_1 != 0);\n      }\n      else {\n        __printf_chk(1,&DAT_000cdb13,param_1,iVar3);\n      }\n    }" if (parenthesized_expression "(uVar2 < param_1)" ( (binary_expression "uVar2 < param_1" identifier < identifier) )) (compound_statement "{\n      iVar1 = (~uVar2 + param_1) / *(uint *)(iVar3 + 4) + 1;\n      *(uint *)(iVar3 + 8) =\n           ((*(int *)(iVar3 + 4) * *(int *)(iVar3 + 0xc) + uVar2) - param_1) % *(uint *)(iVar3 + 4);\n      *(int *)(iVar3 + 0xc) = *(int *)(iVar3 + 0xc) - iVar1;\n      __printf_chk(1,&DAT_000cdb19,iVar1,param_1);\n      if (*(int *)(iVar3 + 8) != 0) {\n        __printf_chk(1,&DAT_000cdb20,*(int *)(iVar3 + 8),extraout_EDX);\n        return;\n      }\n    }" { (expression_statement "iVar1 = (~uVar2 + param_1) / *(uint *)(iVar3 + 4) + 1;" (assignment_expression "iVar1 = (~uVar2 + param_1) / *(uint *)(iVar3 + 4) + 1" identifier = (binary_expression "(~uVar2 + param_1) / *(uint *)(iVar3 + 4) + 1" (binary_expression "(~uVar2 + param_1) / *(uint *)(iVar3 + 4)" (parenthesized_expression "(~uVar2 + param_1)" ( (binary_expression "~uVar2 + param_1" (unary_expression "~uVar2" ~ identifier) + identifier) )) / (pointer_expression "*(uint *)(iVar3 + 4)" * (cast_expression "(uint *)(iVar3 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 4)" ( (binary_expression "iVar3 + 4" identifier + number_literal) ))))) + number_literal)) ;) (expression_statement "*(uint *)(iVar3 + 8) =\n           ((*(int *)(iVar3 + 4) * *(int *)(iVar3 + 0xc) + uVar2) - param_1) % *(uint *)(iVar3 + 4);" (assignment_expression "*(uint *)(iVar3 + 8) =\n           ((*(int *)(iVar3 + 4) * *(int *)(iVar3 + 0xc) + uVar2) - param_1) % *(uint *)(iVar3 + 4)" (pointer_expression "*(uint *)(iVar3 + 8)" * (cast_expression "(uint *)(iVar3 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) )))) = (binary_expression "((*(int *)(iVar3 + 4) * *(int *)(iVar3 + 0xc) + uVar2) - param_1) % *(uint *)(iVar3 + 4)" (parenthesized_expression "((*(int *)(iVar3 + 4) * *(int *)(iVar3 + 0xc) + uVar2) - param_1)" ( (binary_expression "(*(int *)(iVar3 + 4) * *(int *)(iVar3 + 0xc) + uVar2) - param_1" (parenthesized_expression "(*(int *)(iVar3 + 4) * *(int *)(iVar3 + 0xc) + uVar2)" ( (binary_expression "*(int *)(iVar3 + 4) * *(int *)(iVar3 + 0xc) + uVar2" (binary_expression "*(int *)(iVar3 + 4) * *(int *)(iVar3 + 0xc)" (pointer_expression "*(int *)(iVar3 + 4)" * (cast_expression "(int *)(iVar3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 4)" ( (binary_expression "iVar3 + 4" identifier + number_literal) )))) * (pointer_expression "*(int *)(iVar3 + 0xc)" * (cast_expression "(int *)(iVar3 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) ))))) + identifier) )) - identifier) )) % (pointer_expression "*(uint *)(iVar3 + 4)" * (cast_expression "(uint *)(iVar3 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 4)" ( (binary_expression "iVar3 + 4" identifier + number_literal) )))))) ;) (expression_statement "*(int *)(iVar3 + 0xc) = *(int *)(iVar3 + 0xc) - iVar1;" (assignment_expression "*(int *)(iVar3 + 0xc) = *(int *)(iVar3 + 0xc) - iVar1" (pointer_expression "*(int *)(iVar3 + 0xc)" * (cast_expression "(int *)(iVar3 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar3 + 0xc) - iVar1" (pointer_expression "*(int *)(iVar3 + 0xc)" * (cast_expression "(int *)(iVar3 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0xc)" ( (binary_expression "iVar3 + 0xc" identifier + number_literal) )))) - identifier)) ;) (expression_statement "__printf_chk(1,&DAT_000cdb19,iVar1,param_1);" (call_expression "__printf_chk(1,&DAT_000cdb19,iVar1,param_1)" identifier (argument_list "(1,&DAT_000cdb19,iVar1,param_1)" ( number_literal , (pointer_expression "&DAT_000cdb19" & identifier) , identifier , identifier ))) ;) (if_statement "if (*(int *)(iVar3 + 8) != 0) {\n        __printf_chk(1,&DAT_000cdb20,*(int *)(iVar3 + 8),extraout_EDX);\n        return;\n      }" if (parenthesized_expression "(*(int *)(iVar3 + 8) != 0)" ( (binary_expression "*(int *)(iVar3 + 8) != 0" (pointer_expression "*(int *)(iVar3 + 8)" * (cast_expression "(int *)(iVar3 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n        __printf_chk(1,&DAT_000cdb20,*(int *)(iVar3 + 8),extraout_EDX);\n        return;\n      }" { (expression_statement "__printf_chk(1,&DAT_000cdb20,*(int *)(iVar3 + 8),extraout_EDX);" (call_expression "__printf_chk(1,&DAT_000cdb20,*(int *)(iVar3 + 8),extraout_EDX)" identifier (argument_list "(1,&DAT_000cdb20,*(int *)(iVar3 + 8),extraout_EDX)" ( number_literal , (pointer_expression "&DAT_000cdb20" & identifier) , (pointer_expression "*(int *)(iVar3 + 8)" * (cast_expression "(int *)(iVar3 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) )))) , identifier ))) ;) (return_statement "return;" return ;) })) }) (else_clause "else {\n      *(uint *)(iVar3 + 8) = uVar2 - param_1;\n      if (param_1 < 5) {\n        do {\n          FUN_00019f93();\n          if (param_1 == 1) {\n            return;\n          }\n          FUN_00019f93();\n          param_1 = param_1 - 2;\n        } while (param_1 != 0);\n      }\n      else {\n        __printf_chk(1,&DAT_000cdb13,param_1,iVar3);\n      }\n    }" else (compound_statement "{\n      *(uint *)(iVar3 + 8) = uVar2 - param_1;\n      if (param_1 < 5) {\n        do {\n          FUN_00019f93();\n          if (param_1 == 1) {\n            return;\n          }\n          FUN_00019f93();\n          param_1 = param_1 - 2;\n        } while (param_1 != 0);\n      }\n      else {\n        __printf_chk(1,&DAT_000cdb13,param_1,iVar3);\n      }\n    }" { (expression_statement "*(uint *)(iVar3 + 8) = uVar2 - param_1;" (assignment_expression "*(uint *)(iVar3 + 8) = uVar2 - param_1" (pointer_expression "*(uint *)(iVar3 + 8)" * (cast_expression "(uint *)(iVar3 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) )))) = (binary_expression "uVar2 - param_1" identifier - identifier)) ;) (if_statement "if (param_1 < 5) {\n        do {\n          FUN_00019f93();\n          if (param_1 == 1) {\n            return;\n          }\n          FUN_00019f93();\n          param_1 = param_1 - 2;\n        } while (param_1 != 0);\n      }\n      else {\n        __printf_chk(1,&DAT_000cdb13,param_1,iVar3);\n      }" if (parenthesized_expression "(param_1 < 5)" ( (binary_expression "param_1 < 5" identifier < number_literal) )) (compound_statement "{\n        do {\n          FUN_00019f93();\n          if (param_1 == 1) {\n            return;\n          }\n          FUN_00019f93();\n          param_1 = param_1 - 2;\n        } while (param_1 != 0);\n      }" { (do_statement "do {\n          FUN_00019f93();\n          if (param_1 == 1) {\n            return;\n          }\n          FUN_00019f93();\n          param_1 = param_1 - 2;\n        } while (param_1 != 0);" do (compound_statement "{\n          FUN_00019f93();\n          if (param_1 == 1) {\n            return;\n          }\n          FUN_00019f93();\n          param_1 = param_1 - 2;\n        }" { (expression_statement "FUN_00019f93();" (call_expression "FUN_00019f93()" identifier (argument_list "()" ( ))) ;) (if_statement "if (param_1 == 1) {\n            return;\n          }" if (parenthesized_expression "(param_1 == 1)" ( (binary_expression "param_1 == 1" identifier == number_literal) )) (compound_statement "{\n            return;\n          }" { (return_statement "return;" return ;) })) (expression_statement "FUN_00019f93();" (call_expression "FUN_00019f93()" identifier (argument_list "()" ( ))) ;) (expression_statement "param_1 = param_1 - 2;" (assignment_expression "param_1 = param_1 - 2" identifier = (binary_expression "param_1 - 2" identifier - number_literal)) ;) }) while (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) ;) }) (else_clause "else {\n        __printf_chk(1,&DAT_000cdb13,param_1,iVar3);\n      }" else (compound_statement "{\n        __printf_chk(1,&DAT_000cdb13,param_1,iVar3);\n      }" { (expression_statement "__printf_chk(1,&DAT_000cdb13,param_1,iVar3);" (call_expression "__printf_chk(1,&DAT_000cdb13,param_1,iVar3)" identifier (argument_list "(1,&DAT_000cdb13,param_1,iVar3)" ( number_literal , (pointer_expression "&DAT_000cdb13" & identifier) , identifier , identifier ))) ;) }))) }))) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (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 <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT - IDENT)) ;) (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 < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (unary_expression ~ IDENT) + IDENT) )) / (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + IDENT) )) - IDENT) )) % (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , (pointer_expression & IDENT) , IDENT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , (pointer_expression & IDENT) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT ))) ;) (return_statement return ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression IDENT - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , (pointer_expression & IDENT) , IDENT , IDENT ))) ;) }))) }))) })) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_000ab35c(uint param_1)\n\n{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  undefined4 extraout_EDX;\n  \n  iVar3 = DAT_000d1720;\n  uVar2 = *(uint *)(DAT_000d1720 + 0x14);\n  if (uVar2 <= param_1) {\n    param_1 = uVar2;\n  }\n  if (param_1 != 0) {\n    *(uint *)(DAT_000d1720 + 0x14) = uVar2 - param_1;\n    uVar2 = *(uint *)(iVar3 + 8);\n    if (uVar2 < param_1) {\n      iVar1 = (~uVar2 + param_1) / *(uint *)(iVar3 + 4) + 1;\n      *(uint *)(iVar3 + 8) =\n           ((*(int *)(iVar3 + 4) * *(int *)(iVar3 + 0xc) + uVar2) - param_1) % *(uint *)(iVar3 + 4);\n      *(int *)(iVar3 + 0xc) = *(int *)(iVar3 + 0xc) - iVar1;\n      __printf_chk(1,&DAT_000cdb19,iVar1,param_1);\n      if (*(int *)(iVar3 + 8) != 0) {\n        __printf_chk(1,&DAT_000cdb20,*(int *)(iVar3 + 8),extraout_EDX);\n        return;\n      }\n    }\n    else {\n      *(uint *)(iVar3 + 8) = uVar2 - param_1;\n      if (param_1 < 5) {\n        do {\n          FUN_00019f93();\n          if (param_1 == 1) {\n            return;\n          }\n          FUN_00019f93();\n          param_1 = param_1 - 2;\n        } while (param_1 != 0);\n      }\n      else {\n        __printf_chk(1,&DAT_000cdb13,param_1,iVar3);\n      }\n    }\n  }\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000ab35c(uint param_1)" (identifier "FUN_000ab35c") (parameter_list "(uint param_1)" (( "(") (parameter_declaration "uint param_1" (type_identifier "uint") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  int iVar3;\n  undefined4 extraout_EDX;\n  \n  iVar3 = DAT_000d1720;\n  uVar2 = *(uint *)(DAT_000d1720 + 0x14);\n  if (uVar2 <= param_1) {\n    param_1 = uVar2;\n  }\n  if (param_1 != 0) {\n    *(uint *)(DAT_000d1720 + 0x14) = uVar2 - param_1;\n    uVar2 = *(uint *)(iVar3 + 8);\n    if (uVar2 < param_1) {\n      iVar1 = (~uVar2 + param_1) / *(uint *)(iVar3 + 4) + 1;\n      *(uint *)(iVar3 + 8) =\n           ((*(int *)(iVar3 + 4) * *(int *)(iVar3 + 0xc) + uVar2) - param_1) % *(uint *)(iVar3 + 4);\n      *(int *)(iVar3 + 0xc) = *(int *)(iVar3 + 0xc) - iVar1;\n      __printf_chk(1,&DAT_000cdb19,iVar1,param_1);\n      if (*(int *)(iVar3 + 8) != 0) {\n        __printf_chk(1,&DAT_000cdb20,*(int *)(iVar3 + 8),extraout_EDX);\n        return;\n      }\n    }\n    else {\n      *(uint *)(iVar3 + 8) = uVar2 - param_1;\n      if (param_1 < 5) {\n        do {\n          FUN_00019f93();\n          if (param_1 == 1) {\n            return;\n          }\n          FUN_00019f93();\n          param_1 = param_1 - 2;\n        } while (param_1 != 0);\n      }\n      else {\n        __printf_chk(1,&DAT_000cdb13,param_1,iVar3);\n      }\n    }\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 extraout_EDX;" (type_identifier "undefined4") (identifier "extraout_EDX") (; ";")) (expression_statement "iVar3 = DAT_000d1720;" (assignment_expression "iVar3 = DAT_000d1720" (identifier "iVar3") (= "=") (identifier "DAT_000d1720")) (; ";")) (expression_statement "uVar2 = *(uint *)(DAT_000d1720 + 0x14);" (assignment_expression "uVar2 = *(uint *)(DAT_000d1720 + 0x14)" (identifier "uVar2") (= "=") (pointer_expression "*(uint *)(DAT_000d1720 + 0x14)" (* "*") (cast_expression "(uint *)(DAT_000d1720 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_000d1720 + 0x14)" (( "(") (binary_expression "DAT_000d1720 + 0x14" (identifier "DAT_000d1720") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (uVar2 <= param_1) {\n    param_1 = uVar2;\n  }" (if "if") (parenthesized_expression "(uVar2 <= param_1)" (( "(") (binary_expression "uVar2 <= param_1" (identifier "uVar2") (<= "<=") (identifier "param_1")) () ")")) (compound_statement "{\n    param_1 = uVar2;\n  }" ({ "{") (expression_statement "param_1 = uVar2;" (assignment_expression "param_1 = uVar2" (identifier "param_1") (= "=") (identifier "uVar2")) (; ";")) (} "}"))) (if_statement "if (param_1 != 0) {\n    *(uint *)(DAT_000d1720 + 0x14) = uVar2 - param_1;\n    uVar2 = *(uint *)(iVar3 + 8);\n    if (uVar2 < param_1) {\n      iVar1 = (~uVar2 + param_1) / *(uint *)(iVar3 + 4) + 1;\n      *(uint *)(iVar3 + 8) =\n           ((*(int *)(iVar3 + 4) * *(int *)(iVar3 + 0xc) + uVar2) - param_1) % *(uint *)(iVar3 + 4);\n      *(int *)(iVar3 + 0xc) = *(int *)(iVar3 + 0xc) - iVar1;\n      __printf_chk(1,&DAT_000cdb19,iVar1,param_1);\n      if (*(int *)(iVar3 + 8) != 0) {\n        __printf_chk(1,&DAT_000cdb20,*(int *)(iVar3 + 8),extraout_EDX);\n        return;\n      }\n    }\n    else {\n      *(uint *)(iVar3 + 8) = uVar2 - param_1;\n      if (param_1 < 5) {\n        do {\n          FUN_00019f93();\n          if (param_1 == 1) {\n            return;\n          }\n          FUN_00019f93();\n          param_1 = param_1 - 2;\n        } while (param_1 != 0);\n      }\n      else {\n        __printf_chk(1,&DAT_000cdb13,param_1,iVar3);\n      }\n    }\n  }" (if "if") (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    *(uint *)(DAT_000d1720 + 0x14) = uVar2 - param_1;\n    uVar2 = *(uint *)(iVar3 + 8);\n    if (uVar2 < param_1) {\n      iVar1 = (~uVar2 + param_1) / *(uint *)(iVar3 + 4) + 1;\n      *(uint *)(iVar3 + 8) =\n           ((*(int *)(iVar3 + 4) * *(int *)(iVar3 + 0xc) + uVar2) - param_1) % *(uint *)(iVar3 + 4);\n      *(int *)(iVar3 + 0xc) = *(int *)(iVar3 + 0xc) - iVar1;\n      __printf_chk(1,&DAT_000cdb19,iVar1,param_1);\n      if (*(int *)(iVar3 + 8) != 0) {\n        __printf_chk(1,&DAT_000cdb20,*(int *)(iVar3 + 8),extraout_EDX);\n        return;\n      }\n    }\n    else {\n      *(uint *)(iVar3 + 8) = uVar2 - param_1;\n      if (param_1 < 5) {\n        do {\n          FUN_00019f93();\n          if (param_1 == 1) {\n            return;\n          }\n          FUN_00019f93();\n          param_1 = param_1 - 2;\n        } while (param_1 != 0);\n      }\n      else {\n        __printf_chk(1,&DAT_000cdb13,param_1,iVar3);\n      }\n    }\n  }" ({ "{") (expression_statement "*(uint *)(DAT_000d1720 + 0x14) = uVar2 - param_1;" (assignment_expression "*(uint *)(DAT_000d1720 + 0x14) = uVar2 - param_1" (pointer_expression "*(uint *)(DAT_000d1720 + 0x14)" (* "*") (cast_expression "(uint *)(DAT_000d1720 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(DAT_000d1720 + 0x14)" (( "(") (binary_expression "DAT_000d1720 + 0x14" (identifier "DAT_000d1720") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (binary_expression "uVar2 - param_1" (identifier "uVar2") (- "-") (identifier "param_1"))) (; ";")) (expression_statement "uVar2 = *(uint *)(iVar3 + 8);" (assignment_expression "uVar2 = *(uint *)(iVar3 + 8)" (identifier "uVar2") (= "=") (pointer_expression "*(uint *)(iVar3 + 8)" (* "*") (cast_expression "(uint *)(iVar3 + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 8)" (( "(") (binary_expression "iVar3 + 8" (identifier "iVar3") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (if_statement "if (uVar2 < param_1) {\n      iVar1 = (~uVar2 + param_1) / *(uint *)(iVar3 + 4) + 1;\n      *(uint *)(iVar3 + 8) =\n           ((*(int *)(iVar3 + 4) * *(int *)(iVar3 + 0xc) + uVar2) - param_1) % *(uint *)(iVar3 + 4);\n      *(int *)(iVar3 + 0xc) = *(int *)(iVar3 + 0xc) - iVar1;\n      __printf_chk(1,&DAT_000cdb19,iVar1,param_1);\n      if (*(int *)(iVar3 + 8) != 0) {\n        __printf_chk(1,&DAT_000cdb20,*(int *)(iVar3 + 8),extraout_EDX);\n        return;\n      }\n    }\n    else {\n      *(uint *)(iVar3 + 8) = uVar2 - param_1;\n      if (param_1 < 5) {\n        do {\n          FUN_00019f93();\n          if (param_1 == 1) {\n            return;\n          }\n          FUN_00019f93();\n          param_1 = param_1 - 2;\n        } while (param_1 != 0);\n      }\n      else {\n        __printf_chk(1,&DAT_000cdb13,param_1,iVar3);\n      }\n    }" (if "if") (parenthesized_expression "(uVar2 < param_1)" (( "(") (binary_expression "uVar2 < param_1" (identifier "uVar2") (< "<") (identifier "param_1")) () ")")) (compound_statement "{\n      iVar1 = (~uVar2 + param_1) / *(uint *)(iVar3 + 4) + 1;\n      *(uint *)(iVar3 + 8) =\n           ((*(int *)(iVar3 + 4) * *(int *)(iVar3 + 0xc) + uVar2) - param_1) % *(uint *)(iVar3 + 4);\n      *(int *)(iVar3 + 0xc) = *(int *)(iVar3 + 0xc) - iVar1;\n      __printf_chk(1,&DAT_000cdb19,iVar1,param_1);\n      if (*(int *)(iVar3 + 8) != 0) {\n        __printf_chk(1,&DAT_000cdb20,*(int *)(iVar3 + 8),extraout_EDX);\n        return;\n      }\n    }" ({ "{") (expression_statement "iVar1 = (~uVar2 + param_1) / *(uint *)(iVar3 + 4) + 1;" (assignment_expression "iVar1 = (~uVar2 + param_1) / *(uint *)(iVar3 + 4) + 1" (identifier "iVar1") (= "=") (binary_expression "(~uVar2 + param_1) / *(uint *)(iVar3 + 4) + 1" (binary_expression "(~uVar2 + param_1) / *(uint *)(iVar3 + 4)" (parenthesized_expression "(~uVar2 + param_1)" (( "(") (binary_expression "~uVar2 + param_1" (unary_expression "~uVar2" (~ "~") (identifier "uVar2")) (+ "+") (identifier "param_1")) () ")")) (/ "/") (pointer_expression "*(uint *)(iVar3 + 4)" (* "*") (cast_expression "(uint *)(iVar3 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 4)" (( "(") (binary_expression "iVar3 + 4" (identifier "iVar3") (+ "+") (number_literal "4")) () ")"))))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(uint *)(iVar3 + 8) =\n           ((*(int *)(iVar3 + 4) * *(int *)(iVar3 + 0xc) + uVar2) - param_1) % *(uint *)(iVar3 + 4);" (assignment_expression "*(uint *)(iVar3 + 8) =\n           ((*(int *)(iVar3 + 4) * *(int *)(iVar3 + 0xc) + uVar2) - param_1) % *(uint *)(iVar3 + 4)" (pointer_expression "*(uint *)(iVar3 + 8)" (* "*") (cast_expression "(uint *)(iVar3 + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 8)" (( "(") (binary_expression "iVar3 + 8" (identifier "iVar3") (+ "+") (number_literal "8")) () ")")))) (= "=") (binary_expression "((*(int *)(iVar3 + 4) * *(int *)(iVar3 + 0xc) + uVar2) - param_1) % *(uint *)(iVar3 + 4)" (parenthesized_expression "((*(int *)(iVar3 + 4) * *(int *)(iVar3 + 0xc) + uVar2) - param_1)" (( "(") (binary_expression "(*(int *)(iVar3 + 4) * *(int *)(iVar3 + 0xc) + uVar2) - param_1" (parenthesized_expression "(*(int *)(iVar3 + 4) * *(int *)(iVar3 + 0xc) + uVar2)" (( "(") (binary_expression "*(int *)(iVar3 + 4) * *(int *)(iVar3 + 0xc) + uVar2" (binary_expression "*(int *)(iVar3 + 4) * *(int *)(iVar3 + 0xc)" (pointer_expression "*(int *)(iVar3 + 4)" (* "*") (cast_expression "(int *)(iVar3 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 4)" (( "(") (binary_expression "iVar3 + 4" (identifier "iVar3") (+ "+") (number_literal "4")) () ")")))) (* "*") (pointer_expression "*(int *)(iVar3 + 0xc)" (* "*") (cast_expression "(int *)(iVar3 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0xc)" (( "(") (binary_expression "iVar3 + 0xc" (identifier "iVar3") (+ "+") (number_literal "0xc")) () ")"))))) (+ "+") (identifier "uVar2")) () ")")) (- "-") (identifier "param_1")) () ")")) (% "%") (pointer_expression "*(uint *)(iVar3 + 4)" (* "*") (cast_expression "(uint *)(iVar3 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 4)" (( "(") (binary_expression "iVar3 + 4" (identifier "iVar3") (+ "+") (number_literal "4")) () ")")))))) (; ";")) (expression_statement "*(int *)(iVar3 + 0xc) = *(int *)(iVar3 + 0xc) - iVar1;" (assignment_expression "*(int *)(iVar3 + 0xc) = *(int *)(iVar3 + 0xc) - iVar1" (pointer_expression "*(int *)(iVar3 + 0xc)" (* "*") (cast_expression "(int *)(iVar3 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0xc)" (( "(") (binary_expression "iVar3 + 0xc" (identifier "iVar3") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (binary_expression "*(int *)(iVar3 + 0xc) - iVar1" (pointer_expression "*(int *)(iVar3 + 0xc)" (* "*") (cast_expression "(int *)(iVar3 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0xc)" (( "(") (binary_expression "iVar3 + 0xc" (identifier "iVar3") (+ "+") (number_literal "0xc")) () ")")))) (- "-") (identifier "iVar1"))) (; ";")) (expression_statement "__printf_chk(1,&DAT_000cdb19,iVar1,param_1);" (call_expression "__printf_chk(1,&DAT_000cdb19,iVar1,param_1)" (identifier "__printf_chk") (argument_list "(1,&DAT_000cdb19,iVar1,param_1)" (( "(") (number_literal "1") (, ",") (pointer_expression "&DAT_000cdb19" (& "&") (identifier "DAT_000cdb19")) (, ",") (identifier "iVar1") (, ",") (identifier "param_1") () ")"))) (; ";")) (if_statement "if (*(int *)(iVar3 + 8) != 0) {\n        __printf_chk(1,&DAT_000cdb20,*(int *)(iVar3 + 8),extraout_EDX);\n        return;\n      }" (if "if") (parenthesized_expression "(*(int *)(iVar3 + 8) != 0)" (( "(") (binary_expression "*(int *)(iVar3 + 8) != 0" (pointer_expression "*(int *)(iVar3 + 8)" (* "*") (cast_expression "(int *)(iVar3 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 8)" (( "(") (binary_expression "iVar3 + 8" (identifier "iVar3") (+ "+") (number_literal "8")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        __printf_chk(1,&DAT_000cdb20,*(int *)(iVar3 + 8),extraout_EDX);\n        return;\n      }" ({ "{") (expression_statement "__printf_chk(1,&DAT_000cdb20,*(int *)(iVar3 + 8),extraout_EDX);" (call_expression "__printf_chk(1,&DAT_000cdb20,*(int *)(iVar3 + 8),extraout_EDX)" (identifier "__printf_chk") (argument_list "(1,&DAT_000cdb20,*(int *)(iVar3 + 8),extraout_EDX)" (( "(") (number_literal "1") (, ",") (pointer_expression "&DAT_000cdb20" (& "&") (identifier "DAT_000cdb20")) (, ",") (pointer_expression "*(int *)(iVar3 + 8)" (* "*") (cast_expression "(int *)(iVar3 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 8)" (( "(") (binary_expression "iVar3 + 8" (identifier "iVar3") (+ "+") (number_literal "8")) () ")")))) (, ",") (identifier "extraout_EDX") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n      *(uint *)(iVar3 + 8) = uVar2 - param_1;\n      if (param_1 < 5) {\n        do {\n          FUN_00019f93();\n          if (param_1 == 1) {\n            return;\n          }\n          FUN_00019f93();\n          param_1 = param_1 - 2;\n        } while (param_1 != 0);\n      }\n      else {\n        __printf_chk(1,&DAT_000cdb13,param_1,iVar3);\n      }\n    }" (else "else") (compound_statement "{\n      *(uint *)(iVar3 + 8) = uVar2 - param_1;\n      if (param_1 < 5) {\n        do {\n          FUN_00019f93();\n          if (param_1 == 1) {\n            return;\n          }\n          FUN_00019f93();\n          param_1 = param_1 - 2;\n        } while (param_1 != 0);\n      }\n      else {\n        __printf_chk(1,&DAT_000cdb13,param_1,iVar3);\n      }\n    }" ({ "{") (expression_statement "*(uint *)(iVar3 + 8) = uVar2 - param_1;" (assignment_expression "*(uint *)(iVar3 + 8) = uVar2 - param_1" (pointer_expression "*(uint *)(iVar3 + 8)" (* "*") (cast_expression "(uint *)(iVar3 + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 8)" (( "(") (binary_expression "iVar3 + 8" (identifier "iVar3") (+ "+") (number_literal "8")) () ")")))) (= "=") (binary_expression "uVar2 - param_1" (identifier "uVar2") (- "-") (identifier "param_1"))) (; ";")) (if_statement "if (param_1 < 5) {\n        do {\n          FUN_00019f93();\n          if (param_1 == 1) {\n            return;\n          }\n          FUN_00019f93();\n          param_1 = param_1 - 2;\n        } while (param_1 != 0);\n      }\n      else {\n        __printf_chk(1,&DAT_000cdb13,param_1,iVar3);\n      }" (if "if") (parenthesized_expression "(param_1 < 5)" (( "(") (binary_expression "param_1 < 5" (identifier "param_1") (< "<") (number_literal "5")) () ")")) (compound_statement "{\n        do {\n          FUN_00019f93();\n          if (param_1 == 1) {\n            return;\n          }\n          FUN_00019f93();\n          param_1 = param_1 - 2;\n        } while (param_1 != 0);\n      }" ({ "{") (do_statement "do {\n          FUN_00019f93();\n          if (param_1 == 1) {\n            return;\n          }\n          FUN_00019f93();\n          param_1 = param_1 - 2;\n        } while (param_1 != 0);" (do "do") (compound_statement "{\n          FUN_00019f93();\n          if (param_1 == 1) {\n            return;\n          }\n          FUN_00019f93();\n          param_1 = param_1 - 2;\n        }" ({ "{") (expression_statement "FUN_00019f93();" (call_expression "FUN_00019f93()" (identifier "FUN_00019f93") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (param_1 == 1) {\n            return;\n          }" (if "if") (parenthesized_expression "(param_1 == 1)" (( "(") (binary_expression "param_1 == 1" (identifier "param_1") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n            return;\n          }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_00019f93();" (call_expression "FUN_00019f93()" (identifier "FUN_00019f93") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "param_1 = param_1 - 2;" (assignment_expression "param_1 = param_1 - 2" (identifier "param_1") (= "=") (binary_expression "param_1 - 2" (identifier "param_1") (- "-") (number_literal "2"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (; ";")) (} "}")) (else_clause "else {\n        __printf_chk(1,&DAT_000cdb13,param_1,iVar3);\n      }" (else "else") (compound_statement "{\n        __printf_chk(1,&DAT_000cdb13,param_1,iVar3);\n      }" ({ "{") (expression_statement "__printf_chk(1,&DAT_000cdb13,param_1,iVar3);" (call_expression "__printf_chk(1,&DAT_000cdb13,param_1,iVar3)" (identifier "__printf_chk") (argument_list "(1,&DAT_000cdb13,param_1,iVar3)" (( "(") (number_literal "1") (, ",") (pointer_expression "&DAT_000cdb13" (& "&") (identifier "DAT_000cdb13")) (, ",") (identifier "param_1") (, ",") (identifier "iVar3") () ")"))) (; ";")) (} "}")))) (} "}")))) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(type_1 num)

{
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) 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: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) 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: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (unary_expression argument: (identifier)) right: (identifier))) 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)))))) right: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (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: (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))) right: (identifier))) 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)))))))) (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: (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: (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (pointer_expression argument: (identifier)) (identifier) (identifier)))) (if_statement condition: (parenthesized_expression (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))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (pointer_expression argument: (identifier)) (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))))) (identifier)))) (return_statement)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (do_statement body: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (pointer_expression argument: (identifier)) (identifier) (identifier)))))))))))) (return_statement))))

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

void __regparm3 MASKED(uint param_1)

{
  int iVar1;
  uint uVar2;
  int iVar3;
  undefined4 extraout_EDX;
  
  iVar3 = DAT_000d1720;
  uVar2 = *(uint *)(DAT_000d1720 + 0x14);
  if (uVar2 <= param_1) {
    param_1 = uVar2;
  }
  if (param_1 != 0) {
    *(uint *)(DAT_000d1720 + 0x14) = uVar2 - param_1;
    uVar2 = *(uint *)(iVar3 + 8);
    if (uVar2 < param_1) {
      iVar1 = (~uVar2 + param_1) / *(uint *)(iVar3 + 4) + 1;
      *(uint *)(iVar3 + 8) =
           ((*(int *)(iVar3 + 4) * *(int *)(iVar3 + 0xc) + uVar2) - param_1) % *(uint *)(iVar3 + 4);
      *(int *)(iVar3 + 0xc) = *(int *)(iVar3 + 0xc) - iVar1;
      __printf_chk(1,&DAT_000cdb19,iVar1,param_1);
      if (*(int *)(iVar3 + 8) != 0) {
        __printf_chk(1,&DAT_000cdb20,*(int *)(iVar3 + 8),extraout_EDX);
        return;
      }
    }
    else {
      *(uint *)(iVar3 + 8) = uVar2 - param_1;
      if (param_1 < 5) {
        do {
          FUN_00019f93();
          if (param_1 == 1) {
            return;
          }
          FUN_00019f93();
          param_1 = param_1 - 2;
        } while (param_1 != 0);
      }
      else {
        __printf_chk(1,&DAT_000cdb13,param_1,iVar3);
      }
    }
  }
  return;
}

