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

uint getaddrinfo_thread(void *arg)

{
  int iVar1;
  void *pvVar2;
  int iVar3;
  int *piVar4;
  uint uVar5;
  undefined4 *puVar6;
  int in_GS_OFFSET;
  byte bVar7;
  char service [12];
  
  bVar7 = 0;
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  pvVar2 = *(void **)((int)arg + 0x38);
  curl_msnprintf(service,0xc,"%d",*(undefined4 *)((int)arg + 0xc));
  iVar3 = Curl_getaddrinfo_ex(*(char **)((int)arg + 8),service,(addrinfo *)((int)arg + 0x18),
                              (Curl_addrinfo **)((int)arg + 0x14));
  if (iVar3 != 0) {
    piVar4 = __errno_location();
    if (*piVar4 != 0) {
      iVar3 = *piVar4;
    }
    *(int *)((int)arg + 0x10) = iVar3;
  }
                    /* WARNING: Load size is inaccurate */
  pthread_mutex_lock(*arg);
  if (*(int *)((int)arg + 4) == 0) {
    *(undefined4 *)((int)arg + 4) = 1;
                    /* WARNING: Load size is inaccurate */
    pthread_mutex_unlock(*arg);
  }
  else {
                    /* WARNING: Load size is inaccurate */
    pthread_mutex_unlock(*arg);
                    /* WARNING: Load size is inaccurate */
    if (*arg != (pthread_mutex_t *)0x0) {
      pthread_mutex_destroy(*arg);
                    /* WARNING: Load size is inaccurate */
      (*Curl_cfree)(*arg);
    }
    (*Curl_cfree)(*(void **)((int)arg + 8));
    if (*(Curl_addrinfo **)((int)arg + 0x14) != (Curl_addrinfo *)0x0) {
      Curl_freeaddrinfo(*(Curl_addrinfo **)((int)arg + 0x14));
    }
    *(undefined4 *)arg = 0;
    puVar6 = (undefined4 *)((int)arg + 4U & 0xfffffffc);
    *(undefined4 *)((int)arg + 0x38) = 0;
    uVar5 = (uint)((int)arg + (0x3c - (int)puVar6)) >> 2;
    for (; uVar5 != 0; uVar5 = uVar5 - 1) {
      *puVar6 = 0;
      puVar6 = puVar6 + (uint)bVar7 * -2 + 1;
    }
    (*Curl_cfree)(pvVar2);
  }
  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return 0;
}



undefined4 FUN_00062490(void)

