
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

timediff_t __regparm3 ftp_timeleft_accept(Curl_easy *data)

{
  int iVar1;
  curltime newer;
  timediff_t tVar2;
  int iVar3;
  int in_GS_OFFSET;
  time_t local_24;
  int iStack_20;
  curltime now;
  
  iVar3 = (data->set).accepttimeout;
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  if (iVar3 < 1) {
    iVar3 = 60000;
  }
  Curl_now();
  now.tv_sec = local_24;
  now.tv_usec = iStack_20;
  tVar2 = Curl_timeleft(data,&now,false);
  if ((tVar2 == 0) || (iVar3 <= tVar2)) {
    newer.tv_usec = now.tv_usec;
    newer.tv_sec = now.tv_sec;
    tVar2 = Curl_timediff(newer,(data->progress).t_acceptdata);
    tVar2 = iVar3 - tVar2;
    if (tVar2 == 0) {
      tVar2 = -1;
    }
  }
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return tVar2;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



int FUN_00028e50(void)

{
  int iVar1;
  int extraout_ESI;
  int iVar2;
  int in_GS_OFFSET;
  undefined4 local_2c;
  undefined4 local_28 [2];
  undefined4 local_20;
  undefined4 local_1c;
  int local_18;
  undefined4 local_14;
  undefined4 uStack_10;
  
  uStack_10 = 0x28e5a;
  entry();
  iVar2 = *(int *)(extraout_ESI + 0x63c);
  local_14 = *(undefined4 *)(in_GS_OFFSET + 0x14);
  if (iVar2 < 1) {
    iVar2 = 60000;
  }
  FUN_0001ab40(local_28);
  local_20 = local_2c;
  local_1c = local_28[0];
  iVar1 = FUN_0003f980(extraout_ESI,&local_20,0);
  if ((iVar1 == 0) || (iVar2 <= iVar1)) {
    iVar1 = FUN_0001abe0(local_20,local_1c,*(undefined4 *)(extraout_ESI + 0xbbc),
                         *(undefined4 *)(extraout_ESI + 0xbc0));
    iVar1 = iVar2 - iVar1;
    if (iVar1 == 0) {
      iVar1 = -1;
    }
  }
  if (local_18 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar1;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0007c1a0();
}


PUSH EDI
PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x00019ed0
ADD EBX,0x87986
SUB ESP,0x20
MOV EDI,dword ptr [ESI + 0x63c]
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x1c],EAX
XOR EAX,EAX
MOV EAX,0xea60
TEST EDI,EDI
CMOVLE EDI,EAX
LEA EAX,[ESP + 0x8]
SUB ESP,0xc
PUSH EAX
CALL 0x0001ab40
MOV EAX,dword ptr [ESP + 0x14]
MOV EDX,dword ptr [ESP + 0x18]
SUB ESP,0x8
MOV dword ptr [ESP + 0x28],EAX
MOV dword ptr [ESP + 0x2c],EDX
PUSH 0x0
LEA EAX,[ESP + 0x2c]
PUSH EAX
PUSH ESI
CALL 0x0003f980
ADD ESP,0x20
TEST EAX,EAX
JZ 0x00028ed0
CMP EDI,EAX
JLE 0x00028ed0
MOV EDX,dword ptr [ESP + 0x1c]
XOR EDX,dword ptr GS:[0x14]
JNZ 0x00028ef9
ADD ESP,0x20
POP EBX
POP ESI
POP EDI
RET
PUSH dword ptr [ESI + 0xbc0]
PUSH dword ptr [ESI + 0xbbc]
PUSH dword ptr [ESP + 0x20]
PUSH dword ptr [ESP + 0x20]
CALL 0x0001abe0
ADD ESP,0x10
SUB EDI,EAX
MOV EAX,EDI
JNZ 0x00028eb7
MOV EAX,0xffffffff
JMP 0x00028eb7
CALL 0x0007c1a0
(translation_unit "int FUN_00028e50(void)\n\n{\n  int iVar1;\n  int extraout_ESI;\n  int iVar2;\n  int in_GS_OFFSET;\n  undefined4 local_2c;\n  undefined4 local_28 [2];\n  undefined4 local_20;\n  undefined4 local_1c;\n  int local_18;\n  undefined4 local_14;\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x28e5a;\n  entry();\n  iVar2 = *(int *)(extraout_ESI + 0x63c);\n  local_14 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  if (iVar2 < 1) {\n    iVar2 = 60000;\n  }\n  FUN_0001ab40(local_28);\n  local_20 = local_2c;\n  local_1c = local_28[0];\n  iVar1 = FUN_0003f980(extraout_ESI,&local_20,0);\n  if ((iVar1 == 0) || (iVar2 <= iVar1)) {\n    iVar1 = FUN_0001abe0(local_20,local_1c,*(undefined4 *)(extraout_ESI + 0xbbc),\n                         *(undefined4 *)(extraout_ESI + 0xbc0));\n    iVar1 = iVar2 - iVar1;\n    if (iVar1 == 0) {\n      iVar1 = -1;\n    }\n  }\n  if (local_18 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0007c1a0();\n}\n\n" (function_definition "int FUN_00028e50(void)\n\n{\n  int iVar1;\n  int extraout_ESI;\n  int iVar2;\n  int in_GS_OFFSET;\n  undefined4 local_2c;\n  undefined4 local_28 [2];\n  undefined4 local_20;\n  undefined4 local_1c;\n  int local_18;\n  undefined4 local_14;\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x28e5a;\n  entry();\n  iVar2 = *(int *)(extraout_ESI + 0x63c);\n  local_14 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  if (iVar2 < 1) {\n    iVar2 = 60000;\n  }\n  FUN_0001ab40(local_28);\n  local_20 = local_2c;\n  local_1c = local_28[0];\n  iVar1 = FUN_0003f980(extraout_ESI,&local_20,0);\n  if ((iVar1 == 0) || (iVar2 <= iVar1)) {\n    iVar1 = FUN_0001abe0(local_20,local_1c,*(undefined4 *)(extraout_ESI + 0xbbc),\n                         *(undefined4 *)(extraout_ESI + 0xbc0));\n    iVar1 = iVar2 - iVar1;\n    if (iVar1 == 0) {\n      iVar1 = -1;\n    }\n  }\n  if (local_18 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0007c1a0();\n}" primitive_type (function_declarator "FUN_00028e50(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  int extraout_ESI;\n  int iVar2;\n  int in_GS_OFFSET;\n  undefined4 local_2c;\n  undefined4 local_28 [2];\n  undefined4 local_20;\n  undefined4 local_1c;\n  int local_18;\n  undefined4 local_14;\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x28e5a;\n  entry();\n  iVar2 = *(int *)(extraout_ESI + 0x63c);\n  local_14 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  if (iVar2 < 1) {\n    iVar2 = 60000;\n  }\n  FUN_0001ab40(local_28);\n  local_20 = local_2c;\n  local_1c = local_28[0];\n  iVar1 = FUN_0003f980(extraout_ESI,&local_20,0);\n  if ((iVar1 == 0) || (iVar2 <= iVar1)) {\n    iVar1 = FUN_0001abe0(local_20,local_1c,*(undefined4 *)(extraout_ESI + 0xbbc),\n                         *(undefined4 *)(extraout_ESI + 0xbc0));\n    iVar1 = iVar2 - iVar1;\n    if (iVar1 == 0) {\n      iVar1 = -1;\n    }\n  }\n  if (local_18 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0007c1a0();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int extraout_ESI;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_2c;" type_identifier identifier ;) (declaration "undefined4 local_28 [2];" type_identifier (array_declarator "local_28 [2]" identifier [ number_literal ]) ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (declaration "undefined4 local_1c;" type_identifier identifier ;) (declaration "int local_18;" primitive_type identifier ;) (declaration "undefined4 local_14;" type_identifier identifier ;) (declaration "undefined4 uStack_10;" type_identifier identifier ;) (expression_statement "uStack_10 = 0x28e5a;" (assignment_expression "uStack_10 = 0x28e5a" identifier = number_literal) ;) (expression_statement "entry();" (call_expression "entry()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar2 = *(int *)(extraout_ESI + 0x63c);" (assignment_expression "iVar2 = *(int *)(extraout_ESI + 0x63c)" identifier = (pointer_expression "*(int *)(extraout_ESI + 0x63c)" * (cast_expression "(int *)(extraout_ESI + 0x63c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(extraout_ESI + 0x63c)" ( (binary_expression "extraout_ESI + 0x63c" identifier + number_literal) ))))) ;) (expression_statement "local_14 = *(undefined4 *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_14 = *(undefined4 *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(undefined4 *)(in_GS_OFFSET + 0x14)" * (cast_expression "(undefined4 *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (iVar2 < 1) {\n    iVar2 = 60000;\n  }" if (parenthesized_expression "(iVar2 < 1)" ( (binary_expression "iVar2 < 1" identifier < number_literal) )) (compound_statement "{\n    iVar2 = 60000;\n  }" { (expression_statement "iVar2 = 60000;" (assignment_expression "iVar2 = 60000" identifier = number_literal) ;) })) (expression_statement "FUN_0001ab40(local_28);" (call_expression "FUN_0001ab40(local_28)" identifier (argument_list "(local_28)" ( identifier ))) ;) (expression_statement "local_20 = local_2c;" (assignment_expression "local_20 = local_2c" identifier = identifier) ;) (expression_statement "local_1c = local_28[0];" (assignment_expression "local_1c = local_28[0]" identifier = (subscript_expression "local_28[0]" identifier [ number_literal ])) ;) (expression_statement "iVar1 = FUN_0003f980(extraout_ESI,&local_20,0);" (assignment_expression "iVar1 = FUN_0003f980(extraout_ESI,&local_20,0)" identifier = (call_expression "FUN_0003f980(extraout_ESI,&local_20,0)" identifier (argument_list "(extraout_ESI,&local_20,0)" ( identifier , (pointer_expression "&local_20" & identifier) , number_literal )))) ;) (if_statement "if ((iVar1 == 0) || (iVar2 <= iVar1)) {\n    iVar1 = FUN_0001abe0(local_20,local_1c,*(undefined4 *)(extraout_ESI + 0xbbc),\n                         *(undefined4 *)(extraout_ESI + 0xbc0));\n    iVar1 = iVar2 - iVar1;\n    if (iVar1 == 0) {\n      iVar1 = -1;\n    }\n  }" if (parenthesized_expression "((iVar1 == 0) || (iVar2 <= iVar1))" ( (binary_expression "(iVar1 == 0) || (iVar2 <= iVar1)" (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar2 <= iVar1)" ( (binary_expression "iVar2 <= iVar1" identifier <= identifier) ))) )) (compound_statement "{\n    iVar1 = FUN_0001abe0(local_20,local_1c,*(undefined4 *)(extraout_ESI + 0xbbc),\n                         *(undefined4 *)(extraout_ESI + 0xbc0));\n    iVar1 = iVar2 - iVar1;\n    if (iVar1 == 0) {\n      iVar1 = -1;\n    }\n  }" { (expression_statement "iVar1 = FUN_0001abe0(local_20,local_1c,*(undefined4 *)(extraout_ESI + 0xbbc),\n                         *(undefined4 *)(extraout_ESI + 0xbc0));" (assignment_expression "iVar1 = FUN_0001abe0(local_20,local_1c,*(undefined4 *)(extraout_ESI + 0xbbc),\n                         *(undefined4 *)(extraout_ESI + 0xbc0))" identifier = (call_expression "FUN_0001abe0(local_20,local_1c,*(undefined4 *)(extraout_ESI + 0xbbc),\n                         *(undefined4 *)(extraout_ESI + 0xbc0))" identifier (argument_list "(local_20,local_1c,*(undefined4 *)(extraout_ESI + 0xbbc),\n                         *(undefined4 *)(extraout_ESI + 0xbc0))" ( identifier , identifier , (pointer_expression "*(undefined4 *)(extraout_ESI + 0xbbc)" * (cast_expression "(undefined4 *)(extraout_ESI + 0xbbc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(extraout_ESI + 0xbbc)" ( (binary_expression "extraout_ESI + 0xbbc" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(extraout_ESI + 0xbc0)" * (cast_expression "(undefined4 *)(extraout_ESI + 0xbc0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(extraout_ESI + 0xbc0)" ( (binary_expression "extraout_ESI + 0xbc0" identifier + number_literal) )))) )))) ;) (expression_statement "iVar1 = iVar2 - iVar1;" (assignment_expression "iVar1 = iVar2 - iVar1" identifier = (binary_expression "iVar2 - iVar1" identifier - identifier)) ;) (if_statement "if (iVar1 == 0) {\n      iVar1 = -1;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar1 = -1;\n    }" { (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" identifier = number_literal) ;) })) })) (if_statement "if (local_18 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }" if (parenthesized_expression "(local_18 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_18 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar1;\n  }" { (return_statement "return iVar1;" return identifier ;) })) comment (expression_statement "FUN_0007c1a0();" (call_expression "FUN_0007c1a0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\ntimediff_t __regparm3 ftp_timeleft_accept(Curl_easy *data)\n\n{\n  int iVar1;\n  curltime newer;\n  timediff_t tVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  time_t local_24;\n  int iStack_20;\n  curltime now;\n  \n  iVar3 = (data->set).accepttimeout;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (iVar3 < 1) {\n    iVar3 = 60000;\n  }\n  Curl_now();\n  now.tv_sec = local_24;\n  now.tv_usec = iStack_20;\n  tVar2 = Curl_timeleft(data,&now,false);\n  if ((tVar2 == 0) || (iVar3 <= tVar2)) {\n    newer.tv_usec = now.tv_usec;\n    newer.tv_sec = now.tv_sec;\n    tVar2 = Curl_timediff(newer,(data->progress).t_acceptdata);\n    tVar2 = iVar3 - tVar2;\n    if (tVar2 == 0) {\n      tVar2 = -1;\n    }\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return tVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "timediff_t __regparm3 ftp_timeleft_accept(Curl_easy *data)\n\n{\n  int iVar1;\n  curltime newer;\n  timediff_t tVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  time_t local_24;\n  int iStack_20;\n  curltime now;\n  \n  iVar3 = (data->set).accepttimeout;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (iVar3 < 1) {\n    iVar3 = 60000;\n  }\n  Curl_now();\n  now.tv_sec = local_24;\n  now.tv_usec = iStack_20;\n  tVar2 = Curl_timeleft(data,&now,false);\n  if ((tVar2 == 0) || (iVar3 <= tVar2)) {\n    newer.tv_usec = now.tv_usec;\n    newer.tv_sec = now.tv_sec;\n    tVar2 = Curl_timediff(newer,(data->progress).t_acceptdata);\n    tVar2 = iVar3 - tVar2;\n    if (tVar2 == 0) {\n      tVar2 = -1;\n    }\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return tVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "ftp_timeleft_accept(Curl_easy *data)" identifier (parameter_list "(Curl_easy *data)" ( (parameter_declaration "Curl_easy *data" type_identifier (pointer_declarator "*data" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  curltime newer;\n  timediff_t tVar2;\n  int iVar3;\n  int in_GS_OFFSET;\n  time_t local_24;\n  int iStack_20;\n  curltime now;\n  \n  iVar3 = (data->set).accepttimeout;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  if (iVar3 < 1) {\n    iVar3 = 60000;\n  }\n  Curl_now();\n  now.tv_sec = local_24;\n  now.tv_usec = iStack_20;\n  tVar2 = Curl_timeleft(data,&now,false);\n  if ((tVar2 == 0) || (iVar3 <= tVar2)) {\n    newer.tv_usec = now.tv_usec;\n    newer.tv_sec = now.tv_sec;\n    tVar2 = Curl_timediff(newer,(data->progress).t_acceptdata);\n    tVar2 = iVar3 - tVar2;\n    if (tVar2 == 0) {\n      tVar2 = -1;\n    }\n  }\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return tVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "curltime newer;" type_identifier identifier ;) (declaration "timediff_t tVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "time_t local_24;" type_identifier identifier ;) (declaration "int iStack_20;" primitive_type identifier ;) (declaration "curltime now;" type_identifier identifier ;) (expression_statement "iVar3 = (data->set).accepttimeout;" (assignment_expression "iVar3 = (data->set).accepttimeout" identifier = (field_expression "(data->set).accepttimeout" (parenthesized_expression "(data->set)" ( (field_expression "data->set" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (iVar3 < 1) {\n    iVar3 = 60000;\n  }" if (parenthesized_expression "(iVar3 < 1)" ( (binary_expression "iVar3 < 1" identifier < number_literal) )) (compound_statement "{\n    iVar3 = 60000;\n  }" { (expression_statement "iVar3 = 60000;" (assignment_expression "iVar3 = 60000" identifier = number_literal) ;) })) (expression_statement "Curl_now();" (call_expression "Curl_now()" identifier (argument_list "()" ( ))) ;) (expression_statement "now.tv_sec = local_24;" (assignment_expression "now.tv_sec = local_24" (field_expression "now.tv_sec" identifier . field_identifier) = identifier) ;) (expression_statement "now.tv_usec = iStack_20;" (assignment_expression "now.tv_usec = iStack_20" (field_expression "now.tv_usec" identifier . field_identifier) = identifier) ;) (expression_statement "tVar2 = Curl_timeleft(data,&now,false);" (assignment_expression "tVar2 = Curl_timeleft(data,&now,false)" identifier = (call_expression "Curl_timeleft(data,&now,false)" identifier (argument_list "(data,&now,false)" ( identifier , (pointer_expression "&now" & identifier) , false )))) ;) (if_statement "if ((tVar2 == 0) || (iVar3 <= tVar2)) {\n    newer.tv_usec = now.tv_usec;\n    newer.tv_sec = now.tv_sec;\n    tVar2 = Curl_timediff(newer,(data->progress).t_acceptdata);\n    tVar2 = iVar3 - tVar2;\n    if (tVar2 == 0) {\n      tVar2 = -1;\n    }\n  }" if (parenthesized_expression "((tVar2 == 0) || (iVar3 <= tVar2))" ( (binary_expression "(tVar2 == 0) || (iVar3 <= tVar2)" (parenthesized_expression "(tVar2 == 0)" ( (binary_expression "tVar2 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar3 <= tVar2)" ( (binary_expression "iVar3 <= tVar2" identifier <= identifier) ))) )) (compound_statement "{\n    newer.tv_usec = now.tv_usec;\n    newer.tv_sec = now.tv_sec;\n    tVar2 = Curl_timediff(newer,(data->progress).t_acceptdata);\n    tVar2 = iVar3 - tVar2;\n    if (tVar2 == 0) {\n      tVar2 = -1;\n    }\n  }" { (expression_statement "newer.tv_usec = now.tv_usec;" (assignment_expression "newer.tv_usec = now.tv_usec" (field_expression "newer.tv_usec" identifier . field_identifier) = (field_expression "now.tv_usec" identifier . field_identifier)) ;) (expression_statement "newer.tv_sec = now.tv_sec;" (assignment_expression "newer.tv_sec = now.tv_sec" (field_expression "newer.tv_sec" identifier . field_identifier) = (field_expression "now.tv_sec" identifier . field_identifier)) ;) (expression_statement "tVar2 = Curl_timediff(newer,(data->progress).t_acceptdata);" (assignment_expression "tVar2 = Curl_timediff(newer,(data->progress).t_acceptdata)" identifier = (call_expression "Curl_timediff(newer,(data->progress).t_acceptdata)" identifier (argument_list "(newer,(data->progress).t_acceptdata)" ( identifier , (field_expression "(data->progress).t_acceptdata" (parenthesized_expression "(data->progress)" ( (field_expression "data->progress" identifier -> field_identifier) )) . field_identifier) )))) ;) (expression_statement "tVar2 = iVar3 - tVar2;" (assignment_expression "tVar2 = iVar3 - tVar2" identifier = (binary_expression "iVar3 - tVar2" identifier - identifier)) ;) (if_statement "if (tVar2 == 0) {\n      tVar2 = -1;\n    }" if (parenthesized_expression "(tVar2 == 0)" ( (binary_expression "tVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      tVar2 = -1;\n    }" { (expression_statement "tVar2 = -1;" (assignment_expression "tVar2 = -1" identifier = number_literal) ;) })) })) (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return tVar2;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return tVar2;\n  }" { (return_statement "return tVar2;" return identifier ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "int FUN_00028e50(void)\n\n{\n  int iVar1;\n  int extraout_ESI;\n  int iVar2;\n  int in_GS_OFFSET;\n  undefined4 local_2c;\n  undefined4 local_28 [2];\n  undefined4 local_20;\n  undefined4 local_1c;\n  int local_18;\n  undefined4 local_14;\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x28e5a;\n  entry();\n  iVar2 = *(int *)(extraout_ESI + 0x63c);\n  local_14 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  if (iVar2 < 1) {\n    iVar2 = 60000;\n  }\n  FUN_0001ab40(local_28);\n  local_20 = local_2c;\n  local_1c = local_28[0];\n  iVar1 = FUN_0003f980(extraout_ESI,&local_20,0);\n  if ((iVar1 == 0) || (iVar2 <= iVar1)) {\n    iVar1 = FUN_0001abe0(local_20,local_1c,*(undefined4 *)(extraout_ESI + 0xbbc),\n                         *(undefined4 *)(extraout_ESI + 0xbc0));\n    iVar1 = iVar2 - iVar1;\n    if (iVar1 == 0) {\n      iVar1 = -1;\n    }\n  }\n  if (local_18 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    \n  FUN_0007c1a0();\n}\n\n" (function_definition "int FUN_00028e50(void)\n\n{\n  int iVar1;\n  int extraout_ESI;\n  int iVar2;\n  int in_GS_OFFSET;\n  undefined4 local_2c;\n  undefined4 local_28 [2];\n  undefined4 local_20;\n  undefined4 local_1c;\n  int local_18;\n  undefined4 local_14;\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x28e5a;\n  entry();\n  iVar2 = *(int *)(extraout_ESI + 0x63c);\n  local_14 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  if (iVar2 < 1) {\n    iVar2 = 60000;\n  }\n  FUN_0001ab40(local_28);\n  local_20 = local_2c;\n  local_1c = local_28[0];\n  iVar1 = FUN_0003f980(extraout_ESI,&local_20,0);\n  if ((iVar1 == 0) || (iVar2 <= iVar1)) {\n    iVar1 = FUN_0001abe0(local_20,local_1c,*(undefined4 *)(extraout_ESI + 0xbbc),\n                         *(undefined4 *)(extraout_ESI + 0xbc0));\n    iVar1 = iVar2 - iVar1;\n    if (iVar1 == 0) {\n      iVar1 = -1;\n    }\n  }\n  if (local_18 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    \n  FUN_0007c1a0();\n}" primitive_type (function_declarator "FUN_00028e50(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  int extraout_ESI;\n  int iVar2;\n  int in_GS_OFFSET;\n  undefined4 local_2c;\n  undefined4 local_28 [2];\n  undefined4 local_20;\n  undefined4 local_1c;\n  int local_18;\n  undefined4 local_14;\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x28e5a;\n  entry();\n  iVar2 = *(int *)(extraout_ESI + 0x63c);\n  local_14 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  if (iVar2 < 1) {\n    iVar2 = 60000;\n  }\n  FUN_0001ab40(local_28);\n  local_20 = local_2c;\n  local_1c = local_28[0];\n  iVar1 = FUN_0003f980(extraout_ESI,&local_20,0);\n  if ((iVar1 == 0) || (iVar2 <= iVar1)) {\n    iVar1 = FUN_0001abe0(local_20,local_1c,*(undefined4 *)(extraout_ESI + 0xbbc),\n                         *(undefined4 *)(extraout_ESI + 0xbc0));\n    iVar1 = iVar2 - iVar1;\n    if (iVar1 == 0) {\n      iVar1 = -1;\n    }\n  }\n  if (local_18 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    \n  FUN_0007c1a0();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int extraout_ESI;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 local_2c;" type_identifier identifier ;) (declaration "undefined4 local_28 [2];" type_identifier (array_declarator "local_28 [2]" identifier [ number_literal ]) ;) (declaration "undefined4 local_20;" type_identifier identifier ;) (declaration "undefined4 local_1c;" type_identifier identifier ;) (declaration "int local_18;" primitive_type identifier ;) (declaration "undefined4 local_14;" type_identifier identifier ;) (declaration "undefined4 uStack_10;" type_identifier identifier ;) (expression_statement "uStack_10 = 0x28e5a;" (assignment_expression "uStack_10 = 0x28e5a" identifier = number_literal) ;) (expression_statement "entry();" (call_expression "entry()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar2 = *(int *)(extraout_ESI + 0x63c);" (assignment_expression "iVar2 = *(int *)(extraout_ESI + 0x63c)" identifier = (pointer_expression "*(int *)(extraout_ESI + 0x63c)" * (cast_expression "(int *)(extraout_ESI + 0x63c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(extraout_ESI + 0x63c)" ( (binary_expression "extraout_ESI + 0x63c" identifier + number_literal) ))))) ;) (expression_statement "local_14 = *(undefined4 *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_14 = *(undefined4 *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(undefined4 *)(in_GS_OFFSET + 0x14)" * (cast_expression "(undefined4 *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (if_statement "if (iVar2 < 1) {\n    iVar2 = 60000;\n  }" if (parenthesized_expression "(iVar2 < 1)" ( (binary_expression "iVar2 < 1" identifier < number_literal) )) (compound_statement "{\n    iVar2 = 60000;\n  }" { (expression_statement "iVar2 = 60000;" (assignment_expression "iVar2 = 60000" identifier = number_literal) ;) })) (expression_statement "FUN_0001ab40(local_28);" (call_expression "FUN_0001ab40(local_28)" identifier (argument_list "(local_28)" ( identifier ))) ;) (expression_statement "local_20 = local_2c;" (assignment_expression "local_20 = local_2c" identifier = identifier) ;) (expression_statement "local_1c = local_28[0];" (assignment_expression "local_1c = local_28[0]" identifier = (subscript_expression "local_28[0]" identifier [ number_literal ])) ;) (expression_statement "iVar1 = FUN_0003f980(extraout_ESI,&local_20,0);" (assignment_expression "iVar1 = FUN_0003f980(extraout_ESI,&local_20,0)" identifier = (call_expression "FUN_0003f980(extraout_ESI,&local_20,0)" identifier (argument_list "(extraout_ESI,&local_20,0)" ( identifier , (pointer_expression "&local_20" & identifier) , number_literal )))) ;) (if_statement "if ((iVar1 == 0) || (iVar2 <= iVar1)) {\n    iVar1 = FUN_0001abe0(local_20,local_1c,*(undefined4 *)(extraout_ESI + 0xbbc),\n                         *(undefined4 *)(extraout_ESI + 0xbc0));\n    iVar1 = iVar2 - iVar1;\n    if (iVar1 == 0) {\n      iVar1 = -1;\n    }\n  }" if (parenthesized_expression "((iVar1 == 0) || (iVar2 <= iVar1))" ( (binary_expression "(iVar1 == 0) || (iVar2 <= iVar1)" (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) || (parenthesized_expression "(iVar2 <= iVar1)" ( (binary_expression "iVar2 <= iVar1" identifier <= identifier) ))) )) (compound_statement "{\n    iVar1 = FUN_0001abe0(local_20,local_1c,*(undefined4 *)(extraout_ESI + 0xbbc),\n                         *(undefined4 *)(extraout_ESI + 0xbc0));\n    iVar1 = iVar2 - iVar1;\n    if (iVar1 == 0) {\n      iVar1 = -1;\n    }\n  }" { (expression_statement "iVar1 = FUN_0001abe0(local_20,local_1c,*(undefined4 *)(extraout_ESI + 0xbbc),\n                         *(undefined4 *)(extraout_ESI + 0xbc0));" (assignment_expression "iVar1 = FUN_0001abe0(local_20,local_1c,*(undefined4 *)(extraout_ESI + 0xbbc),\n                         *(undefined4 *)(extraout_ESI + 0xbc0))" identifier = (call_expression "FUN_0001abe0(local_20,local_1c,*(undefined4 *)(extraout_ESI + 0xbbc),\n                         *(undefined4 *)(extraout_ESI + 0xbc0))" identifier (argument_list "(local_20,local_1c,*(undefined4 *)(extraout_ESI + 0xbbc),\n                         *(undefined4 *)(extraout_ESI + 0xbc0))" ( identifier , identifier , (pointer_expression "*(undefined4 *)(extraout_ESI + 0xbbc)" * (cast_expression "(undefined4 *)(extraout_ESI + 0xbbc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(extraout_ESI + 0xbbc)" ( (binary_expression "extraout_ESI + 0xbbc" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(extraout_ESI + 0xbc0)" * (cast_expression "(undefined4 *)(extraout_ESI + 0xbc0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(extraout_ESI + 0xbc0)" ( (binary_expression "extraout_ESI + 0xbc0" identifier + number_literal) )))) )))) ;) (expression_statement "iVar1 = iVar2 - iVar1;" (assignment_expression "iVar1 = iVar2 - iVar1" identifier = (binary_expression "iVar2 - iVar1" identifier - identifier)) ;) (if_statement "if (iVar1 == 0) {\n      iVar1 = -1;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar1 = -1;\n    }" { (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" identifier = number_literal) ;) })) })) (if_statement "if (local_18 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }" if (parenthesized_expression "(local_18 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_18 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar1;\n  }" { (return_statement "return iVar1;" return identifier ;) })) (expression_statement "FUN_0007c1a0();" (call_expression "FUN_0007c1a0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (binary_expression IDENT <= IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , (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) )))) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "int FUN_00028e50(void)\n\n{\n  int iVar1;\n  int extraout_ESI;\n  int iVar2;\n  int in_GS_OFFSET;\n  undefined4 local_2c;\n  undefined4 local_28 [2];\n  undefined4 local_20;\n  undefined4 local_1c;\n  int local_18;\n  undefined4 local_14;\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x28e5a;\n  entry();\n  iVar2 = *(int *)(extraout_ESI + 0x63c);\n  local_14 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  if (iVar2 < 1) {\n    iVar2 = 60000;\n  }\n  FUN_0001ab40(local_28);\n  local_20 = local_2c;\n  local_1c = local_28[0];\n  iVar1 = FUN_0003f980(extraout_ESI,&local_20,0);\n  if ((iVar1 == 0) || (iVar2 <= iVar1)) {\n    iVar1 = FUN_0001abe0(local_20,local_1c,*(undefined4 *)(extraout_ESI + 0xbbc),\n                         *(undefined4 *)(extraout_ESI + 0xbc0));\n    iVar1 = iVar2 - iVar1;\n    if (iVar1 == 0) {\n      iVar1 = -1;\n    }\n  }\n  if (local_18 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    \n  FUN_0007c1a0();\n}" (primitive_type "int") (function_declarator "FUN_00028e50(void)" (identifier "FUN_00028e50") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int iVar1;\n  int extraout_ESI;\n  int iVar2;\n  int in_GS_OFFSET;\n  undefined4 local_2c;\n  undefined4 local_28 [2];\n  undefined4 local_20;\n  undefined4 local_1c;\n  int local_18;\n  undefined4 local_14;\n  undefined4 uStack_10;\n  \n  uStack_10 = 0x28e5a;\n  entry();\n  iVar2 = *(int *)(extraout_ESI + 0x63c);\n  local_14 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  if (iVar2 < 1) {\n    iVar2 = 60000;\n  }\n  FUN_0001ab40(local_28);\n  local_20 = local_2c;\n  local_1c = local_28[0];\n  iVar1 = FUN_0003f980(extraout_ESI,&local_20,0);\n  if ((iVar1 == 0) || (iVar2 <= iVar1)) {\n    iVar1 = FUN_0001abe0(local_20,local_1c,*(undefined4 *)(extraout_ESI + 0xbbc),\n                         *(undefined4 *)(extraout_ESI + 0xbc0));\n    iVar1 = iVar2 - iVar1;\n    if (iVar1 == 0) {\n      iVar1 = -1;\n    }\n  }\n  if (local_18 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }\n                    \n  FUN_0007c1a0();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int extraout_ESI;" (primitive_type "int") (identifier "extraout_ESI") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined4 local_2c;" (type_identifier "undefined4") (identifier "local_2c") (; ";")) (declaration "undefined4 local_28 [2];" (type_identifier "undefined4") (array_declarator "local_28 [2]" (identifier "local_28") ([ "[") (number_literal "2") (] "]")) (; ";")) (declaration "undefined4 local_20;" (type_identifier "undefined4") (identifier "local_20") (; ";")) (declaration "undefined4 local_1c;" (type_identifier "undefined4") (identifier "local_1c") (; ";")) (declaration "int local_18;" (primitive_type "int") (identifier "local_18") (; ";")) (declaration "undefined4 local_14;" (type_identifier "undefined4") (identifier "local_14") (; ";")) (declaration "undefined4 uStack_10;" (type_identifier "undefined4") (identifier "uStack_10") (; ";")) (expression_statement "uStack_10 = 0x28e5a;" (assignment_expression "uStack_10 = 0x28e5a" (identifier "uStack_10") (= "=") (number_literal "0x28e5a")) (; ";")) (expression_statement "entry();" (call_expression "entry()" (identifier "entry") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar2 = *(int *)(extraout_ESI + 0x63c);" (assignment_expression "iVar2 = *(int *)(extraout_ESI + 0x63c)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(extraout_ESI + 0x63c)" (* "*") (cast_expression "(int *)(extraout_ESI + 0x63c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(extraout_ESI + 0x63c)" (( "(") (binary_expression "extraout_ESI + 0x63c" (identifier "extraout_ESI") (+ "+") (number_literal "0x63c")) () ")"))))) (; ";")) (expression_statement "local_14 = *(undefined4 *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_14 = *(undefined4 *)(in_GS_OFFSET + 0x14)" (identifier "local_14") (= "=") (pointer_expression "*(undefined4 *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(undefined4 *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (if_statement "if (iVar2 < 1) {\n    iVar2 = 60000;\n  }" (if "if") (parenthesized_expression "(iVar2 < 1)" (( "(") (binary_expression "iVar2 < 1" (identifier "iVar2") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n    iVar2 = 60000;\n  }" ({ "{") (expression_statement "iVar2 = 60000;" (assignment_expression "iVar2 = 60000" (identifier "iVar2") (= "=") (number_literal "60000")) (; ";")) (} "}"))) (expression_statement "FUN_0001ab40(local_28);" (call_expression "FUN_0001ab40(local_28)" (identifier "FUN_0001ab40") (argument_list "(local_28)" (( "(") (identifier "local_28") () ")"))) (; ";")) (expression_statement "local_20 = local_2c;" (assignment_expression "local_20 = local_2c" (identifier "local_20") (= "=") (identifier "local_2c")) (; ";")) (expression_statement "local_1c = local_28[0];" (assignment_expression "local_1c = local_28[0]" (identifier "local_1c") (= "=") (subscript_expression "local_28[0]" (identifier "local_28") ([ "[") (number_literal "0") (] "]"))) (; ";")) (expression_statement "iVar1 = FUN_0003f980(extraout_ESI,&local_20,0);" (assignment_expression "iVar1 = FUN_0003f980(extraout_ESI,&local_20,0)" (identifier "iVar1") (= "=") (call_expression "FUN_0003f980(extraout_ESI,&local_20,0)" (identifier "FUN_0003f980") (argument_list "(extraout_ESI,&local_20,0)" (( "(") (identifier "extraout_ESI") (, ",") (pointer_expression "&local_20" (& "&") (identifier "local_20")) (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if ((iVar1 == 0) || (iVar2 <= iVar1)) {\n    iVar1 = FUN_0001abe0(local_20,local_1c,*(undefined4 *)(extraout_ESI + 0xbbc),\n                         *(undefined4 *)(extraout_ESI + 0xbc0));\n    iVar1 = iVar2 - iVar1;\n    if (iVar1 == 0) {\n      iVar1 = -1;\n    }\n  }" (if "if") (parenthesized_expression "((iVar1 == 0) || (iVar2 <= iVar1))" (( "(") (binary_expression "(iVar1 == 0) || (iVar2 <= iVar1)" (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(iVar2 <= iVar1)" (( "(") (binary_expression "iVar2 <= iVar1" (identifier "iVar2") (<= "<=") (identifier "iVar1")) () ")"))) () ")")) (compound_statement "{\n    iVar1 = FUN_0001abe0(local_20,local_1c,*(undefined4 *)(extraout_ESI + 0xbbc),\n                         *(undefined4 *)(extraout_ESI + 0xbc0));\n    iVar1 = iVar2 - iVar1;\n    if (iVar1 == 0) {\n      iVar1 = -1;\n    }\n  }" ({ "{") (expression_statement "iVar1 = FUN_0001abe0(local_20,local_1c,*(undefined4 *)(extraout_ESI + 0xbbc),\n                         *(undefined4 *)(extraout_ESI + 0xbc0));" (assignment_expression "iVar1 = FUN_0001abe0(local_20,local_1c,*(undefined4 *)(extraout_ESI + 0xbbc),\n                         *(undefined4 *)(extraout_ESI + 0xbc0))" (identifier "iVar1") (= "=") (call_expression "FUN_0001abe0(local_20,local_1c,*(undefined4 *)(extraout_ESI + 0xbbc),\n                         *(undefined4 *)(extraout_ESI + 0xbc0))" (identifier "FUN_0001abe0") (argument_list "(local_20,local_1c,*(undefined4 *)(extraout_ESI + 0xbbc),\n                         *(undefined4 *)(extraout_ESI + 0xbc0))" (( "(") (identifier "local_20") (, ",") (identifier "local_1c") (, ",") (pointer_expression "*(undefined4 *)(extraout_ESI + 0xbbc)" (* "*") (cast_expression "(undefined4 *)(extraout_ESI + 0xbbc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(extraout_ESI + 0xbbc)" (( "(") (binary_expression "extraout_ESI + 0xbbc" (identifier "extraout_ESI") (+ "+") (number_literal "0xbbc")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(extraout_ESI + 0xbc0)" (* "*") (cast_expression "(undefined4 *)(extraout_ESI + 0xbc0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(extraout_ESI + 0xbc0)" (( "(") (binary_expression "extraout_ESI + 0xbc0" (identifier "extraout_ESI") (+ "+") (number_literal "0xbc0")) () ")")))) () ")")))) (; ";")) (expression_statement "iVar1 = iVar2 - iVar1;" (assignment_expression "iVar1 = iVar2 - iVar1" (identifier "iVar1") (= "=") (binary_expression "iVar2 - iVar1" (identifier "iVar2") (- "-") (identifier "iVar1"))) (; ";")) (if_statement "if (iVar1 == 0) {\n      iVar1 = -1;\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar1 = -1;\n    }" ({ "{") (expression_statement "iVar1 = -1;" (assignment_expression "iVar1 = -1" (identifier "iVar1") (= "=") (number_literal "-1")) (; ";")) (} "}"))) (} "}"))) (if_statement "if (local_18 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar1;\n  }" (if "if") (parenthesized_expression "(local_18 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_18 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_18") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return iVar1;\n  }" ({ "{") (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (expression_statement "FUN_0007c1a0();" (call_expression "FUN_0007c1a0()" (identifier "FUN_0007c1a0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

type_1 __regparm3 function_1(type_2 *data)

{
  int var_7;
  type_3 newer;
  type_1 var_5;
  int var_2;
  int var_1;
  type_4 local_24;
  int iStack_20;
  type_3 now;
  
  var_2 = (data->set).accepttimeout;
  var_7 = *(int *)(var_1 + 0x14);
  if (var_2 < 1) {
    var_2 = 60000;
  }
  var_3();
  now.tv_sec = local_24;
  now.tv_usec = iStack_20;
  var_5 = var_4(data,&now,false);
  if ((var_5 == 0) || (var_2 <= var_5)) {
    newer.tv_usec = now.tv_usec;
    newer.tv_sec = now.tv_sec;
    var_5 = var_6(newer,(data->progress).t_acceptdata);
    var_5 = var_2 - var_5;
    if (var_5 == 0) {
      var_5 = -1;
    }
  }
  if (var_7 == *(int *)(var_1 + 0x14)) {
    return var_5;
  }
                    /* WARNING: Subroutine does not return */
  var_8();
}


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

int MASKED(void)

{
  int iVar1;
  int extraout_ESI;
  int iVar2;
  int in_GS_OFFSET;
  undefined4 local_2c;
  undefined4 local_28 [2];
  undefined4 local_20;
  undefined4 local_1c;
  int local_18;
  undefined4 local_14;
  undefined4 uStack_10;
  
  uStack_10 = 0x28e5a;
  entry();
  iVar2 = *(int *)(extraout_ESI + 0x63c);
  local_14 = *(undefined4 *)(in_GS_OFFSET + 0x14);
  if (iVar2 < 1) {
    iVar2 = 60000;
  }
  FUN_0001ab40(local_28);
  local_20 = local_2c;
  local_1c = local_28[0];
  iVar1 = FUN_0003f980(extraout_ESI,&local_20,0);
  if ((iVar1 == 0) || (iVar2 <= iVar1)) {
    iVar1 = FUN_0001abe0(local_20,local_1c,*(undefined4 *)(extraout_ESI + 0xbbc),
                         *(undefined4 *)(extraout_ESI + 0xbc0));
    iVar1 = iVar2 - iVar1;
    if (iVar1 == 0) {
      iVar1 = -1;
    }
  }
  if (local_18 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar1;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0007c1a0();
}

