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

int progress_handler(void *pClientData)

{
  uint uVar1;
  int iVar2;
  
  uVar1 = *(int *)((int)pClientData + 0x4c) + 1;
  *(uint *)((int)pClientData + 0x4c) = uVar1;
  if ((uVar1 < *(uint *)((int)pClientData + 0x50)) || (*(uint *)((int)pClientData + 0x50) == 0)) {
    iVar2 = 0;
    if ((*(byte *)((int)pClientData + 0x54) & 1) == 0) {
      __fprintf_chk(*(undefined4 *)((int)pClientData + 0x24),1,"Progress %u\n",uVar1);
      return 0;
    }
  }
  else {
    __fprintf_chk(*(undefined4 *)((int)pClientData + 0x24),1,"Progress limit reached (%u)\n",uVar1);
    if ((*(uint *)((int)pClientData + 0x54) & 2) != 0) {
      *(undefined4 *)((int)pClientData + 0x4c) = 0;
    }
    iVar2 = 1;
    if ((*(uint *)((int)pClientData + 0x54) & 4) != 0) {
      *(undefined4 *)((int)pClientData + 0x50) = 0;
    }
  }
  return iVar2;
}



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

undefined4 FUN_0001e800(int param_1)

{
  uint uVar1;
  undefined4 uVar2;
  
  uVar1 = *(int *)(param_1 + 0x4c) + 1;
  *(uint *)(param_1 + 0x4c) = uVar1;
  if ((uVar1 < *(uint *)(param_1 + 0x50)) || (*(uint *)(param_1 + 0x50) == 0)) {
    uVar2 = 0;
    if ((*(byte *)(param_1 + 0x54) & 1) == 0) {
      __fprintf_chk(*(undefined4 *)(param_1 + 0x24),1,"Progress %u\n",uVar1);
      return 0;
    }
  }
  else {
    __fprintf_chk(*(undefined4 *)(param_1 + 0x24),1,"Progress limit reached (%u)\n",uVar1);
    if ((*(uint *)(param_1 + 0x54) & 2) != 0) {
      *(undefined4 *)(param_1 + 0x4c) = 0;
    }
    uVar2 = 1;
    if ((*(uint *)(param_1 + 0x54) & 4) != 0) {
      *(undefined4 *)(param_1 + 0x50) = 0;
    }
  }
  return uVar2;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV ESI,dword ptr [ESP + 0x10]
CALL 0x00017230
ADD EBX,0x15d61c
MOV EAX,dword ptr [ESI + 0x4c]
MOV EDX,dword ptr [ESI + 0x50]
ADD EAX,0x1
MOV dword ptr [ESI + 0x4c],EAX
CMP EAX,EDX
JC 0x0001e826
TEST EDX,EDX
JNZ 0x0001e858
XOR EDI,EDI
TEST byte ptr [ESI + 0x54],0x1
JZ 0x0001e838
MOV EAX,EDI
POP EBX
POP ESI
POP EDI
RET
PUSH EAX
LEA EAX,[EBX + 0xfff9b2ee]
PUSH EAX
PUSH 0x1
PUSH dword ptr [ESI + 0x24]
CALL 0x00015590
ADD ESP,0x10
MOV EAX,EDI
POP EBX
POP ESI
POP EDI
RET
PUSH EAX
LEA EAX,[EBX + 0xfff9b2d1]
PUSH EAX
PUSH 0x1
PUSH dword ptr [ESI + 0x24]
CALL 0x00015590
MOV EAX,dword ptr [ESI + 0x54]
ADD ESP,0x10
TEST AL,0x2
JZ 0x0001e87b
MOV dword ptr [ESI + 0x4c],0x0
MOV EDI,0x1
TEST AL,0x4
JZ 0x0001e82e
MOV dword ptr [ESI + 0x50],0x0
JMP 0x0001e82e
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_0001e800(int param_1)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  \n  uVar1 = *(int *)(param_1 + 0x4c) + 1;\n  *(uint *)(param_1 + 0x4c) = uVar1;\n  if ((uVar1 < *(uint *)(param_1 + 0x50)) || (*(uint *)(param_1 + 0x50) == 0)) {\n    uVar2 = 0;\n    if ((*(byte *)(param_1 + 0x54) & 1) == 0) {\n      __fprintf_chk(*(undefined4 *)(param_1 + 0x24),1,"Progress %u\n",uVar1);\n      return 0;\n    }\n  }\n  else {\n    __fprintf_chk(*(undefined4 *)(param_1 + 0x24),1,"Progress limit reached (%u)\n",uVar1);\n    if ((*(uint *)(param_1 + 0x54) & 2) != 0) {\n      *(undefined4 *)(param_1 + 0x4c) = 0;\n    }\n    uVar2 = 1;\n    if ((*(uint *)(param_1 + 0x54) & 4) != 0) {\n      *(undefined4 *)(param_1 + 0x50) = 0;\n    }\n  }\n  return uVar2;\n}\n\n" comment (function_definition "undefined4 FUN_0001e800(int param_1)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  \n  uVar1 = *(int *)(param_1 + 0x4c) + 1;\n  *(uint *)(param_1 + 0x4c) = uVar1;\n  if ((uVar1 < *(uint *)(param_1 + 0x50)) || (*(uint *)(param_1 + 0x50) == 0)) {\n    uVar2 = 0;\n    if ((*(byte *)(param_1 + 0x54) & 1) == 0) {\n      __fprintf_chk(*(undefined4 *)(param_1 + 0x24),1,"Progress %u\n",uVar1);\n      return 0;\n    }\n  }\n  else {\n    __fprintf_chk(*(undefined4 *)(param_1 + 0x24),1,"Progress limit reached (%u)\n",uVar1);\n    if ((*(uint *)(param_1 + 0x54) & 2) != 0) {\n      *(undefined4 *)(param_1 + 0x4c) = 0;\n    }\n    uVar2 = 1;\n    if ((*(uint *)(param_1 + 0x54) & 4) != 0) {\n      *(undefined4 *)(param_1 + 0x50) = 0;\n    }\n  }\n  return uVar2;\n}" type_identifier (function_declarator "FUN_0001e800(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  undefined4 uVar2;\n  \n  uVar1 = *(int *)(param_1 + 0x4c) + 1;\n  *(uint *)(param_1 + 0x4c) = uVar1;\n  if ((uVar1 < *(uint *)(param_1 + 0x50)) || (*(uint *)(param_1 + 0x50) == 0)) {\n    uVar2 = 0;\n    if ((*(byte *)(param_1 + 0x54) & 1) == 0) {\n      __fprintf_chk(*(undefined4 *)(param_1 + 0x24),1,"Progress %u\n",uVar1);\n      return 0;\n    }\n  }\n  else {\n    __fprintf_chk(*(undefined4 *)(param_1 + 0x24),1,"Progress limit reached (%u)\n",uVar1);\n    if ((*(uint *)(param_1 + 0x54) & 2) != 0) {\n      *(undefined4 *)(param_1 + 0x4c) = 0;\n    }\n    uVar2 = 1;\n    if ((*(uint *)(param_1 + 0x54) & 4) != 0) {\n      *(undefined4 *)(param_1 + 0x50) = 0;\n    }\n  }\n  return uVar2;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "uVar1 = *(int *)(param_1 + 0x4c) + 1;" (assignment_expression "uVar1 = *(int *)(param_1 + 0x4c) + 1" identifier = (binary_expression "*(int *)(param_1 + 0x4c) + 1" (pointer_expression "*(int *)(param_1 + 0x4c)" * (cast_expression "(int *)(param_1 + 0x4c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(uint *)(param_1 + 0x4c) = uVar1;" (assignment_expression "*(uint *)(param_1 + 0x4c) = uVar1" (pointer_expression "*(uint *)(param_1 + 0x4c)" * (cast_expression "(uint *)(param_1 + 0x4c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) = identifier) ;) (if_statement "if ((uVar1 < *(uint *)(param_1 + 0x50)) || (*(uint *)(param_1 + 0x50) == 0)) {\n    uVar2 = 0;\n    if ((*(byte *)(param_1 + 0x54) & 1) == 0) {\n      __fprintf_chk(*(undefined4 *)(param_1 + 0x24),1,"Progress %u\n",uVar1);\n      return 0;\n    }\n  }\n  else {\n    __fprintf_chk(*(undefined4 *)(param_1 + 0x24),1,"Progress limit reached (%u)\n",uVar1);\n    if ((*(uint *)(param_1 + 0x54) & 2) != 0) {\n      *(undefined4 *)(param_1 + 0x4c) = 0;\n    }\n    uVar2 = 1;\n    if ((*(uint *)(param_1 + 0x54) & 4) != 0) {\n      *(undefined4 *)(param_1 + 0x50) = 0;\n    }\n  }" if (parenthesized_expression "((uVar1 < *(uint *)(param_1 + 0x50)) || (*(uint *)(param_1 + 0x50) == 0))" ( (binary_expression "(uVar1 < *(uint *)(param_1 + 0x50)) || (*(uint *)(param_1 + 0x50) == 0)" (parenthesized_expression "(uVar1 < *(uint *)(param_1 + 0x50))" ( (binary_expression "uVar1 < *(uint *)(param_1 + 0x50)" identifier < (pointer_expression "*(uint *)(param_1 + 0x50)" * (cast_expression "(uint *)(param_1 + 0x50)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) ))))) )) || (parenthesized_expression "(*(uint *)(param_1 + 0x50) == 0)" ( (binary_expression "*(uint *)(param_1 + 0x50) == 0" (pointer_expression "*(uint *)(param_1 + 0x50)" * (cast_expression "(uint *)(param_1 + 0x50)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n    uVar2 = 0;\n    if ((*(byte *)(param_1 + 0x54) & 1) == 0) {\n      __fprintf_chk(*(undefined4 *)(param_1 + 0x24),1,"Progress %u\n",uVar1);\n      return 0;\n    }\n  }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (if_statement "if ((*(byte *)(param_1 + 0x54) & 1) == 0) {\n      __fprintf_chk(*(undefined4 *)(param_1 + 0x24),1,"Progress %u\n",uVar1);\n      return 0;\n    }" if (parenthesized_expression "((*(byte *)(param_1 + 0x54) & 1) == 0)" ( (binary_expression "(*(byte *)(param_1 + 0x54) & 1) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0x54) & 1)" ( (binary_expression "*(byte *)(param_1 + 0x54) & 1" (pointer_expression "*(byte *)(param_1 + 0x54)" * (cast_expression "(byte *)(param_1 + 0x54)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n      __fprintf_chk(*(undefined4 *)(param_1 + 0x24),1,"Progress %u\n",uVar1);\n      return 0;\n    }" { (expression_statement "__fprintf_chk(*(undefined4 *)(param_1 + 0x24),1,"Progress %u\n",uVar1);" (call_expression "__fprintf_chk(*(undefined4 *)(param_1 + 0x24),1,"Progress %u\n",uVar1)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x24),1,"Progress %u\n",uVar1)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x24)" * (cast_expression "(undefined4 *)(param_1 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) , number_literal , (string_literal ""Progress %u\n"" " string_content escape_sequence ") , identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else {\n    __fprintf_chk(*(undefined4 *)(param_1 + 0x24),1,"Progress limit reached (%u)\n",uVar1);\n    if ((*(uint *)(param_1 + 0x54) & 2) != 0) {\n      *(undefined4 *)(param_1 + 0x4c) = 0;\n    }\n    uVar2 = 1;\n    if ((*(uint *)(param_1 + 0x54) & 4) != 0) {\n      *(undefined4 *)(param_1 + 0x50) = 0;\n    }\n  }" else (compound_statement "{\n    __fprintf_chk(*(undefined4 *)(param_1 + 0x24),1,"Progress limit reached (%u)\n",uVar1);\n    if ((*(uint *)(param_1 + 0x54) & 2) != 0) {\n      *(undefined4 *)(param_1 + 0x4c) = 0;\n    }\n    uVar2 = 1;\n    if ((*(uint *)(param_1 + 0x54) & 4) != 0) {\n      *(undefined4 *)(param_1 + 0x50) = 0;\n    }\n  }" { (expression_statement "__fprintf_chk(*(undefined4 *)(param_1 + 0x24),1,"Progress limit reached (%u)\n",uVar1);" (call_expression "__fprintf_chk(*(undefined4 *)(param_1 + 0x24),1,"Progress limit reached (%u)\n",uVar1)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x24),1,"Progress limit reached (%u)\n",uVar1)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x24)" * (cast_expression "(undefined4 *)(param_1 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) , number_literal , (string_literal ""Progress limit reached (%u)\n"" " string_content escape_sequence ") , identifier ))) ;) (if_statement "if ((*(uint *)(param_1 + 0x54) & 2) != 0) {\n      *(undefined4 *)(param_1 + 0x4c) = 0;\n    }" if (parenthesized_expression "((*(uint *)(param_1 + 0x54) & 2) != 0)" ( (binary_expression "(*(uint *)(param_1 + 0x54) & 2) != 0" (parenthesized_expression "(*(uint *)(param_1 + 0x54) & 2)" ( (binary_expression "*(uint *)(param_1 + 0x54) & 2" (pointer_expression "*(uint *)(param_1 + 0x54)" * (cast_expression "(uint *)(param_1 + 0x54)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n      *(undefined4 *)(param_1 + 0x4c) = 0;\n    }" { (expression_statement "*(undefined4 *)(param_1 + 0x4c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x4c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x4c)" * (cast_expression "(undefined4 *)(param_1 + 0x4c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) = number_literal) ;) })) (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) (if_statement "if ((*(uint *)(param_1 + 0x54) & 4) != 0) {\n      *(undefined4 *)(param_1 + 0x50) = 0;\n    }" if (parenthesized_expression "((*(uint *)(param_1 + 0x54) & 4) != 0)" ( (binary_expression "(*(uint *)(param_1 + 0x54) & 4) != 0" (parenthesized_expression "(*(uint *)(param_1 + 0x54) & 4)" ( (binary_expression "*(uint *)(param_1 + 0x54) & 4" (pointer_expression "*(uint *)(param_1 + 0x54)" * (cast_expression "(uint *)(param_1 + 0x54)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n      *(undefined4 *)(param_1 + 0x50) = 0;\n    }" { (expression_statement "*(undefined4 *)(param_1 + 0x50) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x50) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x50)" * (cast_expression "(undefined4 *)(param_1 + 0x50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) )))) = number_literal) ;) })) }))) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint progress_handler(void *pClientData)\n\n{\n  uint uVar1;\n  int iVar2;\n  \n  uVar1 = *(int *)((int)pClientData + 0x4c) + 1;\n  *(uint *)((int)pClientData + 0x4c) = uVar1;\n  if ((uVar1 < *(uint *)((int)pClientData + 0x50)) || (*(uint *)((int)pClientData + 0x50) == 0)) {\n    iVar2 = 0;\n    if ((*(byte *)((int)pClientData + 0x54) & 1) == 0) {\n      __fprintf_chk(*(undefined4 *)((int)pClientData + 0x24),1,"Progress %u\n",uVar1);\n      return 0;\n    }\n  }\n  else {\n    __fprintf_chk(*(undefined4 *)((int)pClientData + 0x24),1,"Progress limit reached (%u)\n",uVar1);\n    if ((*(uint *)((int)pClientData + 0x54) & 2) != 0) {\n      *(undefined4 *)((int)pClientData + 0x4c) = 0;\n    }\n    iVar2 = 1;\n    if ((*(uint *)((int)pClientData + 0x54) & 4) != 0) {\n      *(undefined4 *)((int)pClientData + 0x50) = 0;\n    }\n  }\n  return iVar2;\n}\n\n" comment (function_definition "int progress_handler(void *pClientData)\n\n{\n  uint uVar1;\n  int iVar2;\n  \n  uVar1 = *(int *)((int)pClientData + 0x4c) + 1;\n  *(uint *)((int)pClientData + 0x4c) = uVar1;\n  if ((uVar1 < *(uint *)((int)pClientData + 0x50)) || (*(uint *)((int)pClientData + 0x50) == 0)) {\n    iVar2 = 0;\n    if ((*(byte *)((int)pClientData + 0x54) & 1) == 0) {\n      __fprintf_chk(*(undefined4 *)((int)pClientData + 0x24),1,"Progress %u\n",uVar1);\n      return 0;\n    }\n  }\n  else {\n    __fprintf_chk(*(undefined4 *)((int)pClientData + 0x24),1,"Progress limit reached (%u)\n",uVar1);\n    if ((*(uint *)((int)pClientData + 0x54) & 2) != 0) {\n      *(undefined4 *)((int)pClientData + 0x4c) = 0;\n    }\n    iVar2 = 1;\n    if ((*(uint *)((int)pClientData + 0x54) & 4) != 0) {\n      *(undefined4 *)((int)pClientData + 0x50) = 0;\n    }\n  }\n  return iVar2;\n}" primitive_type (function_declarator "progress_handler(void *pClientData)" identifier (parameter_list "(void *pClientData)" ( (parameter_declaration "void *pClientData" primitive_type (pointer_declarator "*pClientData" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  \n  uVar1 = *(int *)((int)pClientData + 0x4c) + 1;\n  *(uint *)((int)pClientData + 0x4c) = uVar1;\n  if ((uVar1 < *(uint *)((int)pClientData + 0x50)) || (*(uint *)((int)pClientData + 0x50) == 0)) {\n    iVar2 = 0;\n    if ((*(byte *)((int)pClientData + 0x54) & 1) == 0) {\n      __fprintf_chk(*(undefined4 *)((int)pClientData + 0x24),1,"Progress %u\n",uVar1);\n      return 0;\n    }\n  }\n  else {\n    __fprintf_chk(*(undefined4 *)((int)pClientData + 0x24),1,"Progress limit reached (%u)\n",uVar1);\n    if ((*(uint *)((int)pClientData + 0x54) & 2) != 0) {\n      *(undefined4 *)((int)pClientData + 0x4c) = 0;\n    }\n    iVar2 = 1;\n    if ((*(uint *)((int)pClientData + 0x54) & 4) != 0) {\n      *(undefined4 *)((int)pClientData + 0x50) = 0;\n    }\n  }\n  return iVar2;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "uVar1 = *(int *)((int)pClientData + 0x4c) + 1;" (assignment_expression "uVar1 = *(int *)((int)pClientData + 0x4c) + 1" identifier = (binary_expression "*(int *)((int)pClientData + 0x4c) + 1" (pointer_expression "*(int *)((int)pClientData + 0x4c)" * (cast_expression "(int *)((int)pClientData + 0x4c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pClientData + 0x4c)" ( (binary_expression "(int)pClientData + 0x4c" (cast_expression "(int)pClientData" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) + number_literal)) ;) (expression_statement "*(uint *)((int)pClientData + 0x4c) = uVar1;" (assignment_expression "*(uint *)((int)pClientData + 0x4c) = uVar1" (pointer_expression "*(uint *)((int)pClientData + 0x4c)" * (cast_expression "(uint *)((int)pClientData + 0x4c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pClientData + 0x4c)" ( (binary_expression "(int)pClientData + 0x4c" (cast_expression "(int)pClientData" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (if_statement "if ((uVar1 < *(uint *)((int)pClientData + 0x50)) || (*(uint *)((int)pClientData + 0x50) == 0)) {\n    iVar2 = 0;\n    if ((*(byte *)((int)pClientData + 0x54) & 1) == 0) {\n      __fprintf_chk(*(undefined4 *)((int)pClientData + 0x24),1,"Progress %u\n",uVar1);\n      return 0;\n    }\n  }\n  else {\n    __fprintf_chk(*(undefined4 *)((int)pClientData + 0x24),1,"Progress limit reached (%u)\n",uVar1);\n    if ((*(uint *)((int)pClientData + 0x54) & 2) != 0) {\n      *(undefined4 *)((int)pClientData + 0x4c) = 0;\n    }\n    iVar2 = 1;\n    if ((*(uint *)((int)pClientData + 0x54) & 4) != 0) {\n      *(undefined4 *)((int)pClientData + 0x50) = 0;\n    }\n  }" if (parenthesized_expression "((uVar1 < *(uint *)((int)pClientData + 0x50)) || (*(uint *)((int)pClientData + 0x50) == 0))" ( (binary_expression "(uVar1 < *(uint *)((int)pClientData + 0x50)) || (*(uint *)((int)pClientData + 0x50) == 0)" (parenthesized_expression "(uVar1 < *(uint *)((int)pClientData + 0x50))" ( (binary_expression "uVar1 < *(uint *)((int)pClientData + 0x50)" identifier < (pointer_expression "*(uint *)((int)pClientData + 0x50)" * (cast_expression "(uint *)((int)pClientData + 0x50)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pClientData + 0x50)" ( (binary_expression "(int)pClientData + 0x50" (cast_expression "(int)pClientData" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) )) || (parenthesized_expression "(*(uint *)((int)pClientData + 0x50) == 0)" ( (binary_expression "*(uint *)((int)pClientData + 0x50) == 0" (pointer_expression "*(uint *)((int)pClientData + 0x50)" * (cast_expression "(uint *)((int)pClientData + 0x50)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pClientData + 0x50)" ( (binary_expression "(int)pClientData + 0x50" (cast_expression "(int)pClientData" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n    iVar2 = 0;\n    if ((*(byte *)((int)pClientData + 0x54) & 1) == 0) {\n      __fprintf_chk(*(undefined4 *)((int)pClientData + 0x24),1,"Progress %u\n",uVar1);\n      return 0;\n    }\n  }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (if_statement "if ((*(byte *)((int)pClientData + 0x54) & 1) == 0) {\n      __fprintf_chk(*(undefined4 *)((int)pClientData + 0x24),1,"Progress %u\n",uVar1);\n      return 0;\n    }" if (parenthesized_expression "((*(byte *)((int)pClientData + 0x54) & 1) == 0)" ( (binary_expression "(*(byte *)((int)pClientData + 0x54) & 1) == 0" (parenthesized_expression "(*(byte *)((int)pClientData + 0x54) & 1)" ( (binary_expression "*(byte *)((int)pClientData + 0x54) & 1" (pointer_expression "*(byte *)((int)pClientData + 0x54)" * (cast_expression "(byte *)((int)pClientData + 0x54)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pClientData + 0x54)" ( (binary_expression "(int)pClientData + 0x54" (cast_expression "(int)pClientData" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n      __fprintf_chk(*(undefined4 *)((int)pClientData + 0x24),1,"Progress %u\n",uVar1);\n      return 0;\n    }" { (expression_statement "__fprintf_chk(*(undefined4 *)((int)pClientData + 0x24),1,"Progress %u\n",uVar1);" (call_expression "__fprintf_chk(*(undefined4 *)((int)pClientData + 0x24),1,"Progress %u\n",uVar1)" identifier (argument_list "(*(undefined4 *)((int)pClientData + 0x24),1,"Progress %u\n",uVar1)" ( (pointer_expression "*(undefined4 *)((int)pClientData + 0x24)" * (cast_expression "(undefined4 *)((int)pClientData + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pClientData + 0x24)" ( (binary_expression "(int)pClientData + 0x24" (cast_expression "(int)pClientData" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , number_literal , (string_literal ""Progress %u\n"" " string_content escape_sequence ") , identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else {\n    __fprintf_chk(*(undefined4 *)((int)pClientData + 0x24),1,"Progress limit reached (%u)\n",uVar1);\n    if ((*(uint *)((int)pClientData + 0x54) & 2) != 0) {\n      *(undefined4 *)((int)pClientData + 0x4c) = 0;\n    }\n    iVar2 = 1;\n    if ((*(uint *)((int)pClientData + 0x54) & 4) != 0) {\n      *(undefined4 *)((int)pClientData + 0x50) = 0;\n    }\n  }" else (compound_statement "{\n    __fprintf_chk(*(undefined4 *)((int)pClientData + 0x24),1,"Progress limit reached (%u)\n",uVar1);\n    if ((*(uint *)((int)pClientData + 0x54) & 2) != 0) {\n      *(undefined4 *)((int)pClientData + 0x4c) = 0;\n    }\n    iVar2 = 1;\n    if ((*(uint *)((int)pClientData + 0x54) & 4) != 0) {\n      *(undefined4 *)((int)pClientData + 0x50) = 0;\n    }\n  }" { (expression_statement "__fprintf_chk(*(undefined4 *)((int)pClientData + 0x24),1,"Progress limit reached (%u)\n",uVar1);" (call_expression "__fprintf_chk(*(undefined4 *)((int)pClientData + 0x24),1,"Progress limit reached (%u)\n",uVar1)" identifier (argument_list "(*(undefined4 *)((int)pClientData + 0x24),1,"Progress limit reached (%u)\n",uVar1)" ( (pointer_expression "*(undefined4 *)((int)pClientData + 0x24)" * (cast_expression "(undefined4 *)((int)pClientData + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pClientData + 0x24)" ( (binary_expression "(int)pClientData + 0x24" (cast_expression "(int)pClientData" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , number_literal , (string_literal ""Progress limit reached (%u)\n"" " string_content escape_sequence ") , identifier ))) ;) (if_statement "if ((*(uint *)((int)pClientData + 0x54) & 2) != 0) {\n      *(undefined4 *)((int)pClientData + 0x4c) = 0;\n    }" if (parenthesized_expression "((*(uint *)((int)pClientData + 0x54) & 2) != 0)" ( (binary_expression "(*(uint *)((int)pClientData + 0x54) & 2) != 0" (parenthesized_expression "(*(uint *)((int)pClientData + 0x54) & 2)" ( (binary_expression "*(uint *)((int)pClientData + 0x54) & 2" (pointer_expression "*(uint *)((int)pClientData + 0x54)" * (cast_expression "(uint *)((int)pClientData + 0x54)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pClientData + 0x54)" ( (binary_expression "(int)pClientData + 0x54" (cast_expression "(int)pClientData" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n      *(undefined4 *)((int)pClientData + 0x4c) = 0;\n    }" { (expression_statement "*(undefined4 *)((int)pClientData + 0x4c) = 0;" (assignment_expression "*(undefined4 *)((int)pClientData + 0x4c) = 0" (pointer_expression "*(undefined4 *)((int)pClientData + 0x4c)" * (cast_expression "(undefined4 *)((int)pClientData + 0x4c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pClientData + 0x4c)" ( (binary_expression "(int)pClientData + 0x4c" (cast_expression "(int)pClientData" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) })) (expression_statement "iVar2 = 1;" (assignment_expression "iVar2 = 1" identifier = number_literal) ;) (if_statement "if ((*(uint *)((int)pClientData + 0x54) & 4) != 0) {\n      *(undefined4 *)((int)pClientData + 0x50) = 0;\n    }" if (parenthesized_expression "((*(uint *)((int)pClientData + 0x54) & 4) != 0)" ( (binary_expression "(*(uint *)((int)pClientData + 0x54) & 4) != 0" (parenthesized_expression "(*(uint *)((int)pClientData + 0x54) & 4)" ( (binary_expression "*(uint *)((int)pClientData + 0x54) & 4" (pointer_expression "*(uint *)((int)pClientData + 0x54)" * (cast_expression "(uint *)((int)pClientData + 0x54)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pClientData + 0x54)" ( (binary_expression "(int)pClientData + 0x54" (cast_expression "(int)pClientData" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n      *(undefined4 *)((int)pClientData + 0x50) = 0;\n    }" { (expression_statement "*(undefined4 *)((int)pClientData + 0x50) = 0;" (assignment_expression "*(undefined4 *)((int)pClientData + 0x50) = 0" (pointer_expression "*(undefined4 *)((int)pClientData + 0x50)" * (cast_expression "(undefined4 *)((int)pClientData + 0x50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)pClientData + 0x50)" ( (binary_expression "(int)pClientData + 0x50" (cast_expression "(int)pClientData" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) })) }))) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "undefined4 FUN_0001e800(int param_1)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  \n  uVar1 = *(int *)(param_1 + 0x4c) + 1;\n  *(uint *)(param_1 + 0x4c) = uVar1;\n  if ((uVar1 < *(uint *)(param_1 + 0x50)) || (*(uint *)(param_1 + 0x50) == 0)) {\n    uVar2 = 0;\n    if ((*(byte *)(param_1 + 0x54) & 1) == 0) {\n      __fprintf_chk(*(undefined4 *)(param_1 + 0x24),1,"Progress %u\n",uVar1);\n      return 0;\n    }\n  }\n  else {\n    __fprintf_chk(*(undefined4 *)(param_1 + 0x24),1,"Progress limit reached (%u)\n",uVar1);\n    if ((*(uint *)(param_1 + 0x54) & 2) != 0) {\n      *(undefined4 *)(param_1 + 0x4c) = 0;\n    }\n    uVar2 = 1;\n    if ((*(uint *)(param_1 + 0x54) & 4) != 0) {\n      *(undefined4 *)(param_1 + 0x50) = 0;\n    }\n  }\n  return uVar2;\n}\n\n" (function_definition "undefined4 FUN_0001e800(int param_1)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  \n  uVar1 = *(int *)(param_1 + 0x4c) + 1;\n  *(uint *)(param_1 + 0x4c) = uVar1;\n  if ((uVar1 < *(uint *)(param_1 + 0x50)) || (*(uint *)(param_1 + 0x50) == 0)) {\n    uVar2 = 0;\n    if ((*(byte *)(param_1 + 0x54) & 1) == 0) {\n      __fprintf_chk(*(undefined4 *)(param_1 + 0x24),1,"Progress %u\n",uVar1);\n      return 0;\n    }\n  }\n  else {\n    __fprintf_chk(*(undefined4 *)(param_1 + 0x24),1,"Progress limit reached (%u)\n",uVar1);\n    if ((*(uint *)(param_1 + 0x54) & 2) != 0) {\n      *(undefined4 *)(param_1 + 0x4c) = 0;\n    }\n    uVar2 = 1;\n    if ((*(uint *)(param_1 + 0x54) & 4) != 0) {\n      *(undefined4 *)(param_1 + 0x50) = 0;\n    }\n  }\n  return uVar2;\n}" type_identifier (function_declarator "FUN_0001e800(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  undefined4 uVar2;\n  \n  uVar1 = *(int *)(param_1 + 0x4c) + 1;\n  *(uint *)(param_1 + 0x4c) = uVar1;\n  if ((uVar1 < *(uint *)(param_1 + 0x50)) || (*(uint *)(param_1 + 0x50) == 0)) {\n    uVar2 = 0;\n    if ((*(byte *)(param_1 + 0x54) & 1) == 0) {\n      __fprintf_chk(*(undefined4 *)(param_1 + 0x24),1,"Progress %u\n",uVar1);\n      return 0;\n    }\n  }\n  else {\n    __fprintf_chk(*(undefined4 *)(param_1 + 0x24),1,"Progress limit reached (%u)\n",uVar1);\n    if ((*(uint *)(param_1 + 0x54) & 2) != 0) {\n      *(undefined4 *)(param_1 + 0x4c) = 0;\n    }\n    uVar2 = 1;\n    if ((*(uint *)(param_1 + 0x54) & 4) != 0) {\n      *(undefined4 *)(param_1 + 0x50) = 0;\n    }\n  }\n  return uVar2;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "uVar1 = *(int *)(param_1 + 0x4c) + 1;" (assignment_expression "uVar1 = *(int *)(param_1 + 0x4c) + 1" identifier = (binary_expression "*(int *)(param_1 + 0x4c) + 1" (pointer_expression "*(int *)(param_1 + 0x4c)" * (cast_expression "(int *)(param_1 + 0x4c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "*(uint *)(param_1 + 0x4c) = uVar1;" (assignment_expression "*(uint *)(param_1 + 0x4c) = uVar1" (pointer_expression "*(uint *)(param_1 + 0x4c)" * (cast_expression "(uint *)(param_1 + 0x4c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) = identifier) ;) (if_statement "if ((uVar1 < *(uint *)(param_1 + 0x50)) || (*(uint *)(param_1 + 0x50) == 0)) {\n    uVar2 = 0;\n    if ((*(byte *)(param_1 + 0x54) & 1) == 0) {\n      __fprintf_chk(*(undefined4 *)(param_1 + 0x24),1,"Progress %u\n",uVar1);\n      return 0;\n    }\n  }\n  else {\n    __fprintf_chk(*(undefined4 *)(param_1 + 0x24),1,"Progress limit reached (%u)\n",uVar1);\n    if ((*(uint *)(param_1 + 0x54) & 2) != 0) {\n      *(undefined4 *)(param_1 + 0x4c) = 0;\n    }\n    uVar2 = 1;\n    if ((*(uint *)(param_1 + 0x54) & 4) != 0) {\n      *(undefined4 *)(param_1 + 0x50) = 0;\n    }\n  }" if (parenthesized_expression "((uVar1 < *(uint *)(param_1 + 0x50)) || (*(uint *)(param_1 + 0x50) == 0))" ( (binary_expression "(uVar1 < *(uint *)(param_1 + 0x50)) || (*(uint *)(param_1 + 0x50) == 0)" (parenthesized_expression "(uVar1 < *(uint *)(param_1 + 0x50))" ( (binary_expression "uVar1 < *(uint *)(param_1 + 0x50)" identifier < (pointer_expression "*(uint *)(param_1 + 0x50)" * (cast_expression "(uint *)(param_1 + 0x50)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) ))))) )) || (parenthesized_expression "(*(uint *)(param_1 + 0x50) == 0)" ( (binary_expression "*(uint *)(param_1 + 0x50) == 0" (pointer_expression "*(uint *)(param_1 + 0x50)" * (cast_expression "(uint *)(param_1 + 0x50)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n    uVar2 = 0;\n    if ((*(byte *)(param_1 + 0x54) & 1) == 0) {\n      __fprintf_chk(*(undefined4 *)(param_1 + 0x24),1,"Progress %u\n",uVar1);\n      return 0;\n    }\n  }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (if_statement "if ((*(byte *)(param_1 + 0x54) & 1) == 0) {\n      __fprintf_chk(*(undefined4 *)(param_1 + 0x24),1,"Progress %u\n",uVar1);\n      return 0;\n    }" if (parenthesized_expression "((*(byte *)(param_1 + 0x54) & 1) == 0)" ( (binary_expression "(*(byte *)(param_1 + 0x54) & 1) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0x54) & 1)" ( (binary_expression "*(byte *)(param_1 + 0x54) & 1" (pointer_expression "*(byte *)(param_1 + 0x54)" * (cast_expression "(byte *)(param_1 + 0x54)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n      __fprintf_chk(*(undefined4 *)(param_1 + 0x24),1,"Progress %u\n",uVar1);\n      return 0;\n    }" { (expression_statement "__fprintf_chk(*(undefined4 *)(param_1 + 0x24),1,"Progress %u\n",uVar1);" (call_expression "__fprintf_chk(*(undefined4 *)(param_1 + 0x24),1,"Progress %u\n",uVar1)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x24),1,"Progress %u\n",uVar1)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x24)" * (cast_expression "(undefined4 *)(param_1 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) , number_literal , (string_literal ""Progress %u\n"" " string_content escape_sequence ") , identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) }) (else_clause "else {\n    __fprintf_chk(*(undefined4 *)(param_1 + 0x24),1,"Progress limit reached (%u)\n",uVar1);\n    if ((*(uint *)(param_1 + 0x54) & 2) != 0) {\n      *(undefined4 *)(param_1 + 0x4c) = 0;\n    }\n    uVar2 = 1;\n    if ((*(uint *)(param_1 + 0x54) & 4) != 0) {\n      *(undefined4 *)(param_1 + 0x50) = 0;\n    }\n  }" else (compound_statement "{\n    __fprintf_chk(*(undefined4 *)(param_1 + 0x24),1,"Progress limit reached (%u)\n",uVar1);\n    if ((*(uint *)(param_1 + 0x54) & 2) != 0) {\n      *(undefined4 *)(param_1 + 0x4c) = 0;\n    }\n    uVar2 = 1;\n    if ((*(uint *)(param_1 + 0x54) & 4) != 0) {\n      *(undefined4 *)(param_1 + 0x50) = 0;\n    }\n  }" { (expression_statement "__fprintf_chk(*(undefined4 *)(param_1 + 0x24),1,"Progress limit reached (%u)\n",uVar1);" (call_expression "__fprintf_chk(*(undefined4 *)(param_1 + 0x24),1,"Progress limit reached (%u)\n",uVar1)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x24),1,"Progress limit reached (%u)\n",uVar1)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x24)" * (cast_expression "(undefined4 *)(param_1 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) , number_literal , (string_literal ""Progress limit reached (%u)\n"" " string_content escape_sequence ") , identifier ))) ;) (if_statement "if ((*(uint *)(param_1 + 0x54) & 2) != 0) {\n      *(undefined4 *)(param_1 + 0x4c) = 0;\n    }" if (parenthesized_expression "((*(uint *)(param_1 + 0x54) & 2) != 0)" ( (binary_expression "(*(uint *)(param_1 + 0x54) & 2) != 0" (parenthesized_expression "(*(uint *)(param_1 + 0x54) & 2)" ( (binary_expression "*(uint *)(param_1 + 0x54) & 2" (pointer_expression "*(uint *)(param_1 + 0x54)" * (cast_expression "(uint *)(param_1 + 0x54)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n      *(undefined4 *)(param_1 + 0x4c) = 0;\n    }" { (expression_statement "*(undefined4 *)(param_1 + 0x4c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x4c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x4c)" * (cast_expression "(undefined4 *)(param_1 + 0x4c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x4c)" ( (binary_expression "param_1 + 0x4c" identifier + number_literal) )))) = number_literal) ;) })) (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" identifier = number_literal) ;) (if_statement "if ((*(uint *)(param_1 + 0x54) & 4) != 0) {\n      *(undefined4 *)(param_1 + 0x50) = 0;\n    }" if (parenthesized_expression "((*(uint *)(param_1 + 0x54) & 4) != 0)" ( (binary_expression "(*(uint *)(param_1 + 0x54) & 4) != 0" (parenthesized_expression "(*(uint *)(param_1 + 0x54) & 4)" ( (binary_expression "*(uint *)(param_1 + 0x54) & 4" (pointer_expression "*(uint *)(param_1 + 0x54)" * (cast_expression "(uint *)(param_1 + 0x54)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n      *(undefined4 *)(param_1 + 0x50) = 0;\n    }" { (expression_statement "*(undefined4 *)(param_1 + 0x50) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x50) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x50)" * (cast_expression "(undefined4 *)(param_1 + 0x50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) )))) = number_literal) ;) })) }))) (return_statement "return uVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression (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) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) || (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 (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT , (string_literal " string_content escape_sequence ") , IDENT ))) ;) (return_statement return LIT ;) })) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT , (string_literal " string_content escape_sequence ") , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) })) }))) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_0001e800(int param_1)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  \n  uVar1 = *(int *)(param_1 + 0x4c) + 1;\n  *(uint *)(param_1 + 0x4c) = uVar1;\n  if ((uVar1 < *(uint *)(param_1 + 0x50)) || (*(uint *)(param_1 + 0x50) == 0)) {\n    uVar2 = 0;\n    if ((*(byte *)(param_1 + 0x54) & 1) == 0) {\n      __fprintf_chk(*(undefined4 *)(param_1 + 0x24),1,"Progress %u\n",uVar1);\n      return 0;\n    }\n  }\n  else {\n    __fprintf_chk(*(undefined4 *)(param_1 + 0x24),1,"Progress limit reached (%u)\n",uVar1);\n    if ((*(uint *)(param_1 + 0x54) & 2) != 0) {\n      *(undefined4 *)(param_1 + 0x4c) = 0;\n    }\n    uVar2 = 1;\n    if ((*(uint *)(param_1 + 0x54) & 4) != 0) {\n      *(undefined4 *)(param_1 + 0x50) = 0;\n    }\n  }\n  return uVar2;\n}" (type_identifier "undefined4") (function_declarator "FUN_0001e800(int param_1)" (identifier "FUN_0001e800") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  uint uVar1;\n  undefined4 uVar2;\n  \n  uVar1 = *(int *)(param_1 + 0x4c) + 1;\n  *(uint *)(param_1 + 0x4c) = uVar1;\n  if ((uVar1 < *(uint *)(param_1 + 0x50)) || (*(uint *)(param_1 + 0x50) == 0)) {\n    uVar2 = 0;\n    if ((*(byte *)(param_1 + 0x54) & 1) == 0) {\n      __fprintf_chk(*(undefined4 *)(param_1 + 0x24),1,"Progress %u\n",uVar1);\n      return 0;\n    }\n  }\n  else {\n    __fprintf_chk(*(undefined4 *)(param_1 + 0x24),1,"Progress limit reached (%u)\n",uVar1);\n    if ((*(uint *)(param_1 + 0x54) & 2) != 0) {\n      *(undefined4 *)(param_1 + 0x4c) = 0;\n    }\n    uVar2 = 1;\n    if ((*(uint *)(param_1 + 0x54) & 4) != 0) {\n      *(undefined4 *)(param_1 + 0x50) = 0;\n    }\n  }\n  return uVar2;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (expression_statement "uVar1 = *(int *)(param_1 + 0x4c) + 1;" (assignment_expression "uVar1 = *(int *)(param_1 + 0x4c) + 1" (identifier "uVar1") (= "=") (binary_expression "*(int *)(param_1 + 0x4c) + 1" (pointer_expression "*(int *)(param_1 + 0x4c)" (* "*") (cast_expression "(int *)(param_1 + 0x4c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4c)" (( "(") (binary_expression "param_1 + 0x4c" (identifier "param_1") (+ "+") (number_literal "0x4c")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(uint *)(param_1 + 0x4c) = uVar1;" (assignment_expression "*(uint *)(param_1 + 0x4c) = uVar1" (pointer_expression "*(uint *)(param_1 + 0x4c)" (* "*") (cast_expression "(uint *)(param_1 + 0x4c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4c)" (( "(") (binary_expression "param_1 + 0x4c" (identifier "param_1") (+ "+") (number_literal "0x4c")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (if_statement "if ((uVar1 < *(uint *)(param_1 + 0x50)) || (*(uint *)(param_1 + 0x50) == 0)) {\n    uVar2 = 0;\n    if ((*(byte *)(param_1 + 0x54) & 1) == 0) {\n      __fprintf_chk(*(undefined4 *)(param_1 + 0x24),1,"Progress %u\n",uVar1);\n      return 0;\n    }\n  }\n  else {\n    __fprintf_chk(*(undefined4 *)(param_1 + 0x24),1,"Progress limit reached (%u)\n",uVar1);\n    if ((*(uint *)(param_1 + 0x54) & 2) != 0) {\n      *(undefined4 *)(param_1 + 0x4c) = 0;\n    }\n    uVar2 = 1;\n    if ((*(uint *)(param_1 + 0x54) & 4) != 0) {\n      *(undefined4 *)(param_1 + 0x50) = 0;\n    }\n  }" (if "if") (parenthesized_expression "((uVar1 < *(uint *)(param_1 + 0x50)) || (*(uint *)(param_1 + 0x50) == 0))" (( "(") (binary_expression "(uVar1 < *(uint *)(param_1 + 0x50)) || (*(uint *)(param_1 + 0x50) == 0)" (parenthesized_expression "(uVar1 < *(uint *)(param_1 + 0x50))" (( "(") (binary_expression "uVar1 < *(uint *)(param_1 + 0x50)" (identifier "uVar1") (< "<") (pointer_expression "*(uint *)(param_1 + 0x50)" (* "*") (cast_expression "(uint *)(param_1 + 0x50)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x50)" (( "(") (binary_expression "param_1 + 0x50" (identifier "param_1") (+ "+") (number_literal "0x50")) () ")"))))) () ")")) (|| "||") (parenthesized_expression "(*(uint *)(param_1 + 0x50) == 0)" (( "(") (binary_expression "*(uint *)(param_1 + 0x50) == 0" (pointer_expression "*(uint *)(param_1 + 0x50)" (* "*") (cast_expression "(uint *)(param_1 + 0x50)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x50)" (( "(") (binary_expression "param_1 + 0x50" (identifier "param_1") (+ "+") (number_literal "0x50")) () ")")))) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    uVar2 = 0;\n    if ((*(byte *)(param_1 + 0x54) & 1) == 0) {\n      __fprintf_chk(*(undefined4 *)(param_1 + 0x24),1,"Progress %u\n",uVar1);\n      return 0;\n    }\n  }" ({ "{") (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" (identifier "uVar2") (= "=") (number_literal "0")) (; ";")) (if_statement "if ((*(byte *)(param_1 + 0x54) & 1) == 0) {\n      __fprintf_chk(*(undefined4 *)(param_1 + 0x24),1,"Progress %u\n",uVar1);\n      return 0;\n    }" (if "if") (parenthesized_expression "((*(byte *)(param_1 + 0x54) & 1) == 0)" (( "(") (binary_expression "(*(byte *)(param_1 + 0x54) & 1) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0x54) & 1)" (( "(") (binary_expression "*(byte *)(param_1 + 0x54) & 1" (pointer_expression "*(byte *)(param_1 + 0x54)" (* "*") (cast_expression "(byte *)(param_1 + 0x54)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x54)" (( "(") (binary_expression "param_1 + 0x54" (identifier "param_1") (+ "+") (number_literal "0x54")) () ")")))) (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      __fprintf_chk(*(undefined4 *)(param_1 + 0x24),1,"Progress %u\n",uVar1);\n      return 0;\n    }" ({ "{") (expression_statement "__fprintf_chk(*(undefined4 *)(param_1 + 0x24),1,"Progress %u\n",uVar1);" (call_expression "__fprintf_chk(*(undefined4 *)(param_1 + 0x24),1,"Progress %u\n",uVar1)" (identifier "__fprintf_chk") (argument_list "(*(undefined4 *)(param_1 + 0x24),1,"Progress %u\n",uVar1)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x24)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x24)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")")))) (, ",") (number_literal "1") (, ",") (string_literal ""Progress %u\n"" (" """) (string_content "Progress %u") (escape_sequence "\n") (" """)) (, ",") (identifier "uVar1") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    __fprintf_chk(*(undefined4 *)(param_1 + 0x24),1,"Progress limit reached (%u)\n",uVar1);\n    if ((*(uint *)(param_1 + 0x54) & 2) != 0) {\n      *(undefined4 *)(param_1 + 0x4c) = 0;\n    }\n    uVar2 = 1;\n    if ((*(uint *)(param_1 + 0x54) & 4) != 0) {\n      *(undefined4 *)(param_1 + 0x50) = 0;\n    }\n  }" (else "else") (compound_statement "{\n    __fprintf_chk(*(undefined4 *)(param_1 + 0x24),1,"Progress limit reached (%u)\n",uVar1);\n    if ((*(uint *)(param_1 + 0x54) & 2) != 0) {\n      *(undefined4 *)(param_1 + 0x4c) = 0;\n    }\n    uVar2 = 1;\n    if ((*(uint *)(param_1 + 0x54) & 4) != 0) {\n      *(undefined4 *)(param_1 + 0x50) = 0;\n    }\n  }" ({ "{") (expression_statement "__fprintf_chk(*(undefined4 *)(param_1 + 0x24),1,"Progress limit reached (%u)\n",uVar1);" (call_expression "__fprintf_chk(*(undefined4 *)(param_1 + 0x24),1,"Progress limit reached (%u)\n",uVar1)" (identifier "__fprintf_chk") (argument_list "(*(undefined4 *)(param_1 + 0x24),1,"Progress limit reached (%u)\n",uVar1)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x24)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x24)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")")))) (, ",") (number_literal "1") (, ",") (string_literal ""Progress limit reached (%u)\n"" (" """) (string_content "Progress limit reached (%u)") (escape_sequence "\n") (" """)) (, ",") (identifier "uVar1") () ")"))) (; ";")) (if_statement "if ((*(uint *)(param_1 + 0x54) & 2) != 0) {\n      *(undefined4 *)(param_1 + 0x4c) = 0;\n    }" (if "if") (parenthesized_expression "((*(uint *)(param_1 + 0x54) & 2) != 0)" (( "(") (binary_expression "(*(uint *)(param_1 + 0x54) & 2) != 0" (parenthesized_expression "(*(uint *)(param_1 + 0x54) & 2)" (( "(") (binary_expression "*(uint *)(param_1 + 0x54) & 2" (pointer_expression "*(uint *)(param_1 + 0x54)" (* "*") (cast_expression "(uint *)(param_1 + 0x54)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x54)" (( "(") (binary_expression "param_1 + 0x54" (identifier "param_1") (+ "+") (number_literal "0x54")) () ")")))) (& "&") (number_literal "2")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      *(undefined4 *)(param_1 + 0x4c) = 0;\n    }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x4c) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x4c) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x4c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x4c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x4c)" (( "(") (binary_expression "param_1 + 0x4c" (identifier "param_1") (+ "+") (number_literal "0x4c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "uVar2 = 1;" (assignment_expression "uVar2 = 1" (identifier "uVar2") (= "=") (number_literal "1")) (; ";")) (if_statement "if ((*(uint *)(param_1 + 0x54) & 4) != 0) {\n      *(undefined4 *)(param_1 + 0x50) = 0;\n    }" (if "if") (parenthesized_expression "((*(uint *)(param_1 + 0x54) & 4) != 0)" (( "(") (binary_expression "(*(uint *)(param_1 + 0x54) & 4) != 0" (parenthesized_expression "(*(uint *)(param_1 + 0x54) & 4)" (( "(") (binary_expression "*(uint *)(param_1 + 0x54) & 4" (pointer_expression "*(uint *)(param_1 + 0x54)" (* "*") (cast_expression "(uint *)(param_1 + 0x54)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x54)" (( "(") (binary_expression "param_1 + 0x54" (identifier "param_1") (+ "+") (number_literal "0x54")) () ")")))) (& "&") (number_literal "4")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      *(undefined4 *)(param_1 + 0x50) = 0;\n    }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x50) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x50) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x50)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x50)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x50)" (( "(") (binary_expression "param_1 + 0x50" (identifier "param_1") (+ "+") (number_literal "0x50")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (} "}")))) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}")))

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

int function_1(void *pClientData)

{
  type_1 var_1;
  int iVar2;
  
  var_1 = *(int *)((int)pClientData + 0x4c) + 1;
  *(type_1 *)((int)pClientData + 0x4c) = var_1;
  if ((var_1 < *(type_1 *)((int)pClientData + 0x50)) || (*(type_1 *)((int)pClientData + 0x50) == 0)) {
    iVar2 = 0;
    if ((*(type_2 *)((int)pClientData + 0x54) & 1) == 0) {
      var_2(*(type_3 *)((int)pClientData + 0x24),1,"Progress %u\n",var_1);
      return 0;
    }
  }
  else {
    var_2(*(type_3 *)((int)pClientData + 0x24),1,"Progress limit reached (%u)\n",var_1);
    if ((*(type_1 *)((int)pClientData + 0x54) & 2) != 0) {
      *(type_3 *)((int)pClientData + 0x4c) = 0;
    }
    iVar2 = 1;
    if ((*(type_1 *)((int)pClientData + 0x54) & 4) != 0) {
      *(type_3 *)((int)pClientData + 0x50) = 0;
    }
  }
  return iVar2;
}


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

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

undefined4 MASKED(int param_1)

{
  uint uVar1;
  undefined4 uVar2;
  
  uVar1 = *(int *)(param_1 + 0x4c) + 1;
  *(uint *)(param_1 + 0x4c) = uVar1;
  if ((uVar1 < *(uint *)(param_1 + 0x50)) || (*(uint *)(param_1 + 0x50) == 0)) {
    uVar2 = 0;
    if ((*(byte *)(param_1 + 0x54) & 1) == 0) {
      __fprintf_chk(*(undefined4 *)(param_1 + 0x24),1,"Progress %u\n",uVar1);
      return 0;
    }
  }
  else {
    __fprintf_chk(*(undefined4 *)(param_1 + 0x24),1,"Progress limit reached (%u)\n",uVar1);
    if ((*(uint *)(param_1 + 0x54) & 2) != 0) {
      *(undefined4 *)(param_1 + 0x4c) = 0;
    }
    uVar2 = 1;
    if ((*(uint *)(param_1 + 0x54) & 4) != 0) {
      *(undefined4 *)(param_1 + 0x50) = 0;
    }
  }
  return uVar2;
}

