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

CURLMcode curl_multi_timeout(Curl_multi *multi,long *timeout_ms)

{
  int iVar1;
  int iVar2;
  curltime i;
  curltime older;
  CURLMcode CVar3;
  Curl_tree *pCVar4;
  timediff_t tVar5;
  int in_GS_OFFSET;
  int local_34;
  int iStack_30;
  
  iVar2 = *(int *)(in_GS_OFFSET + 0x14);
  CVar3 = CURLM_BAD_HANDLE;
  if (((multi != (Curl_multi *)0x0) && (multi->type == 0xbab1e)) &&
     (CVar3 = CURLM_RECURSIVE_API_CALL, multi->in_callback == false)) {
    if (multi->timetree == (Curl_tree *)0x0) {
      *timeout_ms = -1;
      CVar3 = CURLM_OK;
    }
    else {
      Curl_now();
      i.tv_usec = DAT_000879fc;
      i.tv_sec = tv_zero_12339;
      pCVar4 = Curl_splay(i,multi->timetree);
      iVar1 = (pCVar4->key).tv_sec;
      multi->timetree = pCVar4;
      if ((iVar1 < local_34) || ((iVar1 <= local_34 && ((pCVar4->key).tv_usec <= iStack_30)))) {
        *timeout_ms = 0;
        CVar3 = CURLM_OK;
      }
      else {
        older.tv_usec = iStack_30;
        older.tv_sec = local_34;
        tVar5 = Curl_timediff(pCVar4->key,older);
        if (tVar5 < 1) {
          *timeout_ms = 1;
          CVar3 = CURLM_OK;
        }
        else {
          *timeout_ms = tVar5;
          CVar3 = CURLM_OK;
        }
      }
    }
  }
  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {
    return CVar3;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



undefined4 curl_multi_timeout(undefined4 *param_1)

{
  undefined4 uVar1;
  int iVar2;
  int iVar3;
  int unaff_EBX;
  undefined1 *puVar4;
  int in_GS_OFFSET;
  int *unaff_retaddr;
  undefined1 auStack_54 [4];
  undefined1 auStack_50 [8];
  int *local_48;
  int *local_44;
  undefined4 *local_40;
  int *local_3c;
  int local_38 [5];
  undefined4 local_24;
  undefined4 uStack_14;
  
  uStack_14 = 0x46aa9;
  entry();
  local_24 = *(undefined4 *)(in_GS_OFFSET + 0x14);
  uVar1 = 1;
  puVar4 = auStack_50;
  if (((unaff_retaddr != (int *)0x0) && (puVar4 = auStack_50, *unaff_retaddr == 0xbab1e)) &&
     (uVar1 = 8, puVar4 = auStack_50, (char)unaff_retaddr[0x40] == '\0')) {
    if (unaff_retaddr[0x1a] == 0) {
      *param_1 = 0xffffffff;
      uVar1 = 0;
      puVar4 = auStack_50;
    }
    else {
      local_40 = param_1;
      FUN_0001ab90(local_38);
      local_48 = local_3c;
      local_40 = (undefined4 *)local_38[0];
      iVar2 = FUN_0004fdc0(*(undefined4 *)(unaff_EBX + 0x40f4f),*(undefined4 *)(unaff_EBX + 0x40f53)
                           ,unaff_retaddr[0x1a]);
      iVar3 = *(int *)(iVar2 + 0x10);
      unaff_retaddr[0x1a] = iVar2;
      if ((iVar3 < (int)local_48) ||
         ((iVar3 <= (int)local_48 && (*(int *)(iVar2 + 0x14) <= (int)local_40)))) {
        *local_44 = 0;
        uVar1 = 0;
        puVar4 = auStack_54;
      }
      else {
        local_48 = local_44;
        iVar3 = FUN_0001ac30(*(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 0x14),local_3c,
                             local_38[0]);
        if (iVar3 < 1) {
          *local_48 = 1;
          uVar1 = 0;
          puVar4 = auStack_54;
        }
        else {
          *local_48 = iVar3;
          uVar1 = 0;
          puVar4 = auStack_54;
        }
      }
    }
  }
  if (*(int *)(puVar4 + 0x2c) == *(int *)(in_GS_OFFSET + 0x14)) {
    return uVar1;
  }
                    /* WARNING: Subroutine does not return */
  *(undefined **)(puVar4 + -4) = &UNK_00046bba;
  FUN_00082f60();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00019ed0
ADD EBX,0x6fd37
SUB ESP,0x3c
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x2c],EAX
XOR EAX,EAX
MOV ESI,dword ptr [ESP + 0x50]
MOV EDX,dword ptr [ESP + 0x54]
MOV EAX,0x1
TEST ESI,ESI
JZ 0x00046ad7
CMP dword ptr [ESI],0xbab1e
JZ 0x00046af0
MOV EDI,dword ptr [ESP + 0x2c]
XOR EDI,dword ptr GS:[0x14]
JNZ 0x00046bb5
ADD ESP,0x3c
POP EBX
POP ESI
POP EDI
POP EBP
RET
CMP byte ptr [ESI + 0x100],0x0
MOV EAX,0x8
JNZ 0x00046ad7
MOV EAX,dword ptr [ESI + 0x68]
TEST EAX,EAX
JZ 0x00046b70
MOV dword ptr [ESP + 0x10],EDX
LEA EAX,[ESP + 0x18]
SUB ESP,0xc
PUSH EAX
CALL 0x0001ab90
MOV EDI,dword ptr [ESP + 0x24]
MOV EBP,dword ptr [ESP + 0x28]
SUB ESP,0x8
MOV dword ptr [ESP + 0x20],EDI
MOV dword ptr [ESP + 0x28],EBP
PUSH dword ptr [ESI + 0x68]
PUSH dword ptr [EBX + 0xfffd121c]
PUSH dword ptr [EBX + 0xfffd1218]
CALL 0x0004fdc0
ADD ESP,0x20
MOV ECX,dword ptr [ESP + 0xc]
MOV EDX,dword ptr [ESP + 0x10]
CMP ECX,dword ptr [EAX + 0x10]
MOV dword ptr [ESI + 0x68],EAX
JG 0x00046b5b
JL 0x00046b80
MOV ECX,dword ptr [ESP + 0x14]
CMP ECX,dword ptr [EAX + 0x14]
JL 0x00046b80
MOV dword ptr [EDX],0x0
XOR EAX,EAX
JMP 0x00046ad7
MOV dword ptr [EDX],0xffffffff
XOR EAX,EAX
JMP 0x00046ad7
MOV dword ptr [ESP + 0xc],EDX
PUSH EBP
PUSH EDI
PUSH dword ptr [EAX + 0x14]
PUSH dword ptr [EAX + 0x10]
CALL 0x0001ac30
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0xc]
TEST EAX,EAX
JLE 0x00046ba8
MOV dword ptr [EDX],EAX
XOR EAX,EAX
JMP 0x00046ad7
MOV dword ptr [EDX],0x1
XOR EAX,EAX
JMP 0x00046ad7
CALL 0x00082f60
(translation_unit "undefined4 curl_multi_timeout(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  int unaff_EBX;\n  undefined1 *puVar4;\n  int in_GS_OFFSET;\n  int *unaff_retaddr;\n  undefined1 auStack_54 [4];\n  undefined1 auStack_50 [8];\n  int *local_48;\n  int *local_44;\n  undefined4 *local_40;\n  int *local_3c;\n  int local_38 [5];\n  undefined4 local_24;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x46aa9;\n  entry();\n  local_24 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  uVar1 = 1;\n  puVar4 = auStack_50;\n  if (((unaff_retaddr != (int *)0x0) && (puVar4 = auStack_50, *unaff_retaddr == 0xbab1e)) &&\n     (uVar1 = 8, puVar4 = auStack_50, (char)unaff_retaddr[0x40] == '\0')) {\n    if (unaff_retaddr[0x1a] == 0) {\n      *param_1 = 0xffffffff;\n      uVar1 = 0;\n      puVar4 = auStack_50;\n    }\n    else {\n      local_40 = param_1;\n      FUN_0001ab90(local_38);\n      local_48 = local_3c;\n      local_40 = (undefined4 *)local_38[0];\n      iVar2 = FUN_0004fdc0(*(undefined4 *)(unaff_EBX + 0x40f4f),*(undefined4 *)(unaff_EBX + 0x40f53)\n                           ,unaff_retaddr[0x1a]);\n      iVar3 = *(int *)(iVar2 + 0x10);\n      unaff_retaddr[0x1a] = iVar2;\n      if ((iVar3 < (int)local_48) ||\n         ((iVar3 <= (int)local_48 && (*(int *)(iVar2 + 0x14) <= (int)local_40)))) {\n        *local_44 = 0;\n        uVar1 = 0;\n        puVar4 = auStack_54;\n      }\n      else {\n        local_48 = local_44;\n        iVar3 = FUN_0001ac30(*(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 0x14),local_3c,\n                             local_38[0]);\n        if (iVar3 < 1) {\n          *local_48 = 1;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n        else {\n          *local_48 = iVar3;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n      }\n    }\n  }\n  if (*(int *)(puVar4 + 0x2c) == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  *(undefined **)(puVar4 + -4) = &UNK_00046bba;\n  FUN_00082f60();\n}\n\n" (function_definition "undefined4 curl_multi_timeout(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  int unaff_EBX;\n  undefined1 *puVar4;\n  int in_GS_OFFSET;\n  int *unaff_retaddr;\n  undefined1 auStack_54 [4];\n  undefined1 auStack_50 [8];\n  int *local_48;\n  int *local_44;\n  undefined4 *local_40;\n  int *local_3c;\n  int local_38 [5];\n  undefined4 local_24;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x46aa9;\n  entry();\n  local_24 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  uVar1 = 1;\n  puVar4 = auStack_50;\n  if (((unaff_retaddr != (int *)0x0) && (puVar4 = auStack_50, *unaff_retaddr == 0xbab1e)) &&\n     (uVar1 = 8, puVar4 = auStack_50, (char)unaff_retaddr[0x40] == '\0')) {\n    if (unaff_retaddr[0x1a] == 0) {\n      *param_1 = 0xffffffff;\n      uVar1 = 0;\n      puVar4 = auStack_50;\n    }\n    else {\n      local_40 = param_1;\n      FUN_0001ab90(local_38);\n      local_48 = local_3c;\n      local_40 = (undefined4 *)local_38[0];\n      iVar2 = FUN_0004fdc0(*(undefined4 *)(unaff_EBX + 0x40f4f),*(undefined4 *)(unaff_EBX + 0x40f53)\n                           ,unaff_retaddr[0x1a]);\n      iVar3 = *(int *)(iVar2 + 0x10);\n      unaff_retaddr[0x1a] = iVar2;\n      if ((iVar3 < (int)local_48) ||\n         ((iVar3 <= (int)local_48 && (*(int *)(iVar2 + 0x14) <= (int)local_40)))) {\n        *local_44 = 0;\n        uVar1 = 0;\n        puVar4 = auStack_54;\n      }\n      else {\n        local_48 = local_44;\n        iVar3 = FUN_0001ac30(*(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 0x14),local_3c,\n                             local_38[0]);\n        if (iVar3 < 1) {\n          *local_48 = 1;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n        else {\n          *local_48 = iVar3;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n      }\n    }\n  }\n  if (*(int *)(puVar4 + 0x2c) == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  *(undefined **)(puVar4 + -4) = &UNK_00046bba;\n  FUN_00082f60();\n}" type_identifier (function_declarator "curl_multi_timeout(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  int unaff_EBX;\n  undefined1 *puVar4;\n  int in_GS_OFFSET;\n  int *unaff_retaddr;\n  undefined1 auStack_54 [4];\n  undefined1 auStack_50 [8];\n  int *local_48;\n  int *local_44;\n  undefined4 *local_40;\n  int *local_3c;\n  int local_38 [5];\n  undefined4 local_24;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x46aa9;\n  entry();\n  local_24 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  uVar1 = 1;\n  puVar4 = auStack_50;\n  if (((unaff_retaddr != (int *)0x0) && (puVar4 = auStack_50, *unaff_retaddr == 0xbab1e)) &&\n     (uVar1 = 8, puVar4 = auStack_50, (char)unaff_retaddr[0x40] == '\0')) {\n    if (unaff_retaddr[0x1a] == 0) {\n      *param_1 = 0xffffffff;\n      uVar1 = 0;\n      puVar4 = auStack_50;\n    }\n    else {\n      local_40 = param_1;\n      FUN_0001ab90(local_38);\n      local_48 = local_3c;\n      local_40 = (undefined4 *)local_38[0];\n      iVar2 = FUN_0004fdc0(*(undefined4 *)(unaff_EBX + 0x40f4f),*(undefined4 *)(unaff_EBX + 0x40f53)\n                           ,unaff_retaddr[0x1a]);\n      iVar3 = *(int *)(iVar2 + 0x10);\n      unaff_retaddr[0x1a] = iVar2;\n      if ((iVar3 < (int)local_48) ||\n         ((iVar3 <= (int)local_48 && (*(int *)(iVar2 + 0x14) <= (int)local_40)))) {\n        *local_44 = 0;\n        uVar1 = 0;\n        puVar4 = auStack_54;\n      }\n      else {\n        local_48 = local_44;\n        iVar3 = FUN_0001ac30(*(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 0x14),local_3c,\n                             local_38[0]);\n        if (iVar3 < 1) {\n          *local_48 = 1;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n        else {\n          *local_48 = iVar3;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n      }\n    }\n  }\n  if (*(int *)(puVar4 + 0x2c) == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  *(undefined **)(puVar4 + -4) = &UNK_00046bba;\n  FUN_00082f60();\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int unaff_EBX;" primitive_type identifier ;) (declaration "undefined1 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int *unaff_retaddr;" primitive_type (pointer_declarator "*unaff_retaddr" * identifier) ;) (declaration "undefined1 auStack_54 [4];" type_identifier (array_declarator "auStack_54 [4]" identifier [ number_literal ]) ;) (declaration "undefined1 auStack_50 [8];" type_identifier (array_declarator "auStack_50 [8]" identifier [ number_literal ]) ;) (declaration "int *local_48;" primitive_type (pointer_declarator "*local_48" * identifier) ;) (declaration "int *local_44;" primitive_type (pointer_declarator "*local_44" * identifier) ;) (declaration "undefined4 *local_40;" type_identifier (pointer_declarator "*local_40" * identifier) ;) (declaration "int *local_3c;" primitive_type (pointer_declarator "*local_3c" * identifier) ;) (declaration "int local_38 [5];" primitive_type (array_declarator "local_38 [5]" identifier [ number_literal ]) ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x46aa9;" (assignment_expression "uStack_14 = 0x46aa9" identifier = number_literal) ;) (expression_statement "entry();" (call_expression "entry()" identifier (argument_list "()" ( ))) ;) (expression_statement "local_24 = *(undefined4 *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_24 = *(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) ))))) ;) (expression_statement "uVar1 = 1;" (assignment_expression "uVar1 = 1" identifier = number_literal) ;) (expression_statement "puVar4 = auStack_50;" (assignment_expression "puVar4 = auStack_50" identifier = identifier) ;) (if_statement "if (((unaff_retaddr != (int *)0x0) && (puVar4 = auStack_50, *unaff_retaddr == 0xbab1e)) &&\n     (uVar1 = 8, puVar4 = auStack_50, (char)unaff_retaddr[0x40] == '\0')) {\n    if (unaff_retaddr[0x1a] == 0) {\n      *param_1 = 0xffffffff;\n      uVar1 = 0;\n      puVar4 = auStack_50;\n    }\n    else {\n      local_40 = param_1;\n      FUN_0001ab90(local_38);\n      local_48 = local_3c;\n      local_40 = (undefined4 *)local_38[0];\n      iVar2 = FUN_0004fdc0(*(undefined4 *)(unaff_EBX + 0x40f4f),*(undefined4 *)(unaff_EBX + 0x40f53)\n                           ,unaff_retaddr[0x1a]);\n      iVar3 = *(int *)(iVar2 + 0x10);\n      unaff_retaddr[0x1a] = iVar2;\n      if ((iVar3 < (int)local_48) ||\n         ((iVar3 <= (int)local_48 && (*(int *)(iVar2 + 0x14) <= (int)local_40)))) {\n        *local_44 = 0;\n        uVar1 = 0;\n        puVar4 = auStack_54;\n      }\n      else {\n        local_48 = local_44;\n        iVar3 = FUN_0001ac30(*(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 0x14),local_3c,\n                             local_38[0]);\n        if (iVar3 < 1) {\n          *local_48 = 1;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n        else {\n          *local_48 = iVar3;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n      }\n    }\n  }" if (parenthesized_expression "(((unaff_retaddr != (int *)0x0) && (puVar4 = auStack_50, *unaff_retaddr == 0xbab1e)) &&\n     (uVar1 = 8, puVar4 = auStack_50, (char)unaff_retaddr[0x40] == '\0'))" ( (binary_expression "((unaff_retaddr != (int *)0x0) && (puVar4 = auStack_50, *unaff_retaddr == 0xbab1e)) &&\n     (uVar1 = 8, puVar4 = auStack_50, (char)unaff_retaddr[0x40] == '\0')" (parenthesized_expression "((unaff_retaddr != (int *)0x0) && (puVar4 = auStack_50, *unaff_retaddr == 0xbab1e))" ( (binary_expression "(unaff_retaddr != (int *)0x0) && (puVar4 = auStack_50, *unaff_retaddr == 0xbab1e)" (parenthesized_expression "(unaff_retaddr != (int *)0x0)" ( (binary_expression "unaff_retaddr != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(puVar4 = auStack_50, *unaff_retaddr == 0xbab1e)" ( (comma_expression "puVar4 = auStack_50, *unaff_retaddr == 0xbab1e" (assignment_expression "puVar4 = auStack_50" identifier = identifier) , (binary_expression "*unaff_retaddr == 0xbab1e" (pointer_expression "*unaff_retaddr" * identifier) == number_literal)) ))) )) && (parenthesized_expression "(uVar1 = 8, puVar4 = auStack_50, (char)unaff_retaddr[0x40] == '\0')" ( (comma_expression "uVar1 = 8, puVar4 = auStack_50, (char)unaff_retaddr[0x40] == '\0'" (assignment_expression "uVar1 = 8" identifier = number_literal) , (comma_expression "puVar4 = auStack_50, (char)unaff_retaddr[0x40] == '\0'" (assignment_expression "puVar4 = auStack_50" identifier = identifier) , (binary_expression "(char)unaff_retaddr[0x40] == '\0'" (cast_expression "(char)unaff_retaddr[0x40]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "unaff_retaddr[0x40]" identifier [ number_literal ])) == (char_literal "'\0'" ' escape_sequence ')))) ))) )) (compound_statement "{\n    if (unaff_retaddr[0x1a] == 0) {\n      *param_1 = 0xffffffff;\n      uVar1 = 0;\n      puVar4 = auStack_50;\n    }\n    else {\n      local_40 = param_1;\n      FUN_0001ab90(local_38);\n      local_48 = local_3c;\n      local_40 = (undefined4 *)local_38[0];\n      iVar2 = FUN_0004fdc0(*(undefined4 *)(unaff_EBX + 0x40f4f),*(undefined4 *)(unaff_EBX + 0x40f53)\n                           ,unaff_retaddr[0x1a]);\n      iVar3 = *(int *)(iVar2 + 0x10);\n      unaff_retaddr[0x1a] = iVar2;\n      if ((iVar3 < (int)local_48) ||\n         ((iVar3 <= (int)local_48 && (*(int *)(iVar2 + 0x14) <= (int)local_40)))) {\n        *local_44 = 0;\n        uVar1 = 0;\n        puVar4 = auStack_54;\n      }\n      else {\n        local_48 = local_44;\n        iVar3 = FUN_0001ac30(*(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 0x14),local_3c,\n                             local_38[0]);\n        if (iVar3 < 1) {\n          *local_48 = 1;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n        else {\n          *local_48 = iVar3;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n      }\n    }\n  }" { (if_statement "if (unaff_retaddr[0x1a] == 0) {\n      *param_1 = 0xffffffff;\n      uVar1 = 0;\n      puVar4 = auStack_50;\n    }\n    else {\n      local_40 = param_1;\n      FUN_0001ab90(local_38);\n      local_48 = local_3c;\n      local_40 = (undefined4 *)local_38[0];\n      iVar2 = FUN_0004fdc0(*(undefined4 *)(unaff_EBX + 0x40f4f),*(undefined4 *)(unaff_EBX + 0x40f53)\n                           ,unaff_retaddr[0x1a]);\n      iVar3 = *(int *)(iVar2 + 0x10);\n      unaff_retaddr[0x1a] = iVar2;\n      if ((iVar3 < (int)local_48) ||\n         ((iVar3 <= (int)local_48 && (*(int *)(iVar2 + 0x14) <= (int)local_40)))) {\n        *local_44 = 0;\n        uVar1 = 0;\n        puVar4 = auStack_54;\n      }\n      else {\n        local_48 = local_44;\n        iVar3 = FUN_0001ac30(*(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 0x14),local_3c,\n                             local_38[0]);\n        if (iVar3 < 1) {\n          *local_48 = 1;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n        else {\n          *local_48 = iVar3;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n      }\n    }" if (parenthesized_expression "(unaff_retaddr[0x1a] == 0)" ( (binary_expression "unaff_retaddr[0x1a] == 0" (subscript_expression "unaff_retaddr[0x1a]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n      *param_1 = 0xffffffff;\n      uVar1 = 0;\n      puVar4 = auStack_50;\n    }" { (expression_statement "*param_1 = 0xffffffff;" (assignment_expression "*param_1 = 0xffffffff" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (expression_statement "puVar4 = auStack_50;" (assignment_expression "puVar4 = auStack_50" identifier = identifier) ;) }) (else_clause "else {\n      local_40 = param_1;\n      FUN_0001ab90(local_38);\n      local_48 = local_3c;\n      local_40 = (undefined4 *)local_38[0];\n      iVar2 = FUN_0004fdc0(*(undefined4 *)(unaff_EBX + 0x40f4f),*(undefined4 *)(unaff_EBX + 0x40f53)\n                           ,unaff_retaddr[0x1a]);\n      iVar3 = *(int *)(iVar2 + 0x10);\n      unaff_retaddr[0x1a] = iVar2;\n      if ((iVar3 < (int)local_48) ||\n         ((iVar3 <= (int)local_48 && (*(int *)(iVar2 + 0x14) <= (int)local_40)))) {\n        *local_44 = 0;\n        uVar1 = 0;\n        puVar4 = auStack_54;\n      }\n      else {\n        local_48 = local_44;\n        iVar3 = FUN_0001ac30(*(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 0x14),local_3c,\n                             local_38[0]);\n        if (iVar3 < 1) {\n          *local_48 = 1;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n        else {\n          *local_48 = iVar3;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n      }\n    }" else (compound_statement "{\n      local_40 = param_1;\n      FUN_0001ab90(local_38);\n      local_48 = local_3c;\n      local_40 = (undefined4 *)local_38[0];\n      iVar2 = FUN_0004fdc0(*(undefined4 *)(unaff_EBX + 0x40f4f),*(undefined4 *)(unaff_EBX + 0x40f53)\n                           ,unaff_retaddr[0x1a]);\n      iVar3 = *(int *)(iVar2 + 0x10);\n      unaff_retaddr[0x1a] = iVar2;\n      if ((iVar3 < (int)local_48) ||\n         ((iVar3 <= (int)local_48 && (*(int *)(iVar2 + 0x14) <= (int)local_40)))) {\n        *local_44 = 0;\n        uVar1 = 0;\n        puVar4 = auStack_54;\n      }\n      else {\n        local_48 = local_44;\n        iVar3 = FUN_0001ac30(*(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 0x14),local_3c,\n                             local_38[0]);\n        if (iVar3 < 1) {\n          *local_48 = 1;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n        else {\n          *local_48 = iVar3;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n      }\n    }" { (expression_statement "local_40 = param_1;" (assignment_expression "local_40 = param_1" identifier = identifier) ;) (expression_statement "FUN_0001ab90(local_38);" (call_expression "FUN_0001ab90(local_38)" identifier (argument_list "(local_38)" ( identifier ))) ;) (expression_statement "local_48 = local_3c;" (assignment_expression "local_48 = local_3c" identifier = identifier) ;) (expression_statement "local_40 = (undefined4 *)local_38[0];" (assignment_expression "local_40 = (undefined4 *)local_38[0]" identifier = (cast_expression "(undefined4 *)local_38[0]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "local_38[0]" identifier [ number_literal ]))) ;) (expression_statement "iVar2 = FUN_0004fdc0(*(undefined4 *)(unaff_EBX + 0x40f4f),*(undefined4 *)(unaff_EBX + 0x40f53)\n                           ,unaff_retaddr[0x1a]);" (assignment_expression "iVar2 = FUN_0004fdc0(*(undefined4 *)(unaff_EBX + 0x40f4f),*(undefined4 *)(unaff_EBX + 0x40f53)\n                           ,unaff_retaddr[0x1a])" identifier = (call_expression "FUN_0004fdc0(*(undefined4 *)(unaff_EBX + 0x40f4f),*(undefined4 *)(unaff_EBX + 0x40f53)\n                           ,unaff_retaddr[0x1a])" identifier (argument_list "(*(undefined4 *)(unaff_EBX + 0x40f4f),*(undefined4 *)(unaff_EBX + 0x40f53)\n                           ,unaff_retaddr[0x1a])" ( (pointer_expression "*(undefined4 *)(unaff_EBX + 0x40f4f)" * (cast_expression "(undefined4 *)(unaff_EBX + 0x40f4f)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EBX + 0x40f4f)" ( (binary_expression "unaff_EBX + 0x40f4f" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(unaff_EBX + 0x40f53)" * (cast_expression "(undefined4 *)(unaff_EBX + 0x40f53)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EBX + 0x40f53)" ( (binary_expression "unaff_EBX + 0x40f53" identifier + number_literal) )))) , (subscript_expression "unaff_retaddr[0x1a]" identifier [ number_literal ]) )))) ;) (expression_statement "iVar3 = *(int *)(iVar2 + 0x10);" (assignment_expression "iVar3 = *(int *)(iVar2 + 0x10)" identifier = (pointer_expression "*(int *)(iVar2 + 0x10)" * (cast_expression "(int *)(iVar2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "unaff_retaddr[0x1a] = iVar2;" (assignment_expression "unaff_retaddr[0x1a] = iVar2" (subscript_expression "unaff_retaddr[0x1a]" identifier [ number_literal ]) = identifier) ;) (if_statement "if ((iVar3 < (int)local_48) ||\n         ((iVar3 <= (int)local_48 && (*(int *)(iVar2 + 0x14) <= (int)local_40)))) {\n        *local_44 = 0;\n        uVar1 = 0;\n        puVar4 = auStack_54;\n      }\n      else {\n        local_48 = local_44;\n        iVar3 = FUN_0001ac30(*(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 0x14),local_3c,\n                             local_38[0]);\n        if (iVar3 < 1) {\n          *local_48 = 1;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n        else {\n          *local_48 = iVar3;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n      }" if (parenthesized_expression "((iVar3 < (int)local_48) ||\n         ((iVar3 <= (int)local_48 && (*(int *)(iVar2 + 0x14) <= (int)local_40))))" ( (binary_expression "(iVar3 < (int)local_48) ||\n         ((iVar3 <= (int)local_48 && (*(int *)(iVar2 + 0x14) <= (int)local_40)))" (parenthesized_expression "(iVar3 < (int)local_48)" ( (binary_expression "iVar3 < (int)local_48" identifier < (cast_expression "(int)local_48" ( (type_descriptor "int" primitive_type) ) identifier)) )) || (parenthesized_expression "((iVar3 <= (int)local_48 && (*(int *)(iVar2 + 0x14) <= (int)local_40)))" ( (parenthesized_expression "(iVar3 <= (int)local_48 && (*(int *)(iVar2 + 0x14) <= (int)local_40))" ( (binary_expression "iVar3 <= (int)local_48 && (*(int *)(iVar2 + 0x14) <= (int)local_40)" (binary_expression "iVar3 <= (int)local_48" identifier <= (cast_expression "(int)local_48" ( (type_descriptor "int" primitive_type) ) identifier)) && (parenthesized_expression "(*(int *)(iVar2 + 0x14) <= (int)local_40)" ( (binary_expression "*(int *)(iVar2 + 0x14) <= (int)local_40" (pointer_expression "*(int *)(iVar2 + 0x14)" * (cast_expression "(int *)(iVar2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) )))) <= (cast_expression "(int)local_40" ( (type_descriptor "int" primitive_type) ) identifier)) ))) )) ))) )) (compound_statement "{\n        *local_44 = 0;\n        uVar1 = 0;\n        puVar4 = auStack_54;\n      }" { (expression_statement "*local_44 = 0;" (assignment_expression "*local_44 = 0" (pointer_expression "*local_44" * identifier) = number_literal) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (expression_statement "puVar4 = auStack_54;" (assignment_expression "puVar4 = auStack_54" identifier = identifier) ;) }) (else_clause "else {\n        local_48 = local_44;\n        iVar3 = FUN_0001ac30(*(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 0x14),local_3c,\n                             local_38[0]);\n        if (iVar3 < 1) {\n          *local_48 = 1;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n        else {\n          *local_48 = iVar3;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n      }" else (compound_statement "{\n        local_48 = local_44;\n        iVar3 = FUN_0001ac30(*(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 0x14),local_3c,\n                             local_38[0]);\n        if (iVar3 < 1) {\n          *local_48 = 1;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n        else {\n          *local_48 = iVar3;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n      }" { (expression_statement "local_48 = local_44;" (assignment_expression "local_48 = local_44" identifier = identifier) ;) (expression_statement "iVar3 = FUN_0001ac30(*(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 0x14),local_3c,\n                             local_38[0]);" (assignment_expression "iVar3 = FUN_0001ac30(*(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 0x14),local_3c,\n                             local_38[0])" identifier = (call_expression "FUN_0001ac30(*(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 0x14),local_3c,\n                             local_38[0])" identifier (argument_list "(*(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 0x14),local_3c,\n                             local_38[0])" ( (pointer_expression "*(undefined4 *)(iVar2 + 0x10)" * (cast_expression "(undefined4 *)(iVar2 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(iVar2 + 0x14)" * (cast_expression "(undefined4 *)(iVar2 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) )))) , identifier , (subscript_expression "local_38[0]" identifier [ number_literal ]) )))) ;) (if_statement "if (iVar3 < 1) {\n          *local_48 = 1;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n        else {\n          *local_48 = iVar3;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }" if (parenthesized_expression "(iVar3 < 1)" ( (binary_expression "iVar3 < 1" identifier < number_literal) )) (compound_statement "{\n          *local_48 = 1;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }" { (expression_statement "*local_48 = 1;" (assignment_expression "*local_48 = 1" (pointer_expression "*local_48" * identifier) = number_literal) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (expression_statement "puVar4 = auStack_54;" (assignment_expression "puVar4 = auStack_54" identifier = identifier) ;) }) (else_clause "else {\n          *local_48 = iVar3;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }" else (compound_statement "{\n          *local_48 = iVar3;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }" { (expression_statement "*local_48 = iVar3;" (assignment_expression "*local_48 = iVar3" (pointer_expression "*local_48" * identifier) = identifier) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (expression_statement "puVar4 = auStack_54;" (assignment_expression "puVar4 = auStack_54" identifier = identifier) ;) }))) }))) }))) })) (if_statement "if (*(int *)(puVar4 + 0x2c) == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar1;\n  }" if (parenthesized_expression "(*(int *)(puVar4 + 0x2c) == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "*(int *)(puVar4 + 0x2c) == *(int *)(in_GS_OFFSET + 0x14)" (pointer_expression "*(int *)(puVar4 + 0x2c)" * (cast_expression "(int *)(puVar4 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 0x2c)" ( (binary_expression "puVar4 + 0x2c" identifier + number_literal) )))) == (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 uVar1;\n  }" { (return_statement "return uVar1;" return identifier ;) })) comment (expression_statement "*(undefined **)(puVar4 + -4) = &UNK_00046bba;" (assignment_expression "*(undefined **)(puVar4 + -4) = &UNK_00046bba" (pointer_expression "*(undefined **)(puVar4 + -4)" * (cast_expression "(undefined **)(puVar4 + -4)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar4 + -4)" ( (binary_expression "puVar4 + -4" identifier + number_literal) )))) = (pointer_expression "&UNK_00046bba" & identifier)) ;) (expression_statement "FUN_00082f60();" (call_expression "FUN_00082f60()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nCURLMcode curl_multi_timeout(Curl_multi *multi,long *timeout_ms)\n\n{\n  int iVar1;\n  int iVar2;\n  curltime i;\n  curltime older;\n  CURLMcode CVar3;\n  Curl_tree *pCVar4;\n  timediff_t tVar5;\n  int in_GS_OFFSET;\n  int local_34;\n  int iStack_30;\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  CVar3 = CURLM_BAD_HANDLE;\n  if (((multi != (Curl_multi *)0x0) && (multi->type == 0xbab1e)) &&\n     (CVar3 = CURLM_RECURSIVE_API_CALL, multi->in_callback == false)) {\n    if (multi->timetree == (Curl_tree *)0x0) {\n      *timeout_ms = -1;\n      CVar3 = CURLM_OK;\n    }\n    else {\n      Curl_now();\n      i.tv_usec = DAT_000879fc;\n      i.tv_sec = tv_zero_12339;\n      pCVar4 = Curl_splay(i,multi->timetree);\n      iVar1 = (pCVar4->key).tv_sec;\n      multi->timetree = pCVar4;\n      if ((iVar1 < local_34) || ((iVar1 <= local_34 && ((pCVar4->key).tv_usec <= iStack_30)))) {\n        *timeout_ms = 0;\n        CVar3 = CURLM_OK;\n      }\n      else {\n        older.tv_usec = iStack_30;\n        older.tv_sec = local_34;\n        tVar5 = Curl_timediff(pCVar4->key,older);\n        if (tVar5 < 1) {\n          *timeout_ms = 1;\n          CVar3 = CURLM_OK;\n        }\n        else {\n          *timeout_ms = tVar5;\n          CVar3 = CURLM_OK;\n        }\n      }\n    }\n  }\n  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return CVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment comment (function_definition "CURLMcode curl_multi_timeout(Curl_multi *multi,long *timeout_ms)\n\n{\n  int iVar1;\n  int iVar2;\n  curltime i;\n  curltime older;\n  CURLMcode CVar3;\n  Curl_tree *pCVar4;\n  timediff_t tVar5;\n  int in_GS_OFFSET;\n  int local_34;\n  int iStack_30;\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  CVar3 = CURLM_BAD_HANDLE;\n  if (((multi != (Curl_multi *)0x0) && (multi->type == 0xbab1e)) &&\n     (CVar3 = CURLM_RECURSIVE_API_CALL, multi->in_callback == false)) {\n    if (multi->timetree == (Curl_tree *)0x0) {\n      *timeout_ms = -1;\n      CVar3 = CURLM_OK;\n    }\n    else {\n      Curl_now();\n      i.tv_usec = DAT_000879fc;\n      i.tv_sec = tv_zero_12339;\n      pCVar4 = Curl_splay(i,multi->timetree);\n      iVar1 = (pCVar4->key).tv_sec;\n      multi->timetree = pCVar4;\n      if ((iVar1 < local_34) || ((iVar1 <= local_34 && ((pCVar4->key).tv_usec <= iStack_30)))) {\n        *timeout_ms = 0;\n        CVar3 = CURLM_OK;\n      }\n      else {\n        older.tv_usec = iStack_30;\n        older.tv_sec = local_34;\n        tVar5 = Curl_timediff(pCVar4->key,older);\n        if (tVar5 < 1) {\n          *timeout_ms = 1;\n          CVar3 = CURLM_OK;\n        }\n        else {\n          *timeout_ms = tVar5;\n          CVar3 = CURLM_OK;\n        }\n      }\n    }\n  }\n  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return CVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" type_identifier (function_declarator "curl_multi_timeout(Curl_multi *multi,long *timeout_ms)" identifier (parameter_list "(Curl_multi *multi,long *timeout_ms)" ( (parameter_declaration "Curl_multi *multi" type_identifier (pointer_declarator "*multi" * identifier)) , (parameter_declaration "long *timeout_ms" (sized_type_specifier "long" long) (pointer_declarator "*timeout_ms" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  curltime i;\n  curltime older;\n  CURLMcode CVar3;\n  Curl_tree *pCVar4;\n  timediff_t tVar5;\n  int in_GS_OFFSET;\n  int local_34;\n  int iStack_30;\n  \n  iVar2 = *(int *)(in_GS_OFFSET + 0x14);\n  CVar3 = CURLM_BAD_HANDLE;\n  if (((multi != (Curl_multi *)0x0) && (multi->type == 0xbab1e)) &&\n     (CVar3 = CURLM_RECURSIVE_API_CALL, multi->in_callback == false)) {\n    if (multi->timetree == (Curl_tree *)0x0) {\n      *timeout_ms = -1;\n      CVar3 = CURLM_OK;\n    }\n    else {\n      Curl_now();\n      i.tv_usec = DAT_000879fc;\n      i.tv_sec = tv_zero_12339;\n      pCVar4 = Curl_splay(i,multi->timetree);\n      iVar1 = (pCVar4->key).tv_sec;\n      multi->timetree = pCVar4;\n      if ((iVar1 < local_34) || ((iVar1 <= local_34 && ((pCVar4->key).tv_usec <= iStack_30)))) {\n        *timeout_ms = 0;\n        CVar3 = CURLM_OK;\n      }\n      else {\n        older.tv_usec = iStack_30;\n        older.tv_sec = local_34;\n        tVar5 = Curl_timediff(pCVar4->key,older);\n        if (tVar5 < 1) {\n          *timeout_ms = 1;\n          CVar3 = CURLM_OK;\n        }\n        else {\n          *timeout_ms = tVar5;\n          CVar3 = CURLM_OK;\n        }\n      }\n    }\n  }\n  if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return CVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "curltime i;" type_identifier identifier ;) (declaration "curltime older;" type_identifier identifier ;) (declaration "CURLMcode CVar3;" type_identifier identifier ;) (declaration "Curl_tree *pCVar4;" type_identifier (pointer_declarator "*pCVar4" * identifier) ;) (declaration "timediff_t tVar5;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_34;" primitive_type identifier ;) (declaration "int iStack_30;" primitive_type identifier ;) (expression_statement "iVar2 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar2 = *(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) ))))) ;) (expression_statement "CVar3 = CURLM_BAD_HANDLE;" (assignment_expression "CVar3 = CURLM_BAD_HANDLE" identifier = identifier) ;) (if_statement "if (((multi != (Curl_multi *)0x0) && (multi->type == 0xbab1e)) &&\n     (CVar3 = CURLM_RECURSIVE_API_CALL, multi->in_callback == false)) {\n    if (multi->timetree == (Curl_tree *)0x0) {\n      *timeout_ms = -1;\n      CVar3 = CURLM_OK;\n    }\n    else {\n      Curl_now();\n      i.tv_usec = DAT_000879fc;\n      i.tv_sec = tv_zero_12339;\n      pCVar4 = Curl_splay(i,multi->timetree);\n      iVar1 = (pCVar4->key).tv_sec;\n      multi->timetree = pCVar4;\n      if ((iVar1 < local_34) || ((iVar1 <= local_34 && ((pCVar4->key).tv_usec <= iStack_30)))) {\n        *timeout_ms = 0;\n        CVar3 = CURLM_OK;\n      }\n      else {\n        older.tv_usec = iStack_30;\n        older.tv_sec = local_34;\n        tVar5 = Curl_timediff(pCVar4->key,older);\n        if (tVar5 < 1) {\n          *timeout_ms = 1;\n          CVar3 = CURLM_OK;\n        }\n        else {\n          *timeout_ms = tVar5;\n          CVar3 = CURLM_OK;\n        }\n      }\n    }\n  }" if (parenthesized_expression "(((multi != (Curl_multi *)0x0) && (multi->type == 0xbab1e)) &&\n     (CVar3 = CURLM_RECURSIVE_API_CALL, multi->in_callback == false))" ( (binary_expression "((multi != (Curl_multi *)0x0) && (multi->type == 0xbab1e)) &&\n     (CVar3 = CURLM_RECURSIVE_API_CALL, multi->in_callback == false)" (parenthesized_expression "((multi != (Curl_multi *)0x0) && (multi->type == 0xbab1e))" ( (binary_expression "(multi != (Curl_multi *)0x0) && (multi->type == 0xbab1e)" (parenthesized_expression "(multi != (Curl_multi *)0x0)" ( (binary_expression "multi != (Curl_multi *)0x0" identifier != (cast_expression "(Curl_multi *)0x0" ( (type_descriptor "Curl_multi *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(multi->type == 0xbab1e)" ( (binary_expression "multi->type == 0xbab1e" (field_expression "multi->type" identifier -> field_identifier) == number_literal) ))) )) && (parenthesized_expression "(CVar3 = CURLM_RECURSIVE_API_CALL, multi->in_callback == false)" ( (comma_expression "CVar3 = CURLM_RECURSIVE_API_CALL, multi->in_callback == false" (assignment_expression "CVar3 = CURLM_RECURSIVE_API_CALL" identifier = identifier) , (binary_expression "multi->in_callback == false" (field_expression "multi->in_callback" identifier -> field_identifier) == false)) ))) )) (compound_statement "{\n    if (multi->timetree == (Curl_tree *)0x0) {\n      *timeout_ms = -1;\n      CVar3 = CURLM_OK;\n    }\n    else {\n      Curl_now();\n      i.tv_usec = DAT_000879fc;\n      i.tv_sec = tv_zero_12339;\n      pCVar4 = Curl_splay(i,multi->timetree);\n      iVar1 = (pCVar4->key).tv_sec;\n      multi->timetree = pCVar4;\n      if ((iVar1 < local_34) || ((iVar1 <= local_34 && ((pCVar4->key).tv_usec <= iStack_30)))) {\n        *timeout_ms = 0;\n        CVar3 = CURLM_OK;\n      }\n      else {\n        older.tv_usec = iStack_30;\n        older.tv_sec = local_34;\n        tVar5 = Curl_timediff(pCVar4->key,older);\n        if (tVar5 < 1) {\n          *timeout_ms = 1;\n          CVar3 = CURLM_OK;\n        }\n        else {\n          *timeout_ms = tVar5;\n          CVar3 = CURLM_OK;\n        }\n      }\n    }\n  }" { (if_statement "if (multi->timetree == (Curl_tree *)0x0) {\n      *timeout_ms = -1;\n      CVar3 = CURLM_OK;\n    }\n    else {\n      Curl_now();\n      i.tv_usec = DAT_000879fc;\n      i.tv_sec = tv_zero_12339;\n      pCVar4 = Curl_splay(i,multi->timetree);\n      iVar1 = (pCVar4->key).tv_sec;\n      multi->timetree = pCVar4;\n      if ((iVar1 < local_34) || ((iVar1 <= local_34 && ((pCVar4->key).tv_usec <= iStack_30)))) {\n        *timeout_ms = 0;\n        CVar3 = CURLM_OK;\n      }\n      else {\n        older.tv_usec = iStack_30;\n        older.tv_sec = local_34;\n        tVar5 = Curl_timediff(pCVar4->key,older);\n        if (tVar5 < 1) {\n          *timeout_ms = 1;\n          CVar3 = CURLM_OK;\n        }\n        else {\n          *timeout_ms = tVar5;\n          CVar3 = CURLM_OK;\n        }\n      }\n    }" if (parenthesized_expression "(multi->timetree == (Curl_tree *)0x0)" ( (binary_expression "multi->timetree == (Curl_tree *)0x0" (field_expression "multi->timetree" identifier -> field_identifier) == (cast_expression "(Curl_tree *)0x0" ( (type_descriptor "Curl_tree *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *timeout_ms = -1;\n      CVar3 = CURLM_OK;\n    }" { (expression_statement "*timeout_ms = -1;" (assignment_expression "*timeout_ms = -1" (pointer_expression "*timeout_ms" * identifier) = number_literal) ;) (expression_statement "CVar3 = CURLM_OK;" (assignment_expression "CVar3 = CURLM_OK" identifier = identifier) ;) }) (else_clause "else {\n      Curl_now();\n      i.tv_usec = DAT_000879fc;\n      i.tv_sec = tv_zero_12339;\n      pCVar4 = Curl_splay(i,multi->timetree);\n      iVar1 = (pCVar4->key).tv_sec;\n      multi->timetree = pCVar4;\n      if ((iVar1 < local_34) || ((iVar1 <= local_34 && ((pCVar4->key).tv_usec <= iStack_30)))) {\n        *timeout_ms = 0;\n        CVar3 = CURLM_OK;\n      }\n      else {\n        older.tv_usec = iStack_30;\n        older.tv_sec = local_34;\n        tVar5 = Curl_timediff(pCVar4->key,older);\n        if (tVar5 < 1) {\n          *timeout_ms = 1;\n          CVar3 = CURLM_OK;\n        }\n        else {\n          *timeout_ms = tVar5;\n          CVar3 = CURLM_OK;\n        }\n      }\n    }" else (compound_statement "{\n      Curl_now();\n      i.tv_usec = DAT_000879fc;\n      i.tv_sec = tv_zero_12339;\n      pCVar4 = Curl_splay(i,multi->timetree);\n      iVar1 = (pCVar4->key).tv_sec;\n      multi->timetree = pCVar4;\n      if ((iVar1 < local_34) || ((iVar1 <= local_34 && ((pCVar4->key).tv_usec <= iStack_30)))) {\n        *timeout_ms = 0;\n        CVar3 = CURLM_OK;\n      }\n      else {\n        older.tv_usec = iStack_30;\n        older.tv_sec = local_34;\n        tVar5 = Curl_timediff(pCVar4->key,older);\n        if (tVar5 < 1) {\n          *timeout_ms = 1;\n          CVar3 = CURLM_OK;\n        }\n        else {\n          *timeout_ms = tVar5;\n          CVar3 = CURLM_OK;\n        }\n      }\n    }" { (expression_statement "Curl_now();" (call_expression "Curl_now()" identifier (argument_list "()" ( ))) ;) (expression_statement "i.tv_usec = DAT_000879fc;" (assignment_expression "i.tv_usec = DAT_000879fc" (field_expression "i.tv_usec" identifier . field_identifier) = identifier) ;) (expression_statement "i.tv_sec = tv_zero_12339;" (assignment_expression "i.tv_sec = tv_zero_12339" (field_expression "i.tv_sec" identifier . field_identifier) = identifier) ;) (expression_statement "pCVar4 = Curl_splay(i,multi->timetree);" (assignment_expression "pCVar4 = Curl_splay(i,multi->timetree)" identifier = (call_expression "Curl_splay(i,multi->timetree)" identifier (argument_list "(i,multi->timetree)" ( identifier , (field_expression "multi->timetree" identifier -> field_identifier) )))) ;) (expression_statement "iVar1 = (pCVar4->key).tv_sec;" (assignment_expression "iVar1 = (pCVar4->key).tv_sec" identifier = (field_expression "(pCVar4->key).tv_sec" (parenthesized_expression "(pCVar4->key)" ( (field_expression "pCVar4->key" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "multi->timetree = pCVar4;" (assignment_expression "multi->timetree = pCVar4" (field_expression "multi->timetree" identifier -> field_identifier) = identifier) ;) (if_statement "if ((iVar1 < local_34) || ((iVar1 <= local_34 && ((pCVar4->key).tv_usec <= iStack_30)))) {\n        *timeout_ms = 0;\n        CVar3 = CURLM_OK;\n      }\n      else {\n        older.tv_usec = iStack_30;\n        older.tv_sec = local_34;\n        tVar5 = Curl_timediff(pCVar4->key,older);\n        if (tVar5 < 1) {\n          *timeout_ms = 1;\n          CVar3 = CURLM_OK;\n        }\n        else {\n          *timeout_ms = tVar5;\n          CVar3 = CURLM_OK;\n        }\n      }" if (parenthesized_expression "((iVar1 < local_34) || ((iVar1 <= local_34 && ((pCVar4->key).tv_usec <= iStack_30))))" ( (binary_expression "(iVar1 < local_34) || ((iVar1 <= local_34 && ((pCVar4->key).tv_usec <= iStack_30)))" (parenthesized_expression "(iVar1 < local_34)" ( (binary_expression "iVar1 < local_34" identifier < identifier) )) || (parenthesized_expression "((iVar1 <= local_34 && ((pCVar4->key).tv_usec <= iStack_30)))" ( (parenthesized_expression "(iVar1 <= local_34 && ((pCVar4->key).tv_usec <= iStack_30))" ( (binary_expression "iVar1 <= local_34 && ((pCVar4->key).tv_usec <= iStack_30)" (binary_expression "iVar1 <= local_34" identifier <= identifier) && (parenthesized_expression "((pCVar4->key).tv_usec <= iStack_30)" ( (binary_expression "(pCVar4->key).tv_usec <= iStack_30" (field_expression "(pCVar4->key).tv_usec" (parenthesized_expression "(pCVar4->key)" ( (field_expression "pCVar4->key" identifier -> field_identifier) )) . field_identifier) <= identifier) ))) )) ))) )) (compound_statement "{\n        *timeout_ms = 0;\n        CVar3 = CURLM_OK;\n      }" { (expression_statement "*timeout_ms = 0;" (assignment_expression "*timeout_ms = 0" (pointer_expression "*timeout_ms" * identifier) = number_literal) ;) (expression_statement "CVar3 = CURLM_OK;" (assignment_expression "CVar3 = CURLM_OK" identifier = identifier) ;) }) (else_clause "else {\n        older.tv_usec = iStack_30;\n        older.tv_sec = local_34;\n        tVar5 = Curl_timediff(pCVar4->key,older);\n        if (tVar5 < 1) {\n          *timeout_ms = 1;\n          CVar3 = CURLM_OK;\n        }\n        else {\n          *timeout_ms = tVar5;\n          CVar3 = CURLM_OK;\n        }\n      }" else (compound_statement "{\n        older.tv_usec = iStack_30;\n        older.tv_sec = local_34;\n        tVar5 = Curl_timediff(pCVar4->key,older);\n        if (tVar5 < 1) {\n          *timeout_ms = 1;\n          CVar3 = CURLM_OK;\n        }\n        else {\n          *timeout_ms = tVar5;\n          CVar3 = CURLM_OK;\n        }\n      }" { (expression_statement "older.tv_usec = iStack_30;" (assignment_expression "older.tv_usec = iStack_30" (field_expression "older.tv_usec" identifier . field_identifier) = identifier) ;) (expression_statement "older.tv_sec = local_34;" (assignment_expression "older.tv_sec = local_34" (field_expression "older.tv_sec" identifier . field_identifier) = identifier) ;) (expression_statement "tVar5 = Curl_timediff(pCVar4->key,older);" (assignment_expression "tVar5 = Curl_timediff(pCVar4->key,older)" identifier = (call_expression "Curl_timediff(pCVar4->key,older)" identifier (argument_list "(pCVar4->key,older)" ( (field_expression "pCVar4->key" identifier -> field_identifier) , identifier )))) ;) (if_statement "if (tVar5 < 1) {\n          *timeout_ms = 1;\n          CVar3 = CURLM_OK;\n        }\n        else {\n          *timeout_ms = tVar5;\n          CVar3 = CURLM_OK;\n        }" if (parenthesized_expression "(tVar5 < 1)" ( (binary_expression "tVar5 < 1" identifier < number_literal) )) (compound_statement "{\n          *timeout_ms = 1;\n          CVar3 = CURLM_OK;\n        }" { (expression_statement "*timeout_ms = 1;" (assignment_expression "*timeout_ms = 1" (pointer_expression "*timeout_ms" * identifier) = number_literal) ;) (expression_statement "CVar3 = CURLM_OK;" (assignment_expression "CVar3 = CURLM_OK" identifier = identifier) ;) }) (else_clause "else {\n          *timeout_ms = tVar5;\n          CVar3 = CURLM_OK;\n        }" else (compound_statement "{\n          *timeout_ms = tVar5;\n          CVar3 = CURLM_OK;\n        }" { (expression_statement "*timeout_ms = tVar5;" (assignment_expression "*timeout_ms = tVar5" (pointer_expression "*timeout_ms" * identifier) = identifier) ;) (expression_statement "CVar3 = CURLM_OK;" (assignment_expression "CVar3 = CURLM_OK" identifier = identifier) ;) }))) }))) }))) })) (if_statement "if (iVar2 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return CVar3;\n  }" if (parenthesized_expression "(iVar2 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar2 == *(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 CVar3;\n  }" { (return_statement "return CVar3;" return identifier ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "undefined4 curl_multi_timeout(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  int unaff_EBX;\n  undefined1 *puVar4;\n  int in_GS_OFFSET;\n  int *unaff_retaddr;\n  undefined1 auStack_54 [4];\n  undefined1 auStack_50 [8];\n  int *local_48;\n  int *local_44;\n  undefined4 *local_40;\n  int *local_3c;\n  int local_38 [5];\n  undefined4 local_24;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x46aa9;\n  entry();\n  local_24 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  uVar1 = 1;\n  puVar4 = auStack_50;\n  if (((unaff_retaddr != (int *)0x0) && (puVar4 = auStack_50, *unaff_retaddr == 0xbab1e)) &&\n     (uVar1 = 8, puVar4 = auStack_50, (char)unaff_retaddr[0x40] == '\0')) {\n    if (unaff_retaddr[0x1a] == 0) {\n      *param_1 = 0xffffffff;\n      uVar1 = 0;\n      puVar4 = auStack_50;\n    }\n    else {\n      local_40 = param_1;\n      FUN_0001ab90(local_38);\n      local_48 = local_3c;\n      local_40 = (undefined4 *)local_38[0];\n      iVar2 = FUN_0004fdc0(*(undefined4 *)(unaff_EBX + 0x40f4f),*(undefined4 *)(unaff_EBX + 0x40f53)\n                           ,unaff_retaddr[0x1a]);\n      iVar3 = *(int *)(iVar2 + 0x10);\n      unaff_retaddr[0x1a] = iVar2;\n      if ((iVar3 < (int)local_48) ||\n         ((iVar3 <= (int)local_48 && (*(int *)(iVar2 + 0x14) <= (int)local_40)))) {\n        *local_44 = 0;\n        uVar1 = 0;\n        puVar4 = auStack_54;\n      }\n      else {\n        local_48 = local_44;\n        iVar3 = FUN_0001ac30(*(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 0x14),local_3c,\n                             local_38[0]);\n        if (iVar3 < 1) {\n          *local_48 = 1;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n        else {\n          *local_48 = iVar3;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n      }\n    }\n  }\n  if (*(int *)(puVar4 + 0x2c) == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar1;\n  }\n                    \n  *(undefined **)(puVar4 + -4) = &UNK_00046bba;\n  FUN_00082f60();\n}\n\n" (function_definition "undefined4 curl_multi_timeout(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  int unaff_EBX;\n  undefined1 *puVar4;\n  int in_GS_OFFSET;\n  int *unaff_retaddr;\n  undefined1 auStack_54 [4];\n  undefined1 auStack_50 [8];\n  int *local_48;\n  int *local_44;\n  undefined4 *local_40;\n  int *local_3c;\n  int local_38 [5];\n  undefined4 local_24;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x46aa9;\n  entry();\n  local_24 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  uVar1 = 1;\n  puVar4 = auStack_50;\n  if (((unaff_retaddr != (int *)0x0) && (puVar4 = auStack_50, *unaff_retaddr == 0xbab1e)) &&\n     (uVar1 = 8, puVar4 = auStack_50, (char)unaff_retaddr[0x40] == '\0')) {\n    if (unaff_retaddr[0x1a] == 0) {\n      *param_1 = 0xffffffff;\n      uVar1 = 0;\n      puVar4 = auStack_50;\n    }\n    else {\n      local_40 = param_1;\n      FUN_0001ab90(local_38);\n      local_48 = local_3c;\n      local_40 = (undefined4 *)local_38[0];\n      iVar2 = FUN_0004fdc0(*(undefined4 *)(unaff_EBX + 0x40f4f),*(undefined4 *)(unaff_EBX + 0x40f53)\n                           ,unaff_retaddr[0x1a]);\n      iVar3 = *(int *)(iVar2 + 0x10);\n      unaff_retaddr[0x1a] = iVar2;\n      if ((iVar3 < (int)local_48) ||\n         ((iVar3 <= (int)local_48 && (*(int *)(iVar2 + 0x14) <= (int)local_40)))) {\n        *local_44 = 0;\n        uVar1 = 0;\n        puVar4 = auStack_54;\n      }\n      else {\n        local_48 = local_44;\n        iVar3 = FUN_0001ac30(*(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 0x14),local_3c,\n                             local_38[0]);\n        if (iVar3 < 1) {\n          *local_48 = 1;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n        else {\n          *local_48 = iVar3;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n      }\n    }\n  }\n  if (*(int *)(puVar4 + 0x2c) == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar1;\n  }\n                    \n  *(undefined **)(puVar4 + -4) = &UNK_00046bba;\n  FUN_00082f60();\n}" type_identifier (function_declarator "curl_multi_timeout(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  int unaff_EBX;\n  undefined1 *puVar4;\n  int in_GS_OFFSET;\n  int *unaff_retaddr;\n  undefined1 auStack_54 [4];\n  undefined1 auStack_50 [8];\n  int *local_48;\n  int *local_44;\n  undefined4 *local_40;\n  int *local_3c;\n  int local_38 [5];\n  undefined4 local_24;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x46aa9;\n  entry();\n  local_24 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  uVar1 = 1;\n  puVar4 = auStack_50;\n  if (((unaff_retaddr != (int *)0x0) && (puVar4 = auStack_50, *unaff_retaddr == 0xbab1e)) &&\n     (uVar1 = 8, puVar4 = auStack_50, (char)unaff_retaddr[0x40] == '\0')) {\n    if (unaff_retaddr[0x1a] == 0) {\n      *param_1 = 0xffffffff;\n      uVar1 = 0;\n      puVar4 = auStack_50;\n    }\n    else {\n      local_40 = param_1;\n      FUN_0001ab90(local_38);\n      local_48 = local_3c;\n      local_40 = (undefined4 *)local_38[0];\n      iVar2 = FUN_0004fdc0(*(undefined4 *)(unaff_EBX + 0x40f4f),*(undefined4 *)(unaff_EBX + 0x40f53)\n                           ,unaff_retaddr[0x1a]);\n      iVar3 = *(int *)(iVar2 + 0x10);\n      unaff_retaddr[0x1a] = iVar2;\n      if ((iVar3 < (int)local_48) ||\n         ((iVar3 <= (int)local_48 && (*(int *)(iVar2 + 0x14) <= (int)local_40)))) {\n        *local_44 = 0;\n        uVar1 = 0;\n        puVar4 = auStack_54;\n      }\n      else {\n        local_48 = local_44;\n        iVar3 = FUN_0001ac30(*(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 0x14),local_3c,\n                             local_38[0]);\n        if (iVar3 < 1) {\n          *local_48 = 1;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n        else {\n          *local_48 = iVar3;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n      }\n    }\n  }\n  if (*(int *)(puVar4 + 0x2c) == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar1;\n  }\n                    \n  *(undefined **)(puVar4 + -4) = &UNK_00046bba;\n  FUN_00082f60();\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int unaff_EBX;" primitive_type identifier ;) (declaration "undefined1 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int *unaff_retaddr;" primitive_type (pointer_declarator "*unaff_retaddr" * identifier) ;) (declaration "undefined1 auStack_54 [4];" type_identifier (array_declarator "auStack_54 [4]" identifier [ number_literal ]) ;) (declaration "undefined1 auStack_50 [8];" type_identifier (array_declarator "auStack_50 [8]" identifier [ number_literal ]) ;) (declaration "int *local_48;" primitive_type (pointer_declarator "*local_48" * identifier) ;) (declaration "int *local_44;" primitive_type (pointer_declarator "*local_44" * identifier) ;) (declaration "undefined4 *local_40;" type_identifier (pointer_declarator "*local_40" * identifier) ;) (declaration "int *local_3c;" primitive_type (pointer_declarator "*local_3c" * identifier) ;) (declaration "int local_38 [5];" primitive_type (array_declarator "local_38 [5]" identifier [ number_literal ]) ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x46aa9;" (assignment_expression "uStack_14 = 0x46aa9" identifier = number_literal) ;) (expression_statement "entry();" (call_expression "entry()" identifier (argument_list "()" ( ))) ;) (expression_statement "local_24 = *(undefined4 *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_24 = *(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) ))))) ;) (expression_statement "uVar1 = 1;" (assignment_expression "uVar1 = 1" identifier = number_literal) ;) (expression_statement "puVar4 = auStack_50;" (assignment_expression "puVar4 = auStack_50" identifier = identifier) ;) (if_statement "if (((unaff_retaddr != (int *)0x0) && (puVar4 = auStack_50, *unaff_retaddr == 0xbab1e)) &&\n     (uVar1 = 8, puVar4 = auStack_50, (char)unaff_retaddr[0x40] == '\0')) {\n    if (unaff_retaddr[0x1a] == 0) {\n      *param_1 = 0xffffffff;\n      uVar1 = 0;\n      puVar4 = auStack_50;\n    }\n    else {\n      local_40 = param_1;\n      FUN_0001ab90(local_38);\n      local_48 = local_3c;\n      local_40 = (undefined4 *)local_38[0];\n      iVar2 = FUN_0004fdc0(*(undefined4 *)(unaff_EBX + 0x40f4f),*(undefined4 *)(unaff_EBX + 0x40f53)\n                           ,unaff_retaddr[0x1a]);\n      iVar3 = *(int *)(iVar2 + 0x10);\n      unaff_retaddr[0x1a] = iVar2;\n      if ((iVar3 < (int)local_48) ||\n         ((iVar3 <= (int)local_48 && (*(int *)(iVar2 + 0x14) <= (int)local_40)))) {\n        *local_44 = 0;\n        uVar1 = 0;\n        puVar4 = auStack_54;\n      }\n      else {\n        local_48 = local_44;\n        iVar3 = FUN_0001ac30(*(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 0x14),local_3c,\n                             local_38[0]);\n        if (iVar3 < 1) {\n          *local_48 = 1;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n        else {\n          *local_48 = iVar3;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n      }\n    }\n  }" if (parenthesized_expression "(((unaff_retaddr != (int *)0x0) && (puVar4 = auStack_50, *unaff_retaddr == 0xbab1e)) &&\n     (uVar1 = 8, puVar4 = auStack_50, (char)unaff_retaddr[0x40] == '\0'))" ( (binary_expression "((unaff_retaddr != (int *)0x0) && (puVar4 = auStack_50, *unaff_retaddr == 0xbab1e)) &&\n     (uVar1 = 8, puVar4 = auStack_50, (char)unaff_retaddr[0x40] == '\0')" (parenthesized_expression "((unaff_retaddr != (int *)0x0) && (puVar4 = auStack_50, *unaff_retaddr == 0xbab1e))" ( (binary_expression "(unaff_retaddr != (int *)0x0) && (puVar4 = auStack_50, *unaff_retaddr == 0xbab1e)" (parenthesized_expression "(unaff_retaddr != (int *)0x0)" ( (binary_expression "unaff_retaddr != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(puVar4 = auStack_50, *unaff_retaddr == 0xbab1e)" ( (comma_expression "puVar4 = auStack_50, *unaff_retaddr == 0xbab1e" (assignment_expression "puVar4 = auStack_50" identifier = identifier) , (binary_expression "*unaff_retaddr == 0xbab1e" (pointer_expression "*unaff_retaddr" * identifier) == number_literal)) ))) )) && (parenthesized_expression "(uVar1 = 8, puVar4 = auStack_50, (char)unaff_retaddr[0x40] == '\0')" ( (comma_expression "uVar1 = 8, puVar4 = auStack_50, (char)unaff_retaddr[0x40] == '\0'" (assignment_expression "uVar1 = 8" identifier = number_literal) , (comma_expression "puVar4 = auStack_50, (char)unaff_retaddr[0x40] == '\0'" (assignment_expression "puVar4 = auStack_50" identifier = identifier) , (binary_expression "(char)unaff_retaddr[0x40] == '\0'" (cast_expression "(char)unaff_retaddr[0x40]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "unaff_retaddr[0x40]" identifier [ number_literal ])) == (char_literal "'\0'" ' escape_sequence ')))) ))) )) (compound_statement "{\n    if (unaff_retaddr[0x1a] == 0) {\n      *param_1 = 0xffffffff;\n      uVar1 = 0;\n      puVar4 = auStack_50;\n    }\n    else {\n      local_40 = param_1;\n      FUN_0001ab90(local_38);\n      local_48 = local_3c;\n      local_40 = (undefined4 *)local_38[0];\n      iVar2 = FUN_0004fdc0(*(undefined4 *)(unaff_EBX + 0x40f4f),*(undefined4 *)(unaff_EBX + 0x40f53)\n                           ,unaff_retaddr[0x1a]);\n      iVar3 = *(int *)(iVar2 + 0x10);\n      unaff_retaddr[0x1a] = iVar2;\n      if ((iVar3 < (int)local_48) ||\n         ((iVar3 <= (int)local_48 && (*(int *)(iVar2 + 0x14) <= (int)local_40)))) {\n        *local_44 = 0;\n        uVar1 = 0;\n        puVar4 = auStack_54;\n      }\n      else {\n        local_48 = local_44;\n        iVar3 = FUN_0001ac30(*(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 0x14),local_3c,\n                             local_38[0]);\n        if (iVar3 < 1) {\n          *local_48 = 1;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n        else {\n          *local_48 = iVar3;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n      }\n    }\n  }" { (if_statement "if (unaff_retaddr[0x1a] == 0) {\n      *param_1 = 0xffffffff;\n      uVar1 = 0;\n      puVar4 = auStack_50;\n    }\n    else {\n      local_40 = param_1;\n      FUN_0001ab90(local_38);\n      local_48 = local_3c;\n      local_40 = (undefined4 *)local_38[0];\n      iVar2 = FUN_0004fdc0(*(undefined4 *)(unaff_EBX + 0x40f4f),*(undefined4 *)(unaff_EBX + 0x40f53)\n                           ,unaff_retaddr[0x1a]);\n      iVar3 = *(int *)(iVar2 + 0x10);\n      unaff_retaddr[0x1a] = iVar2;\n      if ((iVar3 < (int)local_48) ||\n         ((iVar3 <= (int)local_48 && (*(int *)(iVar2 + 0x14) <= (int)local_40)))) {\n        *local_44 = 0;\n        uVar1 = 0;\n        puVar4 = auStack_54;\n      }\n      else {\n        local_48 = local_44;\n        iVar3 = FUN_0001ac30(*(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 0x14),local_3c,\n                             local_38[0]);\n        if (iVar3 < 1) {\n          *local_48 = 1;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n        else {\n          *local_48 = iVar3;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n      }\n    }" if (parenthesized_expression "(unaff_retaddr[0x1a] == 0)" ( (binary_expression "unaff_retaddr[0x1a] == 0" (subscript_expression "unaff_retaddr[0x1a]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n      *param_1 = 0xffffffff;\n      uVar1 = 0;\n      puVar4 = auStack_50;\n    }" { (expression_statement "*param_1 = 0xffffffff;" (assignment_expression "*param_1 = 0xffffffff" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (expression_statement "puVar4 = auStack_50;" (assignment_expression "puVar4 = auStack_50" identifier = identifier) ;) }) (else_clause "else {\n      local_40 = param_1;\n      FUN_0001ab90(local_38);\n      local_48 = local_3c;\n      local_40 = (undefined4 *)local_38[0];\n      iVar2 = FUN_0004fdc0(*(undefined4 *)(unaff_EBX + 0x40f4f),*(undefined4 *)(unaff_EBX + 0x40f53)\n                           ,unaff_retaddr[0x1a]);\n      iVar3 = *(int *)(iVar2 + 0x10);\n      unaff_retaddr[0x1a] = iVar2;\n      if ((iVar3 < (int)local_48) ||\n         ((iVar3 <= (int)local_48 && (*(int *)(iVar2 + 0x14) <= (int)local_40)))) {\n        *local_44 = 0;\n        uVar1 = 0;\n        puVar4 = auStack_54;\n      }\n      else {\n        local_48 = local_44;\n        iVar3 = FUN_0001ac30(*(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 0x14),local_3c,\n                             local_38[0]);\n        if (iVar3 < 1) {\n          *local_48 = 1;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n        else {\n          *local_48 = iVar3;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n      }\n    }" else (compound_statement "{\n      local_40 = param_1;\n      FUN_0001ab90(local_38);\n      local_48 = local_3c;\n      local_40 = (undefined4 *)local_38[0];\n      iVar2 = FUN_0004fdc0(*(undefined4 *)(unaff_EBX + 0x40f4f),*(undefined4 *)(unaff_EBX + 0x40f53)\n                           ,unaff_retaddr[0x1a]);\n      iVar3 = *(int *)(iVar2 + 0x10);\n      unaff_retaddr[0x1a] = iVar2;\n      if ((iVar3 < (int)local_48) ||\n         ((iVar3 <= (int)local_48 && (*(int *)(iVar2 + 0x14) <= (int)local_40)))) {\n        *local_44 = 0;\n        uVar1 = 0;\n        puVar4 = auStack_54;\n      }\n      else {\n        local_48 = local_44;\n        iVar3 = FUN_0001ac30(*(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 0x14),local_3c,\n                             local_38[0]);\n        if (iVar3 < 1) {\n          *local_48 = 1;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n        else {\n          *local_48 = iVar3;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n      }\n    }" { (expression_statement "local_40 = param_1;" (assignment_expression "local_40 = param_1" identifier = identifier) ;) (expression_statement "FUN_0001ab90(local_38);" (call_expression "FUN_0001ab90(local_38)" identifier (argument_list "(local_38)" ( identifier ))) ;) (expression_statement "local_48 = local_3c;" (assignment_expression "local_48 = local_3c" identifier = identifier) ;) (expression_statement "local_40 = (undefined4 *)local_38[0];" (assignment_expression "local_40 = (undefined4 *)local_38[0]" identifier = (cast_expression "(undefined4 *)local_38[0]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "local_38[0]" identifier [ number_literal ]))) ;) (expression_statement "iVar2 = FUN_0004fdc0(*(undefined4 *)(unaff_EBX + 0x40f4f),*(undefined4 *)(unaff_EBX + 0x40f53)\n                           ,unaff_retaddr[0x1a]);" (assignment_expression "iVar2 = FUN_0004fdc0(*(undefined4 *)(unaff_EBX + 0x40f4f),*(undefined4 *)(unaff_EBX + 0x40f53)\n                           ,unaff_retaddr[0x1a])" identifier = (call_expression "FUN_0004fdc0(*(undefined4 *)(unaff_EBX + 0x40f4f),*(undefined4 *)(unaff_EBX + 0x40f53)\n                           ,unaff_retaddr[0x1a])" identifier (argument_list "(*(undefined4 *)(unaff_EBX + 0x40f4f),*(undefined4 *)(unaff_EBX + 0x40f53)\n                           ,unaff_retaddr[0x1a])" ( (pointer_expression "*(undefined4 *)(unaff_EBX + 0x40f4f)" * (cast_expression "(undefined4 *)(unaff_EBX + 0x40f4f)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EBX + 0x40f4f)" ( (binary_expression "unaff_EBX + 0x40f4f" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(unaff_EBX + 0x40f53)" * (cast_expression "(undefined4 *)(unaff_EBX + 0x40f53)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_EBX + 0x40f53)" ( (binary_expression "unaff_EBX + 0x40f53" identifier + number_literal) )))) , (subscript_expression "unaff_retaddr[0x1a]" identifier [ number_literal ]) )))) ;) (expression_statement "iVar3 = *(int *)(iVar2 + 0x10);" (assignment_expression "iVar3 = *(int *)(iVar2 + 0x10)" identifier = (pointer_expression "*(int *)(iVar2 + 0x10)" * (cast_expression "(int *)(iVar2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "unaff_retaddr[0x1a] = iVar2;" (assignment_expression "unaff_retaddr[0x1a] = iVar2" (subscript_expression "unaff_retaddr[0x1a]" identifier [ number_literal ]) = identifier) ;) (if_statement "if ((iVar3 < (int)local_48) ||\n         ((iVar3 <= (int)local_48 && (*(int *)(iVar2 + 0x14) <= (int)local_40)))) {\n        *local_44 = 0;\n        uVar1 = 0;\n        puVar4 = auStack_54;\n      }\n      else {\n        local_48 = local_44;\n        iVar3 = FUN_0001ac30(*(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 0x14),local_3c,\n                             local_38[0]);\n        if (iVar3 < 1) {\n          *local_48 = 1;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n        else {\n          *local_48 = iVar3;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n      }" if (parenthesized_expression "((iVar3 < (int)local_48) ||\n         ((iVar3 <= (int)local_48 && (*(int *)(iVar2 + 0x14) <= (int)local_40))))" ( (binary_expression "(iVar3 < (int)local_48) ||\n         ((iVar3 <= (int)local_48 && (*(int *)(iVar2 + 0x14) <= (int)local_40)))" (parenthesized_expression "(iVar3 < (int)local_48)" ( (binary_expression "iVar3 < (int)local_48" identifier < (cast_expression "(int)local_48" ( (type_descriptor "int" primitive_type) ) identifier)) )) || (parenthesized_expression "((iVar3 <= (int)local_48 && (*(int *)(iVar2 + 0x14) <= (int)local_40)))" ( (parenthesized_expression "(iVar3 <= (int)local_48 && (*(int *)(iVar2 + 0x14) <= (int)local_40))" ( (binary_expression "iVar3 <= (int)local_48 && (*(int *)(iVar2 + 0x14) <= (int)local_40)" (binary_expression "iVar3 <= (int)local_48" identifier <= (cast_expression "(int)local_48" ( (type_descriptor "int" primitive_type) ) identifier)) && (parenthesized_expression "(*(int *)(iVar2 + 0x14) <= (int)local_40)" ( (binary_expression "*(int *)(iVar2 + 0x14) <= (int)local_40" (pointer_expression "*(int *)(iVar2 + 0x14)" * (cast_expression "(int *)(iVar2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) )))) <= (cast_expression "(int)local_40" ( (type_descriptor "int" primitive_type) ) identifier)) ))) )) ))) )) (compound_statement "{\n        *local_44 = 0;\n        uVar1 = 0;\n        puVar4 = auStack_54;\n      }" { (expression_statement "*local_44 = 0;" (assignment_expression "*local_44 = 0" (pointer_expression "*local_44" * identifier) = number_literal) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (expression_statement "puVar4 = auStack_54;" (assignment_expression "puVar4 = auStack_54" identifier = identifier) ;) }) (else_clause "else {\n        local_48 = local_44;\n        iVar3 = FUN_0001ac30(*(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 0x14),local_3c,\n                             local_38[0]);\n        if (iVar3 < 1) {\n          *local_48 = 1;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n        else {\n          *local_48 = iVar3;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n      }" else (compound_statement "{\n        local_48 = local_44;\n        iVar3 = FUN_0001ac30(*(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 0x14),local_3c,\n                             local_38[0]);\n        if (iVar3 < 1) {\n          *local_48 = 1;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n        else {\n          *local_48 = iVar3;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n      }" { (expression_statement "local_48 = local_44;" (assignment_expression "local_48 = local_44" identifier = identifier) ;) (expression_statement "iVar3 = FUN_0001ac30(*(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 0x14),local_3c,\n                             local_38[0]);" (assignment_expression "iVar3 = FUN_0001ac30(*(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 0x14),local_3c,\n                             local_38[0])" identifier = (call_expression "FUN_0001ac30(*(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 0x14),local_3c,\n                             local_38[0])" identifier (argument_list "(*(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 0x14),local_3c,\n                             local_38[0])" ( (pointer_expression "*(undefined4 *)(iVar2 + 0x10)" * (cast_expression "(undefined4 *)(iVar2 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(iVar2 + 0x14)" * (cast_expression "(undefined4 *)(iVar2 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) )))) , identifier , (subscript_expression "local_38[0]" identifier [ number_literal ]) )))) ;) (if_statement "if (iVar3 < 1) {\n          *local_48 = 1;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n        else {\n          *local_48 = iVar3;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }" if (parenthesized_expression "(iVar3 < 1)" ( (binary_expression "iVar3 < 1" identifier < number_literal) )) (compound_statement "{\n          *local_48 = 1;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }" { (expression_statement "*local_48 = 1;" (assignment_expression "*local_48 = 1" (pointer_expression "*local_48" * identifier) = number_literal) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (expression_statement "puVar4 = auStack_54;" (assignment_expression "puVar4 = auStack_54" identifier = identifier) ;) }) (else_clause "else {\n          *local_48 = iVar3;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }" else (compound_statement "{\n          *local_48 = iVar3;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }" { (expression_statement "*local_48 = iVar3;" (assignment_expression "*local_48 = iVar3" (pointer_expression "*local_48" * identifier) = identifier) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (expression_statement "puVar4 = auStack_54;" (assignment_expression "puVar4 = auStack_54" identifier = identifier) ;) }))) }))) }))) })) (if_statement "if (*(int *)(puVar4 + 0x2c) == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar1;\n  }" if (parenthesized_expression "(*(int *)(puVar4 + 0x2c) == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "*(int *)(puVar4 + 0x2c) == *(int *)(in_GS_OFFSET + 0x14)" (pointer_expression "*(int *)(puVar4 + 0x2c)" * (cast_expression "(int *)(puVar4 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar4 + 0x2c)" ( (binary_expression "puVar4 + 0x2c" identifier + number_literal) )))) == (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 uVar1;\n  }" { (return_statement "return uVar1;" return identifier ;) })) (expression_statement "*(undefined **)(puVar4 + -4) = &UNK_00046bba;" (assignment_expression "*(undefined **)(puVar4 + -4) = &UNK_00046bba" (pointer_expression "*(undefined **)(puVar4 + -4)" * (cast_expression "(undefined **)(puVar4 + -4)" ( (type_descriptor "undefined **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar4 + -4)" ( (binary_expression "puVar4 + -4" identifier + number_literal) )))) = (pointer_expression "&UNK_00046bba" & identifier)) ;) (expression_statement "FUN_00082f60();" (call_expression "FUN_00082f60()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (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 = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression (pointer_expression * IDENT) == LIT)) ))) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = LIT) , (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) == (char_literal ' escape_sequence ')))) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (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) )))) , (subscript_expression IDENT [ LIT ]) )))) ;) (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 (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) || (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression IDENT <= (cast_expression ( (type_descriptor TYPE) ) IDENT)) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) <= (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) )) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , (subscript_expression IDENT [ LIT ]) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }))) }))) }))) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression & IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "undefined4 curl_multi_timeout(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  int unaff_EBX;\n  undefined1 *puVar4;\n  int in_GS_OFFSET;\n  int *unaff_retaddr;\n  undefined1 auStack_54 [4];\n  undefined1 auStack_50 [8];\n  int *local_48;\n  int *local_44;\n  undefined4 *local_40;\n  int *local_3c;\n  int local_38 [5];\n  undefined4 local_24;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x46aa9;\n  entry();\n  local_24 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  uVar1 = 1;\n  puVar4 = auStack_50;\n  if (((unaff_retaddr != (int *)0x0) && (puVar4 = auStack_50, *unaff_retaddr == 0xbab1e)) &&\n     (uVar1 = 8, puVar4 = auStack_50, (char)unaff_retaddr[0x40] == '\0')) {\n    if (unaff_retaddr[0x1a] == 0) {\n      *param_1 = 0xffffffff;\n      uVar1 = 0;\n      puVar4 = auStack_50;\n    }\n    else {\n      local_40 = param_1;\n      FUN_0001ab90(local_38);\n      local_48 = local_3c;\n      local_40 = (undefined4 *)local_38[0];\n      iVar2 = FUN_0004fdc0(*(undefined4 *)(unaff_EBX + 0x40f4f),*(undefined4 *)(unaff_EBX + 0x40f53)\n                           ,unaff_retaddr[0x1a]);\n      iVar3 = *(int *)(iVar2 + 0x10);\n      unaff_retaddr[0x1a] = iVar2;\n      if ((iVar3 < (int)local_48) ||\n         ((iVar3 <= (int)local_48 && (*(int *)(iVar2 + 0x14) <= (int)local_40)))) {\n        *local_44 = 0;\n        uVar1 = 0;\n        puVar4 = auStack_54;\n      }\n      else {\n        local_48 = local_44;\n        iVar3 = FUN_0001ac30(*(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 0x14),local_3c,\n                             local_38[0]);\n        if (iVar3 < 1) {\n          *local_48 = 1;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n        else {\n          *local_48 = iVar3;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n      }\n    }\n  }\n  if (*(int *)(puVar4 + 0x2c) == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar1;\n  }\n                    \n  *(undefined **)(puVar4 + -4) = &UNK_00046bba;\n  FUN_00082f60();\n}" (type_identifier "undefined4") (function_declarator "curl_multi_timeout(undefined4 *param_1)" (identifier "curl_multi_timeout") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  int iVar3;\n  int unaff_EBX;\n  undefined1 *puVar4;\n  int in_GS_OFFSET;\n  int *unaff_retaddr;\n  undefined1 auStack_54 [4];\n  undefined1 auStack_50 [8];\n  int *local_48;\n  int *local_44;\n  undefined4 *local_40;\n  int *local_3c;\n  int local_38 [5];\n  undefined4 local_24;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x46aa9;\n  entry();\n  local_24 = *(undefined4 *)(in_GS_OFFSET + 0x14);\n  uVar1 = 1;\n  puVar4 = auStack_50;\n  if (((unaff_retaddr != (int *)0x0) && (puVar4 = auStack_50, *unaff_retaddr == 0xbab1e)) &&\n     (uVar1 = 8, puVar4 = auStack_50, (char)unaff_retaddr[0x40] == '\0')) {\n    if (unaff_retaddr[0x1a] == 0) {\n      *param_1 = 0xffffffff;\n      uVar1 = 0;\n      puVar4 = auStack_50;\n    }\n    else {\n      local_40 = param_1;\n      FUN_0001ab90(local_38);\n      local_48 = local_3c;\n      local_40 = (undefined4 *)local_38[0];\n      iVar2 = FUN_0004fdc0(*(undefined4 *)(unaff_EBX + 0x40f4f),*(undefined4 *)(unaff_EBX + 0x40f53)\n                           ,unaff_retaddr[0x1a]);\n      iVar3 = *(int *)(iVar2 + 0x10);\n      unaff_retaddr[0x1a] = iVar2;\n      if ((iVar3 < (int)local_48) ||\n         ((iVar3 <= (int)local_48 && (*(int *)(iVar2 + 0x14) <= (int)local_40)))) {\n        *local_44 = 0;\n        uVar1 = 0;\n        puVar4 = auStack_54;\n      }\n      else {\n        local_48 = local_44;\n        iVar3 = FUN_0001ac30(*(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 0x14),local_3c,\n                             local_38[0]);\n        if (iVar3 < 1) {\n          *local_48 = 1;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n        else {\n          *local_48 = iVar3;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n      }\n    }\n  }\n  if (*(int *)(puVar4 + 0x2c) == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar1;\n  }\n                    \n  *(undefined **)(puVar4 + -4) = &UNK_00046bba;\n  FUN_00082f60();\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int unaff_EBX;" (primitive_type "int") (identifier "unaff_EBX") (; ";")) (declaration "undefined1 *puVar4;" (type_identifier "undefined1") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "int *unaff_retaddr;" (primitive_type "int") (pointer_declarator "*unaff_retaddr" (* "*") (identifier "unaff_retaddr")) (; ";")) (declaration "undefined1 auStack_54 [4];" (type_identifier "undefined1") (array_declarator "auStack_54 [4]" (identifier "auStack_54") ([ "[") (number_literal "4") (] "]")) (; ";")) (declaration "undefined1 auStack_50 [8];" (type_identifier "undefined1") (array_declarator "auStack_50 [8]" (identifier "auStack_50") ([ "[") (number_literal "8") (] "]")) (; ";")) (declaration "int *local_48;" (primitive_type "int") (pointer_declarator "*local_48" (* "*") (identifier "local_48")) (; ";")) (declaration "int *local_44;" (primitive_type "int") (pointer_declarator "*local_44" (* "*") (identifier "local_44")) (; ";")) (declaration "undefined4 *local_40;" (type_identifier "undefined4") (pointer_declarator "*local_40" (* "*") (identifier "local_40")) (; ";")) (declaration "int *local_3c;" (primitive_type "int") (pointer_declarator "*local_3c" (* "*") (identifier "local_3c")) (; ";")) (declaration "int local_38 [5];" (primitive_type "int") (array_declarator "local_38 [5]" (identifier "local_38") ([ "[") (number_literal "5") (] "]")) (; ";")) (declaration "undefined4 local_24;" (type_identifier "undefined4") (identifier "local_24") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x46aa9;" (assignment_expression "uStack_14 = 0x46aa9" (identifier "uStack_14") (= "=") (number_literal "0x46aa9")) (; ";")) (expression_statement "entry();" (call_expression "entry()" (identifier "entry") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "local_24 = *(undefined4 *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_24 = *(undefined4 *)(in_GS_OFFSET + 0x14)" (identifier "local_24") (= "=") (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")) () ")"))))) (; ";")) (expression_statement "uVar1 = 1;" (assignment_expression "uVar1 = 1" (identifier "uVar1") (= "=") (number_literal "1")) (; ";")) (expression_statement "puVar4 = auStack_50;" (assignment_expression "puVar4 = auStack_50" (identifier "puVar4") (= "=") (identifier "auStack_50")) (; ";")) (if_statement "if (((unaff_retaddr != (int *)0x0) && (puVar4 = auStack_50, *unaff_retaddr == 0xbab1e)) &&\n     (uVar1 = 8, puVar4 = auStack_50, (char)unaff_retaddr[0x40] == '\0')) {\n    if (unaff_retaddr[0x1a] == 0) {\n      *param_1 = 0xffffffff;\n      uVar1 = 0;\n      puVar4 = auStack_50;\n    }\n    else {\n      local_40 = param_1;\n      FUN_0001ab90(local_38);\n      local_48 = local_3c;\n      local_40 = (undefined4 *)local_38[0];\n      iVar2 = FUN_0004fdc0(*(undefined4 *)(unaff_EBX + 0x40f4f),*(undefined4 *)(unaff_EBX + 0x40f53)\n                           ,unaff_retaddr[0x1a]);\n      iVar3 = *(int *)(iVar2 + 0x10);\n      unaff_retaddr[0x1a] = iVar2;\n      if ((iVar3 < (int)local_48) ||\n         ((iVar3 <= (int)local_48 && (*(int *)(iVar2 + 0x14) <= (int)local_40)))) {\n        *local_44 = 0;\n        uVar1 = 0;\n        puVar4 = auStack_54;\n      }\n      else {\n        local_48 = local_44;\n        iVar3 = FUN_0001ac30(*(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 0x14),local_3c,\n                             local_38[0]);\n        if (iVar3 < 1) {\n          *local_48 = 1;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n        else {\n          *local_48 = iVar3;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n      }\n    }\n  }" (if "if") (parenthesized_expression "(((unaff_retaddr != (int *)0x0) && (puVar4 = auStack_50, *unaff_retaddr == 0xbab1e)) &&\n     (uVar1 = 8, puVar4 = auStack_50, (char)unaff_retaddr[0x40] == '\0'))" (( "(") (binary_expression "((unaff_retaddr != (int *)0x0) && (puVar4 = auStack_50, *unaff_retaddr == 0xbab1e)) &&\n     (uVar1 = 8, puVar4 = auStack_50, (char)unaff_retaddr[0x40] == '\0')" (parenthesized_expression "((unaff_retaddr != (int *)0x0) && (puVar4 = auStack_50, *unaff_retaddr == 0xbab1e))" (( "(") (binary_expression "(unaff_retaddr != (int *)0x0) && (puVar4 = auStack_50, *unaff_retaddr == 0xbab1e)" (parenthesized_expression "(unaff_retaddr != (int *)0x0)" (( "(") (binary_expression "unaff_retaddr != (int *)0x0" (identifier "unaff_retaddr") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(puVar4 = auStack_50, *unaff_retaddr == 0xbab1e)" (( "(") (comma_expression "puVar4 = auStack_50, *unaff_retaddr == 0xbab1e" (assignment_expression "puVar4 = auStack_50" (identifier "puVar4") (= "=") (identifier "auStack_50")) (, ",") (binary_expression "*unaff_retaddr == 0xbab1e" (pointer_expression "*unaff_retaddr" (* "*") (identifier "unaff_retaddr")) (== "==") (number_literal "0xbab1e"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(uVar1 = 8, puVar4 = auStack_50, (char)unaff_retaddr[0x40] == '\0')" (( "(") (comma_expression "uVar1 = 8, puVar4 = auStack_50, (char)unaff_retaddr[0x40] == '\0'" (assignment_expression "uVar1 = 8" (identifier "uVar1") (= "=") (number_literal "8")) (, ",") (comma_expression "puVar4 = auStack_50, (char)unaff_retaddr[0x40] == '\0'" (assignment_expression "puVar4 = auStack_50" (identifier "puVar4") (= "=") (identifier "auStack_50")) (, ",") (binary_expression "(char)unaff_retaddr[0x40] == '\0'" (cast_expression "(char)unaff_retaddr[0x40]" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (subscript_expression "unaff_retaddr[0x40]" (identifier "unaff_retaddr") ([ "[") (number_literal "0x40") (] "]"))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))))) () ")"))) () ")")) (compound_statement "{\n    if (unaff_retaddr[0x1a] == 0) {\n      *param_1 = 0xffffffff;\n      uVar1 = 0;\n      puVar4 = auStack_50;\n    }\n    else {\n      local_40 = param_1;\n      FUN_0001ab90(local_38);\n      local_48 = local_3c;\n      local_40 = (undefined4 *)local_38[0];\n      iVar2 = FUN_0004fdc0(*(undefined4 *)(unaff_EBX + 0x40f4f),*(undefined4 *)(unaff_EBX + 0x40f53)\n                           ,unaff_retaddr[0x1a]);\n      iVar3 = *(int *)(iVar2 + 0x10);\n      unaff_retaddr[0x1a] = iVar2;\n      if ((iVar3 < (int)local_48) ||\n         ((iVar3 <= (int)local_48 && (*(int *)(iVar2 + 0x14) <= (int)local_40)))) {\n        *local_44 = 0;\n        uVar1 = 0;\n        puVar4 = auStack_54;\n      }\n      else {\n        local_48 = local_44;\n        iVar3 = FUN_0001ac30(*(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 0x14),local_3c,\n                             local_38[0]);\n        if (iVar3 < 1) {\n          *local_48 = 1;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n        else {\n          *local_48 = iVar3;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n      }\n    }\n  }" ({ "{") (if_statement "if (unaff_retaddr[0x1a] == 0) {\n      *param_1 = 0xffffffff;\n      uVar1 = 0;\n      puVar4 = auStack_50;\n    }\n    else {\n      local_40 = param_1;\n      FUN_0001ab90(local_38);\n      local_48 = local_3c;\n      local_40 = (undefined4 *)local_38[0];\n      iVar2 = FUN_0004fdc0(*(undefined4 *)(unaff_EBX + 0x40f4f),*(undefined4 *)(unaff_EBX + 0x40f53)\n                           ,unaff_retaddr[0x1a]);\n      iVar3 = *(int *)(iVar2 + 0x10);\n      unaff_retaddr[0x1a] = iVar2;\n      if ((iVar3 < (int)local_48) ||\n         ((iVar3 <= (int)local_48 && (*(int *)(iVar2 + 0x14) <= (int)local_40)))) {\n        *local_44 = 0;\n        uVar1 = 0;\n        puVar4 = auStack_54;\n      }\n      else {\n        local_48 = local_44;\n        iVar3 = FUN_0001ac30(*(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 0x14),local_3c,\n                             local_38[0]);\n        if (iVar3 < 1) {\n          *local_48 = 1;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n        else {\n          *local_48 = iVar3;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n      }\n    }" (if "if") (parenthesized_expression "(unaff_retaddr[0x1a] == 0)" (( "(") (binary_expression "unaff_retaddr[0x1a] == 0" (subscript_expression "unaff_retaddr[0x1a]" (identifier "unaff_retaddr") ([ "[") (number_literal "0x1a") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      *param_1 = 0xffffffff;\n      uVar1 = 0;\n      puVar4 = auStack_50;\n    }" ({ "{") (expression_statement "*param_1 = 0xffffffff;" (assignment_expression "*param_1 = 0xffffffff" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" (identifier "uVar1") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar4 = auStack_50;" (assignment_expression "puVar4 = auStack_50" (identifier "puVar4") (= "=") (identifier "auStack_50")) (; ";")) (} "}")) (else_clause "else {\n      local_40 = param_1;\n      FUN_0001ab90(local_38);\n      local_48 = local_3c;\n      local_40 = (undefined4 *)local_38[0];\n      iVar2 = FUN_0004fdc0(*(undefined4 *)(unaff_EBX + 0x40f4f),*(undefined4 *)(unaff_EBX + 0x40f53)\n                           ,unaff_retaddr[0x1a]);\n      iVar3 = *(int *)(iVar2 + 0x10);\n      unaff_retaddr[0x1a] = iVar2;\n      if ((iVar3 < (int)local_48) ||\n         ((iVar3 <= (int)local_48 && (*(int *)(iVar2 + 0x14) <= (int)local_40)))) {\n        *local_44 = 0;\n        uVar1 = 0;\n        puVar4 = auStack_54;\n      }\n      else {\n        local_48 = local_44;\n        iVar3 = FUN_0001ac30(*(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 0x14),local_3c,\n                             local_38[0]);\n        if (iVar3 < 1) {\n          *local_48 = 1;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n        else {\n          *local_48 = iVar3;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n      }\n    }" (else "else") (compound_statement "{\n      local_40 = param_1;\n      FUN_0001ab90(local_38);\n      local_48 = local_3c;\n      local_40 = (undefined4 *)local_38[0];\n      iVar2 = FUN_0004fdc0(*(undefined4 *)(unaff_EBX + 0x40f4f),*(undefined4 *)(unaff_EBX + 0x40f53)\n                           ,unaff_retaddr[0x1a]);\n      iVar3 = *(int *)(iVar2 + 0x10);\n      unaff_retaddr[0x1a] = iVar2;\n      if ((iVar3 < (int)local_48) ||\n         ((iVar3 <= (int)local_48 && (*(int *)(iVar2 + 0x14) <= (int)local_40)))) {\n        *local_44 = 0;\n        uVar1 = 0;\n        puVar4 = auStack_54;\n      }\n      else {\n        local_48 = local_44;\n        iVar3 = FUN_0001ac30(*(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 0x14),local_3c,\n                             local_38[0]);\n        if (iVar3 < 1) {\n          *local_48 = 1;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n        else {\n          *local_48 = iVar3;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n      }\n    }" ({ "{") (expression_statement "local_40 = param_1;" (assignment_expression "local_40 = param_1" (identifier "local_40") (= "=") (identifier "param_1")) (; ";")) (expression_statement "FUN_0001ab90(local_38);" (call_expression "FUN_0001ab90(local_38)" (identifier "FUN_0001ab90") (argument_list "(local_38)" (( "(") (identifier "local_38") () ")"))) (; ";")) (expression_statement "local_48 = local_3c;" (assignment_expression "local_48 = local_3c" (identifier "local_48") (= "=") (identifier "local_3c")) (; ";")) (expression_statement "local_40 = (undefined4 *)local_38[0];" (assignment_expression "local_40 = (undefined4 *)local_38[0]" (identifier "local_40") (= "=") (cast_expression "(undefined4 *)local_38[0]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "local_38[0]" (identifier "local_38") ([ "[") (number_literal "0") (] "]")))) (; ";")) (expression_statement "iVar2 = FUN_0004fdc0(*(undefined4 *)(unaff_EBX + 0x40f4f),*(undefined4 *)(unaff_EBX + 0x40f53)\n                           ,unaff_retaddr[0x1a]);" (assignment_expression "iVar2 = FUN_0004fdc0(*(undefined4 *)(unaff_EBX + 0x40f4f),*(undefined4 *)(unaff_EBX + 0x40f53)\n                           ,unaff_retaddr[0x1a])" (identifier "iVar2") (= "=") (call_expression "FUN_0004fdc0(*(undefined4 *)(unaff_EBX + 0x40f4f),*(undefined4 *)(unaff_EBX + 0x40f53)\n                           ,unaff_retaddr[0x1a])" (identifier "FUN_0004fdc0") (argument_list "(*(undefined4 *)(unaff_EBX + 0x40f4f),*(undefined4 *)(unaff_EBX + 0x40f53)\n                           ,unaff_retaddr[0x1a])" (( "(") (pointer_expression "*(undefined4 *)(unaff_EBX + 0x40f4f)" (* "*") (cast_expression "(undefined4 *)(unaff_EBX + 0x40f4f)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EBX + 0x40f4f)" (( "(") (binary_expression "unaff_EBX + 0x40f4f" (identifier "unaff_EBX") (+ "+") (number_literal "0x40f4f")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(unaff_EBX + 0x40f53)" (* "*") (cast_expression "(undefined4 *)(unaff_EBX + 0x40f53)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_EBX + 0x40f53)" (( "(") (binary_expression "unaff_EBX + 0x40f53" (identifier "unaff_EBX") (+ "+") (number_literal "0x40f53")) () ")")))) (, ",") (subscript_expression "unaff_retaddr[0x1a]" (identifier "unaff_retaddr") ([ "[") (number_literal "0x1a") (] "]")) () ")")))) (; ";")) (expression_statement "iVar3 = *(int *)(iVar2 + 0x10);" (assignment_expression "iVar3 = *(int *)(iVar2 + 0x10)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(iVar2 + 0x10)" (* "*") (cast_expression "(int *)(iVar2 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x10)" (( "(") (binary_expression "iVar2 + 0x10" (identifier "iVar2") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (expression_statement "unaff_retaddr[0x1a] = iVar2;" (assignment_expression "unaff_retaddr[0x1a] = iVar2" (subscript_expression "unaff_retaddr[0x1a]" (identifier "unaff_retaddr") ([ "[") (number_literal "0x1a") (] "]")) (= "=") (identifier "iVar2")) (; ";")) (if_statement "if ((iVar3 < (int)local_48) ||\n         ((iVar3 <= (int)local_48 && (*(int *)(iVar2 + 0x14) <= (int)local_40)))) {\n        *local_44 = 0;\n        uVar1 = 0;\n        puVar4 = auStack_54;\n      }\n      else {\n        local_48 = local_44;\n        iVar3 = FUN_0001ac30(*(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 0x14),local_3c,\n                             local_38[0]);\n        if (iVar3 < 1) {\n          *local_48 = 1;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n        else {\n          *local_48 = iVar3;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n      }" (if "if") (parenthesized_expression "((iVar3 < (int)local_48) ||\n         ((iVar3 <= (int)local_48 && (*(int *)(iVar2 + 0x14) <= (int)local_40))))" (( "(") (binary_expression "(iVar3 < (int)local_48) ||\n         ((iVar3 <= (int)local_48 && (*(int *)(iVar2 + 0x14) <= (int)local_40)))" (parenthesized_expression "(iVar3 < (int)local_48)" (( "(") (binary_expression "iVar3 < (int)local_48" (identifier "iVar3") (< "<") (cast_expression "(int)local_48" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_48"))) () ")")) (|| "||") (parenthesized_expression "((iVar3 <= (int)local_48 && (*(int *)(iVar2 + 0x14) <= (int)local_40)))" (( "(") (parenthesized_expression "(iVar3 <= (int)local_48 && (*(int *)(iVar2 + 0x14) <= (int)local_40))" (( "(") (binary_expression "iVar3 <= (int)local_48 && (*(int *)(iVar2 + 0x14) <= (int)local_40)" (binary_expression "iVar3 <= (int)local_48" (identifier "iVar3") (<= "<=") (cast_expression "(int)local_48" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_48"))) (&& "&&") (parenthesized_expression "(*(int *)(iVar2 + 0x14) <= (int)local_40)" (( "(") (binary_expression "*(int *)(iVar2 + 0x14) <= (int)local_40" (pointer_expression "*(int *)(iVar2 + 0x14)" (* "*") (cast_expression "(int *)(iVar2 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x14)" (( "(") (binary_expression "iVar2 + 0x14" (identifier "iVar2") (+ "+") (number_literal "0x14")) () ")")))) (<= "<=") (cast_expression "(int)local_40" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_40"))) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n        *local_44 = 0;\n        uVar1 = 0;\n        puVar4 = auStack_54;\n      }" ({ "{") (expression_statement "*local_44 = 0;" (assignment_expression "*local_44 = 0" (pointer_expression "*local_44" (* "*") (identifier "local_44")) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" (identifier "uVar1") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar4 = auStack_54;" (assignment_expression "puVar4 = auStack_54" (identifier "puVar4") (= "=") (identifier "auStack_54")) (; ";")) (} "}")) (else_clause "else {\n        local_48 = local_44;\n        iVar3 = FUN_0001ac30(*(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 0x14),local_3c,\n                             local_38[0]);\n        if (iVar3 < 1) {\n          *local_48 = 1;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n        else {\n          *local_48 = iVar3;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n      }" (else "else") (compound_statement "{\n        local_48 = local_44;\n        iVar3 = FUN_0001ac30(*(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 0x14),local_3c,\n                             local_38[0]);\n        if (iVar3 < 1) {\n          *local_48 = 1;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n        else {\n          *local_48 = iVar3;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n      }" ({ "{") (expression_statement "local_48 = local_44;" (assignment_expression "local_48 = local_44" (identifier "local_48") (= "=") (identifier "local_44")) (; ";")) (expression_statement "iVar3 = FUN_0001ac30(*(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 0x14),local_3c,\n                             local_38[0]);" (assignment_expression "iVar3 = FUN_0001ac30(*(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 0x14),local_3c,\n                             local_38[0])" (identifier "iVar3") (= "=") (call_expression "FUN_0001ac30(*(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 0x14),local_3c,\n                             local_38[0])" (identifier "FUN_0001ac30") (argument_list "(*(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 0x14),local_3c,\n                             local_38[0])" (( "(") (pointer_expression "*(undefined4 *)(iVar2 + 0x10)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x10)" (( "(") (binary_expression "iVar2 + 0x10" (identifier "iVar2") (+ "+") (number_literal "0x10")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(iVar2 + 0x14)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x14)" (( "(") (binary_expression "iVar2 + 0x14" (identifier "iVar2") (+ "+") (number_literal "0x14")) () ")")))) (, ",") (identifier "local_3c") (, ",") (subscript_expression "local_38[0]" (identifier "local_38") ([ "[") (number_literal "0") (] "]")) () ")")))) (; ";")) (if_statement "if (iVar3 < 1) {\n          *local_48 = 1;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }\n        else {\n          *local_48 = iVar3;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }" (if "if") (parenthesized_expression "(iVar3 < 1)" (( "(") (binary_expression "iVar3 < 1" (identifier "iVar3") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n          *local_48 = 1;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }" ({ "{") (expression_statement "*local_48 = 1;" (assignment_expression "*local_48 = 1" (pointer_expression "*local_48" (* "*") (identifier "local_48")) (= "=") (number_literal "1")) (; ";")) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" (identifier "uVar1") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar4 = auStack_54;" (assignment_expression "puVar4 = auStack_54" (identifier "puVar4") (= "=") (identifier "auStack_54")) (; ";")) (} "}")) (else_clause "else {\n          *local_48 = iVar3;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }" (else "else") (compound_statement "{\n          *local_48 = iVar3;\n          uVar1 = 0;\n          puVar4 = auStack_54;\n        }" ({ "{") (expression_statement "*local_48 = iVar3;" (assignment_expression "*local_48 = iVar3" (pointer_expression "*local_48" (* "*") (identifier "local_48")) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" (identifier "uVar1") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar4 = auStack_54;" (assignment_expression "puVar4 = auStack_54" (identifier "puVar4") (= "=") (identifier "auStack_54")) (; ";")) (} "}")))) (} "}")))) (} "}")))) (} "}"))) (if_statement "if (*(int *)(puVar4 + 0x2c) == *(int *)(in_GS_OFFSET + 0x14)) {\n    return uVar1;\n  }" (if "if") (parenthesized_expression "(*(int *)(puVar4 + 0x2c) == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "*(int *)(puVar4 + 0x2c) == *(int *)(in_GS_OFFSET + 0x14)" (pointer_expression "*(int *)(puVar4 + 0x2c)" (* "*") (cast_expression "(int *)(puVar4 + 0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar4 + 0x2c)" (( "(") (binary_expression "puVar4 + 0x2c" (identifier "puVar4") (+ "+") (number_literal "0x2c")) () ")")))) (== "==") (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 uVar1;\n  }" ({ "{") (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (expression_statement "*(undefined **)(puVar4 + -4) = &UNK_00046bba;" (assignment_expression "*(undefined **)(puVar4 + -4) = &UNK_00046bba" (pointer_expression "*(undefined **)(puVar4 + -4)" (* "*") (cast_expression "(undefined **)(puVar4 + -4)" (( "(") (type_descriptor "undefined **" (type_identifier "undefined") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar4 + -4)" (( "(") (binary_expression "puVar4 + -4" (identifier "puVar4") (+ "+") (number_literal "-4")) () ")")))) (= "=") (pointer_expression "&UNK_00046bba" (& "&") (identifier "UNK_00046bba"))) (; ";")) (expression_statement "FUN_00082f60();" (call_expression "FUN_00082f60()" (identifier "FUN_00082f60") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

type_1 function_1(type_2 *var_2,long *timeout_ms)

{
  int var_5;
  int var_10;
  type_3 i;
  type_3 older;
  type_1 CVar3;
  type_4 *pCVar4;
  type_5 var_9;
  int var_1;
  int var_6;
  int var_7;
  
  var_10 = *(int *)(var_1 + 0x14);
  CVar3 = CURLM_BAD_HANDLE;
  if (((var_2 != (type_2 *)0x0) && (var_2->type == 0xbab1e)) &&
     (CVar3 = CURLM_RECURSIVE_API_CALL, var_2->in_callback == false)) {
    if (var_2->timetree == (type_4 *)0x0) {
      *timeout_ms = -1;
      CVar3 = CURLM_OK;
    }
    else {
      var_3();
      i.tv_usec = DAT_000879fc;
      i.tv_sec = tv_zero_12339;
      pCVar4 = var_4(i,var_2->timetree);
      var_5 = (pCVar4->key).tv_sec;
      var_2->timetree = pCVar4;
      if ((var_5 < var_6) || ((var_5 <= var_6 && ((pCVar4->key).tv_usec <= var_7)))) {
        *timeout_ms = 0;
        CVar3 = CURLM_OK;
      }
      else {
        older.tv_usec = var_7;
        older.tv_sec = var_6;
        var_9 = var_8(pCVar4->key,older);
        if (var_9 < 1) {
          *timeout_ms = 1;
          CVar3 = CURLM_OK;
        }
        else {
          *timeout_ms = var_9;
          CVar3 = CURLM_OK;
        }
      }
    }
  }
  if (var_10 == *(int *)(var_1 + 0x14)) {
    return CVar3;
  }
                    /* WARNING: Subroutine does not return */
  var_11();
}


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

undefined4 MASKED(undefined4 *param_1)

{
  undefined4 uVar1;
  int iVar2;
  int iVar3;
  int unaff_EBX;
  undefined1 *puVar4;
  int in_GS_OFFSET;
  int *unaff_retaddr;
  undefined1 auStack_54 [4];
  undefined1 auStack_50 [8];
  int *local_48;
  int *local_44;
  undefined4 *local_40;
  int *local_3c;
  int local_38 [5];
  undefined4 local_24;
  undefined4 uStack_14;
  
  uStack_14 = 0x46aa9;
  entry();
  local_24 = *(undefined4 *)(in_GS_OFFSET + 0x14);
  uVar1 = 1;
  puVar4 = auStack_50;
  if (((unaff_retaddr != (int *)0x0) && (puVar4 = auStack_50, *unaff_retaddr == 0xbab1e)) &&
     (uVar1 = 8, puVar4 = auStack_50, (char)unaff_retaddr[0x40] == '\0')) {
    if (unaff_retaddr[0x1a] == 0) {
      *param_1 = 0xffffffff;
      uVar1 = 0;
      puVar4 = auStack_50;
    }
    else {
      local_40 = param_1;
      FUN_0001ab90(local_38);
      local_48 = local_3c;
      local_40 = (undefined4 *)local_38[0];
      iVar2 = FUN_0004fdc0(*(undefined4 *)(unaff_EBX + 0x40f4f),*(undefined4 *)(unaff_EBX + 0x40f53)
                           ,unaff_retaddr[0x1a]);
      iVar3 = *(int *)(iVar2 + 0x10);
      unaff_retaddr[0x1a] = iVar2;
      if ((iVar3 < (int)local_48) ||
         ((iVar3 <= (int)local_48 && (*(int *)(iVar2 + 0x14) <= (int)local_40)))) {
        *local_44 = 0;
        uVar1 = 0;
        puVar4 = auStack_54;
      }
      else {
        local_48 = local_44;
        iVar3 = FUN_0001ac30(*(undefined4 *)(iVar2 + 0x10),*(undefined4 *)(iVar2 + 0x14),local_3c,
                             local_38[0]);
        if (iVar3 < 1) {
          *local_48 = 1;
          uVar1 = 0;
          puVar4 = auStack_54;
        }
        else {
          *local_48 = iVar3;
          uVar1 = 0;
          puVar4 = auStack_54;
        }
      }
    }
  }
  if (*(int *)(puVar4 + 0x2c) == *(int *)(in_GS_OFFSET + 0x14)) {
    return uVar1;
  }
                    /* WARNING: Subroutine does not return */
  *(undefined **)(puVar4 + -4) = &UNK_00046bba;
  FUN_00082f60();
}

