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

CURLcode __regparm3
output_auth_headers(connectdata *conn,auth *authstatus,char *request,char *path,_Bool proxy)

{
  Curl_easy *data;
  ulong uVar1;
  CURLcode CVar2;
  char *pcVar3;
  char *pcVar4;
  size_t insize;
  char *pcVar5;
  negotiatedata *pnVar6;
  int in_GS_OFFSET;
  dynamically_allocated_data *local_40;
  Curl_easy *local_34;
  size_t size;
  char *authorization;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x2165d;
  data = conn->data;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  pnVar6 = &(data->state).negotiate;
  if (proxy) {
    pnVar6 = &(data->state).proxyneg;
  }
  uVar1 = authstatus->picked;
  pnVar6->state = CURLDIGESTALGO_MD5;
  if (uVar1 != 4) {
    if (uVar1 == 8) {
      CVar2 = Curl_output_ntlm(conn,proxy);
      if (CVar2 != CURLE_OK) goto LAB_000216e6;
      pcVar3 = "NTLM";
      goto LAB_0002177e;
    }
    if (uVar1 == 0x20) {
      CVar2 = Curl_output_ntlm_wb(conn,proxy);
      if (CVar2 != CURLE_OK) goto LAB_000216e6;
      pcVar3 = "NTLM_WB";
      goto LAB_0002177e;
    }
    if (uVar1 == 2) {
      CVar2 = Curl_output_digest(conn,proxy,(uchar *)request,(uchar *)path);
      if (CVar2 != CURLE_OK) goto LAB_000216e6;
      pcVar3 = "Digest";
      goto LAB_0002177e;
    }
    if (uVar1 != 1) {
      if (uVar1 != 0x40) {
LAB_000216e0:
        authstatus->multipass = false;
        CVar2 = CURLE_OK;
        goto LAB_000216e6;
      }
      if ((proxy) || (conn->oauth_bearer == (char *)0x0)) {
LAB_000216dc:
        authstatus->done = true;
        goto LAB_000216e0;
      }
LAB_000217ef:
      pcVar3 = Curl_checkheaders(conn,"Authorization:");
      if (pcVar3 != (char *)0x0) goto LAB_000216dc;
      goto LAB_0002181a;
    }
    if (proxy) {
      if (((conn->bits).proxy_user_passwd == false) ||
         (pcVar3 = Curl_checkProxyheaders(conn,"Proxy-authorization"), pcVar3 != (char *)0x0))
      goto LAB_000216dc;
      local_34 = conn->data;
      pcVar3 = (conn->http_proxy).user;
      local_40 = &conn->allocptr;
      pcVar4 = (conn->http_proxy).passwd;
    }
    else {
      if ((conn->bits).user_passwd == false) goto LAB_000216dc;
      pcVar3 = Curl_checkheaders(conn,"Authorization");
      if (pcVar3 != (char *)0x0) {
        authstatus->done = true;
        if ((authstatus->picked == 0x40) && (conn->oauth_bearer != (char *)0x0)) goto LAB_000217ef;
        goto LAB_000216e0;
      }
      local_34 = conn->data;
      pcVar3 = conn->user;
      local_40 = (dynamically_allocated_data *)&(conn->allocptr).userpwd;
      pcVar4 = conn->passwd;
    }
    authorization = (char *)0x0;
    size = 0;
    pcVar4 = curl_maprintf("%s:%s",pcVar3,pcVar4);
    if (pcVar4 != (char *)0x0) {
      insize = strlen(pcVar4);
      CVar2 = Curl_base64_encode(local_34,pcVar4,insize,&authorization,&size);
      if (CVar2 != CURLE_OK) {
        (*Curl_cfree)(pcVar4);
        goto LAB_000216e6;
      }
      if (authorization == (char *)0x0) {
        (*Curl_cfree)(pcVar4);
        CVar2 = CURLE_REMOTE_ACCESS_DENIED;
        goto LAB_000216e6;
      }
      (*Curl_cfree)(local_40->proxyuserpwd);
      pcVar3 = "Proxy-";
      if (!proxy) {
        pcVar3 = "";
      }
      pcVar3 = curl_maprintf("%sAuthorization: Basic %s\r\n",pcVar3,authorization);
      local_40->proxyuserpwd = pcVar3;
      (*Curl_cfree)(authorization);
      if (local_40->proxyuserpwd != (char *)0x0) {
        pcVar3 = "Basic";
        (*Curl_cfree)(pcVar4);
        authstatus->done = true;
        goto LAB_0002177e;
      }
      (*Curl_cfree)(pcVar4);
    }
LAB_00021b67:
    CVar2 = CURLE_OUT_OF_MEMORY;
    goto LAB_000216e6;
  }
  if ((pnVar6->context == (gss_ctx_id_t)0x0) || ((pnVar6->status & 0xffff0000) != 0))
  goto LAB_000216e0;
  CVar2 = Curl_output_negotiate(conn,proxy);
  if (CVar2 != CURLE_OK) goto LAB_000216e6;
  authstatus->done = true;
  pnVar6->state = CURLDIGESTALGO_SHA256;
  pcVar3 = "Negotiate";
LAB_0002177e:
  if (authstatus->picked == 0x40) {
    if ((!proxy) && (conn->oauth_bearer != (char *)0x0)) {
      pcVar4 = Curl_checkheaders(conn,"Authorization:");
      if (pcVar4 != (char *)0x0) {
        authstatus->done = true;
        goto LAB_00021878;
      }
LAB_0002181a:
      (*Curl_cfree)((conn->allocptr).userpwd);
      pcVar3 = curl_maprintf("Authorization: Bearer %s\r\n",conn->oauth_bearer);
      (conn->allocptr).userpwd = pcVar3;
      if (pcVar3 == (char *)0x0) goto LAB_00021b67;
      pcVar3 = "Bearer";
    }
    authstatus->done = true;
    if (proxy) goto LAB_00021790;
LAB_00021878:
    pcVar4 = conn->user;
    if (pcVar4 == (char *)0x0) {
      pcVar4 = "";
    }
    pcVar5 = "Server";
  }
  else {
    if (!proxy) goto LAB_00021878;
LAB_00021790:
    pcVar4 = (conn->http_proxy).user;
    if (pcVar4 == (char *)0x0) {
      pcVar4 = "";
    }
    pcVar5 = "Proxy";
  }
  Curl_infof(data,"%s auth using %s with user \'%s\'\n",pcVar5,pcVar3,pcVar4);
  authstatus->multipass = (_Bool)(authstatus->done ^ 1);
  CVar2 = CURLE_OK;
LAB_000216e6:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return CVar2;
}



int __regparm3 FUN_00021650(undefined4 param_1,int param_2,undefined4 param_3,char param_4)

{
  byte *pbVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  char *__s;
  size_t sVar5;
  int iVar6;
  int unaff_EBX;
  undefined4 *puVar7;
  int *extraout_EDI;
  int in_GS_OFFSET;
  undefined4 unaff_retaddr;
  int *local_44;
  int local_38;
  undefined4 local_2c;
  int local_28;
  int local_24;
  undefined4 uStack_14;
  
  uStack_14 = 0x2165d;
  entry();
  iVar2 = *extraout_EDI;
  local_24 = *(int *)(in_GS_OFFSET + 0x14);
  puVar7 = (undefined4 *)(iVar2 + 0xd18);
  if (param_4 != '\0') {
    puVar7 = (undefined4 *)(iVar2 + 0xd30);
  }
  iVar3 = *(int *)(param_2 + 4);
  *puVar7 = 0;
  if (iVar3 != 4) {
    if (iVar3 == 8) {
      iVar3 = FUN_0005da00(extraout_EDI,param_4);
      if (iVar3 != 0) goto LAB_000216e6;
      iVar3 = unaff_EBX + 0x5c816;
      goto LAB_0002177e;
    }
    if (iVar3 == 0x20) {
      iVar3 = FUN_0005e5c0(extraout_EDI,param_4);
      if (iVar3 != 0) goto LAB_000216e6;
      iVar3 = unaff_EBX + 0x5c776;
      goto LAB_0002177e;
    }
    if (iVar3 == 2) {
      iVar3 = FUN_000476e0(extraout_EDI,param_4,param_3,unaff_retaddr);
      if (iVar3 != 0) goto LAB_000216e6;
      iVar3 = unaff_EBX + 0x5c77e;
      goto LAB_0002177e;
    }
    if (iVar3 != 1) {
      if (iVar3 != 0x40) {
LAB_000216e0:
        *(undefined1 *)(param_2 + 0xd) = 0;
        iVar3 = 0;
        goto LAB_000216e6;
      }
      if ((param_4 != '\0') || (extraout_EDI[0x5d] == 0)) {
LAB_000216dc:
        *(undefined1 *)(param_2 + 0xc) = 1;
        goto LAB_000216e0;
      }
LAB_000217ef:
      iVar3 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2);
      if (iVar3 != 0) goto LAB_000216dc;
      goto LAB_0002181a;
    }
    if (param_4 == '\0') {
      if ((char)extraout_EDI[0x94] == '\0') goto LAB_000216dc;
      iVar3 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7ad);
      if (iVar3 != 0) {
        *(undefined1 *)(param_2 + 0xc) = 1;
        if ((*(int *)(param_2 + 4) == 0x40) && (extraout_EDI[0x5d] != 0)) goto LAB_000217ef;
        goto LAB_000216e0;
      }
      local_38 = *extraout_EDI;
      iVar3 = extraout_EDI[0x5a];
      local_44 = extraout_EDI + 0xaa;
      iVar4 = extraout_EDI[0x5b];
    }
    else {
      if ((*(char *)((int)extraout_EDI + 0x251) == '\0') ||
         (iVar3 = FUN_000215c0(extraout_EDI,unaff_EBX + 0x5c799), iVar3 != 0)) goto LAB_000216dc;
      local_38 = *extraout_EDI;
      iVar3 = extraout_EDI[0x3b];
      local_44 = extraout_EDI + 0xa7;
      iVar4 = extraout_EDI[0x3c];
    }
    local_28 = 0;
    local_2c = 0;
    __s = (char *)curl_maprintf(unaff_EBX + 0x661ba,iVar3,iVar4);
    if (__s != (char *)0x0) {
      sVar5 = strlen(__s);
      iVar3 = FUN_0001b180(local_38,__s,sVar5,&local_28,&local_2c);
      if (iVar3 != 0) {
        (**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(__s);
        goto LAB_000216e6;
      }
      pbVar1 = BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e;
      if (local_28 == 0) {
        (**(code **)pbVar1)(__s);
        iVar3 = 9;
        goto LAB_000216e6;
      }
      (**(code **)pbVar1)(*local_44);
      iVar3 = unaff_EBX + 0x5c75f;
      if (param_4 == '\0') {
        iVar3 = unaff_EBX + 0x66713;
      }
      iVar3 = curl_maprintf(unaff_EBX + 0x5c7bb,iVar3,local_28);
      *local_44 = iVar3;
      (**(code **)pbVar1)(local_28);
      if (*local_44 != 0) {
        iVar3 = unaff_EBX + 0x5c770;
        (**(code **)pbVar1)(__s);
        *(undefined1 *)(param_2 + 0xc) = 1;
        goto LAB_0002177e;
      }
      (**(code **)pbVar1)(__s);
    }
LAB_00021b67:
    iVar3 = 0x1b;
    goto LAB_000216e6;
  }
  if ((puVar7[2] == 0) || ((puVar7[1] & 0xffff0000) != 0)) goto LAB_000216e0;
  iVar3 = FUN_00047be0(extraout_EDI,param_4);
  if (iVar3 != 0) goto LAB_000216e6;
  *(undefined1 *)(param_2 + 0xc) = 1;
  *puVar7 = 2;
  iVar3 = unaff_EBX + 0x5c766;
LAB_0002177e:
  if (*(int *)(param_2 + 4) == 0x40) {
    if ((param_4 == '\0') && (extraout_EDI[0x5d] != 0)) {
      iVar4 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2);
      if (iVar4 != 0) {
        *(undefined1 *)(param_2 + 0xc) = 1;
        goto LAB_00021878;
      }
LAB_0002181a:
      (**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(extraout_EDI[0xaa]);
      iVar3 = curl_maprintf(unaff_EBX + 0x5c7d7,extraout_EDI[0x5d]);
      extraout_EDI[0xaa] = iVar3;
      if (iVar3 == 0) goto LAB_00021b67;
      iVar3 = unaff_EBX + 0x5c792;
    }
    *(undefined1 *)(param_2 + 0xc) = 1;
    if (param_4 != '\0') goto LAB_00021790;
LAB_00021878:
    iVar4 = extraout_EDI[0x5a];
    if (iVar4 == 0) {
      iVar4 = unaff_EBX + 0x66713;
    }
    iVar6 = unaff_EBX + 0x5c78b;
  }
  else {
    if (param_4 == '\0') goto LAB_00021878;
LAB_00021790:
    iVar4 = extraout_EDI[0x3b];
    if (iVar4 == 0) {
      iVar4 = unaff_EBX + 0x66713;
    }
    iVar6 = unaff_EBX + 0x5c785;
  }
  FUN_00027140(iVar2,unaff_EBX + 0x5c20f,iVar6,iVar3,iVar4);
  *(byte *)(param_2 + 0xd) = *(byte *)(param_2 + 0xc) ^ 1;
  iVar3 = 0;
LAB_000216e6:
  if (local_24 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_0007c1a0();
  }
  return iVar3;
}


PUSH EBP
MOV EBP,EDX
PUSH EDI
MOV EDI,EAX
PUSH ESI
PUSH EBX
CALL 0x00019ed0
ADD EBX,0x8f183
SUB ESP,0x3c
MOV EAX,dword ptr [ESP + 0x50]
MOV EDX,dword ptr [ESP + 0x54]
MOV dword ptr [ESP + 0xc],ECX
MOV ECX,dword ptr [EDI]
MOV dword ptr [ESP + 0x10],EAX
LEA ESI,[ECX + 0xd18]
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x2c],EAX
XOR EAX,EAX
LEA EAX,[ECX + 0xd30]
TEST DL,DL
CMOVNZ ESI,EAX
MOV EAX,dword ptr [EBP + 0x4]
MOV dword ptr [ESI],0x0
CMP EAX,0x4
JZ 0x00021700
CMP EAX,0x8
JZ 0x00021750
CMP EAX,0x20
JZ 0x00021898
CMP EAX,0x2
JZ 0x00021918
CMP EAX,0x1
JNZ 0x000217d0
TEST DL,DL
JZ 0x00021970
CMP byte ptr [EDI + 0x251],0x0
JNZ 0x000219d0
MOV byte ptr [EBP + 0xc],0x1
MOV byte ptr [EBP + 0xd],0x0
XOR EAX,EAX
MOV EDI,dword ptr [ESP + 0x2c]
XOR EDI,dword ptr GS:[0x14]
JNZ 0x00021ba0
ADD ESP,0x3c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESI + 0x8]
TEST EAX,EAX
JZ 0x000216e0
TEST dword ptr [ESI + 0x4],0xffff0000
JNZ 0x000216e0
MOV dword ptr [ESP + 0x10],ECX
MOVZX EAX,DL
SUB ESP,0x8
MOV dword ptr [ESP + 0x14],EDX
PUSH EAX
PUSH EDI
CALL 0x00047be0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x000216e6
MOV EDX,dword ptr [ESP + 0xc]
MOV ECX,dword ptr [ESP + 0x10]
MOV byte ptr [EBP + 0xc],0x1
MOV dword ptr [ESI],0x2
LEA ESI,[EBX + 0xfffcd5e3]
JMP 0x0002177e
MOV dword ptr [ESP + 0x10],ECX
MOVZX EAX,DL
SUB ESP,0x8
MOV dword ptr [ESP + 0x14],EDX
PUSH EAX
PUSH EDI
CALL 0x0005da00
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x000216e6
MOV EDX,dword ptr [ESP + 0xc]
MOV ECX,dword ptr [ESP + 0x10]
LEA ESI,[EBX + 0xfffcd693]
CMP dword ptr [EBP + 0x4],0x40
JZ 0x000218d0
TEST DL,DL
JZ 0x00021878
MOV EAX,dword ptr [EDI + 0xec]
TEST EAX,EAX
JZ 0x00021950
LEA EDX,[EBX + 0xfffcd602]
SUB ESP,0xc
PUSH EAX
LEA EAX,[EBX + 0xfffcd08c]
PUSH ESI
PUSH EDX
PUSH EAX
PUSH ECX
CALL 0x00027140
MOVZX EAX,byte ptr [EBP + 0xc]
ADD ESP,0x20
XOR EAX,0x1
MOV byte ptr [EBP + 0xd],AL
XOR EAX,EAX
JMP 0x000216e6
CMP EAX,0x40
JNZ 0x000216e0
TEST DL,DL
JNZ 0x000216dc
MOV EAX,dword ptr [EDI + 0x174]
TEST EAX,EAX
JZ 0x000216dc
MOV dword ptr [ESP + 0x10],EDX
LEA EAX,[EBX + 0xfffcd66f]
SUB ESP,0x8
MOV dword ptr [ESP + 0x14],ECX
PUSH EAX
PUSH EDI
CALL 0x00039090
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0xc]
MOV EDX,dword ptr [ESP + 0x10]
TEST EAX,EAX
JNZ 0x000216dc
LEA EAX,[EBX + 0x88c]
MOV dword ptr [ESP + 0x10],EDX
SUB ESP,0xc
MOV dword ptr [ESP + 0x18],ECX
PUSH dword ptr [EDI + 0x2a8]
CALL dword ptr [EAX]
POP EAX
LEA EAX,[EBX + 0xfffcd654]
POP EDX
PUSH dword ptr [EDI + 0x174]
PUSH EAX
CALL 0x00018d60
ADD ESP,0x10
MOV dword ptr [EDI + 0x2a8],EAX
TEST EAX,EAX
JZ 0x00021b67
MOV ECX,dword ptr [ESP + 0xc]
MOV EDX,dword ptr [ESP + 0x10]
LEA ESI,[EBX + 0xfffcd60f]
MOV byte ptr [EBP + 0xc],0x1
TEST DL,DL
JNZ 0x00021790
LEA ESI,[ESI]
MOV EAX,dword ptr [EDI + 0x168]
TEST EAX,EAX
JZ 0x00021960
LEA EDX,[EBX + 0xfffcd608]
JMP 0x000217a4
MOV dword ptr [ESP + 0x10],ECX
MOVZX EAX,DL
SUB ESP,0x8
MOV dword ptr [ESP + 0x14],EDX
PUSH EAX
PUSH EDI
CALL 0x0005e5c0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x000216e6
LEA ESI,[EBX + 0xfffcd5f3]
MOV EDX,dword ptr [ESP + 0xc]
MOV ECX,dword ptr [ESP + 0x10]
JMP 0x0002177e
TEST DL,DL
JNZ 0x00021866
MOV EAX,dword ptr [EDI + 0x174]
TEST EAX,EAX
JZ 0x00021866
MOV dword ptr [ESP + 0x10],EDX
LEA EAX,[EBX + 0xfffcd66f]
SUB ESP,0x8
MOV dword ptr [ESP + 0x14],ECX
PUSH EAX
PUSH EDI
CALL 0x00039090
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0xc]
MOV EDX,dword ptr [ESP + 0x10]
TEST EAX,EAX
JZ 0x0002181a
MOV byte ptr [EBP + 0xc],0x1
JMP 0x00021878
MOV dword ptr [ESP + 0x14],ECX
MOVZX EAX,DL
PUSH dword ptr [ESP + 0x10]
PUSH dword ptr [ESP + 0x10]
MOV dword ptr [ESP + 0x14],EDX
PUSH EAX
PUSH EDI
CALL 0x000476e0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x000216e6
LEA ESI,[EBX + 0xfffcd5fb]
MOV EDX,dword ptr [ESP + 0xc]
MOV ECX,dword ptr [ESP + 0x14]
JMP 0x0002177e
LEA EAX,[EBX + 0xfffd7590]
JMP 0x0002179e
LEA EAX,[EBX + 0xfffd7590]
JMP 0x00021886
CMP byte ptr [EDI + 0x250],0x0
JZ 0x000216dc
MOV dword ptr [ESP + 0x10],EDX
LEA EAX,[EBX + 0xfffcd62a]
SUB ESP,0x8
MOV dword ptr [ESP + 0x14],ECX
PUSH EAX
PUSH EDI
CALL 0x00039090
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0xc]
MOV EDX,dword ptr [ESP + 0x10]
TEST EAX,EAX
JZ 0x00021b29
CMP dword ptr [EBP + 0x4],0x40
MOV byte ptr [EBP + 0xc],0x1
JNZ 0x000216e0
MOV ESI,dword ptr [EDI + 0x174]
TEST ESI,ESI
JNZ 0x000217ef
JMP 0x000216e0
MOV dword ptr [ESP + 0x10],EDX
LEA EAX,[EBX + 0xfffcd616]
SUB ESP,0x8
MOV dword ptr [ESP + 0x14],ECX
PUSH EAX
PUSH EDI
CALL 0x000215c0
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0xc]
MOV EDX,dword ptr [ESP + 0x10]
TEST EAX,EAX
JNZ 0x000216dc
MOV EAX,dword ptr [EDI]
MOV dword ptr [ESP + 0x24],0x0
MOV dword ptr [ESP + 0x28],0x0
MOV ESI,dword ptr [EDI + 0xec]
MOV dword ptr [ESP + 0x18],EAX
LEA EAX,[EDI + 0x29c]
MOV dword ptr [ESP + 0xc],EAX
MOV EAX,dword ptr [EDI + 0xf0]
MOV dword ptr [ESP + 0x14],EDX
SUB ESP,0x4
MOV dword ptr [ESP + 0x14],ECX
PUSH EAX
LEA EAX,[EBX + 0xfffd7037]
PUSH ESI
PUSH EAX
CALL 0x00018d60
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x10]
MOV EDX,dword ptr [ESP + 0x14]
TEST EAX,EAX
MOV ESI,EAX
JZ 0x00021b67
MOV dword ptr [ESP + 0x1c],EDX
SUB ESP,0xc
MOV dword ptr [ESP + 0x20],ECX
PUSH EAX
CALL 0x00018850
POP ECX
LEA ECX,[ESP + 0x30]
PUSH ECX
LEA ECX,[ESP + 0x38]
PUSH ECX
PUSH EAX
PUSH ESI
PUSH dword ptr [ESP + 0x34]
CALL 0x0001b180
ADD ESP,0x20
TEST EAX,EAX
JNZ 0x00021b71
LEA EAX,[EBX + 0x88c]
MOV EDX,dword ptr [ESP + 0x28]
MOV dword ptr [ESP + 0x10],EAX
MOV EAX,dword ptr [EAX]
TEST EDX,EDX
JZ 0x00021b8d
SUB ESP,0xc
MOV ECX,dword ptr [ESP + 0x18]
PUSH dword ptr [ECX]
CALL EAX
MOV EDX,dword ptr [ESP + 0x2c]
LEA EAX,[EBX + 0xfffcd5dc]
ADD ESP,0xc
MOV dword ptr [ESP + 0x1c],EDX
TEST DL,DL
LEA EDX,[EBX + 0xfffd7590]
CMOVZ EAX,EDX
PUSH dword ptr [ESP + 0x2c]
PUSH EAX
LEA EAX,[EBX + 0xfffcd638]
PUSH EAX
CALL 0x00018d60
MOV ECX,dword ptr [ESP + 0x1c]
MOV dword ptr [ECX],EAX
POP EAX
PUSH dword ptr [ESP + 0x34]
MOV EAX,dword ptr [ESP + 0x20]
CALL dword ptr [EAX]
MOV ECX,dword ptr [ESP + 0x1c]
MOV EDX,dword ptr [ESP + 0x28]
ADD ESP,0x10
MOV EAX,dword ptr [ECX]
MOV ECX,dword ptr [ESP + 0x14]
TEST EAX,EAX
JZ 0x00021b5a
MOV dword ptr [ESP + 0x14],EDX
SUB ESP,0xc
MOV dword ptr [ESP + 0x18],ECX
PUSH ESI
MOV EAX,dword ptr [ESP + 0x20]
LEA ESI,[EBX + 0xfffcd5ed]
CALL dword ptr [EAX]
MOV ECX,dword ptr [ESP + 0x1c]
MOV EDX,dword ptr [ESP + 0x24]
MOV byte ptr [EBP + 0xc],0x1
ADD ESP,0x10
JMP 0x0002177e
MOV EAX,dword ptr [EDI]
MOV dword ptr [ESP + 0x24],0x0
MOV dword ptr [ESP + 0x28],0x0
MOV ESI,dword ptr [EDI + 0x168]
MOV dword ptr [ESP + 0x18],EAX
LEA EAX,[EDI + 0x2a8]
MOV dword ptr [ESP + 0xc],EAX
MOV EAX,dword ptr [EDI + 0x16c]
JMP 0x00021a27
SUB ESP,0xc
PUSH ESI
MOV EAX,dword ptr [ESP + 0x20]
CALL dword ptr [EAX]
ADD ESP,0x10
MOV EAX,0x1b
JMP 0x000216e6
MOV dword ptr [ESP + 0xc],EAX
SUB ESP,0xc
LEA EDX,[EBX + 0x88c]
PUSH ESI
CALL dword ptr [EDX]
MOV EAX,dword ptr [ESP + 0x1c]
ADD ESP,0x10
JMP 0x000216e6
SUB ESP,0xc
PUSH ESI
CALL EAX
MOV EAX,0x9
ADD ESP,0x10
JMP 0x000216e6
CALL 0x0007c1a0
(translation_unit "int __regparm3 FUN_00021650(undefined4 param_1,int param_2,undefined4 param_3,char param_4)\n\n{\n  byte *pbVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  char *__s;\n  size_t sVar5;\n  int iVar6;\n  int unaff_EBX;\n  undefined4 *puVar7;\n  int *extraout_EDI;\n  int in_GS_OFFSET;\n  undefined4 unaff_retaddr;\n  int *local_44;\n  int local_38;\n  undefined4 local_2c;\n  int local_28;\n  int local_24;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2165d;\n  entry();\n  iVar2 = *extraout_EDI;\n  local_24 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar7 = (undefined4 *)(iVar2 + 0xd18);\n  if (param_4 != '\0') {\n    puVar7 = (undefined4 *)(iVar2 + 0xd30);\n  }\n  iVar3 = *(int *)(param_2 + 4);\n  *puVar7 = 0;\n  if (iVar3 != 4) {\n    if (iVar3 == 8) {\n      iVar3 = FUN_0005da00(extraout_EDI,param_4);\n      if (iVar3 != 0) goto LAB_000216e6;\n      iVar3 = unaff_EBX + 0x5c816;\n      goto LAB_0002177e;\n    }\n    if (iVar3 == 0x20) {\n      iVar3 = FUN_0005e5c0(extraout_EDI,param_4);\n      if (iVar3 != 0) goto LAB_000216e6;\n      iVar3 = unaff_EBX + 0x5c776;\n      goto LAB_0002177e;\n    }\n    if (iVar3 == 2) {\n      iVar3 = FUN_000476e0(extraout_EDI,param_4,param_3,unaff_retaddr);\n      if (iVar3 != 0) goto LAB_000216e6;\n      iVar3 = unaff_EBX + 0x5c77e;\n      goto LAB_0002177e;\n    }\n    if (iVar3 != 1) {\n      if (iVar3 != 0x40) {\nLAB_000216e0:\n        *(undefined1 *)(param_2 + 0xd) = 0;\n        iVar3 = 0;\n        goto LAB_000216e6;\n      }\n      if ((param_4 != '\0') || (extraout_EDI[0x5d] == 0)) {\nLAB_000216dc:\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_000216e0;\n      }\nLAB_000217ef:\n      iVar3 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2);\n      if (iVar3 != 0) goto LAB_000216dc;\n      goto LAB_0002181a;\n    }\n    if (param_4 == '\0') {\n      if ((char)extraout_EDI[0x94] == '\0') goto LAB_000216dc;\n      iVar3 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7ad);\n      if (iVar3 != 0) {\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        if ((*(int *)(param_2 + 4) == 0x40) && (extraout_EDI[0x5d] != 0)) goto LAB_000217ef;\n        goto LAB_000216e0;\n      }\n      local_38 = *extraout_EDI;\n      iVar3 = extraout_EDI[0x5a];\n      local_44 = extraout_EDI + 0xaa;\n      iVar4 = extraout_EDI[0x5b];\n    }\n    else {\n      if ((*(char *)((int)extraout_EDI + 0x251) == '\0') ||\n         (iVar3 = FUN_000215c0(extraout_EDI,unaff_EBX + 0x5c799), iVar3 != 0)) goto LAB_000216dc;\n      local_38 = *extraout_EDI;\n      iVar3 = extraout_EDI[0x3b];\n      local_44 = extraout_EDI + 0xa7;\n      iVar4 = extraout_EDI[0x3c];\n    }\n    local_28 = 0;\n    local_2c = 0;\n    __s = (char *)curl_maprintf(unaff_EBX + 0x661ba,iVar3,iVar4);\n    if (__s != (char *)0x0) {\n      sVar5 = strlen(__s);\n      iVar3 = FUN_0001b180(local_38,__s,sVar5,&local_28,&local_2c);\n      if (iVar3 != 0) {\n        (**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(__s);\n        goto LAB_000216e6;\n      }\n      pbVar1 = BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e;\n      if (local_28 == 0) {\n        (**(code **)pbVar1)(__s);\n        iVar3 = 9;\n        goto LAB_000216e6;\n      }\n      (**(code **)pbVar1)(*local_44);\n      iVar3 = unaff_EBX + 0x5c75f;\n      if (param_4 == '\0') {\n        iVar3 = unaff_EBX + 0x66713;\n      }\n      iVar3 = curl_maprintf(unaff_EBX + 0x5c7bb,iVar3,local_28);\n      *local_44 = iVar3;\n      (**(code **)pbVar1)(local_28);\n      if (*local_44 != 0) {\n        iVar3 = unaff_EBX + 0x5c770;\n        (**(code **)pbVar1)(__s);\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_0002177e;\n      }\n      (**(code **)pbVar1)(__s);\n    }\nLAB_00021b67:\n    iVar3 = 0x1b;\n    goto LAB_000216e6;\n  }\n  if ((puVar7[2] == 0) || ((puVar7[1] & 0xffff0000) != 0)) goto LAB_000216e0;\n  iVar3 = FUN_00047be0(extraout_EDI,param_4);\n  if (iVar3 != 0) goto LAB_000216e6;\n  *(undefined1 *)(param_2 + 0xc) = 1;\n  *puVar7 = 2;\n  iVar3 = unaff_EBX + 0x5c766;\nLAB_0002177e:\n  if (*(int *)(param_2 + 4) == 0x40) {\n    if ((param_4 == '\0') && (extraout_EDI[0x5d] != 0)) {\n      iVar4 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2);\n      if (iVar4 != 0) {\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_00021878;\n      }\nLAB_0002181a:\n      (**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(extraout_EDI[0xaa]);\n      iVar3 = curl_maprintf(unaff_EBX + 0x5c7d7,extraout_EDI[0x5d]);\n      extraout_EDI[0xaa] = iVar3;\n      if (iVar3 == 0) goto LAB_00021b67;\n      iVar3 = unaff_EBX + 0x5c792;\n    }\n    *(undefined1 *)(param_2 + 0xc) = 1;\n    if (param_4 != '\0') goto LAB_00021790;\nLAB_00021878:\n    iVar4 = extraout_EDI[0x5a];\n    if (iVar4 == 0) {\n      iVar4 = unaff_EBX + 0x66713;\n    }\n    iVar6 = unaff_EBX + 0x5c78b;\n  }\n  else {\n    if (param_4 == '\0') goto LAB_00021878;\nLAB_00021790:\n    iVar4 = extraout_EDI[0x3b];\n    if (iVar4 == 0) {\n      iVar4 = unaff_EBX + 0x66713;\n    }\n    iVar6 = unaff_EBX + 0x5c785;\n  }\n  FUN_00027140(iVar2,unaff_EBX + 0x5c20f,iVar6,iVar3,iVar4);\n  *(byte *)(param_2 + 0xd) = *(byte *)(param_2 + 0xc) ^ 1;\n  iVar3 = 0;\nLAB_000216e6:\n  if (local_24 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0007c1a0();\n  }\n  return iVar3;\n}\n\n" (function_definition "int __regparm3 FUN_00021650(undefined4 param_1,int param_2,undefined4 param_3,char param_4)\n\n{\n  byte *pbVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  char *__s;\n  size_t sVar5;\n  int iVar6;\n  int unaff_EBX;\n  undefined4 *puVar7;\n  int *extraout_EDI;\n  int in_GS_OFFSET;\n  undefined4 unaff_retaddr;\n  int *local_44;\n  int local_38;\n  undefined4 local_2c;\n  int local_28;\n  int local_24;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2165d;\n  entry();\n  iVar2 = *extraout_EDI;\n  local_24 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar7 = (undefined4 *)(iVar2 + 0xd18);\n  if (param_4 != '\0') {\n    puVar7 = (undefined4 *)(iVar2 + 0xd30);\n  }\n  iVar3 = *(int *)(param_2 + 4);\n  *puVar7 = 0;\n  if (iVar3 != 4) {\n    if (iVar3 == 8) {\n      iVar3 = FUN_0005da00(extraout_EDI,param_4);\n      if (iVar3 != 0) goto LAB_000216e6;\n      iVar3 = unaff_EBX + 0x5c816;\n      goto LAB_0002177e;\n    }\n    if (iVar3 == 0x20) {\n      iVar3 = FUN_0005e5c0(extraout_EDI,param_4);\n      if (iVar3 != 0) goto LAB_000216e6;\n      iVar3 = unaff_EBX + 0x5c776;\n      goto LAB_0002177e;\n    }\n    if (iVar3 == 2) {\n      iVar3 = FUN_000476e0(extraout_EDI,param_4,param_3,unaff_retaddr);\n      if (iVar3 != 0) goto LAB_000216e6;\n      iVar3 = unaff_EBX + 0x5c77e;\n      goto LAB_0002177e;\n    }\n    if (iVar3 != 1) {\n      if (iVar3 != 0x40) {\nLAB_000216e0:\n        *(undefined1 *)(param_2 + 0xd) = 0;\n        iVar3 = 0;\n        goto LAB_000216e6;\n      }\n      if ((param_4 != '\0') || (extraout_EDI[0x5d] == 0)) {\nLAB_000216dc:\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_000216e0;\n      }\nLAB_000217ef:\n      iVar3 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2);\n      if (iVar3 != 0) goto LAB_000216dc;\n      goto LAB_0002181a;\n    }\n    if (param_4 == '\0') {\n      if ((char)extraout_EDI[0x94] == '\0') goto LAB_000216dc;\n      iVar3 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7ad);\n      if (iVar3 != 0) {\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        if ((*(int *)(param_2 + 4) == 0x40) && (extraout_EDI[0x5d] != 0)) goto LAB_000217ef;\n        goto LAB_000216e0;\n      }\n      local_38 = *extraout_EDI;\n      iVar3 = extraout_EDI[0x5a];\n      local_44 = extraout_EDI + 0xaa;\n      iVar4 = extraout_EDI[0x5b];\n    }\n    else {\n      if ((*(char *)((int)extraout_EDI + 0x251) == '\0') ||\n         (iVar3 = FUN_000215c0(extraout_EDI,unaff_EBX + 0x5c799), iVar3 != 0)) goto LAB_000216dc;\n      local_38 = *extraout_EDI;\n      iVar3 = extraout_EDI[0x3b];\n      local_44 = extraout_EDI + 0xa7;\n      iVar4 = extraout_EDI[0x3c];\n    }\n    local_28 = 0;\n    local_2c = 0;\n    __s = (char *)curl_maprintf(unaff_EBX + 0x661ba,iVar3,iVar4);\n    if (__s != (char *)0x0) {\n      sVar5 = strlen(__s);\n      iVar3 = FUN_0001b180(local_38,__s,sVar5,&local_28,&local_2c);\n      if (iVar3 != 0) {\n        (**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(__s);\n        goto LAB_000216e6;\n      }\n      pbVar1 = BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e;\n      if (local_28 == 0) {\n        (**(code **)pbVar1)(__s);\n        iVar3 = 9;\n        goto LAB_000216e6;\n      }\n      (**(code **)pbVar1)(*local_44);\n      iVar3 = unaff_EBX + 0x5c75f;\n      if (param_4 == '\0') {\n        iVar3 = unaff_EBX + 0x66713;\n      }\n      iVar3 = curl_maprintf(unaff_EBX + 0x5c7bb,iVar3,local_28);\n      *local_44 = iVar3;\n      (**(code **)pbVar1)(local_28);\n      if (*local_44 != 0) {\n        iVar3 = unaff_EBX + 0x5c770;\n        (**(code **)pbVar1)(__s);\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_0002177e;\n      }\n      (**(code **)pbVar1)(__s);\n    }\nLAB_00021b67:\n    iVar3 = 0x1b;\n    goto LAB_000216e6;\n  }\n  if ((puVar7[2] == 0) || ((puVar7[1] & 0xffff0000) != 0)) goto LAB_000216e0;\n  iVar3 = FUN_00047be0(extraout_EDI,param_4);\n  if (iVar3 != 0) goto LAB_000216e6;\n  *(undefined1 *)(param_2 + 0xc) = 1;\n  *puVar7 = 2;\n  iVar3 = unaff_EBX + 0x5c766;\nLAB_0002177e:\n  if (*(int *)(param_2 + 4) == 0x40) {\n    if ((param_4 == '\0') && (extraout_EDI[0x5d] != 0)) {\n      iVar4 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2);\n      if (iVar4 != 0) {\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_00021878;\n      }\nLAB_0002181a:\n      (**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(extraout_EDI[0xaa]);\n      iVar3 = curl_maprintf(unaff_EBX + 0x5c7d7,extraout_EDI[0x5d]);\n      extraout_EDI[0xaa] = iVar3;\n      if (iVar3 == 0) goto LAB_00021b67;\n      iVar3 = unaff_EBX + 0x5c792;\n    }\n    *(undefined1 *)(param_2 + 0xc) = 1;\n    if (param_4 != '\0') goto LAB_00021790;\nLAB_00021878:\n    iVar4 = extraout_EDI[0x5a];\n    if (iVar4 == 0) {\n      iVar4 = unaff_EBX + 0x66713;\n    }\n    iVar6 = unaff_EBX + 0x5c78b;\n  }\n  else {\n    if (param_4 == '\0') goto LAB_00021878;\nLAB_00021790:\n    iVar4 = extraout_EDI[0x3b];\n    if (iVar4 == 0) {\n      iVar4 = unaff_EBX + 0x66713;\n    }\n    iVar6 = unaff_EBX + 0x5c785;\n  }\n  FUN_00027140(iVar2,unaff_EBX + 0x5c20f,iVar6,iVar3,iVar4);\n  *(byte *)(param_2 + 0xd) = *(byte *)(param_2 + 0xc) ^ 1;\n  iVar3 = 0;\nLAB_000216e6:\n  if (local_24 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0007c1a0();\n  }\n  return iVar3;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00021650(undefined4 param_1,int param_2,undefined4 param_3,char param_4)" identifier (parameter_list "(undefined4 param_1,int param_2,undefined4 param_3,char param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "char param_4" primitive_type identifier) ))) (compound_statement "{\n  byte *pbVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  char *__s;\n  size_t sVar5;\n  int iVar6;\n  int unaff_EBX;\n  undefined4 *puVar7;\n  int *extraout_EDI;\n  int in_GS_OFFSET;\n  undefined4 unaff_retaddr;\n  int *local_44;\n  int local_38;\n  undefined4 local_2c;\n  int local_28;\n  int local_24;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2165d;\n  entry();\n  iVar2 = *extraout_EDI;\n  local_24 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar7 = (undefined4 *)(iVar2 + 0xd18);\n  if (param_4 != '\0') {\n    puVar7 = (undefined4 *)(iVar2 + 0xd30);\n  }\n  iVar3 = *(int *)(param_2 + 4);\n  *puVar7 = 0;\n  if (iVar3 != 4) {\n    if (iVar3 == 8) {\n      iVar3 = FUN_0005da00(extraout_EDI,param_4);\n      if (iVar3 != 0) goto LAB_000216e6;\n      iVar3 = unaff_EBX + 0x5c816;\n      goto LAB_0002177e;\n    }\n    if (iVar3 == 0x20) {\n      iVar3 = FUN_0005e5c0(extraout_EDI,param_4);\n      if (iVar3 != 0) goto LAB_000216e6;\n      iVar3 = unaff_EBX + 0x5c776;\n      goto LAB_0002177e;\n    }\n    if (iVar3 == 2) {\n      iVar3 = FUN_000476e0(extraout_EDI,param_4,param_3,unaff_retaddr);\n      if (iVar3 != 0) goto LAB_000216e6;\n      iVar3 = unaff_EBX + 0x5c77e;\n      goto LAB_0002177e;\n    }\n    if (iVar3 != 1) {\n      if (iVar3 != 0x40) {\nLAB_000216e0:\n        *(undefined1 *)(param_2 + 0xd) = 0;\n        iVar3 = 0;\n        goto LAB_000216e6;\n      }\n      if ((param_4 != '\0') || (extraout_EDI[0x5d] == 0)) {\nLAB_000216dc:\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_000216e0;\n      }\nLAB_000217ef:\n      iVar3 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2);\n      if (iVar3 != 0) goto LAB_000216dc;\n      goto LAB_0002181a;\n    }\n    if (param_4 == '\0') {\n      if ((char)extraout_EDI[0x94] == '\0') goto LAB_000216dc;\n      iVar3 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7ad);\n      if (iVar3 != 0) {\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        if ((*(int *)(param_2 + 4) == 0x40) && (extraout_EDI[0x5d] != 0)) goto LAB_000217ef;\n        goto LAB_000216e0;\n      }\n      local_38 = *extraout_EDI;\n      iVar3 = extraout_EDI[0x5a];\n      local_44 = extraout_EDI + 0xaa;\n      iVar4 = extraout_EDI[0x5b];\n    }\n    else {\n      if ((*(char *)((int)extraout_EDI + 0x251) == '\0') ||\n         (iVar3 = FUN_000215c0(extraout_EDI,unaff_EBX + 0x5c799), iVar3 != 0)) goto LAB_000216dc;\n      local_38 = *extraout_EDI;\n      iVar3 = extraout_EDI[0x3b];\n      local_44 = extraout_EDI + 0xa7;\n      iVar4 = extraout_EDI[0x3c];\n    }\n    local_28 = 0;\n    local_2c = 0;\n    __s = (char *)curl_maprintf(unaff_EBX + 0x661ba,iVar3,iVar4);\n    if (__s != (char *)0x0) {\n      sVar5 = strlen(__s);\n      iVar3 = FUN_0001b180(local_38,__s,sVar5,&local_28,&local_2c);\n      if (iVar3 != 0) {\n        (**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(__s);\n        goto LAB_000216e6;\n      }\n      pbVar1 = BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e;\n      if (local_28 == 0) {\n        (**(code **)pbVar1)(__s);\n        iVar3 = 9;\n        goto LAB_000216e6;\n      }\n      (**(code **)pbVar1)(*local_44);\n      iVar3 = unaff_EBX + 0x5c75f;\n      if (param_4 == '\0') {\n        iVar3 = unaff_EBX + 0x66713;\n      }\n      iVar3 = curl_maprintf(unaff_EBX + 0x5c7bb,iVar3,local_28);\n      *local_44 = iVar3;\n      (**(code **)pbVar1)(local_28);\n      if (*local_44 != 0) {\n        iVar3 = unaff_EBX + 0x5c770;\n        (**(code **)pbVar1)(__s);\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_0002177e;\n      }\n      (**(code **)pbVar1)(__s);\n    }\nLAB_00021b67:\n    iVar3 = 0x1b;\n    goto LAB_000216e6;\n  }\n  if ((puVar7[2] == 0) || ((puVar7[1] & 0xffff0000) != 0)) goto LAB_000216e0;\n  iVar3 = FUN_00047be0(extraout_EDI,param_4);\n  if (iVar3 != 0) goto LAB_000216e6;\n  *(undefined1 *)(param_2 + 0xc) = 1;\n  *puVar7 = 2;\n  iVar3 = unaff_EBX + 0x5c766;\nLAB_0002177e:\n  if (*(int *)(param_2 + 4) == 0x40) {\n    if ((param_4 == '\0') && (extraout_EDI[0x5d] != 0)) {\n      iVar4 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2);\n      if (iVar4 != 0) {\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_00021878;\n      }\nLAB_0002181a:\n      (**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(extraout_EDI[0xaa]);\n      iVar3 = curl_maprintf(unaff_EBX + 0x5c7d7,extraout_EDI[0x5d]);\n      extraout_EDI[0xaa] = iVar3;\n      if (iVar3 == 0) goto LAB_00021b67;\n      iVar3 = unaff_EBX + 0x5c792;\n    }\n    *(undefined1 *)(param_2 + 0xc) = 1;\n    if (param_4 != '\0') goto LAB_00021790;\nLAB_00021878:\n    iVar4 = extraout_EDI[0x5a];\n    if (iVar4 == 0) {\n      iVar4 = unaff_EBX + 0x66713;\n    }\n    iVar6 = unaff_EBX + 0x5c78b;\n  }\n  else {\n    if (param_4 == '\0') goto LAB_00021878;\nLAB_00021790:\n    iVar4 = extraout_EDI[0x3b];\n    if (iVar4 == 0) {\n      iVar4 = unaff_EBX + 0x66713;\n    }\n    iVar6 = unaff_EBX + 0x5c785;\n  }\n  FUN_00027140(iVar2,unaff_EBX + 0x5c20f,iVar6,iVar3,iVar4);\n  *(byte *)(param_2 + 0xd) = *(byte *)(param_2 + 0xc) ^ 1;\n  iVar3 = 0;\nLAB_000216e6:\n  if (local_24 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0007c1a0();\n  }\n  return iVar3;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "size_t sVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int unaff_EBX;" primitive_type identifier ;) (declaration "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "int *extraout_EDI;" primitive_type (pointer_declarator "*extraout_EDI" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 unaff_retaddr;" type_identifier identifier ;) (declaration "int *local_44;" primitive_type (pointer_declarator "*local_44" * identifier) ;) (declaration "int local_38;" primitive_type identifier ;) (declaration "undefined4 local_2c;" type_identifier identifier ;) (declaration "int local_28;" primitive_type identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x2165d;" (assignment_expression "uStack_14 = 0x2165d" identifier = number_literal) ;) (expression_statement "entry();" (call_expression "entry()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar2 = *extraout_EDI;" (assignment_expression "iVar2 = *extraout_EDI" identifier = (pointer_expression "*extraout_EDI" * identifier)) ;) (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 "puVar7 = (undefined4 *)(iVar2 + 0xd18);" (assignment_expression "puVar7 = (undefined4 *)(iVar2 + 0xd18)" identifier = (cast_expression "(undefined4 *)(iVar2 + 0xd18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xd18)" ( (binary_expression "iVar2 + 0xd18" identifier + number_literal) )))) ;) (if_statement "if (param_4 != '\0') {\n    puVar7 = (undefined4 *)(iVar2 + 0xd30);\n  }" if (parenthesized_expression "(param_4 != '\0')" ( (binary_expression "param_4 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    puVar7 = (undefined4 *)(iVar2 + 0xd30);\n  }" { (expression_statement "puVar7 = (undefined4 *)(iVar2 + 0xd30);" (assignment_expression "puVar7 = (undefined4 *)(iVar2 + 0xd30)" identifier = (cast_expression "(undefined4 *)(iVar2 + 0xd30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xd30)" ( (binary_expression "iVar2 + 0xd30" identifier + number_literal) )))) ;) })) (expression_statement "iVar3 = *(int *)(param_2 + 4);" (assignment_expression "iVar3 = *(int *)(param_2 + 4)" identifier = (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) (expression_statement "*puVar7 = 0;" (assignment_expression "*puVar7 = 0" (pointer_expression "*puVar7" * identifier) = number_literal) ;) (if_statement "if (iVar3 != 4) {\n    if (iVar3 == 8) {\n      iVar3 = FUN_0005da00(extraout_EDI,param_4);\n      if (iVar3 != 0) goto LAB_000216e6;\n      iVar3 = unaff_EBX + 0x5c816;\n      goto LAB_0002177e;\n    }\n    if (iVar3 == 0x20) {\n      iVar3 = FUN_0005e5c0(extraout_EDI,param_4);\n      if (iVar3 != 0) goto LAB_000216e6;\n      iVar3 = unaff_EBX + 0x5c776;\n      goto LAB_0002177e;\n    }\n    if (iVar3 == 2) {\n      iVar3 = FUN_000476e0(extraout_EDI,param_4,param_3,unaff_retaddr);\n      if (iVar3 != 0) goto LAB_000216e6;\n      iVar3 = unaff_EBX + 0x5c77e;\n      goto LAB_0002177e;\n    }\n    if (iVar3 != 1) {\n      if (iVar3 != 0x40) {\nLAB_000216e0:\n        *(undefined1 *)(param_2 + 0xd) = 0;\n        iVar3 = 0;\n        goto LAB_000216e6;\n      }\n      if ((param_4 != '\0') || (extraout_EDI[0x5d] == 0)) {\nLAB_000216dc:\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_000216e0;\n      }\nLAB_000217ef:\n      iVar3 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2);\n      if (iVar3 != 0) goto LAB_000216dc;\n      goto LAB_0002181a;\n    }\n    if (param_4 == '\0') {\n      if ((char)extraout_EDI[0x94] == '\0') goto LAB_000216dc;\n      iVar3 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7ad);\n      if (iVar3 != 0) {\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        if ((*(int *)(param_2 + 4) == 0x40) && (extraout_EDI[0x5d] != 0)) goto LAB_000217ef;\n        goto LAB_000216e0;\n      }\n      local_38 = *extraout_EDI;\n      iVar3 = extraout_EDI[0x5a];\n      local_44 = extraout_EDI + 0xaa;\n      iVar4 = extraout_EDI[0x5b];\n    }\n    else {\n      if ((*(char *)((int)extraout_EDI + 0x251) == '\0') ||\n         (iVar3 = FUN_000215c0(extraout_EDI,unaff_EBX + 0x5c799), iVar3 != 0)) goto LAB_000216dc;\n      local_38 = *extraout_EDI;\n      iVar3 = extraout_EDI[0x3b];\n      local_44 = extraout_EDI + 0xa7;\n      iVar4 = extraout_EDI[0x3c];\n    }\n    local_28 = 0;\n    local_2c = 0;\n    __s = (char *)curl_maprintf(unaff_EBX + 0x661ba,iVar3,iVar4);\n    if (__s != (char *)0x0) {\n      sVar5 = strlen(__s);\n      iVar3 = FUN_0001b180(local_38,__s,sVar5,&local_28,&local_2c);\n      if (iVar3 != 0) {\n        (**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(__s);\n        goto LAB_000216e6;\n      }\n      pbVar1 = BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e;\n      if (local_28 == 0) {\n        (**(code **)pbVar1)(__s);\n        iVar3 = 9;\n        goto LAB_000216e6;\n      }\n      (**(code **)pbVar1)(*local_44);\n      iVar3 = unaff_EBX + 0x5c75f;\n      if (param_4 == '\0') {\n        iVar3 = unaff_EBX + 0x66713;\n      }\n      iVar3 = curl_maprintf(unaff_EBX + 0x5c7bb,iVar3,local_28);\n      *local_44 = iVar3;\n      (**(code **)pbVar1)(local_28);\n      if (*local_44 != 0) {\n        iVar3 = unaff_EBX + 0x5c770;\n        (**(code **)pbVar1)(__s);\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_0002177e;\n      }\n      (**(code **)pbVar1)(__s);\n    }\nLAB_00021b67:\n    iVar3 = 0x1b;\n    goto LAB_000216e6;\n  }" if (parenthesized_expression "(iVar3 != 4)" ( (binary_expression "iVar3 != 4" identifier != number_literal) )) (compound_statement "{\n    if (iVar3 == 8) {\n      iVar3 = FUN_0005da00(extraout_EDI,param_4);\n      if (iVar3 != 0) goto LAB_000216e6;\n      iVar3 = unaff_EBX + 0x5c816;\n      goto LAB_0002177e;\n    }\n    if (iVar3 == 0x20) {\n      iVar3 = FUN_0005e5c0(extraout_EDI,param_4);\n      if (iVar3 != 0) goto LAB_000216e6;\n      iVar3 = unaff_EBX + 0x5c776;\n      goto LAB_0002177e;\n    }\n    if (iVar3 == 2) {\n      iVar3 = FUN_000476e0(extraout_EDI,param_4,param_3,unaff_retaddr);\n      if (iVar3 != 0) goto LAB_000216e6;\n      iVar3 = unaff_EBX + 0x5c77e;\n      goto LAB_0002177e;\n    }\n    if (iVar3 != 1) {\n      if (iVar3 != 0x40) {\nLAB_000216e0:\n        *(undefined1 *)(param_2 + 0xd) = 0;\n        iVar3 = 0;\n        goto LAB_000216e6;\n      }\n      if ((param_4 != '\0') || (extraout_EDI[0x5d] == 0)) {\nLAB_000216dc:\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_000216e0;\n      }\nLAB_000217ef:\n      iVar3 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2);\n      if (iVar3 != 0) goto LAB_000216dc;\n      goto LAB_0002181a;\n    }\n    if (param_4 == '\0') {\n      if ((char)extraout_EDI[0x94] == '\0') goto LAB_000216dc;\n      iVar3 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7ad);\n      if (iVar3 != 0) {\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        if ((*(int *)(param_2 + 4) == 0x40) && (extraout_EDI[0x5d] != 0)) goto LAB_000217ef;\n        goto LAB_000216e0;\n      }\n      local_38 = *extraout_EDI;\n      iVar3 = extraout_EDI[0x5a];\n      local_44 = extraout_EDI + 0xaa;\n      iVar4 = extraout_EDI[0x5b];\n    }\n    else {\n      if ((*(char *)((int)extraout_EDI + 0x251) == '\0') ||\n         (iVar3 = FUN_000215c0(extraout_EDI,unaff_EBX + 0x5c799), iVar3 != 0)) goto LAB_000216dc;\n      local_38 = *extraout_EDI;\n      iVar3 = extraout_EDI[0x3b];\n      local_44 = extraout_EDI + 0xa7;\n      iVar4 = extraout_EDI[0x3c];\n    }\n    local_28 = 0;\n    local_2c = 0;\n    __s = (char *)curl_maprintf(unaff_EBX + 0x661ba,iVar3,iVar4);\n    if (__s != (char *)0x0) {\n      sVar5 = strlen(__s);\n      iVar3 = FUN_0001b180(local_38,__s,sVar5,&local_28,&local_2c);\n      if (iVar3 != 0) {\n        (**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(__s);\n        goto LAB_000216e6;\n      }\n      pbVar1 = BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e;\n      if (local_28 == 0) {\n        (**(code **)pbVar1)(__s);\n        iVar3 = 9;\n        goto LAB_000216e6;\n      }\n      (**(code **)pbVar1)(*local_44);\n      iVar3 = unaff_EBX + 0x5c75f;\n      if (param_4 == '\0') {\n        iVar3 = unaff_EBX + 0x66713;\n      }\n      iVar3 = curl_maprintf(unaff_EBX + 0x5c7bb,iVar3,local_28);\n      *local_44 = iVar3;\n      (**(code **)pbVar1)(local_28);\n      if (*local_44 != 0) {\n        iVar3 = unaff_EBX + 0x5c770;\n        (**(code **)pbVar1)(__s);\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_0002177e;\n      }\n      (**(code **)pbVar1)(__s);\n    }\nLAB_00021b67:\n    iVar3 = 0x1b;\n    goto LAB_000216e6;\n  }" { (if_statement "if (iVar3 == 8) {\n      iVar3 = FUN_0005da00(extraout_EDI,param_4);\n      if (iVar3 != 0) goto LAB_000216e6;\n      iVar3 = unaff_EBX + 0x5c816;\n      goto LAB_0002177e;\n    }" if (parenthesized_expression "(iVar3 == 8)" ( (binary_expression "iVar3 == 8" identifier == number_literal) )) (compound_statement "{\n      iVar3 = FUN_0005da00(extraout_EDI,param_4);\n      if (iVar3 != 0) goto LAB_000216e6;\n      iVar3 = unaff_EBX + 0x5c816;\n      goto LAB_0002177e;\n    }" { (expression_statement "iVar3 = FUN_0005da00(extraout_EDI,param_4);" (assignment_expression "iVar3 = FUN_0005da00(extraout_EDI,param_4)" identifier = (call_expression "FUN_0005da00(extraout_EDI,param_4)" identifier (argument_list "(extraout_EDI,param_4)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 != 0) goto LAB_000216e6;" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000216e6;" goto statement_identifier ;)) (expression_statement "iVar3 = unaff_EBX + 0x5c816;" (assignment_expression "iVar3 = unaff_EBX + 0x5c816" identifier = (binary_expression "unaff_EBX + 0x5c816" identifier + number_literal)) ;) (goto_statement "goto LAB_0002177e;" goto statement_identifier ;) })) (if_statement "if (iVar3 == 0x20) {\n      iVar3 = FUN_0005e5c0(extraout_EDI,param_4);\n      if (iVar3 != 0) goto LAB_000216e6;\n      iVar3 = unaff_EBX + 0x5c776;\n      goto LAB_0002177e;\n    }" if (parenthesized_expression "(iVar3 == 0x20)" ( (binary_expression "iVar3 == 0x20" identifier == number_literal) )) (compound_statement "{\n      iVar3 = FUN_0005e5c0(extraout_EDI,param_4);\n      if (iVar3 != 0) goto LAB_000216e6;\n      iVar3 = unaff_EBX + 0x5c776;\n      goto LAB_0002177e;\n    }" { (expression_statement "iVar3 = FUN_0005e5c0(extraout_EDI,param_4);" (assignment_expression "iVar3 = FUN_0005e5c0(extraout_EDI,param_4)" identifier = (call_expression "FUN_0005e5c0(extraout_EDI,param_4)" identifier (argument_list "(extraout_EDI,param_4)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 != 0) goto LAB_000216e6;" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000216e6;" goto statement_identifier ;)) (expression_statement "iVar3 = unaff_EBX + 0x5c776;" (assignment_expression "iVar3 = unaff_EBX + 0x5c776" identifier = (binary_expression "unaff_EBX + 0x5c776" identifier + number_literal)) ;) (goto_statement "goto LAB_0002177e;" goto statement_identifier ;) })) (if_statement "if (iVar3 == 2) {\n      iVar3 = FUN_000476e0(extraout_EDI,param_4,param_3,unaff_retaddr);\n      if (iVar3 != 0) goto LAB_000216e6;\n      iVar3 = unaff_EBX + 0x5c77e;\n      goto LAB_0002177e;\n    }" if (parenthesized_expression "(iVar3 == 2)" ( (binary_expression "iVar3 == 2" identifier == number_literal) )) (compound_statement "{\n      iVar3 = FUN_000476e0(extraout_EDI,param_4,param_3,unaff_retaddr);\n      if (iVar3 != 0) goto LAB_000216e6;\n      iVar3 = unaff_EBX + 0x5c77e;\n      goto LAB_0002177e;\n    }" { (expression_statement "iVar3 = FUN_000476e0(extraout_EDI,param_4,param_3,unaff_retaddr);" (assignment_expression "iVar3 = FUN_000476e0(extraout_EDI,param_4,param_3,unaff_retaddr)" identifier = (call_expression "FUN_000476e0(extraout_EDI,param_4,param_3,unaff_retaddr)" identifier (argument_list "(extraout_EDI,param_4,param_3,unaff_retaddr)" ( identifier , identifier , identifier , identifier )))) ;) (if_statement "if (iVar3 != 0) goto LAB_000216e6;" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000216e6;" goto statement_identifier ;)) (expression_statement "iVar3 = unaff_EBX + 0x5c77e;" (assignment_expression "iVar3 = unaff_EBX + 0x5c77e" identifier = (binary_expression "unaff_EBX + 0x5c77e" identifier + number_literal)) ;) (goto_statement "goto LAB_0002177e;" goto statement_identifier ;) })) (if_statement "if (iVar3 != 1) {\n      if (iVar3 != 0x40) {\nLAB_000216e0:\n        *(undefined1 *)(param_2 + 0xd) = 0;\n        iVar3 = 0;\n        goto LAB_000216e6;\n      }\n      if ((param_4 != '\0') || (extraout_EDI[0x5d] == 0)) {\nLAB_000216dc:\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_000216e0;\n      }\nLAB_000217ef:\n      iVar3 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2);\n      if (iVar3 != 0) goto LAB_000216dc;\n      goto LAB_0002181a;\n    }" if (parenthesized_expression "(iVar3 != 1)" ( (binary_expression "iVar3 != 1" identifier != number_literal) )) (compound_statement "{\n      if (iVar3 != 0x40) {\nLAB_000216e0:\n        *(undefined1 *)(param_2 + 0xd) = 0;\n        iVar3 = 0;\n        goto LAB_000216e6;\n      }\n      if ((param_4 != '\0') || (extraout_EDI[0x5d] == 0)) {\nLAB_000216dc:\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_000216e0;\n      }\nLAB_000217ef:\n      iVar3 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2);\n      if (iVar3 != 0) goto LAB_000216dc;\n      goto LAB_0002181a;\n    }" { (if_statement "if (iVar3 != 0x40) {\nLAB_000216e0:\n        *(undefined1 *)(param_2 + 0xd) = 0;\n        iVar3 = 0;\n        goto LAB_000216e6;\n      }" if (parenthesized_expression "(iVar3 != 0x40)" ( (binary_expression "iVar3 != 0x40" identifier != number_literal) )) (compound_statement "{\nLAB_000216e0:\n        *(undefined1 *)(param_2 + 0xd) = 0;\n        iVar3 = 0;\n        goto LAB_000216e6;\n      }" { (labeled_statement "LAB_000216e0:\n        *(undefined1 *)(param_2 + 0xd) = 0;" statement_identifier : (expression_statement "*(undefined1 *)(param_2 + 0xd) = 0;" (assignment_expression "*(undefined1 *)(param_2 + 0xd) = 0" (pointer_expression "*(undefined1 *)(param_2 + 0xd)" * (cast_expression "(undefined1 *)(param_2 + 0xd)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xd)" ( (binary_expression "param_2 + 0xd" identifier + number_literal) )))) = number_literal) ;)) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_000216e6;" goto statement_identifier ;) })) (if_statement "if ((param_4 != '\0') || (extraout_EDI[0x5d] == 0)) {\nLAB_000216dc:\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_000216e0;\n      }" if (parenthesized_expression "((param_4 != '\0') || (extraout_EDI[0x5d] == 0))" ( (binary_expression "(param_4 != '\0') || (extraout_EDI[0x5d] == 0)" (parenthesized_expression "(param_4 != '\0')" ( (binary_expression "param_4 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(extraout_EDI[0x5d] == 0)" ( (binary_expression "extraout_EDI[0x5d] == 0" (subscript_expression "extraout_EDI[0x5d]" identifier [ number_literal ]) == number_literal) ))) )) (compound_statement "{\nLAB_000216dc:\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_000216e0;\n      }" { (labeled_statement "LAB_000216dc:\n        *(undefined1 *)(param_2 + 0xc) = 1;" statement_identifier : (expression_statement "*(undefined1 *)(param_2 + 0xc) = 1;" (assignment_expression "*(undefined1 *)(param_2 + 0xc) = 1" (pointer_expression "*(undefined1 *)(param_2 + 0xc)" * (cast_expression "(undefined1 *)(param_2 + 0xc)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) = number_literal) ;)) (goto_statement "goto LAB_000216e0;" goto statement_identifier ;) })) (labeled_statement "LAB_000217ef:\n      iVar3 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2);" statement_identifier : (expression_statement "iVar3 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2);" (assignment_expression "iVar3 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2)" identifier = (call_expression "FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2)" identifier (argument_list "(extraout_EDI,unaff_EBX + 0x5c7f2)" ( identifier , (binary_expression "unaff_EBX + 0x5c7f2" identifier + number_literal) )))) ;)) (if_statement "if (iVar3 != 0) goto LAB_000216dc;" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000216dc;" goto statement_identifier ;)) (goto_statement "goto LAB_0002181a;" goto statement_identifier ;) })) (if_statement "if (param_4 == '\0') {\n      if ((char)extraout_EDI[0x94] == '\0') goto LAB_000216dc;\n      iVar3 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7ad);\n      if (iVar3 != 0) {\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        if ((*(int *)(param_2 + 4) == 0x40) && (extraout_EDI[0x5d] != 0)) goto LAB_000217ef;\n        goto LAB_000216e0;\n      }\n      local_38 = *extraout_EDI;\n      iVar3 = extraout_EDI[0x5a];\n      local_44 = extraout_EDI + 0xaa;\n      iVar4 = extraout_EDI[0x5b];\n    }\n    else {\n      if ((*(char *)((int)extraout_EDI + 0x251) == '\0') ||\n         (iVar3 = FUN_000215c0(extraout_EDI,unaff_EBX + 0x5c799), iVar3 != 0)) goto LAB_000216dc;\n      local_38 = *extraout_EDI;\n      iVar3 = extraout_EDI[0x3b];\n      local_44 = extraout_EDI + 0xa7;\n      iVar4 = extraout_EDI[0x3c];\n    }" if (parenthesized_expression "(param_4 == '\0')" ( (binary_expression "param_4 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      if ((char)extraout_EDI[0x94] == '\0') goto LAB_000216dc;\n      iVar3 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7ad);\n      if (iVar3 != 0) {\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        if ((*(int *)(param_2 + 4) == 0x40) && (extraout_EDI[0x5d] != 0)) goto LAB_000217ef;\n        goto LAB_000216e0;\n      }\n      local_38 = *extraout_EDI;\n      iVar3 = extraout_EDI[0x5a];\n      local_44 = extraout_EDI + 0xaa;\n      iVar4 = extraout_EDI[0x5b];\n    }" { (if_statement "if ((char)extraout_EDI[0x94] == '\0') goto LAB_000216dc;" if (parenthesized_expression "((char)extraout_EDI[0x94] == '\0')" ( (binary_expression "(char)extraout_EDI[0x94] == '\0'" (cast_expression "(char)extraout_EDI[0x94]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "extraout_EDI[0x94]" identifier [ number_literal ])) == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_000216dc;" goto statement_identifier ;)) (expression_statement "iVar3 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7ad);" (assignment_expression "iVar3 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7ad)" identifier = (call_expression "FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7ad)" identifier (argument_list "(extraout_EDI,unaff_EBX + 0x5c7ad)" ( identifier , (binary_expression "unaff_EBX + 0x5c7ad" identifier + number_literal) )))) ;) (if_statement "if (iVar3 != 0) {\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        if ((*(int *)(param_2 + 4) == 0x40) && (extraout_EDI[0x5d] != 0)) goto LAB_000217ef;\n        goto LAB_000216e0;\n      }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        if ((*(int *)(param_2 + 4) == 0x40) && (extraout_EDI[0x5d] != 0)) goto LAB_000217ef;\n        goto LAB_000216e0;\n      }" { (expression_statement "*(undefined1 *)(param_2 + 0xc) = 1;" (assignment_expression "*(undefined1 *)(param_2 + 0xc) = 1" (pointer_expression "*(undefined1 *)(param_2 + 0xc)" * (cast_expression "(undefined1 *)(param_2 + 0xc)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) = number_literal) ;) (if_statement "if ((*(int *)(param_2 + 4) == 0x40) && (extraout_EDI[0x5d] != 0)) goto LAB_000217ef;" if (parenthesized_expression "((*(int *)(param_2 + 4) == 0x40) && (extraout_EDI[0x5d] != 0))" ( (binary_expression "(*(int *)(param_2 + 4) == 0x40) && (extraout_EDI[0x5d] != 0)" (parenthesized_expression "(*(int *)(param_2 + 4) == 0x40)" ( (binary_expression "*(int *)(param_2 + 4) == 0x40" (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) == number_literal) )) && (parenthesized_expression "(extraout_EDI[0x5d] != 0)" ( (binary_expression "extraout_EDI[0x5d] != 0" (subscript_expression "extraout_EDI[0x5d]" identifier [ number_literal ]) != number_literal) ))) )) (goto_statement "goto LAB_000217ef;" goto statement_identifier ;)) (goto_statement "goto LAB_000216e0;" goto statement_identifier ;) })) (expression_statement "local_38 = *extraout_EDI;" (assignment_expression "local_38 = *extraout_EDI" identifier = (pointer_expression "*extraout_EDI" * identifier)) ;) (expression_statement "iVar3 = extraout_EDI[0x5a];" (assignment_expression "iVar3 = extraout_EDI[0x5a]" identifier = (subscript_expression "extraout_EDI[0x5a]" identifier [ number_literal ])) ;) (expression_statement "local_44 = extraout_EDI + 0xaa;" (assignment_expression "local_44 = extraout_EDI + 0xaa" identifier = (binary_expression "extraout_EDI + 0xaa" identifier + number_literal)) ;) (expression_statement "iVar4 = extraout_EDI[0x5b];" (assignment_expression "iVar4 = extraout_EDI[0x5b]" identifier = (subscript_expression "extraout_EDI[0x5b]" identifier [ number_literal ])) ;) }) (else_clause "else {\n      if ((*(char *)((int)extraout_EDI + 0x251) == '\0') ||\n         (iVar3 = FUN_000215c0(extraout_EDI,unaff_EBX + 0x5c799), iVar3 != 0)) goto LAB_000216dc;\n      local_38 = *extraout_EDI;\n      iVar3 = extraout_EDI[0x3b];\n      local_44 = extraout_EDI + 0xa7;\n      iVar4 = extraout_EDI[0x3c];\n    }" else (compound_statement "{\n      if ((*(char *)((int)extraout_EDI + 0x251) == '\0') ||\n         (iVar3 = FUN_000215c0(extraout_EDI,unaff_EBX + 0x5c799), iVar3 != 0)) goto LAB_000216dc;\n      local_38 = *extraout_EDI;\n      iVar3 = extraout_EDI[0x3b];\n      local_44 = extraout_EDI + 0xa7;\n      iVar4 = extraout_EDI[0x3c];\n    }" { (if_statement "if ((*(char *)((int)extraout_EDI + 0x251) == '\0') ||\n         (iVar3 = FUN_000215c0(extraout_EDI,unaff_EBX + 0x5c799), iVar3 != 0)) goto LAB_000216dc;" if (parenthesized_expression "((*(char *)((int)extraout_EDI + 0x251) == '\0') ||\n         (iVar3 = FUN_000215c0(extraout_EDI,unaff_EBX + 0x5c799), iVar3 != 0))" ( (binary_expression "(*(char *)((int)extraout_EDI + 0x251) == '\0') ||\n         (iVar3 = FUN_000215c0(extraout_EDI,unaff_EBX + 0x5c799), iVar3 != 0)" (parenthesized_expression "(*(char *)((int)extraout_EDI + 0x251) == '\0')" ( (binary_expression "*(char *)((int)extraout_EDI + 0x251) == '\0'" (pointer_expression "*(char *)((int)extraout_EDI + 0x251)" * (cast_expression "(char *)((int)extraout_EDI + 0x251)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)extraout_EDI + 0x251)" ( (binary_expression "(int)extraout_EDI + 0x251" (cast_expression "(int)extraout_EDI" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(iVar3 = FUN_000215c0(extraout_EDI,unaff_EBX + 0x5c799), iVar3 != 0)" ( (comma_expression "iVar3 = FUN_000215c0(extraout_EDI,unaff_EBX + 0x5c799), iVar3 != 0" (assignment_expression "iVar3 = FUN_000215c0(extraout_EDI,unaff_EBX + 0x5c799)" identifier = (call_expression "FUN_000215c0(extraout_EDI,unaff_EBX + 0x5c799)" identifier (argument_list "(extraout_EDI,unaff_EBX + 0x5c799)" ( identifier , (binary_expression "unaff_EBX + 0x5c799" identifier + number_literal) )))) , (binary_expression "iVar3 != 0" identifier != number_literal)) ))) )) (goto_statement "goto LAB_000216dc;" goto statement_identifier ;)) (expression_statement "local_38 = *extraout_EDI;" (assignment_expression "local_38 = *extraout_EDI" identifier = (pointer_expression "*extraout_EDI" * identifier)) ;) (expression_statement "iVar3 = extraout_EDI[0x3b];" (assignment_expression "iVar3 = extraout_EDI[0x3b]" identifier = (subscript_expression "extraout_EDI[0x3b]" identifier [ number_literal ])) ;) (expression_statement "local_44 = extraout_EDI + 0xa7;" (assignment_expression "local_44 = extraout_EDI + 0xa7" identifier = (binary_expression "extraout_EDI + 0xa7" identifier + number_literal)) ;) (expression_statement "iVar4 = extraout_EDI[0x3c];" (assignment_expression "iVar4 = extraout_EDI[0x3c]" identifier = (subscript_expression "extraout_EDI[0x3c]" identifier [ number_literal ])) ;) }))) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" identifier = number_literal) ;) (expression_statement "__s = (char *)curl_maprintf(unaff_EBX + 0x661ba,iVar3,iVar4);" (assignment_expression "__s = (char *)curl_maprintf(unaff_EBX + 0x661ba,iVar3,iVar4)" identifier = (cast_expression "(char *)curl_maprintf(unaff_EBX + 0x661ba,iVar3,iVar4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "curl_maprintf(unaff_EBX + 0x661ba,iVar3,iVar4)" identifier (argument_list "(unaff_EBX + 0x661ba,iVar3,iVar4)" ( (binary_expression "unaff_EBX + 0x661ba" identifier + number_literal) , identifier , identifier ))))) ;) (if_statement "if (__s != (char *)0x0) {\n      sVar5 = strlen(__s);\n      iVar3 = FUN_0001b180(local_38,__s,sVar5,&local_28,&local_2c);\n      if (iVar3 != 0) {\n        (**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(__s);\n        goto LAB_000216e6;\n      }\n      pbVar1 = BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e;\n      if (local_28 == 0) {\n        (**(code **)pbVar1)(__s);\n        iVar3 = 9;\n        goto LAB_000216e6;\n      }\n      (**(code **)pbVar1)(*local_44);\n      iVar3 = unaff_EBX + 0x5c75f;\n      if (param_4 == '\0') {\n        iVar3 = unaff_EBX + 0x66713;\n      }\n      iVar3 = curl_maprintf(unaff_EBX + 0x5c7bb,iVar3,local_28);\n      *local_44 = iVar3;\n      (**(code **)pbVar1)(local_28);\n      if (*local_44 != 0) {\n        iVar3 = unaff_EBX + 0x5c770;\n        (**(code **)pbVar1)(__s);\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_0002177e;\n      }\n      (**(code **)pbVar1)(__s);\n    }" if (parenthesized_expression "(__s != (char *)0x0)" ( (binary_expression "__s != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      sVar5 = strlen(__s);\n      iVar3 = FUN_0001b180(local_38,__s,sVar5,&local_28,&local_2c);\n      if (iVar3 != 0) {\n        (**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(__s);\n        goto LAB_000216e6;\n      }\n      pbVar1 = BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e;\n      if (local_28 == 0) {\n        (**(code **)pbVar1)(__s);\n        iVar3 = 9;\n        goto LAB_000216e6;\n      }\n      (**(code **)pbVar1)(*local_44);\n      iVar3 = unaff_EBX + 0x5c75f;\n      if (param_4 == '\0') {\n        iVar3 = unaff_EBX + 0x66713;\n      }\n      iVar3 = curl_maprintf(unaff_EBX + 0x5c7bb,iVar3,local_28);\n      *local_44 = iVar3;\n      (**(code **)pbVar1)(local_28);\n      if (*local_44 != 0) {\n        iVar3 = unaff_EBX + 0x5c770;\n        (**(code **)pbVar1)(__s);\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_0002177e;\n      }\n      (**(code **)pbVar1)(__s);\n    }" { (expression_statement "sVar5 = strlen(__s);" (assignment_expression "sVar5 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "iVar3 = FUN_0001b180(local_38,__s,sVar5,&local_28,&local_2c);" (assignment_expression "iVar3 = FUN_0001b180(local_38,__s,sVar5,&local_28,&local_2c)" identifier = (call_expression "FUN_0001b180(local_38,__s,sVar5,&local_28,&local_2c)" identifier (argument_list "(local_38,__s,sVar5,&local_28,&local_2c)" ( identifier , identifier , identifier , (pointer_expression "&local_28" & identifier) , (pointer_expression "&local_2c" & identifier) )))) ;) (if_statement "if (iVar3 != 0) {\n        (**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(__s);\n        goto LAB_000216e6;\n      }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n        (**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(__s);\n        goto LAB_000216e6;\n      }" { (expression_statement "(**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(__s);" (call_expression "(**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(__s)" (parenthesized_expression "(**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))" ( (pointer_expression "**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e)" * (pointer_expression "*(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e)" * (cast_expression "(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e)" ( (binary_expression "BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e" (binary_expression "BYTE_ARRAY_0008f7e1 + unaff_EBX" identifier + identifier) + number_literal) ))))) )) (argument_list "(__s)" ( identifier ))) ;) (goto_statement "goto LAB_000216e6;" goto statement_identifier ;) })) (expression_statement "pbVar1 = BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e;" (assignment_expression "pbVar1 = BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e" identifier = (binary_expression "BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e" (binary_expression "BYTE_ARRAY_0008f7e1 + unaff_EBX" identifier + identifier) + number_literal)) ;) (if_statement "if (local_28 == 0) {\n        (**(code **)pbVar1)(__s);\n        iVar3 = 9;\n        goto LAB_000216e6;\n      }" if (parenthesized_expression "(local_28 == 0)" ( (binary_expression "local_28 == 0" identifier == number_literal) )) (compound_statement "{\n        (**(code **)pbVar1)(__s);\n        iVar3 = 9;\n        goto LAB_000216e6;\n      }" { (expression_statement "(**(code **)pbVar1)(__s);" (call_expression "(**(code **)pbVar1)(__s)" (parenthesized_expression "(**(code **)pbVar1)" ( (pointer_expression "**(code **)pbVar1" * (pointer_expression "*(code **)pbVar1" * (cast_expression "(code **)pbVar1" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "(__s)" ( identifier ))) ;) (expression_statement "iVar3 = 9;" (assignment_expression "iVar3 = 9" identifier = number_literal) ;) (goto_statement "goto LAB_000216e6;" goto statement_identifier ;) })) (expression_statement "(**(code **)pbVar1)(*local_44);" (call_expression "(**(code **)pbVar1)(*local_44)" (parenthesized_expression "(**(code **)pbVar1)" ( (pointer_expression "**(code **)pbVar1" * (pointer_expression "*(code **)pbVar1" * (cast_expression "(code **)pbVar1" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "(*local_44)" ( (pointer_expression "*local_44" * identifier) ))) ;) (expression_statement "iVar3 = unaff_EBX + 0x5c75f;" (assignment_expression "iVar3 = unaff_EBX + 0x5c75f" identifier = (binary_expression "unaff_EBX + 0x5c75f" identifier + number_literal)) ;) (if_statement "if (param_4 == '\0') {\n        iVar3 = unaff_EBX + 0x66713;\n      }" if (parenthesized_expression "(param_4 == '\0')" ( (binary_expression "param_4 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        iVar3 = unaff_EBX + 0x66713;\n      }" { (expression_statement "iVar3 = unaff_EBX + 0x66713;" (assignment_expression "iVar3 = unaff_EBX + 0x66713" identifier = (binary_expression "unaff_EBX + 0x66713" identifier + number_literal)) ;) })) (expression_statement "iVar3 = curl_maprintf(unaff_EBX + 0x5c7bb,iVar3,local_28);" (assignment_expression "iVar3 = curl_maprintf(unaff_EBX + 0x5c7bb,iVar3,local_28)" identifier = (call_expression "curl_maprintf(unaff_EBX + 0x5c7bb,iVar3,local_28)" identifier (argument_list "(unaff_EBX + 0x5c7bb,iVar3,local_28)" ( (binary_expression "unaff_EBX + 0x5c7bb" identifier + number_literal) , identifier , identifier )))) ;) (expression_statement "*local_44 = iVar3;" (assignment_expression "*local_44 = iVar3" (pointer_expression "*local_44" * identifier) = identifier) ;) (expression_statement "(**(code **)pbVar1)(local_28);" (call_expression "(**(code **)pbVar1)(local_28)" (parenthesized_expression "(**(code **)pbVar1)" ( (pointer_expression "**(code **)pbVar1" * (pointer_expression "*(code **)pbVar1" * (cast_expression "(code **)pbVar1" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "(local_28)" ( identifier ))) ;) (if_statement "if (*local_44 != 0) {\n        iVar3 = unaff_EBX + 0x5c770;\n        (**(code **)pbVar1)(__s);\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_0002177e;\n      }" if (parenthesized_expression "(*local_44 != 0)" ( (binary_expression "*local_44 != 0" (pointer_expression "*local_44" * identifier) != number_literal) )) (compound_statement "{\n        iVar3 = unaff_EBX + 0x5c770;\n        (**(code **)pbVar1)(__s);\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_0002177e;\n      }" { (expression_statement "iVar3 = unaff_EBX + 0x5c770;" (assignment_expression "iVar3 = unaff_EBX + 0x5c770" identifier = (binary_expression "unaff_EBX + 0x5c770" identifier + number_literal)) ;) (expression_statement "(**(code **)pbVar1)(__s);" (call_expression "(**(code **)pbVar1)(__s)" (parenthesized_expression "(**(code **)pbVar1)" ( (pointer_expression "**(code **)pbVar1" * (pointer_expression "*(code **)pbVar1" * (cast_expression "(code **)pbVar1" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "(__s)" ( identifier ))) ;) (expression_statement "*(undefined1 *)(param_2 + 0xc) = 1;" (assignment_expression "*(undefined1 *)(param_2 + 0xc) = 1" (pointer_expression "*(undefined1 *)(param_2 + 0xc)" * (cast_expression "(undefined1 *)(param_2 + 0xc)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) = number_literal) ;) (goto_statement "goto LAB_0002177e;" goto statement_identifier ;) })) (expression_statement "(**(code **)pbVar1)(__s);" (call_expression "(**(code **)pbVar1)(__s)" (parenthesized_expression "(**(code **)pbVar1)" ( (pointer_expression "**(code **)pbVar1" * (pointer_expression "*(code **)pbVar1" * (cast_expression "(code **)pbVar1" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "(__s)" ( identifier ))) ;) })) (labeled_statement "LAB_00021b67:\n    iVar3 = 0x1b;" statement_identifier : (expression_statement "iVar3 = 0x1b;" (assignment_expression "iVar3 = 0x1b" identifier = number_literal) ;)) (goto_statement "goto LAB_000216e6;" goto statement_identifier ;) })) (if_statement "if ((puVar7[2] == 0) || ((puVar7[1] & 0xffff0000) != 0)) goto LAB_000216e0;" if (parenthesized_expression "((puVar7[2] == 0) || ((puVar7[1] & 0xffff0000) != 0))" ( (binary_expression "(puVar7[2] == 0) || ((puVar7[1] & 0xffff0000) != 0)" (parenthesized_expression "(puVar7[2] == 0)" ( (binary_expression "puVar7[2] == 0" (subscript_expression "puVar7[2]" identifier [ number_literal ]) == number_literal) )) || (parenthesized_expression "((puVar7[1] & 0xffff0000) != 0)" ( (binary_expression "(puVar7[1] & 0xffff0000) != 0" (parenthesized_expression "(puVar7[1] & 0xffff0000)" ( (binary_expression "puVar7[1] & 0xffff0000" (subscript_expression "puVar7[1]" identifier [ number_literal ]) & number_literal) )) != number_literal) ))) )) (goto_statement "goto LAB_000216e0;" goto statement_identifier ;)) (expression_statement "iVar3 = FUN_00047be0(extraout_EDI,param_4);" (assignment_expression "iVar3 = FUN_00047be0(extraout_EDI,param_4)" identifier = (call_expression "FUN_00047be0(extraout_EDI,param_4)" identifier (argument_list "(extraout_EDI,param_4)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 != 0) goto LAB_000216e6;" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000216e6;" goto statement_identifier ;)) (expression_statement "*(undefined1 *)(param_2 + 0xc) = 1;" (assignment_expression "*(undefined1 *)(param_2 + 0xc) = 1" (pointer_expression "*(undefined1 *)(param_2 + 0xc)" * (cast_expression "(undefined1 *)(param_2 + 0xc)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*puVar7 = 2;" (assignment_expression "*puVar7 = 2" (pointer_expression "*puVar7" * identifier) = number_literal) ;) (expression_statement "iVar3 = unaff_EBX + 0x5c766;" (assignment_expression "iVar3 = unaff_EBX + 0x5c766" identifier = (binary_expression "unaff_EBX + 0x5c766" identifier + number_literal)) ;) (labeled_statement "LAB_0002177e:\n  if (*(int *)(param_2 + 4) == 0x40) {\n    if ((param_4 == '\0') && (extraout_EDI[0x5d] != 0)) {\n      iVar4 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2);\n      if (iVar4 != 0) {\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_00021878;\n      }\nLAB_0002181a:\n      (**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(extraout_EDI[0xaa]);\n      iVar3 = curl_maprintf(unaff_EBX + 0x5c7d7,extraout_EDI[0x5d]);\n      extraout_EDI[0xaa] = iVar3;\n      if (iVar3 == 0) goto LAB_00021b67;\n      iVar3 = unaff_EBX + 0x5c792;\n    }\n    *(undefined1 *)(param_2 + 0xc) = 1;\n    if (param_4 != '\0') goto LAB_00021790;\nLAB_00021878:\n    iVar4 = extraout_EDI[0x5a];\n    if (iVar4 == 0) {\n      iVar4 = unaff_EBX + 0x66713;\n    }\n    iVar6 = unaff_EBX + 0x5c78b;\n  }\n  else {\n    if (param_4 == '\0') goto LAB_00021878;\nLAB_00021790:\n    iVar4 = extraout_EDI[0x3b];\n    if (iVar4 == 0) {\n      iVar4 = unaff_EBX + 0x66713;\n    }\n    iVar6 = unaff_EBX + 0x5c785;\n  }" statement_identifier : (if_statement "if (*(int *)(param_2 + 4) == 0x40) {\n    if ((param_4 == '\0') && (extraout_EDI[0x5d] != 0)) {\n      iVar4 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2);\n      if (iVar4 != 0) {\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_00021878;\n      }\nLAB_0002181a:\n      (**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(extraout_EDI[0xaa]);\n      iVar3 = curl_maprintf(unaff_EBX + 0x5c7d7,extraout_EDI[0x5d]);\n      extraout_EDI[0xaa] = iVar3;\n      if (iVar3 == 0) goto LAB_00021b67;\n      iVar3 = unaff_EBX + 0x5c792;\n    }\n    *(undefined1 *)(param_2 + 0xc) = 1;\n    if (param_4 != '\0') goto LAB_00021790;\nLAB_00021878:\n    iVar4 = extraout_EDI[0x5a];\n    if (iVar4 == 0) {\n      iVar4 = unaff_EBX + 0x66713;\n    }\n    iVar6 = unaff_EBX + 0x5c78b;\n  }\n  else {\n    if (param_4 == '\0') goto LAB_00021878;\nLAB_00021790:\n    iVar4 = extraout_EDI[0x3b];\n    if (iVar4 == 0) {\n      iVar4 = unaff_EBX + 0x66713;\n    }\n    iVar6 = unaff_EBX + 0x5c785;\n  }" if (parenthesized_expression "(*(int *)(param_2 + 4) == 0x40)" ( (binary_expression "*(int *)(param_2 + 4) == 0x40" (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    if ((param_4 == '\0') && (extraout_EDI[0x5d] != 0)) {\n      iVar4 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2);\n      if (iVar4 != 0) {\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_00021878;\n      }\nLAB_0002181a:\n      (**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(extraout_EDI[0xaa]);\n      iVar3 = curl_maprintf(unaff_EBX + 0x5c7d7,extraout_EDI[0x5d]);\n      extraout_EDI[0xaa] = iVar3;\n      if (iVar3 == 0) goto LAB_00021b67;\n      iVar3 = unaff_EBX + 0x5c792;\n    }\n    *(undefined1 *)(param_2 + 0xc) = 1;\n    if (param_4 != '\0') goto LAB_00021790;\nLAB_00021878:\n    iVar4 = extraout_EDI[0x5a];\n    if (iVar4 == 0) {\n      iVar4 = unaff_EBX + 0x66713;\n    }\n    iVar6 = unaff_EBX + 0x5c78b;\n  }" { (if_statement "if ((param_4 == '\0') && (extraout_EDI[0x5d] != 0)) {\n      iVar4 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2);\n      if (iVar4 != 0) {\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_00021878;\n      }\nLAB_0002181a:\n      (**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(extraout_EDI[0xaa]);\n      iVar3 = curl_maprintf(unaff_EBX + 0x5c7d7,extraout_EDI[0x5d]);\n      extraout_EDI[0xaa] = iVar3;\n      if (iVar3 == 0) goto LAB_00021b67;\n      iVar3 = unaff_EBX + 0x5c792;\n    }" if (parenthesized_expression "((param_4 == '\0') && (extraout_EDI[0x5d] != 0))" ( (binary_expression "(param_4 == '\0') && (extraout_EDI[0x5d] != 0)" (parenthesized_expression "(param_4 == '\0')" ( (binary_expression "param_4 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(extraout_EDI[0x5d] != 0)" ( (binary_expression "extraout_EDI[0x5d] != 0" (subscript_expression "extraout_EDI[0x5d]" identifier [ number_literal ]) != number_literal) ))) )) (compound_statement "{\n      iVar4 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2);\n      if (iVar4 != 0) {\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_00021878;\n      }\nLAB_0002181a:\n      (**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(extraout_EDI[0xaa]);\n      iVar3 = curl_maprintf(unaff_EBX + 0x5c7d7,extraout_EDI[0x5d]);\n      extraout_EDI[0xaa] = iVar3;\n      if (iVar3 == 0) goto LAB_00021b67;\n      iVar3 = unaff_EBX + 0x5c792;\n    }" { (expression_statement "iVar4 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2);" (assignment_expression "iVar4 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2)" identifier = (call_expression "FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2)" identifier (argument_list "(extraout_EDI,unaff_EBX + 0x5c7f2)" ( identifier , (binary_expression "unaff_EBX + 0x5c7f2" identifier + number_literal) )))) ;) (if_statement "if (iVar4 != 0) {\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_00021878;\n      }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_00021878;\n      }" { (expression_statement "*(undefined1 *)(param_2 + 0xc) = 1;" (assignment_expression "*(undefined1 *)(param_2 + 0xc) = 1" (pointer_expression "*(undefined1 *)(param_2 + 0xc)" * (cast_expression "(undefined1 *)(param_2 + 0xc)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) = number_literal) ;) (goto_statement "goto LAB_00021878;" goto statement_identifier ;) })) (labeled_statement "LAB_0002181a:\n      (**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(extraout_EDI[0xaa]);" statement_identifier : (expression_statement "(**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(extraout_EDI[0xaa]);" (call_expression "(**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(extraout_EDI[0xaa])" (parenthesized_expression "(**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))" ( (pointer_expression "**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e)" * (pointer_expression "*(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e)" * (cast_expression "(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e)" ( (binary_expression "BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e" (binary_expression "BYTE_ARRAY_0008f7e1 + unaff_EBX" identifier + identifier) + number_literal) ))))) )) (argument_list "(extraout_EDI[0xaa])" ( (subscript_expression "extraout_EDI[0xaa]" identifier [ number_literal ]) ))) ;)) (expression_statement "iVar3 = curl_maprintf(unaff_EBX + 0x5c7d7,extraout_EDI[0x5d]);" (assignment_expression "iVar3 = curl_maprintf(unaff_EBX + 0x5c7d7,extraout_EDI[0x5d])" identifier = (call_expression "curl_maprintf(unaff_EBX + 0x5c7d7,extraout_EDI[0x5d])" identifier (argument_list "(unaff_EBX + 0x5c7d7,extraout_EDI[0x5d])" ( (binary_expression "unaff_EBX + 0x5c7d7" identifier + number_literal) , (subscript_expression "extraout_EDI[0x5d]" identifier [ number_literal ]) )))) ;) (expression_statement "extraout_EDI[0xaa] = iVar3;" (assignment_expression "extraout_EDI[0xaa] = iVar3" (subscript_expression "extraout_EDI[0xaa]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar3 == 0) goto LAB_00021b67;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00021b67;" goto statement_identifier ;)) (expression_statement "iVar3 = unaff_EBX + 0x5c792;" (assignment_expression "iVar3 = unaff_EBX + 0x5c792" identifier = (binary_expression "unaff_EBX + 0x5c792" identifier + number_literal)) ;) })) (expression_statement "*(undefined1 *)(param_2 + 0xc) = 1;" (assignment_expression "*(undefined1 *)(param_2 + 0xc) = 1" (pointer_expression "*(undefined1 *)(param_2 + 0xc)" * (cast_expression "(undefined1 *)(param_2 + 0xc)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (param_4 != '\0') goto LAB_00021790;" if (parenthesized_expression "(param_4 != '\0')" ( (binary_expression "param_4 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_00021790;" goto statement_identifier ;)) (labeled_statement "LAB_00021878:\n    iVar4 = extraout_EDI[0x5a];" statement_identifier : (expression_statement "iVar4 = extraout_EDI[0x5a];" (assignment_expression "iVar4 = extraout_EDI[0x5a]" identifier = (subscript_expression "extraout_EDI[0x5a]" identifier [ number_literal ])) ;)) (if_statement "if (iVar4 == 0) {\n      iVar4 = unaff_EBX + 0x66713;\n    }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar4 = unaff_EBX + 0x66713;\n    }" { (expression_statement "iVar4 = unaff_EBX + 0x66713;" (assignment_expression "iVar4 = unaff_EBX + 0x66713" identifier = (binary_expression "unaff_EBX + 0x66713" identifier + number_literal)) ;) })) (expression_statement "iVar6 = unaff_EBX + 0x5c78b;" (assignment_expression "iVar6 = unaff_EBX + 0x5c78b" identifier = (binary_expression "unaff_EBX + 0x5c78b" identifier + number_literal)) ;) }) (else_clause "else {\n    if (param_4 == '\0') goto LAB_00021878;\nLAB_00021790:\n    iVar4 = extraout_EDI[0x3b];\n    if (iVar4 == 0) {\n      iVar4 = unaff_EBX + 0x66713;\n    }\n    iVar6 = unaff_EBX + 0x5c785;\n  }" else (compound_statement "{\n    if (param_4 == '\0') goto LAB_00021878;\nLAB_00021790:\n    iVar4 = extraout_EDI[0x3b];\n    if (iVar4 == 0) {\n      iVar4 = unaff_EBX + 0x66713;\n    }\n    iVar6 = unaff_EBX + 0x5c785;\n  }" { (if_statement "if (param_4 == '\0') goto LAB_00021878;" if (parenthesized_expression "(param_4 == '\0')" ( (binary_expression "param_4 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_00021878;" goto statement_identifier ;)) (labeled_statement "LAB_00021790:\n    iVar4 = extraout_EDI[0x3b];" statement_identifier : (expression_statement "iVar4 = extraout_EDI[0x3b];" (assignment_expression "iVar4 = extraout_EDI[0x3b]" identifier = (subscript_expression "extraout_EDI[0x3b]" identifier [ number_literal ])) ;)) (if_statement "if (iVar4 == 0) {\n      iVar4 = unaff_EBX + 0x66713;\n    }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar4 = unaff_EBX + 0x66713;\n    }" { (expression_statement "iVar4 = unaff_EBX + 0x66713;" (assignment_expression "iVar4 = unaff_EBX + 0x66713" identifier = (binary_expression "unaff_EBX + 0x66713" identifier + number_literal)) ;) })) (expression_statement "iVar6 = unaff_EBX + 0x5c785;" (assignment_expression "iVar6 = unaff_EBX + 0x5c785" identifier = (binary_expression "unaff_EBX + 0x5c785" identifier + number_literal)) ;) })))) (expression_statement "FUN_00027140(iVar2,unaff_EBX + 0x5c20f,iVar6,iVar3,iVar4);" (call_expression "FUN_00027140(iVar2,unaff_EBX + 0x5c20f,iVar6,iVar3,iVar4)" identifier (argument_list "(iVar2,unaff_EBX + 0x5c20f,iVar6,iVar3,iVar4)" ( identifier , (binary_expression "unaff_EBX + 0x5c20f" identifier + number_literal) , identifier , identifier , identifier ))) ;) (expression_statement "*(byte *)(param_2 + 0xd) = *(byte *)(param_2 + 0xc) ^ 1;" (assignment_expression "*(byte *)(param_2 + 0xd) = *(byte *)(param_2 + 0xc) ^ 1" (pointer_expression "*(byte *)(param_2 + 0xd)" * (cast_expression "(byte *)(param_2 + 0xd)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xd)" ( (binary_expression "param_2 + 0xd" identifier + number_literal) )))) = (binary_expression "*(byte *)(param_2 + 0xc) ^ 1" (pointer_expression "*(byte *)(param_2 + 0xc)" * (cast_expression "(byte *)(param_2 + 0xc)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) ^ number_literal)) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (labeled_statement "LAB_000216e6:\n  if (local_24 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0007c1a0();\n  }" statement_identifier : (if_statement "if (local_24 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0007c1a0();\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_0007c1a0();\n  }" { comment (expression_statement "FUN_0007c1a0();" (call_expression "FUN_0007c1a0()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nCURLcode __regparm3\noutput_auth_headers(connectdata *conn,auth *authstatus,char *request,char *path,_Bool proxy)\n\n{\n  Curl_easy *data;\n  ulong uVar1;\n  CURLcode CVar2;\n  char *pcVar3;\n  char *pcVar4;\n  size_t insize;\n  char *pcVar5;\n  negotiatedata *pnVar6;\n  int in_GS_OFFSET;\n  dynamically_allocated_data *local_40;\n  Curl_easy *local_34;\n  size_t size;\n  char *authorization;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2165d;\n  data = conn->data;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  pnVar6 = &(data->state).negotiate;\n  if (proxy) {\n    pnVar6 = &(data->state).proxyneg;\n  }\n  uVar1 = authstatus->picked;\n  pnVar6->state = CURLDIGESTALGO_MD5;\n  if (uVar1 != 4) {\n    if (uVar1 == 8) {\n      CVar2 = Curl_output_ntlm(conn,proxy);\n      if (CVar2 != CURLE_OK) goto LAB_000216e6;\n      pcVar3 = "NTLM";\n      goto LAB_0002177e;\n    }\n    if (uVar1 == 0x20) {\n      CVar2 = Curl_output_ntlm_wb(conn,proxy);\n      if (CVar2 != CURLE_OK) goto LAB_000216e6;\n      pcVar3 = "NTLM_WB";\n      goto LAB_0002177e;\n    }\n    if (uVar1 == 2) {\n      CVar2 = Curl_output_digest(conn,proxy,(uchar *)request,(uchar *)path);\n      if (CVar2 != CURLE_OK) goto LAB_000216e6;\n      pcVar3 = "Digest";\n      goto LAB_0002177e;\n    }\n    if (uVar1 != 1) {\n      if (uVar1 != 0x40) {\nLAB_000216e0:\n        authstatus->multipass = false;\n        CVar2 = CURLE_OK;\n        goto LAB_000216e6;\n      }\n      if ((proxy) || (conn->oauth_bearer == (char *)0x0)) {\nLAB_000216dc:\n        authstatus->done = true;\n        goto LAB_000216e0;\n      }\nLAB_000217ef:\n      pcVar3 = Curl_checkheaders(conn,"Authorization:");\n      if (pcVar3 != (char *)0x0) goto LAB_000216dc;\n      goto LAB_0002181a;\n    }\n    if (proxy) {\n      if (((conn->bits).proxy_user_passwd == false) ||\n         (pcVar3 = Curl_checkProxyheaders(conn,"Proxy-authorization"), pcVar3 != (char *)0x0))\n      goto LAB_000216dc;\n      local_34 = conn->data;\n      pcVar3 = (conn->http_proxy).user;\n      local_40 = &conn->allocptr;\n      pcVar4 = (conn->http_proxy).passwd;\n    }\n    else {\n      if ((conn->bits).user_passwd == false) goto LAB_000216dc;\n      pcVar3 = Curl_checkheaders(conn,"Authorization");\n      if (pcVar3 != (char *)0x0) {\n        authstatus->done = true;\n        if ((authstatus->picked == 0x40) && (conn->oauth_bearer != (char *)0x0)) goto LAB_000217ef;\n        goto LAB_000216e0;\n      }\n      local_34 = conn->data;\n      pcVar3 = conn->user;\n      local_40 = (dynamically_allocated_data *)&(conn->allocptr).userpwd;\n      pcVar4 = conn->passwd;\n    }\n    authorization = (char *)0x0;\n    size = 0;\n    pcVar4 = curl_maprintf("%s:%s",pcVar3,pcVar4);\n    if (pcVar4 != (char *)0x0) {\n      insize = strlen(pcVar4);\n      CVar2 = Curl_base64_encode(local_34,pcVar4,insize,&authorization,&size);\n      if (CVar2 != CURLE_OK) {\n        (*Curl_cfree)(pcVar4);\n        goto LAB_000216e6;\n      }\n      if (authorization == (char *)0x0) {\n        (*Curl_cfree)(pcVar4);\n        CVar2 = CURLE_REMOTE_ACCESS_DENIED;\n        goto LAB_000216e6;\n      }\n      (*Curl_cfree)(local_40->proxyuserpwd);\n      pcVar3 = "Proxy-";\n      if (!proxy) {\n        pcVar3 = "";\n      }\n      pcVar3 = curl_maprintf("%sAuthorization: Basic %s\r\n",pcVar3,authorization);\n      local_40->proxyuserpwd = pcVar3;\n      (*Curl_cfree)(authorization);\n      if (local_40->proxyuserpwd != (char *)0x0) {\n        pcVar3 = "Basic";\n        (*Curl_cfree)(pcVar4);\n        authstatus->done = true;\n        goto LAB_0002177e;\n      }\n      (*Curl_cfree)(pcVar4);\n    }\nLAB_00021b67:\n    CVar2 = CURLE_OUT_OF_MEMORY;\n    goto LAB_000216e6;\n  }\n  if ((pnVar6->context == (gss_ctx_id_t)0x0) || ((pnVar6->status & 0xffff0000) != 0))\n  goto LAB_000216e0;\n  CVar2 = Curl_output_negotiate(conn,proxy);\n  if (CVar2 != CURLE_OK) goto LAB_000216e6;\n  authstatus->done = true;\n  pnVar6->state = CURLDIGESTALGO_SHA256;\n  pcVar3 = "Negotiate";\nLAB_0002177e:\n  if (authstatus->picked == 0x40) {\n    if ((!proxy) && (conn->oauth_bearer != (char *)0x0)) {\n      pcVar4 = Curl_checkheaders(conn,"Authorization:");\n      if (pcVar4 != (char *)0x0) {\n        authstatus->done = true;\n        goto LAB_00021878;\n      }\nLAB_0002181a:\n      (*Curl_cfree)((conn->allocptr).userpwd);\n      pcVar3 = curl_maprintf("Authorization: Bearer %s\r\n",conn->oauth_bearer);\n      (conn->allocptr).userpwd = pcVar3;\n      if (pcVar3 == (char *)0x0) goto LAB_00021b67;\n      pcVar3 = "Bearer";\n    }\n    authstatus->done = true;\n    if (proxy) goto LAB_00021790;\nLAB_00021878:\n    pcVar4 = conn->user;\n    if (pcVar4 == (char *)0x0) {\n      pcVar4 = "";\n    }\n    pcVar5 = "Server";\n  }\n  else {\n    if (!proxy) goto LAB_00021878;\nLAB_00021790:\n    pcVar4 = (conn->http_proxy).user;\n    if (pcVar4 == (char *)0x0) {\n      pcVar4 = "";\n    }\n    pcVar5 = "Proxy";\n  }\n  Curl_infof(data,"%s auth using %s with user \'%s\'\n",pcVar5,pcVar3,pcVar4);\n  authstatus->multipass = (_Bool)(authstatus->done ^ 1);\n  CVar2 = CURLE_OK;\nLAB_000216e6:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return CVar2;\n}\n\n" comment comment (function_definition "CURLcode __regparm3\noutput_auth_headers(connectdata *conn,auth *authstatus,char *request,char *path,_Bool proxy)\n\n{\n  Curl_easy *data;\n  ulong uVar1;\n  CURLcode CVar2;\n  char *pcVar3;\n  char *pcVar4;\n  size_t insize;\n  char *pcVar5;\n  negotiatedata *pnVar6;\n  int in_GS_OFFSET;\n  dynamically_allocated_data *local_40;\n  Curl_easy *local_34;\n  size_t size;\n  char *authorization;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2165d;\n  data = conn->data;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  pnVar6 = &(data->state).negotiate;\n  if (proxy) {\n    pnVar6 = &(data->state).proxyneg;\n  }\n  uVar1 = authstatus->picked;\n  pnVar6->state = CURLDIGESTALGO_MD5;\n  if (uVar1 != 4) {\n    if (uVar1 == 8) {\n      CVar2 = Curl_output_ntlm(conn,proxy);\n      if (CVar2 != CURLE_OK) goto LAB_000216e6;\n      pcVar3 = "NTLM";\n      goto LAB_0002177e;\n    }\n    if (uVar1 == 0x20) {\n      CVar2 = Curl_output_ntlm_wb(conn,proxy);\n      if (CVar2 != CURLE_OK) goto LAB_000216e6;\n      pcVar3 = "NTLM_WB";\n      goto LAB_0002177e;\n    }\n    if (uVar1 == 2) {\n      CVar2 = Curl_output_digest(conn,proxy,(uchar *)request,(uchar *)path);\n      if (CVar2 != CURLE_OK) goto LAB_000216e6;\n      pcVar3 = "Digest";\n      goto LAB_0002177e;\n    }\n    if (uVar1 != 1) {\n      if (uVar1 != 0x40) {\nLAB_000216e0:\n        authstatus->multipass = false;\n        CVar2 = CURLE_OK;\n        goto LAB_000216e6;\n      }\n      if ((proxy) || (conn->oauth_bearer == (char *)0x0)) {\nLAB_000216dc:\n        authstatus->done = true;\n        goto LAB_000216e0;\n      }\nLAB_000217ef:\n      pcVar3 = Curl_checkheaders(conn,"Authorization:");\n      if (pcVar3 != (char *)0x0) goto LAB_000216dc;\n      goto LAB_0002181a;\n    }\n    if (proxy) {\n      if (((conn->bits).proxy_user_passwd == false) ||\n         (pcVar3 = Curl_checkProxyheaders(conn,"Proxy-authorization"), pcVar3 != (char *)0x0))\n      goto LAB_000216dc;\n      local_34 = conn->data;\n      pcVar3 = (conn->http_proxy).user;\n      local_40 = &conn->allocptr;\n      pcVar4 = (conn->http_proxy).passwd;\n    }\n    else {\n      if ((conn->bits).user_passwd == false) goto LAB_000216dc;\n      pcVar3 = Curl_checkheaders(conn,"Authorization");\n      if (pcVar3 != (char *)0x0) {\n        authstatus->done = true;\n        if ((authstatus->picked == 0x40) && (conn->oauth_bearer != (char *)0x0)) goto LAB_000217ef;\n        goto LAB_000216e0;\n      }\n      local_34 = conn->data;\n      pcVar3 = conn->user;\n      local_40 = (dynamically_allocated_data *)&(conn->allocptr).userpwd;\n      pcVar4 = conn->passwd;\n    }\n    authorization = (char *)0x0;\n    size = 0;\n    pcVar4 = curl_maprintf("%s:%s",pcVar3,pcVar4);\n    if (pcVar4 != (char *)0x0) {\n      insize = strlen(pcVar4);\n      CVar2 = Curl_base64_encode(local_34,pcVar4,insize,&authorization,&size);\n      if (CVar2 != CURLE_OK) {\n        (*Curl_cfree)(pcVar4);\n        goto LAB_000216e6;\n      }\n      if (authorization == (char *)0x0) {\n        (*Curl_cfree)(pcVar4);\n        CVar2 = CURLE_REMOTE_ACCESS_DENIED;\n        goto LAB_000216e6;\n      }\n      (*Curl_cfree)(local_40->proxyuserpwd);\n      pcVar3 = "Proxy-";\n      if (!proxy) {\n        pcVar3 = "";\n      }\n      pcVar3 = curl_maprintf("%sAuthorization: Basic %s\r\n",pcVar3,authorization);\n      local_40->proxyuserpwd = pcVar3;\n      (*Curl_cfree)(authorization);\n      if (local_40->proxyuserpwd != (char *)0x0) {\n        pcVar3 = "Basic";\n        (*Curl_cfree)(pcVar4);\n        authstatus->done = true;\n        goto LAB_0002177e;\n      }\n      (*Curl_cfree)(pcVar4);\n    }\nLAB_00021b67:\n    CVar2 = CURLE_OUT_OF_MEMORY;\n    goto LAB_000216e6;\n  }\n  if ((pnVar6->context == (gss_ctx_id_t)0x0) || ((pnVar6->status & 0xffff0000) != 0))\n  goto LAB_000216e0;\n  CVar2 = Curl_output_negotiate(conn,proxy);\n  if (CVar2 != CURLE_OK) goto LAB_000216e6;\n  authstatus->done = true;\n  pnVar6->state = CURLDIGESTALGO_SHA256;\n  pcVar3 = "Negotiate";\nLAB_0002177e:\n  if (authstatus->picked == 0x40) {\n    if ((!proxy) && (conn->oauth_bearer != (char *)0x0)) {\n      pcVar4 = Curl_checkheaders(conn,"Authorization:");\n      if (pcVar4 != (char *)0x0) {\n        authstatus->done = true;\n        goto LAB_00021878;\n      }\nLAB_0002181a:\n      (*Curl_cfree)((conn->allocptr).userpwd);\n      pcVar3 = curl_maprintf("Authorization: Bearer %s\r\n",conn->oauth_bearer);\n      (conn->allocptr).userpwd = pcVar3;\n      if (pcVar3 == (char *)0x0) goto LAB_00021b67;\n      pcVar3 = "Bearer";\n    }\n    authstatus->done = true;\n    if (proxy) goto LAB_00021790;\nLAB_00021878:\n    pcVar4 = conn->user;\n    if (pcVar4 == (char *)0x0) {\n      pcVar4 = "";\n    }\n    pcVar5 = "Server";\n  }\n  else {\n    if (!proxy) goto LAB_00021878;\nLAB_00021790:\n    pcVar4 = (conn->http_proxy).user;\n    if (pcVar4 == (char *)0x0) {\n      pcVar4 = "";\n    }\n    pcVar5 = "Proxy";\n  }\n  Curl_infof(data,"%s auth using %s with user \'%s\'\n",pcVar5,pcVar3,pcVar4);\n  authstatus->multipass = (_Bool)(authstatus->done ^ 1);\n  CVar2 = CURLE_OK;\nLAB_000216e6:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return CVar2;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "output_auth_headers(connectdata *conn,auth *authstatus,char *request,char *path,_Bool proxy)" identifier (parameter_list "(connectdata *conn,auth *authstatus,char *request,char *path,_Bool proxy)" ( (parameter_declaration "connectdata *conn" type_identifier (pointer_declarator "*conn" * identifier)) , (parameter_declaration "auth *authstatus" type_identifier (pointer_declarator "*authstatus" * identifier)) , (parameter_declaration "char *request" primitive_type (pointer_declarator "*request" * identifier)) , (parameter_declaration "char *path" primitive_type (pointer_declarator "*path" * identifier)) , (parameter_declaration "_Bool proxy" type_identifier identifier) ))) (compound_statement "{\n  Curl_easy *data;\n  ulong uVar1;\n  CURLcode CVar2;\n  char *pcVar3;\n  char *pcVar4;\n  size_t insize;\n  char *pcVar5;\n  negotiatedata *pnVar6;\n  int in_GS_OFFSET;\n  dynamically_allocated_data *local_40;\n  Curl_easy *local_34;\n  size_t size;\n  char *authorization;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2165d;\n  data = conn->data;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  pnVar6 = &(data->state).negotiate;\n  if (proxy) {\n    pnVar6 = &(data->state).proxyneg;\n  }\n  uVar1 = authstatus->picked;\n  pnVar6->state = CURLDIGESTALGO_MD5;\n  if (uVar1 != 4) {\n    if (uVar1 == 8) {\n      CVar2 = Curl_output_ntlm(conn,proxy);\n      if (CVar2 != CURLE_OK) goto LAB_000216e6;\n      pcVar3 = "NTLM";\n      goto LAB_0002177e;\n    }\n    if (uVar1 == 0x20) {\n      CVar2 = Curl_output_ntlm_wb(conn,proxy);\n      if (CVar2 != CURLE_OK) goto LAB_000216e6;\n      pcVar3 = "NTLM_WB";\n      goto LAB_0002177e;\n    }\n    if (uVar1 == 2) {\n      CVar2 = Curl_output_digest(conn,proxy,(uchar *)request,(uchar *)path);\n      if (CVar2 != CURLE_OK) goto LAB_000216e6;\n      pcVar3 = "Digest";\n      goto LAB_0002177e;\n    }\n    if (uVar1 != 1) {\n      if (uVar1 != 0x40) {\nLAB_000216e0:\n        authstatus->multipass = false;\n        CVar2 = CURLE_OK;\n        goto LAB_000216e6;\n      }\n      if ((proxy) || (conn->oauth_bearer == (char *)0x0)) {\nLAB_000216dc:\n        authstatus->done = true;\n        goto LAB_000216e0;\n      }\nLAB_000217ef:\n      pcVar3 = Curl_checkheaders(conn,"Authorization:");\n      if (pcVar3 != (char *)0x0) goto LAB_000216dc;\n      goto LAB_0002181a;\n    }\n    if (proxy) {\n      if (((conn->bits).proxy_user_passwd == false) ||\n         (pcVar3 = Curl_checkProxyheaders(conn,"Proxy-authorization"), pcVar3 != (char *)0x0))\n      goto LAB_000216dc;\n      local_34 = conn->data;\n      pcVar3 = (conn->http_proxy).user;\n      local_40 = &conn->allocptr;\n      pcVar4 = (conn->http_proxy).passwd;\n    }\n    else {\n      if ((conn->bits).user_passwd == false) goto LAB_000216dc;\n      pcVar3 = Curl_checkheaders(conn,"Authorization");\n      if (pcVar3 != (char *)0x0) {\n        authstatus->done = true;\n        if ((authstatus->picked == 0x40) && (conn->oauth_bearer != (char *)0x0)) goto LAB_000217ef;\n        goto LAB_000216e0;\n      }\n      local_34 = conn->data;\n      pcVar3 = conn->user;\n      local_40 = (dynamically_allocated_data *)&(conn->allocptr).userpwd;\n      pcVar4 = conn->passwd;\n    }\n    authorization = (char *)0x0;\n    size = 0;\n    pcVar4 = curl_maprintf("%s:%s",pcVar3,pcVar4);\n    if (pcVar4 != (char *)0x0) {\n      insize = strlen(pcVar4);\n      CVar2 = Curl_base64_encode(local_34,pcVar4,insize,&authorization,&size);\n      if (CVar2 != CURLE_OK) {\n        (*Curl_cfree)(pcVar4);\n        goto LAB_000216e6;\n      }\n      if (authorization == (char *)0x0) {\n        (*Curl_cfree)(pcVar4);\n        CVar2 = CURLE_REMOTE_ACCESS_DENIED;\n        goto LAB_000216e6;\n      }\n      (*Curl_cfree)(local_40->proxyuserpwd);\n      pcVar3 = "Proxy-";\n      if (!proxy) {\n        pcVar3 = "";\n      }\n      pcVar3 = curl_maprintf("%sAuthorization: Basic %s\r\n",pcVar3,authorization);\n      local_40->proxyuserpwd = pcVar3;\n      (*Curl_cfree)(authorization);\n      if (local_40->proxyuserpwd != (char *)0x0) {\n        pcVar3 = "Basic";\n        (*Curl_cfree)(pcVar4);\n        authstatus->done = true;\n        goto LAB_0002177e;\n      }\n      (*Curl_cfree)(pcVar4);\n    }\nLAB_00021b67:\n    CVar2 = CURLE_OUT_OF_MEMORY;\n    goto LAB_000216e6;\n  }\n  if ((pnVar6->context == (gss_ctx_id_t)0x0) || ((pnVar6->status & 0xffff0000) != 0))\n  goto LAB_000216e0;\n  CVar2 = Curl_output_negotiate(conn,proxy);\n  if (CVar2 != CURLE_OK) goto LAB_000216e6;\n  authstatus->done = true;\n  pnVar6->state = CURLDIGESTALGO_SHA256;\n  pcVar3 = "Negotiate";\nLAB_0002177e:\n  if (authstatus->picked == 0x40) {\n    if ((!proxy) && (conn->oauth_bearer != (char *)0x0)) {\n      pcVar4 = Curl_checkheaders(conn,"Authorization:");\n      if (pcVar4 != (char *)0x0) {\n        authstatus->done = true;\n        goto LAB_00021878;\n      }\nLAB_0002181a:\n      (*Curl_cfree)((conn->allocptr).userpwd);\n      pcVar3 = curl_maprintf("Authorization: Bearer %s\r\n",conn->oauth_bearer);\n      (conn->allocptr).userpwd = pcVar3;\n      if (pcVar3 == (char *)0x0) goto LAB_00021b67;\n      pcVar3 = "Bearer";\n    }\n    authstatus->done = true;\n    if (proxy) goto LAB_00021790;\nLAB_00021878:\n    pcVar4 = conn->user;\n    if (pcVar4 == (char *)0x0) {\n      pcVar4 = "";\n    }\n    pcVar5 = "Server";\n  }\n  else {\n    if (!proxy) goto LAB_00021878;\nLAB_00021790:\n    pcVar4 = (conn->http_proxy).user;\n    if (pcVar4 == (char *)0x0) {\n      pcVar4 = "";\n    }\n    pcVar5 = "Proxy";\n  }\n  Curl_infof(data,"%s auth using %s with user \'%s\'\n",pcVar5,pcVar3,pcVar4);\n  authstatus->multipass = (_Bool)(authstatus->done ^ 1);\n  CVar2 = CURLE_OK;\nLAB_000216e6:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return CVar2;\n}" { (declaration "Curl_easy *data;" type_identifier (pointer_declarator "*data" * identifier) ;) (declaration "ulong uVar1;" type_identifier identifier ;) (declaration "CURLcode CVar2;" type_identifier identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "size_t insize;" primitive_type identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "negotiatedata *pnVar6;" type_identifier (pointer_declarator "*pnVar6" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "dynamically_allocated_data *local_40;" type_identifier (pointer_declarator "*local_40" * identifier) ;) (declaration "Curl_easy *local_34;" type_identifier (pointer_declarator "*local_34" * identifier) ;) (declaration "size_t size;" primitive_type identifier ;) (declaration "char *authorization;" primitive_type (pointer_declarator "*authorization" * identifier) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x2165d;" (assignment_expression "uStack_14 = 0x2165d" identifier = number_literal) ;) (expression_statement "data = conn->data;" (assignment_expression "data = conn->data" identifier = (field_expression "conn->data" identifier -> field_identifier)) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(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 "pnVar6 = &(data->state).negotiate;" (assignment_expression "pnVar6 = &(data->state).negotiate" identifier = (pointer_expression "&(data->state).negotiate" & (field_expression "(data->state).negotiate" (parenthesized_expression "(data->state)" ( (field_expression "data->state" identifier -> field_identifier) )) . field_identifier))) ;) (if_statement "if (proxy) {\n    pnVar6 = &(data->state).proxyneg;\n  }" if (parenthesized_expression "(proxy)" ( identifier )) (compound_statement "{\n    pnVar6 = &(data->state).proxyneg;\n  }" { (expression_statement "pnVar6 = &(data->state).proxyneg;" (assignment_expression "pnVar6 = &(data->state).proxyneg" identifier = (pointer_expression "&(data->state).proxyneg" & (field_expression "(data->state).proxyneg" (parenthesized_expression "(data->state)" ( (field_expression "data->state" identifier -> field_identifier) )) . field_identifier))) ;) })) (expression_statement "uVar1 = authstatus->picked;" (assignment_expression "uVar1 = authstatus->picked" identifier = (field_expression "authstatus->picked" identifier -> field_identifier)) ;) (expression_statement "pnVar6->state = CURLDIGESTALGO_MD5;" (assignment_expression "pnVar6->state = CURLDIGESTALGO_MD5" (field_expression "pnVar6->state" identifier -> field_identifier) = identifier) ;) (if_statement "if (uVar1 != 4) {\n    if (uVar1 == 8) {\n      CVar2 = Curl_output_ntlm(conn,proxy);\n      if (CVar2 != CURLE_OK) goto LAB_000216e6;\n      pcVar3 = "NTLM";\n      goto LAB_0002177e;\n    }\n    if (uVar1 == 0x20) {\n      CVar2 = Curl_output_ntlm_wb(conn,proxy);\n      if (CVar2 != CURLE_OK) goto LAB_000216e6;\n      pcVar3 = "NTLM_WB";\n      goto LAB_0002177e;\n    }\n    if (uVar1 == 2) {\n      CVar2 = Curl_output_digest(conn,proxy,(uchar *)request,(uchar *)path);\n      if (CVar2 != CURLE_OK) goto LAB_000216e6;\n      pcVar3 = "Digest";\n      goto LAB_0002177e;\n    }\n    if (uVar1 != 1) {\n      if (uVar1 != 0x40) {\nLAB_000216e0:\n        authstatus->multipass = false;\n        CVar2 = CURLE_OK;\n        goto LAB_000216e6;\n      }\n      if ((proxy) || (conn->oauth_bearer == (char *)0x0)) {\nLAB_000216dc:\n        authstatus->done = true;\n        goto LAB_000216e0;\n      }\nLAB_000217ef:\n      pcVar3 = Curl_checkheaders(conn,"Authorization:");\n      if (pcVar3 != (char *)0x0) goto LAB_000216dc;\n      goto LAB_0002181a;\n    }\n    if (proxy) {\n      if (((conn->bits).proxy_user_passwd == false) ||\n         (pcVar3 = Curl_checkProxyheaders(conn,"Proxy-authorization"), pcVar3 != (char *)0x0))\n      goto LAB_000216dc;\n      local_34 = conn->data;\n      pcVar3 = (conn->http_proxy).user;\n      local_40 = &conn->allocptr;\n      pcVar4 = (conn->http_proxy).passwd;\n    }\n    else {\n      if ((conn->bits).user_passwd == false) goto LAB_000216dc;\n      pcVar3 = Curl_checkheaders(conn,"Authorization");\n      if (pcVar3 != (char *)0x0) {\n        authstatus->done = true;\n        if ((authstatus->picked == 0x40) && (conn->oauth_bearer != (char *)0x0)) goto LAB_000217ef;\n        goto LAB_000216e0;\n      }\n      local_34 = conn->data;\n      pcVar3 = conn->user;\n      local_40 = (dynamically_allocated_data *)&(conn->allocptr).userpwd;\n      pcVar4 = conn->passwd;\n    }\n    authorization = (char *)0x0;\n    size = 0;\n    pcVar4 = curl_maprintf("%s:%s",pcVar3,pcVar4);\n    if (pcVar4 != (char *)0x0) {\n      insize = strlen(pcVar4);\n      CVar2 = Curl_base64_encode(local_34,pcVar4,insize,&authorization,&size);\n      if (CVar2 != CURLE_OK) {\n        (*Curl_cfree)(pcVar4);\n        goto LAB_000216e6;\n      }\n      if (authorization == (char *)0x0) {\n        (*Curl_cfree)(pcVar4);\n        CVar2 = CURLE_REMOTE_ACCESS_DENIED;\n        goto LAB_000216e6;\n      }\n      (*Curl_cfree)(local_40->proxyuserpwd);\n      pcVar3 = "Proxy-";\n      if (!proxy) {\n        pcVar3 = "";\n      }\n      pcVar3 = curl_maprintf("%sAuthorization: Basic %s\r\n",pcVar3,authorization);\n      local_40->proxyuserpwd = pcVar3;\n      (*Curl_cfree)(authorization);\n      if (local_40->proxyuserpwd != (char *)0x0) {\n        pcVar3 = "Basic";\n        (*Curl_cfree)(pcVar4);\n        authstatus->done = true;\n        goto LAB_0002177e;\n      }\n      (*Curl_cfree)(pcVar4);\n    }\nLAB_00021b67:\n    CVar2 = CURLE_OUT_OF_MEMORY;\n    goto LAB_000216e6;\n  }" if (parenthesized_expression "(uVar1 != 4)" ( (binary_expression "uVar1 != 4" identifier != number_literal) )) (compound_statement "{\n    if (uVar1 == 8) {\n      CVar2 = Curl_output_ntlm(conn,proxy);\n      if (CVar2 != CURLE_OK) goto LAB_000216e6;\n      pcVar3 = "NTLM";\n      goto LAB_0002177e;\n    }\n    if (uVar1 == 0x20) {\n      CVar2 = Curl_output_ntlm_wb(conn,proxy);\n      if (CVar2 != CURLE_OK) goto LAB_000216e6;\n      pcVar3 = "NTLM_WB";\n      goto LAB_0002177e;\n    }\n    if (uVar1 == 2) {\n      CVar2 = Curl_output_digest(conn,proxy,(uchar *)request,(uchar *)path);\n      if (CVar2 != CURLE_OK) goto LAB_000216e6;\n      pcVar3 = "Digest";\n      goto LAB_0002177e;\n    }\n    if (uVar1 != 1) {\n      if (uVar1 != 0x40) {\nLAB_000216e0:\n        authstatus->multipass = false;\n        CVar2 = CURLE_OK;\n        goto LAB_000216e6;\n      }\n      if ((proxy) || (conn->oauth_bearer == (char *)0x0)) {\nLAB_000216dc:\n        authstatus->done = true;\n        goto LAB_000216e0;\n      }\nLAB_000217ef:\n      pcVar3 = Curl_checkheaders(conn,"Authorization:");\n      if (pcVar3 != (char *)0x0) goto LAB_000216dc;\n      goto LAB_0002181a;\n    }\n    if (proxy) {\n      if (((conn->bits).proxy_user_passwd == false) ||\n         (pcVar3 = Curl_checkProxyheaders(conn,"Proxy-authorization"), pcVar3 != (char *)0x0))\n      goto LAB_000216dc;\n      local_34 = conn->data;\n      pcVar3 = (conn->http_proxy).user;\n      local_40 = &conn->allocptr;\n      pcVar4 = (conn->http_proxy).passwd;\n    }\n    else {\n      if ((conn->bits).user_passwd == false) goto LAB_000216dc;\n      pcVar3 = Curl_checkheaders(conn,"Authorization");\n      if (pcVar3 != (char *)0x0) {\n        authstatus->done = true;\n        if ((authstatus->picked == 0x40) && (conn->oauth_bearer != (char *)0x0)) goto LAB_000217ef;\n        goto LAB_000216e0;\n      }\n      local_34 = conn->data;\n      pcVar3 = conn->user;\n      local_40 = (dynamically_allocated_data *)&(conn->allocptr).userpwd;\n      pcVar4 = conn->passwd;\n    }\n    authorization = (char *)0x0;\n    size = 0;\n    pcVar4 = curl_maprintf("%s:%s",pcVar3,pcVar4);\n    if (pcVar4 != (char *)0x0) {\n      insize = strlen(pcVar4);\n      CVar2 = Curl_base64_encode(local_34,pcVar4,insize,&authorization,&size);\n      if (CVar2 != CURLE_OK) {\n        (*Curl_cfree)(pcVar4);\n        goto LAB_000216e6;\n      }\n      if (authorization == (char *)0x0) {\n        (*Curl_cfree)(pcVar4);\n        CVar2 = CURLE_REMOTE_ACCESS_DENIED;\n        goto LAB_000216e6;\n      }\n      (*Curl_cfree)(local_40->proxyuserpwd);\n      pcVar3 = "Proxy-";\n      if (!proxy) {\n        pcVar3 = "";\n      }\n      pcVar3 = curl_maprintf("%sAuthorization: Basic %s\r\n",pcVar3,authorization);\n      local_40->proxyuserpwd = pcVar3;\n      (*Curl_cfree)(authorization);\n      if (local_40->proxyuserpwd != (char *)0x0) {\n        pcVar3 = "Basic";\n        (*Curl_cfree)(pcVar4);\n        authstatus->done = true;\n        goto LAB_0002177e;\n      }\n      (*Curl_cfree)(pcVar4);\n    }\nLAB_00021b67:\n    CVar2 = CURLE_OUT_OF_MEMORY;\n    goto LAB_000216e6;\n  }" { (if_statement "if (uVar1 == 8) {\n      CVar2 = Curl_output_ntlm(conn,proxy);\n      if (CVar2 != CURLE_OK) goto LAB_000216e6;\n      pcVar3 = "NTLM";\n      goto LAB_0002177e;\n    }" if (parenthesized_expression "(uVar1 == 8)" ( (binary_expression "uVar1 == 8" identifier == number_literal) )) (compound_statement "{\n      CVar2 = Curl_output_ntlm(conn,proxy);\n      if (CVar2 != CURLE_OK) goto LAB_000216e6;\n      pcVar3 = "NTLM";\n      goto LAB_0002177e;\n    }" { (expression_statement "CVar2 = Curl_output_ntlm(conn,proxy);" (assignment_expression "CVar2 = Curl_output_ntlm(conn,proxy)" identifier = (call_expression "Curl_output_ntlm(conn,proxy)" identifier (argument_list "(conn,proxy)" ( identifier , identifier )))) ;) (if_statement "if (CVar2 != CURLE_OK) goto LAB_000216e6;" if (parenthesized_expression "(CVar2 != CURLE_OK)" ( (binary_expression "CVar2 != CURLE_OK" identifier != identifier) )) (goto_statement "goto LAB_000216e6;" goto statement_identifier ;)) (expression_statement "pcVar3 = "NTLM";" (assignment_expression "pcVar3 = "NTLM"" identifier = (string_literal ""NTLM"" " string_content ")) ;) (goto_statement "goto LAB_0002177e;" goto statement_identifier ;) })) (if_statement "if (uVar1 == 0x20) {\n      CVar2 = Curl_output_ntlm_wb(conn,proxy);\n      if (CVar2 != CURLE_OK) goto LAB_000216e6;\n      pcVar3 = "NTLM_WB";\n      goto LAB_0002177e;\n    }" if (parenthesized_expression "(uVar1 == 0x20)" ( (binary_expression "uVar1 == 0x20" identifier == number_literal) )) (compound_statement "{\n      CVar2 = Curl_output_ntlm_wb(conn,proxy);\n      if (CVar2 != CURLE_OK) goto LAB_000216e6;\n      pcVar3 = "NTLM_WB";\n      goto LAB_0002177e;\n    }" { (expression_statement "CVar2 = Curl_output_ntlm_wb(conn,proxy);" (assignment_expression "CVar2 = Curl_output_ntlm_wb(conn,proxy)" identifier = (call_expression "Curl_output_ntlm_wb(conn,proxy)" identifier (argument_list "(conn,proxy)" ( identifier , identifier )))) ;) (if_statement "if (CVar2 != CURLE_OK) goto LAB_000216e6;" if (parenthesized_expression "(CVar2 != CURLE_OK)" ( (binary_expression "CVar2 != CURLE_OK" identifier != identifier) )) (goto_statement "goto LAB_000216e6;" goto statement_identifier ;)) (expression_statement "pcVar3 = "NTLM_WB";" (assignment_expression "pcVar3 = "NTLM_WB"" identifier = (string_literal ""NTLM_WB"" " string_content ")) ;) (goto_statement "goto LAB_0002177e;" goto statement_identifier ;) })) (if_statement "if (uVar1 == 2) {\n      CVar2 = Curl_output_digest(conn,proxy,(uchar *)request,(uchar *)path);\n      if (CVar2 != CURLE_OK) goto LAB_000216e6;\n      pcVar3 = "Digest";\n      goto LAB_0002177e;\n    }" if (parenthesized_expression "(uVar1 == 2)" ( (binary_expression "uVar1 == 2" identifier == number_literal) )) (compound_statement "{\n      CVar2 = Curl_output_digest(conn,proxy,(uchar *)request,(uchar *)path);\n      if (CVar2 != CURLE_OK) goto LAB_000216e6;\n      pcVar3 = "Digest";\n      goto LAB_0002177e;\n    }" { (expression_statement "CVar2 = Curl_output_digest(conn,proxy,(uchar *)request,(uchar *)path);" (assignment_expression "CVar2 = Curl_output_digest(conn,proxy,(uchar *)request,(uchar *)path)" identifier = (call_expression "Curl_output_digest(conn,proxy,(uchar *)request,(uchar *)path)" identifier (argument_list "(conn,proxy,(uchar *)request,(uchar *)path)" ( identifier , identifier , (cast_expression "(uchar *)request" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(uchar *)path" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (if_statement "if (CVar2 != CURLE_OK) goto LAB_000216e6;" if (parenthesized_expression "(CVar2 != CURLE_OK)" ( (binary_expression "CVar2 != CURLE_OK" identifier != identifier) )) (goto_statement "goto LAB_000216e6;" goto statement_identifier ;)) (expression_statement "pcVar3 = "Digest";" (assignment_expression "pcVar3 = "Digest"" identifier = (string_literal ""Digest"" " string_content ")) ;) (goto_statement "goto LAB_0002177e;" goto statement_identifier ;) })) (if_statement "if (uVar1 != 1) {\n      if (uVar1 != 0x40) {\nLAB_000216e0:\n        authstatus->multipass = false;\n        CVar2 = CURLE_OK;\n        goto LAB_000216e6;\n      }\n      if ((proxy) || (conn->oauth_bearer == (char *)0x0)) {\nLAB_000216dc:\n        authstatus->done = true;\n        goto LAB_000216e0;\n      }\nLAB_000217ef:\n      pcVar3 = Curl_checkheaders(conn,"Authorization:");\n      if (pcVar3 != (char *)0x0) goto LAB_000216dc;\n      goto LAB_0002181a;\n    }" if (parenthesized_expression "(uVar1 != 1)" ( (binary_expression "uVar1 != 1" identifier != number_literal) )) (compound_statement "{\n      if (uVar1 != 0x40) {\nLAB_000216e0:\n        authstatus->multipass = false;\n        CVar2 = CURLE_OK;\n        goto LAB_000216e6;\n      }\n      if ((proxy) || (conn->oauth_bearer == (char *)0x0)) {\nLAB_000216dc:\n        authstatus->done = true;\n        goto LAB_000216e0;\n      }\nLAB_000217ef:\n      pcVar3 = Curl_checkheaders(conn,"Authorization:");\n      if (pcVar3 != (char *)0x0) goto LAB_000216dc;\n      goto LAB_0002181a;\n    }" { (if_statement "if (uVar1 != 0x40) {\nLAB_000216e0:\n        authstatus->multipass = false;\n        CVar2 = CURLE_OK;\n        goto LAB_000216e6;\n      }" if (parenthesized_expression "(uVar1 != 0x40)" ( (binary_expression "uVar1 != 0x40" identifier != number_literal) )) (compound_statement "{\nLAB_000216e0:\n        authstatus->multipass = false;\n        CVar2 = CURLE_OK;\n        goto LAB_000216e6;\n      }" { (labeled_statement "LAB_000216e0:\n        authstatus->multipass = false;" statement_identifier : (expression_statement "authstatus->multipass = false;" (assignment_expression "authstatus->multipass = false" (field_expression "authstatus->multipass" identifier -> field_identifier) = false) ;)) (expression_statement "CVar2 = CURLE_OK;" (assignment_expression "CVar2 = CURLE_OK" identifier = identifier) ;) (goto_statement "goto LAB_000216e6;" goto statement_identifier ;) })) (if_statement "if ((proxy) || (conn->oauth_bearer == (char *)0x0)) {\nLAB_000216dc:\n        authstatus->done = true;\n        goto LAB_000216e0;\n      }" if (parenthesized_expression "((proxy) || (conn->oauth_bearer == (char *)0x0))" ( (binary_expression "(proxy) || (conn->oauth_bearer == (char *)0x0)" (parenthesized_expression "(proxy)" ( identifier )) || (parenthesized_expression "(conn->oauth_bearer == (char *)0x0)" ( (binary_expression "conn->oauth_bearer == (char *)0x0" (field_expression "conn->oauth_bearer" identifier -> field_identifier) == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\nLAB_000216dc:\n        authstatus->done = true;\n        goto LAB_000216e0;\n      }" { (labeled_statement "LAB_000216dc:\n        authstatus->done = true;" statement_identifier : (expression_statement "authstatus->done = true;" (assignment_expression "authstatus->done = true" (field_expression "authstatus->done" identifier -> field_identifier) = true) ;)) (goto_statement "goto LAB_000216e0;" goto statement_identifier ;) })) (labeled_statement "LAB_000217ef:\n      pcVar3 = Curl_checkheaders(conn,"Authorization:");" statement_identifier : (expression_statement "pcVar3 = Curl_checkheaders(conn,"Authorization:");" (assignment_expression "pcVar3 = Curl_checkheaders(conn,"Authorization:")" identifier = (call_expression "Curl_checkheaders(conn,"Authorization:")" identifier (argument_list "(conn,"Authorization:")" ( identifier , (string_literal ""Authorization:"" " string_content ") )))) ;)) (if_statement "if (pcVar3 != (char *)0x0) goto LAB_000216dc;" if (parenthesized_expression "(pcVar3 != (char *)0x0)" ( (binary_expression "pcVar3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000216dc;" goto statement_identifier ;)) (goto_statement "goto LAB_0002181a;" goto statement_identifier ;) })) (if_statement "if (proxy) {\n      if (((conn->bits).proxy_user_passwd == false) ||\n         (pcVar3 = Curl_checkProxyheaders(conn,"Proxy-authorization"), pcVar3 != (char *)0x0))\n      goto LAB_000216dc;\n      local_34 = conn->data;\n      pcVar3 = (conn->http_proxy).user;\n      local_40 = &conn->allocptr;\n      pcVar4 = (conn->http_proxy).passwd;\n    }\n    else {\n      if ((conn->bits).user_passwd == false) goto LAB_000216dc;\n      pcVar3 = Curl_checkheaders(conn,"Authorization");\n      if (pcVar3 != (char *)0x0) {\n        authstatus->done = true;\n        if ((authstatus->picked == 0x40) && (conn->oauth_bearer != (char *)0x0)) goto LAB_000217ef;\n        goto LAB_000216e0;\n      }\n      local_34 = conn->data;\n      pcVar3 = conn->user;\n      local_40 = (dynamically_allocated_data *)&(conn->allocptr).userpwd;\n      pcVar4 = conn->passwd;\n    }" if (parenthesized_expression "(proxy)" ( identifier )) (compound_statement "{\n      if (((conn->bits).proxy_user_passwd == false) ||\n         (pcVar3 = Curl_checkProxyheaders(conn,"Proxy-authorization"), pcVar3 != (char *)0x0))\n      goto LAB_000216dc;\n      local_34 = conn->data;\n      pcVar3 = (conn->http_proxy).user;\n      local_40 = &conn->allocptr;\n      pcVar4 = (conn->http_proxy).passwd;\n    }" { (if_statement "if (((conn->bits).proxy_user_passwd == false) ||\n         (pcVar3 = Curl_checkProxyheaders(conn,"Proxy-authorization"), pcVar3 != (char *)0x0))\n      goto LAB_000216dc;" if (parenthesized_expression "(((conn->bits).proxy_user_passwd == false) ||\n         (pcVar3 = Curl_checkProxyheaders(conn,"Proxy-authorization"), pcVar3 != (char *)0x0))" ( (binary_expression "((conn->bits).proxy_user_passwd == false) ||\n         (pcVar3 = Curl_checkProxyheaders(conn,"Proxy-authorization"), pcVar3 != (char *)0x0)" (parenthesized_expression "((conn->bits).proxy_user_passwd == false)" ( (binary_expression "(conn->bits).proxy_user_passwd == false" (field_expression "(conn->bits).proxy_user_passwd" (parenthesized_expression "(conn->bits)" ( (field_expression "conn->bits" identifier -> field_identifier) )) . field_identifier) == false) )) || (parenthesized_expression "(pcVar3 = Curl_checkProxyheaders(conn,"Proxy-authorization"), pcVar3 != (char *)0x0)" ( (comma_expression "pcVar3 = Curl_checkProxyheaders(conn,"Proxy-authorization"), pcVar3 != (char *)0x0" (assignment_expression "pcVar3 = Curl_checkProxyheaders(conn,"Proxy-authorization")" identifier = (call_expression "Curl_checkProxyheaders(conn,"Proxy-authorization")" identifier (argument_list "(conn,"Proxy-authorization")" ( identifier , (string_literal ""Proxy-authorization"" " string_content ") )))) , (binary_expression "pcVar3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (goto_statement "goto LAB_000216dc;" goto statement_identifier ;)) (expression_statement "local_34 = conn->data;" (assignment_expression "local_34 = conn->data" identifier = (field_expression "conn->data" identifier -> field_identifier)) ;) (expression_statement "pcVar3 = (conn->http_proxy).user;" (assignment_expression "pcVar3 = (conn->http_proxy).user" identifier = (field_expression "(conn->http_proxy).user" (parenthesized_expression "(conn->http_proxy)" ( (field_expression "conn->http_proxy" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "local_40 = &conn->allocptr;" (assignment_expression "local_40 = &conn->allocptr" identifier = (pointer_expression "&conn->allocptr" & (field_expression "conn->allocptr" identifier -> field_identifier))) ;) (expression_statement "pcVar4 = (conn->http_proxy).passwd;" (assignment_expression "pcVar4 = (conn->http_proxy).passwd" identifier = (field_expression "(conn->http_proxy).passwd" (parenthesized_expression "(conn->http_proxy)" ( (field_expression "conn->http_proxy" identifier -> field_identifier) )) . field_identifier)) ;) }) (else_clause "else {\n      if ((conn->bits).user_passwd == false) goto LAB_000216dc;\n      pcVar3 = Curl_checkheaders(conn,"Authorization");\n      if (pcVar3 != (char *)0x0) {\n        authstatus->done = true;\n        if ((authstatus->picked == 0x40) && (conn->oauth_bearer != (char *)0x0)) goto LAB_000217ef;\n        goto LAB_000216e0;\n      }\n      local_34 = conn->data;\n      pcVar3 = conn->user;\n      local_40 = (dynamically_allocated_data *)&(conn->allocptr).userpwd;\n      pcVar4 = conn->passwd;\n    }" else (compound_statement "{\n      if ((conn->bits).user_passwd == false) goto LAB_000216dc;\n      pcVar3 = Curl_checkheaders(conn,"Authorization");\n      if (pcVar3 != (char *)0x0) {\n        authstatus->done = true;\n        if ((authstatus->picked == 0x40) && (conn->oauth_bearer != (char *)0x0)) goto LAB_000217ef;\n        goto LAB_000216e0;\n      }\n      local_34 = conn->data;\n      pcVar3 = conn->user;\n      local_40 = (dynamically_allocated_data *)&(conn->allocptr).userpwd;\n      pcVar4 = conn->passwd;\n    }" { (if_statement "if ((conn->bits).user_passwd == false) goto LAB_000216dc;" if (parenthesized_expression "((conn->bits).user_passwd == false)" ( (binary_expression "(conn->bits).user_passwd == false" (field_expression "(conn->bits).user_passwd" (parenthesized_expression "(conn->bits)" ( (field_expression "conn->bits" identifier -> field_identifier) )) . field_identifier) == false) )) (goto_statement "goto LAB_000216dc;" goto statement_identifier ;)) (expression_statement "pcVar3 = Curl_checkheaders(conn,"Authorization");" (assignment_expression "pcVar3 = Curl_checkheaders(conn,"Authorization")" identifier = (call_expression "Curl_checkheaders(conn,"Authorization")" identifier (argument_list "(conn,"Authorization")" ( identifier , (string_literal ""Authorization"" " string_content ") )))) ;) (if_statement "if (pcVar3 != (char *)0x0) {\n        authstatus->done = true;\n        if ((authstatus->picked == 0x40) && (conn->oauth_bearer != (char *)0x0)) goto LAB_000217ef;\n        goto LAB_000216e0;\n      }" if (parenthesized_expression "(pcVar3 != (char *)0x0)" ( (binary_expression "pcVar3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        authstatus->done = true;\n        if ((authstatus->picked == 0x40) && (conn->oauth_bearer != (char *)0x0)) goto LAB_000217ef;\n        goto LAB_000216e0;\n      }" { (expression_statement "authstatus->done = true;" (assignment_expression "authstatus->done = true" (field_expression "authstatus->done" identifier -> field_identifier) = true) ;) (if_statement "if ((authstatus->picked == 0x40) && (conn->oauth_bearer != (char *)0x0)) goto LAB_000217ef;" if (parenthesized_expression "((authstatus->picked == 0x40) && (conn->oauth_bearer != (char *)0x0))" ( (binary_expression "(authstatus->picked == 0x40) && (conn->oauth_bearer != (char *)0x0)" (parenthesized_expression "(authstatus->picked == 0x40)" ( (binary_expression "authstatus->picked == 0x40" (field_expression "authstatus->picked" identifier -> field_identifier) == number_literal) )) && (parenthesized_expression "(conn->oauth_bearer != (char *)0x0)" ( (binary_expression "conn->oauth_bearer != (char *)0x0" (field_expression "conn->oauth_bearer" identifier -> field_identifier) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (goto_statement "goto LAB_000217ef;" goto statement_identifier ;)) (goto_statement "goto LAB_000216e0;" goto statement_identifier ;) })) (expression_statement "local_34 = conn->data;" (assignment_expression "local_34 = conn->data" identifier = (field_expression "conn->data" identifier -> field_identifier)) ;) (expression_statement "pcVar3 = conn->user;" (assignment_expression "pcVar3 = conn->user" identifier = (field_expression "conn->user" identifier -> field_identifier)) ;) (expression_statement "local_40 = (dynamically_allocated_data *)&(conn->allocptr).userpwd;" (assignment_expression "local_40 = (dynamically_allocated_data *)&(conn->allocptr).userpwd" identifier = (cast_expression "(dynamically_allocated_data *)&(conn->allocptr).userpwd" ( (type_descriptor "dynamically_allocated_data *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&(conn->allocptr).userpwd" & (field_expression "(conn->allocptr).userpwd" (parenthesized_expression "(conn->allocptr)" ( (field_expression "conn->allocptr" identifier -> field_identifier) )) . field_identifier)))) ;) (expression_statement "pcVar4 = conn->passwd;" (assignment_expression "pcVar4 = conn->passwd" identifier = (field_expression "conn->passwd" identifier -> field_identifier)) ;) }))) (expression_statement "authorization = (char *)0x0;" (assignment_expression "authorization = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "size = 0;" (assignment_expression "size = 0" identifier = number_literal) ;) (expression_statement "pcVar4 = curl_maprintf("%s:%s",pcVar3,pcVar4);" (assignment_expression "pcVar4 = curl_maprintf("%s:%s",pcVar3,pcVar4)" identifier = (call_expression "curl_maprintf("%s:%s",pcVar3,pcVar4)" identifier (argument_list "("%s:%s",pcVar3,pcVar4)" ( (string_literal ""%s:%s"" " string_content ") , identifier , identifier )))) ;) (if_statement "if (pcVar4 != (char *)0x0) {\n      insize = strlen(pcVar4);\n      CVar2 = Curl_base64_encode(local_34,pcVar4,insize,&authorization,&size);\n      if (CVar2 != CURLE_OK) {\n        (*Curl_cfree)(pcVar4);\n        goto LAB_000216e6;\n      }\n      if (authorization == (char *)0x0) {\n        (*Curl_cfree)(pcVar4);\n        CVar2 = CURLE_REMOTE_ACCESS_DENIED;\n        goto LAB_000216e6;\n      }\n      (*Curl_cfree)(local_40->proxyuserpwd);\n      pcVar3 = "Proxy-";\n      if (!proxy) {\n        pcVar3 = "";\n      }\n      pcVar3 = curl_maprintf("%sAuthorization: Basic %s\r\n",pcVar3,authorization);\n      local_40->proxyuserpwd = pcVar3;\n      (*Curl_cfree)(authorization);\n      if (local_40->proxyuserpwd != (char *)0x0) {\n        pcVar3 = "Basic";\n        (*Curl_cfree)(pcVar4);\n        authstatus->done = true;\n        goto LAB_0002177e;\n      }\n      (*Curl_cfree)(pcVar4);\n    }" if (parenthesized_expression "(pcVar4 != (char *)0x0)" ( (binary_expression "pcVar4 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      insize = strlen(pcVar4);\n      CVar2 = Curl_base64_encode(local_34,pcVar4,insize,&authorization,&size);\n      if (CVar2 != CURLE_OK) {\n        (*Curl_cfree)(pcVar4);\n        goto LAB_000216e6;\n      }\n      if (authorization == (char *)0x0) {\n        (*Curl_cfree)(pcVar4);\n        CVar2 = CURLE_REMOTE_ACCESS_DENIED;\n        goto LAB_000216e6;\n      }\n      (*Curl_cfree)(local_40->proxyuserpwd);\n      pcVar3 = "Proxy-";\n      if (!proxy) {\n        pcVar3 = "";\n      }\n      pcVar3 = curl_maprintf("%sAuthorization: Basic %s\r\n",pcVar3,authorization);\n      local_40->proxyuserpwd = pcVar3;\n      (*Curl_cfree)(authorization);\n      if (local_40->proxyuserpwd != (char *)0x0) {\n        pcVar3 = "Basic";\n        (*Curl_cfree)(pcVar4);\n        authstatus->done = true;\n        goto LAB_0002177e;\n      }\n      (*Curl_cfree)(pcVar4);\n    }" { (expression_statement "insize = strlen(pcVar4);" (assignment_expression "insize = strlen(pcVar4)" identifier = (call_expression "strlen(pcVar4)" identifier (argument_list "(pcVar4)" ( identifier )))) ;) (expression_statement "CVar2 = Curl_base64_encode(local_34,pcVar4,insize,&authorization,&size);" (assignment_expression "CVar2 = Curl_base64_encode(local_34,pcVar4,insize,&authorization,&size)" identifier = (call_expression "Curl_base64_encode(local_34,pcVar4,insize,&authorization,&size)" identifier (argument_list "(local_34,pcVar4,insize,&authorization,&size)" ( identifier , identifier , identifier , (pointer_expression "&authorization" & identifier) , (pointer_expression "&size" & identifier) )))) ;) (if_statement "if (CVar2 != CURLE_OK) {\n        (*Curl_cfree)(pcVar4);\n        goto LAB_000216e6;\n      }" if (parenthesized_expression "(CVar2 != CURLE_OK)" ( (binary_expression "CVar2 != CURLE_OK" identifier != identifier) )) (compound_statement "{\n        (*Curl_cfree)(pcVar4);\n        goto LAB_000216e6;\n      }" { (expression_statement "(*Curl_cfree)(pcVar4);" (call_expression "(*Curl_cfree)(pcVar4)" (parenthesized_expression "(*Curl_cfree)" ( (pointer_expression "*Curl_cfree" * identifier) )) (argument_list "(pcVar4)" ( identifier ))) ;) (goto_statement "goto LAB_000216e6;" goto statement_identifier ;) })) (if_statement "if (authorization == (char *)0x0) {\n        (*Curl_cfree)(pcVar4);\n        CVar2 = CURLE_REMOTE_ACCESS_DENIED;\n        goto LAB_000216e6;\n      }" if (parenthesized_expression "(authorization == (char *)0x0)" ( (binary_expression "authorization == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        (*Curl_cfree)(pcVar4);\n        CVar2 = CURLE_REMOTE_ACCESS_DENIED;\n        goto LAB_000216e6;\n      }" { (expression_statement "(*Curl_cfree)(pcVar4);" (call_expression "(*Curl_cfree)(pcVar4)" (parenthesized_expression "(*Curl_cfree)" ( (pointer_expression "*Curl_cfree" * identifier) )) (argument_list "(pcVar4)" ( identifier ))) ;) (expression_statement "CVar2 = CURLE_REMOTE_ACCESS_DENIED;" (assignment_expression "CVar2 = CURLE_REMOTE_ACCESS_DENIED" identifier = identifier) ;) (goto_statement "goto LAB_000216e6;" goto statement_identifier ;) })) (expression_statement "(*Curl_cfree)(local_40->proxyuserpwd);" (call_expression "(*Curl_cfree)(local_40->proxyuserpwd)" (parenthesized_expression "(*Curl_cfree)" ( (pointer_expression "*Curl_cfree" * identifier) )) (argument_list "(local_40->proxyuserpwd)" ( (field_expression "local_40->proxyuserpwd" identifier -> field_identifier) ))) ;) (expression_statement "pcVar3 = "Proxy-";" (assignment_expression "pcVar3 = "Proxy-"" identifier = (string_literal ""Proxy-"" " string_content ")) ;) (if_statement "if (!proxy) {\n        pcVar3 = "";\n      }" if (parenthesized_expression "(!proxy)" ( (unary_expression "!proxy" ! identifier) )) (compound_statement "{\n        pcVar3 = "";\n      }" { (expression_statement "pcVar3 = "";" (assignment_expression "pcVar3 = """ identifier = (string_literal """" " ")) ;) })) (expression_statement "pcVar3 = curl_maprintf("%sAuthorization: Basic %s\r\n",pcVar3,authorization);" (assignment_expression "pcVar3 = curl_maprintf("%sAuthorization: Basic %s\r\n",pcVar3,authorization)" identifier = (call_expression "curl_maprintf("%sAuthorization: Basic %s\r\n",pcVar3,authorization)" identifier (argument_list "("%sAuthorization: Basic %s\r\n",pcVar3,authorization)" ( (string_literal ""%sAuthorization: Basic %s\r\n"" " string_content escape_sequence escape_sequence ") , identifier , identifier )))) ;) (expression_statement "local_40->proxyuserpwd = pcVar3;" (assignment_expression "local_40->proxyuserpwd = pcVar3" (field_expression "local_40->proxyuserpwd" identifier -> field_identifier) = identifier) ;) (expression_statement "(*Curl_cfree)(authorization);" (call_expression "(*Curl_cfree)(authorization)" (parenthesized_expression "(*Curl_cfree)" ( (pointer_expression "*Curl_cfree" * identifier) )) (argument_list "(authorization)" ( identifier ))) ;) (if_statement "if (local_40->proxyuserpwd != (char *)0x0) {\n        pcVar3 = "Basic";\n        (*Curl_cfree)(pcVar4);\n        authstatus->done = true;\n        goto LAB_0002177e;\n      }" if (parenthesized_expression "(local_40->proxyuserpwd != (char *)0x0)" ( (binary_expression "local_40->proxyuserpwd != (char *)0x0" (field_expression "local_40->proxyuserpwd" identifier -> field_identifier) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pcVar3 = "Basic";\n        (*Curl_cfree)(pcVar4);\n        authstatus->done = true;\n        goto LAB_0002177e;\n      }" { (expression_statement "pcVar3 = "Basic";" (assignment_expression "pcVar3 = "Basic"" identifier = (string_literal ""Basic"" " string_content ")) ;) (expression_statement "(*Curl_cfree)(pcVar4);" (call_expression "(*Curl_cfree)(pcVar4)" (parenthesized_expression "(*Curl_cfree)" ( (pointer_expression "*Curl_cfree" * identifier) )) (argument_list "(pcVar4)" ( identifier ))) ;) (expression_statement "authstatus->done = true;" (assignment_expression "authstatus->done = true" (field_expression "authstatus->done" identifier -> field_identifier) = true) ;) (goto_statement "goto LAB_0002177e;" goto statement_identifier ;) })) (expression_statement "(*Curl_cfree)(pcVar4);" (call_expression "(*Curl_cfree)(pcVar4)" (parenthesized_expression "(*Curl_cfree)" ( (pointer_expression "*Curl_cfree" * identifier) )) (argument_list "(pcVar4)" ( identifier ))) ;) })) (labeled_statement "LAB_00021b67:\n    CVar2 = CURLE_OUT_OF_MEMORY;" statement_identifier : (expression_statement "CVar2 = CURLE_OUT_OF_MEMORY;" (assignment_expression "CVar2 = CURLE_OUT_OF_MEMORY" identifier = identifier) ;)) (goto_statement "goto LAB_000216e6;" goto statement_identifier ;) })) (if_statement "if ((pnVar6->context == (gss_ctx_id_t)0x0) || ((pnVar6->status & 0xffff0000) != 0))\n  goto LAB_000216e0;" if (parenthesized_expression "((pnVar6->context == (gss_ctx_id_t)0x0) || ((pnVar6->status & 0xffff0000) != 0))" ( (binary_expression "(pnVar6->context == (gss_ctx_id_t)0x0) || ((pnVar6->status & 0xffff0000) != 0)" (parenthesized_expression "(pnVar6->context == (gss_ctx_id_t)0x0)" ( (binary_expression "pnVar6->context == (gss_ctx_id_t)0x0" (field_expression "pnVar6->context" identifier -> field_identifier) == (cast_expression "(gss_ctx_id_t)0x0" ( (type_descriptor "gss_ctx_id_t" type_identifier) ) number_literal)) )) || (parenthesized_expression "((pnVar6->status & 0xffff0000) != 0)" ( (binary_expression "(pnVar6->status & 0xffff0000) != 0" (parenthesized_expression "(pnVar6->status & 0xffff0000)" ( (binary_expression "pnVar6->status & 0xffff0000" (field_expression "pnVar6->status" identifier -> field_identifier) & number_literal) )) != number_literal) ))) )) (goto_statement "goto LAB_000216e0;" goto statement_identifier ;)) (expression_statement "CVar2 = Curl_output_negotiate(conn,proxy);" (assignment_expression "CVar2 = Curl_output_negotiate(conn,proxy)" identifier = (call_expression "Curl_output_negotiate(conn,proxy)" identifier (argument_list "(conn,proxy)" ( identifier , identifier )))) ;) (if_statement "if (CVar2 != CURLE_OK) goto LAB_000216e6;" if (parenthesized_expression "(CVar2 != CURLE_OK)" ( (binary_expression "CVar2 != CURLE_OK" identifier != identifier) )) (goto_statement "goto LAB_000216e6;" goto statement_identifier ;)) (expression_statement "authstatus->done = true;" (assignment_expression "authstatus->done = true" (field_expression "authstatus->done" identifier -> field_identifier) = true) ;) (expression_statement "pnVar6->state = CURLDIGESTALGO_SHA256;" (assignment_expression "pnVar6->state = CURLDIGESTALGO_SHA256" (field_expression "pnVar6->state" identifier -> field_identifier) = identifier) ;) (expression_statement "pcVar3 = "Negotiate";" (assignment_expression "pcVar3 = "Negotiate"" identifier = (string_literal ""Negotiate"" " string_content ")) ;) (labeled_statement "LAB_0002177e:\n  if (authstatus->picked == 0x40) {\n    if ((!proxy) && (conn->oauth_bearer != (char *)0x0)) {\n      pcVar4 = Curl_checkheaders(conn,"Authorization:");\n      if (pcVar4 != (char *)0x0) {\n        authstatus->done = true;\n        goto LAB_00021878;\n      }\nLAB_0002181a:\n      (*Curl_cfree)((conn->allocptr).userpwd);\n      pcVar3 = curl_maprintf("Authorization: Bearer %s\r\n",conn->oauth_bearer);\n      (conn->allocptr).userpwd = pcVar3;\n      if (pcVar3 == (char *)0x0) goto LAB_00021b67;\n      pcVar3 = "Bearer";\n    }\n    authstatus->done = true;\n    if (proxy) goto LAB_00021790;\nLAB_00021878:\n    pcVar4 = conn->user;\n    if (pcVar4 == (char *)0x0) {\n      pcVar4 = "";\n    }\n    pcVar5 = "Server";\n  }\n  else {\n    if (!proxy) goto LAB_00021878;\nLAB_00021790:\n    pcVar4 = (conn->http_proxy).user;\n    if (pcVar4 == (char *)0x0) {\n      pcVar4 = "";\n    }\n    pcVar5 = "Proxy";\n  }" statement_identifier : (if_statement "if (authstatus->picked == 0x40) {\n    if ((!proxy) && (conn->oauth_bearer != (char *)0x0)) {\n      pcVar4 = Curl_checkheaders(conn,"Authorization:");\n      if (pcVar4 != (char *)0x0) {\n        authstatus->done = true;\n        goto LAB_00021878;\n      }\nLAB_0002181a:\n      (*Curl_cfree)((conn->allocptr).userpwd);\n      pcVar3 = curl_maprintf("Authorization: Bearer %s\r\n",conn->oauth_bearer);\n      (conn->allocptr).userpwd = pcVar3;\n      if (pcVar3 == (char *)0x0) goto LAB_00021b67;\n      pcVar3 = "Bearer";\n    }\n    authstatus->done = true;\n    if (proxy) goto LAB_00021790;\nLAB_00021878:\n    pcVar4 = conn->user;\n    if (pcVar4 == (char *)0x0) {\n      pcVar4 = "";\n    }\n    pcVar5 = "Server";\n  }\n  else {\n    if (!proxy) goto LAB_00021878;\nLAB_00021790:\n    pcVar4 = (conn->http_proxy).user;\n    if (pcVar4 == (char *)0x0) {\n      pcVar4 = "";\n    }\n    pcVar5 = "Proxy";\n  }" if (parenthesized_expression "(authstatus->picked == 0x40)" ( (binary_expression "authstatus->picked == 0x40" (field_expression "authstatus->picked" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n    if ((!proxy) && (conn->oauth_bearer != (char *)0x0)) {\n      pcVar4 = Curl_checkheaders(conn,"Authorization:");\n      if (pcVar4 != (char *)0x0) {\n        authstatus->done = true;\n        goto LAB_00021878;\n      }\nLAB_0002181a:\n      (*Curl_cfree)((conn->allocptr).userpwd);\n      pcVar3 = curl_maprintf("Authorization: Bearer %s\r\n",conn->oauth_bearer);\n      (conn->allocptr).userpwd = pcVar3;\n      if (pcVar3 == (char *)0x0) goto LAB_00021b67;\n      pcVar3 = "Bearer";\n    }\n    authstatus->done = true;\n    if (proxy) goto LAB_00021790;\nLAB_00021878:\n    pcVar4 = conn->user;\n    if (pcVar4 == (char *)0x0) {\n      pcVar4 = "";\n    }\n    pcVar5 = "Server";\n  }" { (if_statement "if ((!proxy) && (conn->oauth_bearer != (char *)0x0)) {\n      pcVar4 = Curl_checkheaders(conn,"Authorization:");\n      if (pcVar4 != (char *)0x0) {\n        authstatus->done = true;\n        goto LAB_00021878;\n      }\nLAB_0002181a:\n      (*Curl_cfree)((conn->allocptr).userpwd);\n      pcVar3 = curl_maprintf("Authorization: Bearer %s\r\n",conn->oauth_bearer);\n      (conn->allocptr).userpwd = pcVar3;\n      if (pcVar3 == (char *)0x0) goto LAB_00021b67;\n      pcVar3 = "Bearer";\n    }" if (parenthesized_expression "((!proxy) && (conn->oauth_bearer != (char *)0x0))" ( (binary_expression "(!proxy) && (conn->oauth_bearer != (char *)0x0)" (parenthesized_expression "(!proxy)" ( (unary_expression "!proxy" ! identifier) )) && (parenthesized_expression "(conn->oauth_bearer != (char *)0x0)" ( (binary_expression "conn->oauth_bearer != (char *)0x0" (field_expression "conn->oauth_bearer" identifier -> field_identifier) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n      pcVar4 = Curl_checkheaders(conn,"Authorization:");\n      if (pcVar4 != (char *)0x0) {\n        authstatus->done = true;\n        goto LAB_00021878;\n      }\nLAB_0002181a:\n      (*Curl_cfree)((conn->allocptr).userpwd);\n      pcVar3 = curl_maprintf("Authorization: Bearer %s\r\n",conn->oauth_bearer);\n      (conn->allocptr).userpwd = pcVar3;\n      if (pcVar3 == (char *)0x0) goto LAB_00021b67;\n      pcVar3 = "Bearer";\n    }" { (expression_statement "pcVar4 = Curl_checkheaders(conn,"Authorization:");" (assignment_expression "pcVar4 = Curl_checkheaders(conn,"Authorization:")" identifier = (call_expression "Curl_checkheaders(conn,"Authorization:")" identifier (argument_list "(conn,"Authorization:")" ( identifier , (string_literal ""Authorization:"" " string_content ") )))) ;) (if_statement "if (pcVar4 != (char *)0x0) {\n        authstatus->done = true;\n        goto LAB_00021878;\n      }" if (parenthesized_expression "(pcVar4 != (char *)0x0)" ( (binary_expression "pcVar4 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        authstatus->done = true;\n        goto LAB_00021878;\n      }" { (expression_statement "authstatus->done = true;" (assignment_expression "authstatus->done = true" (field_expression "authstatus->done" identifier -> field_identifier) = true) ;) (goto_statement "goto LAB_00021878;" goto statement_identifier ;) })) (labeled_statement "LAB_0002181a:\n      (*Curl_cfree)((conn->allocptr).userpwd);" statement_identifier : (expression_statement "(*Curl_cfree)((conn->allocptr).userpwd);" (call_expression "(*Curl_cfree)((conn->allocptr).userpwd)" (parenthesized_expression "(*Curl_cfree)" ( (pointer_expression "*Curl_cfree" * identifier) )) (argument_list "((conn->allocptr).userpwd)" ( (field_expression "(conn->allocptr).userpwd" (parenthesized_expression "(conn->allocptr)" ( (field_expression "conn->allocptr" identifier -> field_identifier) )) . field_identifier) ))) ;)) (expression_statement "pcVar3 = curl_maprintf("Authorization: Bearer %s\r\n",conn->oauth_bearer);" (assignment_expression "pcVar3 = curl_maprintf("Authorization: Bearer %s\r\n",conn->oauth_bearer)" identifier = (call_expression "curl_maprintf("Authorization: Bearer %s\r\n",conn->oauth_bearer)" identifier (argument_list "("Authorization: Bearer %s\r\n",conn->oauth_bearer)" ( (string_literal ""Authorization: Bearer %s\r\n"" " string_content escape_sequence escape_sequence ") , (field_expression "conn->oauth_bearer" identifier -> field_identifier) )))) ;) (expression_statement "(conn->allocptr).userpwd = pcVar3;" (assignment_expression "(conn->allocptr).userpwd = pcVar3" (field_expression "(conn->allocptr).userpwd" (parenthesized_expression "(conn->allocptr)" ( (field_expression "conn->allocptr" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (if_statement "if (pcVar3 == (char *)0x0) goto LAB_00021b67;" if (parenthesized_expression "(pcVar3 == (char *)0x0)" ( (binary_expression "pcVar3 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00021b67;" goto statement_identifier ;)) (expression_statement "pcVar3 = "Bearer";" (assignment_expression "pcVar3 = "Bearer"" identifier = (string_literal ""Bearer"" " string_content ")) ;) })) (expression_statement "authstatus->done = true;" (assignment_expression "authstatus->done = true" (field_expression "authstatus->done" identifier -> field_identifier) = true) ;) (if_statement "if (proxy) goto LAB_00021790;" if (parenthesized_expression "(proxy)" ( identifier )) (goto_statement "goto LAB_00021790;" goto statement_identifier ;)) (labeled_statement "LAB_00021878:\n    pcVar4 = conn->user;" statement_identifier : (expression_statement "pcVar4 = conn->user;" (assignment_expression "pcVar4 = conn->user" identifier = (field_expression "conn->user" identifier -> field_identifier)) ;)) (if_statement "if (pcVar4 == (char *)0x0) {\n      pcVar4 = "";\n    }" if (parenthesized_expression "(pcVar4 == (char *)0x0)" ( (binary_expression "pcVar4 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pcVar4 = "";\n    }" { (expression_statement "pcVar4 = "";" (assignment_expression "pcVar4 = """ identifier = (string_literal """" " ")) ;) })) (expression_statement "pcVar5 = "Server";" (assignment_expression "pcVar5 = "Server"" identifier = (string_literal ""Server"" " string_content ")) ;) }) (else_clause "else {\n    if (!proxy) goto LAB_00021878;\nLAB_00021790:\n    pcVar4 = (conn->http_proxy).user;\n    if (pcVar4 == (char *)0x0) {\n      pcVar4 = "";\n    }\n    pcVar5 = "Proxy";\n  }" else (compound_statement "{\n    if (!proxy) goto LAB_00021878;\nLAB_00021790:\n    pcVar4 = (conn->http_proxy).user;\n    if (pcVar4 == (char *)0x0) {\n      pcVar4 = "";\n    }\n    pcVar5 = "Proxy";\n  }" { (if_statement "if (!proxy) goto LAB_00021878;" if (parenthesized_expression "(!proxy)" ( (unary_expression "!proxy" ! identifier) )) (goto_statement "goto LAB_00021878;" goto statement_identifier ;)) (labeled_statement "LAB_00021790:\n    pcVar4 = (conn->http_proxy).user;" statement_identifier : (expression_statement "pcVar4 = (conn->http_proxy).user;" (assignment_expression "pcVar4 = (conn->http_proxy).user" identifier = (field_expression "(conn->http_proxy).user" (parenthesized_expression "(conn->http_proxy)" ( (field_expression "conn->http_proxy" identifier -> field_identifier) )) . field_identifier)) ;)) (if_statement "if (pcVar4 == (char *)0x0) {\n      pcVar4 = "";\n    }" if (parenthesized_expression "(pcVar4 == (char *)0x0)" ( (binary_expression "pcVar4 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pcVar4 = "";\n    }" { (expression_statement "pcVar4 = "";" (assignment_expression "pcVar4 = """ identifier = (string_literal """" " ")) ;) })) (expression_statement "pcVar5 = "Proxy";" (assignment_expression "pcVar5 = "Proxy"" identifier = (string_literal ""Proxy"" " string_content ")) ;) })))) (expression_statement "Curl_infof(data,"%s auth using %s with user \'%s\'\n",pcVar5,pcVar3,pcVar4);" (call_expression "Curl_infof(data,"%s auth using %s with user \'%s\'\n",pcVar5,pcVar3,pcVar4)" identifier (argument_list "(data,"%s auth using %s with user \'%s\'\n",pcVar5,pcVar3,pcVar4)" ( identifier , (string_literal ""%s auth using %s with user \'%s\'\n"" " string_content escape_sequence string_content escape_sequence escape_sequence ") , identifier , identifier , identifier ))) ;) (expression_statement "authstatus->multipass = (_Bool)(authstatus->done ^ 1);" (assignment_expression "authstatus->multipass = (_Bool)(authstatus->done ^ 1)" (field_expression "authstatus->multipass" identifier -> field_identifier) = (call_expression "(_Bool)(authstatus->done ^ 1)" (parenthesized_expression "(_Bool)" ( identifier )) (argument_list "(authstatus->done ^ 1)" ( (binary_expression "authstatus->done ^ 1" (field_expression "authstatus->done" identifier -> field_identifier) ^ number_literal) )))) ;) (expression_statement "CVar2 = CURLE_OK;" (assignment_expression "CVar2 = CURLE_OK" identifier = identifier) ;) (labeled_statement "LAB_000216e6:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(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 CVar2;" return identifier ;) })))
(translation_unit "int __regparm3 FUN_00021650(undefined4 param_1,int param_2,undefined4 param_3,char param_4)\n\n{\n  byte *pbVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  char *__s;\n  size_t sVar5;\n  int iVar6;\n  int unaff_EBX;\n  undefined4 *puVar7;\n  int *extraout_EDI;\n  int in_GS_OFFSET;\n  undefined4 unaff_retaddr;\n  int *local_44;\n  int local_38;\n  undefined4 local_2c;\n  int local_28;\n  int local_24;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2165d;\n  entry();\n  iVar2 = *extraout_EDI;\n  local_24 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar7 = (undefined4 *)(iVar2 + 0xd18);\n  if (param_4 != '\0') {\n    puVar7 = (undefined4 *)(iVar2 + 0xd30);\n  }\n  iVar3 = *(int *)(param_2 + 4);\n  *puVar7 = 0;\n  if (iVar3 != 4) {\n    if (iVar3 == 8) {\n      iVar3 = FUN_0005da00(extraout_EDI,param_4);\n      if (iVar3 != 0) goto LAB_000216e6;\n      iVar3 = unaff_EBX + 0x5c816;\n      goto LAB_0002177e;\n    }\n    if (iVar3 == 0x20) {\n      iVar3 = FUN_0005e5c0(extraout_EDI,param_4);\n      if (iVar3 != 0) goto LAB_000216e6;\n      iVar3 = unaff_EBX + 0x5c776;\n      goto LAB_0002177e;\n    }\n    if (iVar3 == 2) {\n      iVar3 = FUN_000476e0(extraout_EDI,param_4,param_3,unaff_retaddr);\n      if (iVar3 != 0) goto LAB_000216e6;\n      iVar3 = unaff_EBX + 0x5c77e;\n      goto LAB_0002177e;\n    }\n    if (iVar3 != 1) {\n      if (iVar3 != 0x40) {\nLAB_000216e0:\n        *(undefined1 *)(param_2 + 0xd) = 0;\n        iVar3 = 0;\n        goto LAB_000216e6;\n      }\n      if ((param_4 != '\0') || (extraout_EDI[0x5d] == 0)) {\nLAB_000216dc:\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_000216e0;\n      }\nLAB_000217ef:\n      iVar3 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2);\n      if (iVar3 != 0) goto LAB_000216dc;\n      goto LAB_0002181a;\n    }\n    if (param_4 == '\0') {\n      if ((char)extraout_EDI[0x94] == '\0') goto LAB_000216dc;\n      iVar3 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7ad);\n      if (iVar3 != 0) {\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        if ((*(int *)(param_2 + 4) == 0x40) && (extraout_EDI[0x5d] != 0)) goto LAB_000217ef;\n        goto LAB_000216e0;\n      }\n      local_38 = *extraout_EDI;\n      iVar3 = extraout_EDI[0x5a];\n      local_44 = extraout_EDI + 0xaa;\n      iVar4 = extraout_EDI[0x5b];\n    }\n    else {\n      if ((*(char *)((int)extraout_EDI + 0x251) == '\0') ||\n         (iVar3 = FUN_000215c0(extraout_EDI,unaff_EBX + 0x5c799), iVar3 != 0)) goto LAB_000216dc;\n      local_38 = *extraout_EDI;\n      iVar3 = extraout_EDI[0x3b];\n      local_44 = extraout_EDI + 0xa7;\n      iVar4 = extraout_EDI[0x3c];\n    }\n    local_28 = 0;\n    local_2c = 0;\n    __s = (char *)curl_maprintf(unaff_EBX + 0x661ba,iVar3,iVar4);\n    if (__s != (char *)0x0) {\n      sVar5 = strlen(__s);\n      iVar3 = FUN_0001b180(local_38,__s,sVar5,&local_28,&local_2c);\n      if (iVar3 != 0) {\n        (**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(__s);\n        goto LAB_000216e6;\n      }\n      pbVar1 = BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e;\n      if (local_28 == 0) {\n        (**(code **)pbVar1)(__s);\n        iVar3 = 9;\n        goto LAB_000216e6;\n      }\n      (**(code **)pbVar1)(*local_44);\n      iVar3 = unaff_EBX + 0x5c75f;\n      if (param_4 == '\0') {\n        iVar3 = unaff_EBX + 0x66713;\n      }\n      iVar3 = curl_maprintf(unaff_EBX + 0x5c7bb,iVar3,local_28);\n      *local_44 = iVar3;\n      (**(code **)pbVar1)(local_28);\n      if (*local_44 != 0) {\n        iVar3 = unaff_EBX + 0x5c770;\n        (**(code **)pbVar1)(__s);\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_0002177e;\n      }\n      (**(code **)pbVar1)(__s);\n    }\nLAB_00021b67:\n    iVar3 = 0x1b;\n    goto LAB_000216e6;\n  }\n  if ((puVar7[2] == 0) || ((puVar7[1] & 0xffff0000) != 0)) goto LAB_000216e0;\n  iVar3 = FUN_00047be0(extraout_EDI,param_4);\n  if (iVar3 != 0) goto LAB_000216e6;\n  *(undefined1 *)(param_2 + 0xc) = 1;\n  *puVar7 = 2;\n  iVar3 = unaff_EBX + 0x5c766;\nLAB_0002177e:\n  if (*(int *)(param_2 + 4) == 0x40) {\n    if ((param_4 == '\0') && (extraout_EDI[0x5d] != 0)) {\n      iVar4 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2);\n      if (iVar4 != 0) {\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_00021878;\n      }\nLAB_0002181a:\n      (**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(extraout_EDI[0xaa]);\n      iVar3 = curl_maprintf(unaff_EBX + 0x5c7d7,extraout_EDI[0x5d]);\n      extraout_EDI[0xaa] = iVar3;\n      if (iVar3 == 0) goto LAB_00021b67;\n      iVar3 = unaff_EBX + 0x5c792;\n    }\n    *(undefined1 *)(param_2 + 0xc) = 1;\n    if (param_4 != '\0') goto LAB_00021790;\nLAB_00021878:\n    iVar4 = extraout_EDI[0x5a];\n    if (iVar4 == 0) {\n      iVar4 = unaff_EBX + 0x66713;\n    }\n    iVar6 = unaff_EBX + 0x5c78b;\n  }\n  else {\n    if (param_4 == '\0') goto LAB_00021878;\nLAB_00021790:\n    iVar4 = extraout_EDI[0x3b];\n    if (iVar4 == 0) {\n      iVar4 = unaff_EBX + 0x66713;\n    }\n    iVar6 = unaff_EBX + 0x5c785;\n  }\n  FUN_00027140(iVar2,unaff_EBX + 0x5c20f,iVar6,iVar3,iVar4);\n  *(byte *)(param_2 + 0xd) = *(byte *)(param_2 + 0xc) ^ 1;\n  iVar3 = 0;\nLAB_000216e6:\n  if (local_24 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0007c1a0();\n  }\n  return iVar3;\n}\n\n" (function_definition "int __regparm3 FUN_00021650(undefined4 param_1,int param_2,undefined4 param_3,char param_4)\n\n{\n  byte *pbVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  char *__s;\n  size_t sVar5;\n  int iVar6;\n  int unaff_EBX;\n  undefined4 *puVar7;\n  int *extraout_EDI;\n  int in_GS_OFFSET;\n  undefined4 unaff_retaddr;\n  int *local_44;\n  int local_38;\n  undefined4 local_2c;\n  int local_28;\n  int local_24;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2165d;\n  entry();\n  iVar2 = *extraout_EDI;\n  local_24 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar7 = (undefined4 *)(iVar2 + 0xd18);\n  if (param_4 != '\0') {\n    puVar7 = (undefined4 *)(iVar2 + 0xd30);\n  }\n  iVar3 = *(int *)(param_2 + 4);\n  *puVar7 = 0;\n  if (iVar3 != 4) {\n    if (iVar3 == 8) {\n      iVar3 = FUN_0005da00(extraout_EDI,param_4);\n      if (iVar3 != 0) goto LAB_000216e6;\n      iVar3 = unaff_EBX + 0x5c816;\n      goto LAB_0002177e;\n    }\n    if (iVar3 == 0x20) {\n      iVar3 = FUN_0005e5c0(extraout_EDI,param_4);\n      if (iVar3 != 0) goto LAB_000216e6;\n      iVar3 = unaff_EBX + 0x5c776;\n      goto LAB_0002177e;\n    }\n    if (iVar3 == 2) {\n      iVar3 = FUN_000476e0(extraout_EDI,param_4,param_3,unaff_retaddr);\n      if (iVar3 != 0) goto LAB_000216e6;\n      iVar3 = unaff_EBX + 0x5c77e;\n      goto LAB_0002177e;\n    }\n    if (iVar3 != 1) {\n      if (iVar3 != 0x40) {\nLAB_000216e0:\n        *(undefined1 *)(param_2 + 0xd) = 0;\n        iVar3 = 0;\n        goto LAB_000216e6;\n      }\n      if ((param_4 != '\0') || (extraout_EDI[0x5d] == 0)) {\nLAB_000216dc:\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_000216e0;\n      }\nLAB_000217ef:\n      iVar3 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2);\n      if (iVar3 != 0) goto LAB_000216dc;\n      goto LAB_0002181a;\n    }\n    if (param_4 == '\0') {\n      if ((char)extraout_EDI[0x94] == '\0') goto LAB_000216dc;\n      iVar3 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7ad);\n      if (iVar3 != 0) {\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        if ((*(int *)(param_2 + 4) == 0x40) && (extraout_EDI[0x5d] != 0)) goto LAB_000217ef;\n        goto LAB_000216e0;\n      }\n      local_38 = *extraout_EDI;\n      iVar3 = extraout_EDI[0x5a];\n      local_44 = extraout_EDI + 0xaa;\n      iVar4 = extraout_EDI[0x5b];\n    }\n    else {\n      if ((*(char *)((int)extraout_EDI + 0x251) == '\0') ||\n         (iVar3 = FUN_000215c0(extraout_EDI,unaff_EBX + 0x5c799), iVar3 != 0)) goto LAB_000216dc;\n      local_38 = *extraout_EDI;\n      iVar3 = extraout_EDI[0x3b];\n      local_44 = extraout_EDI + 0xa7;\n      iVar4 = extraout_EDI[0x3c];\n    }\n    local_28 = 0;\n    local_2c = 0;\n    __s = (char *)curl_maprintf(unaff_EBX + 0x661ba,iVar3,iVar4);\n    if (__s != (char *)0x0) {\n      sVar5 = strlen(__s);\n      iVar3 = FUN_0001b180(local_38,__s,sVar5,&local_28,&local_2c);\n      if (iVar3 != 0) {\n        (**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(__s);\n        goto LAB_000216e6;\n      }\n      pbVar1 = BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e;\n      if (local_28 == 0) {\n        (**(code **)pbVar1)(__s);\n        iVar3 = 9;\n        goto LAB_000216e6;\n      }\n      (**(code **)pbVar1)(*local_44);\n      iVar3 = unaff_EBX + 0x5c75f;\n      if (param_4 == '\0') {\n        iVar3 = unaff_EBX + 0x66713;\n      }\n      iVar3 = curl_maprintf(unaff_EBX + 0x5c7bb,iVar3,local_28);\n      *local_44 = iVar3;\n      (**(code **)pbVar1)(local_28);\n      if (*local_44 != 0) {\n        iVar3 = unaff_EBX + 0x5c770;\n        (**(code **)pbVar1)(__s);\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_0002177e;\n      }\n      (**(code **)pbVar1)(__s);\n    }\nLAB_00021b67:\n    iVar3 = 0x1b;\n    goto LAB_000216e6;\n  }\n  if ((puVar7[2] == 0) || ((puVar7[1] & 0xffff0000) != 0)) goto LAB_000216e0;\n  iVar3 = FUN_00047be0(extraout_EDI,param_4);\n  if (iVar3 != 0) goto LAB_000216e6;\n  *(undefined1 *)(param_2 + 0xc) = 1;\n  *puVar7 = 2;\n  iVar3 = unaff_EBX + 0x5c766;\nLAB_0002177e:\n  if (*(int *)(param_2 + 4) == 0x40) {\n    if ((param_4 == '\0') && (extraout_EDI[0x5d] != 0)) {\n      iVar4 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2);\n      if (iVar4 != 0) {\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_00021878;\n      }\nLAB_0002181a:\n      (**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(extraout_EDI[0xaa]);\n      iVar3 = curl_maprintf(unaff_EBX + 0x5c7d7,extraout_EDI[0x5d]);\n      extraout_EDI[0xaa] = iVar3;\n      if (iVar3 == 0) goto LAB_00021b67;\n      iVar3 = unaff_EBX + 0x5c792;\n    }\n    *(undefined1 *)(param_2 + 0xc) = 1;\n    if (param_4 != '\0') goto LAB_00021790;\nLAB_00021878:\n    iVar4 = extraout_EDI[0x5a];\n    if (iVar4 == 0) {\n      iVar4 = unaff_EBX + 0x66713;\n    }\n    iVar6 = unaff_EBX + 0x5c78b;\n  }\n  else {\n    if (param_4 == '\0') goto LAB_00021878;\nLAB_00021790:\n    iVar4 = extraout_EDI[0x3b];\n    if (iVar4 == 0) {\n      iVar4 = unaff_EBX + 0x66713;\n    }\n    iVar6 = unaff_EBX + 0x5c785;\n  }\n  FUN_00027140(iVar2,unaff_EBX + 0x5c20f,iVar6,iVar3,iVar4);\n  *(byte *)(param_2 + 0xd) = *(byte *)(param_2 + 0xc) ^ 1;\n  iVar3 = 0;\nLAB_000216e6:\n  if (local_24 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0007c1a0();\n  }\n  return iVar3;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00021650(undefined4 param_1,int param_2,undefined4 param_3,char param_4)" identifier (parameter_list "(undefined4 param_1,int param_2,undefined4 param_3,char param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "char param_4" primitive_type identifier) ))) (compound_statement "{\n  byte *pbVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  char *__s;\n  size_t sVar5;\n  int iVar6;\n  int unaff_EBX;\n  undefined4 *puVar7;\n  int *extraout_EDI;\n  int in_GS_OFFSET;\n  undefined4 unaff_retaddr;\n  int *local_44;\n  int local_38;\n  undefined4 local_2c;\n  int local_28;\n  int local_24;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2165d;\n  entry();\n  iVar2 = *extraout_EDI;\n  local_24 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar7 = (undefined4 *)(iVar2 + 0xd18);\n  if (param_4 != '\0') {\n    puVar7 = (undefined4 *)(iVar2 + 0xd30);\n  }\n  iVar3 = *(int *)(param_2 + 4);\n  *puVar7 = 0;\n  if (iVar3 != 4) {\n    if (iVar3 == 8) {\n      iVar3 = FUN_0005da00(extraout_EDI,param_4);\n      if (iVar3 != 0) goto LAB_000216e6;\n      iVar3 = unaff_EBX + 0x5c816;\n      goto LAB_0002177e;\n    }\n    if (iVar3 == 0x20) {\n      iVar3 = FUN_0005e5c0(extraout_EDI,param_4);\n      if (iVar3 != 0) goto LAB_000216e6;\n      iVar3 = unaff_EBX + 0x5c776;\n      goto LAB_0002177e;\n    }\n    if (iVar3 == 2) {\n      iVar3 = FUN_000476e0(extraout_EDI,param_4,param_3,unaff_retaddr);\n      if (iVar3 != 0) goto LAB_000216e6;\n      iVar3 = unaff_EBX + 0x5c77e;\n      goto LAB_0002177e;\n    }\n    if (iVar3 != 1) {\n      if (iVar3 != 0x40) {\nLAB_000216e0:\n        *(undefined1 *)(param_2 + 0xd) = 0;\n        iVar3 = 0;\n        goto LAB_000216e6;\n      }\n      if ((param_4 != '\0') || (extraout_EDI[0x5d] == 0)) {\nLAB_000216dc:\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_000216e0;\n      }\nLAB_000217ef:\n      iVar3 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2);\n      if (iVar3 != 0) goto LAB_000216dc;\n      goto LAB_0002181a;\n    }\n    if (param_4 == '\0') {\n      if ((char)extraout_EDI[0x94] == '\0') goto LAB_000216dc;\n      iVar3 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7ad);\n      if (iVar3 != 0) {\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        if ((*(int *)(param_2 + 4) == 0x40) && (extraout_EDI[0x5d] != 0)) goto LAB_000217ef;\n        goto LAB_000216e0;\n      }\n      local_38 = *extraout_EDI;\n      iVar3 = extraout_EDI[0x5a];\n      local_44 = extraout_EDI + 0xaa;\n      iVar4 = extraout_EDI[0x5b];\n    }\n    else {\n      if ((*(char *)((int)extraout_EDI + 0x251) == '\0') ||\n         (iVar3 = FUN_000215c0(extraout_EDI,unaff_EBX + 0x5c799), iVar3 != 0)) goto LAB_000216dc;\n      local_38 = *extraout_EDI;\n      iVar3 = extraout_EDI[0x3b];\n      local_44 = extraout_EDI + 0xa7;\n      iVar4 = extraout_EDI[0x3c];\n    }\n    local_28 = 0;\n    local_2c = 0;\n    __s = (char *)curl_maprintf(unaff_EBX + 0x661ba,iVar3,iVar4);\n    if (__s != (char *)0x0) {\n      sVar5 = strlen(__s);\n      iVar3 = FUN_0001b180(local_38,__s,sVar5,&local_28,&local_2c);\n      if (iVar3 != 0) {\n        (**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(__s);\n        goto LAB_000216e6;\n      }\n      pbVar1 = BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e;\n      if (local_28 == 0) {\n        (**(code **)pbVar1)(__s);\n        iVar3 = 9;\n        goto LAB_000216e6;\n      }\n      (**(code **)pbVar1)(*local_44);\n      iVar3 = unaff_EBX + 0x5c75f;\n      if (param_4 == '\0') {\n        iVar3 = unaff_EBX + 0x66713;\n      }\n      iVar3 = curl_maprintf(unaff_EBX + 0x5c7bb,iVar3,local_28);\n      *local_44 = iVar3;\n      (**(code **)pbVar1)(local_28);\n      if (*local_44 != 0) {\n        iVar3 = unaff_EBX + 0x5c770;\n        (**(code **)pbVar1)(__s);\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_0002177e;\n      }\n      (**(code **)pbVar1)(__s);\n    }\nLAB_00021b67:\n    iVar3 = 0x1b;\n    goto LAB_000216e6;\n  }\n  if ((puVar7[2] == 0) || ((puVar7[1] & 0xffff0000) != 0)) goto LAB_000216e0;\n  iVar3 = FUN_00047be0(extraout_EDI,param_4);\n  if (iVar3 != 0) goto LAB_000216e6;\n  *(undefined1 *)(param_2 + 0xc) = 1;\n  *puVar7 = 2;\n  iVar3 = unaff_EBX + 0x5c766;\nLAB_0002177e:\n  if (*(int *)(param_2 + 4) == 0x40) {\n    if ((param_4 == '\0') && (extraout_EDI[0x5d] != 0)) {\n      iVar4 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2);\n      if (iVar4 != 0) {\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_00021878;\n      }\nLAB_0002181a:\n      (**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(extraout_EDI[0xaa]);\n      iVar3 = curl_maprintf(unaff_EBX + 0x5c7d7,extraout_EDI[0x5d]);\n      extraout_EDI[0xaa] = iVar3;\n      if (iVar3 == 0) goto LAB_00021b67;\n      iVar3 = unaff_EBX + 0x5c792;\n    }\n    *(undefined1 *)(param_2 + 0xc) = 1;\n    if (param_4 != '\0') goto LAB_00021790;\nLAB_00021878:\n    iVar4 = extraout_EDI[0x5a];\n    if (iVar4 == 0) {\n      iVar4 = unaff_EBX + 0x66713;\n    }\n    iVar6 = unaff_EBX + 0x5c78b;\n  }\n  else {\n    if (param_4 == '\0') goto LAB_00021878;\nLAB_00021790:\n    iVar4 = extraout_EDI[0x3b];\n    if (iVar4 == 0) {\n      iVar4 = unaff_EBX + 0x66713;\n    }\n    iVar6 = unaff_EBX + 0x5c785;\n  }\n  FUN_00027140(iVar2,unaff_EBX + 0x5c20f,iVar6,iVar3,iVar4);\n  *(byte *)(param_2 + 0xd) = *(byte *)(param_2 + 0xc) ^ 1;\n  iVar3 = 0;\nLAB_000216e6:\n  if (local_24 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0007c1a0();\n  }\n  return iVar3;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "size_t sVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int unaff_EBX;" primitive_type identifier ;) (declaration "undefined4 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "int *extraout_EDI;" primitive_type (pointer_declarator "*extraout_EDI" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 unaff_retaddr;" type_identifier identifier ;) (declaration "int *local_44;" primitive_type (pointer_declarator "*local_44" * identifier) ;) (declaration "int local_38;" primitive_type identifier ;) (declaration "undefined4 local_2c;" type_identifier identifier ;) (declaration "int local_28;" primitive_type identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x2165d;" (assignment_expression "uStack_14 = 0x2165d" identifier = number_literal) ;) (expression_statement "entry();" (call_expression "entry()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar2 = *extraout_EDI;" (assignment_expression "iVar2 = *extraout_EDI" identifier = (pointer_expression "*extraout_EDI" * identifier)) ;) (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 "puVar7 = (undefined4 *)(iVar2 + 0xd18);" (assignment_expression "puVar7 = (undefined4 *)(iVar2 + 0xd18)" identifier = (cast_expression "(undefined4 *)(iVar2 + 0xd18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xd18)" ( (binary_expression "iVar2 + 0xd18" identifier + number_literal) )))) ;) (if_statement "if (param_4 != '\0') {\n    puVar7 = (undefined4 *)(iVar2 + 0xd30);\n  }" if (parenthesized_expression "(param_4 != '\0')" ( (binary_expression "param_4 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    puVar7 = (undefined4 *)(iVar2 + 0xd30);\n  }" { (expression_statement "puVar7 = (undefined4 *)(iVar2 + 0xd30);" (assignment_expression "puVar7 = (undefined4 *)(iVar2 + 0xd30)" identifier = (cast_expression "(undefined4 *)(iVar2 + 0xd30)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xd30)" ( (binary_expression "iVar2 + 0xd30" identifier + number_literal) )))) ;) })) (expression_statement "iVar3 = *(int *)(param_2 + 4);" (assignment_expression "iVar3 = *(int *)(param_2 + 4)" identifier = (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) (expression_statement "*puVar7 = 0;" (assignment_expression "*puVar7 = 0" (pointer_expression "*puVar7" * identifier) = number_literal) ;) (if_statement "if (iVar3 != 4) {\n    if (iVar3 == 8) {\n      iVar3 = FUN_0005da00(extraout_EDI,param_4);\n      if (iVar3 != 0) goto LAB_000216e6;\n      iVar3 = unaff_EBX + 0x5c816;\n      goto LAB_0002177e;\n    }\n    if (iVar3 == 0x20) {\n      iVar3 = FUN_0005e5c0(extraout_EDI,param_4);\n      if (iVar3 != 0) goto LAB_000216e6;\n      iVar3 = unaff_EBX + 0x5c776;\n      goto LAB_0002177e;\n    }\n    if (iVar3 == 2) {\n      iVar3 = FUN_000476e0(extraout_EDI,param_4,param_3,unaff_retaddr);\n      if (iVar3 != 0) goto LAB_000216e6;\n      iVar3 = unaff_EBX + 0x5c77e;\n      goto LAB_0002177e;\n    }\n    if (iVar3 != 1) {\n      if (iVar3 != 0x40) {\nLAB_000216e0:\n        *(undefined1 *)(param_2 + 0xd) = 0;\n        iVar3 = 0;\n        goto LAB_000216e6;\n      }\n      if ((param_4 != '\0') || (extraout_EDI[0x5d] == 0)) {\nLAB_000216dc:\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_000216e0;\n      }\nLAB_000217ef:\n      iVar3 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2);\n      if (iVar3 != 0) goto LAB_000216dc;\n      goto LAB_0002181a;\n    }\n    if (param_4 == '\0') {\n      if ((char)extraout_EDI[0x94] == '\0') goto LAB_000216dc;\n      iVar3 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7ad);\n      if (iVar3 != 0) {\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        if ((*(int *)(param_2 + 4) == 0x40) && (extraout_EDI[0x5d] != 0)) goto LAB_000217ef;\n        goto LAB_000216e0;\n      }\n      local_38 = *extraout_EDI;\n      iVar3 = extraout_EDI[0x5a];\n      local_44 = extraout_EDI + 0xaa;\n      iVar4 = extraout_EDI[0x5b];\n    }\n    else {\n      if ((*(char *)((int)extraout_EDI + 0x251) == '\0') ||\n         (iVar3 = FUN_000215c0(extraout_EDI,unaff_EBX + 0x5c799), iVar3 != 0)) goto LAB_000216dc;\n      local_38 = *extraout_EDI;\n      iVar3 = extraout_EDI[0x3b];\n      local_44 = extraout_EDI + 0xa7;\n      iVar4 = extraout_EDI[0x3c];\n    }\n    local_28 = 0;\n    local_2c = 0;\n    __s = (char *)curl_maprintf(unaff_EBX + 0x661ba,iVar3,iVar4);\n    if (__s != (char *)0x0) {\n      sVar5 = strlen(__s);\n      iVar3 = FUN_0001b180(local_38,__s,sVar5,&local_28,&local_2c);\n      if (iVar3 != 0) {\n        (**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(__s);\n        goto LAB_000216e6;\n      }\n      pbVar1 = BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e;\n      if (local_28 == 0) {\n        (**(code **)pbVar1)(__s);\n        iVar3 = 9;\n        goto LAB_000216e6;\n      }\n      (**(code **)pbVar1)(*local_44);\n      iVar3 = unaff_EBX + 0x5c75f;\n      if (param_4 == '\0') {\n        iVar3 = unaff_EBX + 0x66713;\n      }\n      iVar3 = curl_maprintf(unaff_EBX + 0x5c7bb,iVar3,local_28);\n      *local_44 = iVar3;\n      (**(code **)pbVar1)(local_28);\n      if (*local_44 != 0) {\n        iVar3 = unaff_EBX + 0x5c770;\n        (**(code **)pbVar1)(__s);\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_0002177e;\n      }\n      (**(code **)pbVar1)(__s);\n    }\nLAB_00021b67:\n    iVar3 = 0x1b;\n    goto LAB_000216e6;\n  }" if (parenthesized_expression "(iVar3 != 4)" ( (binary_expression "iVar3 != 4" identifier != number_literal) )) (compound_statement "{\n    if (iVar3 == 8) {\n      iVar3 = FUN_0005da00(extraout_EDI,param_4);\n      if (iVar3 != 0) goto LAB_000216e6;\n      iVar3 = unaff_EBX + 0x5c816;\n      goto LAB_0002177e;\n    }\n    if (iVar3 == 0x20) {\n      iVar3 = FUN_0005e5c0(extraout_EDI,param_4);\n      if (iVar3 != 0) goto LAB_000216e6;\n      iVar3 = unaff_EBX + 0x5c776;\n      goto LAB_0002177e;\n    }\n    if (iVar3 == 2) {\n      iVar3 = FUN_000476e0(extraout_EDI,param_4,param_3,unaff_retaddr);\n      if (iVar3 != 0) goto LAB_000216e6;\n      iVar3 = unaff_EBX + 0x5c77e;\n      goto LAB_0002177e;\n    }\n    if (iVar3 != 1) {\n      if (iVar3 != 0x40) {\nLAB_000216e0:\n        *(undefined1 *)(param_2 + 0xd) = 0;\n        iVar3 = 0;\n        goto LAB_000216e6;\n      }\n      if ((param_4 != '\0') || (extraout_EDI[0x5d] == 0)) {\nLAB_000216dc:\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_000216e0;\n      }\nLAB_000217ef:\n      iVar3 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2);\n      if (iVar3 != 0) goto LAB_000216dc;\n      goto LAB_0002181a;\n    }\n    if (param_4 == '\0') {\n      if ((char)extraout_EDI[0x94] == '\0') goto LAB_000216dc;\n      iVar3 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7ad);\n      if (iVar3 != 0) {\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        if ((*(int *)(param_2 + 4) == 0x40) && (extraout_EDI[0x5d] != 0)) goto LAB_000217ef;\n        goto LAB_000216e0;\n      }\n      local_38 = *extraout_EDI;\n      iVar3 = extraout_EDI[0x5a];\n      local_44 = extraout_EDI + 0xaa;\n      iVar4 = extraout_EDI[0x5b];\n    }\n    else {\n      if ((*(char *)((int)extraout_EDI + 0x251) == '\0') ||\n         (iVar3 = FUN_000215c0(extraout_EDI,unaff_EBX + 0x5c799), iVar3 != 0)) goto LAB_000216dc;\n      local_38 = *extraout_EDI;\n      iVar3 = extraout_EDI[0x3b];\n      local_44 = extraout_EDI + 0xa7;\n      iVar4 = extraout_EDI[0x3c];\n    }\n    local_28 = 0;\n    local_2c = 0;\n    __s = (char *)curl_maprintf(unaff_EBX + 0x661ba,iVar3,iVar4);\n    if (__s != (char *)0x0) {\n      sVar5 = strlen(__s);\n      iVar3 = FUN_0001b180(local_38,__s,sVar5,&local_28,&local_2c);\n      if (iVar3 != 0) {\n        (**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(__s);\n        goto LAB_000216e6;\n      }\n      pbVar1 = BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e;\n      if (local_28 == 0) {\n        (**(code **)pbVar1)(__s);\n        iVar3 = 9;\n        goto LAB_000216e6;\n      }\n      (**(code **)pbVar1)(*local_44);\n      iVar3 = unaff_EBX + 0x5c75f;\n      if (param_4 == '\0') {\n        iVar3 = unaff_EBX + 0x66713;\n      }\n      iVar3 = curl_maprintf(unaff_EBX + 0x5c7bb,iVar3,local_28);\n      *local_44 = iVar3;\n      (**(code **)pbVar1)(local_28);\n      if (*local_44 != 0) {\n        iVar3 = unaff_EBX + 0x5c770;\n        (**(code **)pbVar1)(__s);\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_0002177e;\n      }\n      (**(code **)pbVar1)(__s);\n    }\nLAB_00021b67:\n    iVar3 = 0x1b;\n    goto LAB_000216e6;\n  }" { (if_statement "if (iVar3 == 8) {\n      iVar3 = FUN_0005da00(extraout_EDI,param_4);\n      if (iVar3 != 0) goto LAB_000216e6;\n      iVar3 = unaff_EBX + 0x5c816;\n      goto LAB_0002177e;\n    }" if (parenthesized_expression "(iVar3 == 8)" ( (binary_expression "iVar3 == 8" identifier == number_literal) )) (compound_statement "{\n      iVar3 = FUN_0005da00(extraout_EDI,param_4);\n      if (iVar3 != 0) goto LAB_000216e6;\n      iVar3 = unaff_EBX + 0x5c816;\n      goto LAB_0002177e;\n    }" { (expression_statement "iVar3 = FUN_0005da00(extraout_EDI,param_4);" (assignment_expression "iVar3 = FUN_0005da00(extraout_EDI,param_4)" identifier = (call_expression "FUN_0005da00(extraout_EDI,param_4)" identifier (argument_list "(extraout_EDI,param_4)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 != 0) goto LAB_000216e6;" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000216e6;" goto statement_identifier ;)) (expression_statement "iVar3 = unaff_EBX + 0x5c816;" (assignment_expression "iVar3 = unaff_EBX + 0x5c816" identifier = (binary_expression "unaff_EBX + 0x5c816" identifier + number_literal)) ;) (goto_statement "goto LAB_0002177e;" goto statement_identifier ;) })) (if_statement "if (iVar3 == 0x20) {\n      iVar3 = FUN_0005e5c0(extraout_EDI,param_4);\n      if (iVar3 != 0) goto LAB_000216e6;\n      iVar3 = unaff_EBX + 0x5c776;\n      goto LAB_0002177e;\n    }" if (parenthesized_expression "(iVar3 == 0x20)" ( (binary_expression "iVar3 == 0x20" identifier == number_literal) )) (compound_statement "{\n      iVar3 = FUN_0005e5c0(extraout_EDI,param_4);\n      if (iVar3 != 0) goto LAB_000216e6;\n      iVar3 = unaff_EBX + 0x5c776;\n      goto LAB_0002177e;\n    }" { (expression_statement "iVar3 = FUN_0005e5c0(extraout_EDI,param_4);" (assignment_expression "iVar3 = FUN_0005e5c0(extraout_EDI,param_4)" identifier = (call_expression "FUN_0005e5c0(extraout_EDI,param_4)" identifier (argument_list "(extraout_EDI,param_4)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 != 0) goto LAB_000216e6;" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000216e6;" goto statement_identifier ;)) (expression_statement "iVar3 = unaff_EBX + 0x5c776;" (assignment_expression "iVar3 = unaff_EBX + 0x5c776" identifier = (binary_expression "unaff_EBX + 0x5c776" identifier + number_literal)) ;) (goto_statement "goto LAB_0002177e;" goto statement_identifier ;) })) (if_statement "if (iVar3 == 2) {\n      iVar3 = FUN_000476e0(extraout_EDI,param_4,param_3,unaff_retaddr);\n      if (iVar3 != 0) goto LAB_000216e6;\n      iVar3 = unaff_EBX + 0x5c77e;\n      goto LAB_0002177e;\n    }" if (parenthesized_expression "(iVar3 == 2)" ( (binary_expression "iVar3 == 2" identifier == number_literal) )) (compound_statement "{\n      iVar3 = FUN_000476e0(extraout_EDI,param_4,param_3,unaff_retaddr);\n      if (iVar3 != 0) goto LAB_000216e6;\n      iVar3 = unaff_EBX + 0x5c77e;\n      goto LAB_0002177e;\n    }" { (expression_statement "iVar3 = FUN_000476e0(extraout_EDI,param_4,param_3,unaff_retaddr);" (assignment_expression "iVar3 = FUN_000476e0(extraout_EDI,param_4,param_3,unaff_retaddr)" identifier = (call_expression "FUN_000476e0(extraout_EDI,param_4,param_3,unaff_retaddr)" identifier (argument_list "(extraout_EDI,param_4,param_3,unaff_retaddr)" ( identifier , identifier , identifier , identifier )))) ;) (if_statement "if (iVar3 != 0) goto LAB_000216e6;" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000216e6;" goto statement_identifier ;)) (expression_statement "iVar3 = unaff_EBX + 0x5c77e;" (assignment_expression "iVar3 = unaff_EBX + 0x5c77e" identifier = (binary_expression "unaff_EBX + 0x5c77e" identifier + number_literal)) ;) (goto_statement "goto LAB_0002177e;" goto statement_identifier ;) })) (if_statement "if (iVar3 != 1) {\n      if (iVar3 != 0x40) {\nLAB_000216e0:\n        *(undefined1 *)(param_2 + 0xd) = 0;\n        iVar3 = 0;\n        goto LAB_000216e6;\n      }\n      if ((param_4 != '\0') || (extraout_EDI[0x5d] == 0)) {\nLAB_000216dc:\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_000216e0;\n      }\nLAB_000217ef:\n      iVar3 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2);\n      if (iVar3 != 0) goto LAB_000216dc;\n      goto LAB_0002181a;\n    }" if (parenthesized_expression "(iVar3 != 1)" ( (binary_expression "iVar3 != 1" identifier != number_literal) )) (compound_statement "{\n      if (iVar3 != 0x40) {\nLAB_000216e0:\n        *(undefined1 *)(param_2 + 0xd) = 0;\n        iVar3 = 0;\n        goto LAB_000216e6;\n      }\n      if ((param_4 != '\0') || (extraout_EDI[0x5d] == 0)) {\nLAB_000216dc:\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_000216e0;\n      }\nLAB_000217ef:\n      iVar3 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2);\n      if (iVar3 != 0) goto LAB_000216dc;\n      goto LAB_0002181a;\n    }" { (if_statement "if (iVar3 != 0x40) {\nLAB_000216e0:\n        *(undefined1 *)(param_2 + 0xd) = 0;\n        iVar3 = 0;\n        goto LAB_000216e6;\n      }" if (parenthesized_expression "(iVar3 != 0x40)" ( (binary_expression "iVar3 != 0x40" identifier != number_literal) )) (compound_statement "{\nLAB_000216e0:\n        *(undefined1 *)(param_2 + 0xd) = 0;\n        iVar3 = 0;\n        goto LAB_000216e6;\n      }" { (labeled_statement "LAB_000216e0:\n        *(undefined1 *)(param_2 + 0xd) = 0;" statement_identifier : (expression_statement "*(undefined1 *)(param_2 + 0xd) = 0;" (assignment_expression "*(undefined1 *)(param_2 + 0xd) = 0" (pointer_expression "*(undefined1 *)(param_2 + 0xd)" * (cast_expression "(undefined1 *)(param_2 + 0xd)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xd)" ( (binary_expression "param_2 + 0xd" identifier + number_literal) )))) = number_literal) ;)) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_000216e6;" goto statement_identifier ;) })) (if_statement "if ((param_4 != '\0') || (extraout_EDI[0x5d] == 0)) {\nLAB_000216dc:\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_000216e0;\n      }" if (parenthesized_expression "((param_4 != '\0') || (extraout_EDI[0x5d] == 0))" ( (binary_expression "(param_4 != '\0') || (extraout_EDI[0x5d] == 0)" (parenthesized_expression "(param_4 != '\0')" ( (binary_expression "param_4 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(extraout_EDI[0x5d] == 0)" ( (binary_expression "extraout_EDI[0x5d] == 0" (subscript_expression "extraout_EDI[0x5d]" identifier [ number_literal ]) == number_literal) ))) )) (compound_statement "{\nLAB_000216dc:\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_000216e0;\n      }" { (labeled_statement "LAB_000216dc:\n        *(undefined1 *)(param_2 + 0xc) = 1;" statement_identifier : (expression_statement "*(undefined1 *)(param_2 + 0xc) = 1;" (assignment_expression "*(undefined1 *)(param_2 + 0xc) = 1" (pointer_expression "*(undefined1 *)(param_2 + 0xc)" * (cast_expression "(undefined1 *)(param_2 + 0xc)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) = number_literal) ;)) (goto_statement "goto LAB_000216e0;" goto statement_identifier ;) })) (labeled_statement "LAB_000217ef:\n      iVar3 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2);" statement_identifier : (expression_statement "iVar3 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2);" (assignment_expression "iVar3 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2)" identifier = (call_expression "FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2)" identifier (argument_list "(extraout_EDI,unaff_EBX + 0x5c7f2)" ( identifier , (binary_expression "unaff_EBX + 0x5c7f2" identifier + number_literal) )))) ;)) (if_statement "if (iVar3 != 0) goto LAB_000216dc;" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000216dc;" goto statement_identifier ;)) (goto_statement "goto LAB_0002181a;" goto statement_identifier ;) })) (if_statement "if (param_4 == '\0') {\n      if ((char)extraout_EDI[0x94] == '\0') goto LAB_000216dc;\n      iVar3 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7ad);\n      if (iVar3 != 0) {\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        if ((*(int *)(param_2 + 4) == 0x40) && (extraout_EDI[0x5d] != 0)) goto LAB_000217ef;\n        goto LAB_000216e0;\n      }\n      local_38 = *extraout_EDI;\n      iVar3 = extraout_EDI[0x5a];\n      local_44 = extraout_EDI + 0xaa;\n      iVar4 = extraout_EDI[0x5b];\n    }\n    else {\n      if ((*(char *)((int)extraout_EDI + 0x251) == '\0') ||\n         (iVar3 = FUN_000215c0(extraout_EDI,unaff_EBX + 0x5c799), iVar3 != 0)) goto LAB_000216dc;\n      local_38 = *extraout_EDI;\n      iVar3 = extraout_EDI[0x3b];\n      local_44 = extraout_EDI + 0xa7;\n      iVar4 = extraout_EDI[0x3c];\n    }" if (parenthesized_expression "(param_4 == '\0')" ( (binary_expression "param_4 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      if ((char)extraout_EDI[0x94] == '\0') goto LAB_000216dc;\n      iVar3 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7ad);\n      if (iVar3 != 0) {\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        if ((*(int *)(param_2 + 4) == 0x40) && (extraout_EDI[0x5d] != 0)) goto LAB_000217ef;\n        goto LAB_000216e0;\n      }\n      local_38 = *extraout_EDI;\n      iVar3 = extraout_EDI[0x5a];\n      local_44 = extraout_EDI + 0xaa;\n      iVar4 = extraout_EDI[0x5b];\n    }" { (if_statement "if ((char)extraout_EDI[0x94] == '\0') goto LAB_000216dc;" if (parenthesized_expression "((char)extraout_EDI[0x94] == '\0')" ( (binary_expression "(char)extraout_EDI[0x94] == '\0'" (cast_expression "(char)extraout_EDI[0x94]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "extraout_EDI[0x94]" identifier [ number_literal ])) == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_000216dc;" goto statement_identifier ;)) (expression_statement "iVar3 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7ad);" (assignment_expression "iVar3 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7ad)" identifier = (call_expression "FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7ad)" identifier (argument_list "(extraout_EDI,unaff_EBX + 0x5c7ad)" ( identifier , (binary_expression "unaff_EBX + 0x5c7ad" identifier + number_literal) )))) ;) (if_statement "if (iVar3 != 0) {\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        if ((*(int *)(param_2 + 4) == 0x40) && (extraout_EDI[0x5d] != 0)) goto LAB_000217ef;\n        goto LAB_000216e0;\n      }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        if ((*(int *)(param_2 + 4) == 0x40) && (extraout_EDI[0x5d] != 0)) goto LAB_000217ef;\n        goto LAB_000216e0;\n      }" { (expression_statement "*(undefined1 *)(param_2 + 0xc) = 1;" (assignment_expression "*(undefined1 *)(param_2 + 0xc) = 1" (pointer_expression "*(undefined1 *)(param_2 + 0xc)" * (cast_expression "(undefined1 *)(param_2 + 0xc)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) = number_literal) ;) (if_statement "if ((*(int *)(param_2 + 4) == 0x40) && (extraout_EDI[0x5d] != 0)) goto LAB_000217ef;" if (parenthesized_expression "((*(int *)(param_2 + 4) == 0x40) && (extraout_EDI[0x5d] != 0))" ( (binary_expression "(*(int *)(param_2 + 4) == 0x40) && (extraout_EDI[0x5d] != 0)" (parenthesized_expression "(*(int *)(param_2 + 4) == 0x40)" ( (binary_expression "*(int *)(param_2 + 4) == 0x40" (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) == number_literal) )) && (parenthesized_expression "(extraout_EDI[0x5d] != 0)" ( (binary_expression "extraout_EDI[0x5d] != 0" (subscript_expression "extraout_EDI[0x5d]" identifier [ number_literal ]) != number_literal) ))) )) (goto_statement "goto LAB_000217ef;" goto statement_identifier ;)) (goto_statement "goto LAB_000216e0;" goto statement_identifier ;) })) (expression_statement "local_38 = *extraout_EDI;" (assignment_expression "local_38 = *extraout_EDI" identifier = (pointer_expression "*extraout_EDI" * identifier)) ;) (expression_statement "iVar3 = extraout_EDI[0x5a];" (assignment_expression "iVar3 = extraout_EDI[0x5a]" identifier = (subscript_expression "extraout_EDI[0x5a]" identifier [ number_literal ])) ;) (expression_statement "local_44 = extraout_EDI + 0xaa;" (assignment_expression "local_44 = extraout_EDI + 0xaa" identifier = (binary_expression "extraout_EDI + 0xaa" identifier + number_literal)) ;) (expression_statement "iVar4 = extraout_EDI[0x5b];" (assignment_expression "iVar4 = extraout_EDI[0x5b]" identifier = (subscript_expression "extraout_EDI[0x5b]" identifier [ number_literal ])) ;) }) (else_clause "else {\n      if ((*(char *)((int)extraout_EDI + 0x251) == '\0') ||\n         (iVar3 = FUN_000215c0(extraout_EDI,unaff_EBX + 0x5c799), iVar3 != 0)) goto LAB_000216dc;\n      local_38 = *extraout_EDI;\n      iVar3 = extraout_EDI[0x3b];\n      local_44 = extraout_EDI + 0xa7;\n      iVar4 = extraout_EDI[0x3c];\n    }" else (compound_statement "{\n      if ((*(char *)((int)extraout_EDI + 0x251) == '\0') ||\n         (iVar3 = FUN_000215c0(extraout_EDI,unaff_EBX + 0x5c799), iVar3 != 0)) goto LAB_000216dc;\n      local_38 = *extraout_EDI;\n      iVar3 = extraout_EDI[0x3b];\n      local_44 = extraout_EDI + 0xa7;\n      iVar4 = extraout_EDI[0x3c];\n    }" { (if_statement "if ((*(char *)((int)extraout_EDI + 0x251) == '\0') ||\n         (iVar3 = FUN_000215c0(extraout_EDI,unaff_EBX + 0x5c799), iVar3 != 0)) goto LAB_000216dc;" if (parenthesized_expression "((*(char *)((int)extraout_EDI + 0x251) == '\0') ||\n         (iVar3 = FUN_000215c0(extraout_EDI,unaff_EBX + 0x5c799), iVar3 != 0))" ( (binary_expression "(*(char *)((int)extraout_EDI + 0x251) == '\0') ||\n         (iVar3 = FUN_000215c0(extraout_EDI,unaff_EBX + 0x5c799), iVar3 != 0)" (parenthesized_expression "(*(char *)((int)extraout_EDI + 0x251) == '\0')" ( (binary_expression "*(char *)((int)extraout_EDI + 0x251) == '\0'" (pointer_expression "*(char *)((int)extraout_EDI + 0x251)" * (cast_expression "(char *)((int)extraout_EDI + 0x251)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)extraout_EDI + 0x251)" ( (binary_expression "(int)extraout_EDI + 0x251" (cast_expression "(int)extraout_EDI" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(iVar3 = FUN_000215c0(extraout_EDI,unaff_EBX + 0x5c799), iVar3 != 0)" ( (comma_expression "iVar3 = FUN_000215c0(extraout_EDI,unaff_EBX + 0x5c799), iVar3 != 0" (assignment_expression "iVar3 = FUN_000215c0(extraout_EDI,unaff_EBX + 0x5c799)" identifier = (call_expression "FUN_000215c0(extraout_EDI,unaff_EBX + 0x5c799)" identifier (argument_list "(extraout_EDI,unaff_EBX + 0x5c799)" ( identifier , (binary_expression "unaff_EBX + 0x5c799" identifier + number_literal) )))) , (binary_expression "iVar3 != 0" identifier != number_literal)) ))) )) (goto_statement "goto LAB_000216dc;" goto statement_identifier ;)) (expression_statement "local_38 = *extraout_EDI;" (assignment_expression "local_38 = *extraout_EDI" identifier = (pointer_expression "*extraout_EDI" * identifier)) ;) (expression_statement "iVar3 = extraout_EDI[0x3b];" (assignment_expression "iVar3 = extraout_EDI[0x3b]" identifier = (subscript_expression "extraout_EDI[0x3b]" identifier [ number_literal ])) ;) (expression_statement "local_44 = extraout_EDI + 0xa7;" (assignment_expression "local_44 = extraout_EDI + 0xa7" identifier = (binary_expression "extraout_EDI + 0xa7" identifier + number_literal)) ;) (expression_statement "iVar4 = extraout_EDI[0x3c];" (assignment_expression "iVar4 = extraout_EDI[0x3c]" identifier = (subscript_expression "extraout_EDI[0x3c]" identifier [ number_literal ])) ;) }))) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" identifier = number_literal) ;) (expression_statement "__s = (char *)curl_maprintf(unaff_EBX + 0x661ba,iVar3,iVar4);" (assignment_expression "__s = (char *)curl_maprintf(unaff_EBX + 0x661ba,iVar3,iVar4)" identifier = (cast_expression "(char *)curl_maprintf(unaff_EBX + 0x661ba,iVar3,iVar4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "curl_maprintf(unaff_EBX + 0x661ba,iVar3,iVar4)" identifier (argument_list "(unaff_EBX + 0x661ba,iVar3,iVar4)" ( (binary_expression "unaff_EBX + 0x661ba" identifier + number_literal) , identifier , identifier ))))) ;) (if_statement "if (__s != (char *)0x0) {\n      sVar5 = strlen(__s);\n      iVar3 = FUN_0001b180(local_38,__s,sVar5,&local_28,&local_2c);\n      if (iVar3 != 0) {\n        (**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(__s);\n        goto LAB_000216e6;\n      }\n      pbVar1 = BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e;\n      if (local_28 == 0) {\n        (**(code **)pbVar1)(__s);\n        iVar3 = 9;\n        goto LAB_000216e6;\n      }\n      (**(code **)pbVar1)(*local_44);\n      iVar3 = unaff_EBX + 0x5c75f;\n      if (param_4 == '\0') {\n        iVar3 = unaff_EBX + 0x66713;\n      }\n      iVar3 = curl_maprintf(unaff_EBX + 0x5c7bb,iVar3,local_28);\n      *local_44 = iVar3;\n      (**(code **)pbVar1)(local_28);\n      if (*local_44 != 0) {\n        iVar3 = unaff_EBX + 0x5c770;\n        (**(code **)pbVar1)(__s);\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_0002177e;\n      }\n      (**(code **)pbVar1)(__s);\n    }" if (parenthesized_expression "(__s != (char *)0x0)" ( (binary_expression "__s != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      sVar5 = strlen(__s);\n      iVar3 = FUN_0001b180(local_38,__s,sVar5,&local_28,&local_2c);\n      if (iVar3 != 0) {\n        (**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(__s);\n        goto LAB_000216e6;\n      }\n      pbVar1 = BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e;\n      if (local_28 == 0) {\n        (**(code **)pbVar1)(__s);\n        iVar3 = 9;\n        goto LAB_000216e6;\n      }\n      (**(code **)pbVar1)(*local_44);\n      iVar3 = unaff_EBX + 0x5c75f;\n      if (param_4 == '\0') {\n        iVar3 = unaff_EBX + 0x66713;\n      }\n      iVar3 = curl_maprintf(unaff_EBX + 0x5c7bb,iVar3,local_28);\n      *local_44 = iVar3;\n      (**(code **)pbVar1)(local_28);\n      if (*local_44 != 0) {\n        iVar3 = unaff_EBX + 0x5c770;\n        (**(code **)pbVar1)(__s);\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_0002177e;\n      }\n      (**(code **)pbVar1)(__s);\n    }" { (expression_statement "sVar5 = strlen(__s);" (assignment_expression "sVar5 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "iVar3 = FUN_0001b180(local_38,__s,sVar5,&local_28,&local_2c);" (assignment_expression "iVar3 = FUN_0001b180(local_38,__s,sVar5,&local_28,&local_2c)" identifier = (call_expression "FUN_0001b180(local_38,__s,sVar5,&local_28,&local_2c)" identifier (argument_list "(local_38,__s,sVar5,&local_28,&local_2c)" ( identifier , identifier , identifier , (pointer_expression "&local_28" & identifier) , (pointer_expression "&local_2c" & identifier) )))) ;) (if_statement "if (iVar3 != 0) {\n        (**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(__s);\n        goto LAB_000216e6;\n      }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n        (**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(__s);\n        goto LAB_000216e6;\n      }" { (expression_statement "(**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(__s);" (call_expression "(**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(__s)" (parenthesized_expression "(**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))" ( (pointer_expression "**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e)" * (pointer_expression "*(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e)" * (cast_expression "(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e)" ( (binary_expression "BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e" (binary_expression "BYTE_ARRAY_0008f7e1 + unaff_EBX" identifier + identifier) + number_literal) ))))) )) (argument_list "(__s)" ( identifier ))) ;) (goto_statement "goto LAB_000216e6;" goto statement_identifier ;) })) (expression_statement "pbVar1 = BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e;" (assignment_expression "pbVar1 = BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e" identifier = (binary_expression "BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e" (binary_expression "BYTE_ARRAY_0008f7e1 + unaff_EBX" identifier + identifier) + number_literal)) ;) (if_statement "if (local_28 == 0) {\n        (**(code **)pbVar1)(__s);\n        iVar3 = 9;\n        goto LAB_000216e6;\n      }" if (parenthesized_expression "(local_28 == 0)" ( (binary_expression "local_28 == 0" identifier == number_literal) )) (compound_statement "{\n        (**(code **)pbVar1)(__s);\n        iVar3 = 9;\n        goto LAB_000216e6;\n      }" { (expression_statement "(**(code **)pbVar1)(__s);" (call_expression "(**(code **)pbVar1)(__s)" (parenthesized_expression "(**(code **)pbVar1)" ( (pointer_expression "**(code **)pbVar1" * (pointer_expression "*(code **)pbVar1" * (cast_expression "(code **)pbVar1" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "(__s)" ( identifier ))) ;) (expression_statement "iVar3 = 9;" (assignment_expression "iVar3 = 9" identifier = number_literal) ;) (goto_statement "goto LAB_000216e6;" goto statement_identifier ;) })) (expression_statement "(**(code **)pbVar1)(*local_44);" (call_expression "(**(code **)pbVar1)(*local_44)" (parenthesized_expression "(**(code **)pbVar1)" ( (pointer_expression "**(code **)pbVar1" * (pointer_expression "*(code **)pbVar1" * (cast_expression "(code **)pbVar1" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "(*local_44)" ( (pointer_expression "*local_44" * identifier) ))) ;) (expression_statement "iVar3 = unaff_EBX + 0x5c75f;" (assignment_expression "iVar3 = unaff_EBX + 0x5c75f" identifier = (binary_expression "unaff_EBX + 0x5c75f" identifier + number_literal)) ;) (if_statement "if (param_4 == '\0') {\n        iVar3 = unaff_EBX + 0x66713;\n      }" if (parenthesized_expression "(param_4 == '\0')" ( (binary_expression "param_4 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        iVar3 = unaff_EBX + 0x66713;\n      }" { (expression_statement "iVar3 = unaff_EBX + 0x66713;" (assignment_expression "iVar3 = unaff_EBX + 0x66713" identifier = (binary_expression "unaff_EBX + 0x66713" identifier + number_literal)) ;) })) (expression_statement "iVar3 = curl_maprintf(unaff_EBX + 0x5c7bb,iVar3,local_28);" (assignment_expression "iVar3 = curl_maprintf(unaff_EBX + 0x5c7bb,iVar3,local_28)" identifier = (call_expression "curl_maprintf(unaff_EBX + 0x5c7bb,iVar3,local_28)" identifier (argument_list "(unaff_EBX + 0x5c7bb,iVar3,local_28)" ( (binary_expression "unaff_EBX + 0x5c7bb" identifier + number_literal) , identifier , identifier )))) ;) (expression_statement "*local_44 = iVar3;" (assignment_expression "*local_44 = iVar3" (pointer_expression "*local_44" * identifier) = identifier) ;) (expression_statement "(**(code **)pbVar1)(local_28);" (call_expression "(**(code **)pbVar1)(local_28)" (parenthesized_expression "(**(code **)pbVar1)" ( (pointer_expression "**(code **)pbVar1" * (pointer_expression "*(code **)pbVar1" * (cast_expression "(code **)pbVar1" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "(local_28)" ( identifier ))) ;) (if_statement "if (*local_44 != 0) {\n        iVar3 = unaff_EBX + 0x5c770;\n        (**(code **)pbVar1)(__s);\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_0002177e;\n      }" if (parenthesized_expression "(*local_44 != 0)" ( (binary_expression "*local_44 != 0" (pointer_expression "*local_44" * identifier) != number_literal) )) (compound_statement "{\n        iVar3 = unaff_EBX + 0x5c770;\n        (**(code **)pbVar1)(__s);\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_0002177e;\n      }" { (expression_statement "iVar3 = unaff_EBX + 0x5c770;" (assignment_expression "iVar3 = unaff_EBX + 0x5c770" identifier = (binary_expression "unaff_EBX + 0x5c770" identifier + number_literal)) ;) (expression_statement "(**(code **)pbVar1)(__s);" (call_expression "(**(code **)pbVar1)(__s)" (parenthesized_expression "(**(code **)pbVar1)" ( (pointer_expression "**(code **)pbVar1" * (pointer_expression "*(code **)pbVar1" * (cast_expression "(code **)pbVar1" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "(__s)" ( identifier ))) ;) (expression_statement "*(undefined1 *)(param_2 + 0xc) = 1;" (assignment_expression "*(undefined1 *)(param_2 + 0xc) = 1" (pointer_expression "*(undefined1 *)(param_2 + 0xc)" * (cast_expression "(undefined1 *)(param_2 + 0xc)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) = number_literal) ;) (goto_statement "goto LAB_0002177e;" goto statement_identifier ;) })) (expression_statement "(**(code **)pbVar1)(__s);" (call_expression "(**(code **)pbVar1)(__s)" (parenthesized_expression "(**(code **)pbVar1)" ( (pointer_expression "**(code **)pbVar1" * (pointer_expression "*(code **)pbVar1" * (cast_expression "(code **)pbVar1" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "(__s)" ( identifier ))) ;) })) (labeled_statement "LAB_00021b67:\n    iVar3 = 0x1b;" statement_identifier : (expression_statement "iVar3 = 0x1b;" (assignment_expression "iVar3 = 0x1b" identifier = number_literal) ;)) (goto_statement "goto LAB_000216e6;" goto statement_identifier ;) })) (if_statement "if ((puVar7[2] == 0) || ((puVar7[1] & 0xffff0000) != 0)) goto LAB_000216e0;" if (parenthesized_expression "((puVar7[2] == 0) || ((puVar7[1] & 0xffff0000) != 0))" ( (binary_expression "(puVar7[2] == 0) || ((puVar7[1] & 0xffff0000) != 0)" (parenthesized_expression "(puVar7[2] == 0)" ( (binary_expression "puVar7[2] == 0" (subscript_expression "puVar7[2]" identifier [ number_literal ]) == number_literal) )) || (parenthesized_expression "((puVar7[1] & 0xffff0000) != 0)" ( (binary_expression "(puVar7[1] & 0xffff0000) != 0" (parenthesized_expression "(puVar7[1] & 0xffff0000)" ( (binary_expression "puVar7[1] & 0xffff0000" (subscript_expression "puVar7[1]" identifier [ number_literal ]) & number_literal) )) != number_literal) ))) )) (goto_statement "goto LAB_000216e0;" goto statement_identifier ;)) (expression_statement "iVar3 = FUN_00047be0(extraout_EDI,param_4);" (assignment_expression "iVar3 = FUN_00047be0(extraout_EDI,param_4)" identifier = (call_expression "FUN_00047be0(extraout_EDI,param_4)" identifier (argument_list "(extraout_EDI,param_4)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 != 0) goto LAB_000216e6;" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000216e6;" goto statement_identifier ;)) (expression_statement "*(undefined1 *)(param_2 + 0xc) = 1;" (assignment_expression "*(undefined1 *)(param_2 + 0xc) = 1" (pointer_expression "*(undefined1 *)(param_2 + 0xc)" * (cast_expression "(undefined1 *)(param_2 + 0xc)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*puVar7 = 2;" (assignment_expression "*puVar7 = 2" (pointer_expression "*puVar7" * identifier) = number_literal) ;) (expression_statement "iVar3 = unaff_EBX + 0x5c766;" (assignment_expression "iVar3 = unaff_EBX + 0x5c766" identifier = (binary_expression "unaff_EBX + 0x5c766" identifier + number_literal)) ;) (labeled_statement "LAB_0002177e:\n  if (*(int *)(param_2 + 4) == 0x40) {\n    if ((param_4 == '\0') && (extraout_EDI[0x5d] != 0)) {\n      iVar4 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2);\n      if (iVar4 != 0) {\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_00021878;\n      }\nLAB_0002181a:\n      (**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(extraout_EDI[0xaa]);\n      iVar3 = curl_maprintf(unaff_EBX + 0x5c7d7,extraout_EDI[0x5d]);\n      extraout_EDI[0xaa] = iVar3;\n      if (iVar3 == 0) goto LAB_00021b67;\n      iVar3 = unaff_EBX + 0x5c792;\n    }\n    *(undefined1 *)(param_2 + 0xc) = 1;\n    if (param_4 != '\0') goto LAB_00021790;\nLAB_00021878:\n    iVar4 = extraout_EDI[0x5a];\n    if (iVar4 == 0) {\n      iVar4 = unaff_EBX + 0x66713;\n    }\n    iVar6 = unaff_EBX + 0x5c78b;\n  }\n  else {\n    if (param_4 == '\0') goto LAB_00021878;\nLAB_00021790:\n    iVar4 = extraout_EDI[0x3b];\n    if (iVar4 == 0) {\n      iVar4 = unaff_EBX + 0x66713;\n    }\n    iVar6 = unaff_EBX + 0x5c785;\n  }" statement_identifier : (if_statement "if (*(int *)(param_2 + 4) == 0x40) {\n    if ((param_4 == '\0') && (extraout_EDI[0x5d] != 0)) {\n      iVar4 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2);\n      if (iVar4 != 0) {\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_00021878;\n      }\nLAB_0002181a:\n      (**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(extraout_EDI[0xaa]);\n      iVar3 = curl_maprintf(unaff_EBX + 0x5c7d7,extraout_EDI[0x5d]);\n      extraout_EDI[0xaa] = iVar3;\n      if (iVar3 == 0) goto LAB_00021b67;\n      iVar3 = unaff_EBX + 0x5c792;\n    }\n    *(undefined1 *)(param_2 + 0xc) = 1;\n    if (param_4 != '\0') goto LAB_00021790;\nLAB_00021878:\n    iVar4 = extraout_EDI[0x5a];\n    if (iVar4 == 0) {\n      iVar4 = unaff_EBX + 0x66713;\n    }\n    iVar6 = unaff_EBX + 0x5c78b;\n  }\n  else {\n    if (param_4 == '\0') goto LAB_00021878;\nLAB_00021790:\n    iVar4 = extraout_EDI[0x3b];\n    if (iVar4 == 0) {\n      iVar4 = unaff_EBX + 0x66713;\n    }\n    iVar6 = unaff_EBX + 0x5c785;\n  }" if (parenthesized_expression "(*(int *)(param_2 + 4) == 0x40)" ( (binary_expression "*(int *)(param_2 + 4) == 0x40" (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    if ((param_4 == '\0') && (extraout_EDI[0x5d] != 0)) {\n      iVar4 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2);\n      if (iVar4 != 0) {\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_00021878;\n      }\nLAB_0002181a:\n      (**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(extraout_EDI[0xaa]);\n      iVar3 = curl_maprintf(unaff_EBX + 0x5c7d7,extraout_EDI[0x5d]);\n      extraout_EDI[0xaa] = iVar3;\n      if (iVar3 == 0) goto LAB_00021b67;\n      iVar3 = unaff_EBX + 0x5c792;\n    }\n    *(undefined1 *)(param_2 + 0xc) = 1;\n    if (param_4 != '\0') goto LAB_00021790;\nLAB_00021878:\n    iVar4 = extraout_EDI[0x5a];\n    if (iVar4 == 0) {\n      iVar4 = unaff_EBX + 0x66713;\n    }\n    iVar6 = unaff_EBX + 0x5c78b;\n  }" { (if_statement "if ((param_4 == '\0') && (extraout_EDI[0x5d] != 0)) {\n      iVar4 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2);\n      if (iVar4 != 0) {\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_00021878;\n      }\nLAB_0002181a:\n      (**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(extraout_EDI[0xaa]);\n      iVar3 = curl_maprintf(unaff_EBX + 0x5c7d7,extraout_EDI[0x5d]);\n      extraout_EDI[0xaa] = iVar3;\n      if (iVar3 == 0) goto LAB_00021b67;\n      iVar3 = unaff_EBX + 0x5c792;\n    }" if (parenthesized_expression "((param_4 == '\0') && (extraout_EDI[0x5d] != 0))" ( (binary_expression "(param_4 == '\0') && (extraout_EDI[0x5d] != 0)" (parenthesized_expression "(param_4 == '\0')" ( (binary_expression "param_4 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(extraout_EDI[0x5d] != 0)" ( (binary_expression "extraout_EDI[0x5d] != 0" (subscript_expression "extraout_EDI[0x5d]" identifier [ number_literal ]) != number_literal) ))) )) (compound_statement "{\n      iVar4 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2);\n      if (iVar4 != 0) {\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_00021878;\n      }\nLAB_0002181a:\n      (**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(extraout_EDI[0xaa]);\n      iVar3 = curl_maprintf(unaff_EBX + 0x5c7d7,extraout_EDI[0x5d]);\n      extraout_EDI[0xaa] = iVar3;\n      if (iVar3 == 0) goto LAB_00021b67;\n      iVar3 = unaff_EBX + 0x5c792;\n    }" { (expression_statement "iVar4 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2);" (assignment_expression "iVar4 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2)" identifier = (call_expression "FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2)" identifier (argument_list "(extraout_EDI,unaff_EBX + 0x5c7f2)" ( identifier , (binary_expression "unaff_EBX + 0x5c7f2" identifier + number_literal) )))) ;) (if_statement "if (iVar4 != 0) {\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_00021878;\n      }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_00021878;\n      }" { (expression_statement "*(undefined1 *)(param_2 + 0xc) = 1;" (assignment_expression "*(undefined1 *)(param_2 + 0xc) = 1" (pointer_expression "*(undefined1 *)(param_2 + 0xc)" * (cast_expression "(undefined1 *)(param_2 + 0xc)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) = number_literal) ;) (goto_statement "goto LAB_00021878;" goto statement_identifier ;) })) (labeled_statement "LAB_0002181a:\n      (**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(extraout_EDI[0xaa]);" statement_identifier : (expression_statement "(**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(extraout_EDI[0xaa]);" (call_expression "(**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(extraout_EDI[0xaa])" (parenthesized_expression "(**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))" ( (pointer_expression "**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e)" * (pointer_expression "*(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e)" * (cast_expression "(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e)" ( (binary_expression "BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e" (binary_expression "BYTE_ARRAY_0008f7e1 + unaff_EBX" identifier + identifier) + number_literal) ))))) )) (argument_list "(extraout_EDI[0xaa])" ( (subscript_expression "extraout_EDI[0xaa]" identifier [ number_literal ]) ))) ;)) (expression_statement "iVar3 = curl_maprintf(unaff_EBX + 0x5c7d7,extraout_EDI[0x5d]);" (assignment_expression "iVar3 = curl_maprintf(unaff_EBX + 0x5c7d7,extraout_EDI[0x5d])" identifier = (call_expression "curl_maprintf(unaff_EBX + 0x5c7d7,extraout_EDI[0x5d])" identifier (argument_list "(unaff_EBX + 0x5c7d7,extraout_EDI[0x5d])" ( (binary_expression "unaff_EBX + 0x5c7d7" identifier + number_literal) , (subscript_expression "extraout_EDI[0x5d]" identifier [ number_literal ]) )))) ;) (expression_statement "extraout_EDI[0xaa] = iVar3;" (assignment_expression "extraout_EDI[0xaa] = iVar3" (subscript_expression "extraout_EDI[0xaa]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar3 == 0) goto LAB_00021b67;" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00021b67;" goto statement_identifier ;)) (expression_statement "iVar3 = unaff_EBX + 0x5c792;" (assignment_expression "iVar3 = unaff_EBX + 0x5c792" identifier = (binary_expression "unaff_EBX + 0x5c792" identifier + number_literal)) ;) })) (expression_statement "*(undefined1 *)(param_2 + 0xc) = 1;" (assignment_expression "*(undefined1 *)(param_2 + 0xc) = 1" (pointer_expression "*(undefined1 *)(param_2 + 0xc)" * (cast_expression "(undefined1 *)(param_2 + 0xc)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (param_4 != '\0') goto LAB_00021790;" if (parenthesized_expression "(param_4 != '\0')" ( (binary_expression "param_4 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_00021790;" goto statement_identifier ;)) (labeled_statement "LAB_00021878:\n    iVar4 = extraout_EDI[0x5a];" statement_identifier : (expression_statement "iVar4 = extraout_EDI[0x5a];" (assignment_expression "iVar4 = extraout_EDI[0x5a]" identifier = (subscript_expression "extraout_EDI[0x5a]" identifier [ number_literal ])) ;)) (if_statement "if (iVar4 == 0) {\n      iVar4 = unaff_EBX + 0x66713;\n    }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar4 = unaff_EBX + 0x66713;\n    }" { (expression_statement "iVar4 = unaff_EBX + 0x66713;" (assignment_expression "iVar4 = unaff_EBX + 0x66713" identifier = (binary_expression "unaff_EBX + 0x66713" identifier + number_literal)) ;) })) (expression_statement "iVar6 = unaff_EBX + 0x5c78b;" (assignment_expression "iVar6 = unaff_EBX + 0x5c78b" identifier = (binary_expression "unaff_EBX + 0x5c78b" identifier + number_literal)) ;) }) (else_clause "else {\n    if (param_4 == '\0') goto LAB_00021878;\nLAB_00021790:\n    iVar4 = extraout_EDI[0x3b];\n    if (iVar4 == 0) {\n      iVar4 = unaff_EBX + 0x66713;\n    }\n    iVar6 = unaff_EBX + 0x5c785;\n  }" else (compound_statement "{\n    if (param_4 == '\0') goto LAB_00021878;\nLAB_00021790:\n    iVar4 = extraout_EDI[0x3b];\n    if (iVar4 == 0) {\n      iVar4 = unaff_EBX + 0x66713;\n    }\n    iVar6 = unaff_EBX + 0x5c785;\n  }" { (if_statement "if (param_4 == '\0') goto LAB_00021878;" if (parenthesized_expression "(param_4 == '\0')" ( (binary_expression "param_4 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_00021878;" goto statement_identifier ;)) (labeled_statement "LAB_00021790:\n    iVar4 = extraout_EDI[0x3b];" statement_identifier : (expression_statement "iVar4 = extraout_EDI[0x3b];" (assignment_expression "iVar4 = extraout_EDI[0x3b]" identifier = (subscript_expression "extraout_EDI[0x3b]" identifier [ number_literal ])) ;)) (if_statement "if (iVar4 == 0) {\n      iVar4 = unaff_EBX + 0x66713;\n    }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar4 = unaff_EBX + 0x66713;\n    }" { (expression_statement "iVar4 = unaff_EBX + 0x66713;" (assignment_expression "iVar4 = unaff_EBX + 0x66713" identifier = (binary_expression "unaff_EBX + 0x66713" identifier + number_literal)) ;) })) (expression_statement "iVar6 = unaff_EBX + 0x5c785;" (assignment_expression "iVar6 = unaff_EBX + 0x5c785" identifier = (binary_expression "unaff_EBX + 0x5c785" identifier + number_literal)) ;) })))) (expression_statement "FUN_00027140(iVar2,unaff_EBX + 0x5c20f,iVar6,iVar3,iVar4);" (call_expression "FUN_00027140(iVar2,unaff_EBX + 0x5c20f,iVar6,iVar3,iVar4)" identifier (argument_list "(iVar2,unaff_EBX + 0x5c20f,iVar6,iVar3,iVar4)" ( identifier , (binary_expression "unaff_EBX + 0x5c20f" identifier + number_literal) , identifier , identifier , identifier ))) ;) (expression_statement "*(byte *)(param_2 + 0xd) = *(byte *)(param_2 + 0xc) ^ 1;" (assignment_expression "*(byte *)(param_2 + 0xd) = *(byte *)(param_2 + 0xc) ^ 1" (pointer_expression "*(byte *)(param_2 + 0xd)" * (cast_expression "(byte *)(param_2 + 0xd)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xd)" ( (binary_expression "param_2 + 0xd" identifier + number_literal) )))) = (binary_expression "*(byte *)(param_2 + 0xc) ^ 1" (pointer_expression "*(byte *)(param_2 + 0xc)" * (cast_expression "(byte *)(param_2 + 0xc)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) ^ number_literal)) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (labeled_statement "LAB_000216e6:\n  if (local_24 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0007c1a0();\n  }" statement_identifier : (if_statement "if (local_24 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0007c1a0();\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_0007c1a0();\n  }" { (expression_statement "FUN_0007c1a0();" (call_expression "FUN_0007c1a0()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * 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 IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (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 = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) || (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) ))) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;)) (goto_statement goto statement_identifier ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) )))) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) == (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) ))) )) (goto_statement goto statement_identifier ;)) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) == (char_literal ' escape_sequence ')) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) )))) , (binary_expression IDENT != LIT)) ))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }))) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , (pointer_expression & IDENT) , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (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 (binary_expression IDENT + IDENT) + LIT) ))))) )) (argument_list ( IDENT ))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + IDENT) + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) )) (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) )) (argument_list ( (pointer_expression * IDENT) ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) )) (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) )) (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) )) (argument_list ( IDENT ))) ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) || (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) & LIT) )) != LIT) ))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (goto_statement goto statement_identifier ;) })) (labeled_statement statement_identifier : (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 (binary_expression IDENT + IDENT) + LIT) ))))) )) (argument_list ( (subscript_expression IDENT [ LIT ]) ))) ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , (subscript_expression IDENT [ LIT ]) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })))) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) , IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ^ LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (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 IDENT ;) })))
(function_definition "int __regparm3 FUN_00021650(undefined4 param_1,int param_2,undefined4 param_3,char param_4)\n\n{\n  byte *pbVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  char *__s;\n  size_t sVar5;\n  int iVar6;\n  int unaff_EBX;\n  undefined4 *puVar7;\n  int *extraout_EDI;\n  int in_GS_OFFSET;\n  undefined4 unaff_retaddr;\n  int *local_44;\n  int local_38;\n  undefined4 local_2c;\n  int local_28;\n  int local_24;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2165d;\n  entry();\n  iVar2 = *extraout_EDI;\n  local_24 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar7 = (undefined4 *)(iVar2 + 0xd18);\n  if (param_4 != '\0') {\n    puVar7 = (undefined4 *)(iVar2 + 0xd30);\n  }\n  iVar3 = *(int *)(param_2 + 4);\n  *puVar7 = 0;\n  if (iVar3 != 4) {\n    if (iVar3 == 8) {\n      iVar3 = FUN_0005da00(extraout_EDI,param_4);\n      if (iVar3 != 0) goto LAB_000216e6;\n      iVar3 = unaff_EBX + 0x5c816;\n      goto LAB_0002177e;\n    }\n    if (iVar3 == 0x20) {\n      iVar3 = FUN_0005e5c0(extraout_EDI,param_4);\n      if (iVar3 != 0) goto LAB_000216e6;\n      iVar3 = unaff_EBX + 0x5c776;\n      goto LAB_0002177e;\n    }\n    if (iVar3 == 2) {\n      iVar3 = FUN_000476e0(extraout_EDI,param_4,param_3,unaff_retaddr);\n      if (iVar3 != 0) goto LAB_000216e6;\n      iVar3 = unaff_EBX + 0x5c77e;\n      goto LAB_0002177e;\n    }\n    if (iVar3 != 1) {\n      if (iVar3 != 0x40) {\nLAB_000216e0:\n        *(undefined1 *)(param_2 + 0xd) = 0;\n        iVar3 = 0;\n        goto LAB_000216e6;\n      }\n      if ((param_4 != '\0') || (extraout_EDI[0x5d] == 0)) {\nLAB_000216dc:\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_000216e0;\n      }\nLAB_000217ef:\n      iVar3 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2);\n      if (iVar3 != 0) goto LAB_000216dc;\n      goto LAB_0002181a;\n    }\n    if (param_4 == '\0') {\n      if ((char)extraout_EDI[0x94] == '\0') goto LAB_000216dc;\n      iVar3 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7ad);\n      if (iVar3 != 0) {\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        if ((*(int *)(param_2 + 4) == 0x40) && (extraout_EDI[0x5d] != 0)) goto LAB_000217ef;\n        goto LAB_000216e0;\n      }\n      local_38 = *extraout_EDI;\n      iVar3 = extraout_EDI[0x5a];\n      local_44 = extraout_EDI + 0xaa;\n      iVar4 = extraout_EDI[0x5b];\n    }\n    else {\n      if ((*(char *)((int)extraout_EDI + 0x251) == '\0') ||\n         (iVar3 = FUN_000215c0(extraout_EDI,unaff_EBX + 0x5c799), iVar3 != 0)) goto LAB_000216dc;\n      local_38 = *extraout_EDI;\n      iVar3 = extraout_EDI[0x3b];\n      local_44 = extraout_EDI + 0xa7;\n      iVar4 = extraout_EDI[0x3c];\n    }\n    local_28 = 0;\n    local_2c = 0;\n    __s = (char *)curl_maprintf(unaff_EBX + 0x661ba,iVar3,iVar4);\n    if (__s != (char *)0x0) {\n      sVar5 = strlen(__s);\n      iVar3 = FUN_0001b180(local_38,__s,sVar5,&local_28,&local_2c);\n      if (iVar3 != 0) {\n        (**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(__s);\n        goto LAB_000216e6;\n      }\n      pbVar1 = BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e;\n      if (local_28 == 0) {\n        (**(code **)pbVar1)(__s);\n        iVar3 = 9;\n        goto LAB_000216e6;\n      }\n      (**(code **)pbVar1)(*local_44);\n      iVar3 = unaff_EBX + 0x5c75f;\n      if (param_4 == '\0') {\n        iVar3 = unaff_EBX + 0x66713;\n      }\n      iVar3 = curl_maprintf(unaff_EBX + 0x5c7bb,iVar3,local_28);\n      *local_44 = iVar3;\n      (**(code **)pbVar1)(local_28);\n      if (*local_44 != 0) {\n        iVar3 = unaff_EBX + 0x5c770;\n        (**(code **)pbVar1)(__s);\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_0002177e;\n      }\n      (**(code **)pbVar1)(__s);\n    }\nLAB_00021b67:\n    iVar3 = 0x1b;\n    goto LAB_000216e6;\n  }\n  if ((puVar7[2] == 0) || ((puVar7[1] & 0xffff0000) != 0)) goto LAB_000216e0;\n  iVar3 = FUN_00047be0(extraout_EDI,param_4);\n  if (iVar3 != 0) goto LAB_000216e6;\n  *(undefined1 *)(param_2 + 0xc) = 1;\n  *puVar7 = 2;\n  iVar3 = unaff_EBX + 0x5c766;\nLAB_0002177e:\n  if (*(int *)(param_2 + 4) == 0x40) {\n    if ((param_4 == '\0') && (extraout_EDI[0x5d] != 0)) {\n      iVar4 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2);\n      if (iVar4 != 0) {\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_00021878;\n      }\nLAB_0002181a:\n      (**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(extraout_EDI[0xaa]);\n      iVar3 = curl_maprintf(unaff_EBX + 0x5c7d7,extraout_EDI[0x5d]);\n      extraout_EDI[0xaa] = iVar3;\n      if (iVar3 == 0) goto LAB_00021b67;\n      iVar3 = unaff_EBX + 0x5c792;\n    }\n    *(undefined1 *)(param_2 + 0xc) = 1;\n    if (param_4 != '\0') goto LAB_00021790;\nLAB_00021878:\n    iVar4 = extraout_EDI[0x5a];\n    if (iVar4 == 0) {\n      iVar4 = unaff_EBX + 0x66713;\n    }\n    iVar6 = unaff_EBX + 0x5c78b;\n  }\n  else {\n    if (param_4 == '\0') goto LAB_00021878;\nLAB_00021790:\n    iVar4 = extraout_EDI[0x3b];\n    if (iVar4 == 0) {\n      iVar4 = unaff_EBX + 0x66713;\n    }\n    iVar6 = unaff_EBX + 0x5c785;\n  }\n  FUN_00027140(iVar2,unaff_EBX + 0x5c20f,iVar6,iVar3,iVar4);\n  *(byte *)(param_2 + 0xd) = *(byte *)(param_2 + 0xc) ^ 1;\n  iVar3 = 0;\nLAB_000216e6:\n  if (local_24 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0007c1a0();\n  }\n  return iVar3;\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00021650(undefined4 param_1,int param_2,undefined4 param_3,char param_4)" (identifier "FUN_00021650") (parameter_list "(undefined4 param_1,int param_2,undefined4 param_3,char param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "char param_4" (primitive_type "char") (identifier "param_4")) () ")"))) (compound_statement "{\n  byte *pbVar1;\n  int iVar2;\n  int iVar3;\n  int iVar4;\n  char *__s;\n  size_t sVar5;\n  int iVar6;\n  int unaff_EBX;\n  undefined4 *puVar7;\n  int *extraout_EDI;\n  int in_GS_OFFSET;\n  undefined4 unaff_retaddr;\n  int *local_44;\n  int local_38;\n  undefined4 local_2c;\n  int local_28;\n  int local_24;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2165d;\n  entry();\n  iVar2 = *extraout_EDI;\n  local_24 = *(int *)(in_GS_OFFSET + 0x14);\n  puVar7 = (undefined4 *)(iVar2 + 0xd18);\n  if (param_4 != '\0') {\n    puVar7 = (undefined4 *)(iVar2 + 0xd30);\n  }\n  iVar3 = *(int *)(param_2 + 4);\n  *puVar7 = 0;\n  if (iVar3 != 4) {\n    if (iVar3 == 8) {\n      iVar3 = FUN_0005da00(extraout_EDI,param_4);\n      if (iVar3 != 0) goto LAB_000216e6;\n      iVar3 = unaff_EBX + 0x5c816;\n      goto LAB_0002177e;\n    }\n    if (iVar3 == 0x20) {\n      iVar3 = FUN_0005e5c0(extraout_EDI,param_4);\n      if (iVar3 != 0) goto LAB_000216e6;\n      iVar3 = unaff_EBX + 0x5c776;\n      goto LAB_0002177e;\n    }\n    if (iVar3 == 2) {\n      iVar3 = FUN_000476e0(extraout_EDI,param_4,param_3,unaff_retaddr);\n      if (iVar3 != 0) goto LAB_000216e6;\n      iVar3 = unaff_EBX + 0x5c77e;\n      goto LAB_0002177e;\n    }\n    if (iVar3 != 1) {\n      if (iVar3 != 0x40) {\nLAB_000216e0:\n        *(undefined1 *)(param_2 + 0xd) = 0;\n        iVar3 = 0;\n        goto LAB_000216e6;\n      }\n      if ((param_4 != '\0') || (extraout_EDI[0x5d] == 0)) {\nLAB_000216dc:\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_000216e0;\n      }\nLAB_000217ef:\n      iVar3 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2);\n      if (iVar3 != 0) goto LAB_000216dc;\n      goto LAB_0002181a;\n    }\n    if (param_4 == '\0') {\n      if ((char)extraout_EDI[0x94] == '\0') goto LAB_000216dc;\n      iVar3 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7ad);\n      if (iVar3 != 0) {\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        if ((*(int *)(param_2 + 4) == 0x40) && (extraout_EDI[0x5d] != 0)) goto LAB_000217ef;\n        goto LAB_000216e0;\n      }\n      local_38 = *extraout_EDI;\n      iVar3 = extraout_EDI[0x5a];\n      local_44 = extraout_EDI + 0xaa;\n      iVar4 = extraout_EDI[0x5b];\n    }\n    else {\n      if ((*(char *)((int)extraout_EDI + 0x251) == '\0') ||\n         (iVar3 = FUN_000215c0(extraout_EDI,unaff_EBX + 0x5c799), iVar3 != 0)) goto LAB_000216dc;\n      local_38 = *extraout_EDI;\n      iVar3 = extraout_EDI[0x3b];\n      local_44 = extraout_EDI + 0xa7;\n      iVar4 = extraout_EDI[0x3c];\n    }\n    local_28 = 0;\n    local_2c = 0;\n    __s = (char *)curl_maprintf(unaff_EBX + 0x661ba,iVar3,iVar4);\n    if (__s != (char *)0x0) {\n      sVar5 = strlen(__s);\n      iVar3 = FUN_0001b180(local_38,__s,sVar5,&local_28,&local_2c);\n      if (iVar3 != 0) {\n        (**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(__s);\n        goto LAB_000216e6;\n      }\n      pbVar1 = BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e;\n      if (local_28 == 0) {\n        (**(code **)pbVar1)(__s);\n        iVar3 = 9;\n        goto LAB_000216e6;\n      }\n      (**(code **)pbVar1)(*local_44);\n      iVar3 = unaff_EBX + 0x5c75f;\n      if (param_4 == '\0') {\n        iVar3 = unaff_EBX + 0x66713;\n      }\n      iVar3 = curl_maprintf(unaff_EBX + 0x5c7bb,iVar3,local_28);\n      *local_44 = iVar3;\n      (**(code **)pbVar1)(local_28);\n      if (*local_44 != 0) {\n        iVar3 = unaff_EBX + 0x5c770;\n        (**(code **)pbVar1)(__s);\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_0002177e;\n      }\n      (**(code **)pbVar1)(__s);\n    }\nLAB_00021b67:\n    iVar3 = 0x1b;\n    goto LAB_000216e6;\n  }\n  if ((puVar7[2] == 0) || ((puVar7[1] & 0xffff0000) != 0)) goto LAB_000216e0;\n  iVar3 = FUN_00047be0(extraout_EDI,param_4);\n  if (iVar3 != 0) goto LAB_000216e6;\n  *(undefined1 *)(param_2 + 0xc) = 1;\n  *puVar7 = 2;\n  iVar3 = unaff_EBX + 0x5c766;\nLAB_0002177e:\n  if (*(int *)(param_2 + 4) == 0x40) {\n    if ((param_4 == '\0') && (extraout_EDI[0x5d] != 0)) {\n      iVar4 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2);\n      if (iVar4 != 0) {\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_00021878;\n      }\nLAB_0002181a:\n      (**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(extraout_EDI[0xaa]);\n      iVar3 = curl_maprintf(unaff_EBX + 0x5c7d7,extraout_EDI[0x5d]);\n      extraout_EDI[0xaa] = iVar3;\n      if (iVar3 == 0) goto LAB_00021b67;\n      iVar3 = unaff_EBX + 0x5c792;\n    }\n    *(undefined1 *)(param_2 + 0xc) = 1;\n    if (param_4 != '\0') goto LAB_00021790;\nLAB_00021878:\n    iVar4 = extraout_EDI[0x5a];\n    if (iVar4 == 0) {\n      iVar4 = unaff_EBX + 0x66713;\n    }\n    iVar6 = unaff_EBX + 0x5c78b;\n  }\n  else {\n    if (param_4 == '\0') goto LAB_00021878;\nLAB_00021790:\n    iVar4 = extraout_EDI[0x3b];\n    if (iVar4 == 0) {\n      iVar4 = unaff_EBX + 0x66713;\n    }\n    iVar6 = unaff_EBX + 0x5c785;\n  }\n  FUN_00027140(iVar2,unaff_EBX + 0x5c20f,iVar6,iVar3,iVar4);\n  *(byte *)(param_2 + 0xd) = *(byte *)(param_2 + 0xc) ^ 1;\n  iVar3 = 0;\nLAB_000216e6:\n  if (local_24 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0007c1a0();\n  }\n  return iVar3;\n}" ({ "{") (declaration "byte *pbVar1;" (type_identifier "byte") (pointer_declarator "*pbVar1" (* "*") (identifier "pbVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "char *__s;" (primitive_type "char") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "size_t sVar5;" (primitive_type "size_t") (identifier "sVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int unaff_EBX;" (primitive_type "int") (identifier "unaff_EBX") (; ";")) (declaration "undefined4 *puVar7;" (type_identifier "undefined4") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (declaration "int *extraout_EDI;" (primitive_type "int") (pointer_declarator "*extraout_EDI" (* "*") (identifier "extraout_EDI")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined4 unaff_retaddr;" (type_identifier "undefined4") (identifier "unaff_retaddr") (; ";")) (declaration "int *local_44;" (primitive_type "int") (pointer_declarator "*local_44" (* "*") (identifier "local_44")) (; ";")) (declaration "int local_38;" (primitive_type "int") (identifier "local_38") (; ";")) (declaration "undefined4 local_2c;" (type_identifier "undefined4") (identifier "local_2c") (; ";")) (declaration "int local_28;" (primitive_type "int") (identifier "local_28") (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x2165d;" (assignment_expression "uStack_14 = 0x2165d" (identifier "uStack_14") (= "=") (number_literal "0x2165d")) (; ";")) (expression_statement "entry();" (call_expression "entry()" (identifier "entry") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar2 = *extraout_EDI;" (assignment_expression "iVar2 = *extraout_EDI" (identifier "iVar2") (= "=") (pointer_expression "*extraout_EDI" (* "*") (identifier "extraout_EDI"))) (; ";")) (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 "puVar7 = (undefined4 *)(iVar2 + 0xd18);" (assignment_expression "puVar7 = (undefined4 *)(iVar2 + 0xd18)" (identifier "puVar7") (= "=") (cast_expression "(undefined4 *)(iVar2 + 0xd18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0xd18)" (( "(") (binary_expression "iVar2 + 0xd18" (identifier "iVar2") (+ "+") (number_literal "0xd18")) () ")")))) (; ";")) (if_statement "if (param_4 != '\0') {\n    puVar7 = (undefined4 *)(iVar2 + 0xd30);\n  }" (if "if") (parenthesized_expression "(param_4 != '\0')" (( "(") (binary_expression "param_4 != '\0'" (identifier "param_4") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    puVar7 = (undefined4 *)(iVar2 + 0xd30);\n  }" ({ "{") (expression_statement "puVar7 = (undefined4 *)(iVar2 + 0xd30);" (assignment_expression "puVar7 = (undefined4 *)(iVar2 + 0xd30)" (identifier "puVar7") (= "=") (cast_expression "(undefined4 *)(iVar2 + 0xd30)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0xd30)" (( "(") (binary_expression "iVar2 + 0xd30" (identifier "iVar2") (+ "+") (number_literal "0xd30")) () ")")))) (; ";")) (} "}"))) (expression_statement "iVar3 = *(int *)(param_2 + 4);" (assignment_expression "iVar3 = *(int *)(param_2 + 4)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(param_2 + 4)" (* "*") (cast_expression "(int *)(param_2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "*puVar7 = 0;" (assignment_expression "*puVar7 = 0" (pointer_expression "*puVar7" (* "*") (identifier "puVar7")) (= "=") (number_literal "0")) (; ";")) (if_statement "if (iVar3 != 4) {\n    if (iVar3 == 8) {\n      iVar3 = FUN_0005da00(extraout_EDI,param_4);\n      if (iVar3 != 0) goto LAB_000216e6;\n      iVar3 = unaff_EBX + 0x5c816;\n      goto LAB_0002177e;\n    }\n    if (iVar3 == 0x20) {\n      iVar3 = FUN_0005e5c0(extraout_EDI,param_4);\n      if (iVar3 != 0) goto LAB_000216e6;\n      iVar3 = unaff_EBX + 0x5c776;\n      goto LAB_0002177e;\n    }\n    if (iVar3 == 2) {\n      iVar3 = FUN_000476e0(extraout_EDI,param_4,param_3,unaff_retaddr);\n      if (iVar3 != 0) goto LAB_000216e6;\n      iVar3 = unaff_EBX + 0x5c77e;\n      goto LAB_0002177e;\n    }\n    if (iVar3 != 1) {\n      if (iVar3 != 0x40) {\nLAB_000216e0:\n        *(undefined1 *)(param_2 + 0xd) = 0;\n        iVar3 = 0;\n        goto LAB_000216e6;\n      }\n      if ((param_4 != '\0') || (extraout_EDI[0x5d] == 0)) {\nLAB_000216dc:\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_000216e0;\n      }\nLAB_000217ef:\n      iVar3 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2);\n      if (iVar3 != 0) goto LAB_000216dc;\n      goto LAB_0002181a;\n    }\n    if (param_4 == '\0') {\n      if ((char)extraout_EDI[0x94] == '\0') goto LAB_000216dc;\n      iVar3 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7ad);\n      if (iVar3 != 0) {\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        if ((*(int *)(param_2 + 4) == 0x40) && (extraout_EDI[0x5d] != 0)) goto LAB_000217ef;\n        goto LAB_000216e0;\n      }\n      local_38 = *extraout_EDI;\n      iVar3 = extraout_EDI[0x5a];\n      local_44 = extraout_EDI + 0xaa;\n      iVar4 = extraout_EDI[0x5b];\n    }\n    else {\n      if ((*(char *)((int)extraout_EDI + 0x251) == '\0') ||\n         (iVar3 = FUN_000215c0(extraout_EDI,unaff_EBX + 0x5c799), iVar3 != 0)) goto LAB_000216dc;\n      local_38 = *extraout_EDI;\n      iVar3 = extraout_EDI[0x3b];\n      local_44 = extraout_EDI + 0xa7;\n      iVar4 = extraout_EDI[0x3c];\n    }\n    local_28 = 0;\n    local_2c = 0;\n    __s = (char *)curl_maprintf(unaff_EBX + 0x661ba,iVar3,iVar4);\n    if (__s != (char *)0x0) {\n      sVar5 = strlen(__s);\n      iVar3 = FUN_0001b180(local_38,__s,sVar5,&local_28,&local_2c);\n      if (iVar3 != 0) {\n        (**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(__s);\n        goto LAB_000216e6;\n      }\n      pbVar1 = BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e;\n      if (local_28 == 0) {\n        (**(code **)pbVar1)(__s);\n        iVar3 = 9;\n        goto LAB_000216e6;\n      }\n      (**(code **)pbVar1)(*local_44);\n      iVar3 = unaff_EBX + 0x5c75f;\n      if (param_4 == '\0') {\n        iVar3 = unaff_EBX + 0x66713;\n      }\n      iVar3 = curl_maprintf(unaff_EBX + 0x5c7bb,iVar3,local_28);\n      *local_44 = iVar3;\n      (**(code **)pbVar1)(local_28);\n      if (*local_44 != 0) {\n        iVar3 = unaff_EBX + 0x5c770;\n        (**(code **)pbVar1)(__s);\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_0002177e;\n      }\n      (**(code **)pbVar1)(__s);\n    }\nLAB_00021b67:\n    iVar3 = 0x1b;\n    goto LAB_000216e6;\n  }" (if "if") (parenthesized_expression "(iVar3 != 4)" (( "(") (binary_expression "iVar3 != 4" (identifier "iVar3") (!= "!=") (number_literal "4")) () ")")) (compound_statement "{\n    if (iVar3 == 8) {\n      iVar3 = FUN_0005da00(extraout_EDI,param_4);\n      if (iVar3 != 0) goto LAB_000216e6;\n      iVar3 = unaff_EBX + 0x5c816;\n      goto LAB_0002177e;\n    }\n    if (iVar3 == 0x20) {\n      iVar3 = FUN_0005e5c0(extraout_EDI,param_4);\n      if (iVar3 != 0) goto LAB_000216e6;\n      iVar3 = unaff_EBX + 0x5c776;\n      goto LAB_0002177e;\n    }\n    if (iVar3 == 2) {\n      iVar3 = FUN_000476e0(extraout_EDI,param_4,param_3,unaff_retaddr);\n      if (iVar3 != 0) goto LAB_000216e6;\n      iVar3 = unaff_EBX + 0x5c77e;\n      goto LAB_0002177e;\n    }\n    if (iVar3 != 1) {\n      if (iVar3 != 0x40) {\nLAB_000216e0:\n        *(undefined1 *)(param_2 + 0xd) = 0;\n        iVar3 = 0;\n        goto LAB_000216e6;\n      }\n      if ((param_4 != '\0') || (extraout_EDI[0x5d] == 0)) {\nLAB_000216dc:\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_000216e0;\n      }\nLAB_000217ef:\n      iVar3 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2);\n      if (iVar3 != 0) goto LAB_000216dc;\n      goto LAB_0002181a;\n    }\n    if (param_4 == '\0') {\n      if ((char)extraout_EDI[0x94] == '\0') goto LAB_000216dc;\n      iVar3 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7ad);\n      if (iVar3 != 0) {\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        if ((*(int *)(param_2 + 4) == 0x40) && (extraout_EDI[0x5d] != 0)) goto LAB_000217ef;\n        goto LAB_000216e0;\n      }\n      local_38 = *extraout_EDI;\n      iVar3 = extraout_EDI[0x5a];\n      local_44 = extraout_EDI + 0xaa;\n      iVar4 = extraout_EDI[0x5b];\n    }\n    else {\n      if ((*(char *)((int)extraout_EDI + 0x251) == '\0') ||\n         (iVar3 = FUN_000215c0(extraout_EDI,unaff_EBX + 0x5c799), iVar3 != 0)) goto LAB_000216dc;\n      local_38 = *extraout_EDI;\n      iVar3 = extraout_EDI[0x3b];\n      local_44 = extraout_EDI + 0xa7;\n      iVar4 = extraout_EDI[0x3c];\n    }\n    local_28 = 0;\n    local_2c = 0;\n    __s = (char *)curl_maprintf(unaff_EBX + 0x661ba,iVar3,iVar4);\n    if (__s != (char *)0x0) {\n      sVar5 = strlen(__s);\n      iVar3 = FUN_0001b180(local_38,__s,sVar5,&local_28,&local_2c);\n      if (iVar3 != 0) {\n        (**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(__s);\n        goto LAB_000216e6;\n      }\n      pbVar1 = BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e;\n      if (local_28 == 0) {\n        (**(code **)pbVar1)(__s);\n        iVar3 = 9;\n        goto LAB_000216e6;\n      }\n      (**(code **)pbVar1)(*local_44);\n      iVar3 = unaff_EBX + 0x5c75f;\n      if (param_4 == '\0') {\n        iVar3 = unaff_EBX + 0x66713;\n      }\n      iVar3 = curl_maprintf(unaff_EBX + 0x5c7bb,iVar3,local_28);\n      *local_44 = iVar3;\n      (**(code **)pbVar1)(local_28);\n      if (*local_44 != 0) {\n        iVar3 = unaff_EBX + 0x5c770;\n        (**(code **)pbVar1)(__s);\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_0002177e;\n      }\n      (**(code **)pbVar1)(__s);\n    }\nLAB_00021b67:\n    iVar3 = 0x1b;\n    goto LAB_000216e6;\n  }" ({ "{") (if_statement "if (iVar3 == 8) {\n      iVar3 = FUN_0005da00(extraout_EDI,param_4);\n      if (iVar3 != 0) goto LAB_000216e6;\n      iVar3 = unaff_EBX + 0x5c816;\n      goto LAB_0002177e;\n    }" (if "if") (parenthesized_expression "(iVar3 == 8)" (( "(") (binary_expression "iVar3 == 8" (identifier "iVar3") (== "==") (number_literal "8")) () ")")) (compound_statement "{\n      iVar3 = FUN_0005da00(extraout_EDI,param_4);\n      if (iVar3 != 0) goto LAB_000216e6;\n      iVar3 = unaff_EBX + 0x5c816;\n      goto LAB_0002177e;\n    }" ({ "{") (expression_statement "iVar3 = FUN_0005da00(extraout_EDI,param_4);" (assignment_expression "iVar3 = FUN_0005da00(extraout_EDI,param_4)" (identifier "iVar3") (= "=") (call_expression "FUN_0005da00(extraout_EDI,param_4)" (identifier "FUN_0005da00") (argument_list "(extraout_EDI,param_4)" (( "(") (identifier "extraout_EDI") (, ",") (identifier "param_4") () ")")))) (; ";")) (if_statement "if (iVar3 != 0) goto LAB_000216e6;" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_000216e6;" (goto "goto") (statement_identifier "LAB_000216e6") (; ";"))) (expression_statement "iVar3 = unaff_EBX + 0x5c816;" (assignment_expression "iVar3 = unaff_EBX + 0x5c816" (identifier "iVar3") (= "=") (binary_expression "unaff_EBX + 0x5c816" (identifier "unaff_EBX") (+ "+") (number_literal "0x5c816"))) (; ";")) (goto_statement "goto LAB_0002177e;" (goto "goto") (statement_identifier "LAB_0002177e") (; ";")) (} "}"))) (if_statement "if (iVar3 == 0x20) {\n      iVar3 = FUN_0005e5c0(extraout_EDI,param_4);\n      if (iVar3 != 0) goto LAB_000216e6;\n      iVar3 = unaff_EBX + 0x5c776;\n      goto LAB_0002177e;\n    }" (if "if") (parenthesized_expression "(iVar3 == 0x20)" (( "(") (binary_expression "iVar3 == 0x20" (identifier "iVar3") (== "==") (number_literal "0x20")) () ")")) (compound_statement "{\n      iVar3 = FUN_0005e5c0(extraout_EDI,param_4);\n      if (iVar3 != 0) goto LAB_000216e6;\n      iVar3 = unaff_EBX + 0x5c776;\n      goto LAB_0002177e;\n    }" ({ "{") (expression_statement "iVar3 = FUN_0005e5c0(extraout_EDI,param_4);" (assignment_expression "iVar3 = FUN_0005e5c0(extraout_EDI,param_4)" (identifier "iVar3") (= "=") (call_expression "FUN_0005e5c0(extraout_EDI,param_4)" (identifier "FUN_0005e5c0") (argument_list "(extraout_EDI,param_4)" (( "(") (identifier "extraout_EDI") (, ",") (identifier "param_4") () ")")))) (; ";")) (if_statement "if (iVar3 != 0) goto LAB_000216e6;" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_000216e6;" (goto "goto") (statement_identifier "LAB_000216e6") (; ";"))) (expression_statement "iVar3 = unaff_EBX + 0x5c776;" (assignment_expression "iVar3 = unaff_EBX + 0x5c776" (identifier "iVar3") (= "=") (binary_expression "unaff_EBX + 0x5c776" (identifier "unaff_EBX") (+ "+") (number_literal "0x5c776"))) (; ";")) (goto_statement "goto LAB_0002177e;" (goto "goto") (statement_identifier "LAB_0002177e") (; ";")) (} "}"))) (if_statement "if (iVar3 == 2) {\n      iVar3 = FUN_000476e0(extraout_EDI,param_4,param_3,unaff_retaddr);\n      if (iVar3 != 0) goto LAB_000216e6;\n      iVar3 = unaff_EBX + 0x5c77e;\n      goto LAB_0002177e;\n    }" (if "if") (parenthesized_expression "(iVar3 == 2)" (( "(") (binary_expression "iVar3 == 2" (identifier "iVar3") (== "==") (number_literal "2")) () ")")) (compound_statement "{\n      iVar3 = FUN_000476e0(extraout_EDI,param_4,param_3,unaff_retaddr);\n      if (iVar3 != 0) goto LAB_000216e6;\n      iVar3 = unaff_EBX + 0x5c77e;\n      goto LAB_0002177e;\n    }" ({ "{") (expression_statement "iVar3 = FUN_000476e0(extraout_EDI,param_4,param_3,unaff_retaddr);" (assignment_expression "iVar3 = FUN_000476e0(extraout_EDI,param_4,param_3,unaff_retaddr)" (identifier "iVar3") (= "=") (call_expression "FUN_000476e0(extraout_EDI,param_4,param_3,unaff_retaddr)" (identifier "FUN_000476e0") (argument_list "(extraout_EDI,param_4,param_3,unaff_retaddr)" (( "(") (identifier "extraout_EDI") (, ",") (identifier "param_4") (, ",") (identifier "param_3") (, ",") (identifier "unaff_retaddr") () ")")))) (; ";")) (if_statement "if (iVar3 != 0) goto LAB_000216e6;" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_000216e6;" (goto "goto") (statement_identifier "LAB_000216e6") (; ";"))) (expression_statement "iVar3 = unaff_EBX + 0x5c77e;" (assignment_expression "iVar3 = unaff_EBX + 0x5c77e" (identifier "iVar3") (= "=") (binary_expression "unaff_EBX + 0x5c77e" (identifier "unaff_EBX") (+ "+") (number_literal "0x5c77e"))) (; ";")) (goto_statement "goto LAB_0002177e;" (goto "goto") (statement_identifier "LAB_0002177e") (; ";")) (} "}"))) (if_statement "if (iVar3 != 1) {\n      if (iVar3 != 0x40) {\nLAB_000216e0:\n        *(undefined1 *)(param_2 + 0xd) = 0;\n        iVar3 = 0;\n        goto LAB_000216e6;\n      }\n      if ((param_4 != '\0') || (extraout_EDI[0x5d] == 0)) {\nLAB_000216dc:\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_000216e0;\n      }\nLAB_000217ef:\n      iVar3 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2);\n      if (iVar3 != 0) goto LAB_000216dc;\n      goto LAB_0002181a;\n    }" (if "if") (parenthesized_expression "(iVar3 != 1)" (( "(") (binary_expression "iVar3 != 1" (identifier "iVar3") (!= "!=") (number_literal "1")) () ")")) (compound_statement "{\n      if (iVar3 != 0x40) {\nLAB_000216e0:\n        *(undefined1 *)(param_2 + 0xd) = 0;\n        iVar3 = 0;\n        goto LAB_000216e6;\n      }\n      if ((param_4 != '\0') || (extraout_EDI[0x5d] == 0)) {\nLAB_000216dc:\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_000216e0;\n      }\nLAB_000217ef:\n      iVar3 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2);\n      if (iVar3 != 0) goto LAB_000216dc;\n      goto LAB_0002181a;\n    }" ({ "{") (if_statement "if (iVar3 != 0x40) {\nLAB_000216e0:\n        *(undefined1 *)(param_2 + 0xd) = 0;\n        iVar3 = 0;\n        goto LAB_000216e6;\n      }" (if "if") (parenthesized_expression "(iVar3 != 0x40)" (( "(") (binary_expression "iVar3 != 0x40" (identifier "iVar3") (!= "!=") (number_literal "0x40")) () ")")) (compound_statement "{\nLAB_000216e0:\n        *(undefined1 *)(param_2 + 0xd) = 0;\n        iVar3 = 0;\n        goto LAB_000216e6;\n      }" ({ "{") (labeled_statement "LAB_000216e0:\n        *(undefined1 *)(param_2 + 0xd) = 0;" (statement_identifier "LAB_000216e0") (: ":") (expression_statement "*(undefined1 *)(param_2 + 0xd) = 0;" (assignment_expression "*(undefined1 *)(param_2 + 0xd) = 0" (pointer_expression "*(undefined1 *)(param_2 + 0xd)" (* "*") (cast_expression "(undefined1 *)(param_2 + 0xd)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xd)" (( "(") (binary_expression "param_2 + 0xd" (identifier "param_2") (+ "+") (number_literal "0xd")) () ")")))) (= "=") (number_literal "0")) (; ";"))) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_000216e6;" (goto "goto") (statement_identifier "LAB_000216e6") (; ";")) (} "}"))) (if_statement "if ((param_4 != '\0') || (extraout_EDI[0x5d] == 0)) {\nLAB_000216dc:\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_000216e0;\n      }" (if "if") (parenthesized_expression "((param_4 != '\0') || (extraout_EDI[0x5d] == 0))" (( "(") (binary_expression "(param_4 != '\0') || (extraout_EDI[0x5d] == 0)" (parenthesized_expression "(param_4 != '\0')" (( "(") (binary_expression "param_4 != '\0'" (identifier "param_4") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (|| "||") (parenthesized_expression "(extraout_EDI[0x5d] == 0)" (( "(") (binary_expression "extraout_EDI[0x5d] == 0" (subscript_expression "extraout_EDI[0x5d]" (identifier "extraout_EDI") ([ "[") (number_literal "0x5d") (] "]")) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\nLAB_000216dc:\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_000216e0;\n      }" ({ "{") (labeled_statement "LAB_000216dc:\n        *(undefined1 *)(param_2 + 0xc) = 1;" (statement_identifier "LAB_000216dc") (: ":") (expression_statement "*(undefined1 *)(param_2 + 0xc) = 1;" (assignment_expression "*(undefined1 *)(param_2 + 0xc) = 1" (pointer_expression "*(undefined1 *)(param_2 + 0xc)" (* "*") (cast_expression "(undefined1 *)(param_2 + 0xc)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xc)" (( "(") (binary_expression "param_2 + 0xc" (identifier "param_2") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (number_literal "1")) (; ";"))) (goto_statement "goto LAB_000216e0;" (goto "goto") (statement_identifier "LAB_000216e0") (; ";")) (} "}"))) (labeled_statement "LAB_000217ef:\n      iVar3 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2);" (statement_identifier "LAB_000217ef") (: ":") (expression_statement "iVar3 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2);" (assignment_expression "iVar3 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2)" (identifier "iVar3") (= "=") (call_expression "FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2)" (identifier "FUN_00039090") (argument_list "(extraout_EDI,unaff_EBX + 0x5c7f2)" (( "(") (identifier "extraout_EDI") (, ",") (binary_expression "unaff_EBX + 0x5c7f2" (identifier "unaff_EBX") (+ "+") (number_literal "0x5c7f2")) () ")")))) (; ";"))) (if_statement "if (iVar3 != 0) goto LAB_000216dc;" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_000216dc;" (goto "goto") (statement_identifier "LAB_000216dc") (; ";"))) (goto_statement "goto LAB_0002181a;" (goto "goto") (statement_identifier "LAB_0002181a") (; ";")) (} "}"))) (if_statement "if (param_4 == '\0') {\n      if ((char)extraout_EDI[0x94] == '\0') goto LAB_000216dc;\n      iVar3 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7ad);\n      if (iVar3 != 0) {\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        if ((*(int *)(param_2 + 4) == 0x40) && (extraout_EDI[0x5d] != 0)) goto LAB_000217ef;\n        goto LAB_000216e0;\n      }\n      local_38 = *extraout_EDI;\n      iVar3 = extraout_EDI[0x5a];\n      local_44 = extraout_EDI + 0xaa;\n      iVar4 = extraout_EDI[0x5b];\n    }\n    else {\n      if ((*(char *)((int)extraout_EDI + 0x251) == '\0') ||\n         (iVar3 = FUN_000215c0(extraout_EDI,unaff_EBX + 0x5c799), iVar3 != 0)) goto LAB_000216dc;\n      local_38 = *extraout_EDI;\n      iVar3 = extraout_EDI[0x3b];\n      local_44 = extraout_EDI + 0xa7;\n      iVar4 = extraout_EDI[0x3c];\n    }" (if "if") (parenthesized_expression "(param_4 == '\0')" (( "(") (binary_expression "param_4 == '\0'" (identifier "param_4") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      if ((char)extraout_EDI[0x94] == '\0') goto LAB_000216dc;\n      iVar3 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7ad);\n      if (iVar3 != 0) {\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        if ((*(int *)(param_2 + 4) == 0x40) && (extraout_EDI[0x5d] != 0)) goto LAB_000217ef;\n        goto LAB_000216e0;\n      }\n      local_38 = *extraout_EDI;\n      iVar3 = extraout_EDI[0x5a];\n      local_44 = extraout_EDI + 0xaa;\n      iVar4 = extraout_EDI[0x5b];\n    }" ({ "{") (if_statement "if ((char)extraout_EDI[0x94] == '\0') goto LAB_000216dc;" (if "if") (parenthesized_expression "((char)extraout_EDI[0x94] == '\0')" (( "(") (binary_expression "(char)extraout_EDI[0x94] == '\0'" (cast_expression "(char)extraout_EDI[0x94]" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (subscript_expression "extraout_EDI[0x94]" (identifier "extraout_EDI") ([ "[") (number_literal "0x94") (] "]"))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (goto_statement "goto LAB_000216dc;" (goto "goto") (statement_identifier "LAB_000216dc") (; ";"))) (expression_statement "iVar3 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7ad);" (assignment_expression "iVar3 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7ad)" (identifier "iVar3") (= "=") (call_expression "FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7ad)" (identifier "FUN_00039090") (argument_list "(extraout_EDI,unaff_EBX + 0x5c7ad)" (( "(") (identifier "extraout_EDI") (, ",") (binary_expression "unaff_EBX + 0x5c7ad" (identifier "unaff_EBX") (+ "+") (number_literal "0x5c7ad")) () ")")))) (; ";")) (if_statement "if (iVar3 != 0) {\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        if ((*(int *)(param_2 + 4) == 0x40) && (extraout_EDI[0x5d] != 0)) goto LAB_000217ef;\n        goto LAB_000216e0;\n      }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        if ((*(int *)(param_2 + 4) == 0x40) && (extraout_EDI[0x5d] != 0)) goto LAB_000217ef;\n        goto LAB_000216e0;\n      }" ({ "{") (expression_statement "*(undefined1 *)(param_2 + 0xc) = 1;" (assignment_expression "*(undefined1 *)(param_2 + 0xc) = 1" (pointer_expression "*(undefined1 *)(param_2 + 0xc)" (* "*") (cast_expression "(undefined1 *)(param_2 + 0xc)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xc)" (( "(") (binary_expression "param_2 + 0xc" (identifier "param_2") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (number_literal "1")) (; ";")) (if_statement "if ((*(int *)(param_2 + 4) == 0x40) && (extraout_EDI[0x5d] != 0)) goto LAB_000217ef;" (if "if") (parenthesized_expression "((*(int *)(param_2 + 4) == 0x40) && (extraout_EDI[0x5d] != 0))" (( "(") (binary_expression "(*(int *)(param_2 + 4) == 0x40) && (extraout_EDI[0x5d] != 0)" (parenthesized_expression "(*(int *)(param_2 + 4) == 0x40)" (( "(") (binary_expression "*(int *)(param_2 + 4) == 0x40" (pointer_expression "*(int *)(param_2 + 4)" (* "*") (cast_expression "(int *)(param_2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")")))) (== "==") (number_literal "0x40")) () ")")) (&& "&&") (parenthesized_expression "(extraout_EDI[0x5d] != 0)" (( "(") (binary_expression "extraout_EDI[0x5d] != 0" (subscript_expression "extraout_EDI[0x5d]" (identifier "extraout_EDI") ([ "[") (number_literal "0x5d") (] "]")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (goto_statement "goto LAB_000217ef;" (goto "goto") (statement_identifier "LAB_000217ef") (; ";"))) (goto_statement "goto LAB_000216e0;" (goto "goto") (statement_identifier "LAB_000216e0") (; ";")) (} "}"))) (expression_statement "local_38 = *extraout_EDI;" (assignment_expression "local_38 = *extraout_EDI" (identifier "local_38") (= "=") (pointer_expression "*extraout_EDI" (* "*") (identifier "extraout_EDI"))) (; ";")) (expression_statement "iVar3 = extraout_EDI[0x5a];" (assignment_expression "iVar3 = extraout_EDI[0x5a]" (identifier "iVar3") (= "=") (subscript_expression "extraout_EDI[0x5a]" (identifier "extraout_EDI") ([ "[") (number_literal "0x5a") (] "]"))) (; ";")) (expression_statement "local_44 = extraout_EDI + 0xaa;" (assignment_expression "local_44 = extraout_EDI + 0xaa" (identifier "local_44") (= "=") (binary_expression "extraout_EDI + 0xaa" (identifier "extraout_EDI") (+ "+") (number_literal "0xaa"))) (; ";")) (expression_statement "iVar4 = extraout_EDI[0x5b];" (assignment_expression "iVar4 = extraout_EDI[0x5b]" (identifier "iVar4") (= "=") (subscript_expression "extraout_EDI[0x5b]" (identifier "extraout_EDI") ([ "[") (number_literal "0x5b") (] "]"))) (; ";")) (} "}")) (else_clause "else {\n      if ((*(char *)((int)extraout_EDI + 0x251) == '\0') ||\n         (iVar3 = FUN_000215c0(extraout_EDI,unaff_EBX + 0x5c799), iVar3 != 0)) goto LAB_000216dc;\n      local_38 = *extraout_EDI;\n      iVar3 = extraout_EDI[0x3b];\n      local_44 = extraout_EDI + 0xa7;\n      iVar4 = extraout_EDI[0x3c];\n    }" (else "else") (compound_statement "{\n      if ((*(char *)((int)extraout_EDI + 0x251) == '\0') ||\n         (iVar3 = FUN_000215c0(extraout_EDI,unaff_EBX + 0x5c799), iVar3 != 0)) goto LAB_000216dc;\n      local_38 = *extraout_EDI;\n      iVar3 = extraout_EDI[0x3b];\n      local_44 = extraout_EDI + 0xa7;\n      iVar4 = extraout_EDI[0x3c];\n    }" ({ "{") (if_statement "if ((*(char *)((int)extraout_EDI + 0x251) == '\0') ||\n         (iVar3 = FUN_000215c0(extraout_EDI,unaff_EBX + 0x5c799), iVar3 != 0)) goto LAB_000216dc;" (if "if") (parenthesized_expression "((*(char *)((int)extraout_EDI + 0x251) == '\0') ||\n         (iVar3 = FUN_000215c0(extraout_EDI,unaff_EBX + 0x5c799), iVar3 != 0))" (( "(") (binary_expression "(*(char *)((int)extraout_EDI + 0x251) == '\0') ||\n         (iVar3 = FUN_000215c0(extraout_EDI,unaff_EBX + 0x5c799), iVar3 != 0)" (parenthesized_expression "(*(char *)((int)extraout_EDI + 0x251) == '\0')" (( "(") (binary_expression "*(char *)((int)extraout_EDI + 0x251) == '\0'" (pointer_expression "*(char *)((int)extraout_EDI + 0x251)" (* "*") (cast_expression "(char *)((int)extraout_EDI + 0x251)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)extraout_EDI + 0x251)" (( "(") (binary_expression "(int)extraout_EDI + 0x251" (cast_expression "(int)extraout_EDI" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "extraout_EDI")) (+ "+") (number_literal "0x251")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (|| "||") (parenthesized_expression "(iVar3 = FUN_000215c0(extraout_EDI,unaff_EBX + 0x5c799), iVar3 != 0)" (( "(") (comma_expression "iVar3 = FUN_000215c0(extraout_EDI,unaff_EBX + 0x5c799), iVar3 != 0" (assignment_expression "iVar3 = FUN_000215c0(extraout_EDI,unaff_EBX + 0x5c799)" (identifier "iVar3") (= "=") (call_expression "FUN_000215c0(extraout_EDI,unaff_EBX + 0x5c799)" (identifier "FUN_000215c0") (argument_list "(extraout_EDI,unaff_EBX + 0x5c799)" (( "(") (identifier "extraout_EDI") (, ",") (binary_expression "unaff_EBX + 0x5c799" (identifier "unaff_EBX") (+ "+") (number_literal "0x5c799")) () ")")))) (, ",") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (goto_statement "goto LAB_000216dc;" (goto "goto") (statement_identifier "LAB_000216dc") (; ";"))) (expression_statement "local_38 = *extraout_EDI;" (assignment_expression "local_38 = *extraout_EDI" (identifier "local_38") (= "=") (pointer_expression "*extraout_EDI" (* "*") (identifier "extraout_EDI"))) (; ";")) (expression_statement "iVar3 = extraout_EDI[0x3b];" (assignment_expression "iVar3 = extraout_EDI[0x3b]" (identifier "iVar3") (= "=") (subscript_expression "extraout_EDI[0x3b]" (identifier "extraout_EDI") ([ "[") (number_literal "0x3b") (] "]"))) (; ";")) (expression_statement "local_44 = extraout_EDI + 0xa7;" (assignment_expression "local_44 = extraout_EDI + 0xa7" (identifier "local_44") (= "=") (binary_expression "extraout_EDI + 0xa7" (identifier "extraout_EDI") (+ "+") (number_literal "0xa7"))) (; ";")) (expression_statement "iVar4 = extraout_EDI[0x3c];" (assignment_expression "iVar4 = extraout_EDI[0x3c]" (identifier "iVar4") (= "=") (subscript_expression "extraout_EDI[0x3c]" (identifier "extraout_EDI") ([ "[") (number_literal "0x3c") (] "]"))) (; ";")) (} "}")))) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" (identifier "local_28") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" (identifier "local_2c") (= "=") (number_literal "0")) (; ";")) (expression_statement "__s = (char *)curl_maprintf(unaff_EBX + 0x661ba,iVar3,iVar4);" (assignment_expression "__s = (char *)curl_maprintf(unaff_EBX + 0x661ba,iVar3,iVar4)" (identifier "__s") (= "=") (cast_expression "(char *)curl_maprintf(unaff_EBX + 0x661ba,iVar3,iVar4)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "curl_maprintf(unaff_EBX + 0x661ba,iVar3,iVar4)" (identifier "curl_maprintf") (argument_list "(unaff_EBX + 0x661ba,iVar3,iVar4)" (( "(") (binary_expression "unaff_EBX + 0x661ba" (identifier "unaff_EBX") (+ "+") (number_literal "0x661ba")) (, ",") (identifier "iVar3") (, ",") (identifier "iVar4") () ")"))))) (; ";")) (if_statement "if (__s != (char *)0x0) {\n      sVar5 = strlen(__s);\n      iVar3 = FUN_0001b180(local_38,__s,sVar5,&local_28,&local_2c);\n      if (iVar3 != 0) {\n        (**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(__s);\n        goto LAB_000216e6;\n      }\n      pbVar1 = BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e;\n      if (local_28 == 0) {\n        (**(code **)pbVar1)(__s);\n        iVar3 = 9;\n        goto LAB_000216e6;\n      }\n      (**(code **)pbVar1)(*local_44);\n      iVar3 = unaff_EBX + 0x5c75f;\n      if (param_4 == '\0') {\n        iVar3 = unaff_EBX + 0x66713;\n      }\n      iVar3 = curl_maprintf(unaff_EBX + 0x5c7bb,iVar3,local_28);\n      *local_44 = iVar3;\n      (**(code **)pbVar1)(local_28);\n      if (*local_44 != 0) {\n        iVar3 = unaff_EBX + 0x5c770;\n        (**(code **)pbVar1)(__s);\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_0002177e;\n      }\n      (**(code **)pbVar1)(__s);\n    }" (if "if") (parenthesized_expression "(__s != (char *)0x0)" (( "(") (binary_expression "__s != (char *)0x0" (identifier "__s") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      sVar5 = strlen(__s);\n      iVar3 = FUN_0001b180(local_38,__s,sVar5,&local_28,&local_2c);\n      if (iVar3 != 0) {\n        (**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(__s);\n        goto LAB_000216e6;\n      }\n      pbVar1 = BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e;\n      if (local_28 == 0) {\n        (**(code **)pbVar1)(__s);\n        iVar3 = 9;\n        goto LAB_000216e6;\n      }\n      (**(code **)pbVar1)(*local_44);\n      iVar3 = unaff_EBX + 0x5c75f;\n      if (param_4 == '\0') {\n        iVar3 = unaff_EBX + 0x66713;\n      }\n      iVar3 = curl_maprintf(unaff_EBX + 0x5c7bb,iVar3,local_28);\n      *local_44 = iVar3;\n      (**(code **)pbVar1)(local_28);\n      if (*local_44 != 0) {\n        iVar3 = unaff_EBX + 0x5c770;\n        (**(code **)pbVar1)(__s);\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_0002177e;\n      }\n      (**(code **)pbVar1)(__s);\n    }" ({ "{") (expression_statement "sVar5 = strlen(__s);" (assignment_expression "sVar5 = strlen(__s)" (identifier "sVar5") (= "=") (call_expression "strlen(__s)" (identifier "strlen") (argument_list "(__s)" (( "(") (identifier "__s") () ")")))) (; ";")) (expression_statement "iVar3 = FUN_0001b180(local_38,__s,sVar5,&local_28,&local_2c);" (assignment_expression "iVar3 = FUN_0001b180(local_38,__s,sVar5,&local_28,&local_2c)" (identifier "iVar3") (= "=") (call_expression "FUN_0001b180(local_38,__s,sVar5,&local_28,&local_2c)" (identifier "FUN_0001b180") (argument_list "(local_38,__s,sVar5,&local_28,&local_2c)" (( "(") (identifier "local_38") (, ",") (identifier "__s") (, ",") (identifier "sVar5") (, ",") (pointer_expression "&local_28" (& "&") (identifier "local_28")) (, ",") (pointer_expression "&local_2c" (& "&") (identifier "local_2c")) () ")")))) (; ";")) (if_statement "if (iVar3 != 0) {\n        (**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(__s);\n        goto LAB_000216e6;\n      }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        (**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(__s);\n        goto LAB_000216e6;\n      }" ({ "{") (expression_statement "(**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(__s);" (call_expression "(**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(__s)" (parenthesized_expression "(**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))" (( "(") (pointer_expression "**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e)" (* "*") (pointer_expression "*(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e)" (* "*") (cast_expression "(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e)" (( "(") (binary_expression "BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e" (binary_expression "BYTE_ARRAY_0008f7e1 + unaff_EBX" (identifier "BYTE_ARRAY_0008f7e1") (+ "+") (identifier "unaff_EBX")) (+ "+") (number_literal "0x22e")) () ")"))))) () ")")) (argument_list "(__s)" (( "(") (identifier "__s") () ")"))) (; ";")) (goto_statement "goto LAB_000216e6;" (goto "goto") (statement_identifier "LAB_000216e6") (; ";")) (} "}"))) (expression_statement "pbVar1 = BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e;" (assignment_expression "pbVar1 = BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e" (identifier "pbVar1") (= "=") (binary_expression "BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e" (binary_expression "BYTE_ARRAY_0008f7e1 + unaff_EBX" (identifier "BYTE_ARRAY_0008f7e1") (+ "+") (identifier "unaff_EBX")) (+ "+") (number_literal "0x22e"))) (; ";")) (if_statement "if (local_28 == 0) {\n        (**(code **)pbVar1)(__s);\n        iVar3 = 9;\n        goto LAB_000216e6;\n      }" (if "if") (parenthesized_expression "(local_28 == 0)" (( "(") (binary_expression "local_28 == 0" (identifier "local_28") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        (**(code **)pbVar1)(__s);\n        iVar3 = 9;\n        goto LAB_000216e6;\n      }" ({ "{") (expression_statement "(**(code **)pbVar1)(__s);" (call_expression "(**(code **)pbVar1)(__s)" (parenthesized_expression "(**(code **)pbVar1)" (( "(") (pointer_expression "**(code **)pbVar1" (* "*") (pointer_expression "*(code **)pbVar1" (* "*") (cast_expression "(code **)pbVar1" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "pbVar1")))) () ")")) (argument_list "(__s)" (( "(") (identifier "__s") () ")"))) (; ";")) (expression_statement "iVar3 = 9;" (assignment_expression "iVar3 = 9" (identifier "iVar3") (= "=") (number_literal "9")) (; ";")) (goto_statement "goto LAB_000216e6;" (goto "goto") (statement_identifier "LAB_000216e6") (; ";")) (} "}"))) (expression_statement "(**(code **)pbVar1)(*local_44);" (call_expression "(**(code **)pbVar1)(*local_44)" (parenthesized_expression "(**(code **)pbVar1)" (( "(") (pointer_expression "**(code **)pbVar1" (* "*") (pointer_expression "*(code **)pbVar1" (* "*") (cast_expression "(code **)pbVar1" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "pbVar1")))) () ")")) (argument_list "(*local_44)" (( "(") (pointer_expression "*local_44" (* "*") (identifier "local_44")) () ")"))) (; ";")) (expression_statement "iVar3 = unaff_EBX + 0x5c75f;" (assignment_expression "iVar3 = unaff_EBX + 0x5c75f" (identifier "iVar3") (= "=") (binary_expression "unaff_EBX + 0x5c75f" (identifier "unaff_EBX") (+ "+") (number_literal "0x5c75f"))) (; ";")) (if_statement "if (param_4 == '\0') {\n        iVar3 = unaff_EBX + 0x66713;\n      }" (if "if") (parenthesized_expression "(param_4 == '\0')" (( "(") (binary_expression "param_4 == '\0'" (identifier "param_4") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        iVar3 = unaff_EBX + 0x66713;\n      }" ({ "{") (expression_statement "iVar3 = unaff_EBX + 0x66713;" (assignment_expression "iVar3 = unaff_EBX + 0x66713" (identifier "iVar3") (= "=") (binary_expression "unaff_EBX + 0x66713" (identifier "unaff_EBX") (+ "+") (number_literal "0x66713"))) (; ";")) (} "}"))) (expression_statement "iVar3 = curl_maprintf(unaff_EBX + 0x5c7bb,iVar3,local_28);" (assignment_expression "iVar3 = curl_maprintf(unaff_EBX + 0x5c7bb,iVar3,local_28)" (identifier "iVar3") (= "=") (call_expression "curl_maprintf(unaff_EBX + 0x5c7bb,iVar3,local_28)" (identifier "curl_maprintf") (argument_list "(unaff_EBX + 0x5c7bb,iVar3,local_28)" (( "(") (binary_expression "unaff_EBX + 0x5c7bb" (identifier "unaff_EBX") (+ "+") (number_literal "0x5c7bb")) (, ",") (identifier "iVar3") (, ",") (identifier "local_28") () ")")))) (; ";")) (expression_statement "*local_44 = iVar3;" (assignment_expression "*local_44 = iVar3" (pointer_expression "*local_44" (* "*") (identifier "local_44")) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "(**(code **)pbVar1)(local_28);" (call_expression "(**(code **)pbVar1)(local_28)" (parenthesized_expression "(**(code **)pbVar1)" (( "(") (pointer_expression "**(code **)pbVar1" (* "*") (pointer_expression "*(code **)pbVar1" (* "*") (cast_expression "(code **)pbVar1" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "pbVar1")))) () ")")) (argument_list "(local_28)" (( "(") (identifier "local_28") () ")"))) (; ";")) (if_statement "if (*local_44 != 0) {\n        iVar3 = unaff_EBX + 0x5c770;\n        (**(code **)pbVar1)(__s);\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_0002177e;\n      }" (if "if") (parenthesized_expression "(*local_44 != 0)" (( "(") (binary_expression "*local_44 != 0" (pointer_expression "*local_44" (* "*") (identifier "local_44")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        iVar3 = unaff_EBX + 0x5c770;\n        (**(code **)pbVar1)(__s);\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_0002177e;\n      }" ({ "{") (expression_statement "iVar3 = unaff_EBX + 0x5c770;" (assignment_expression "iVar3 = unaff_EBX + 0x5c770" (identifier "iVar3") (= "=") (binary_expression "unaff_EBX + 0x5c770" (identifier "unaff_EBX") (+ "+") (number_literal "0x5c770"))) (; ";")) (expression_statement "(**(code **)pbVar1)(__s);" (call_expression "(**(code **)pbVar1)(__s)" (parenthesized_expression "(**(code **)pbVar1)" (( "(") (pointer_expression "**(code **)pbVar1" (* "*") (pointer_expression "*(code **)pbVar1" (* "*") (cast_expression "(code **)pbVar1" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "pbVar1")))) () ")")) (argument_list "(__s)" (( "(") (identifier "__s") () ")"))) (; ";")) (expression_statement "*(undefined1 *)(param_2 + 0xc) = 1;" (assignment_expression "*(undefined1 *)(param_2 + 0xc) = 1" (pointer_expression "*(undefined1 *)(param_2 + 0xc)" (* "*") (cast_expression "(undefined1 *)(param_2 + 0xc)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xc)" (( "(") (binary_expression "param_2 + 0xc" (identifier "param_2") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (number_literal "1")) (; ";")) (goto_statement "goto LAB_0002177e;" (goto "goto") (statement_identifier "LAB_0002177e") (; ";")) (} "}"))) (expression_statement "(**(code **)pbVar1)(__s);" (call_expression "(**(code **)pbVar1)(__s)" (parenthesized_expression "(**(code **)pbVar1)" (( "(") (pointer_expression "**(code **)pbVar1" (* "*") (pointer_expression "*(code **)pbVar1" (* "*") (cast_expression "(code **)pbVar1" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "pbVar1")))) () ")")) (argument_list "(__s)" (( "(") (identifier "__s") () ")"))) (; ";")) (} "}"))) (labeled_statement "LAB_00021b67:\n    iVar3 = 0x1b;" (statement_identifier "LAB_00021b67") (: ":") (expression_statement "iVar3 = 0x1b;" (assignment_expression "iVar3 = 0x1b" (identifier "iVar3") (= "=") (number_literal "0x1b")) (; ";"))) (goto_statement "goto LAB_000216e6;" (goto "goto") (statement_identifier "LAB_000216e6") (; ";")) (} "}"))) (if_statement "if ((puVar7[2] == 0) || ((puVar7[1] & 0xffff0000) != 0)) goto LAB_000216e0;" (if "if") (parenthesized_expression "((puVar7[2] == 0) || ((puVar7[1] & 0xffff0000) != 0))" (( "(") (binary_expression "(puVar7[2] == 0) || ((puVar7[1] & 0xffff0000) != 0)" (parenthesized_expression "(puVar7[2] == 0)" (( "(") (binary_expression "puVar7[2] == 0" (subscript_expression "puVar7[2]" (identifier "puVar7") ([ "[") (number_literal "2") (] "]")) (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "((puVar7[1] & 0xffff0000) != 0)" (( "(") (binary_expression "(puVar7[1] & 0xffff0000) != 0" (parenthesized_expression "(puVar7[1] & 0xffff0000)" (( "(") (binary_expression "puVar7[1] & 0xffff0000" (subscript_expression "puVar7[1]" (identifier "puVar7") ([ "[") (number_literal "1") (] "]")) (& "&") (number_literal "0xffff0000")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (goto_statement "goto LAB_000216e0;" (goto "goto") (statement_identifier "LAB_000216e0") (; ";"))) (expression_statement "iVar3 = FUN_00047be0(extraout_EDI,param_4);" (assignment_expression "iVar3 = FUN_00047be0(extraout_EDI,param_4)" (identifier "iVar3") (= "=") (call_expression "FUN_00047be0(extraout_EDI,param_4)" (identifier "FUN_00047be0") (argument_list "(extraout_EDI,param_4)" (( "(") (identifier "extraout_EDI") (, ",") (identifier "param_4") () ")")))) (; ";")) (if_statement "if (iVar3 != 0) goto LAB_000216e6;" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_000216e6;" (goto "goto") (statement_identifier "LAB_000216e6") (; ";"))) (expression_statement "*(undefined1 *)(param_2 + 0xc) = 1;" (assignment_expression "*(undefined1 *)(param_2 + 0xc) = 1" (pointer_expression "*(undefined1 *)(param_2 + 0xc)" (* "*") (cast_expression "(undefined1 *)(param_2 + 0xc)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xc)" (( "(") (binary_expression "param_2 + 0xc" (identifier "param_2") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "*puVar7 = 2;" (assignment_expression "*puVar7 = 2" (pointer_expression "*puVar7" (* "*") (identifier "puVar7")) (= "=") (number_literal "2")) (; ";")) (expression_statement "iVar3 = unaff_EBX + 0x5c766;" (assignment_expression "iVar3 = unaff_EBX + 0x5c766" (identifier "iVar3") (= "=") (binary_expression "unaff_EBX + 0x5c766" (identifier "unaff_EBX") (+ "+") (number_literal "0x5c766"))) (; ";")) (labeled_statement "LAB_0002177e:\n  if (*(int *)(param_2 + 4) == 0x40) {\n    if ((param_4 == '\0') && (extraout_EDI[0x5d] != 0)) {\n      iVar4 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2);\n      if (iVar4 != 0) {\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_00021878;\n      }\nLAB_0002181a:\n      (**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(extraout_EDI[0xaa]);\n      iVar3 = curl_maprintf(unaff_EBX + 0x5c7d7,extraout_EDI[0x5d]);\n      extraout_EDI[0xaa] = iVar3;\n      if (iVar3 == 0) goto LAB_00021b67;\n      iVar3 = unaff_EBX + 0x5c792;\n    }\n    *(undefined1 *)(param_2 + 0xc) = 1;\n    if (param_4 != '\0') goto LAB_00021790;\nLAB_00021878:\n    iVar4 = extraout_EDI[0x5a];\n    if (iVar4 == 0) {\n      iVar4 = unaff_EBX + 0x66713;\n    }\n    iVar6 = unaff_EBX + 0x5c78b;\n  }\n  else {\n    if (param_4 == '\0') goto LAB_00021878;\nLAB_00021790:\n    iVar4 = extraout_EDI[0x3b];\n    if (iVar4 == 0) {\n      iVar4 = unaff_EBX + 0x66713;\n    }\n    iVar6 = unaff_EBX + 0x5c785;\n  }" (statement_identifier "LAB_0002177e") (: ":") (if_statement "if (*(int *)(param_2 + 4) == 0x40) {\n    if ((param_4 == '\0') && (extraout_EDI[0x5d] != 0)) {\n      iVar4 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2);\n      if (iVar4 != 0) {\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_00021878;\n      }\nLAB_0002181a:\n      (**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(extraout_EDI[0xaa]);\n      iVar3 = curl_maprintf(unaff_EBX + 0x5c7d7,extraout_EDI[0x5d]);\n      extraout_EDI[0xaa] = iVar3;\n      if (iVar3 == 0) goto LAB_00021b67;\n      iVar3 = unaff_EBX + 0x5c792;\n    }\n    *(undefined1 *)(param_2 + 0xc) = 1;\n    if (param_4 != '\0') goto LAB_00021790;\nLAB_00021878:\n    iVar4 = extraout_EDI[0x5a];\n    if (iVar4 == 0) {\n      iVar4 = unaff_EBX + 0x66713;\n    }\n    iVar6 = unaff_EBX + 0x5c78b;\n  }\n  else {\n    if (param_4 == '\0') goto LAB_00021878;\nLAB_00021790:\n    iVar4 = extraout_EDI[0x3b];\n    if (iVar4 == 0) {\n      iVar4 = unaff_EBX + 0x66713;\n    }\n    iVar6 = unaff_EBX + 0x5c785;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_2 + 4) == 0x40)" (( "(") (binary_expression "*(int *)(param_2 + 4) == 0x40" (pointer_expression "*(int *)(param_2 + 4)" (* "*") (cast_expression "(int *)(param_2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")")))) (== "==") (number_literal "0x40")) () ")")) (compound_statement "{\n    if ((param_4 == '\0') && (extraout_EDI[0x5d] != 0)) {\n      iVar4 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2);\n      if (iVar4 != 0) {\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_00021878;\n      }\nLAB_0002181a:\n      (**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(extraout_EDI[0xaa]);\n      iVar3 = curl_maprintf(unaff_EBX + 0x5c7d7,extraout_EDI[0x5d]);\n      extraout_EDI[0xaa] = iVar3;\n      if (iVar3 == 0) goto LAB_00021b67;\n      iVar3 = unaff_EBX + 0x5c792;\n    }\n    *(undefined1 *)(param_2 + 0xc) = 1;\n    if (param_4 != '\0') goto LAB_00021790;\nLAB_00021878:\n    iVar4 = extraout_EDI[0x5a];\n    if (iVar4 == 0) {\n      iVar4 = unaff_EBX + 0x66713;\n    }\n    iVar6 = unaff_EBX + 0x5c78b;\n  }" ({ "{") (if_statement "if ((param_4 == '\0') && (extraout_EDI[0x5d] != 0)) {\n      iVar4 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2);\n      if (iVar4 != 0) {\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_00021878;\n      }\nLAB_0002181a:\n      (**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(extraout_EDI[0xaa]);\n      iVar3 = curl_maprintf(unaff_EBX + 0x5c7d7,extraout_EDI[0x5d]);\n      extraout_EDI[0xaa] = iVar3;\n      if (iVar3 == 0) goto LAB_00021b67;\n      iVar3 = unaff_EBX + 0x5c792;\n    }" (if "if") (parenthesized_expression "((param_4 == '\0') && (extraout_EDI[0x5d] != 0))" (( "(") (binary_expression "(param_4 == '\0') && (extraout_EDI[0x5d] != 0)" (parenthesized_expression "(param_4 == '\0')" (( "(") (binary_expression "param_4 == '\0'" (identifier "param_4") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(extraout_EDI[0x5d] != 0)" (( "(") (binary_expression "extraout_EDI[0x5d] != 0" (subscript_expression "extraout_EDI[0x5d]" (identifier "extraout_EDI") ([ "[") (number_literal "0x5d") (] "]")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n      iVar4 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2);\n      if (iVar4 != 0) {\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_00021878;\n      }\nLAB_0002181a:\n      (**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(extraout_EDI[0xaa]);\n      iVar3 = curl_maprintf(unaff_EBX + 0x5c7d7,extraout_EDI[0x5d]);\n      extraout_EDI[0xaa] = iVar3;\n      if (iVar3 == 0) goto LAB_00021b67;\n      iVar3 = unaff_EBX + 0x5c792;\n    }" ({ "{") (expression_statement "iVar4 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2);" (assignment_expression "iVar4 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2)" (identifier "iVar4") (= "=") (call_expression "FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2)" (identifier "FUN_00039090") (argument_list "(extraout_EDI,unaff_EBX + 0x5c7f2)" (( "(") (identifier "extraout_EDI") (, ",") (binary_expression "unaff_EBX + 0x5c7f2" (identifier "unaff_EBX") (+ "+") (number_literal "0x5c7f2")) () ")")))) (; ";")) (if_statement "if (iVar4 != 0) {\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_00021878;\n      }" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        *(undefined1 *)(param_2 + 0xc) = 1;\n        goto LAB_00021878;\n      }" ({ "{") (expression_statement "*(undefined1 *)(param_2 + 0xc) = 1;" (assignment_expression "*(undefined1 *)(param_2 + 0xc) = 1" (pointer_expression "*(undefined1 *)(param_2 + 0xc)" (* "*") (cast_expression "(undefined1 *)(param_2 + 0xc)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xc)" (( "(") (binary_expression "param_2 + 0xc" (identifier "param_2") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (number_literal "1")) (; ";")) (goto_statement "goto LAB_00021878;" (goto "goto") (statement_identifier "LAB_00021878") (; ";")) (} "}"))) (labeled_statement "LAB_0002181a:\n      (**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(extraout_EDI[0xaa]);" (statement_identifier "LAB_0002181a") (: ":") (expression_statement "(**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(extraout_EDI[0xaa]);" (call_expression "(**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(extraout_EDI[0xaa])" (parenthesized_expression "(**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))" (( "(") (pointer_expression "**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e)" (* "*") (pointer_expression "*(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e)" (* "*") (cast_expression "(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e)" (( "(") (binary_expression "BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e" (binary_expression "BYTE_ARRAY_0008f7e1 + unaff_EBX" (identifier "BYTE_ARRAY_0008f7e1") (+ "+") (identifier "unaff_EBX")) (+ "+") (number_literal "0x22e")) () ")"))))) () ")")) (argument_list "(extraout_EDI[0xaa])" (( "(") (subscript_expression "extraout_EDI[0xaa]" (identifier "extraout_EDI") ([ "[") (number_literal "0xaa") (] "]")) () ")"))) (; ";"))) (expression_statement "iVar3 = curl_maprintf(unaff_EBX + 0x5c7d7,extraout_EDI[0x5d]);" (assignment_expression "iVar3 = curl_maprintf(unaff_EBX + 0x5c7d7,extraout_EDI[0x5d])" (identifier "iVar3") (= "=") (call_expression "curl_maprintf(unaff_EBX + 0x5c7d7,extraout_EDI[0x5d])" (identifier "curl_maprintf") (argument_list "(unaff_EBX + 0x5c7d7,extraout_EDI[0x5d])" (( "(") (binary_expression "unaff_EBX + 0x5c7d7" (identifier "unaff_EBX") (+ "+") (number_literal "0x5c7d7")) (, ",") (subscript_expression "extraout_EDI[0x5d]" (identifier "extraout_EDI") ([ "[") (number_literal "0x5d") (] "]")) () ")")))) (; ";")) (expression_statement "extraout_EDI[0xaa] = iVar3;" (assignment_expression "extraout_EDI[0xaa] = iVar3" (subscript_expression "extraout_EDI[0xaa]" (identifier "extraout_EDI") ([ "[") (number_literal "0xaa") (] "]")) (= "=") (identifier "iVar3")) (; ";")) (if_statement "if (iVar3 == 0) goto LAB_00021b67;" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00021b67;" (goto "goto") (statement_identifier "LAB_00021b67") (; ";"))) (expression_statement "iVar3 = unaff_EBX + 0x5c792;" (assignment_expression "iVar3 = unaff_EBX + 0x5c792" (identifier "iVar3") (= "=") (binary_expression "unaff_EBX + 0x5c792" (identifier "unaff_EBX") (+ "+") (number_literal "0x5c792"))) (; ";")) (} "}"))) (expression_statement "*(undefined1 *)(param_2 + 0xc) = 1;" (assignment_expression "*(undefined1 *)(param_2 + 0xc) = 1" (pointer_expression "*(undefined1 *)(param_2 + 0xc)" (* "*") (cast_expression "(undefined1 *)(param_2 + 0xc)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xc)" (( "(") (binary_expression "param_2 + 0xc" (identifier "param_2") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (number_literal "1")) (; ";")) (if_statement "if (param_4 != '\0') goto LAB_00021790;" (if "if") (parenthesized_expression "(param_4 != '\0')" (( "(") (binary_expression "param_4 != '\0'" (identifier "param_4") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (goto_statement "goto LAB_00021790;" (goto "goto") (statement_identifier "LAB_00021790") (; ";"))) (labeled_statement "LAB_00021878:\n    iVar4 = extraout_EDI[0x5a];" (statement_identifier "LAB_00021878") (: ":") (expression_statement "iVar4 = extraout_EDI[0x5a];" (assignment_expression "iVar4 = extraout_EDI[0x5a]" (identifier "iVar4") (= "=") (subscript_expression "extraout_EDI[0x5a]" (identifier "extraout_EDI") ([ "[") (number_literal "0x5a") (] "]"))) (; ";"))) (if_statement "if (iVar4 == 0) {\n      iVar4 = unaff_EBX + 0x66713;\n    }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar4 = unaff_EBX + 0x66713;\n    }" ({ "{") (expression_statement "iVar4 = unaff_EBX + 0x66713;" (assignment_expression "iVar4 = unaff_EBX + 0x66713" (identifier "iVar4") (= "=") (binary_expression "unaff_EBX + 0x66713" (identifier "unaff_EBX") (+ "+") (number_literal "0x66713"))) (; ";")) (} "}"))) (expression_statement "iVar6 = unaff_EBX + 0x5c78b;" (assignment_expression "iVar6 = unaff_EBX + 0x5c78b" (identifier "iVar6") (= "=") (binary_expression "unaff_EBX + 0x5c78b" (identifier "unaff_EBX") (+ "+") (number_literal "0x5c78b"))) (; ";")) (} "}")) (else_clause "else {\n    if (param_4 == '\0') goto LAB_00021878;\nLAB_00021790:\n    iVar4 = extraout_EDI[0x3b];\n    if (iVar4 == 0) {\n      iVar4 = unaff_EBX + 0x66713;\n    }\n    iVar6 = unaff_EBX + 0x5c785;\n  }" (else "else") (compound_statement "{\n    if (param_4 == '\0') goto LAB_00021878;\nLAB_00021790:\n    iVar4 = extraout_EDI[0x3b];\n    if (iVar4 == 0) {\n      iVar4 = unaff_EBX + 0x66713;\n    }\n    iVar6 = unaff_EBX + 0x5c785;\n  }" ({ "{") (if_statement "if (param_4 == '\0') goto LAB_00021878;" (if "if") (parenthesized_expression "(param_4 == '\0')" (( "(") (binary_expression "param_4 == '\0'" (identifier "param_4") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (goto_statement "goto LAB_00021878;" (goto "goto") (statement_identifier "LAB_00021878") (; ";"))) (labeled_statement "LAB_00021790:\n    iVar4 = extraout_EDI[0x3b];" (statement_identifier "LAB_00021790") (: ":") (expression_statement "iVar4 = extraout_EDI[0x3b];" (assignment_expression "iVar4 = extraout_EDI[0x3b]" (identifier "iVar4") (= "=") (subscript_expression "extraout_EDI[0x3b]" (identifier "extraout_EDI") ([ "[") (number_literal "0x3b") (] "]"))) (; ";"))) (if_statement "if (iVar4 == 0) {\n      iVar4 = unaff_EBX + 0x66713;\n    }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar4 = unaff_EBX + 0x66713;\n    }" ({ "{") (expression_statement "iVar4 = unaff_EBX + 0x66713;" (assignment_expression "iVar4 = unaff_EBX + 0x66713" (identifier "iVar4") (= "=") (binary_expression "unaff_EBX + 0x66713" (identifier "unaff_EBX") (+ "+") (number_literal "0x66713"))) (; ";")) (} "}"))) (expression_statement "iVar6 = unaff_EBX + 0x5c785;" (assignment_expression "iVar6 = unaff_EBX + 0x5c785" (identifier "iVar6") (= "=") (binary_expression "unaff_EBX + 0x5c785" (identifier "unaff_EBX") (+ "+") (number_literal "0x5c785"))) (; ";")) (} "}"))))) (expression_statement "FUN_00027140(iVar2,unaff_EBX + 0x5c20f,iVar6,iVar3,iVar4);" (call_expression "FUN_00027140(iVar2,unaff_EBX + 0x5c20f,iVar6,iVar3,iVar4)" (identifier "FUN_00027140") (argument_list "(iVar2,unaff_EBX + 0x5c20f,iVar6,iVar3,iVar4)" (( "(") (identifier "iVar2") (, ",") (binary_expression "unaff_EBX + 0x5c20f" (identifier "unaff_EBX") (+ "+") (number_literal "0x5c20f")) (, ",") (identifier "iVar6") (, ",") (identifier "iVar3") (, ",") (identifier "iVar4") () ")"))) (; ";")) (expression_statement "*(byte *)(param_2 + 0xd) = *(byte *)(param_2 + 0xc) ^ 1;" (assignment_expression "*(byte *)(param_2 + 0xd) = *(byte *)(param_2 + 0xc) ^ 1" (pointer_expression "*(byte *)(param_2 + 0xd)" (* "*") (cast_expression "(byte *)(param_2 + 0xd)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xd)" (( "(") (binary_expression "param_2 + 0xd" (identifier "param_2") (+ "+") (number_literal "0xd")) () ")")))) (= "=") (binary_expression "*(byte *)(param_2 + 0xc) ^ 1" (pointer_expression "*(byte *)(param_2 + 0xc)" (* "*") (cast_expression "(byte *)(param_2 + 0xc)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xc)" (( "(") (binary_expression "param_2 + 0xc" (identifier "param_2") (+ "+") (number_literal "0xc")) () ")")))) (^ "^") (number_literal "1"))) (; ";")) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_000216e6:\n  if (local_24 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0007c1a0();\n  }" (statement_identifier "LAB_000216e6") (: ":") (if_statement "if (local_24 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0007c1a0();\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_0007c1a0();\n  }" ({ "{") (expression_statement "FUN_0007c1a0();" (call_expression "FUN_0007c1a0()" (identifier "FUN_0007c1a0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (return_statement "return iVar3;" (return "return") (identifier "iVar3") (; ";")) (} "}")))

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

type_1 __regparm3
function_1(type_2 *conn,type_3 *authstatus,char *request,char *path,type_4 proxy)

{
  type_5 *data;
  type_6 var_2;
  type_1 var_4;
  char *var_9;
  char *var_12;
  size_t insize;
  char *pcVar5;
  type_7 *pnVar6;
  int var_1;
  type_8 *local_40;
  type_5 *local_34;
  size_t size;
  char *var_15;
  int var_18;
  type_9 uStack_14;
  
  uStack_14 = 0x2165d;
  data = conn->data;
  var_18 = *(int *)(var_1 + 0x14);
  pnVar6 = &(data->state).negotiate;
  if (proxy) {
    pnVar6 = &(data->state).proxyneg;
  }
  var_2 = authstatus->picked;
  pnVar6->state = CURLDIGESTALGO_MD5;
  if (var_2 != 4) {
    if (var_2 == 8) {
      var_4 = var_3(conn,proxy);
      if (var_4 != var_5) goto LAB_000216e6;
      var_9 = "NTLM";
      goto LAB_0002177e;
    }
    if (var_2 == 0x20) {
      var_4 = var_6(conn,proxy);
      if (var_4 != var_5) goto LAB_000216e6;
      var_9 = "NTLM_WB";
      goto LAB_0002177e;
    }
    if (var_2 == 2) {
      var_4 = var_7(conn,proxy,(type_10 *)request,(type_10 *)path);
      if (var_4 != var_5) goto LAB_000216e6;
      var_9 = "Digest";
      goto LAB_0002177e;
    }
    if (var_2 != 1) {
      if (var_2 != 0x40) {
LAB_000216e0:
        authstatus->multipass = false;
        var_4 = var_5;
        goto LAB_000216e6;
      }
      if ((proxy) || (conn->oauth_bearer == (char *)0x0)) {
LAB_000216dc:
        authstatus->done = true;
        goto LAB_000216e0;
      }
LAB_000217ef:
      var_9 = var_8(conn,"Authorization:");
      if (var_9 != (char *)0x0) goto LAB_000216dc;
      goto LAB_0002181a;
    }
    if (proxy) {
      if (((conn->bits).proxy_user_passwd == false) ||
         (var_9 = var_10(conn,"Proxy-authorization"), var_9 != (char *)0x0))
      goto LAB_000216dc;
      local_34 = conn->data;
      var_9 = (conn->http_proxy).user;
      local_40 = &conn->allocptr;
      var_12 = (conn->http_proxy).passwd;
    }
    else {
      if ((conn->bits).user_passwd == false) goto LAB_000216dc;
      var_9 = var_8(conn,"Authorization");
      if (var_9 != (char *)0x0) {
        authstatus->done = true;
        if ((authstatus->picked == 0x40) && (conn->oauth_bearer != (char *)0x0)) goto LAB_000217ef;
        goto LAB_000216e0;
      }
      local_34 = conn->data;
      var_9 = conn->user;
      local_40 = (type_8 *)&(conn->allocptr).userpwd;
      var_12 = conn->passwd;
    }
    var_15 = (char *)0x0;
    size = 0;
    var_12 = var_11("%s:%s",var_9,var_12);
    if (var_12 != (char *)0x0) {
      insize = var_13(var_12);
      var_4 = var_14(local_34,var_12,insize,&var_15,&size);
      if (var_4 != var_5) {
        (*Curl_cfree)(var_12);
        goto LAB_000216e6;
      }
      if (var_15 == (char *)0x0) {
        (*Curl_cfree)(var_12);
        var_4 = CURLE_REMOTE_ACCESS_DENIED;
        goto LAB_000216e6;
      }
      (*Curl_cfree)(local_40->proxyuserpwd);
      var_9 = "Proxy-";
      if (!proxy) {
        var_9 = "";
      }
      var_9 = var_11("%sAuthorization: Basic %s\r\n",var_9,var_15);
      local_40->proxyuserpwd = var_9;
      (*Curl_cfree)(var_15);
      if (local_40->proxyuserpwd != (char *)0x0) {
        var_9 = "Basic";
        (*Curl_cfree)(var_12);
        authstatus->done = true;
        goto LAB_0002177e;
      }
      (*Curl_cfree)(var_12);
    }
LAB_00021b67:
    var_4 = CURLE_OUT_OF_MEMORY;
    goto LAB_000216e6;
  }
  if ((pnVar6->context == (type_11)0x0) || ((pnVar6->status & 0xffff0000) != 0))
  goto LAB_000216e0;
  var_4 = var_16(conn,proxy);
  if (var_4 != var_5) goto LAB_000216e6;
  authstatus->done = true;
  pnVar6->state = CURLDIGESTALGO_SHA256;
  var_9 = "Negotiate";
LAB_0002177e:
  if (authstatus->picked == 0x40) {
    if ((!proxy) && (conn->oauth_bearer != (char *)0x0)) {
      var_12 = var_8(conn,"Authorization:");
      if (var_12 != (char *)0x0) {
        authstatus->done = true;
        goto LAB_00021878;
      }
LAB_0002181a:
      (*Curl_cfree)((conn->allocptr).userpwd);
      var_9 = var_11("Authorization: Bearer %s\r\n",conn->oauth_bearer);
      (conn->allocptr).userpwd = var_9;
      if (var_9 == (char *)0x0) goto LAB_00021b67;
      var_9 = "Bearer";
    }
    authstatus->done = true;
    if (proxy) goto LAB_00021790;
LAB_00021878:
    var_12 = conn->user;
    if (var_12 == (char *)0x0) {
      var_12 = "";
    }
    pcVar5 = "Server";
  }
  else {
    if (!proxy) goto LAB_00021878;
LAB_00021790:
    var_12 = (conn->http_proxy).user;
    if (var_12 == (char *)0x0) {
      var_12 = "";
    }
    pcVar5 = "Proxy";
  }
  var_17(data,"%s auth using %s with user \'%s\'\n",pcVar5,var_9,var_12);
  authstatus->multipass = (type_4)(authstatus->done ^ 1);
  var_4 = var_5;
LAB_000216e6:
  if (var_18 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_19();
  }
  return var_4;
}


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

int __regparm3 MASKED(undefined4 param_1,int param_2,undefined4 param_3,char param_4)

{
  byte *pbVar1;
  int iVar2;
  int iVar3;
  int iVar4;
  char *__s;
  size_t sVar5;
  int iVar6;
  int unaff_EBX;
  undefined4 *puVar7;
  int *extraout_EDI;
  int in_GS_OFFSET;
  undefined4 unaff_retaddr;
  int *local_44;
  int local_38;
  undefined4 local_2c;
  int local_28;
  int local_24;
  undefined4 uStack_14;
  
  uStack_14 = 0x2165d;
  entry();
  iVar2 = *extraout_EDI;
  local_24 = *(int *)(in_GS_OFFSET + 0x14);
  puVar7 = (undefined4 *)(iVar2 + 0xd18);
  if (param_4 != '\0') {
    puVar7 = (undefined4 *)(iVar2 + 0xd30);
  }
  iVar3 = *(int *)(param_2 + 4);
  *puVar7 = 0;
  if (iVar3 != 4) {
    if (iVar3 == 8) {
      iVar3 = FUN_0005da00(extraout_EDI,param_4);
      if (iVar3 != 0) goto LAB_000216e6;
      iVar3 = unaff_EBX + 0x5c816;
      goto LAB_0002177e;
    }
    if (iVar3 == 0x20) {
      iVar3 = FUN_0005e5c0(extraout_EDI,param_4);
      if (iVar3 != 0) goto LAB_000216e6;
      iVar3 = unaff_EBX + 0x5c776;
      goto LAB_0002177e;
    }
    if (iVar3 == 2) {
      iVar3 = FUN_000476e0(extraout_EDI,param_4,param_3,unaff_retaddr);
      if (iVar3 != 0) goto LAB_000216e6;
      iVar3 = unaff_EBX + 0x5c77e;
      goto LAB_0002177e;
    }
    if (iVar3 != 1) {
      if (iVar3 != 0x40) {
LAB_000216e0:
        *(undefined1 *)(param_2 + 0xd) = 0;
        iVar3 = 0;
        goto LAB_000216e6;
      }
      if ((param_4 != '\0') || (extraout_EDI[0x5d] == 0)) {
LAB_000216dc:
        *(undefined1 *)(param_2 + 0xc) = 1;
        goto LAB_000216e0;
      }
LAB_000217ef:
      iVar3 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2);
      if (iVar3 != 0) goto LAB_000216dc;
      goto LAB_0002181a;
    }
    if (param_4 == '\0') {
      if ((char)extraout_EDI[0x94] == '\0') goto LAB_000216dc;
      iVar3 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7ad);
      if (iVar3 != 0) {
        *(undefined1 *)(param_2 + 0xc) = 1;
        if ((*(int *)(param_2 + 4) == 0x40) && (extraout_EDI[0x5d] != 0)) goto LAB_000217ef;
        goto LAB_000216e0;
      }
      local_38 = *extraout_EDI;
      iVar3 = extraout_EDI[0x5a];
      local_44 = extraout_EDI + 0xaa;
      iVar4 = extraout_EDI[0x5b];
    }
    else {
      if ((*(char *)((int)extraout_EDI + 0x251) == '\0') ||
         (iVar3 = FUN_000215c0(extraout_EDI,unaff_EBX + 0x5c799), iVar3 != 0)) goto LAB_000216dc;
      local_38 = *extraout_EDI;
      iVar3 = extraout_EDI[0x3b];
      local_44 = extraout_EDI + 0xa7;
      iVar4 = extraout_EDI[0x3c];
    }
    local_28 = 0;
    local_2c = 0;
    __s = (char *)curl_maprintf(unaff_EBX + 0x661ba,iVar3,iVar4);
    if (__s != (char *)0x0) {
      sVar5 = strlen(__s);
      iVar3 = FUN_0001b180(local_38,__s,sVar5,&local_28,&local_2c);
      if (iVar3 != 0) {
        (**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(__s);
        goto LAB_000216e6;
      }
      pbVar1 = BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e;
      if (local_28 == 0) {
        (**(code **)pbVar1)(__s);
        iVar3 = 9;
        goto LAB_000216e6;
      }
      (**(code **)pbVar1)(*local_44);
      iVar3 = unaff_EBX + 0x5c75f;
      if (param_4 == '\0') {
        iVar3 = unaff_EBX + 0x66713;
      }
      iVar3 = curl_maprintf(unaff_EBX + 0x5c7bb,iVar3,local_28);
      *local_44 = iVar3;
      (**(code **)pbVar1)(local_28);
      if (*local_44 != 0) {
        iVar3 = unaff_EBX + 0x5c770;
        (**(code **)pbVar1)(__s);
        *(undefined1 *)(param_2 + 0xc) = 1;
        goto LAB_0002177e;
      }
      (**(code **)pbVar1)(__s);
    }
LAB_00021b67:
    iVar3 = 0x1b;
    goto LAB_000216e6;
  }
  if ((puVar7[2] == 0) || ((puVar7[1] & 0xffff0000) != 0)) goto LAB_000216e0;
  iVar3 = FUN_00047be0(extraout_EDI,param_4);
  if (iVar3 != 0) goto LAB_000216e6;
  *(undefined1 *)(param_2 + 0xc) = 1;
  *puVar7 = 2;
  iVar3 = unaff_EBX + 0x5c766;
LAB_0002177e:
  if (*(int *)(param_2 + 4) == 0x40) {
    if ((param_4 == '\0') && (extraout_EDI[0x5d] != 0)) {
      iVar4 = FUN_00039090(extraout_EDI,unaff_EBX + 0x5c7f2);
      if (iVar4 != 0) {
        *(undefined1 *)(param_2 + 0xc) = 1;
        goto LAB_00021878;
      }
LAB_0002181a:
      (**(code **)(BYTE_ARRAY_0008f7e1 + unaff_EBX + 0x22e))(extraout_EDI[0xaa]);
      iVar3 = curl_maprintf(unaff_EBX + 0x5c7d7,extraout_EDI[0x5d]);
      extraout_EDI[0xaa] = iVar3;
      if (iVar3 == 0) goto LAB_00021b67;
      iVar3 = unaff_EBX + 0x5c792;
    }
    *(undefined1 *)(param_2 + 0xc) = 1;
    if (param_4 != '\0') goto LAB_00021790;
LAB_00021878:
    iVar4 = extraout_EDI[0x5a];
    if (iVar4 == 0) {
      iVar4 = unaff_EBX + 0x66713;
    }
    iVar6 = unaff_EBX + 0x5c78b;
  }
  else {
    if (param_4 == '\0') goto LAB_00021878;
LAB_00021790:
    iVar4 = extraout_EDI[0x3b];
    if (iVar4 == 0) {
      iVar4 = unaff_EBX + 0x66713;
    }
    iVar6 = unaff_EBX + 0x5c785;
  }
  FUN_00027140(iVar2,unaff_EBX + 0x5c20f,iVar6,iVar3,iVar4);
  *(byte *)(param_2 + 0xd) = *(byte *)(param_2 + 0xc) ^ 1;
  iVar3 = 0;
LAB_000216e6:
  if (local_24 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_0007c1a0();
  }
  return iVar3;
}