{
  undefined4 uVar1;
  int iVar2;
  int *piVar3;
  uint uVar4;
  int unaff_EBX;
  undefined4 *puVar5;
  int in_GS_OFFSET;
  byte bVar6;
  undefined4 *unaff_retaddr;
  undefined1 local_30 [12];
  int local_24;
  undefined4 uStack_14;
  
  bVar6 = 0;
  uStack_14 = 0x62499;
  entry();
  local_24 = *(int *)(in_GS_OFFSET + 0x14);
  uVar1 = unaff_retaddr[0xe];
  curl_msnprintf(local_30,0xc,unaff_EBX + 0x21cc4,unaff_retaddr[3]);
  iVar2 = FUN_00056520(unaff_retaddr[2],local_30,unaff_retaddr + 6,unaff_retaddr + 5);
  if (iVar2 != 0) {
    piVar3 = __errno_location();
    if (*piVar3 != 0) {
      iVar2 = *piVar3;
    }
    unaff_retaddr[4] = iVar2;
  }
  pthread_mutex_lock((pthread_mutex_t *)*unaff_retaddr);
  if (unaff_retaddr[1] == 0) {
    unaff_retaddr[1] = 1;
    pthread_mutex_unlock((pthread_mutex_t *)*unaff_retaddr);
  }
  else {
    pthread_mutex_unlock((pthread_mutex_t *)*unaff_retaddr);
    if ((pthread_mutex_t *)*unaff_retaddr != (pthread_mutex_t *)0x0) {
      pthread_mutex_destroy((pthread_mutex_t *)*unaff_retaddr);
      (**(code **)(&UNK_00054bd3 + unaff_EBX))(*unaff_retaddr);
    }
    (**(code **)(&UNK_00054bd3 + unaff_EBX))(unaff_retaddr[2]);
    if (unaff_retaddr[5] != 0) {
      FUN_000564d0(unaff_retaddr[5]);
    }
    *unaff_retaddr = 0;
    unaff_retaddr[0xe] = 0;
    puVar5 = (undefined4 *)((uint)(unaff_retaddr + 1) & 0xfffffffc);
    for (uVar4 = (uint)((int)unaff_retaddr + (0x3c - (int)((uint)(unaff_retaddr + 1) & 0xfffffffc)))
                 >> 2; uVar4 != 0; uVar4 = uVar4 - 1) {
      *puVar5 = 0;
      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;
    }
    (**(code **)(&UNK_00054bd3 + unaff_EBX))(uVar1);
  }
  if (local_24 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_00082f60();
  }
  return 0;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00019ed0
ADD EBX,0x54347
SUB ESP,0x1c
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0xc],EAX
XOR EAX,EAX
MOV EDI,dword ptr [ESP + 0x30]
MOV EBP,dword ptr [EDI + 0x38]
PUSH dword ptr [EDI + 0xc]
LEA EAX,[EBX + 0xfffcd97d]
PUSH EAX
PUSH 0xc
LEA ESI,[ESP + 0xc]
PUSH ESI
CALL 0x000187a0
LEA EAX,[EDI + 0x14]
PUSH EAX
LEA EAX,[EDI + 0x18]
PUSH EAX
PUSH ESI
PUSH dword ptr [EDI + 0x8]
CALL 0x00056520
ADD ESP,0x20
TEST EAX,EAX
JZ 0x000624f4
MOV ESI,EAX
CALL 0x00018bd0
MOV EAX,dword ptr [EAX]
TEST EAX,EAX
CMOVNZ ESI,EAX
MOV dword ptr [EDI + 0x10],ESI
SUB ESP,0xc
PUSH dword ptr [EDI]
CALL 0x00019210
MOV EDX,dword ptr [EDI + 0x4]
ADD ESP,0x10
TEST EDX,EDX
JZ 0x000625a0
SUB ESP,0xc
PUSH dword ptr [EDI]
CALL 0x00018f60
MOV EAX,dword ptr [EDI]
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00062598
SUB ESP,0xc
PUSH EAX
CALL 0x00018080
POP EAX
LEA ESI,[EBX + 0x88c]
PUSH dword ptr [EDI]
CALL dword ptr [ESI]
ADD ESP,0x10
SUB ESP,0xc
PUSH dword ptr [EDI + 0x8]
CALL dword ptr [ESI]
MOV EAX,dword ptr [EDI + 0x14]
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00062554
SUB ESP,0xc
PUSH EAX
CALL 0x000564d0
ADD ESP,0x10
LEA EDX,[EDI + 0x4]
MOV dword ptr [EDI],0x0
SUB ESP,0xc
XOR EAX,EAX
AND EDX,0xfffffffc
MOV dword ptr [EDI + 0x38],0x0
SUB EDI,EDX
LEA ECX,[EDI + 0x3c]
MOV EDI,EDX
SHR ECX,0x2
STOSD.REP ES:EDI
PUSH EBP
CALL dword ptr [ESI]
ADD ESP,0x10
XOR EAX,EAX
MOV EDX,dword ptr [ESP + 0xc]
XOR EDX,dword ptr GS:[0x14]
JNZ 0x000625b6
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA ESI,[EBX + 0x88c]
JMP 0x00062536
SUB ESP,0xc
MOV dword ptr [EDI + 0x4],0x1
PUSH dword ptr [EDI]
CALL 0x00018f60
ADD ESP,0x10
JMP 0x0006257e
CALL 0x00082f60
(translation_unit "undefined4 FUN_00062490(void)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  int unaff_EBX;\n  undefined4 *puVar5;\n  int in_GS_OFFSET;\n  byte bVar6;\n  undefined4 *unaff_retaddr;\n  undefined1 local_30 [12];\n  int local_24;\n  undefined4 uStack_14;\n  \n  bVar6 = 0;\n  uStack_14 = 0x62499;\n  entry();\n  local_24 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = unaff_retaddr[0xe];\n  curl_msnprintf(local_30,0xc,unaff_EBX + 0x21cc4,unaff_retaddr[3]);\n  iVar2 = FUN_00056520(unaff_retaddr[2],local_30,unaff_retaddr + 6,unaff_retaddr + 5);\n  if (iVar2 != 0) {\n    piVar3 = __errno_location();\n    if (*piVar3 != 0) {\n      iVar2 = *piVar3;\n    }\n    unaff_retaddr[4] = iVar2;\n  }\n  pthread_mutex_lock((pthread_mutex_t *)*unaff_retaddr);\n  if (unaff_retaddr[1] == 0) {\n    unaff_retaddr[1] = 1;\n    pthread_mutex_unlock((pthread_mutex_t *)*unaff_retaddr);\n  }\n  else {\n    pthread_mutex_unlock((pthread_mutex_t *)*unaff_retaddr);\n    if ((pthread_mutex_t *)*unaff_retaddr != (pthread_mutex_t *)0x0) {\n      pthread_mutex_destroy((pthread_mutex_t *)*unaff_retaddr);\n      (**(code **)(&UNK_00054bd3 + unaff_EBX))(*unaff_retaddr);\n    }\n    (**(code **)(&UNK_00054bd3 + unaff_EBX))(unaff_retaddr[2]);\n    if (unaff_retaddr[5] != 0) {\n      FUN_000564d0(unaff_retaddr[5]);\n    }\n    *unaff_retaddr = 0;\n    unaff_retaddr[0xe] = 0;\n    puVar5 = (undefined4 *)((uint)(unaff_retaddr + 1) & 0xfffffffc);\n    for (uVar4 = (uint)((int)unaff_retaddr + (0x3c - (int)((uint)(unaff_retaddr + 1) & 0xfffffffc)))\n                 >> 2; uVar4 != 0; uVar4 = uVar4 - 1) {\n      *puVar5 = 0;\n      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n    }\n    (**(code **)(&UNK_00054bd3 + unaff_EBX))(uVar1);\n  }\n  if (local_24 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00082f60();\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_00062490(void)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  int unaff_EBX;\n  undefined4 *puVar5;\n  int in_GS_OFFSET;\n  byte bVar6;\n  undefined4 *unaff_retaddr;\n  undefined1 local_30 [12];\n  int local_24;\n  undefined4 uStack_14;\n  \n  bVar6 = 0;\n  uStack_14 = 0x62499;\n  entry();\n  local_24 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = unaff_retaddr[0xe];\n  curl_msnprintf(local_30,0xc,unaff_EBX + 0x21cc4,unaff_retaddr[3]);\n  iVar2 = FUN_00056520(unaff_retaddr[2],local_30,unaff_retaddr + 6,unaff_retaddr + 5);\n  if (iVar2 != 0) {\n    piVar3 = __errno_location();\n    if (*piVar3 != 0) {\n      iVar2 = *piVar3;\n    }\n    unaff_retaddr[4] = iVar2;\n  }\n  pthread_mutex_lock((pthread_mutex_t *)*unaff_retaddr);\n  if (unaff_retaddr[1] == 0) {\n    unaff_retaddr[1] = 1;\n    pthread_mutex_unlock((pthread_mutex_t *)*unaff_retaddr);\n  }\n  else {\n    pthread_mutex_unlock((pthread_mutex_t *)*unaff_retaddr);\n    if ((pthread_mutex_t *)*unaff_retaddr != (pthread_mutex_t *)0x0) {\n      pthread_mutex_destroy((pthread_mutex_t *)*unaff_retaddr);\n      (**(code **)(&UNK_00054bd3 + unaff_EBX))(*unaff_retaddr);\n    }\n    (**(code **)(&UNK_00054bd3 + unaff_EBX))(unaff_retaddr[2]);\n    if (unaff_retaddr[5] != 0) {\n      FUN_000564d0(unaff_retaddr[5]);\n    }\n    *unaff_retaddr = 0;\n    unaff_retaddr[0xe] = 0;\n    puVar5 = (undefined4 *)((uint)(unaff_retaddr + 1) & 0xfffffffc);\n    for (uVar4 = (uint)((int)unaff_retaddr + (0x3c - (int)((uint)(unaff_retaddr + 1) & 0xfffffffc)))\n                 >> 2; uVar4 != 0; uVar4 = uVar4 - 1) {\n      *puVar5 = 0;\n      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n    }\n    (**(code **)(&UNK_00054bd3 + unaff_EBX))(uVar1);\n  }\n  if (local_24 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00082f60();\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00062490(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  int unaff_EBX;\n  undefined4 *puVar5;\n  int in_GS_OFFSET;\n  byte bVar6;\n  undefined4 *unaff_retaddr;\n  undefined1 local_30 [12];\n  int local_24;\n  undefined4 uStack_14;\n  \n  bVar6 = 0;\n  uStack_14 = 0x62499;\n  entry();\n  local_24 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = unaff_retaddr[0xe];\n  curl_msnprintf(local_30,0xc,unaff_EBX + 0x21cc4,unaff_retaddr[3]);\n  iVar2 = FUN_00056520(unaff_retaddr[2],local_30,unaff_retaddr + 6,unaff_retaddr + 5);\n  if (iVar2 != 0) {\n    piVar3 = __errno_location();\n    if (*piVar3 != 0) {\n      iVar2 = *piVar3;\n    }\n    unaff_retaddr[4] = iVar2;\n  }\n  pthread_mutex_lock((pthread_mutex_t *)*unaff_retaddr);\n  if (unaff_retaddr[1] == 0) {\n    unaff_retaddr[1] = 1;\n    pthread_mutex_unlock((pthread_mutex_t *)*unaff_retaddr);\n  }\n  else {\n    pthread_mutex_unlock((pthread_mutex_t *)*unaff_retaddr);\n    if ((pthread_mutex_t *)*unaff_retaddr != (pthread_mutex_t *)0x0) {\n      pthread_mutex_destroy((pthread_mutex_t *)*unaff_retaddr);\n      (**(code **)(&UNK_00054bd3 + unaff_EBX))(*unaff_retaddr);\n    }\n    (**(code **)(&UNK_00054bd3 + unaff_EBX))(unaff_retaddr[2]);\n    if (unaff_retaddr[5] != 0) {\n      FUN_000564d0(unaff_retaddr[5]);\n    }\n    *unaff_retaddr = 0;\n    unaff_retaddr[0xe] = 0;\n    puVar5 = (undefined4 *)((uint)(unaff_retaddr + 1) & 0xfffffffc);\n    for (uVar4 = (uint)((int)unaff_retaddr + (0x3c - (int)((uint)(unaff_retaddr + 1) & 0xfffffffc)))\n                 >> 2; uVar4 != 0; uVar4 = uVar4 - 1) {\n      *puVar5 = 0;\n      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n    }\n    (**(code **)(&UNK_00054bd3 + unaff_EBX))(uVar1);\n  }\n  if (local_24 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00082f60();\n  }\n  return 0;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int unaff_EBX;" primitive_type identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "byte bVar6;" type_identifier identifier ;) (declaration "undefined4 *unaff_retaddr;" type_identifier (pointer_declarator "*unaff_retaddr" * identifier) ;) (declaration "undefined1 local_30 [12];" type_identifier (array_declarator "local_30 [12]" identifier [ number_literal ]) ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "bVar6 = 0;" (assignment_expression "bVar6 = 0" identifier = number_literal) ;) (expression_statement "uStack_14 = 0x62499;" (assignment_expression "uStack_14 = 0x62499" identifier = number_literal) ;) (expression_statement "entry();" (call_expression "entry()" identifier (argument_list "()" ( ))) ;) (expression_statement "local_24 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_24 = *(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 "uVar1 = unaff_retaddr[0xe];" (assignment_expression "uVar1 = unaff_retaddr[0xe]" identifier = (subscript_expression "unaff_retaddr[0xe]" identifier [ number_literal ])) ;) (expression_statement "curl_msnprintf(local_30,0xc,unaff_EBX + 0x21cc4,unaff_retaddr[3]);" (call_expression "curl_msnprintf(local_30,0xc,unaff_EBX + 0x21cc4,unaff_retaddr[3])" identifier (argument_list "(local_30,0xc,unaff_EBX + 0x21cc4,unaff_retaddr[3])" ( identifier , number_literal , (binary_expression "unaff_EBX + 0x21cc4" identifier + number_literal) , (subscript_expression "unaff_retaddr[3]" identifier [ number_literal ]) ))) ;) (expression_statement "iVar2 = FUN_00056520(unaff_retaddr[2],local_30,unaff_retaddr + 6,unaff_retaddr + 5);" (assignment_expression "iVar2 = FUN_00056520(unaff_retaddr[2],local_30,unaff_retaddr + 6,unaff_retaddr + 5)" identifier = (call_expression "FUN_00056520(unaff_retaddr[2],local_30,unaff_retaddr + 6,unaff_retaddr + 5)" identifier (argument_list "(unaff_retaddr[2],local_30,unaff_retaddr + 6,unaff_retaddr + 5)" ( (subscript_expression "unaff_retaddr[2]" identifier [ number_literal ]) , identifier , (binary_expression "unaff_retaddr + 6" identifier + number_literal) , (binary_expression "unaff_retaddr + 5" identifier + number_literal) )))) ;) (if_statement "if (iVar2 != 0) {\n    piVar3 = __errno_location();\n    if (*piVar3 != 0) {\n      iVar2 = *piVar3;\n    }\n    unaff_retaddr[4] = iVar2;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    piVar3 = __errno_location();\n    if (*piVar3 != 0) {\n      iVar2 = *piVar3;\n    }\n    unaff_retaddr[4] = iVar2;\n  }" { (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (if_statement "if (*piVar3 != 0) {\n      iVar2 = *piVar3;\n    }" if (parenthesized_expression "(*piVar3 != 0)" ( (binary_expression "*piVar3 != 0" (pointer_expression "*piVar3" * identifier) != number_literal) )) (compound_statement "{\n      iVar2 = *piVar3;\n    }" { (expression_statement "iVar2 = *piVar3;" (assignment_expression "iVar2 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) })) (expression_statement "unaff_retaddr[4] = iVar2;" (assignment_expression "unaff_retaddr[4] = iVar2" (subscript_expression "unaff_retaddr[4]" identifier [ number_literal ]) = identifier) ;) })) (expression_statement "pthread_mutex_lock((pthread_mutex_t *)*unaff_retaddr);" (call_expression "pthread_mutex_lock((pthread_mutex_t *)*unaff_retaddr)" identifier (argument_list "((pthread_mutex_t *)*unaff_retaddr)" ( (cast_expression "(pthread_mutex_t *)*unaff_retaddr" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*unaff_retaddr" * identifier)) ))) ;) (if_statement "if (unaff_retaddr[1] == 0) {\n    unaff_retaddr[1] = 1;\n    pthread_mutex_unlock((pthread_mutex_t *)*unaff_retaddr);\n  }\n  else {\n    pthread_mutex_unlock((pthread_mutex_t *)*unaff_retaddr);\n    if ((pthread_mutex_t *)*unaff_retaddr != (pthread_mutex_t *)0x0) {\n      pthread_mutex_destroy((pthread_mutex_t *)*unaff_retaddr);\n      (**(code **)(&UNK_00054bd3 + unaff_EBX))(*unaff_retaddr);\n    }\n    (**(code **)(&UNK_00054bd3 + unaff_EBX))(unaff_retaddr[2]);\n    if (unaff_retaddr[5] != 0) {\n      FUN_000564d0(unaff_retaddr[5]);\n    }\n    *unaff_retaddr = 0;\n    unaff_retaddr[0xe] = 0;\n    puVar5 = (undefined4 *)((uint)(unaff_retaddr + 1) & 0xfffffffc);\n    for (uVar4 = (uint)((int)unaff_retaddr + (0x3c - (int)((uint)(unaff_retaddr + 1) & 0xfffffffc)))\n                 >> 2; uVar4 != 0; uVar4 = uVar4 - 1) {\n      *puVar5 = 0;\n      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n    }\n    (**(code **)(&UNK_00054bd3 + unaff_EBX))(uVar1);\n  }" if (parenthesized_expression "(unaff_retaddr[1] == 0)" ( (binary_expression "unaff_retaddr[1] == 0" (subscript_expression "unaff_retaddr[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    unaff_retaddr[1] = 1;\n    pthread_mutex_unlock((pthread_mutex_t *)*unaff_retaddr);\n  }" { (expression_statement "unaff_retaddr[1] = 1;" (assignment_expression "unaff_retaddr[1] = 1" (subscript_expression "unaff_retaddr[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "pthread_mutex_unlock((pthread_mutex_t *)*unaff_retaddr);" (call_expression "pthread_mutex_unlock((pthread_mutex_t *)*unaff_retaddr)" identifier (argument_list "((pthread_mutex_t *)*unaff_retaddr)" ( (cast_expression "(pthread_mutex_t *)*unaff_retaddr" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*unaff_retaddr" * identifier)) ))) ;) }) (else_clause "else {\n    pthread_mutex_unlock((pthread_mutex_t *)*unaff_retaddr);\n    if ((pthread_mutex_t *)*unaff_retaddr != (pthread_mutex_t *)0x0) {\n      pthread_mutex_destroy((pthread_mutex_t *)*unaff_retaddr);\n      (**(code **)(&UNK_00054bd3 + unaff_EBX))(*unaff_retaddr);\n    }\n    (**(code **)(&UNK_00054bd3 + unaff_EBX))(unaff_retaddr[2]);\n    if (unaff_retaddr[5] != 0) {\n      FUN_000564d0(unaff_retaddr[5]);\n    }\n    *unaff_retaddr = 0;\n    unaff_retaddr[0xe] = 0;\n    puVar5 = (undefined4 *)((uint)(unaff_retaddr + 1) & 0xfffffffc);\n    for (uVar4 = (uint)((int)unaff_retaddr + (0x3c - (int)((uint)(unaff_retaddr + 1) & 0xfffffffc)))\n                 >> 2; uVar4 != 0; uVar4 = uVar4 - 1) {\n      *puVar5 = 0;\n      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n    }\n    (**(code **)(&UNK_00054bd3 + unaff_EBX))(uVar1);\n  }" else (compound_statement "{\n    pthread_mutex_unlock((pthread_mutex_t *)*unaff_retaddr);\n    if ((pthread_mutex_t *)*unaff_retaddr != (pthread_mutex_t *)0x0) {\n      pthread_mutex_destroy((pthread_mutex_t *)*unaff_retaddr);\n      (**(code **)(&UNK_00054bd3 + unaff_EBX))(*unaff_retaddr);\n    }\n    (**(code **)(&UNK_00054bd3 + unaff_EBX))(unaff_retaddr[2]);\n    if (unaff_retaddr[5] != 0) {\n      FUN_000564d0(unaff_retaddr[5]);\n    }\n    *unaff_retaddr = 0;\n    unaff_retaddr[0xe] = 0;\n    puVar5 = (undefined4 *)((uint)(unaff_retaddr + 1) & 0xfffffffc);\n    for (uVar4 = (uint)((int)unaff_retaddr + (0x3c - (int)((uint)(unaff_retaddr + 1) & 0xfffffffc)))\n                 >> 2; uVar4 != 0; uVar4 = uVar4 - 1) {\n      *puVar5 = 0;\n      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n    }\n    (**(code **)(&UNK_00054bd3 + unaff_EBX))(uVar1);\n  }" { (expression_statement "pthread_mutex_unlock((pthread_mutex_t *)*unaff_retaddr);" (call_expression "pthread_mutex_unlock((pthread_mutex_t *)*unaff_retaddr)" identifier (argument_list "((pthread_mutex_t *)*unaff_retaddr)" ( (cast_expression "(pthread_mutex_t *)*unaff_retaddr" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*unaff_retaddr" * identifier)) ))) ;) (if_statement "if ((pthread_mutex_t *)*unaff_retaddr != (pthread_mutex_t *)0x0) {\n      pthread_mutex_destroy((pthread_mutex_t *)*unaff_retaddr);\n      (**(code **)(&UNK_00054bd3 + unaff_EBX))(*unaff_retaddr);\n    }" if (parenthesized_expression "((pthread_mutex_t *)*unaff_retaddr != (pthread_mutex_t *)0x0)" ( (binary_expression "(pthread_mutex_t *)*unaff_retaddr != (pthread_mutex_t *)0x0" (cast_expression "(pthread_mutex_t *)*unaff_retaddr" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*unaff_retaddr" * identifier)) != (cast_expression "(pthread_mutex_t *)0x0" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pthread_mutex_destroy((pthread_mutex_t *)*unaff_retaddr);\n      (**(code **)(&UNK_00054bd3 + unaff_EBX))(*unaff_retaddr);\n    }" { (expression_statement "pthread_mutex_destroy((pthread_mutex_t *)*unaff_retaddr);" (call_expression "pthread_mutex_destroy((pthread_mutex_t *)*unaff_retaddr)" identifier (argument_list "((pthread_mutex_t *)*unaff_retaddr)" ( (cast_expression "(pthread_mutex_t *)*unaff_retaddr" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*unaff_retaddr" * identifier)) ))) ;) (expression_statement "(**(code **)(&UNK_00054bd3 + unaff_EBX))(*unaff_retaddr);" (call_expression "(**(code **)(&UNK_00054bd3 + unaff_EBX))(*unaff_retaddr)" (parenthesized_expression "(**(code **)(&UNK_00054bd3 + unaff_EBX))" ( (pointer_expression "**(code **)(&UNK_00054bd3 + unaff_EBX)" * (pointer_expression "*(code **)(&UNK_00054bd3 + unaff_EBX)" * (cast_expression "(code **)(&UNK_00054bd3 + unaff_EBX)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&UNK_00054bd3 + unaff_EBX)" ( (binary_expression "&UNK_00054bd3 + unaff_EBX" (pointer_expression "&UNK_00054bd3" & identifier) + identifier) ))))) )) (argument_list "(*unaff_retaddr)" ( (pointer_expression "*unaff_retaddr" * identifier) ))) ;) })) (expression_statement "(**(code **)(&UNK_00054bd3 + unaff_EBX))(unaff_retaddr[2]);" (call_expression "(**(code **)(&UNK_00054bd3 + unaff_EBX))(unaff_retaddr[2])" (parenthesized_expression "(**(code **)(&UNK_00054bd3 + unaff_EBX))" ( (pointer_expression "**(code **)(&UNK_00054bd3 + unaff_EBX)" * (pointer_expression "*(code **)(&UNK_00054bd3 + unaff_EBX)" * (cast_expression "(code **)(&UNK_00054bd3 + unaff_EBX)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&UNK_00054bd3 + unaff_EBX)" ( (binary_expression "&UNK_00054bd3 + unaff_EBX" (pointer_expression "&UNK_00054bd3" & identifier) + identifier) ))))) )) (argument_list "(unaff_retaddr[2])" ( (subscript_expression "unaff_retaddr[2]" identifier [ number_literal ]) ))) ;) (if_statement "if (unaff_retaddr[5] != 0) {\n      FUN_000564d0(unaff_retaddr[5]);\n    }" if (parenthesized_expression "(unaff_retaddr[5] != 0)" ( (binary_expression "unaff_retaddr[5] != 0" (subscript_expression "unaff_retaddr[5]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      FUN_000564d0(unaff_retaddr[5]);\n    }" { (expression_statement "FUN_000564d0(unaff_retaddr[5]);" (call_expression "FUN_000564d0(unaff_retaddr[5])" identifier (argument_list "(unaff_retaddr[5])" ( (subscript_expression "unaff_retaddr[5]" identifier [ number_literal ]) ))) ;) })) (expression_statement "*unaff_retaddr = 0;" (assignment_expression "*unaff_retaddr = 0" (pointer_expression "*unaff_retaddr" * identifier) = number_literal) ;) (expression_statement "unaff_retaddr[0xe] = 0;" (assignment_expression "unaff_retaddr[0xe] = 0" (subscript_expression "unaff_retaddr[0xe]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar5 = (undefined4 *)((uint)(unaff_retaddr + 1) & 0xfffffffc);" (assignment_expression "puVar5 = (undefined4 *)((uint)(unaff_retaddr + 1) & 0xfffffffc)" identifier = (cast_expression "(undefined4 *)((uint)(unaff_retaddr + 1) & 0xfffffffc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)(unaff_retaddr + 1) & 0xfffffffc)" ( (binary_expression "(uint)(unaff_retaddr + 1) & 0xfffffffc" (call_expression "(uint)(unaff_retaddr + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(unaff_retaddr + 1)" ( (binary_expression "unaff_retaddr + 1" identifier + number_literal) ))) & number_literal) )))) ;) (for_statement "for (uVar4 = (uint)((int)unaff_retaddr + (0x3c - (int)((uint)(unaff_retaddr + 1) & 0xfffffffc)))\n                 >> 2; uVar4 != 0; uVar4 = uVar4 - 1) {\n      *puVar5 = 0;\n      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n    }" for ( (assignment_expression "uVar4 = (uint)((int)unaff_retaddr + (0x3c - (int)((uint)(unaff_retaddr + 1) & 0xfffffffc)))\n                 >> 2" identifier = (binary_expression "(uint)((int)unaff_retaddr + (0x3c - (int)((uint)(unaff_retaddr + 1) & 0xfffffffc)))\n                 >> 2" (call_expression "(uint)((int)unaff_retaddr + (0x3c - (int)((uint)(unaff_retaddr + 1) & 0xfffffffc)))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)unaff_retaddr + (0x3c - (int)((uint)(unaff_retaddr + 1) & 0xfffffffc)))" ( (binary_expression "(int)unaff_retaddr + (0x3c - (int)((uint)(unaff_retaddr + 1) & 0xfffffffc))" (cast_expression "(int)unaff_retaddr" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x3c - (int)((uint)(unaff_retaddr + 1) & 0xfffffffc))" ( (binary_expression "0x3c - (int)((uint)(unaff_retaddr + 1) & 0xfffffffc)" number_literal - (cast_expression "(int)((uint)(unaff_retaddr + 1) & 0xfffffffc)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((uint)(unaff_retaddr + 1) & 0xfffffffc)" ( (binary_expression "(uint)(unaff_retaddr + 1) & 0xfffffffc" (call_expression "(uint)(unaff_retaddr + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(unaff_retaddr + 1)" ( (binary_expression "unaff_retaddr + 1" identifier + number_literal) ))) & number_literal) )))) ))) ))) >> number_literal)) ; (binary_expression "uVar4 != 0" identifier != number_literal) ; (assignment_expression "uVar4 = uVar4 - 1" identifier = (binary_expression "uVar4 - 1" identifier - number_literal)) ) (compound_statement "{\n      *puVar5 = 0;\n      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n    }" { (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" * identifier) = number_literal) ;) (expression_statement "puVar5 = puVar5 + (uint)bVar6 * -2 + 1;" (assignment_expression "puVar5 = puVar5 + (uint)bVar6 * -2 + 1" identifier = (binary_expression "puVar5 + (uint)bVar6 * -2 + 1" (binary_expression "puVar5 + (uint)bVar6 * -2" identifier + (binary_expression "(uint)bVar6 * -2" (cast_expression "(uint)bVar6" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "(**(code **)(&UNK_00054bd3 + unaff_EBX))(uVar1);" (call_expression "(**(code **)(&UNK_00054bd3 + unaff_EBX))(uVar1)" (parenthesized_expression "(**(code **)(&UNK_00054bd3 + unaff_EBX))" ( (pointer_expression "**(code **)(&UNK_00054bd3 + unaff_EBX)" * (pointer_expression "*(code **)(&UNK_00054bd3 + unaff_EBX)" * (cast_expression "(code **)(&UNK_00054bd3 + unaff_EBX)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&UNK_00054bd3 + unaff_EBX)" ( (binary_expression "&UNK_00054bd3 + unaff_EBX" (pointer_expression "&UNK_00054bd3" & identifier) + identifier) ))))) )) (argument_list "(uVar1)" ( identifier ))) ;) }))) (if_statement "if (local_24 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00082f60();\n  }" if (parenthesized_expression "(local_24 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_24 != *(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                    /* WARNING: Subroutine does not return */\n    FUN_00082f60();\n  }" { comment (expression_statement "FUN_00082f60();" (call_expression "FUN_00082f60()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nuint getaddrinfo_thread(void *arg)\n\n{\n  int iVar1;\n  void *pvVar2;\n  int iVar3;\n  int *piVar4;\n  uint uVar5;\n  undefined4 *puVar6;\n  int in_GS_OFFSET;\n  byte bVar7;\n  char service [12];\n  \n  bVar7 = 0;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  pvVar2 = *(void **)((int)arg + 0x38);\n  curl_msnprintf(service,0xc,"%d",*(undefined4 *)((int)arg + 0xc));\n  iVar3 = Curl_getaddrinfo_ex(*(char **)((int)arg + 8),service,(addrinfo *)((int)arg + 0x18),\n                              (Curl_addrinfo **)((int)arg + 0x14));\n  if (iVar3 != 0) {\n    piVar4 = __errno_location();\n    if (*piVar4 != 0) {\n      iVar3 = *piVar4;\n    }\n    *(int *)((int)arg + 0x10) = iVar3;\n  }\n                    /* WARNING: Load size is inaccurate */\n  pthread_mutex_lock(*arg);\n  if (*(int *)((int)arg + 4) == 0) {\n    *(undefined4 *)((int)arg + 4) = 1;\n                    /* WARNING: Load size is inaccurate */\n    pthread_mutex_unlock(*arg);\n  }\n  else {\n                    /* WARNING: Load size is inaccurate */\n    pthread_mutex_unlock(*arg);\n                    /* WARNING: Load size is inaccurate */\n    if (*arg != (pthread_mutex_t *)0x0) {\n      pthread_mutex_destroy(*arg);\n                    /* WARNING: Load size is inaccurate */\n      (*Curl_cfree)(*arg);\n    }\n    (*Curl_cfree)(*(void **)((int)arg + 8));\n    if (*(Curl_addrinfo **)((int)arg + 0x14) != (Curl_addrinfo *)0x0) {\n      Curl_freeaddrinfo(*(Curl_addrinfo **)((int)arg + 0x14));\n    }\n    *(undefined4 *)arg = 0;\n    puVar6 = (undefined4 *)((int)arg + 4U & 0xfffffffc);\n    *(undefined4 *)((int)arg + 0x38) = 0;\n    uVar5 = (uint)((int)arg + (0x3c - (int)puVar6)) >> 2;\n    for (; uVar5 != 0; uVar5 = uVar5 - 1) {\n      *puVar6 = 0;\n      puVar6 = puVar6 + (uint)bVar7 * -2 + 1;\n    }\n    (*Curl_cfree)(pvVar2);\n  }\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return 0;\n}\n\n" comment (function_definition "uint getaddrinfo_thread(void *arg)\n\n{\n  int iVar1;\n  void *pvVar2;\n  int iVar3;\n  int *piVar4;\n  uint uVar5;\n  undefined4 *puVar6;\n  int in_GS_OFFSET;\n  byte bVar7;\n  char service [12];\n  \n  bVar7 = 0;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  pvVar2 = *(void **)((int)arg + 0x38);\n  curl_msnprintf(service,0xc,"%d",*(undefined4 *)((int)arg + 0xc));\n  iVar3 = Curl_getaddrinfo_ex(*(char **)((int)arg + 8),service,(addrinfo *)((int)arg + 0x18),\n                              (Curl_addrinfo **)((int)arg + 0x14));\n  if (iVar3 != 0) {\n    piVar4 = __errno_location();\n    if (*piVar4 != 0) {\n      iVar3 = *piVar4;\n    }\n    *(int *)((int)arg + 0x10) = iVar3;\n  }\n                    /* WARNING: Load size is inaccurate */\n  pthread_mutex_lock(*arg);\n  if (*(int *)((int)arg + 4) == 0) {\n    *(undefined4 *)((int)arg + 4) = 1;\n                    /* WARNING: Load size is inaccurate */\n    pthread_mutex_unlock(*arg);\n  }\n  else {\n                    /* WARNING: Load size is inaccurate */\n    pthread_mutex_unlock(*arg);\n                    /* WARNING: Load size is inaccurate */\n    if (*arg != (pthread_mutex_t *)0x0) {\n      pthread_mutex_destroy(*arg);\n                    /* WARNING: Load size is inaccurate */\n      (*Curl_cfree)(*arg);\n    }\n    (*Curl_cfree)(*(void **)((int)arg + 8));\n    if (*(Curl_addrinfo **)((int)arg + 0x14) != (Curl_addrinfo *)0x0) {\n      Curl_freeaddrinfo(*(Curl_addrinfo **)((int)arg + 0x14));\n    }\n    *(undefined4 *)arg = 0;\n    puVar6 = (undefined4 *)((int)arg + 4U & 0xfffffffc);\n    *(undefined4 *)((int)arg + 0x38) = 0;\n    uVar5 = (uint)((int)arg + (0x3c - (int)puVar6)) >> 2;\n    for (; uVar5 != 0; uVar5 = uVar5 - 1) {\n      *puVar6 = 0;\n      puVar6 = puVar6 + (uint)bVar7 * -2 + 1;\n    }\n    (*Curl_cfree)(pvVar2);\n  }\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return 0;\n}" type_identifier (function_declarator "getaddrinfo_thread(void *arg)" identifier (parameter_list "(void *arg)" ( (parameter_declaration "void *arg" primitive_type (pointer_declarator "*arg" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  void *pvVar2;\n  int iVar3;\n  int *piVar4;\n  uint uVar5;\n  undefined4 *puVar6;\n  int in_GS_OFFSET;\n  byte bVar7;\n  char service [12];\n  \n  bVar7 = 0;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  pvVar2 = *(void **)((int)arg + 0x38);\n  curl_msnprintf(service,0xc,"%d",*(undefined4 *)((int)arg + 0xc));\n  iVar3 = Curl_getaddrinfo_ex(*(char **)((int)arg + 8),service,(addrinfo *)((int)arg + 0x18),\n                              (Curl_addrinfo **)((int)arg + 0x14));\n  if (iVar3 != 0) {\n    piVar4 = __errno_location();\n    if (*piVar4 != 0) {\n      iVar3 = *piVar4;\n    }\n    *(int *)((int)arg + 0x10) = iVar3;\n  }\n                    /* WARNING: Load size is inaccurate */\n  pthread_mutex_lock(*arg);\n  if (*(int *)((int)arg + 4) == 0) {\n    *(undefined4 *)((int)arg + 4) = 1;\n                    /* WARNING: Load size is inaccurate */\n    pthread_mutex_unlock(*arg);\n  }\n  else {\n                    /* WARNING: Load size is inaccurate */\n    pthread_mutex_unlock(*arg);\n                    /* WARNING: Load size is inaccurate */\n    if (*arg != (pthread_mutex_t *)0x0) {\n      pthread_mutex_destroy(*arg);\n                    /* WARNING: Load size is inaccurate */\n      (*Curl_cfree)(*arg);\n    }\n    (*Curl_cfree)(*(void **)((int)arg + 8));\n    if (*(Curl_addrinfo **)((int)arg + 0x14) != (Curl_addrinfo *)0x0) {\n      Curl_freeaddrinfo(*(Curl_addrinfo **)((int)arg + 0x14));\n    }\n    *(undefined4 *)arg = 0;\n    puVar6 = (undefined4 *)((int)arg + 4U & 0xfffffffc);\n    *(undefined4 *)((int)arg + 0x38) = 0;\n    uVar5 = (uint)((int)arg + (0x3c - (int)puVar6)) >> 2;\n    for (; uVar5 != 0; uVar5 = uVar5 - 1) {\n      *puVar6 = 0;\n      puVar6 = puVar6 + (uint)bVar7 * -2 + 1;\n    }\n    (*Curl_cfree)(pvVar2);\n  }\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "void *pvVar2;" primitive_type (pointer_declarator "*pvVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "undefined4 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "byte bVar7;" type_identifier identifier ;) (declaration "char service [12];" primitive_type (array_declarator "service [12]" identifier [ number_literal ]) ;) (expression_statement "bVar7 = 0;" (assignment_expression "bVar7 = 0" identifier = number_literal) ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "pvVar2 = *(void **)((int)arg + 0x38);" (assignment_expression "pvVar2 = *(void **)((int)arg + 0x38)" identifier = (pointer_expression "*(void **)((int)arg + 0x38)" * (cast_expression "(void **)((int)arg + 0x38)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)arg + 0x38)" ( (binary_expression "(int)arg + 0x38" (cast_expression "(int)arg" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "curl_msnprintf(service,0xc,"%d",*(undefined4 *)((int)arg + 0xc));" (call_expression "curl_msnprintf(service,0xc,"%d",*(undefined4 *)((int)arg + 0xc))" identifier (argument_list "(service,0xc,"%d",*(undefined4 *)((int)arg + 0xc))" ( identifier , number_literal , (string_literal ""%d"" " string_content ") , (pointer_expression "*(undefined4 *)((int)arg + 0xc)" * (cast_expression "(undefined4 *)((int)arg + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)arg + 0xc)" ( (binary_expression "(int)arg + 0xc" (cast_expression "(int)arg" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ))) ;) (expression_statement "iVar3 = Curl_getaddrinfo_ex(*(char **)((int)arg + 8),service,(addrinfo *)((int)arg + 0x18),\n                              (Curl_addrinfo **)((int)arg + 0x14));" (assignment_expression "iVar3 = Curl_getaddrinfo_ex(*(char **)((int)arg + 8),service,(addrinfo *)((int)arg + 0x18),\n                              (Curl_addrinfo **)((int)arg + 0x14))" identifier = (call_expression "Curl_getaddrinfo_ex(*(char **)((int)arg + 8),service,(addrinfo *)((int)arg + 0x18),\n                              (Curl_addrinfo **)((int)arg + 0x14))" identifier (argument_list "(*(char **)((int)arg + 8),service,(addrinfo *)((int)arg + 0x18),\n                              (Curl_addrinfo **)((int)arg + 0x14))" ( (pointer_expression "*(char **)((int)arg + 8)" * (cast_expression "(char **)((int)arg + 8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)arg + 8)" ( (binary_expression "(int)arg + 8" (cast_expression "(int)arg" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , identifier , (cast_expression "(addrinfo *)((int)arg + 0x18)" ( (type_descriptor "addrinfo *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)arg + 0x18)" ( (binary_expression "(int)arg + 0x18" (cast_expression "(int)arg" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) , (cast_expression "(Curl_addrinfo **)((int)arg + 0x14)" ( (type_descriptor "Curl_addrinfo **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)arg + 0x14)" ( (binary_expression "(int)arg + 0x14" (cast_expression "(int)arg" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) )))) ;) (if_statement "if (iVar3 != 0) {\n    piVar4 = __errno_location();\n    if (*piVar4 != 0) {\n      iVar3 = *piVar4;\n    }\n    *(int *)((int)arg + 0x10) = iVar3;\n  }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n    piVar4 = __errno_location();\n    if (*piVar4 != 0) {\n      iVar3 = *piVar4;\n    }\n    *(int *)((int)arg + 0x10) = iVar3;\n  }" { (expression_statement "piVar4 = __errno_location();" (assignment_expression "piVar4 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (if_statement "if (*piVar4 != 0) {\n      iVar3 = *piVar4;\n    }" if (parenthesized_expression "(*piVar4 != 0)" ( (binary_expression "*piVar4 != 0" (pointer_expression "*piVar4" * identifier) != number_literal) )) (compound_statement "{\n      iVar3 = *piVar4;\n    }" { (expression_statement "iVar3 = *piVar4;" (assignment_expression "iVar3 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) })) (expression_statement "*(int *)((int)arg + 0x10) = iVar3;" (assignment_expression "*(int *)((int)arg + 0x10) = iVar3" (pointer_expression "*(int *)((int)arg + 0x10)" * (cast_expression "(int *)((int)arg + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)arg + 0x10)" ( (binary_expression "(int)arg + 0x10" (cast_expression "(int)arg" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) })) comment (expression_statement "pthread_mutex_lock(*arg);" (call_expression "pthread_mutex_lock(*arg)" identifier (argument_list "(*arg)" ( (pointer_expression "*arg" * identifier) ))) ;) (if_statement "if (*(int *)((int)arg + 4) == 0) {\n    *(undefined4 *)((int)arg + 4) = 1;\n                    /* WARNING: Load size is inaccurate */\n    pthread_mutex_unlock(*arg);\n  }\n  else {\n                    /* WARNING: Load size is inaccurate */\n    pthread_mutex_unlock(*arg);\n                    /* WARNING: Load size is inaccurate */\n    if (*arg != (pthread_mutex_t *)0x0) {\n      pthread_mutex_destroy(*arg);\n                    /* WARNING: Load size is inaccurate */\n      (*Curl_cfree)(*arg);\n    }\n    (*Curl_cfree)(*(void **)((int)arg + 8));\n    if (*(Curl_addrinfo **)((int)arg + 0x14) != (Curl_addrinfo *)0x0) {\n      Curl_freeaddrinfo(*(Curl_addrinfo **)((int)arg + 0x14));\n    }\n    *(undefined4 *)arg = 0;\n    puVar6 = (undefined4 *)((int)arg + 4U & 0xfffffffc);\n    *(undefined4 *)((int)arg + 0x38) = 0;\n    uVar5 = (uint)((int)arg + (0x3c - (int)puVar6)) >> 2;\n    for (; uVar5 != 0; uVar5 = uVar5 - 1) {\n      *puVar6 = 0;\n      puVar6 = puVar6 + (uint)bVar7 * -2 + 1;\n    }\n    (*Curl_cfree)(pvVar2);\n  }" if (parenthesized_expression "(*(int *)((int)arg + 4) == 0)" ( (binary_expression "*(int *)((int)arg + 4) == 0" (pointer_expression "*(int *)((int)arg + 4)" * (cast_expression "(int *)((int)arg + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)arg + 4)" ( (binary_expression "(int)arg + 4" (cast_expression "(int)arg" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == number_literal) )) (compound_statement "{\n    *(undefined4 *)((int)arg + 4) = 1;\n                    /* WARNING: Load size is inaccurate */\n    pthread_mutex_unlock(*arg);\n  }" { (expression_statement "*(undefined4 *)((int)arg + 4) = 1;" (assignment_expression "*(undefined4 *)((int)arg + 4) = 1" (pointer_expression "*(undefined4 *)((int)arg + 4)" * (cast_expression "(undefined4 *)((int)arg + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)arg + 4)" ( (binary_expression "(int)arg + 4" (cast_expression "(int)arg" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) comment (expression_statement "pthread_mutex_unlock(*arg);" (call_expression "pthread_mutex_unlock(*arg)" identifier (argument_list "(*arg)" ( (pointer_expression "*arg" * identifier) ))) ;) }) (else_clause "else {\n                    /* WARNING: Load size is inaccurate */\n    pthread_mutex_unlock(*arg);\n                    /* WARNING: Load size is inaccurate */\n    if (*arg != (pthread_mutex_t *)0x0) {\n      pthread_mutex_destroy(*arg);\n                    /* WARNING: Load size is inaccurate */\n      (*Curl_cfree)(*arg);\n    }\n    (*Curl_cfree)(*(void **)((int)arg + 8));\n    if (*(Curl_addrinfo **)((int)arg + 0x14) != (Curl_addrinfo *)0x0) {\n      Curl_freeaddrinfo(*(Curl_addrinfo **)((int)arg + 0x14));\n    }\n    *(undefined4 *)arg = 0;\n    puVar6 = (undefined4 *)((int)arg + 4U & 0xfffffffc);\n    *(undefined4 *)((int)arg + 0x38) = 0;\n    uVar5 = (uint)((int)arg + (0x3c - (int)puVar6)) >> 2;\n    for (; uVar5 != 0; uVar5 = uVar5 - 1) {\n      *puVar6 = 0;\n      puVar6 = puVar6 + (uint)bVar7 * -2 + 1;\n    }\n    (*Curl_cfree)(pvVar2);\n  }" else (compound_statement "{\n                    /* WARNING: Load size is inaccurate */\n    pthread_mutex_unlock(*arg);\n                    /* WARNING: Load size is inaccurate */\n    if (*arg != (pthread_mutex_t *)0x0) {\n      pthread_mutex_destroy(*arg);\n                    /* WARNING: Load size is inaccurate */\n      (*Curl_cfree)(*arg);\n    }\n    (*Curl_cfree)(*(void **)((int)arg + 8));\n    if (*(Curl_addrinfo **)((int)arg + 0x14) != (Curl_addrinfo *)0x0) {\n      Curl_freeaddrinfo(*(Curl_addrinfo **)((int)arg + 0x14));\n    }\n    *(undefined4 *)arg = 0;\n    puVar6 = (undefined4 *)((int)arg + 4U & 0xfffffffc);\n    *(undefined4 *)((int)arg + 0x38) = 0;\n    uVar5 = (uint)((int)arg + (0x3c - (int)puVar6)) >> 2;\n    for (; uVar5 != 0; uVar5 = uVar5 - 1) {\n      *puVar6 = 0;\n      puVar6 = puVar6 + (uint)bVar7 * -2 + 1;\n    }\n    (*Curl_cfree)(pvVar2);\n  }" { comment (expression_statement "pthread_mutex_unlock(*arg);" (call_expression "pthread_mutex_unlock(*arg)" identifier (argument_list "(*arg)" ( (pointer_expression "*arg" * identifier) ))) ;) comment (if_statement "if (*arg != (pthread_mutex_t *)0x0) {\n      pthread_mutex_destroy(*arg);\n                    /* WARNING: Load size is inaccurate */\n      (*Curl_cfree)(*arg);\n    }" if (parenthesized_expression "(*arg != (pthread_mutex_t *)0x0)" ( (binary_expression "*arg != (pthread_mutex_t *)0x0" (pointer_expression "*arg" * identifier) != (cast_expression "(pthread_mutex_t *)0x0" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pthread_mutex_destroy(*arg);\n                    /* WARNING: Load size is inaccurate */\n      (*Curl_cfree)(*arg);\n    }" { (expression_statement "pthread_mutex_destroy(*arg);" (call_expression "pthread_mutex_destroy(*arg)" identifier (argument_list "(*arg)" ( (pointer_expression "*arg" * identifier) ))) ;) comment (expression_statement "(*Curl_cfree)(*arg);" (call_expression "(*Curl_cfree)(*arg)" (parenthesized_expression "(*Curl_cfree)" ( (pointer_expression "*Curl_cfree" * identifier) )) (argument_list "(*arg)" ( (pointer_expression "*arg" * identifier) ))) ;) })) (expression_statement "(*Curl_cfree)(*(void **)((int)arg + 8));" (call_expression "(*Curl_cfree)(*(void **)((int)arg + 8))" (parenthesized_expression "(*Curl_cfree)" ( (pointer_expression "*Curl_cfree" * identifier) )) (argument_list "(*(void **)((int)arg + 8))" ( (pointer_expression "*(void **)((int)arg + 8)" * (cast_expression "(void **)((int)arg + 8)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)arg + 8)" ( (binary_expression "(int)arg + 8" (cast_expression "(int)arg" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ))) ;) (if_statement "if (*(Curl_addrinfo **)((int)arg + 0x14) != (Curl_addrinfo *)0x0) {\n      Curl_freeaddrinfo(*(Curl_addrinfo **)((int)arg + 0x14));\n    }" if (parenthesized_expression "(*(Curl_addrinfo **)((int)arg + 0x14) != (Curl_addrinfo *)0x0)" ( (binary_expression "*(Curl_addrinfo **)((int)arg + 0x14) != (Curl_addrinfo *)0x0" (pointer_expression "*(Curl_addrinfo **)((int)arg + 0x14)" * (cast_expression "(Curl_addrinfo **)((int)arg + 0x14)" ( (type_descriptor "Curl_addrinfo **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)arg + 0x14)" ( (binary_expression "(int)arg + 0x14" (cast_expression "(int)arg" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != (cast_expression "(Curl_addrinfo *)0x0" ( (type_descriptor "Curl_addrinfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      Curl_freeaddrinfo(*(Curl_addrinfo **)((int)arg + 0x14));\n    }" { (expression_statement "Curl_freeaddrinfo(*(Curl_addrinfo **)((int)arg + 0x14));" (call_expression "Curl_freeaddrinfo(*(Curl_addrinfo **)((int)arg + 0x14))" identifier (argument_list "(*(Curl_addrinfo **)((int)arg + 0x14))" ( (pointer_expression "*(Curl_addrinfo **)((int)arg + 0x14)" * (cast_expression "(Curl_addrinfo **)((int)arg + 0x14)" ( (type_descriptor "Curl_addrinfo **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)arg + 0x14)" ( (binary_expression "(int)arg + 0x14" (cast_expression "(int)arg" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ))) ;) })) (expression_statement "*(undefined4 *)arg = 0;" (assignment_expression "*(undefined4 *)arg = 0" (pointer_expression "*(undefined4 *)arg" * (cast_expression "(undefined4 *)arg" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = number_literal) ;) (expression_statement "puVar6 = (undefined4 *)((int)arg + 4U & 0xfffffffc);" (assignment_expression "puVar6 = (undefined4 *)((int)arg + 4U & 0xfffffffc)" identifier = (cast_expression "(undefined4 *)((int)arg + 4U & 0xfffffffc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)arg + 4U & 0xfffffffc)" ( (binary_expression "(int)arg + 4U & 0xfffffffc" (binary_expression "(int)arg + 4U" (cast_expression "(int)arg" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) & number_literal) )))) ;) (expression_statement "*(undefined4 *)((int)arg + 0x38) = 0;" (assignment_expression "*(undefined4 *)((int)arg + 0x38) = 0" (pointer_expression "*(undefined4 *)((int)arg + 0x38)" * (cast_expression "(undefined4 *)((int)arg + 0x38)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)arg + 0x38)" ( (binary_expression "(int)arg + 0x38" (cast_expression "(int)arg" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "uVar5 = (uint)((int)arg + (0x3c - (int)puVar6)) >> 2;" (assignment_expression "uVar5 = (uint)((int)arg + (0x3c - (int)puVar6)) >> 2" identifier = (binary_expression "(uint)((int)arg + (0x3c - (int)puVar6)) >> 2" (call_expression "(uint)((int)arg + (0x3c - (int)puVar6))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)arg + (0x3c - (int)puVar6))" ( (binary_expression "(int)arg + (0x3c - (int)puVar6)" (cast_expression "(int)arg" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x3c - (int)puVar6)" ( (binary_expression "0x3c - (int)puVar6" number_literal - (cast_expression "(int)puVar6" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ))) >> number_literal)) ;) (for_statement "for (; uVar5 != 0; uVar5 = uVar5 - 1) {\n      *puVar6 = 0;\n      puVar6 = puVar6 + (uint)bVar7 * -2 + 1;\n    }" for ( ; (binary_expression "uVar5 != 0" identifier != number_literal) ; (assignment_expression "uVar5 = uVar5 - 1" identifier = (binary_expression "uVar5 - 1" identifier - number_literal)) ) (compound_statement "{\n      *puVar6 = 0;\n      puVar6 = puVar6 + (uint)bVar7 * -2 + 1;\n    }" { (expression_statement "*puVar6 = 0;" (assignment_expression "*puVar6 = 0" (pointer_expression "*puVar6" * identifier) = number_literal) ;) (expression_statement "puVar6 = puVar6 + (uint)bVar7 * -2 + 1;" (assignment_expression "puVar6 = puVar6 + (uint)bVar7 * -2 + 1" identifier = (binary_expression "puVar6 + (uint)bVar7 * -2 + 1" (binary_expression "puVar6 + (uint)bVar7 * -2" identifier + (binary_expression "(uint)bVar7 * -2" (cast_expression "(uint)bVar7" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "(*Curl_cfree)(pvVar2);" (call_expression "(*Curl_cfree)(pvVar2)" (parenthesized_expression "(*Curl_cfree)" ( (pointer_expression "*Curl_cfree" * identifier) )) (argument_list "(pvVar2)" ( identifier ))) ;) }))) (if_statement "if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" if (parenthesized_expression "(iVar1 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 FUN_00062490(void)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  int unaff_EBX;\n  undefined4 *puVar5;\n  int in_GS_OFFSET;\n  byte bVar6;\n  undefined4 *unaff_retaddr;\n  undefined1 local_30 [12];\n  int local_24;\n  undefined4 uStack_14;\n  \n  bVar6 = 0;\n  uStack_14 = 0x62499;\n  entry();\n  local_24 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = unaff_retaddr[0xe];\n  curl_msnprintf(local_30,0xc,unaff_EBX + 0x21cc4,unaff_retaddr[3]);\n  iVar2 = FUN_00056520(unaff_retaddr[2],local_30,unaff_retaddr + 6,unaff_retaddr + 5);\n  if (iVar2 != 0) {\n    piVar3 = __errno_location();\n    if (*piVar3 != 0) {\n      iVar2 = *piVar3;\n    }\n    unaff_retaddr[4] = iVar2;\n  }\n  pthread_mutex_lock((pthread_mutex_t *)*unaff_retaddr);\n  if (unaff_retaddr[1] == 0) {\n    unaff_retaddr[1] = 1;\n    pthread_mutex_unlock((pthread_mutex_t *)*unaff_retaddr);\n  }\n  else {\n    pthread_mutex_unlock((pthread_mutex_t *)*unaff_retaddr);\n    if ((pthread_mutex_t *)*unaff_retaddr != (pthread_mutex_t *)0x0) {\n      pthread_mutex_destroy((pthread_mutex_t *)*unaff_retaddr);\n      (**(code **)(&UNK_00054bd3 + unaff_EBX))(*unaff_retaddr);\n    }\n    (**(code **)(&UNK_00054bd3 + unaff_EBX))(unaff_retaddr[2]);\n    if (unaff_retaddr[5] != 0) {\n      FUN_000564d0(unaff_retaddr[5]);\n    }\n    *unaff_retaddr = 0;\n    unaff_retaddr[0xe] = 0;\n    puVar5 = (undefined4 *)((uint)(unaff_retaddr + 1) & 0xfffffffc);\n    for (uVar4 = (uint)((int)unaff_retaddr + (0x3c - (int)((uint)(unaff_retaddr + 1) & 0xfffffffc)))\n                 >> 2; uVar4 != 0; uVar4 = uVar4 - 1) {\n      *puVar5 = 0;\n      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n    }\n    (**(code **)(&UNK_00054bd3 + unaff_EBX))(uVar1);\n  }\n  if (local_24 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00082f60();\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_00062490(void)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  int unaff_EBX;\n  undefined4 *puVar5;\n  int in_GS_OFFSET;\n  byte bVar6;\n  undefined4 *unaff_retaddr;\n  undefined1 local_30 [12];\n  int local_24;\n  undefined4 uStack_14;\n  \n  bVar6 = 0;\n  uStack_14 = 0x62499;\n  entry();\n  local_24 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = unaff_retaddr[0xe];\n  curl_msnprintf(local_30,0xc,unaff_EBX + 0x21cc4,unaff_retaddr[3]);\n  iVar2 = FUN_00056520(unaff_retaddr[2],local_30,unaff_retaddr + 6,unaff_retaddr + 5);\n  if (iVar2 != 0) {\n    piVar3 = __errno_location();\n    if (*piVar3 != 0) {\n      iVar2 = *piVar3;\n    }\n    unaff_retaddr[4] = iVar2;\n  }\n  pthread_mutex_lock((pthread_mutex_t *)*unaff_retaddr);\n  if (unaff_retaddr[1] == 0) {\n    unaff_retaddr[1] = 1;\n    pthread_mutex_unlock((pthread_mutex_t *)*unaff_retaddr);\n  }\n  else {\n    pthread_mutex_unlock((pthread_mutex_t *)*unaff_retaddr);\n    if ((pthread_mutex_t *)*unaff_retaddr != (pthread_mutex_t *)0x0) {\n      pthread_mutex_destroy((pthread_mutex_t *)*unaff_retaddr);\n      (**(code **)(&UNK_00054bd3 + unaff_EBX))(*unaff_retaddr);\n    }\n    (**(code **)(&UNK_00054bd3 + unaff_EBX))(unaff_retaddr[2]);\n    if (unaff_retaddr[5] != 0) {\n      FUN_000564d0(unaff_retaddr[5]);\n    }\n    *unaff_retaddr = 0;\n    unaff_retaddr[0xe] = 0;\n    puVar5 = (undefined4 *)((uint)(unaff_retaddr + 1) & 0xfffffffc);\n    for (uVar4 = (uint)((int)unaff_retaddr + (0x3c - (int)((uint)(unaff_retaddr + 1) & 0xfffffffc)))\n                 >> 2; uVar4 != 0; uVar4 = uVar4 - 1) {\n      *puVar5 = 0;\n      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n    }\n    (**(code **)(&UNK_00054bd3 + unaff_EBX))(uVar1);\n  }\n  if (local_24 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00082f60();\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_00062490(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  int unaff_EBX;\n  undefined4 *puVar5;\n  int in_GS_OFFSET;\n  byte bVar6;\n  undefined4 *unaff_retaddr;\n  undefined1 local_30 [12];\n  int local_24;\n  undefined4 uStack_14;\n  \n  bVar6 = 0;\n  uStack_14 = 0x62499;\n  entry();\n  local_24 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = unaff_retaddr[0xe];\n  curl_msnprintf(local_30,0xc,unaff_EBX + 0x21cc4,unaff_retaddr[3]);\n  iVar2 = FUN_00056520(unaff_retaddr[2],local_30,unaff_retaddr + 6,unaff_retaddr + 5);\n  if (iVar2 != 0) {\n    piVar3 = __errno_location();\n    if (*piVar3 != 0) {\n      iVar2 = *piVar3;\n    }\n    unaff_retaddr[4] = iVar2;\n  }\n  pthread_mutex_lock((pthread_mutex_t *)*unaff_retaddr);\n  if (unaff_retaddr[1] == 0) {\n    unaff_retaddr[1] = 1;\n    pthread_mutex_unlock((pthread_mutex_t *)*unaff_retaddr);\n  }\n  else {\n    pthread_mutex_unlock((pthread_mutex_t *)*unaff_retaddr);\n    if ((pthread_mutex_t *)*unaff_retaddr != (pthread_mutex_t *)0x0) {\n      pthread_mutex_destroy((pthread_mutex_t *)*unaff_retaddr);\n      (**(code **)(&UNK_00054bd3 + unaff_EBX))(*unaff_retaddr);\n    }\n    (**(code **)(&UNK_00054bd3 + unaff_EBX))(unaff_retaddr[2]);\n    if (unaff_retaddr[5] != 0) {\n      FUN_000564d0(unaff_retaddr[5]);\n    }\n    *unaff_retaddr = 0;\n    unaff_retaddr[0xe] = 0;\n    puVar5 = (undefined4 *)((uint)(unaff_retaddr + 1) & 0xfffffffc);\n    for (uVar4 = (uint)((int)unaff_retaddr + (0x3c - (int)((uint)(unaff_retaddr + 1) & 0xfffffffc)))\n                 >> 2; uVar4 != 0; uVar4 = uVar4 - 1) {\n      *puVar5 = 0;\n      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n    }\n    (**(code **)(&UNK_00054bd3 + unaff_EBX))(uVar1);\n  }\n  if (local_24 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00082f60();\n  }\n  return 0;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int unaff_EBX;" primitive_type identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "byte bVar6;" type_identifier identifier ;) (declaration "undefined4 *unaff_retaddr;" type_identifier (pointer_declarator "*unaff_retaddr" * identifier) ;) (declaration "undefined1 local_30 [12];" type_identifier (array_declarator "local_30 [12]" identifier [ number_literal ]) ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "bVar6 = 0;" (assignment_expression "bVar6 = 0" identifier = number_literal) ;) (expression_statement "uStack_14 = 0x62499;" (assignment_expression "uStack_14 = 0x62499" identifier = number_literal) ;) (expression_statement "entry();" (call_expression "entry()" identifier (argument_list "()" ( ))) ;) (expression_statement "local_24 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_24 = *(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 "uVar1 = unaff_retaddr[0xe];" (assignment_expression "uVar1 = unaff_retaddr[0xe]" identifier = (subscript_expression "unaff_retaddr[0xe]" identifier [ number_literal ])) ;) (expression_statement "curl_msnprintf(local_30,0xc,unaff_EBX + 0x21cc4,unaff_retaddr[3]);" (call_expression "curl_msnprintf(local_30,0xc,unaff_EBX + 0x21cc4,unaff_retaddr[3])" identifier (argument_list "(local_30,0xc,unaff_EBX + 0x21cc4,unaff_retaddr[3])" ( identifier , number_literal , (binary_expression "unaff_EBX + 0x21cc4" identifier + number_literal) , (subscript_expression "unaff_retaddr[3]" identifier [ number_literal ]) ))) ;) (expression_statement "iVar2 = FUN_00056520(unaff_retaddr[2],local_30,unaff_retaddr + 6,unaff_retaddr + 5);" (assignment_expression "iVar2 = FUN_00056520(unaff_retaddr[2],local_30,unaff_retaddr + 6,unaff_retaddr + 5)" identifier = (call_expression "FUN_00056520(unaff_retaddr[2],local_30,unaff_retaddr + 6,unaff_retaddr + 5)" identifier (argument_list "(unaff_retaddr[2],local_30,unaff_retaddr + 6,unaff_retaddr + 5)" ( (subscript_expression "unaff_retaddr[2]" identifier [ number_literal ]) , identifier , (binary_expression "unaff_retaddr + 6" identifier + number_literal) , (binary_expression "unaff_retaddr + 5" identifier + number_literal) )))) ;) (if_statement "if (iVar2 != 0) {\n    piVar3 = __errno_location();\n    if (*piVar3 != 0) {\n      iVar2 = *piVar3;\n    }\n    unaff_retaddr[4] = iVar2;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    piVar3 = __errno_location();\n    if (*piVar3 != 0) {\n      iVar2 = *piVar3;\n    }\n    unaff_retaddr[4] = iVar2;\n  }" { (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (if_statement "if (*piVar3 != 0) {\n      iVar2 = *piVar3;\n    }" if (parenthesized_expression "(*piVar3 != 0)" ( (binary_expression "*piVar3 != 0" (pointer_expression "*piVar3" * identifier) != number_literal) )) (compound_statement "{\n      iVar2 = *piVar3;\n    }" { (expression_statement "iVar2 = *piVar3;" (assignment_expression "iVar2 = *piVar3" identifier = (pointer_expression "*piVar3" * identifier)) ;) })) (expression_statement "unaff_retaddr[4] = iVar2;" (assignment_expression "unaff_retaddr[4] = iVar2" (subscript_expression "unaff_retaddr[4]" identifier [ number_literal ]) = identifier) ;) })) (expression_statement "pthread_mutex_lock((pthread_mutex_t *)*unaff_retaddr);" (call_expression "pthread_mutex_lock((pthread_mutex_t *)*unaff_retaddr)" identifier (argument_list "((pthread_mutex_t *)*unaff_retaddr)" ( (cast_expression "(pthread_mutex_t *)*unaff_retaddr" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*unaff_retaddr" * identifier)) ))) ;) (if_statement "if (unaff_retaddr[1] == 0) {\n    unaff_retaddr[1] = 1;\n    pthread_mutex_unlock((pthread_mutex_t *)*unaff_retaddr);\n  }\n  else {\n    pthread_mutex_unlock((pthread_mutex_t *)*unaff_retaddr);\n    if ((pthread_mutex_t *)*unaff_retaddr != (pthread_mutex_t *)0x0) {\n      pthread_mutex_destroy((pthread_mutex_t *)*unaff_retaddr);\n      (**(code **)(&UNK_00054bd3 + unaff_EBX))(*unaff_retaddr);\n    }\n    (**(code **)(&UNK_00054bd3 + unaff_EBX))(unaff_retaddr[2]);\n    if (unaff_retaddr[5] != 0) {\n      FUN_000564d0(unaff_retaddr[5]);\n    }\n    *unaff_retaddr = 0;\n    unaff_retaddr[0xe] = 0;\n    puVar5 = (undefined4 *)((uint)(unaff_retaddr + 1) & 0xfffffffc);\n    for (uVar4 = (uint)((int)unaff_retaddr + (0x3c - (int)((uint)(unaff_retaddr + 1) & 0xfffffffc)))\n                 >> 2; uVar4 != 0; uVar4 = uVar4 - 1) {\n      *puVar5 = 0;\n      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n    }\n    (**(code **)(&UNK_00054bd3 + unaff_EBX))(uVar1);\n  }" if (parenthesized_expression "(unaff_retaddr[1] == 0)" ( (binary_expression "unaff_retaddr[1] == 0" (subscript_expression "unaff_retaddr[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n    unaff_retaddr[1] = 1;\n    pthread_mutex_unlock((pthread_mutex_t *)*unaff_retaddr);\n  }" { (expression_statement "unaff_retaddr[1] = 1;" (assignment_expression "unaff_retaddr[1] = 1" (subscript_expression "unaff_retaddr[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "pthread_mutex_unlock((pthread_mutex_t *)*unaff_retaddr);" (call_expression "pthread_mutex_unlock((pthread_mutex_t *)*unaff_retaddr)" identifier (argument_list "((pthread_mutex_t *)*unaff_retaddr)" ( (cast_expression "(pthread_mutex_t *)*unaff_retaddr" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*unaff_retaddr" * identifier)) ))) ;) }) (else_clause "else {\n    pthread_mutex_unlock((pthread_mutex_t *)*unaff_retaddr);\n    if ((pthread_mutex_t *)*unaff_retaddr != (pthread_mutex_t *)0x0) {\n      pthread_mutex_destroy((pthread_mutex_t *)*unaff_retaddr);\n      (**(code **)(&UNK_00054bd3 + unaff_EBX))(*unaff_retaddr);\n    }\n    (**(code **)(&UNK_00054bd3 + unaff_EBX))(unaff_retaddr[2]);\n    if (unaff_retaddr[5] != 0) {\n      FUN_000564d0(unaff_retaddr[5]);\n    }\n    *unaff_retaddr = 0;\n    unaff_retaddr[0xe] = 0;\n    puVar5 = (undefined4 *)((uint)(unaff_retaddr + 1) & 0xfffffffc);\n    for (uVar4 = (uint)((int)unaff_retaddr + (0x3c - (int)((uint)(unaff_retaddr + 1) & 0xfffffffc)))\n                 >> 2; uVar4 != 0; uVar4 = uVar4 - 1) {\n      *puVar5 = 0;\n      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n    }\n    (**(code **)(&UNK_00054bd3 + unaff_EBX))(uVar1);\n  }" else (compound_statement "{\n    pthread_mutex_unlock((pthread_mutex_t *)*unaff_retaddr);\n    if ((pthread_mutex_t *)*unaff_retaddr != (pthread_mutex_t *)0x0) {\n      pthread_mutex_destroy((pthread_mutex_t *)*unaff_retaddr);\n      (**(code **)(&UNK_00054bd3 + unaff_EBX))(*unaff_retaddr);\n    }\n    (**(code **)(&UNK_00054bd3 + unaff_EBX))(unaff_retaddr[2]);\n    if (unaff_retaddr[5] != 0) {\n      FUN_000564d0(unaff_retaddr[5]);\n    }\n    *unaff_retaddr = 0;\n    unaff_retaddr[0xe] = 0;\n    puVar5 = (undefined4 *)((uint)(unaff_retaddr + 1) & 0xfffffffc);\n    for (uVar4 = (uint)((int)unaff_retaddr + (0x3c - (int)((uint)(unaff_retaddr + 1) & 0xfffffffc)))\n                 >> 2; uVar4 != 0; uVar4 = uVar4 - 1) {\n      *puVar5 = 0;\n      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n    }\n    (**(code **)(&UNK_00054bd3 + unaff_EBX))(uVar1);\n  }" { (expression_statement "pthread_mutex_unlock((pthread_mutex_t *)*unaff_retaddr);" (call_expression "pthread_mutex_unlock((pthread_mutex_t *)*unaff_retaddr)" identifier (argument_list "((pthread_mutex_t *)*unaff_retaddr)" ( (cast_expression "(pthread_mutex_t *)*unaff_retaddr" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*unaff_retaddr" * identifier)) ))) ;) (if_statement "if ((pthread_mutex_t *)*unaff_retaddr != (pthread_mutex_t *)0x0) {\n      pthread_mutex_destroy((pthread_mutex_t *)*unaff_retaddr);\n      (**(code **)(&UNK_00054bd3 + unaff_EBX))(*unaff_retaddr);\n    }" if (parenthesized_expression "((pthread_mutex_t *)*unaff_retaddr != (pthread_mutex_t *)0x0)" ( (binary_expression "(pthread_mutex_t *)*unaff_retaddr != (pthread_mutex_t *)0x0" (cast_expression "(pthread_mutex_t *)*unaff_retaddr" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*unaff_retaddr" * identifier)) != (cast_expression "(pthread_mutex_t *)0x0" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pthread_mutex_destroy((pthread_mutex_t *)*unaff_retaddr);\n      (**(code **)(&UNK_00054bd3 + unaff_EBX))(*unaff_retaddr);\n    }" { (expression_statement "pthread_mutex_destroy((pthread_mutex_t *)*unaff_retaddr);" (call_expression "pthread_mutex_destroy((pthread_mutex_t *)*unaff_retaddr)" identifier (argument_list "((pthread_mutex_t *)*unaff_retaddr)" ( (cast_expression "(pthread_mutex_t *)*unaff_retaddr" ( (type_descriptor "pthread_mutex_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*unaff_retaddr" * identifier)) ))) ;) (expression_statement "(**(code **)(&UNK_00054bd3 + unaff_EBX))(*unaff_retaddr);" (call_expression "(**(code **)(&UNK_00054bd3 + unaff_EBX))(*unaff_retaddr)" (parenthesized_expression "(**(code **)(&UNK_00054bd3 + unaff_EBX))" ( (pointer_expression "**(code **)(&UNK_00054bd3 + unaff_EBX)" * (pointer_expression "*(code **)(&UNK_00054bd3 + unaff_EBX)" * (cast_expression "(code **)(&UNK_00054bd3 + unaff_EBX)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&UNK_00054bd3 + unaff_EBX)" ( (binary_expression "&UNK_00054bd3 + unaff_EBX" (pointer_expression "&UNK_00054bd3" & identifier) + identifier) ))))) )) (argument_list "(*unaff_retaddr)" ( (pointer_expression "*unaff_retaddr" * identifier) ))) ;) })) (expression_statement "(**(code **)(&UNK_00054bd3 + unaff_EBX))(unaff_retaddr[2]);" (call_expression "(**(code **)(&UNK_00054bd3 + unaff_EBX))(unaff_retaddr[2])" (parenthesized_expression "(**(code **)(&UNK_00054bd3 + unaff_EBX))" ( (pointer_expression "**(code **)(&UNK_00054bd3 + unaff_EBX)" * (pointer_expression "*(code **)(&UNK_00054bd3 + unaff_EBX)" * (cast_expression "(code **)(&UNK_00054bd3 + unaff_EBX)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&UNK_00054bd3 + unaff_EBX)" ( (binary_expression "&UNK_00054bd3 + unaff_EBX" (pointer_expression "&UNK_00054bd3" & identifier) + identifier) ))))) )) (argument_list "(unaff_retaddr[2])" ( (subscript_expression "unaff_retaddr[2]" identifier [ number_literal ]) ))) ;) (if_statement "if (unaff_retaddr[5] != 0) {\n      FUN_000564d0(unaff_retaddr[5]);\n    }" if (parenthesized_expression "(unaff_retaddr[5] != 0)" ( (binary_expression "unaff_retaddr[5] != 0" (subscript_expression "unaff_retaddr[5]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      FUN_000564d0(unaff_retaddr[5]);\n    }" { (expression_statement "FUN_000564d0(unaff_retaddr[5]);" (call_expression "FUN_000564d0(unaff_retaddr[5])" identifier (argument_list "(unaff_retaddr[5])" ( (subscript_expression "unaff_retaddr[5]" identifier [ number_literal ]) ))) ;) })) (expression_statement "*unaff_retaddr = 0;" (assignment_expression "*unaff_retaddr = 0" (pointer_expression "*unaff_retaddr" * identifier) = number_literal) ;) (expression_statement "unaff_retaddr[0xe] = 0;" (assignment_expression "unaff_retaddr[0xe] = 0" (subscript_expression "unaff_retaddr[0xe]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar5 = (undefined4 *)((uint)(unaff_retaddr + 1) & 0xfffffffc);" (assignment_expression "puVar5 = (undefined4 *)((uint)(unaff_retaddr + 1) & 0xfffffffc)" identifier = (cast_expression "(undefined4 *)((uint)(unaff_retaddr + 1) & 0xfffffffc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)(unaff_retaddr + 1) & 0xfffffffc)" ( (binary_expression "(uint)(unaff_retaddr + 1) & 0xfffffffc" (call_expression "(uint)(unaff_retaddr + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(unaff_retaddr + 1)" ( (binary_expression "unaff_retaddr + 1" identifier + number_literal) ))) & number_literal) )))) ;) (for_statement "for (uVar4 = (uint)((int)unaff_retaddr + (0x3c - (int)((uint)(unaff_retaddr + 1) & 0xfffffffc)))\n                 >> 2; uVar4 != 0; uVar4 = uVar4 - 1) {\n      *puVar5 = 0;\n      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n    }" for ( (assignment_expression "uVar4 = (uint)((int)unaff_retaddr + (0x3c - (int)((uint)(unaff_retaddr + 1) & 0xfffffffc)))\n                 >> 2" identifier = (binary_expression "(uint)((int)unaff_retaddr + (0x3c - (int)((uint)(unaff_retaddr + 1) & 0xfffffffc)))\n                 >> 2" (call_expression "(uint)((int)unaff_retaddr + (0x3c - (int)((uint)(unaff_retaddr + 1) & 0xfffffffc)))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)unaff_retaddr + (0x3c - (int)((uint)(unaff_retaddr + 1) & 0xfffffffc)))" ( (binary_expression "(int)unaff_retaddr + (0x3c - (int)((uint)(unaff_retaddr + 1) & 0xfffffffc))" (cast_expression "(int)unaff_retaddr" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x3c - (int)((uint)(unaff_retaddr + 1) & 0xfffffffc))" ( (binary_expression "0x3c - (int)((uint)(unaff_retaddr + 1) & 0xfffffffc)" number_literal - (cast_expression "(int)((uint)(unaff_retaddr + 1) & 0xfffffffc)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((uint)(unaff_retaddr + 1) & 0xfffffffc)" ( (binary_expression "(uint)(unaff_retaddr + 1) & 0xfffffffc" (call_expression "(uint)(unaff_retaddr + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(unaff_retaddr + 1)" ( (binary_expression "unaff_retaddr + 1" identifier + number_literal) ))) & number_literal) )))) ))) ))) >> number_literal)) ; (binary_expression "uVar4 != 0" identifier != number_literal) ; (assignment_expression "uVar4 = uVar4 - 1" identifier = (binary_expression "uVar4 - 1" identifier - number_literal)) ) (compound_statement "{\n      *puVar5 = 0;\n      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n    }" { (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" * identifier) = number_literal) ;) (expression_statement "puVar5 = puVar5 + (uint)bVar6 * -2 + 1;" (assignment_expression "puVar5 = puVar5 + (uint)bVar6 * -2 + 1" identifier = (binary_expression "puVar5 + (uint)bVar6 * -2 + 1" (binary_expression "puVar5 + (uint)bVar6 * -2" identifier + (binary_expression "(uint)bVar6 * -2" (cast_expression "(uint)bVar6" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "(**(code **)(&UNK_00054bd3 + unaff_EBX))(uVar1);" (call_expression "(**(code **)(&UNK_00054bd3 + unaff_EBX))(uVar1)" (parenthesized_expression "(**(code **)(&UNK_00054bd3 + unaff_EBX))" ( (pointer_expression "**(code **)(&UNK_00054bd3 + unaff_EBX)" * (pointer_expression "*(code **)(&UNK_00054bd3 + unaff_EBX)" * (cast_expression "(code **)(&UNK_00054bd3 + unaff_EBX)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(&UNK_00054bd3 + unaff_EBX)" ( (binary_expression "&UNK_00054bd3 + unaff_EBX" (pointer_expression "&UNK_00054bd3" & identifier) + identifier) ))))) )) (argument_list "(uVar1)" ( identifier ))) ;) }))) (if_statement "if (local_24 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00082f60();\n  }" if (parenthesized_expression "(local_24 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_24 != *(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                    \n    FUN_00082f60();\n  }" { (expression_statement "FUN_00082f60();" (call_expression "FUN_00082f60()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE 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 (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 = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , (binary_expression IDENT + LIT) , (subscript_expression IDENT [ LIT ]) ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , IDENT , (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) })) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) ))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + IDENT) ))))) )) (argument_list ( (pointer_expression * IDENT) ))) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + IDENT) ))))) )) (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT) )))) ;) (for_statement for ( (assignment_expression IDENT = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (parenthesized_expression ( (binary_expression LIT - (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT) )))) ))) ))) >> LIT)) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT - LIT)) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + IDENT) ))))) )) (argument_list ( IDENT ))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_00062490(void)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  int unaff_EBX;\n  undefined4 *puVar5;\n  int in_GS_OFFSET;\n  byte bVar6;\n  undefined4 *unaff_retaddr;\n  undefined1 local_30 [12];\n  int local_24;\n  undefined4 uStack_14;\n  \n  bVar6 = 0;\n  uStack_14 = 0x62499;\n  entry();\n  local_24 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = unaff_retaddr[0xe];\n  curl_msnprintf(local_30,0xc,unaff_EBX + 0x21cc4,unaff_retaddr[3]);\n  iVar2 = FUN_00056520(unaff_retaddr[2],local_30,unaff_retaddr + 6,unaff_retaddr + 5);\n  if (iVar2 != 0) {\n    piVar3 = __errno_location();\n    if (*piVar3 != 0) {\n      iVar2 = *piVar3;\n    }\n    unaff_retaddr[4] = iVar2;\n  }\n  pthread_mutex_lock((pthread_mutex_t *)*unaff_retaddr);\n  if (unaff_retaddr[1] == 0) {\n    unaff_retaddr[1] = 1;\n    pthread_mutex_unlock((pthread_mutex_t *)*unaff_retaddr);\n  }\n  else {\n    pthread_mutex_unlock((pthread_mutex_t *)*unaff_retaddr);\n    if ((pthread_mutex_t *)*unaff_retaddr != (pthread_mutex_t *)0x0) {\n      pthread_mutex_destroy((pthread_mutex_t *)*unaff_retaddr);\n      (**(code **)(&UNK_00054bd3 + unaff_EBX))(*unaff_retaddr);\n    }\n    (**(code **)(&UNK_00054bd3 + unaff_EBX))(unaff_retaddr[2]);\n    if (unaff_retaddr[5] != 0) {\n      FUN_000564d0(unaff_retaddr[5]);\n    }\n    *unaff_retaddr = 0;\n    unaff_retaddr[0xe] = 0;\n    puVar5 = (undefined4 *)((uint)(unaff_retaddr + 1) & 0xfffffffc);\n    for (uVar4 = (uint)((int)unaff_retaddr + (0x3c - (int)((uint)(unaff_retaddr + 1) & 0xfffffffc)))\n                 >> 2; uVar4 != 0; uVar4 = uVar4 - 1) {\n      *puVar5 = 0;\n      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n    }\n    (**(code **)(&UNK_00054bd3 + unaff_EBX))(uVar1);\n  }\n  if (local_24 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00082f60();\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_00062490(void)" (identifier "FUN_00062490") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  int *piVar3;\n  uint uVar4;\n  int unaff_EBX;\n  undefined4 *puVar5;\n  int in_GS_OFFSET;\n  byte bVar6;\n  undefined4 *unaff_retaddr;\n  undefined1 local_30 [12];\n  int local_24;\n  undefined4 uStack_14;\n  \n  bVar6 = 0;\n  uStack_14 = 0x62499;\n  entry();\n  local_24 = *(int *)(in_GS_OFFSET + 0x14);\n  uVar1 = unaff_retaddr[0xe];\n  curl_msnprintf(local_30,0xc,unaff_EBX + 0x21cc4,unaff_retaddr[3]);\n  iVar2 = FUN_00056520(unaff_retaddr[2],local_30,unaff_retaddr + 6,unaff_retaddr + 5);\n  if (iVar2 != 0) {\n    piVar3 = __errno_location();\n    if (*piVar3 != 0) {\n      iVar2 = *piVar3;\n    }\n    unaff_retaddr[4] = iVar2;\n  }\n  pthread_mutex_lock((pthread_mutex_t *)*unaff_retaddr);\n  if (unaff_retaddr[1] == 0) {\n    unaff_retaddr[1] = 1;\n    pthread_mutex_unlock((pthread_mutex_t *)*unaff_retaddr);\n  }\n  else {\n    pthread_mutex_unlock((pthread_mutex_t *)*unaff_retaddr);\n    if ((pthread_mutex_t *)*unaff_retaddr != (pthread_mutex_t *)0x0) {\n      pthread_mutex_destroy((pthread_mutex_t *)*unaff_retaddr);\n      (**(code **)(&UNK_00054bd3 + unaff_EBX))(*unaff_retaddr);\n    }\n    (**(code **)(&UNK_00054bd3 + unaff_EBX))(unaff_retaddr[2]);\n    if (unaff_retaddr[5] != 0) {\n      FUN_000564d0(unaff_retaddr[5]);\n    }\n    *unaff_retaddr = 0;\n    unaff_retaddr[0xe] = 0;\n    puVar5 = (undefined4 *)((uint)(unaff_retaddr + 1) & 0xfffffffc);\n    for (uVar4 = (uint)((int)unaff_retaddr + (0x3c - (int)((uint)(unaff_retaddr + 1) & 0xfffffffc)))\n                 >> 2; uVar4 != 0; uVar4 = uVar4 - 1) {\n      *puVar5 = 0;\n      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n    }\n    (**(code **)(&UNK_00054bd3 + unaff_EBX))(uVar1);\n  }\n  if (local_24 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00082f60();\n  }\n  return 0;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "int unaff_EBX;" (primitive_type "int") (identifier "unaff_EBX") (; ";")) (declaration "undefined4 *puVar5;" (type_identifier "undefined4") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "byte bVar6;" (type_identifier "byte") (identifier "bVar6") (; ";")) (declaration "undefined4 *unaff_retaddr;" (type_identifier "undefined4") (pointer_declarator "*unaff_retaddr" (* "*") (identifier "unaff_retaddr")) (; ";")) (declaration "undefined1 local_30 [12];" (type_identifier "undefined1") (array_declarator "local_30 [12]" (identifier "local_30") ([ "[") (number_literal "12") (] "]")) (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "bVar6 = 0;" (assignment_expression "bVar6 = 0" (identifier "bVar6") (= "=") (number_literal "0")) (; ";")) (expression_statement "uStack_14 = 0x62499;" (assignment_expression "uStack_14 = 0x62499" (identifier "uStack_14") (= "=") (number_literal "0x62499")) (; ";")) (expression_statement "entry();" (call_expression "entry()" (identifier "entry") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "local_24 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_24 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_24") (= "=") (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")) () ")"))))) (; ";")) (expression_statement "uVar1 = unaff_retaddr[0xe];" (assignment_expression "uVar1 = unaff_retaddr[0xe]" (identifier "uVar1") (= "=") (subscript_expression "unaff_retaddr[0xe]" (identifier "unaff_retaddr") ([ "[") (number_literal "0xe") (] "]"))) (; ";")) (expression_statement "curl_msnprintf(local_30,0xc,unaff_EBX + 0x21cc4,unaff_retaddr[3]);" (call_expression "curl_msnprintf(local_30,0xc,unaff_EBX + 0x21cc4,unaff_retaddr[3])" (identifier "curl_msnprintf") (argument_list "(local_30,0xc,unaff_EBX + 0x21cc4,unaff_retaddr[3])" (( "(") (identifier "local_30") (, ",") (number_literal "0xc") (, ",") (binary_expression "unaff_EBX + 0x21cc4" (identifier "unaff_EBX") (+ "+") (number_literal "0x21cc4")) (, ",") (subscript_expression "unaff_retaddr[3]" (identifier "unaff_retaddr") ([ "[") (number_literal "3") (] "]")) () ")"))) (; ";")) (expression_statement "iVar2 = FUN_00056520(unaff_retaddr[2],local_30,unaff_retaddr + 6,unaff_retaddr + 5);" (assignment_expression "iVar2 = FUN_00056520(unaff_retaddr[2],local_30,unaff_retaddr + 6,unaff_retaddr + 5)" (identifier "iVar2") (= "=") (call_expression "FUN_00056520(unaff_retaddr[2],local_30,unaff_retaddr + 6,unaff_retaddr + 5)" (identifier "FUN_00056520") (argument_list "(unaff_retaddr[2],local_30,unaff_retaddr + 6,unaff_retaddr + 5)" (( "(") (subscript_expression "unaff_retaddr[2]" (identifier "unaff_retaddr") ([ "[") (number_literal "2") (] "]")) (, ",") (identifier "local_30") (, ",") (binary_expression "unaff_retaddr + 6" (identifier "unaff_retaddr") (+ "+") (number_literal "6")) (, ",") (binary_expression "unaff_retaddr + 5" (identifier "unaff_retaddr") (+ "+") (number_literal "5")) () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n    piVar3 = __errno_location();\n    if (*piVar3 != 0) {\n      iVar2 = *piVar3;\n    }\n    unaff_retaddr[4] = iVar2;\n  }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    piVar3 = __errno_location();\n    if (*piVar3 != 0) {\n      iVar2 = *piVar3;\n    }\n    unaff_retaddr[4] = iVar2;\n  }" ({ "{") (expression_statement "piVar3 = __errno_location();" (assignment_expression "piVar3 = __errno_location()" (identifier "piVar3") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (*piVar3 != 0) {\n      iVar2 = *piVar3;\n    }" (if "if") (parenthesized_expression "(*piVar3 != 0)" (( "(") (binary_expression "*piVar3 != 0" (pointer_expression "*piVar3" (* "*") (identifier "piVar3")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      iVar2 = *piVar3;\n    }" ({ "{") (expression_statement "iVar2 = *piVar3;" (assignment_expression "iVar2 = *piVar3" (identifier "iVar2") (= "=") (pointer_expression "*piVar3" (* "*") (identifier "piVar3"))) (; ";")) (} "}"))) (expression_statement "unaff_retaddr[4] = iVar2;" (assignment_expression "unaff_retaddr[4] = iVar2" (subscript_expression "unaff_retaddr[4]" (identifier "unaff_retaddr") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "iVar2")) (; ";")) (} "}"))) (expression_statement "pthread_mutex_lock((pthread_mutex_t *)*unaff_retaddr);" (call_expression "pthread_mutex_lock((pthread_mutex_t *)*unaff_retaddr)" (identifier "pthread_mutex_lock") (argument_list "((pthread_mutex_t *)*unaff_retaddr)" (( "(") (cast_expression "(pthread_mutex_t *)*unaff_retaddr" (( "(") (type_descriptor "pthread_mutex_t *" (type_identifier "pthread_mutex_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*unaff_retaddr" (* "*") (identifier "unaff_retaddr"))) () ")"))) (; ";")) (if_statement "if (unaff_retaddr[1] == 0) {\n    unaff_retaddr[1] = 1;\n    pthread_mutex_unlock((pthread_mutex_t *)*unaff_retaddr);\n  }\n  else {\n    pthread_mutex_unlock((pthread_mutex_t *)*unaff_retaddr);\n    if ((pthread_mutex_t *)*unaff_retaddr != (pthread_mutex_t *)0x0) {\n      pthread_mutex_destroy((pthread_mutex_t *)*unaff_retaddr);\n      (**(code **)(&UNK_00054bd3 + unaff_EBX))(*unaff_retaddr);\n    }\n    (**(code **)(&UNK_00054bd3 + unaff_EBX))(unaff_retaddr[2]);\n    if (unaff_retaddr[5] != 0) {\n      FUN_000564d0(unaff_retaddr[5]);\n    }\n    *unaff_retaddr = 0;\n    unaff_retaddr[0xe] = 0;\n    puVar5 = (undefined4 *)((uint)(unaff_retaddr + 1) & 0xfffffffc);\n    for (uVar4 = (uint)((int)unaff_retaddr + (0x3c - (int)((uint)(unaff_retaddr + 1) & 0xfffffffc)))\n                 >> 2; uVar4 != 0; uVar4 = uVar4 - 1) {\n      *puVar5 = 0;\n      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n    }\n    (**(code **)(&UNK_00054bd3 + unaff_EBX))(uVar1);\n  }" (if "if") (parenthesized_expression "(unaff_retaddr[1] == 0)" (( "(") (binary_expression "unaff_retaddr[1] == 0" (subscript_expression "unaff_retaddr[1]" (identifier "unaff_retaddr") ([ "[") (number_literal "1") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    unaff_retaddr[1] = 1;\n    pthread_mutex_unlock((pthread_mutex_t *)*unaff_retaddr);\n  }" ({ "{") (expression_statement "unaff_retaddr[1] = 1;" (assignment_expression "unaff_retaddr[1] = 1" (subscript_expression "unaff_retaddr[1]" (identifier "unaff_retaddr") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "1")) (; ";")) (expression_statement "pthread_mutex_unlock((pthread_mutex_t *)*unaff_retaddr);" (call_expression "pthread_mutex_unlock((pthread_mutex_t *)*unaff_retaddr)" (identifier "pthread_mutex_unlock") (argument_list "((pthread_mutex_t *)*unaff_retaddr)" (( "(") (cast_expression "(pthread_mutex_t *)*unaff_retaddr" (( "(") (type_descriptor "pthread_mutex_t *" (type_identifier "pthread_mutex_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*unaff_retaddr" (* "*") (identifier "unaff_retaddr"))) () ")"))) (; ";")) (} "}")) (else_clause "else {\n    pthread_mutex_unlock((pthread_mutex_t *)*unaff_retaddr);\n    if ((pthread_mutex_t *)*unaff_retaddr != (pthread_mutex_t *)0x0) {\n      pthread_mutex_destroy((pthread_mutex_t *)*unaff_retaddr);\n      (**(code **)(&UNK_00054bd3 + unaff_EBX))(*unaff_retaddr);\n    }\n    (**(code **)(&UNK_00054bd3 + unaff_EBX))(unaff_retaddr[2]);\n    if (unaff_retaddr[5] != 0) {\n      FUN_000564d0(unaff_retaddr[5]);\n    }\n    *unaff_retaddr = 0;\n    unaff_retaddr[0xe] = 0;\n    puVar5 = (undefined4 *)((uint)(unaff_retaddr + 1) & 0xfffffffc);\n    for (uVar4 = (uint)((int)unaff_retaddr + (0x3c - (int)((uint)(unaff_retaddr + 1) & 0xfffffffc)))\n                 >> 2; uVar4 != 0; uVar4 = uVar4 - 1) {\n      *puVar5 = 0;\n      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n    }\n    (**(code **)(&UNK_00054bd3 + unaff_EBX))(uVar1);\n  }" (else "else") (compound_statement "{\n    pthread_mutex_unlock((pthread_mutex_t *)*unaff_retaddr);\n    if ((pthread_mutex_t *)*unaff_retaddr != (pthread_mutex_t *)0x0) {\n      pthread_mutex_destroy((pthread_mutex_t *)*unaff_retaddr);\n      (**(code **)(&UNK_00054bd3 + unaff_EBX))(*unaff_retaddr);\n    }\n    (**(code **)(&UNK_00054bd3 + unaff_EBX))(unaff_retaddr[2]);\n    if (unaff_retaddr[5] != 0) {\n      FUN_000564d0(unaff_retaddr[5]);\n    }\n    *unaff_retaddr = 0;\n    unaff_retaddr[0xe] = 0;\n    puVar5 = (undefined4 *)((uint)(unaff_retaddr + 1) & 0xfffffffc);\n    for (uVar4 = (uint)((int)unaff_retaddr + (0x3c - (int)((uint)(unaff_retaddr + 1) & 0xfffffffc)))\n                 >> 2; uVar4 != 0; uVar4 = uVar4 - 1) {\n      *puVar5 = 0;\n      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n    }\n    (**(code **)(&UNK_00054bd3 + unaff_EBX))(uVar1);\n  }" ({ "{") (expression_statement "pthread_mutex_unlock((pthread_mutex_t *)*unaff_retaddr);" (call_expression "pthread_mutex_unlock((pthread_mutex_t *)*unaff_retaddr)" (identifier "pthread_mutex_unlock") (argument_list "((pthread_mutex_t *)*unaff_retaddr)" (( "(") (cast_expression "(pthread_mutex_t *)*unaff_retaddr" (( "(") (type_descriptor "pthread_mutex_t *" (type_identifier "pthread_mutex_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*unaff_retaddr" (* "*") (identifier "unaff_retaddr"))) () ")"))) (; ";")) (if_statement "if ((pthread_mutex_t *)*unaff_retaddr != (pthread_mutex_t *)0x0) {\n      pthread_mutex_destroy((pthread_mutex_t *)*unaff_retaddr);\n      (**(code **)(&UNK_00054bd3 + unaff_EBX))(*unaff_retaddr);\n    }" (if "if") (parenthesized_expression "((pthread_mutex_t *)*unaff_retaddr != (pthread_mutex_t *)0x0)" (( "(") (binary_expression "(pthread_mutex_t *)*unaff_retaddr != (pthread_mutex_t *)0x0" (cast_expression "(pthread_mutex_t *)*unaff_retaddr" (( "(") (type_descriptor "pthread_mutex_t *" (type_identifier "pthread_mutex_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*unaff_retaddr" (* "*") (identifier "unaff_retaddr"))) (!= "!=") (cast_expression "(pthread_mutex_t *)0x0" (( "(") (type_descriptor "pthread_mutex_t *" (type_identifier "pthread_mutex_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      pthread_mutex_destroy((pthread_mutex_t *)*unaff_retaddr);\n      (**(code **)(&UNK_00054bd3 + unaff_EBX))(*unaff_retaddr);\n    }" ({ "{") (expression_statement "pthread_mutex_destroy((pthread_mutex_t *)*unaff_retaddr);" (call_expression "pthread_mutex_destroy((pthread_mutex_t *)*unaff_retaddr)" (identifier "pthread_mutex_destroy") (argument_list "((pthread_mutex_t *)*unaff_retaddr)" (( "(") (cast_expression "(pthread_mutex_t *)*unaff_retaddr" (( "(") (type_descriptor "pthread_mutex_t *" (type_identifier "pthread_mutex_t") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*unaff_retaddr" (* "*") (identifier "unaff_retaddr"))) () ")"))) (; ";")) (expression_statement "(**(code **)(&UNK_00054bd3 + unaff_EBX))(*unaff_retaddr);" (call_expression "(**(code **)(&UNK_00054bd3 + unaff_EBX))(*unaff_retaddr)" (parenthesized_expression "(**(code **)(&UNK_00054bd3 + unaff_EBX))" (( "(") (pointer_expression "**(code **)(&UNK_00054bd3 + unaff_EBX)" (* "*") (pointer_expression "*(code **)(&UNK_00054bd3 + unaff_EBX)" (* "*") (cast_expression "(code **)(&UNK_00054bd3 + unaff_EBX)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(&UNK_00054bd3 + unaff_EBX)" (( "(") (binary_expression "&UNK_00054bd3 + unaff_EBX" (pointer_expression "&UNK_00054bd3" (& "&") (identifier "UNK_00054bd3")) (+ "+") (identifier "unaff_EBX")) () ")"))))) () ")")) (argument_list "(*unaff_retaddr)" (( "(") (pointer_expression "*unaff_retaddr" (* "*") (identifier "unaff_retaddr")) () ")"))) (; ";")) (} "}"))) (expression_statement "(**(code **)(&UNK_00054bd3 + unaff_EBX))(unaff_retaddr[2]);" (call_expression "(**(code **)(&UNK_00054bd3 + unaff_EBX))(unaff_retaddr[2])" (parenthesized_expression "(**(code **)(&UNK_00054bd3 + unaff_EBX))" (( "(") (pointer_expression "**(code **)(&UNK_00054bd3 + unaff_EBX)" (* "*") (pointer_expression "*(code **)(&UNK_00054bd3 + unaff_EBX)" (* "*") (cast_expression "(code **)(&UNK_00054bd3 + unaff_EBX)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(&UNK_00054bd3 + unaff_EBX)" (( "(") (binary_expression "&UNK_00054bd3 + unaff_EBX" (pointer_expression "&UNK_00054bd3" (& "&") (identifier "UNK_00054bd3")) (+ "+") (identifier "unaff_EBX")) () ")"))))) () ")")) (argument_list "(unaff_retaddr[2])" (( "(") (subscript_expression "unaff_retaddr[2]" (identifier "unaff_retaddr") ([ "[") (number_literal "2") (] "]")) () ")"))) (; ";")) (if_statement "if (unaff_retaddr[5] != 0) {\n      FUN_000564d0(unaff_retaddr[5]);\n    }" (if "if") (parenthesized_expression "(unaff_retaddr[5] != 0)" (( "(") (binary_expression "unaff_retaddr[5] != 0" (subscript_expression "unaff_retaddr[5]" (identifier "unaff_retaddr") ([ "[") (number_literal "5") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_000564d0(unaff_retaddr[5]);\n    }" ({ "{") (expression_statement "FUN_000564d0(unaff_retaddr[5]);" (call_expression "FUN_000564d0(unaff_retaddr[5])" (identifier "FUN_000564d0") (argument_list "(unaff_retaddr[5])" (( "(") (subscript_expression "unaff_retaddr[5]" (identifier "unaff_retaddr") ([ "[") (number_literal "5") (] "]")) () ")"))) (; ";")) (} "}"))) (expression_statement "*unaff_retaddr = 0;" (assignment_expression "*unaff_retaddr = 0" (pointer_expression "*unaff_retaddr" (* "*") (identifier "unaff_retaddr")) (= "=") (number_literal "0")) (; ";")) (expression_statement "unaff_retaddr[0xe] = 0;" (assignment_expression "unaff_retaddr[0xe] = 0" (subscript_expression "unaff_retaddr[0xe]" (identifier "unaff_retaddr") ([ "[") (number_literal "0xe") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar5 = (undefined4 *)((uint)(unaff_retaddr + 1) & 0xfffffffc);" (assignment_expression "puVar5 = (undefined4 *)((uint)(unaff_retaddr + 1) & 0xfffffffc)" (identifier "puVar5") (= "=") (cast_expression "(undefined4 *)((uint)(unaff_retaddr + 1) & 0xfffffffc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((uint)(unaff_retaddr + 1) & 0xfffffffc)" (( "(") (binary_expression "(uint)(unaff_retaddr + 1) & 0xfffffffc" (call_expression "(uint)(unaff_retaddr + 1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(unaff_retaddr + 1)" (( "(") (binary_expression "unaff_retaddr + 1" (identifier "unaff_retaddr") (+ "+") (number_literal "1")) () ")"))) (& "&") (number_literal "0xfffffffc")) () ")")))) (; ";")) (for_statement "for (uVar4 = (uint)((int)unaff_retaddr + (0x3c - (int)((uint)(unaff_retaddr + 1) & 0xfffffffc)))\n                 >> 2; uVar4 != 0; uVar4 = uVar4 - 1) {\n      *puVar5 = 0;\n      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n    }" (for "for") (( "(") (assignment_expression "uVar4 = (uint)((int)unaff_retaddr + (0x3c - (int)((uint)(unaff_retaddr + 1) & 0xfffffffc)))\n                 >> 2" (identifier "uVar4") (= "=") (binary_expression "(uint)((int)unaff_retaddr + (0x3c - (int)((uint)(unaff_retaddr + 1) & 0xfffffffc)))\n                 >> 2" (call_expression "(uint)((int)unaff_retaddr + (0x3c - (int)((uint)(unaff_retaddr + 1) & 0xfffffffc)))" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((int)unaff_retaddr + (0x3c - (int)((uint)(unaff_retaddr + 1) & 0xfffffffc)))" (( "(") (binary_expression "(int)unaff_retaddr + (0x3c - (int)((uint)(unaff_retaddr + 1) & 0xfffffffc))" (cast_expression "(int)unaff_retaddr" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "unaff_retaddr")) (+ "+") (parenthesized_expression "(0x3c - (int)((uint)(unaff_retaddr + 1) & 0xfffffffc))" (( "(") (binary_expression "0x3c - (int)((uint)(unaff_retaddr + 1) & 0xfffffffc)" (number_literal "0x3c") (- "-") (cast_expression "(int)((uint)(unaff_retaddr + 1) & 0xfffffffc)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((uint)(unaff_retaddr + 1) & 0xfffffffc)" (( "(") (binary_expression "(uint)(unaff_retaddr + 1) & 0xfffffffc" (call_expression "(uint)(unaff_retaddr + 1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(unaff_retaddr + 1)" (( "(") (binary_expression "unaff_retaddr + 1" (identifier "unaff_retaddr") (+ "+") (number_literal "1")) () ")"))) (& "&") (number_literal "0xfffffffc")) () ")")))) () ")"))) () ")"))) (>> ">>") (number_literal "2"))) (; ";") (binary_expression "uVar4 != 0" (identifier "uVar4") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "uVar4 = uVar4 - 1" (identifier "uVar4") (= "=") (binary_expression "uVar4 - 1" (identifier "uVar4") (- "-") (number_literal "1"))) () ")") (compound_statement "{\n      *puVar5 = 0;\n      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n    }" ({ "{") (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar5 = puVar5 + (uint)bVar6 * -2 + 1;" (assignment_expression "puVar5 = puVar5 + (uint)bVar6 * -2 + 1" (identifier "puVar5") (= "=") (binary_expression "puVar5 + (uint)bVar6 * -2 + 1" (binary_expression "puVar5 + (uint)bVar6 * -2" (identifier "puVar5") (+ "+") (binary_expression "(uint)bVar6 * -2" (cast_expression "(uint)bVar6" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar6")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "(**(code **)(&UNK_00054bd3 + unaff_EBX))(uVar1);" (call_expression "(**(code **)(&UNK_00054bd3 + unaff_EBX))(uVar1)" (parenthesized_expression "(**(code **)(&UNK_00054bd3 + unaff_EBX))" (( "(") (pointer_expression "**(code **)(&UNK_00054bd3 + unaff_EBX)" (* "*") (pointer_expression "*(code **)(&UNK_00054bd3 + unaff_EBX)" (* "*") (cast_expression "(code **)(&UNK_00054bd3 + unaff_EBX)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(&UNK_00054bd3 + unaff_EBX)" (( "(") (binary_expression "&UNK_00054bd3 + unaff_EBX" (pointer_expression "&UNK_00054bd3" (& "&") (identifier "UNK_00054bd3")) (+ "+") (identifier "unaff_EBX")) () ")"))))) () ")")) (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")"))) (; ";")) (} "}")))) (if_statement "if (local_24 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00082f60();\n  }" (if "if") (parenthesized_expression "(local_24 != *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_24 != *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_24") (!= "!=") (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                    \n    FUN_00082f60();\n  }" ({ "{") (expression_statement "FUN_00082f60();" (call_expression "FUN_00082f60()" (identifier "FUN_00082f60") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

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

type_1 function_1(void *arg)

{
  int var_12;
  void *pvVar2;
  int var_4;
  int *piVar4;
  type_1 var_10;
  type_2 *var_11;
  int var_1;
  type_3 bVar7;
  char service [12];
  
  bVar7 = 0;
  var_12 = *(int *)(var_1 + 0x14);
  pvVar2 = *(void **)((int)arg + 0x38);
  var_2(service,0xc,"%d",*(type_2 *)((int)arg + 0xc));
  var_4 = var_3(*(char **)((int)arg + 8),service,(type_4 *)((int)arg + 0x18),
                              (type_5 **)((int)arg + 0x14));
  if (var_4 != 0) {
    piVar4 = var_5();
    if (*piVar4 != 0) {
      var_4 = *piVar4;
    }
    *(int *)((int)arg + 0x10) = var_4;
  }
                    /* WARNING: Load size is inaccurate */
  var_6(*arg);
  if (*(int *)((int)arg + 4) == 0) {
    *(type_2 *)((int)arg + 4) = 1;
                    /* WARNING: Load size is inaccurate */
    var_7(*arg);
  }
  else {
                    /* WARNING: Load size is inaccurate */
    var_7(*arg);
                    /* WARNING: Load size is inaccurate */
    if (*arg != (type_6 *)0x0) {
      var_8(*arg);
                    /* WARNING: Load size is inaccurate */
      (*Curl_cfree)(*arg);
    }
    (*Curl_cfree)(*(void **)((int)arg + 8));
    if (*(type_5 **)((int)arg + 0x14) != (type_5 *)0x0) {
      var_9(*(type_5 **)((int)arg + 0x14));
    }
    *(type_2 *)arg = 0;
    var_11 = (type_2 *)((int)arg + 4U & 0xfffffffc);
    *(type_2 *)((int)arg + 0x38) = 0;
    var_10 = (type_1)((int)arg + (0x3c - (int)var_11)) >> 2;
    for (; var_10 != 0; var_10 = var_10 - 1) {
      *var_11 = 0;
      var_11 = var_11 + (type_1)bVar7 * -2 + 1;
    }
    (*Curl_cfree)(pvVar2);
  }
  if (var_12 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_13();
  }
  return 0;
}


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

undefined4 MASKED(void)

{
  undefined4 uVar1;
  int iVar2;
  int *piVar3;
  uint uVar4;
  int unaff_EBX;
  undefined4 *puVar5;
  int in_GS_OFFSET;
  byte bVar6;
  undefined4 *unaff_retaddr;
  undefined1 local_30 [12];
  int local_24;
  undefined4 uStack_14;
  
  bVar6 = 0;
  uStack_14 = 0x62499;
  entry();
  local_24 = *(int *)(in_GS_OFFSET + 0x14);
  uVar1 = unaff_retaddr[0xe];
  curl_msnprintf(local_30,0xc,unaff_EBX + 0x21cc4,unaff_retaddr[3]);
  iVar2 = FUN_00056520(unaff_retaddr[2],local_30,unaff_retaddr + 6,unaff_retaddr + 5);
  if (iVar2 != 0) {
    piVar3 = __errno_location();
    if (*piVar3 != 0) {
      iVar2 = *piVar3;
    }
    unaff_retaddr[4] = iVar2;
  }
  pthread_mutex_lock((pthread_mutex_t *)*unaff_retaddr);
  if (unaff_retaddr[1] == 0) {
    unaff_retaddr[1] = 1;
    pthread_mutex_unlock((pthread_mutex_t *)*unaff_retaddr);
  }
  else {
    pthread_mutex_unlock((pthread_mutex_t *)*unaff_retaddr);
    if ((pthread_mutex_t *)*unaff_retaddr != (pthread_mutex_t *)0x0) {
      pthread_mutex_destroy((pthread_mutex_t *)*unaff_retaddr);
      (**(code **)(&UNK_00054bd3 + unaff_EBX))(*unaff_retaddr);
    }
    (**(code **)(&UNK_00054bd3 + unaff_EBX))(unaff_retaddr[2]);
    if (unaff_retaddr[5] != 0) {
      FUN_000564d0(unaff_retaddr[5]);
    }
    *unaff_retaddr = 0;
    unaff_retaddr[0xe] = 0;
    puVar5 = (undefined4 *)((uint)(unaff_retaddr + 1) & 0xfffffffc);
    for (uVar4 = (uint)((int)unaff_retaddr + (0x3c - (int)((uint)(unaff_retaddr + 1) & 0xfffffffc)))
                 >> 2; uVar4 != 0; uVar4 = uVar4 - 1) {
      *puVar5 = 0;
      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;
    }
    (**(code **)(&UNK_00054bd3 + unaff_EBX))(uVar1);
  }
  if (local_24 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_00082f60();
  }
  return 0;
}

