
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

int proxy_http_negotiate(Proxy_Socket p,int change)

{
  bufchain *pbVar1;
  char cVar2;
  uchar uVar3;
  long lVar4;
  int n;
  long lVar5;
  int iVar6;
  int iVar7;
  int iVar8;
  uchar *ptr;
  char *pcVar9;
  long lVar10;
  char *pcVar11;
  uchar *puVar12;
  long in_FS_OFFSET;
  byte bVar13;
  int min_ver;
  int maj_ver;
  int status;
  char dest [512];
  
  bVar13 = 0;
  lVar4 = *(long *)(in_FS_OFFSET + 0x28);
  iVar6 = p->state;
  if (iVar6 == -1) {
    sk_getaddr(p->remote_addr,dest,0x200);
    pcVar9 = dupprintf("CONNECT %s:%i HTTP/1.1\r\nHost: %s:%i\r\n",dest,(ulong)(uint)p->remote_port,
                       dest,(ulong)(uint)p->remote_port);
    lVar10 = -1;
    pcVar11 = pcVar9;
    do {
      if (lVar10 == 0) break;
      lVar10 = lVar10 + -1;
      cVar2 = *pcVar11;
      pcVar11 = pcVar11 + (ulong)bVar13 * -2 + 1;
    } while (cVar2 != '\0');
    (*(*p->sub_socket)->write)(p->sub_socket,pcVar9,~(uint)lVar10 - 1);
    safefree(pcVar9);
    pcVar11 = conf_get_str(p->conf,0x10);
    pcVar9 = conf_get_str(p->conf,0x11);
    if ((*pcVar11 != '\0') || (*pcVar9 != '\0')) {
      ptr = (uchar *)dupprintf("%s:%s",pcVar11,pcVar9);
      lVar10 = -1;
      puVar12 = ptr;
      do {
        if (lVar10 == 0) break;
        lVar10 = lVar10 + -1;
        uVar3 = *puVar12;
        puVar12 = puVar12 + (ulong)bVar13 * -2 + 1;
      } while (uVar3 != '\0');
      iVar6 = ~(uint)lVar10 - 1;
      pcVar9 = (char *)safemalloc((long)((iVar6 * 4) / 3 + 100),1);
      builtin_strncpy(pcVar9,"Proxy-Authorization: Basic ",0x1c);
      lVar10 = -1;
      pcVar11 = pcVar9;
      do {
        if (lVar10 == 0) break;
        lVar10 = lVar10 + -1;
        cVar2 = *pcVar11;
        pcVar11 = pcVar11 + (ulong)bVar13 * -2 + 1;
      } while (cVar2 != '\0');
      iVar7 = ~(uint)lVar10 - 1;
      if (0 < iVar6) {
        pcVar11 = pcVar9 + iVar7;
        iVar8 = 0;
        puVar12 = ptr;
        do {
          n = iVar6 - iVar8;
          if (3 < iVar6 - iVar8) {
            n = 3;
          }
          base64_encode_atom(puVar12,n,pcVar11);
          iVar8 = iVar8 + 3;
          iVar7 = iVar7 + 4;
          puVar12 = puVar12 + 3;
          pcVar11 = pcVar11 + 4;
        } while (iVar8 < iVar6);
      }
      pcVar11 = pcVar9 + iVar7;
      pcVar11[0] = '\r';
      pcVar11[1] = '\n';
      pcVar11[2] = '\0';
      lVar10 = -1;
      pcVar11 = pcVar9;
      do {
        if (lVar10 == 0) break;
        lVar10 = lVar10 + -1;
        cVar2 = *pcVar11;
        pcVar11 = pcVar11 + (ulong)bVar13 * -2 + 1;
      } while (cVar2 != '\0');
      (*(*p->sub_socket)->write)(p->sub_socket,pcVar9,~(uint)lVar10 - 1);
      safefree(ptr);
      safefree(pcVar9);
    }
    (*(*p->sub_socket)->write)(p->sub_socket,"\r\n",2);
    p->state = 1;
    iVar6 = 0;
    goto LAB_00128d76;
  }
  if (change == 0) {
    (*(*p->plug)->closing)
              (p->plug,p->closing_error_msg,p->closing_error_code,p->closing_calling_back);
    iVar6 = 0;
    goto LAB_00128d76;
  }
  if (change == 1) {
    iVar6 = 0;
    goto LAB_00128d76;
  }
  if (change == 3) {
    iVar6 = (*(*p->plug)->accepting)
                      (p->plug,p->accepting_constructor,(accept_ctx_t)(p->accepting_ctx).p);
    goto LAB_00128d76;
  }
  if (change == 2) {
    if (iVar6 == 1) {
      pbVar1 = &p->pending_input_data;
      iVar6 = bufchain_size(pbVar1);
      if (iVar6 < 1) {
                    /* WARNING: Subroutine does not return */
        __assert_fail("len > 0","proxy.c",0x2af,"proxy_http_negotiate");
      }
      pcVar11 = (char *)safemalloc((long)(iVar6 + 1),1);
      bufchain_fetch(pbVar1,pcVar11,iVar6);
      pcVar11[iVar6] = '\0';
      iVar7 = get_line_end(pcVar11,iVar6);
      iVar6 = 1;
      if (iVar7 < 0) {
        safefree(pcVar11);
        goto LAB_00128d76;
      }
      status = -1;
      iVar8 = __isoc99_sscanf(pcVar11,"HTTP/%i.%i %n",&maj_ver,&min_ver,&status);
      if ((iVar8 < 2) || (status == -1)) {
        (*(*p->plug)->closing)(p->plug,"Proxy error: HTTP response was absent",8000,0);
        safefree(pcVar11);
        goto LAB_00128d76;
      }
      bufchain_consume(pbVar1,iVar7);
      if (pcVar11[status] != '2') {
        pcVar11[iVar7] = '\0';
        if ((status < iVar7) &&
           ((pcVar11[(long)iVar7 + -1] == '\r' || (pcVar11[(long)iVar7 + -1] == '\n')))) {
          lVar10 = (long)(iVar7 + -1);
          do {
            pcVar11[lVar10] = '\0';
            if ((int)lVar10 <= status) break;
            lVar5 = lVar10 + -1;
            lVar10 = lVar10 + -1;
          } while ((pcVar11[lVar5] == '\r') || (pcVar11[lVar5] == '\n'));
        }
        pcVar9 = dupprintf("Proxy error: %s",pcVar11 + status);
        (*(*p->plug)->closing)(p->plug,pcVar9,8000,0);
        safefree(pcVar9);
        safefree(pcVar11);
        goto LAB_00128d76;
      }
      safefree(pcVar11);
      p->state = 2;
    }
    else if (iVar6 != 2) goto LAB_00128d56;
    pbVar1 = &p->pending_input_data;
    iVar6 = bufchain_size(pbVar1);
    if (iVar6 < 1) {
                    /* WARNING: Subroutine does not return */
      __assert_fail("len > 0","proxy.c",0x2e5,"proxy_http_negotiate");
    }
    pcVar9 = (char *)safemalloc((long)iVar6,1);
    bufchain_fetch(pbVar1,pcVar9,iVar6);
    iVar7 = get_line_end(pcVar9,iVar6);
    pcVar11 = pcVar9;
    if (iVar7 < 0) {
      safefree(pcVar9);
      iVar6 = 1;
    }
    else {
      while (2 < iVar7) {
        bufchain_consume(pbVar1,iVar7);
        lVar10 = (long)iVar7;
        iVar6 = iVar6 - iVar7;
        iVar7 = get_line_end(pcVar11 + lVar10,iVar6);
        pcVar11 = pcVar11 + lVar10;
      }
      if (iVar7 == 2) {
        bufchain_consume(pbVar1,2);
        proxy_activate(p);
        safefree(pcVar9);
        iVar6 = 1;
      }
      else {
        safefree(pcVar9);
        iVar6 = 1;
      }
    }
  }
  else {
LAB_00128d56:
    (*(*p->plug)->closing)(p->plug,"Proxy error: unexpected proxy error",0x1f41,0);
    iVar6 = 1;
  }
LAB_00128d76:
  if (lVar4 == *(long *)(in_FS_OFFSET + 0x28)) {
    return iVar6;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}



undefined4 FUN_00128cfe(long param_1,int param_2)

{
  char cVar1;
  int iVar2;
  undefined4 uVar3;
  int iVar4;
  int iVar5;
  char *pcVar6;
  char *pcVar7;
  char *pcVar8;
  long lVar9;
  long lVar10;
  long lVar11;
  long lVar12;
  undefined8 uVar13;
  ulong uVar14;
  char *pcVar15;
  int iVar16;
  long in_FS_OFFSET;
  byte bVar17;
  undefined1 local_254 [4];
  undefined1 local_250 [4];
  int local_24c;
  undefined1 local_248 [520];
  long local_40;
  
  bVar17 = 0;
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  iVar4 = *(int *)(param_1 + 0x84);
  if (iVar4 == -1) {
    FUN_0018b9e4(*(undefined8 *)(param_1 + 0x20),local_248,0x200);
    pcVar6 = (char *)FUN_00126ed4("CONNECT %s:%i HTTP/1.1\r\nHost: %s:%i\r\n",local_248,
                                  *(undefined4 *)(param_1 + 0x28),local_248,
                                  *(undefined4 *)(param_1 + 0x28));
    uVar14 = 0xffffffffffffffff;
    pcVar7 = pcVar6;
    do {
      if (uVar14 == 0) break;
      uVar14 = uVar14 - 1;
      cVar1 = *pcVar7;
      pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;
    } while (cVar1 != '\0');
    (**(code **)(**(long **)(param_1 + 0x10) + 0x10))(*(long **)(param_1 + 0x10),pcVar6,~uVar14 - 1)
    ;
    FUN_00127101(pcVar6);
    pcVar7 = (char *)FUN_00119829(*(undefined8 *)(param_1 + 0xd0),0x10);
    pcVar6 = (char *)FUN_00119829(*(undefined8 *)(param_1 + 0xd0),0x11);
    if ((*pcVar7 != '\0') || (*pcVar6 != '\0')) {
      pcVar6 = (char *)FUN_00126ed4("%s:%s",pcVar7,pcVar6);
      lVar12 = -1;
      pcVar7 = pcVar6;
      do {
        if (lVar12 == 0) break;
        lVar12 = lVar12 + -1;
        cVar1 = *pcVar7;
        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;
      } while (cVar1 != '\0');
      iVar4 = ~(uint)lVar12 - 1;
      pcVar8 = (char *)FUN_00126895((long)((iVar4 * 4) / 3 + 100),1);
      builtin_strncpy(pcVar8,"Proxy-Authorization: Basic ",0x1c);
      lVar12 = -1;
      pcVar7 = pcVar8;
      do {
        if (lVar12 == 0) break;
        lVar12 = lVar12 + -1;
        cVar1 = *pcVar7;
        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;
      } while (cVar1 != '\0');
      iVar5 = ~(uint)lVar12 - 1;
      if (0 < iVar4) {
        pcVar15 = pcVar8 + iVar5;
        iVar16 = 0;
        pcVar7 = pcVar6;
        do {
          iVar2 = iVar4 - iVar16;
          if (3 < iVar4 - iVar16) {
            iVar2 = 3;
          }
          FUN_001265e7(pcVar7,iVar2,pcVar15);
          iVar16 = iVar16 + 3;
          iVar5 = iVar5 + 4;
          pcVar7 = pcVar7 + 3;
          pcVar15 = pcVar15 + 4;
        } while (iVar16 < iVar4);
      }
      pcVar7 = pcVar8 + iVar5;
      pcVar7[0] = '\r';
      pcVar7[1] = '\n';
      pcVar7[2] = '\0';
      uVar14 = 0xffffffffffffffff;
      pcVar7 = pcVar8;
      do {
        if (uVar14 == 0) break;
        uVar14 = uVar14 - 1;
        cVar1 = *pcVar7;
        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;
      } while (cVar1 != '\0');
      (**(code **)(**(long **)(param_1 + 0x10) + 0x10))
                (*(long **)(param_1 + 0x10),pcVar8,~uVar14 - 1);
      FUN_00127101(pcVar6);
      FUN_00127101(pcVar8);
    }
    (**(code **)(**(long **)(param_1 + 0x10) + 0x10))(*(long **)(param_1 + 0x10),&DAT_001bc572,2);
    *(undefined4 *)(param_1 + 0x84) = 1;
    uVar3 = 0;
    goto LAB_00128d76;
  }
  if (param_2 == 0) {
    (**(code **)(**(long **)(param_1 + 0x18) + 8))
              (*(long **)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x98),
               *(undefined4 *)(param_1 + 0xa0),*(undefined4 *)(param_1 + 0xa4));
    uVar3 = 0;
    goto LAB_00128d76;
  }
  if (param_2 == 1) {
    uVar3 = 0;
    goto LAB_00128d76;
  }
  if (param_2 == 3) {
    uVar3 = (**(code **)(**(long **)(param_1 + 0x18) + 0x20))
                      (*(long **)(param_1 + 0x18),*(undefined8 *)(param_1 + 0xc0),
                       *(undefined8 *)(param_1 + 200));
    goto LAB_00128d76;
  }
  if (param_2 == 2) {
    if (iVar4 == 1) {
      lVar12 = param_1 + 0x68;
      iVar4 = FUN_001267cf(lVar12);
      if (iVar4 < 1) {
                    /* WARNING: Subroutine does not return */
        __assert_fail("len > 0","proxy.c",0x2af,"proxy_http_negotiate");
      }
      lVar11 = FUN_00126895((long)(iVar4 + 1),1);
      FUN_001267eb(lVar12,lVar11,iVar4);
      *(undefined1 *)(lVar11 + iVar4) = 0;
      iVar4 = FUN_00128918(lVar11,iVar4);
      uVar3 = 1;
      if (iVar4 < 0) {
        FUN_00127101(lVar11);
        goto LAB_00128d76;
      }
      local_24c = -1;
      iVar5 = __isoc99_sscanf(lVar11,"HTTP/%i.%i %n",local_250,local_254,&local_24c);
      if ((iVar5 < 2) || (local_24c == -1)) {
        (**(code **)(**(long **)(param_1 + 0x18) + 8))
                  (*(long **)(param_1 + 0x18),"Proxy error: HTTP response was absent",8000,0);
        FUN_00127101(lVar11);
        goto LAB_00128d76;
      }
      FUN_0012722e(lVar12,iVar4);
      if (*(char *)(lVar11 + local_24c) != '2') {
        *(undefined1 *)(lVar11 + iVar4) = 0;
        if ((local_24c < iVar4) &&
           ((cVar1 = *(char *)(lVar11 + -1 + (long)iVar4), cVar1 == '\r' || (cVar1 == '\n')))) {
          lVar12 = (long)(iVar4 + -1);
          do {
            *(undefined1 *)(lVar11 + lVar12) = 0;
            if ((int)lVar12 <= local_24c) break;
            cVar1 = *(char *)(lVar11 + -1 + lVar12);
            lVar12 = lVar12 + -1;
          } while ((cVar1 == '\r') || (cVar1 == '\n'));
        }
        uVar13 = FUN_00126ed4("Proxy error: %s",lVar11 + local_24c);
        (**(code **)(**(long **)(param_1 + 0x18) + 8))(*(long **)(param_1 + 0x18),uVar13,8000,0);
        FUN_00127101(uVar13);
        FUN_00127101(lVar11);
        goto LAB_00128d76;
      }
      FUN_00127101(lVar11);
      *(undefined4 *)(param_1 + 0x84) = 2;
    }
    else if (iVar4 != 2) goto LAB_00128d56;
    lVar12 = param_1 + 0x68;
    iVar4 = FUN_001267cf(lVar12);
    if (iVar4 < 1) {
                    /* WARNING: Subroutine does not return */
      __assert_fail("len > 0","proxy.c",0x2e5,"proxy_http_negotiate");
    }
    lVar9 = FUN_00126895((long)iVar4,1);
    FUN_001267eb(lVar12,lVar9,iVar4);
    iVar5 = FUN_00128918(lVar9,iVar4);
    lVar11 = lVar9;
    if (iVar5 < 0) {
      FUN_00127101(lVar9);
      uVar3 = 1;
    }
    else {
      while (2 < iVar5) {
        FUN_0012722e(lVar12,iVar5);
        lVar10 = (long)iVar5;
        iVar4 = iVar4 - iVar5;
        iVar5 = FUN_00128918(lVar11 + lVar10,iVar4);
        lVar11 = lVar11 + lVar10;
      }
      if (iVar5 == 2) {
        FUN_0012722e(lVar12,2);
        FUN_00128b92(param_1);
        FUN_00127101(lVar9);
        uVar3 = 1;
      }
      else {
        FUN_00127101(lVar9);
        uVar3 = 1;
      }
    }
  }
  else {
LAB_00128d56:
    (**(code **)(**(long **)(param_1 + 0x18) + 8))
              (*(long **)(param_1 + 0x18),"Proxy error: unexpected proxy error",0x1f41,0);
    uVar3 = 1;
  }
LAB_00128d76:
  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {
    return uVar3;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}


PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x248
MOV RBX,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0x238],RAX
XOR EAX,EAX
MOV EBP,dword ptr [RDI + 0x84]
CMP EBP,-0x1
JZ 0x00128da1
MOV R12D,ESI
TEST ESI,ESI
JZ 0x00128fb8
CMP ESI,0x1
JZ 0x001292a6
CMP ESI,0x3
JZ 0x00128fdd
CMP ESI,0x2
JZ 0x00128ffc
MOV RDI,qword ptr [RBX + 0x18]
MOV RAX,qword ptr [RDI]
MOV ECX,0x0
MOV EDX,0x1f41
LEA RSI,[0x1ba368]
CALL qword ptr [RAX + 0x8]
MOV EBP,0x1
MOV EAX,EBP
MOV RCX,qword ptr [RSP + 0x238]
XOR RCX,qword ptr FS:[0x28]
JNZ 0x001292b0
ADD RSP,0x248
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
LEA RBP,[RSP + 0x30]
MOV RDI,qword ptr [RDI + 0x20]
MOV EDX,0x200
MOV RSI,RBP
CALL 0x0018b9e4
MOV EDX,dword ptr [RBX + 0x28]
MOV R8D,EDX
MOV RCX,RBP
MOV RSI,RBP
LEA RDI,[0x1ba318]
MOV EAX,0x0
CALL 0x00126ed4
MOV RBP,RAX
MOV R8,qword ptr [RBX + 0x10]
MOV RCX,-0x1
MOV EAX,0x0
MOV RDI,RBP
SCASB.REPNE RDI
MOV RDX,RCX
NOT RDX
LEA RDX,[RDX + -0x1]
MOV RAX,qword ptr [R8]
MOV RSI,RBP
MOV RDI,R8
CALL qword ptr [RAX + 0x10]
MOV RDI,RBP
CALL 0x00127101
MOV RDI,qword ptr [RBX + 0xd0]
MOV ESI,0x10
CALL 0x00119829
MOV RBP,RAX
MOV RDI,qword ptr [RBX + 0xd0]
MOV ESI,0x11
CALL 0x00119829
CMP byte ptr [RBP],0x0
JNZ 0x00128e3e
CMP byte ptr [RAX],0x0
JZ 0x00128f8e
MOV RDX,RAX
MOV RSI,RBP
LEA RDI,[0x1ba841]
MOV EAX,0x0
CALL 0x00126ed4
MOV R13,RAX
MOV RBP,-0x1
MOV R12D,0x0
MOV RCX,RBP
MOV qword ptr [RSP + 0x10],RAX
MOV RDI,RAX
MOV EAX,R12D
SCASB.REPNE RDI
NOT RCX
LEA R15,[RCX + RBP*0x1]
MOV dword ptr [RSP + 0xc],R15D
LEA ECX,[R15*0x4]
MOV EDX,0x55555556
MOV EAX,ECX
IMUL EDX
SAR ECX,0x1f
SUB EDX,ECX
LEA EDI,[RDX + 0x64]
MOVSXD RDI,EDI
MOV ESI,0x1
CALL 0x00126895
MOV RDI,RAX
MOV RAX,0x75412d79786f7250
MOV RDX,0x74617a69726f6874
MOV qword ptr [RDI],RAX
MOV qword ptr [RDI + 0x8],RDX
MOV RDX,0x736142203a6e6f69
MOV qword ptr [RDI + 0x10],RDX
MOV RDX,RDI
MOV dword ptr [RDI + 0x18],0x206369
MOV RCX,RBP
MOV qword ptr [RSP + 0x18],RDI
MOV EAX,R12D
SCASB.REPNE RDI
MOV RBP,RCX
NOT RBP
SUB RBP,0x1
MOV R14D,EBP
TEST R15D,R15D
JLE 0x00128f3b
MOVSXD RBP,EBP
ADD RBP,RDX
MOV R12D,0x0
MOV ESI,R15D
SUB ESI,R12D
CMP ESI,0x3
MOV EAX,0x3
CMOVG ESI,EAX
MOV RDX,RBP
MOV RDI,R13
CALL 0x001265e7
ADD R12D,0x3
ADD R14D,0x4
ADD R13,0x3
ADD RBP,0x4
CMP dword ptr [RSP + 0xc],R12D
JG 0x00128f08
MOVSXD R14,R14D
MOV R15,qword ptr [RSP + 0x18]
MOV RDI,R15
ADD R14,R15
MOV word ptr [R14],0xa0d
MOV byte ptr [R14 + 0x2],0x0
MOV R8,qword ptr [RBX + 0x10]
MOV RCX,-0x1
MOV EAX,0x0
SCASB.REPNE RDI
MOV RDX,RCX
NOT RDX
LEA RDX,[RDX + -0x1]
MOV RAX,qword ptr [R8]
MOV RSI,R15
MOV RDI,R8
CALL qword ptr [RAX + 0x10]
MOV RDI,qword ptr [RSP + 0x10]
CALL 0x00127101
MOV RDI,R15
CALL 0x00127101
MOV RDI,qword ptr [RBX + 0x10]
MOV RAX,qword ptr [RDI]
MOV EDX,0x2
LEA RSI,[0x1bc572]
CALL qword ptr [RAX + 0x10]
MOV dword ptr [RBX + 0x84],0x1
MOV EBP,0x0
JMP 0x00128d76
MOV RDI,qword ptr [RDI + 0x18]
MOV ECX,dword ptr [RBX + 0xa4]
MOV EDX,dword ptr [RBX + 0xa0]
MOV RSI,qword ptr [RBX + 0x98]
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x8]
MOV EBP,R12D
JMP 0x00128d76
MOV RDI,qword ptr [RDI + 0x18]
MOV RDX,qword ptr [RBX + 0xc8]
MOV RSI,qword ptr [RBX + 0xc0]
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x20]
MOV EBP,EAX
JMP 0x00128d76
CMP EBP,0x1
JZ 0x001290a0
CMP EBP,0x2
JNZ 0x00128d56
LEA R14,[RBX + 0x68]
MOV RDI,R14
CALL 0x001267cf
MOV R12D,EAX
TEST EAX,EAX
JLE 0x0012924e
MOVSXD RDI,EAX
MOV ESI,0x1
CALL 0x00126895
MOV R15,RAX
MOV EDX,R12D
MOV RSI,RAX
MOV RDI,R14
CALL 0x001267eb
MOV ESI,R12D
MOV RDI,R15
CALL 0x00128918
MOV EBP,EAX
TEST EAX,EAX
JS 0x0012926d
MOV R13,R15
CMP EAX,0x2
JLE 0x00129085
MOV ESI,EBP
MOV RDI,R14
CALL 0x0012722e
MOVSXD RAX,EBP
ADD R13,RAX
SUB R12D,EBP
MOV ESI,R12D
MOV RDI,R13
CALL 0x00128918
MOV EBP,EAX
CMP EAX,0x2
JG 0x00129060
CMP EBP,0x2
JZ 0x0012927f
MOV RDI,R15
CALL 0x00127101
MOV EBP,0x1
JMP 0x00128d76
LEA R14,[RDI + 0x68]
MOV RDI,R14
CALL 0x001267cf
MOV R12D,EAX
TEST EAX,EAX
JLE 0x001291e3
LEA EDI,[RAX + 0x1]
MOVSXD RDI,EDI
MOV ESI,0x1
CALL 0x00126895
MOV R13,RAX
MOV EDX,R12D
MOV RSI,RAX
MOV RDI,R14
CALL 0x001267eb
MOVSXD RAX,R12D
MOV byte ptr [R13 + RAX*0x1],0x0
MOV ESI,R12D
MOV RDI,R13
CALL 0x00128918
MOV R12D,EAX
TEST EAX,EAX
JS 0x00129202
MOV dword ptr [RSP + 0x2c],0xffffffff
LEA RCX,[RSP + 0x24]
LEA RDX,[RSP + 0x28]
LEA R8,[RSP + 0x2c]
LEA RSI,[0x1ba84f]
MOV RDI,R13
MOV EAX,0x0
CALL 0x00115050
CMP EAX,0x1
JLE 0x0012920f
CMP dword ptr [RSP + 0x2c],-0x1
JZ 0x0012920f
MOV ESI,R12D
MOV RDI,R14
CALL 0x0012722e
MOVSXD RAX,dword ptr [RSP + 0x2c]
CMP byte ptr [R13 + RAX*0x1],0x32
JZ 0x00129237
MOVSXD RAX,R12D
MOV byte ptr [R13 + RAX*0x1],0x0
MOV EDX,dword ptr [RSP + 0x2c]
CMP R12D,EDX
JLE 0x0012919b
MOVZX EAX,byte ptr [R13 + RAX*0x1 + -0x1]
CMP AL,0xd
JZ 0x00129172
CMP AL,0xa
JNZ 0x0012919b
LEA EAX,[R12 + -0x1]
CDQE
MOV byte ptr [R13 + RAX*0x1],0x0
MOV EDX,dword ptr [RSP + 0x2c]
CMP EDX,EAX
JGE 0x0012919b
MOVZX ECX,byte ptr [R13 + RAX*0x1 + -0x1]
SUB RAX,0x1
CMP CL,0xd
JZ 0x00129179
CMP CL,0xa
JZ 0x00129179
MOVSXD RDX,EDX
LEA RSI,[R13 + RDX*0x1]
LEA RDI,[0x1ba85d]
MOV EAX,0x0
CALL 0x00126ed4
MOV R12,RAX
MOV RDI,qword ptr [RBX + 0x18]
MOV RAX,qword ptr [RDI]
MOV ECX,0x0
MOV EDX,0x1f40
MOV RSI,R12
CALL qword ptr [RAX + 0x8]
MOV RDI,R12
CALL 0x00127101
MOV RDI,R13
CALL 0x00127101
JMP 0x00128d76
LEA RCX,[0x1ba9e0]
MOV EDX,0x2af
LEA RSI,[0x1cc64e]
LEA RDI,[0x1ba847]
CALL 0x00114a20
MOV RDI,R13
CALL 0x00127101
JMP 0x00128d76
MOV RDI,qword ptr [RBX + 0x18]
MOV RAX,qword ptr [RDI]
MOV ECX,0x0
MOV EDX,0x1f40
LEA RSI,[0x1ba340]
CALL qword ptr [RAX + 0x8]
MOV RDI,R13
CALL 0x00127101
JMP 0x00128d76
MOV RDI,R13
CALL 0x00127101
MOV dword ptr [RBX + 0x84],0x2
JMP 0x0012900e
LEA RCX,[0x1ba9e0]
MOV EDX,0x2e5
LEA RSI,[0x1cc64e]
LEA RDI,[0x1ba847]
CALL 0x00114a20
MOV RDI,R15
CALL 0x00127101
MOV EBP,0x1
JMP 0x00128d76
MOV ESI,0x2
MOV RDI,R14
CALL 0x0012722e
MOV RDI,RBX
CALL 0x00128b92
MOV RDI,R15
CALL 0x00127101
MOV EBP,0x1
JMP 0x00128d76
MOV EBP,0x0
JMP 0x00128d76
CALL 0x00115250
(translation_unit "undefined4 FUN_00128cfe(long param_1,int param_2)\n\n{\n  char cVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  char *pcVar6;\n  char *pcVar7;\n  char *pcVar8;\n  long lVar9;\n  long lVar10;\n  long lVar11;\n  long lVar12;\n  undefined8 uVar13;\n  ulong uVar14;\n  char *pcVar15;\n  int iVar16;\n  long in_FS_OFFSET;\n  byte bVar17;\n  undefined1 local_254 [4];\n  undefined1 local_250 [4];\n  int local_24c;\n  undefined1 local_248 [520];\n  long local_40;\n  \n  bVar17 = 0;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  iVar4 = *(int *)(param_1 + 0x84);\n  if (iVar4 == -1) {\n    FUN_0018b9e4(*(undefined8 *)(param_1 + 0x20),local_248,0x200);\n    pcVar6 = (char *)FUN_00126ed4("CONNECT %s:%i HTTP/1.1\r\nHost: %s:%i\r\n",local_248,\n                                  *(undefined4 *)(param_1 + 0x28),local_248,\n                                  *(undefined4 *)(param_1 + 0x28));\n    uVar14 = 0xffffffffffffffff;\n    pcVar7 = pcVar6;\n    do {\n      if (uVar14 == 0) break;\n      uVar14 = uVar14 - 1;\n      cVar1 = *pcVar7;\n      pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n    } while (cVar1 != '\0');\n    (**(code **)(**(long **)(param_1 + 0x10) + 0x10))(*(long **)(param_1 + 0x10),pcVar6,~uVar14 - 1)\n    ;\n    FUN_00127101(pcVar6);\n    pcVar7 = (char *)FUN_00119829(*(undefined8 *)(param_1 + 0xd0),0x10);\n    pcVar6 = (char *)FUN_00119829(*(undefined8 *)(param_1 + 0xd0),0x11);\n    if ((*pcVar7 != '\0') || (*pcVar6 != '\0')) {\n      pcVar6 = (char *)FUN_00126ed4("%s:%s",pcVar7,pcVar6);\n      lVar12 = -1;\n      pcVar7 = pcVar6;\n      do {\n        if (lVar12 == 0) break;\n        lVar12 = lVar12 + -1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar4 = ~(uint)lVar12 - 1;\n      pcVar8 = (char *)FUN_00126895((long)((iVar4 * 4) / 3 + 100),1);\n      builtin_strncpy(pcVar8,"Proxy-Authorization: Basic ",0x1c);\n      lVar12 = -1;\n      pcVar7 = pcVar8;\n      do {\n        if (lVar12 == 0) break;\n        lVar12 = lVar12 + -1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar5 = ~(uint)lVar12 - 1;\n      if (0 < iVar4) {\n        pcVar15 = pcVar8 + iVar5;\n        iVar16 = 0;\n        pcVar7 = pcVar6;\n        do {\n          iVar2 = iVar4 - iVar16;\n          if (3 < iVar4 - iVar16) {\n            iVar2 = 3;\n          }\n          FUN_001265e7(pcVar7,iVar2,pcVar15);\n          iVar16 = iVar16 + 3;\n          iVar5 = iVar5 + 4;\n          pcVar7 = pcVar7 + 3;\n          pcVar15 = pcVar15 + 4;\n        } while (iVar16 < iVar4);\n      }\n      pcVar7 = pcVar8 + iVar5;\n      pcVar7[0] = '\r';\n      pcVar7[1] = '\n';\n      pcVar7[2] = '\0';\n      uVar14 = 0xffffffffffffffff;\n      pcVar7 = pcVar8;\n      do {\n        if (uVar14 == 0) break;\n        uVar14 = uVar14 - 1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');\n      (**(code **)(**(long **)(param_1 + 0x10) + 0x10))\n                (*(long **)(param_1 + 0x10),pcVar8,~uVar14 - 1);\n      FUN_00127101(pcVar6);\n      FUN_00127101(pcVar8);\n    }\n    (**(code **)(**(long **)(param_1 + 0x10) + 0x10))(*(long **)(param_1 + 0x10),&DAT_001bc572,2);\n    *(undefined4 *)(param_1 + 0x84) = 1;\n    uVar3 = 0;\n    goto LAB_00128d76;\n  }\n  if (param_2 == 0) {\n    (**(code **)(**(long **)(param_1 + 0x18) + 8))\n              (*(long **)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x98),\n               *(undefined4 *)(param_1 + 0xa0),*(undefined4 *)(param_1 + 0xa4));\n    uVar3 = 0;\n    goto LAB_00128d76;\n  }\n  if (param_2 == 1) {\n    uVar3 = 0;\n    goto LAB_00128d76;\n  }\n  if (param_2 == 3) {\n    uVar3 = (**(code **)(**(long **)(param_1 + 0x18) + 0x20))\n                      (*(long **)(param_1 + 0x18),*(undefined8 *)(param_1 + 0xc0),\n                       *(undefined8 *)(param_1 + 200));\n    goto LAB_00128d76;\n  }\n  if (param_2 == 2) {\n    if (iVar4 == 1) {\n      lVar12 = param_1 + 0x68;\n      iVar4 = FUN_001267cf(lVar12);\n      if (iVar4 < 1) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("len > 0","proxy.c",0x2af,"proxy_http_negotiate");\n      }\n      lVar11 = FUN_00126895((long)(iVar4 + 1),1);\n      FUN_001267eb(lVar12,lVar11,iVar4);\n      *(undefined1 *)(lVar11 + iVar4) = 0;\n      iVar4 = FUN_00128918(lVar11,iVar4);\n      uVar3 = 1;\n      if (iVar4 < 0) {\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }\n      local_24c = -1;\n      iVar5 = __isoc99_sscanf(lVar11,"HTTP/%i.%i %n",local_250,local_254,&local_24c);\n      if ((iVar5 < 2) || (local_24c == -1)) {\n        (**(code **)(**(long **)(param_1 + 0x18) + 8))\n                  (*(long **)(param_1 + 0x18),"Proxy error: HTTP response was absent",8000,0);\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }\n      FUN_0012722e(lVar12,iVar4);\n      if (*(char *)(lVar11 + local_24c) != '2') {\n        *(undefined1 *)(lVar11 + iVar4) = 0;\n        if ((local_24c < iVar4) &&\n           ((cVar1 = *(char *)(lVar11 + -1 + (long)iVar4), cVar1 == '\r' || (cVar1 == '\n')))) {\n          lVar12 = (long)(iVar4 + -1);\n          do {\n            *(undefined1 *)(lVar11 + lVar12) = 0;\n            if ((int)lVar12 <= local_24c) break;\n            cVar1 = *(char *)(lVar11 + -1 + lVar12);\n            lVar12 = lVar12 + -1;\n          } while ((cVar1 == '\r') || (cVar1 == '\n'));\n        }\n        uVar13 = FUN_00126ed4("Proxy error: %s",lVar11 + local_24c);\n        (**(code **)(**(long **)(param_1 + 0x18) + 8))(*(long **)(param_1 + 0x18),uVar13,8000,0);\n        FUN_00127101(uVar13);\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }\n      FUN_00127101(lVar11);\n      *(undefined4 *)(param_1 + 0x84) = 2;\n    }\n    else if (iVar4 != 2) goto LAB_00128d56;\n    lVar12 = param_1 + 0x68;\n    iVar4 = FUN_001267cf(lVar12);\n    if (iVar4 < 1) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("len > 0","proxy.c",0x2e5,"proxy_http_negotiate");\n    }\n    lVar9 = FUN_00126895((long)iVar4,1);\n    FUN_001267eb(lVar12,lVar9,iVar4);\n    iVar5 = FUN_00128918(lVar9,iVar4);\n    lVar11 = lVar9;\n    if (iVar5 < 0) {\n      FUN_00127101(lVar9);\n      uVar3 = 1;\n    }\n    else {\n      while (2 < iVar5) {\n        FUN_0012722e(lVar12,iVar5);\n        lVar10 = (long)iVar5;\n        iVar4 = iVar4 - iVar5;\n        iVar5 = FUN_00128918(lVar11 + lVar10,iVar4);\n        lVar11 = lVar11 + lVar10;\n      }\n      if (iVar5 == 2) {\n        FUN_0012722e(lVar12,2);\n        FUN_00128b92(param_1);\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }\n      else {\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }\n    }\n  }\n  else {\nLAB_00128d56:\n    (**(code **)(**(long **)(param_1 + 0x18) + 8))\n              (*(long **)(param_1 + 0x18),"Proxy error: unexpected proxy error",0x1f41,0);\n    uVar3 = 1;\n  }\nLAB_00128d76:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" (function_definition "undefined4 FUN_00128cfe(long param_1,int param_2)\n\n{\n  char cVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  char *pcVar6;\n  char *pcVar7;\n  char *pcVar8;\n  long lVar9;\n  long lVar10;\n  long lVar11;\n  long lVar12;\n  undefined8 uVar13;\n  ulong uVar14;\n  char *pcVar15;\n  int iVar16;\n  long in_FS_OFFSET;\n  byte bVar17;\n  undefined1 local_254 [4];\n  undefined1 local_250 [4];\n  int local_24c;\n  undefined1 local_248 [520];\n  long local_40;\n  \n  bVar17 = 0;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  iVar4 = *(int *)(param_1 + 0x84);\n  if (iVar4 == -1) {\n    FUN_0018b9e4(*(undefined8 *)(param_1 + 0x20),local_248,0x200);\n    pcVar6 = (char *)FUN_00126ed4("CONNECT %s:%i HTTP/1.1\r\nHost: %s:%i\r\n",local_248,\n                                  *(undefined4 *)(param_1 + 0x28),local_248,\n                                  *(undefined4 *)(param_1 + 0x28));\n    uVar14 = 0xffffffffffffffff;\n    pcVar7 = pcVar6;\n    do {\n      if (uVar14 == 0) break;\n      uVar14 = uVar14 - 1;\n      cVar1 = *pcVar7;\n      pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n    } while (cVar1 != '\0');\n    (**(code **)(**(long **)(param_1 + 0x10) + 0x10))(*(long **)(param_1 + 0x10),pcVar6,~uVar14 - 1)\n    ;\n    FUN_00127101(pcVar6);\n    pcVar7 = (char *)FUN_00119829(*(undefined8 *)(param_1 + 0xd0),0x10);\n    pcVar6 = (char *)FUN_00119829(*(undefined8 *)(param_1 + 0xd0),0x11);\n    if ((*pcVar7 != '\0') || (*pcVar6 != '\0')) {\n      pcVar6 = (char *)FUN_00126ed4("%s:%s",pcVar7,pcVar6);\n      lVar12 = -1;\n      pcVar7 = pcVar6;\n      do {\n        if (lVar12 == 0) break;\n        lVar12 = lVar12 + -1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar4 = ~(uint)lVar12 - 1;\n      pcVar8 = (char *)FUN_00126895((long)((iVar4 * 4) / 3 + 100),1);\n      builtin_strncpy(pcVar8,"Proxy-Authorization: Basic ",0x1c);\n      lVar12 = -1;\n      pcVar7 = pcVar8;\n      do {\n        if (lVar12 == 0) break;\n        lVar12 = lVar12 + -1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar5 = ~(uint)lVar12 - 1;\n      if (0 < iVar4) {\n        pcVar15 = pcVar8 + iVar5;\n        iVar16 = 0;\n        pcVar7 = pcVar6;\n        do {\n          iVar2 = iVar4 - iVar16;\n          if (3 < iVar4 - iVar16) {\n            iVar2 = 3;\n          }\n          FUN_001265e7(pcVar7,iVar2,pcVar15);\n          iVar16 = iVar16 + 3;\n          iVar5 = iVar5 + 4;\n          pcVar7 = pcVar7 + 3;\n          pcVar15 = pcVar15 + 4;\n        } while (iVar16 < iVar4);\n      }\n      pcVar7 = pcVar8 + iVar5;\n      pcVar7[0] = '\r';\n      pcVar7[1] = '\n';\n      pcVar7[2] = '\0';\n      uVar14 = 0xffffffffffffffff;\n      pcVar7 = pcVar8;\n      do {\n        if (uVar14 == 0) break;\n        uVar14 = uVar14 - 1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');\n      (**(code **)(**(long **)(param_1 + 0x10) + 0x10))\n                (*(long **)(param_1 + 0x10),pcVar8,~uVar14 - 1);\n      FUN_00127101(pcVar6);\n      FUN_00127101(pcVar8);\n    }\n    (**(code **)(**(long **)(param_1 + 0x10) + 0x10))(*(long **)(param_1 + 0x10),&DAT_001bc572,2);\n    *(undefined4 *)(param_1 + 0x84) = 1;\n    uVar3 = 0;\n    goto LAB_00128d76;\n  }\n  if (param_2 == 0) {\n    (**(code **)(**(long **)(param_1 + 0x18) + 8))\n              (*(long **)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x98),\n               *(undefined4 *)(param_1 + 0xa0),*(undefined4 *)(param_1 + 0xa4));\n    uVar3 = 0;\n    goto LAB_00128d76;\n  }\n  if (param_2 == 1) {\n    uVar3 = 0;\n    goto LAB_00128d76;\n  }\n  if (param_2 == 3) {\n    uVar3 = (**(code **)(**(long **)(param_1 + 0x18) + 0x20))\n                      (*(long **)(param_1 + 0x18),*(undefined8 *)(param_1 + 0xc0),\n                       *(undefined8 *)(param_1 + 200));\n    goto LAB_00128d76;\n  }\n  if (param_2 == 2) {\n    if (iVar4 == 1) {\n      lVar12 = param_1 + 0x68;\n      iVar4 = FUN_001267cf(lVar12);\n      if (iVar4 < 1) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("len > 0","proxy.c",0x2af,"proxy_http_negotiate");\n      }\n      lVar11 = FUN_00126895((long)(iVar4 + 1),1);\n      FUN_001267eb(lVar12,lVar11,iVar4);\n      *(undefined1 *)(lVar11 + iVar4) = 0;\n      iVar4 = FUN_00128918(lVar11,iVar4);\n      uVar3 = 1;\n      if (iVar4 < 0) {\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }\n      local_24c = -1;\n      iVar5 = __isoc99_sscanf(lVar11,"HTTP/%i.%i %n",local_250,local_254,&local_24c);\n      if ((iVar5 < 2) || (local_24c == -1)) {\n        (**(code **)(**(long **)(param_1 + 0x18) + 8))\n                  (*(long **)(param_1 + 0x18),"Proxy error: HTTP response was absent",8000,0);\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }\n      FUN_0012722e(lVar12,iVar4);\n      if (*(char *)(lVar11 + local_24c) != '2') {\n        *(undefined1 *)(lVar11 + iVar4) = 0;\n        if ((local_24c < iVar4) &&\n           ((cVar1 = *(char *)(lVar11 + -1 + (long)iVar4), cVar1 == '\r' || (cVar1 == '\n')))) {\n          lVar12 = (long)(iVar4 + -1);\n          do {\n            *(undefined1 *)(lVar11 + lVar12) = 0;\n            if ((int)lVar12 <= local_24c) break;\n            cVar1 = *(char *)(lVar11 + -1 + lVar12);\n            lVar12 = lVar12 + -1;\n          } while ((cVar1 == '\r') || (cVar1 == '\n'));\n        }\n        uVar13 = FUN_00126ed4("Proxy error: %s",lVar11 + local_24c);\n        (**(code **)(**(long **)(param_1 + 0x18) + 8))(*(long **)(param_1 + 0x18),uVar13,8000,0);\n        FUN_00127101(uVar13);\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }\n      FUN_00127101(lVar11);\n      *(undefined4 *)(param_1 + 0x84) = 2;\n    }\n    else if (iVar4 != 2) goto LAB_00128d56;\n    lVar12 = param_1 + 0x68;\n    iVar4 = FUN_001267cf(lVar12);\n    if (iVar4 < 1) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("len > 0","proxy.c",0x2e5,"proxy_http_negotiate");\n    }\n    lVar9 = FUN_00126895((long)iVar4,1);\n    FUN_001267eb(lVar12,lVar9,iVar4);\n    iVar5 = FUN_00128918(lVar9,iVar4);\n    lVar11 = lVar9;\n    if (iVar5 < 0) {\n      FUN_00127101(lVar9);\n      uVar3 = 1;\n    }\n    else {\n      while (2 < iVar5) {\n        FUN_0012722e(lVar12,iVar5);\n        lVar10 = (long)iVar5;\n        iVar4 = iVar4 - iVar5;\n        iVar5 = FUN_00128918(lVar11 + lVar10,iVar4);\n        lVar11 = lVar11 + lVar10;\n      }\n      if (iVar5 == 2) {\n        FUN_0012722e(lVar12,2);\n        FUN_00128b92(param_1);\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }\n      else {\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }\n    }\n  }\n  else {\nLAB_00128d56:\n    (**(code **)(**(long **)(param_1 + 0x18) + 8))\n              (*(long **)(param_1 + 0x18),"Proxy error: unexpected proxy error",0x1f41,0);\n    uVar3 = 1;\n  }\nLAB_00128d76:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" type_identifier (function_declarator "FUN_00128cfe(long param_1,int param_2)" identifier (parameter_list "(long param_1,int param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  char *pcVar6;\n  char *pcVar7;\n  char *pcVar8;\n  long lVar9;\n  long lVar10;\n  long lVar11;\n  long lVar12;\n  undefined8 uVar13;\n  ulong uVar14;\n  char *pcVar15;\n  int iVar16;\n  long in_FS_OFFSET;\n  byte bVar17;\n  undefined1 local_254 [4];\n  undefined1 local_250 [4];\n  int local_24c;\n  undefined1 local_248 [520];\n  long local_40;\n  \n  bVar17 = 0;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  iVar4 = *(int *)(param_1 + 0x84);\n  if (iVar4 == -1) {\n    FUN_0018b9e4(*(undefined8 *)(param_1 + 0x20),local_248,0x200);\n    pcVar6 = (char *)FUN_00126ed4("CONNECT %s:%i HTTP/1.1\r\nHost: %s:%i\r\n",local_248,\n                                  *(undefined4 *)(param_1 + 0x28),local_248,\n                                  *(undefined4 *)(param_1 + 0x28));\n    uVar14 = 0xffffffffffffffff;\n    pcVar7 = pcVar6;\n    do {\n      if (uVar14 == 0) break;\n      uVar14 = uVar14 - 1;\n      cVar1 = *pcVar7;\n      pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n    } while (cVar1 != '\0');\n    (**(code **)(**(long **)(param_1 + 0x10) + 0x10))(*(long **)(param_1 + 0x10),pcVar6,~uVar14 - 1)\n    ;\n    FUN_00127101(pcVar6);\n    pcVar7 = (char *)FUN_00119829(*(undefined8 *)(param_1 + 0xd0),0x10);\n    pcVar6 = (char *)FUN_00119829(*(undefined8 *)(param_1 + 0xd0),0x11);\n    if ((*pcVar7 != '\0') || (*pcVar6 != '\0')) {\n      pcVar6 = (char *)FUN_00126ed4("%s:%s",pcVar7,pcVar6);\n      lVar12 = -1;\n      pcVar7 = pcVar6;\n      do {\n        if (lVar12 == 0) break;\n        lVar12 = lVar12 + -1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar4 = ~(uint)lVar12 - 1;\n      pcVar8 = (char *)FUN_00126895((long)((iVar4 * 4) / 3 + 100),1);\n      builtin_strncpy(pcVar8,"Proxy-Authorization: Basic ",0x1c);\n      lVar12 = -1;\n      pcVar7 = pcVar8;\n      do {\n        if (lVar12 == 0) break;\n        lVar12 = lVar12 + -1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar5 = ~(uint)lVar12 - 1;\n      if (0 < iVar4) {\n        pcVar15 = pcVar8 + iVar5;\n        iVar16 = 0;\n        pcVar7 = pcVar6;\n        do {\n          iVar2 = iVar4 - iVar16;\n          if (3 < iVar4 - iVar16) {\n            iVar2 = 3;\n          }\n          FUN_001265e7(pcVar7,iVar2,pcVar15);\n          iVar16 = iVar16 + 3;\n          iVar5 = iVar5 + 4;\n          pcVar7 = pcVar7 + 3;\n          pcVar15 = pcVar15 + 4;\n        } while (iVar16 < iVar4);\n      }\n      pcVar7 = pcVar8 + iVar5;\n      pcVar7[0] = '\r';\n      pcVar7[1] = '\n';\n      pcVar7[2] = '\0';\n      uVar14 = 0xffffffffffffffff;\n      pcVar7 = pcVar8;\n      do {\n        if (uVar14 == 0) break;\n        uVar14 = uVar14 - 1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');\n      (**(code **)(**(long **)(param_1 + 0x10) + 0x10))\n                (*(long **)(param_1 + 0x10),pcVar8,~uVar14 - 1);\n      FUN_00127101(pcVar6);\n      FUN_00127101(pcVar8);\n    }\n    (**(code **)(**(long **)(param_1 + 0x10) + 0x10))(*(long **)(param_1 + 0x10),&DAT_001bc572,2);\n    *(undefined4 *)(param_1 + 0x84) = 1;\n    uVar3 = 0;\n    goto LAB_00128d76;\n  }\n  if (param_2 == 0) {\n    (**(code **)(**(long **)(param_1 + 0x18) + 8))\n              (*(long **)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x98),\n               *(undefined4 *)(param_1 + 0xa0),*(undefined4 *)(param_1 + 0xa4));\n    uVar3 = 0;\n    goto LAB_00128d76;\n  }\n  if (param_2 == 1) {\n    uVar3 = 0;\n    goto LAB_00128d76;\n  }\n  if (param_2 == 3) {\n    uVar3 = (**(code **)(**(long **)(param_1 + 0x18) + 0x20))\n                      (*(long **)(param_1 + 0x18),*(undefined8 *)(param_1 + 0xc0),\n                       *(undefined8 *)(param_1 + 200));\n    goto LAB_00128d76;\n  }\n  if (param_2 == 2) {\n    if (iVar4 == 1) {\n      lVar12 = param_1 + 0x68;\n      iVar4 = FUN_001267cf(lVar12);\n      if (iVar4 < 1) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("len > 0","proxy.c",0x2af,"proxy_http_negotiate");\n      }\n      lVar11 = FUN_00126895((long)(iVar4 + 1),1);\n      FUN_001267eb(lVar12,lVar11,iVar4);\n      *(undefined1 *)(lVar11 + iVar4) = 0;\n      iVar4 = FUN_00128918(lVar11,iVar4);\n      uVar3 = 1;\n      if (iVar4 < 0) {\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }\n      local_24c = -1;\n      iVar5 = __isoc99_sscanf(lVar11,"HTTP/%i.%i %n",local_250,local_254,&local_24c);\n      if ((iVar5 < 2) || (local_24c == -1)) {\n        (**(code **)(**(long **)(param_1 + 0x18) + 8))\n                  (*(long **)(param_1 + 0x18),"Proxy error: HTTP response was absent",8000,0);\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }\n      FUN_0012722e(lVar12,iVar4);\n      if (*(char *)(lVar11 + local_24c) != '2') {\n        *(undefined1 *)(lVar11 + iVar4) = 0;\n        if ((local_24c < iVar4) &&\n           ((cVar1 = *(char *)(lVar11 + -1 + (long)iVar4), cVar1 == '\r' || (cVar1 == '\n')))) {\n          lVar12 = (long)(iVar4 + -1);\n          do {\n            *(undefined1 *)(lVar11 + lVar12) = 0;\n            if ((int)lVar12 <= local_24c) break;\n            cVar1 = *(char *)(lVar11 + -1 + lVar12);\n            lVar12 = lVar12 + -1;\n          } while ((cVar1 == '\r') || (cVar1 == '\n'));\n        }\n        uVar13 = FUN_00126ed4("Proxy error: %s",lVar11 + local_24c);\n        (**(code **)(**(long **)(param_1 + 0x18) + 8))(*(long **)(param_1 + 0x18),uVar13,8000,0);\n        FUN_00127101(uVar13);\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }\n      FUN_00127101(lVar11);\n      *(undefined4 *)(param_1 + 0x84) = 2;\n    }\n    else if (iVar4 != 2) goto LAB_00128d56;\n    lVar12 = param_1 + 0x68;\n    iVar4 = FUN_001267cf(lVar12);\n    if (iVar4 < 1) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("len > 0","proxy.c",0x2e5,"proxy_http_negotiate");\n    }\n    lVar9 = FUN_00126895((long)iVar4,1);\n    FUN_001267eb(lVar12,lVar9,iVar4);\n    iVar5 = FUN_00128918(lVar9,iVar4);\n    lVar11 = lVar9;\n    if (iVar5 < 0) {\n      FUN_00127101(lVar9);\n      uVar3 = 1;\n    }\n    else {\n      while (2 < iVar5) {\n        FUN_0012722e(lVar12,iVar5);\n        lVar10 = (long)iVar5;\n        iVar4 = iVar4 - iVar5;\n        iVar5 = FUN_00128918(lVar11 + lVar10,iVar4);\n        lVar11 = lVar11 + lVar10;\n      }\n      if (iVar5 == 2) {\n        FUN_0012722e(lVar12,2);\n        FUN_00128b92(param_1);\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }\n      else {\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }\n    }\n  }\n  else {\nLAB_00128d56:\n    (**(code **)(**(long **)(param_1 + 0x18) + 8))\n              (*(long **)(param_1 + 0x18),"Proxy error: unexpected proxy error",0x1f41,0);\n    uVar3 = 1;\n  }\nLAB_00128d76:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "long lVar9;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar10;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar11;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar12;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 uVar13;" type_identifier identifier ;) (declaration "ulong uVar14;" type_identifier identifier ;) (declaration "char *pcVar15;" primitive_type (pointer_declarator "*pcVar15" * identifier) ;) (declaration "int iVar16;" primitive_type identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "byte bVar17;" type_identifier identifier ;) (declaration "undefined1 local_254 [4];" type_identifier (array_declarator "local_254 [4]" identifier [ number_literal ]) ;) (declaration "undefined1 local_250 [4];" type_identifier (array_declarator "local_250 [4]" identifier [ number_literal ]) ;) (declaration "int local_24c;" primitive_type identifier ;) (declaration "undefined1 local_248 [520];" type_identifier (array_declarator "local_248 [520]" identifier [ number_literal ]) ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (expression_statement "bVar17 = 0;" (assignment_expression "bVar17 = 0" identifier = number_literal) ;) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = *(int *)(param_1 + 0x84);" (assignment_expression "iVar4 = *(int *)(param_1 + 0x84)" identifier = (pointer_expression "*(int *)(param_1 + 0x84)" * (cast_expression "(int *)(param_1 + 0x84)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x84)" ( (binary_expression "param_1 + 0x84" identifier + number_literal) ))))) ;) (if_statement "if (iVar4 == -1) {\n    FUN_0018b9e4(*(undefined8 *)(param_1 + 0x20),local_248,0x200);\n    pcVar6 = (char *)FUN_00126ed4("CONNECT %s:%i HTTP/1.1\r\nHost: %s:%i\r\n",local_248,\n                                  *(undefined4 *)(param_1 + 0x28),local_248,\n                                  *(undefined4 *)(param_1 + 0x28));\n    uVar14 = 0xffffffffffffffff;\n    pcVar7 = pcVar6;\n    do {\n      if (uVar14 == 0) break;\n      uVar14 = uVar14 - 1;\n      cVar1 = *pcVar7;\n      pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n    } while (cVar1 != '\0');\n    (**(code **)(**(long **)(param_1 + 0x10) + 0x10))(*(long **)(param_1 + 0x10),pcVar6,~uVar14 - 1)\n    ;\n    FUN_00127101(pcVar6);\n    pcVar7 = (char *)FUN_00119829(*(undefined8 *)(param_1 + 0xd0),0x10);\n    pcVar6 = (char *)FUN_00119829(*(undefined8 *)(param_1 + 0xd0),0x11);\n    if ((*pcVar7 != '\0') || (*pcVar6 != '\0')) {\n      pcVar6 = (char *)FUN_00126ed4("%s:%s",pcVar7,pcVar6);\n      lVar12 = -1;\n      pcVar7 = pcVar6;\n      do {\n        if (lVar12 == 0) break;\n        lVar12 = lVar12 + -1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar4 = ~(uint)lVar12 - 1;\n      pcVar8 = (char *)FUN_00126895((long)((iVar4 * 4) / 3 + 100),1);\n      builtin_strncpy(pcVar8,"Proxy-Authorization: Basic ",0x1c);\n      lVar12 = -1;\n      pcVar7 = pcVar8;\n      do {\n        if (lVar12 == 0) break;\n        lVar12 = lVar12 + -1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar5 = ~(uint)lVar12 - 1;\n      if (0 < iVar4) {\n        pcVar15 = pcVar8 + iVar5;\n        iVar16 = 0;\n        pcVar7 = pcVar6;\n        do {\n          iVar2 = iVar4 - iVar16;\n          if (3 < iVar4 - iVar16) {\n            iVar2 = 3;\n          }\n          FUN_001265e7(pcVar7,iVar2,pcVar15);\n          iVar16 = iVar16 + 3;\n          iVar5 = iVar5 + 4;\n          pcVar7 = pcVar7 + 3;\n          pcVar15 = pcVar15 + 4;\n        } while (iVar16 < iVar4);\n      }\n      pcVar7 = pcVar8 + iVar5;\n      pcVar7[0] = '\r';\n      pcVar7[1] = '\n';\n      pcVar7[2] = '\0';\n      uVar14 = 0xffffffffffffffff;\n      pcVar7 = pcVar8;\n      do {\n        if (uVar14 == 0) break;\n        uVar14 = uVar14 - 1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');\n      (**(code **)(**(long **)(param_1 + 0x10) + 0x10))\n                (*(long **)(param_1 + 0x10),pcVar8,~uVar14 - 1);\n      FUN_00127101(pcVar6);\n      FUN_00127101(pcVar8);\n    }\n    (**(code **)(**(long **)(param_1 + 0x10) + 0x10))(*(long **)(param_1 + 0x10),&DAT_001bc572,2);\n    *(undefined4 *)(param_1 + 0x84) = 1;\n    uVar3 = 0;\n    goto LAB_00128d76;\n  }" if (parenthesized_expression "(iVar4 == -1)" ( (binary_expression "iVar4 == -1" identifier == number_literal) )) (compound_statement "{\n    FUN_0018b9e4(*(undefined8 *)(param_1 + 0x20),local_248,0x200);\n    pcVar6 = (char *)FUN_00126ed4("CONNECT %s:%i HTTP/1.1\r\nHost: %s:%i\r\n",local_248,\n                                  *(undefined4 *)(param_1 + 0x28),local_248,\n                                  *(undefined4 *)(param_1 + 0x28));\n    uVar14 = 0xffffffffffffffff;\n    pcVar7 = pcVar6;\n    do {\n      if (uVar14 == 0) break;\n      uVar14 = uVar14 - 1;\n      cVar1 = *pcVar7;\n      pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n    } while (cVar1 != '\0');\n    (**(code **)(**(long **)(param_1 + 0x10) + 0x10))(*(long **)(param_1 + 0x10),pcVar6,~uVar14 - 1)\n    ;\n    FUN_00127101(pcVar6);\n    pcVar7 = (char *)FUN_00119829(*(undefined8 *)(param_1 + 0xd0),0x10);\n    pcVar6 = (char *)FUN_00119829(*(undefined8 *)(param_1 + 0xd0),0x11);\n    if ((*pcVar7 != '\0') || (*pcVar6 != '\0')) {\n      pcVar6 = (char *)FUN_00126ed4("%s:%s",pcVar7,pcVar6);\n      lVar12 = -1;\n      pcVar7 = pcVar6;\n      do {\n        if (lVar12 == 0) break;\n        lVar12 = lVar12 + -1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar4 = ~(uint)lVar12 - 1;\n      pcVar8 = (char *)FUN_00126895((long)((iVar4 * 4) / 3 + 100),1);\n      builtin_strncpy(pcVar8,"Proxy-Authorization: Basic ",0x1c);\n      lVar12 = -1;\n      pcVar7 = pcVar8;\n      do {\n        if (lVar12 == 0) break;\n        lVar12 = lVar12 + -1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar5 = ~(uint)lVar12 - 1;\n      if (0 < iVar4) {\n        pcVar15 = pcVar8 + iVar5;\n        iVar16 = 0;\n        pcVar7 = pcVar6;\n        do {\n          iVar2 = iVar4 - iVar16;\n          if (3 < iVar4 - iVar16) {\n            iVar2 = 3;\n          }\n          FUN_001265e7(pcVar7,iVar2,pcVar15);\n          iVar16 = iVar16 + 3;\n          iVar5 = iVar5 + 4;\n          pcVar7 = pcVar7 + 3;\n          pcVar15 = pcVar15 + 4;\n        } while (iVar16 < iVar4);\n      }\n      pcVar7 = pcVar8 + iVar5;\n      pcVar7[0] = '\r';\n      pcVar7[1] = '\n';\n      pcVar7[2] = '\0';\n      uVar14 = 0xffffffffffffffff;\n      pcVar7 = pcVar8;\n      do {\n        if (uVar14 == 0) break;\n        uVar14 = uVar14 - 1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');\n      (**(code **)(**(long **)(param_1 + 0x10) + 0x10))\n                (*(long **)(param_1 + 0x10),pcVar8,~uVar14 - 1);\n      FUN_00127101(pcVar6);\n      FUN_00127101(pcVar8);\n    }\n    (**(code **)(**(long **)(param_1 + 0x10) + 0x10))(*(long **)(param_1 + 0x10),&DAT_001bc572,2);\n    *(undefined4 *)(param_1 + 0x84) = 1;\n    uVar3 = 0;\n    goto LAB_00128d76;\n  }" { (expression_statement "FUN_0018b9e4(*(undefined8 *)(param_1 + 0x20),local_248,0x200);" (call_expression "FUN_0018b9e4(*(undefined8 *)(param_1 + 0x20),local_248,0x200)" identifier (argument_list "(*(undefined8 *)(param_1 + 0x20),local_248,0x200)" ( (pointer_expression "*(undefined8 *)(param_1 + 0x20)" * (cast_expression "(undefined8 *)(param_1 + 0x20)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) , identifier , number_literal ))) ;) (expression_statement "pcVar6 = (char *)FUN_00126ed4("CONNECT %s:%i HTTP/1.1\r\nHost: %s:%i\r\n",local_248,\n                                  *(undefined4 *)(param_1 + 0x28),local_248,\n                                  *(undefined4 *)(param_1 + 0x28));" (assignment_expression "pcVar6 = (char *)FUN_00126ed4("CONNECT %s:%i HTTP/1.1\r\nHost: %s:%i\r\n",local_248,\n                                  *(undefined4 *)(param_1 + 0x28),local_248,\n                                  *(undefined4 *)(param_1 + 0x28))" identifier = (cast_expression "(char *)FUN_00126ed4("CONNECT %s:%i HTTP/1.1\r\nHost: %s:%i\r\n",local_248,\n                                  *(undefined4 *)(param_1 + 0x28),local_248,\n                                  *(undefined4 *)(param_1 + 0x28))" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00126ed4("CONNECT %s:%i HTTP/1.1\r\nHost: %s:%i\r\n",local_248,\n                                  *(undefined4 *)(param_1 + 0x28),local_248,\n                                  *(undefined4 *)(param_1 + 0x28))" identifier (argument_list "("CONNECT %s:%i HTTP/1.1\r\nHost: %s:%i\r\n",local_248,\n                                  *(undefined4 *)(param_1 + 0x28),local_248,\n                                  *(undefined4 *)(param_1 + 0x28))" ( (string_literal ""CONNECT %s:%i HTTP/1.1\r\nHost: %s:%i\r\n"" " string_content escape_sequence escape_sequence string_content escape_sequence escape_sequence ") , identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x28)" * (cast_expression "(undefined4 *)(param_1 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) , identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x28)" * (cast_expression "(undefined4 *)(param_1 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) ))))) ;) (expression_statement "uVar14 = 0xffffffffffffffff;" (assignment_expression "uVar14 = 0xffffffffffffffff" identifier = number_literal) ;) (expression_statement "pcVar7 = pcVar6;" (assignment_expression "pcVar7 = pcVar6" identifier = identifier) ;) (do_statement "do {\n      if (uVar14 == 0) break;\n      uVar14 = uVar14 - 1;\n      cVar1 = *pcVar7;\n      pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n    } while (cVar1 != '\0');" do (compound_statement "{\n      if (uVar14 == 0) break;\n      uVar14 = uVar14 - 1;\n      cVar1 = *pcVar7;\n      pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n    }" { (if_statement "if (uVar14 == 0) break;" if (parenthesized_expression "(uVar14 == 0)" ( (binary_expression "uVar14 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar14 = uVar14 - 1;" (assignment_expression "uVar14 = uVar14 - 1" identifier = (binary_expression "uVar14 - 1" identifier - number_literal)) ;) (expression_statement "cVar1 = *pcVar7;" (assignment_expression "cVar1 = *pcVar7" identifier = (pointer_expression "*pcVar7" * identifier)) ;) (expression_statement "pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;" (assignment_expression "pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1" identifier = (binary_expression "pcVar7 + (ulong)bVar17 * -2 + 1" (binary_expression "pcVar7 + (ulong)bVar17 * -2" identifier + (binary_expression "(ulong)bVar17 * -2" (cast_expression "(ulong)bVar17" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "(**(code **)(**(long **)(param_1 + 0x10) + 0x10))(*(long **)(param_1 + 0x10),pcVar6,~uVar14 - 1)\n    ;" (call_expression "(**(code **)(**(long **)(param_1 + 0x10) + 0x10))(*(long **)(param_1 + 0x10),pcVar6,~uVar14 - 1)" (parenthesized_expression "(**(code **)(**(long **)(param_1 + 0x10) + 0x10))" ( (pointer_expression "**(code **)(**(long **)(param_1 + 0x10) + 0x10)" * (pointer_expression "*(code **)(**(long **)(param_1 + 0x10) + 0x10)" * (cast_expression "(code **)(**(long **)(param_1 + 0x10) + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(long **)(param_1 + 0x10) + 0x10)" ( (binary_expression "**(long **)(param_1 + 0x10) + 0x10" (pointer_expression "**(long **)(param_1 + 0x10)" * (pointer_expression "*(long **)(param_1 + 0x10)" * (cast_expression "(long **)(param_1 + 0x10)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(long **)(param_1 + 0x10),pcVar6,~uVar14 - 1)" ( (pointer_expression "*(long **)(param_1 + 0x10)" * (cast_expression "(long **)(param_1 + 0x10)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) , identifier , (binary_expression "~uVar14 - 1" (unary_expression "~uVar14" ~ identifier) - number_literal) ))) ;) (expression_statement "FUN_00127101(pcVar6);" (call_expression "FUN_00127101(pcVar6)" identifier (argument_list "(pcVar6)" ( identifier ))) ;) (expression_statement "pcVar7 = (char *)FUN_00119829(*(undefined8 *)(param_1 + 0xd0),0x10);" (assignment_expression "pcVar7 = (char *)FUN_00119829(*(undefined8 *)(param_1 + 0xd0),0x10)" identifier = (cast_expression "(char *)FUN_00119829(*(undefined8 *)(param_1 + 0xd0),0x10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00119829(*(undefined8 *)(param_1 + 0xd0),0x10)" identifier (argument_list "(*(undefined8 *)(param_1 + 0xd0),0x10)" ( (pointer_expression "*(undefined8 *)(param_1 + 0xd0)" * (cast_expression "(undefined8 *)(param_1 + 0xd0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xd0)" ( (binary_expression "param_1 + 0xd0" identifier + number_literal) )))) , number_literal ))))) ;) (expression_statement "pcVar6 = (char *)FUN_00119829(*(undefined8 *)(param_1 + 0xd0),0x11);" (assignment_expression "pcVar6 = (char *)FUN_00119829(*(undefined8 *)(param_1 + 0xd0),0x11)" identifier = (cast_expression "(char *)FUN_00119829(*(undefined8 *)(param_1 + 0xd0),0x11)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00119829(*(undefined8 *)(param_1 + 0xd0),0x11)" identifier (argument_list "(*(undefined8 *)(param_1 + 0xd0),0x11)" ( (pointer_expression "*(undefined8 *)(param_1 + 0xd0)" * (cast_expression "(undefined8 *)(param_1 + 0xd0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xd0)" ( (binary_expression "param_1 + 0xd0" identifier + number_literal) )))) , number_literal ))))) ;) (if_statement "if ((*pcVar7 != '\0') || (*pcVar6 != '\0')) {\n      pcVar6 = (char *)FUN_00126ed4("%s:%s",pcVar7,pcVar6);\n      lVar12 = -1;\n      pcVar7 = pcVar6;\n      do {\n        if (lVar12 == 0) break;\n        lVar12 = lVar12 + -1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar4 = ~(uint)lVar12 - 1;\n      pcVar8 = (char *)FUN_00126895((long)((iVar4 * 4) / 3 + 100),1);\n      builtin_strncpy(pcVar8,"Proxy-Authorization: Basic ",0x1c);\n      lVar12 = -1;\n      pcVar7 = pcVar8;\n      do {\n        if (lVar12 == 0) break;\n        lVar12 = lVar12 + -1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar5 = ~(uint)lVar12 - 1;\n      if (0 < iVar4) {\n        pcVar15 = pcVar8 + iVar5;\n        iVar16 = 0;\n        pcVar7 = pcVar6;\n        do {\n          iVar2 = iVar4 - iVar16;\n          if (3 < iVar4 - iVar16) {\n            iVar2 = 3;\n          }\n          FUN_001265e7(pcVar7,iVar2,pcVar15);\n          iVar16 = iVar16 + 3;\n          iVar5 = iVar5 + 4;\n          pcVar7 = pcVar7 + 3;\n          pcVar15 = pcVar15 + 4;\n        } while (iVar16 < iVar4);\n      }\n      pcVar7 = pcVar8 + iVar5;\n      pcVar7[0] = '\r';\n      pcVar7[1] = '\n';\n      pcVar7[2] = '\0';\n      uVar14 = 0xffffffffffffffff;\n      pcVar7 = pcVar8;\n      do {\n        if (uVar14 == 0) break;\n        uVar14 = uVar14 - 1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');\n      (**(code **)(**(long **)(param_1 + 0x10) + 0x10))\n                (*(long **)(param_1 + 0x10),pcVar8,~uVar14 - 1);\n      FUN_00127101(pcVar6);\n      FUN_00127101(pcVar8);\n    }" if (parenthesized_expression "((*pcVar7 != '\0') || (*pcVar6 != '\0'))" ( (binary_expression "(*pcVar7 != '\0') || (*pcVar6 != '\0')" (parenthesized_expression "(*pcVar7 != '\0')" ( (binary_expression "*pcVar7 != '\0'" (pointer_expression "*pcVar7" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(*pcVar6 != '\0')" ( (binary_expression "*pcVar6 != '\0'" (pointer_expression "*pcVar6" * identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n      pcVar6 = (char *)FUN_00126ed4("%s:%s",pcVar7,pcVar6);\n      lVar12 = -1;\n      pcVar7 = pcVar6;\n      do {\n        if (lVar12 == 0) break;\n        lVar12 = lVar12 + -1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar4 = ~(uint)lVar12 - 1;\n      pcVar8 = (char *)FUN_00126895((long)((iVar4 * 4) / 3 + 100),1);\n      builtin_strncpy(pcVar8,"Proxy-Authorization: Basic ",0x1c);\n      lVar12 = -1;\n      pcVar7 = pcVar8;\n      do {\n        if (lVar12 == 0) break;\n        lVar12 = lVar12 + -1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar5 = ~(uint)lVar12 - 1;\n      if (0 < iVar4) {\n        pcVar15 = pcVar8 + iVar5;\n        iVar16 = 0;\n        pcVar7 = pcVar6;\n        do {\n          iVar2 = iVar4 - iVar16;\n          if (3 < iVar4 - iVar16) {\n            iVar2 = 3;\n          }\n          FUN_001265e7(pcVar7,iVar2,pcVar15);\n          iVar16 = iVar16 + 3;\n          iVar5 = iVar5 + 4;\n          pcVar7 = pcVar7 + 3;\n          pcVar15 = pcVar15 + 4;\n        } while (iVar16 < iVar4);\n      }\n      pcVar7 = pcVar8 + iVar5;\n      pcVar7[0] = '\r';\n      pcVar7[1] = '\n';\n      pcVar7[2] = '\0';\n      uVar14 = 0xffffffffffffffff;\n      pcVar7 = pcVar8;\n      do {\n        if (uVar14 == 0) break;\n        uVar14 = uVar14 - 1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');\n      (**(code **)(**(long **)(param_1 + 0x10) + 0x10))\n                (*(long **)(param_1 + 0x10),pcVar8,~uVar14 - 1);\n      FUN_00127101(pcVar6);\n      FUN_00127101(pcVar8);\n    }" { (expression_statement "pcVar6 = (char *)FUN_00126ed4("%s:%s",pcVar7,pcVar6);" (assignment_expression "pcVar6 = (char *)FUN_00126ed4("%s:%s",pcVar7,pcVar6)" identifier = (cast_expression "(char *)FUN_00126ed4("%s:%s",pcVar7,pcVar6)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00126ed4("%s:%s",pcVar7,pcVar6)" identifier (argument_list "("%s:%s",pcVar7,pcVar6)" ( (string_literal ""%s:%s"" " string_content ") , identifier , identifier ))))) ;) (expression_statement "lVar12 = -1;" (assignment_expression "lVar12 = -1" identifier = number_literal) ;) (expression_statement "pcVar7 = pcVar6;" (assignment_expression "pcVar7 = pcVar6" identifier = identifier) ;) (do_statement "do {\n        if (lVar12 == 0) break;\n        lVar12 = lVar12 + -1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');" do (compound_statement "{\n        if (lVar12 == 0) break;\n        lVar12 = lVar12 + -1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      }" { (if_statement "if (lVar12 == 0) break;" if (parenthesized_expression "(lVar12 == 0)" ( (binary_expression "lVar12 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar12 = lVar12 + -1;" (assignment_expression "lVar12 = lVar12 + -1" identifier = (binary_expression "lVar12 + -1" identifier + number_literal)) ;) (expression_statement "cVar1 = *pcVar7;" (assignment_expression "cVar1 = *pcVar7" identifier = (pointer_expression "*pcVar7" * identifier)) ;) (expression_statement "pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;" (assignment_expression "pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1" identifier = (binary_expression "pcVar7 + (ulong)bVar17 * -2 + 1" (binary_expression "pcVar7 + (ulong)bVar17 * -2" identifier + (binary_expression "(ulong)bVar17 * -2" (cast_expression "(ulong)bVar17" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "iVar4 = ~(uint)lVar12 - 1;" (assignment_expression "iVar4 = ~(uint)lVar12 - 1" identifier = (binary_expression "~(uint)lVar12 - 1" (unary_expression "~(uint)lVar12" ~ (cast_expression "(uint)lVar12" ( (type_descriptor "uint" type_identifier) ) identifier)) - number_literal)) ;) (expression_statement "pcVar8 = (char *)FUN_00126895((long)((iVar4 * 4) / 3 + 100),1);" (assignment_expression "pcVar8 = (char *)FUN_00126895((long)((iVar4 * 4) / 3 + 100),1)" identifier = (cast_expression "(char *)FUN_00126895((long)((iVar4 * 4) / 3 + 100),1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00126895((long)((iVar4 * 4) / 3 + 100),1)" identifier (argument_list "((long)((iVar4 * 4) / 3 + 100),1)" ( (cast_expression "(long)((iVar4 * 4) / 3 + 100)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "((iVar4 * 4) / 3 + 100)" ( (binary_expression "(iVar4 * 4) / 3 + 100" (binary_expression "(iVar4 * 4) / 3" (parenthesized_expression "(iVar4 * 4)" ( (binary_expression "iVar4 * 4" identifier * number_literal) )) / number_literal) + number_literal) ))) , number_literal ))))) ;) (expression_statement "builtin_strncpy(pcVar8,"Proxy-Authorization: Basic ",0x1c);" (call_expression "builtin_strncpy(pcVar8,"Proxy-Authorization: Basic ",0x1c)" identifier (argument_list "(pcVar8,"Proxy-Authorization: Basic ",0x1c)" ( identifier , (string_literal ""Proxy-Authorization: Basic "" " string_content ") , number_literal ))) ;) (expression_statement "lVar12 = -1;" (assignment_expression "lVar12 = -1" identifier = number_literal) ;) (expression_statement "pcVar7 = pcVar8;" (assignment_expression "pcVar7 = pcVar8" identifier = identifier) ;) (do_statement "do {\n        if (lVar12 == 0) break;\n        lVar12 = lVar12 + -1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');" do (compound_statement "{\n        if (lVar12 == 0) break;\n        lVar12 = lVar12 + -1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      }" { (if_statement "if (lVar12 == 0) break;" if (parenthesized_expression "(lVar12 == 0)" ( (binary_expression "lVar12 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar12 = lVar12 + -1;" (assignment_expression "lVar12 = lVar12 + -1" identifier = (binary_expression "lVar12 + -1" identifier + number_literal)) ;) (expression_statement "cVar1 = *pcVar7;" (assignment_expression "cVar1 = *pcVar7" identifier = (pointer_expression "*pcVar7" * identifier)) ;) (expression_statement "pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;" (assignment_expression "pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1" identifier = (binary_expression "pcVar7 + (ulong)bVar17 * -2 + 1" (binary_expression "pcVar7 + (ulong)bVar17 * -2" identifier + (binary_expression "(ulong)bVar17 * -2" (cast_expression "(ulong)bVar17" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "iVar5 = ~(uint)lVar12 - 1;" (assignment_expression "iVar5 = ~(uint)lVar12 - 1" identifier = (binary_expression "~(uint)lVar12 - 1" (unary_expression "~(uint)lVar12" ~ (cast_expression "(uint)lVar12" ( (type_descriptor "uint" type_identifier) ) identifier)) - number_literal)) ;) (if_statement "if (0 < iVar4) {\n        pcVar15 = pcVar8 + iVar5;\n        iVar16 = 0;\n        pcVar7 = pcVar6;\n        do {\n          iVar2 = iVar4 - iVar16;\n          if (3 < iVar4 - iVar16) {\n            iVar2 = 3;\n          }\n          FUN_001265e7(pcVar7,iVar2,pcVar15);\n          iVar16 = iVar16 + 3;\n          iVar5 = iVar5 + 4;\n          pcVar7 = pcVar7 + 3;\n          pcVar15 = pcVar15 + 4;\n        } while (iVar16 < iVar4);\n      }" if (parenthesized_expression "(0 < iVar4)" ( (binary_expression "0 < iVar4" number_literal < identifier) )) (compound_statement "{\n        pcVar15 = pcVar8 + iVar5;\n        iVar16 = 0;\n        pcVar7 = pcVar6;\n        do {\n          iVar2 = iVar4 - iVar16;\n          if (3 < iVar4 - iVar16) {\n            iVar2 = 3;\n          }\n          FUN_001265e7(pcVar7,iVar2,pcVar15);\n          iVar16 = iVar16 + 3;\n          iVar5 = iVar5 + 4;\n          pcVar7 = pcVar7 + 3;\n          pcVar15 = pcVar15 + 4;\n        } while (iVar16 < iVar4);\n      }" { (expression_statement "pcVar15 = pcVar8 + iVar5;" (assignment_expression "pcVar15 = pcVar8 + iVar5" identifier = (binary_expression "pcVar8 + iVar5" identifier + identifier)) ;) (expression_statement "iVar16 = 0;" (assignment_expression "iVar16 = 0" identifier = number_literal) ;) (expression_statement "pcVar7 = pcVar6;" (assignment_expression "pcVar7 = pcVar6" identifier = identifier) ;) (do_statement "do {\n          iVar2 = iVar4 - iVar16;\n          if (3 < iVar4 - iVar16) {\n            iVar2 = 3;\n          }\n          FUN_001265e7(pcVar7,iVar2,pcVar15);\n          iVar16 = iVar16 + 3;\n          iVar5 = iVar5 + 4;\n          pcVar7 = pcVar7 + 3;\n          pcVar15 = pcVar15 + 4;\n        } while (iVar16 < iVar4);" do (compound_statement "{\n          iVar2 = iVar4 - iVar16;\n          if (3 < iVar4 - iVar16) {\n            iVar2 = 3;\n          }\n          FUN_001265e7(pcVar7,iVar2,pcVar15);\n          iVar16 = iVar16 + 3;\n          iVar5 = iVar5 + 4;\n          pcVar7 = pcVar7 + 3;\n          pcVar15 = pcVar15 + 4;\n        }" { (expression_statement "iVar2 = iVar4 - iVar16;" (assignment_expression "iVar2 = iVar4 - iVar16" identifier = (binary_expression "iVar4 - iVar16" identifier - identifier)) ;) (if_statement "if (3 < iVar4 - iVar16) {\n            iVar2 = 3;\n          }" if (parenthesized_expression "(3 < iVar4 - iVar16)" ( (binary_expression "3 < iVar4 - iVar16" number_literal < (binary_expression "iVar4 - iVar16" identifier - identifier)) )) (compound_statement "{\n            iVar2 = 3;\n          }" { (expression_statement "iVar2 = 3;" (assignment_expression "iVar2 = 3" identifier = number_literal) ;) })) (expression_statement "FUN_001265e7(pcVar7,iVar2,pcVar15);" (call_expression "FUN_001265e7(pcVar7,iVar2,pcVar15)" identifier (argument_list "(pcVar7,iVar2,pcVar15)" ( identifier , identifier , identifier ))) ;) (expression_statement "iVar16 = iVar16 + 3;" (assignment_expression "iVar16 = iVar16 + 3" identifier = (binary_expression "iVar16 + 3" identifier + number_literal)) ;) (expression_statement "iVar5 = iVar5 + 4;" (assignment_expression "iVar5 = iVar5 + 4" identifier = (binary_expression "iVar5 + 4" identifier + number_literal)) ;) (expression_statement "pcVar7 = pcVar7 + 3;" (assignment_expression "pcVar7 = pcVar7 + 3" identifier = (binary_expression "pcVar7 + 3" identifier + number_literal)) ;) (expression_statement "pcVar15 = pcVar15 + 4;" (assignment_expression "pcVar15 = pcVar15 + 4" identifier = (binary_expression "pcVar15 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar16 < iVar4)" ( (binary_expression "iVar16 < iVar4" identifier < identifier) )) ;) })) (expression_statement "pcVar7 = pcVar8 + iVar5;" (assignment_expression "pcVar7 = pcVar8 + iVar5" identifier = (binary_expression "pcVar8 + iVar5" identifier + identifier)) ;) (expression_statement "pcVar7[0] = '\r';" (assignment_expression "pcVar7[0] = '\r'" (subscript_expression "pcVar7[0]" identifier [ number_literal ]) = (char_literal "'\r'" ' escape_sequence ')) ;) (expression_statement "pcVar7[1] = '\n';" (assignment_expression "pcVar7[1] = '\n'" (subscript_expression "pcVar7[1]" identifier [ number_literal ]) = (char_literal "'\n'" ' escape_sequence ')) ;) (expression_statement "pcVar7[2] = '\0';" (assignment_expression "pcVar7[2] = '\0'" (subscript_expression "pcVar7[2]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "uVar14 = 0xffffffffffffffff;" (assignment_expression "uVar14 = 0xffffffffffffffff" identifier = number_literal) ;) (expression_statement "pcVar7 = pcVar8;" (assignment_expression "pcVar7 = pcVar8" identifier = identifier) ;) (do_statement "do {\n        if (uVar14 == 0) break;\n        uVar14 = uVar14 - 1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');" do (compound_statement "{\n        if (uVar14 == 0) break;\n        uVar14 = uVar14 - 1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      }" { (if_statement "if (uVar14 == 0) break;" if (parenthesized_expression "(uVar14 == 0)" ( (binary_expression "uVar14 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar14 = uVar14 - 1;" (assignment_expression "uVar14 = uVar14 - 1" identifier = (binary_expression "uVar14 - 1" identifier - number_literal)) ;) (expression_statement "cVar1 = *pcVar7;" (assignment_expression "cVar1 = *pcVar7" identifier = (pointer_expression "*pcVar7" * identifier)) ;) (expression_statement "pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;" (assignment_expression "pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1" identifier = (binary_expression "pcVar7 + (ulong)bVar17 * -2 + 1" (binary_expression "pcVar7 + (ulong)bVar17 * -2" identifier + (binary_expression "(ulong)bVar17 * -2" (cast_expression "(ulong)bVar17" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "(**(code **)(**(long **)(param_1 + 0x10) + 0x10))\n                (*(long **)(param_1 + 0x10),pcVar8,~uVar14 - 1);" (call_expression "(**(code **)(**(long **)(param_1 + 0x10) + 0x10))\n                (*(long **)(param_1 + 0x10),pcVar8,~uVar14 - 1)" (parenthesized_expression "(**(code **)(**(long **)(param_1 + 0x10) + 0x10))" ( (pointer_expression "**(code **)(**(long **)(param_1 + 0x10) + 0x10)" * (pointer_expression "*(code **)(**(long **)(param_1 + 0x10) + 0x10)" * (cast_expression "(code **)(**(long **)(param_1 + 0x10) + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(long **)(param_1 + 0x10) + 0x10)" ( (binary_expression "**(long **)(param_1 + 0x10) + 0x10" (pointer_expression "**(long **)(param_1 + 0x10)" * (pointer_expression "*(long **)(param_1 + 0x10)" * (cast_expression "(long **)(param_1 + 0x10)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(long **)(param_1 + 0x10),pcVar8,~uVar14 - 1)" ( (pointer_expression "*(long **)(param_1 + 0x10)" * (cast_expression "(long **)(param_1 + 0x10)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) , identifier , (binary_expression "~uVar14 - 1" (unary_expression "~uVar14" ~ identifier) - number_literal) ))) ;) (expression_statement "FUN_00127101(pcVar6);" (call_expression "FUN_00127101(pcVar6)" identifier (argument_list "(pcVar6)" ( identifier ))) ;) (expression_statement "FUN_00127101(pcVar8);" (call_expression "FUN_00127101(pcVar8)" identifier (argument_list "(pcVar8)" ( identifier ))) ;) })) (expression_statement "(**(code **)(**(long **)(param_1 + 0x10) + 0x10))(*(long **)(param_1 + 0x10),&DAT_001bc572,2);" (call_expression "(**(code **)(**(long **)(param_1 + 0x10) + 0x10))(*(long **)(param_1 + 0x10),&DAT_001bc572,2)" (parenthesized_expression "(**(code **)(**(long **)(param_1 + 0x10) + 0x10))" ( (pointer_expression "**(code **)(**(long **)(param_1 + 0x10) + 0x10)" * (pointer_expression "*(code **)(**(long **)(param_1 + 0x10) + 0x10)" * (cast_expression "(code **)(**(long **)(param_1 + 0x10) + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(long **)(param_1 + 0x10) + 0x10)" ( (binary_expression "**(long **)(param_1 + 0x10) + 0x10" (pointer_expression "**(long **)(param_1 + 0x10)" * (pointer_expression "*(long **)(param_1 + 0x10)" * (cast_expression "(long **)(param_1 + 0x10)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(long **)(param_1 + 0x10),&DAT_001bc572,2)" ( (pointer_expression "*(long **)(param_1 + 0x10)" * (cast_expression "(long **)(param_1 + 0x10)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) , (pointer_expression "&DAT_001bc572" & identifier) , number_literal ))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x84) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x84) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x84)" * (cast_expression "(undefined4 *)(param_1 + 0x84)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x84)" ( (binary_expression "param_1 + 0x84" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00128d76;" goto statement_identifier ;) })) (if_statement "if (param_2 == 0) {\n    (**(code **)(**(long **)(param_1 + 0x18) + 8))\n              (*(long **)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x98),\n               *(undefined4 *)(param_1 + 0xa0),*(undefined4 *)(param_1 + 0xa4));\n    uVar3 = 0;\n    goto LAB_00128d76;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    (**(code **)(**(long **)(param_1 + 0x18) + 8))\n              (*(long **)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x98),\n               *(undefined4 *)(param_1 + 0xa0),*(undefined4 *)(param_1 + 0xa4));\n    uVar3 = 0;\n    goto LAB_00128d76;\n  }" { (expression_statement "(**(code **)(**(long **)(param_1 + 0x18) + 8))\n              (*(long **)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x98),\n               *(undefined4 *)(param_1 + 0xa0),*(undefined4 *)(param_1 + 0xa4));" (call_expression "(**(code **)(**(long **)(param_1 + 0x18) + 8))\n              (*(long **)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x98),\n               *(undefined4 *)(param_1 + 0xa0),*(undefined4 *)(param_1 + 0xa4))" (parenthesized_expression "(**(code **)(**(long **)(param_1 + 0x18) + 8))" ( (pointer_expression "**(code **)(**(long **)(param_1 + 0x18) + 8)" * (pointer_expression "*(code **)(**(long **)(param_1 + 0x18) + 8)" * (cast_expression "(code **)(**(long **)(param_1 + 0x18) + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(long **)(param_1 + 0x18) + 8)" ( (binary_expression "**(long **)(param_1 + 0x18) + 8" (pointer_expression "**(long **)(param_1 + 0x18)" * (pointer_expression "*(long **)(param_1 + 0x18)" * (cast_expression "(long **)(param_1 + 0x18)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(long **)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x98),\n               *(undefined4 *)(param_1 + 0xa0),*(undefined4 *)(param_1 + 0xa4))" ( (pointer_expression "*(long **)(param_1 + 0x18)" * (cast_expression "(long **)(param_1 + 0x18)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) , (pointer_expression "*(undefined8 *)(param_1 + 0x98)" * (cast_expression "(undefined8 *)(param_1 + 0x98)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x98)" ( (binary_expression "param_1 + 0x98" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0xa0)" * (cast_expression "(undefined4 *)(param_1 + 0xa0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xa0)" ( (binary_expression "param_1 + 0xa0" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0xa4)" * (cast_expression "(undefined4 *)(param_1 + 0xa4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xa4)" ( (binary_expression "param_1 + 0xa4" identifier + number_literal) )))) ))) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00128d76;" goto statement_identifier ;) })) (if_statement "if (param_2 == 1) {\n    uVar3 = 0;\n    goto LAB_00128d76;\n  }" if (parenthesized_expression "(param_2 == 1)" ( (binary_expression "param_2 == 1" identifier == number_literal) )) (compound_statement "{\n    uVar3 = 0;\n    goto LAB_00128d76;\n  }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00128d76;" goto statement_identifier ;) })) (if_statement "if (param_2 == 3) {\n    uVar3 = (**(code **)(**(long **)(param_1 + 0x18) + 0x20))\n                      (*(long **)(param_1 + 0x18),*(undefined8 *)(param_1 + 0xc0),\n                       *(undefined8 *)(param_1 + 200));\n    goto LAB_00128d76;\n  }" if (parenthesized_expression "(param_2 == 3)" ( (binary_expression "param_2 == 3" identifier == number_literal) )) (compound_statement "{\n    uVar3 = (**(code **)(**(long **)(param_1 + 0x18) + 0x20))\n                      (*(long **)(param_1 + 0x18),*(undefined8 *)(param_1 + 0xc0),\n                       *(undefined8 *)(param_1 + 200));\n    goto LAB_00128d76;\n  }" { (expression_statement "uVar3 = (**(code **)(**(long **)(param_1 + 0x18) + 0x20))\n                      (*(long **)(param_1 + 0x18),*(undefined8 *)(param_1 + 0xc0),\n                       *(undefined8 *)(param_1 + 200));" (assignment_expression "uVar3 = (**(code **)(**(long **)(param_1 + 0x18) + 0x20))\n                      (*(long **)(param_1 + 0x18),*(undefined8 *)(param_1 + 0xc0),\n                       *(undefined8 *)(param_1 + 200))" identifier = (call_expression "(**(code **)(**(long **)(param_1 + 0x18) + 0x20))\n                      (*(long **)(param_1 + 0x18),*(undefined8 *)(param_1 + 0xc0),\n                       *(undefined8 *)(param_1 + 200))" (parenthesized_expression "(**(code **)(**(long **)(param_1 + 0x18) + 0x20))" ( (pointer_expression "**(code **)(**(long **)(param_1 + 0x18) + 0x20)" * (pointer_expression "*(code **)(**(long **)(param_1 + 0x18) + 0x20)" * (cast_expression "(code **)(**(long **)(param_1 + 0x18) + 0x20)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(long **)(param_1 + 0x18) + 0x20)" ( (binary_expression "**(long **)(param_1 + 0x18) + 0x20" (pointer_expression "**(long **)(param_1 + 0x18)" * (pointer_expression "*(long **)(param_1 + 0x18)" * (cast_expression "(long **)(param_1 + 0x18)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(long **)(param_1 + 0x18),*(undefined8 *)(param_1 + 0xc0),\n                       *(undefined8 *)(param_1 + 200))" ( (pointer_expression "*(long **)(param_1 + 0x18)" * (cast_expression "(long **)(param_1 + 0x18)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) , (pointer_expression "*(undefined8 *)(param_1 + 0xc0)" * (cast_expression "(undefined8 *)(param_1 + 0xc0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc0)" ( (binary_expression "param_1 + 0xc0" identifier + number_literal) )))) , (pointer_expression "*(undefined8 *)(param_1 + 200)" * (cast_expression "(undefined8 *)(param_1 + 200)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 200)" ( (binary_expression "param_1 + 200" identifier + number_literal) )))) )))) ;) (goto_statement "goto LAB_00128d76;" goto statement_identifier ;) })) (if_statement "if (param_2 == 2) {\n    if (iVar4 == 1) {\n      lVar12 = param_1 + 0x68;\n      iVar4 = FUN_001267cf(lVar12);\n      if (iVar4 < 1) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("len > 0","proxy.c",0x2af,"proxy_http_negotiate");\n      }\n      lVar11 = FUN_00126895((long)(iVar4 + 1),1);\n      FUN_001267eb(lVar12,lVar11,iVar4);\n      *(undefined1 *)(lVar11 + iVar4) = 0;\n      iVar4 = FUN_00128918(lVar11,iVar4);\n      uVar3 = 1;\n      if (iVar4 < 0) {\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }\n      local_24c = -1;\n      iVar5 = __isoc99_sscanf(lVar11,"HTTP/%i.%i %n",local_250,local_254,&local_24c);\n      if ((iVar5 < 2) || (local_24c == -1)) {\n        (**(code **)(**(long **)(param_1 + 0x18) + 8))\n                  (*(long **)(param_1 + 0x18),"Proxy error: HTTP response was absent",8000,0);\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }\n      FUN_0012722e(lVar12,iVar4);\n      if (*(char *)(lVar11 + local_24c) != '2') {\n        *(undefined1 *)(lVar11 + iVar4) = 0;\n        if ((local_24c < iVar4) &&\n           ((cVar1 = *(char *)(lVar11 + -1 + (long)iVar4), cVar1 == '\r' || (cVar1 == '\n')))) {\n          lVar12 = (long)(iVar4 + -1);\n          do {\n            *(undefined1 *)(lVar11 + lVar12) = 0;\n            if ((int)lVar12 <= local_24c) break;\n            cVar1 = *(char *)(lVar11 + -1 + lVar12);\n            lVar12 = lVar12 + -1;\n          } while ((cVar1 == '\r') || (cVar1 == '\n'));\n        }\n        uVar13 = FUN_00126ed4("Proxy error: %s",lVar11 + local_24c);\n        (**(code **)(**(long **)(param_1 + 0x18) + 8))(*(long **)(param_1 + 0x18),uVar13,8000,0);\n        FUN_00127101(uVar13);\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }\n      FUN_00127101(lVar11);\n      *(undefined4 *)(param_1 + 0x84) = 2;\n    }\n    else if (iVar4 != 2) goto LAB_00128d56;\n    lVar12 = param_1 + 0x68;\n    iVar4 = FUN_001267cf(lVar12);\n    if (iVar4 < 1) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("len > 0","proxy.c",0x2e5,"proxy_http_negotiate");\n    }\n    lVar9 = FUN_00126895((long)iVar4,1);\n    FUN_001267eb(lVar12,lVar9,iVar4);\n    iVar5 = FUN_00128918(lVar9,iVar4);\n    lVar11 = lVar9;\n    if (iVar5 < 0) {\n      FUN_00127101(lVar9);\n      uVar3 = 1;\n    }\n    else {\n      while (2 < iVar5) {\n        FUN_0012722e(lVar12,iVar5);\n        lVar10 = (long)iVar5;\n        iVar4 = iVar4 - iVar5;\n        iVar5 = FUN_00128918(lVar11 + lVar10,iVar4);\n        lVar11 = lVar11 + lVar10;\n      }\n      if (iVar5 == 2) {\n        FUN_0012722e(lVar12,2);\n        FUN_00128b92(param_1);\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }\n      else {\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }\n    }\n  }\n  else {\nLAB_00128d56:\n    (**(code **)(**(long **)(param_1 + 0x18) + 8))\n              (*(long **)(param_1 + 0x18),"Proxy error: unexpected proxy error",0x1f41,0);\n    uVar3 = 1;\n  }" if (parenthesized_expression "(param_2 == 2)" ( (binary_expression "param_2 == 2" identifier == number_literal) )) (compound_statement "{\n    if (iVar4 == 1) {\n      lVar12 = param_1 + 0x68;\n      iVar4 = FUN_001267cf(lVar12);\n      if (iVar4 < 1) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("len > 0","proxy.c",0x2af,"proxy_http_negotiate");\n      }\n      lVar11 = FUN_00126895((long)(iVar4 + 1),1);\n      FUN_001267eb(lVar12,lVar11,iVar4);\n      *(undefined1 *)(lVar11 + iVar4) = 0;\n      iVar4 = FUN_00128918(lVar11,iVar4);\n      uVar3 = 1;\n      if (iVar4 < 0) {\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }\n      local_24c = -1;\n      iVar5 = __isoc99_sscanf(lVar11,"HTTP/%i.%i %n",local_250,local_254,&local_24c);\n      if ((iVar5 < 2) || (local_24c == -1)) {\n        (**(code **)(**(long **)(param_1 + 0x18) + 8))\n                  (*(long **)(param_1 + 0x18),"Proxy error: HTTP response was absent",8000,0);\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }\n      FUN_0012722e(lVar12,iVar4);\n      if (*(char *)(lVar11 + local_24c) != '2') {\n        *(undefined1 *)(lVar11 + iVar4) = 0;\n        if ((local_24c < iVar4) &&\n           ((cVar1 = *(char *)(lVar11 + -1 + (long)iVar4), cVar1 == '\r' || (cVar1 == '\n')))) {\n          lVar12 = (long)(iVar4 + -1);\n          do {\n            *(undefined1 *)(lVar11 + lVar12) = 0;\n            if ((int)lVar12 <= local_24c) break;\n            cVar1 = *(char *)(lVar11 + -1 + lVar12);\n            lVar12 = lVar12 + -1;\n          } while ((cVar1 == '\r') || (cVar1 == '\n'));\n        }\n        uVar13 = FUN_00126ed4("Proxy error: %s",lVar11 + local_24c);\n        (**(code **)(**(long **)(param_1 + 0x18) + 8))(*(long **)(param_1 + 0x18),uVar13,8000,0);\n        FUN_00127101(uVar13);\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }\n      FUN_00127101(lVar11);\n      *(undefined4 *)(param_1 + 0x84) = 2;\n    }\n    else if (iVar4 != 2) goto LAB_00128d56;\n    lVar12 = param_1 + 0x68;\n    iVar4 = FUN_001267cf(lVar12);\n    if (iVar4 < 1) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("len > 0","proxy.c",0x2e5,"proxy_http_negotiate");\n    }\n    lVar9 = FUN_00126895((long)iVar4,1);\n    FUN_001267eb(lVar12,lVar9,iVar4);\n    iVar5 = FUN_00128918(lVar9,iVar4);\n    lVar11 = lVar9;\n    if (iVar5 < 0) {\n      FUN_00127101(lVar9);\n      uVar3 = 1;\n    }\n    else {\n      while (2 < iVar5) {\n        FUN_0012722e(lVar12,iVar5);\n        lVar10 = (long)iVar5;\n        iVar4 = iVar4 - iVar5;\n        iVar5 = FUN_00128918(lVar11 + lVar10,iVar4);\n        lVar11 = lVar11 + lVar10;\n      }\n      if (iVar5 == 2) {\n        FUN_0012722e(lVar12,2);\n        FUN_00128b92(param_1);\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }\n      else {\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }\n    }\n  }" { (if_statement "if (iVar4 == 1) {\n      lVar12 = param_1 + 0x68;\n      iVar4 = FUN_001267cf(lVar12);\n      if (iVar4 < 1) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("len > 0","proxy.c",0x2af,"proxy_http_negotiate");\n      }\n      lVar11 = FUN_00126895((long)(iVar4 + 1),1);\n      FUN_001267eb(lVar12,lVar11,iVar4);\n      *(undefined1 *)(lVar11 + iVar4) = 0;\n      iVar4 = FUN_00128918(lVar11,iVar4);\n      uVar3 = 1;\n      if (iVar4 < 0) {\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }\n      local_24c = -1;\n      iVar5 = __isoc99_sscanf(lVar11,"HTTP/%i.%i %n",local_250,local_254,&local_24c);\n      if ((iVar5 < 2) || (local_24c == -1)) {\n        (**(code **)(**(long **)(param_1 + 0x18) + 8))\n                  (*(long **)(param_1 + 0x18),"Proxy error: HTTP response was absent",8000,0);\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }\n      FUN_0012722e(lVar12,iVar4);\n      if (*(char *)(lVar11 + local_24c) != '2') {\n        *(undefined1 *)(lVar11 + iVar4) = 0;\n        if ((local_24c < iVar4) &&\n           ((cVar1 = *(char *)(lVar11 + -1 + (long)iVar4), cVar1 == '\r' || (cVar1 == '\n')))) {\n          lVar12 = (long)(iVar4 + -1);\n          do {\n            *(undefined1 *)(lVar11 + lVar12) = 0;\n            if ((int)lVar12 <= local_24c) break;\n            cVar1 = *(char *)(lVar11 + -1 + lVar12);\n            lVar12 = lVar12 + -1;\n          } while ((cVar1 == '\r') || (cVar1 == '\n'));\n        }\n        uVar13 = FUN_00126ed4("Proxy error: %s",lVar11 + local_24c);\n        (**(code **)(**(long **)(param_1 + 0x18) + 8))(*(long **)(param_1 + 0x18),uVar13,8000,0);\n        FUN_00127101(uVar13);\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }\n      FUN_00127101(lVar11);\n      *(undefined4 *)(param_1 + 0x84) = 2;\n    }\n    else if (iVar4 != 2) goto LAB_00128d56;" if (parenthesized_expression "(iVar4 == 1)" ( (binary_expression "iVar4 == 1" identifier == number_literal) )) (compound_statement "{\n      lVar12 = param_1 + 0x68;\n      iVar4 = FUN_001267cf(lVar12);\n      if (iVar4 < 1) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("len > 0","proxy.c",0x2af,"proxy_http_negotiate");\n      }\n      lVar11 = FUN_00126895((long)(iVar4 + 1),1);\n      FUN_001267eb(lVar12,lVar11,iVar4);\n      *(undefined1 *)(lVar11 + iVar4) = 0;\n      iVar4 = FUN_00128918(lVar11,iVar4);\n      uVar3 = 1;\n      if (iVar4 < 0) {\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }\n      local_24c = -1;\n      iVar5 = __isoc99_sscanf(lVar11,"HTTP/%i.%i %n",local_250,local_254,&local_24c);\n      if ((iVar5 < 2) || (local_24c == -1)) {\n        (**(code **)(**(long **)(param_1 + 0x18) + 8))\n                  (*(long **)(param_1 + 0x18),"Proxy error: HTTP response was absent",8000,0);\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }\n      FUN_0012722e(lVar12,iVar4);\n      if (*(char *)(lVar11 + local_24c) != '2') {\n        *(undefined1 *)(lVar11 + iVar4) = 0;\n        if ((local_24c < iVar4) &&\n           ((cVar1 = *(char *)(lVar11 + -1 + (long)iVar4), cVar1 == '\r' || (cVar1 == '\n')))) {\n          lVar12 = (long)(iVar4 + -1);\n          do {\n            *(undefined1 *)(lVar11 + lVar12) = 0;\n            if ((int)lVar12 <= local_24c) break;\n            cVar1 = *(char *)(lVar11 + -1 + lVar12);\n            lVar12 = lVar12 + -1;\n          } while ((cVar1 == '\r') || (cVar1 == '\n'));\n        }\n        uVar13 = FUN_00126ed4("Proxy error: %s",lVar11 + local_24c);\n        (**(code **)(**(long **)(param_1 + 0x18) + 8))(*(long **)(param_1 + 0x18),uVar13,8000,0);\n        FUN_00127101(uVar13);\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }\n      FUN_00127101(lVar11);\n      *(undefined4 *)(param_1 + 0x84) = 2;\n    }" { (expression_statement "lVar12 = param_1 + 0x68;" (assignment_expression "lVar12 = param_1 + 0x68" identifier = (binary_expression "param_1 + 0x68" identifier + number_literal)) ;) (expression_statement "iVar4 = FUN_001267cf(lVar12);" (assignment_expression "iVar4 = FUN_001267cf(lVar12)" identifier = (call_expression "FUN_001267cf(lVar12)" identifier (argument_list "(lVar12)" ( identifier )))) ;) (if_statement "if (iVar4 < 1) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("len > 0","proxy.c",0x2af,"proxy_http_negotiate");\n      }" if (parenthesized_expression "(iVar4 < 1)" ( (binary_expression "iVar4 < 1" identifier < number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("len > 0","proxy.c",0x2af,"proxy_http_negotiate");\n      }" { comment (expression_statement "__assert_fail("len > 0","proxy.c",0x2af,"proxy_http_negotiate");" (call_expression "__assert_fail("len > 0","proxy.c",0x2af,"proxy_http_negotiate")" identifier (argument_list "("len > 0","proxy.c",0x2af,"proxy_http_negotiate")" ( (string_literal ""len > 0"" " string_content ") , (string_literal ""proxy.c"" " string_content ") , number_literal , (string_literal ""proxy_http_negotiate"" " string_content ") ))) ;) })) (expression_statement "lVar11 = FUN_00126895((long)(iVar4 + 1),1);" (assignment_expression "lVar11 = FUN_00126895((long)(iVar4 + 1),1)" identifier = (call_expression "FUN_00126895((long)(iVar4 + 1),1)" identifier (argument_list "((long)(iVar4 + 1),1)" ( (cast_expression "(long)(iVar4 + 1)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(iVar4 + 1)" ( (binary_expression "iVar4 + 1" identifier + number_literal) ))) , number_literal )))) ;) (expression_statement "FUN_001267eb(lVar12,lVar11,iVar4);" (call_expression "FUN_001267eb(lVar12,lVar11,iVar4)" identifier (argument_list "(lVar12,lVar11,iVar4)" ( identifier , identifier , identifier ))) ;) (expression_statement "*(undefined1 *)(lVar11 + iVar4) = 0;" (assignment_expression "*(undefined1 *)(lVar11 + iVar4) = 0" (pointer_expression "*(undefined1 *)(lVar11 + iVar4)" * (cast_expression "(undefined1 *)(lVar11 + iVar4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar11 + iVar4)" ( (binary_expression "lVar11 + iVar4" identifier + identifier) )))) = number_literal) ;) (expression_statement "iVar4 = FUN_00128918(lVar11,iVar4);" (assignment_expression "iVar4 = FUN_00128918(lVar11,iVar4)" identifier = (call_expression "FUN_00128918(lVar11,iVar4)" identifier (argument_list "(lVar11,iVar4)" ( identifier , identifier )))) ;) (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" identifier = number_literal) ;) (if_statement "if (iVar4 < 0) {\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }" if (parenthesized_expression "(iVar4 < 0)" ( (binary_expression "iVar4 < 0" identifier < number_literal) )) (compound_statement "{\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }" { (expression_statement "FUN_00127101(lVar11);" (call_expression "FUN_00127101(lVar11)" identifier (argument_list "(lVar11)" ( identifier ))) ;) (goto_statement "goto LAB_00128d76;" goto statement_identifier ;) })) (expression_statement "local_24c = -1;" (assignment_expression "local_24c = -1" identifier = number_literal) ;) (expression_statement "iVar5 = __isoc99_sscanf(lVar11,"HTTP/%i.%i %n",local_250,local_254,&local_24c);" (assignment_expression "iVar5 = __isoc99_sscanf(lVar11,"HTTP/%i.%i %n",local_250,local_254,&local_24c)" identifier = (call_expression "__isoc99_sscanf(lVar11,"HTTP/%i.%i %n",local_250,local_254,&local_24c)" identifier (argument_list "(lVar11,"HTTP/%i.%i %n",local_250,local_254,&local_24c)" ( identifier , (string_literal ""HTTP/%i.%i %n"" " string_content ") , identifier , identifier , (pointer_expression "&local_24c" & identifier) )))) ;) (if_statement "if ((iVar5 < 2) || (local_24c == -1)) {\n        (**(code **)(**(long **)(param_1 + 0x18) + 8))\n                  (*(long **)(param_1 + 0x18),"Proxy error: HTTP response was absent",8000,0);\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }" if (parenthesized_expression "((iVar5 < 2) || (local_24c == -1))" ( (binary_expression "(iVar5 < 2) || (local_24c == -1)" (parenthesized_expression "(iVar5 < 2)" ( (binary_expression "iVar5 < 2" identifier < number_literal) )) || (parenthesized_expression "(local_24c == -1)" ( (binary_expression "local_24c == -1" identifier == number_literal) ))) )) (compound_statement "{\n        (**(code **)(**(long **)(param_1 + 0x18) + 8))\n                  (*(long **)(param_1 + 0x18),"Proxy error: HTTP response was absent",8000,0);\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }" { (expression_statement "(**(code **)(**(long **)(param_1 + 0x18) + 8))\n                  (*(long **)(param_1 + 0x18),"Proxy error: HTTP response was absent",8000,0);" (call_expression "(**(code **)(**(long **)(param_1 + 0x18) + 8))\n                  (*(long **)(param_1 + 0x18),"Proxy error: HTTP response was absent",8000,0)" (parenthesized_expression "(**(code **)(**(long **)(param_1 + 0x18) + 8))" ( (pointer_expression "**(code **)(**(long **)(param_1 + 0x18) + 8)" * (pointer_expression "*(code **)(**(long **)(param_1 + 0x18) + 8)" * (cast_expression "(code **)(**(long **)(param_1 + 0x18) + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(long **)(param_1 + 0x18) + 8)" ( (binary_expression "**(long **)(param_1 + 0x18) + 8" (pointer_expression "**(long **)(param_1 + 0x18)" * (pointer_expression "*(long **)(param_1 + 0x18)" * (cast_expression "(long **)(param_1 + 0x18)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(long **)(param_1 + 0x18),"Proxy error: HTTP response was absent",8000,0)" ( (pointer_expression "*(long **)(param_1 + 0x18)" * (cast_expression "(long **)(param_1 + 0x18)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) , (string_literal ""Proxy error: HTTP response was absent"" " string_content ") , number_literal , number_literal ))) ;) (expression_statement "FUN_00127101(lVar11);" (call_expression "FUN_00127101(lVar11)" identifier (argument_list "(lVar11)" ( identifier ))) ;) (goto_statement "goto LAB_00128d76;" goto statement_identifier ;) })) (expression_statement "FUN_0012722e(lVar12,iVar4);" (call_expression "FUN_0012722e(lVar12,iVar4)" identifier (argument_list "(lVar12,iVar4)" ( identifier , identifier ))) ;) (if_statement "if (*(char *)(lVar11 + local_24c) != '2') {\n        *(undefined1 *)(lVar11 + iVar4) = 0;\n        if ((local_24c < iVar4) &&\n           ((cVar1 = *(char *)(lVar11 + -1 + (long)iVar4), cVar1 == '\r' || (cVar1 == '\n')))) {\n          lVar12 = (long)(iVar4 + -1);\n          do {\n            *(undefined1 *)(lVar11 + lVar12) = 0;\n            if ((int)lVar12 <= local_24c) break;\n            cVar1 = *(char *)(lVar11 + -1 + lVar12);\n            lVar12 = lVar12 + -1;\n          } while ((cVar1 == '\r') || (cVar1 == '\n'));\n        }\n        uVar13 = FUN_00126ed4("Proxy error: %s",lVar11 + local_24c);\n        (**(code **)(**(long **)(param_1 + 0x18) + 8))(*(long **)(param_1 + 0x18),uVar13,8000,0);\n        FUN_00127101(uVar13);\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }" if (parenthesized_expression "(*(char *)(lVar11 + local_24c) != '2')" ( (binary_expression "*(char *)(lVar11 + local_24c) != '2'" (pointer_expression "*(char *)(lVar11 + local_24c)" * (cast_expression "(char *)(lVar11 + local_24c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar11 + local_24c)" ( (binary_expression "lVar11 + local_24c" identifier + identifier) )))) != (char_literal "'2'" ' character ')) )) (compound_statement "{\n        *(undefined1 *)(lVar11 + iVar4) = 0;\n        if ((local_24c < iVar4) &&\n           ((cVar1 = *(char *)(lVar11 + -1 + (long)iVar4), cVar1 == '\r' || (cVar1 == '\n')))) {\n          lVar12 = (long)(iVar4 + -1);\n          do {\n            *(undefined1 *)(lVar11 + lVar12) = 0;\n            if ((int)lVar12 <= local_24c) break;\n            cVar1 = *(char *)(lVar11 + -1 + lVar12);\n            lVar12 = lVar12 + -1;\n          } while ((cVar1 == '\r') || (cVar1 == '\n'));\n        }\n        uVar13 = FUN_00126ed4("Proxy error: %s",lVar11 + local_24c);\n        (**(code **)(**(long **)(param_1 + 0x18) + 8))(*(long **)(param_1 + 0x18),uVar13,8000,0);\n        FUN_00127101(uVar13);\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }" { (expression_statement "*(undefined1 *)(lVar11 + iVar4) = 0;" (assignment_expression "*(undefined1 *)(lVar11 + iVar4) = 0" (pointer_expression "*(undefined1 *)(lVar11 + iVar4)" * (cast_expression "(undefined1 *)(lVar11 + iVar4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar11 + iVar4)" ( (binary_expression "lVar11 + iVar4" identifier + identifier) )))) = number_literal) ;) (if_statement "if ((local_24c < iVar4) &&\n           ((cVar1 = *(char *)(lVar11 + -1 + (long)iVar4), cVar1 == '\r' || (cVar1 == '\n')))) {\n          lVar12 = (long)(iVar4 + -1);\n          do {\n            *(undefined1 *)(lVar11 + lVar12) = 0;\n            if ((int)lVar12 <= local_24c) break;\n            cVar1 = *(char *)(lVar11 + -1 + lVar12);\n            lVar12 = lVar12 + -1;\n          } while ((cVar1 == '\r') || (cVar1 == '\n'));\n        }" if (parenthesized_expression "((local_24c < iVar4) &&\n           ((cVar1 = *(char *)(lVar11 + -1 + (long)iVar4), cVar1 == '\r' || (cVar1 == '\n'))))" ( (binary_expression "(local_24c < iVar4) &&\n           ((cVar1 = *(char *)(lVar11 + -1 + (long)iVar4), cVar1 == '\r' || (cVar1 == '\n')))" (parenthesized_expression "(local_24c < iVar4)" ( (binary_expression "local_24c < iVar4" identifier < identifier) )) && (parenthesized_expression "((cVar1 = *(char *)(lVar11 + -1 + (long)iVar4), cVar1 == '\r' || (cVar1 == '\n')))" ( (parenthesized_expression "(cVar1 = *(char *)(lVar11 + -1 + (long)iVar4), cVar1 == '\r' || (cVar1 == '\n'))" ( (comma_expression "cVar1 = *(char *)(lVar11 + -1 + (long)iVar4), cVar1 == '\r' || (cVar1 == '\n')" (assignment_expression "cVar1 = *(char *)(lVar11 + -1 + (long)iVar4)" identifier = (pointer_expression "*(char *)(lVar11 + -1 + (long)iVar4)" * (cast_expression "(char *)(lVar11 + -1 + (long)iVar4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar11 + -1 + (long)iVar4)" ( (binary_expression "lVar11 + -1 + (long)iVar4" (binary_expression "lVar11 + -1" identifier + number_literal) + (cast_expression "(long)iVar4" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ))))) , (binary_expression "cVar1 == '\r' || (cVar1 == '\n')" (binary_expression "cVar1 == '\r'" identifier == (char_literal "'\r'" ' escape_sequence ')) || (parenthesized_expression "(cVar1 == '\n')" ( (binary_expression "cVar1 == '\n'" identifier == (char_literal "'\n'" ' escape_sequence ')) )))) )) ))) )) (compound_statement "{\n          lVar12 = (long)(iVar4 + -1);\n          do {\n            *(undefined1 *)(lVar11 + lVar12) = 0;\n            if ((int)lVar12 <= local_24c) break;\n            cVar1 = *(char *)(lVar11 + -1 + lVar12);\n            lVar12 = lVar12 + -1;\n          } while ((cVar1 == '\r') || (cVar1 == '\n'));\n        }" { (expression_statement "lVar12 = (long)(iVar4 + -1);" (assignment_expression "lVar12 = (long)(iVar4 + -1)" identifier = (cast_expression "(long)(iVar4 + -1)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(iVar4 + -1)" ( (binary_expression "iVar4 + -1" identifier + number_literal) )))) ;) (do_statement "do {\n            *(undefined1 *)(lVar11 + lVar12) = 0;\n            if ((int)lVar12 <= local_24c) break;\n            cVar1 = *(char *)(lVar11 + -1 + lVar12);\n            lVar12 = lVar12 + -1;\n          } while ((cVar1 == '\r') || (cVar1 == '\n'));" do (compound_statement "{\n            *(undefined1 *)(lVar11 + lVar12) = 0;\n            if ((int)lVar12 <= local_24c) break;\n            cVar1 = *(char *)(lVar11 + -1 + lVar12);\n            lVar12 = lVar12 + -1;\n          }" { (expression_statement "*(undefined1 *)(lVar11 + lVar12) = 0;" (assignment_expression "*(undefined1 *)(lVar11 + lVar12) = 0" (pointer_expression "*(undefined1 *)(lVar11 + lVar12)" * (cast_expression "(undefined1 *)(lVar11 + lVar12)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar11 + lVar12)" ( (binary_expression "lVar11 + lVar12" identifier + identifier) )))) = number_literal) ;) (if_statement "if ((int)lVar12 <= local_24c) break;" if (parenthesized_expression "((int)lVar12 <= local_24c)" ( (binary_expression "(int)lVar12 <= local_24c" (cast_expression "(int)lVar12" ( (type_descriptor "int" primitive_type) ) identifier) <= identifier) )) (break_statement "break;" break ;)) (expression_statement "cVar1 = *(char *)(lVar11 + -1 + lVar12);" (assignment_expression "cVar1 = *(char *)(lVar11 + -1 + lVar12)" identifier = (pointer_expression "*(char *)(lVar11 + -1 + lVar12)" * (cast_expression "(char *)(lVar11 + -1 + lVar12)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar11 + -1 + lVar12)" ( (binary_expression "lVar11 + -1 + lVar12" (binary_expression "lVar11 + -1" identifier + number_literal) + identifier) ))))) ;) (expression_statement "lVar12 = lVar12 + -1;" (assignment_expression "lVar12 = lVar12 + -1" identifier = (binary_expression "lVar12 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "((cVar1 == '\r') || (cVar1 == '\n'))" ( (binary_expression "(cVar1 == '\r') || (cVar1 == '\n')" (parenthesized_expression "(cVar1 == '\r')" ( (binary_expression "cVar1 == '\r'" identifier == (char_literal "'\r'" ' escape_sequence ')) )) || (parenthesized_expression "(cVar1 == '\n')" ( (binary_expression "cVar1 == '\n'" identifier == (char_literal "'\n'" ' escape_sequence ')) ))) )) ;) })) (expression_statement "uVar13 = FUN_00126ed4("Proxy error: %s",lVar11 + local_24c);" (assignment_expression "uVar13 = FUN_00126ed4("Proxy error: %s",lVar11 + local_24c)" identifier = (call_expression "FUN_00126ed4("Proxy error: %s",lVar11 + local_24c)" identifier (argument_list "("Proxy error: %s",lVar11 + local_24c)" ( (string_literal ""Proxy error: %s"" " string_content ") , (binary_expression "lVar11 + local_24c" identifier + identifier) )))) ;) (expression_statement "(**(code **)(**(long **)(param_1 + 0x18) + 8))(*(long **)(param_1 + 0x18),uVar13,8000,0);" (call_expression "(**(code **)(**(long **)(param_1 + 0x18) + 8))(*(long **)(param_1 + 0x18),uVar13,8000,0)" (parenthesized_expression "(**(code **)(**(long **)(param_1 + 0x18) + 8))" ( (pointer_expression "**(code **)(**(long **)(param_1 + 0x18) + 8)" * (pointer_expression "*(code **)(**(long **)(param_1 + 0x18) + 8)" * (cast_expression "(code **)(**(long **)(param_1 + 0x18) + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(long **)(param_1 + 0x18) + 8)" ( (binary_expression "**(long **)(param_1 + 0x18) + 8" (pointer_expression "**(long **)(param_1 + 0x18)" * (pointer_expression "*(long **)(param_1 + 0x18)" * (cast_expression "(long **)(param_1 + 0x18)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(long **)(param_1 + 0x18),uVar13,8000,0)" ( (pointer_expression "*(long **)(param_1 + 0x18)" * (cast_expression "(long **)(param_1 + 0x18)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) , identifier , number_literal , number_literal ))) ;) (expression_statement "FUN_00127101(uVar13);" (call_expression "FUN_00127101(uVar13)" identifier (argument_list "(uVar13)" ( identifier ))) ;) (expression_statement "FUN_00127101(lVar11);" (call_expression "FUN_00127101(lVar11)" identifier (argument_list "(lVar11)" ( identifier ))) ;) (goto_statement "goto LAB_00128d76;" goto statement_identifier ;) })) (expression_statement "FUN_00127101(lVar11);" (call_expression "FUN_00127101(lVar11)" identifier (argument_list "(lVar11)" ( identifier ))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x84) = 2;" (assignment_expression "*(undefined4 *)(param_1 + 0x84) = 2" (pointer_expression "*(undefined4 *)(param_1 + 0x84)" * (cast_expression "(undefined4 *)(param_1 + 0x84)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x84)" ( (binary_expression "param_1 + 0x84" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else if (iVar4 != 2) goto LAB_00128d56;" else (if_statement "if (iVar4 != 2) goto LAB_00128d56;" if (parenthesized_expression "(iVar4 != 2)" ( (binary_expression "iVar4 != 2" identifier != number_literal) )) (goto_statement "goto LAB_00128d56;" goto statement_identifier ;)))) (expression_statement "lVar12 = param_1 + 0x68;" (assignment_expression "lVar12 = param_1 + 0x68" identifier = (binary_expression "param_1 + 0x68" identifier + number_literal)) ;) (expression_statement "iVar4 = FUN_001267cf(lVar12);" (assignment_expression "iVar4 = FUN_001267cf(lVar12)" identifier = (call_expression "FUN_001267cf(lVar12)" identifier (argument_list "(lVar12)" ( identifier )))) ;) (if_statement "if (iVar4 < 1) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("len > 0","proxy.c",0x2e5,"proxy_http_negotiate");\n    }" if (parenthesized_expression "(iVar4 < 1)" ( (binary_expression "iVar4 < 1" identifier < number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("len > 0","proxy.c",0x2e5,"proxy_http_negotiate");\n    }" { comment (expression_statement "__assert_fail("len > 0","proxy.c",0x2e5,"proxy_http_negotiate");" (call_expression "__assert_fail("len > 0","proxy.c",0x2e5,"proxy_http_negotiate")" identifier (argument_list "("len > 0","proxy.c",0x2e5,"proxy_http_negotiate")" ( (string_literal ""len > 0"" " string_content ") , (string_literal ""proxy.c"" " string_content ") , number_literal , (string_literal ""proxy_http_negotiate"" " string_content ") ))) ;) })) (expression_statement "lVar9 = FUN_00126895((long)iVar4,1);" (assignment_expression "lVar9 = FUN_00126895((long)iVar4,1)" identifier = (call_expression "FUN_00126895((long)iVar4,1)" identifier (argument_list "((long)iVar4,1)" ( (cast_expression "(long)iVar4" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) , number_literal )))) ;) (expression_statement "FUN_001267eb(lVar12,lVar9,iVar4);" (call_expression "FUN_001267eb(lVar12,lVar9,iVar4)" identifier (argument_list "(lVar12,lVar9,iVar4)" ( identifier , identifier , identifier ))) ;) (expression_statement "iVar5 = FUN_00128918(lVar9,iVar4);" (assignment_expression "iVar5 = FUN_00128918(lVar9,iVar4)" identifier = (call_expression "FUN_00128918(lVar9,iVar4)" identifier (argument_list "(lVar9,iVar4)" ( identifier , identifier )))) ;) (expression_statement "lVar11 = lVar9;" (assignment_expression "lVar11 = lVar9" identifier = identifier) ;) (if_statement "if (iVar5 < 0) {\n      FUN_00127101(lVar9);\n      uVar3 = 1;\n    }\n    else {\n      while (2 < iVar5) {\n        FUN_0012722e(lVar12,iVar5);\n        lVar10 = (long)iVar5;\n        iVar4 = iVar4 - iVar5;\n        iVar5 = FUN_00128918(lVar11 + lVar10,iVar4);\n        lVar11 = lVar11 + lVar10;\n      }\n      if (iVar5 == 2) {\n        FUN_0012722e(lVar12,2);\n        FUN_00128b92(param_1);\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }\n      else {\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }\n    }" if (parenthesized_expression "(iVar5 < 0)" ( (binary_expression "iVar5 < 0" identifier < number_literal) )) (compound_statement "{\n      FUN_00127101(lVar9);\n      uVar3 = 1;\n    }" { (expression_statement "FUN_00127101(lVar9);" (call_expression "FUN_00127101(lVar9)" identifier (argument_list "(lVar9)" ( identifier ))) ;) (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" identifier = number_literal) ;) }) (else_clause "else {\n      while (2 < iVar5) {\n        FUN_0012722e(lVar12,iVar5);\n        lVar10 = (long)iVar5;\n        iVar4 = iVar4 - iVar5;\n        iVar5 = FUN_00128918(lVar11 + lVar10,iVar4);\n        lVar11 = lVar11 + lVar10;\n      }\n      if (iVar5 == 2) {\n        FUN_0012722e(lVar12,2);\n        FUN_00128b92(param_1);\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }\n      else {\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }\n    }" else (compound_statement "{\n      while (2 < iVar5) {\n        FUN_0012722e(lVar12,iVar5);\n        lVar10 = (long)iVar5;\n        iVar4 = iVar4 - iVar5;\n        iVar5 = FUN_00128918(lVar11 + lVar10,iVar4);\n        lVar11 = lVar11 + lVar10;\n      }\n      if (iVar5 == 2) {\n        FUN_0012722e(lVar12,2);\n        FUN_00128b92(param_1);\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }\n      else {\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }\n    }" { (while_statement "while (2 < iVar5) {\n        FUN_0012722e(lVar12,iVar5);\n        lVar10 = (long)iVar5;\n        iVar4 = iVar4 - iVar5;\n        iVar5 = FUN_00128918(lVar11 + lVar10,iVar4);\n        lVar11 = lVar11 + lVar10;\n      }" while (parenthesized_expression "(2 < iVar5)" ( (binary_expression "2 < iVar5" number_literal < identifier) )) (compound_statement "{\n        FUN_0012722e(lVar12,iVar5);\n        lVar10 = (long)iVar5;\n        iVar4 = iVar4 - iVar5;\n        iVar5 = FUN_00128918(lVar11 + lVar10,iVar4);\n        lVar11 = lVar11 + lVar10;\n      }" { (expression_statement "FUN_0012722e(lVar12,iVar5);" (call_expression "FUN_0012722e(lVar12,iVar5)" identifier (argument_list "(lVar12,iVar5)" ( identifier , identifier ))) ;) (expression_statement "lVar10 = (long)iVar5;" (assignment_expression "lVar10 = (long)iVar5" identifier = (cast_expression "(long)iVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (expression_statement "iVar4 = iVar4 - iVar5;" (assignment_expression "iVar4 = iVar4 - iVar5" identifier = (binary_expression "iVar4 - iVar5" identifier - identifier)) ;) (expression_statement "iVar5 = FUN_00128918(lVar11 + lVar10,iVar4);" (assignment_expression "iVar5 = FUN_00128918(lVar11 + lVar10,iVar4)" identifier = (call_expression "FUN_00128918(lVar11 + lVar10,iVar4)" identifier (argument_list "(lVar11 + lVar10,iVar4)" ( (binary_expression "lVar11 + lVar10" identifier + identifier) , identifier )))) ;) (expression_statement "lVar11 = lVar11 + lVar10;" (assignment_expression "lVar11 = lVar11 + lVar10" identifier = (binary_expression "lVar11 + lVar10" identifier + identifier)) ;) })) (if_statement "if (iVar5 == 2) {\n        FUN_0012722e(lVar12,2);\n        FUN_00128b92(param_1);\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }\n      else {\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }" if (parenthesized_expression "(iVar5 == 2)" ( (binary_expression "iVar5 == 2" identifier == number_literal) )) (compound_statement "{\n        FUN_0012722e(lVar12,2);\n        FUN_00128b92(param_1);\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }" { (expression_statement "FUN_0012722e(lVar12,2);" (call_expression "FUN_0012722e(lVar12,2)" identifier (argument_list "(lVar12,2)" ( identifier , number_literal ))) ;) (expression_statement "FUN_00128b92(param_1);" (call_expression "FUN_00128b92(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "FUN_00127101(lVar9);" (call_expression "FUN_00127101(lVar9)" identifier (argument_list "(lVar9)" ( identifier ))) ;) (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" identifier = number_literal) ;) }) (else_clause "else {\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }" else (compound_statement "{\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }" { (expression_statement "FUN_00127101(lVar9);" (call_expression "FUN_00127101(lVar9)" identifier (argument_list "(lVar9)" ( identifier ))) ;) (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" identifier = number_literal) ;) }))) }))) }) (else_clause "else {\nLAB_00128d56:\n    (**(code **)(**(long **)(param_1 + 0x18) + 8))\n              (*(long **)(param_1 + 0x18),"Proxy error: unexpected proxy error",0x1f41,0);\n    uVar3 = 1;\n  }" else (compound_statement "{\nLAB_00128d56:\n    (**(code **)(**(long **)(param_1 + 0x18) + 8))\n              (*(long **)(param_1 + 0x18),"Proxy error: unexpected proxy error",0x1f41,0);\n    uVar3 = 1;\n  }" { (labeled_statement "LAB_00128d56:\n    (**(code **)(**(long **)(param_1 + 0x18) + 8))\n              (*(long **)(param_1 + 0x18),"Proxy error: unexpected proxy error",0x1f41,0);" statement_identifier : (expression_statement "(**(code **)(**(long **)(param_1 + 0x18) + 8))\n              (*(long **)(param_1 + 0x18),"Proxy error: unexpected proxy error",0x1f41,0);" (call_expression "(**(code **)(**(long **)(param_1 + 0x18) + 8))\n              (*(long **)(param_1 + 0x18),"Proxy error: unexpected proxy error",0x1f41,0)" (parenthesized_expression "(**(code **)(**(long **)(param_1 + 0x18) + 8))" ( (pointer_expression "**(code **)(**(long **)(param_1 + 0x18) + 8)" * (pointer_expression "*(code **)(**(long **)(param_1 + 0x18) + 8)" * (cast_expression "(code **)(**(long **)(param_1 + 0x18) + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(long **)(param_1 + 0x18) + 8)" ( (binary_expression "**(long **)(param_1 + 0x18) + 8" (pointer_expression "**(long **)(param_1 + 0x18)" * (pointer_expression "*(long **)(param_1 + 0x18)" * (cast_expression "(long **)(param_1 + 0x18)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(long **)(param_1 + 0x18),"Proxy error: unexpected proxy error",0x1f41,0)" ( (pointer_expression "*(long **)(param_1 + 0x18)" * (cast_expression "(long **)(param_1 + 0x18)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) , (string_literal ""Proxy error: unexpected proxy error"" " string_content ") , number_literal , number_literal ))) ;)) (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" identifier = number_literal) ;) }))) (labeled_statement "LAB_00128d76:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }" statement_identifier : (if_statement "if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }" if (parenthesized_expression "(local_40 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_40 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return uVar3;\n  }" { (return_statement "return uVar3;" return identifier ;) }))) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nint proxy_http_negotiate(Proxy_Socket p,int change)\n\n{\n  bufchain *pbVar1;\n  char cVar2;\n  uchar uVar3;\n  long lVar4;\n  int n;\n  long lVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  uchar *ptr;\n  char *pcVar9;\n  long lVar10;\n  char *pcVar11;\n  uchar *puVar12;\n  long in_FS_OFFSET;\n  byte bVar13;\n  int min_ver;\n  int maj_ver;\n  int status;\n  char dest [512];\n  \n  bVar13 = 0;\n  lVar4 = *(long *)(in_FS_OFFSET + 0x28);\n  iVar6 = p->state;\n  if (iVar6 == -1) {\n    sk_getaddr(p->remote_addr,dest,0x200);\n    pcVar9 = dupprintf("CONNECT %s:%i HTTP/1.1\r\nHost: %s:%i\r\n",dest,(ulong)(uint)p->remote_port,\n                       dest,(ulong)(uint)p->remote_port);\n    lVar10 = -1;\n    pcVar11 = pcVar9;\n    do {\n      if (lVar10 == 0) break;\n      lVar10 = lVar10 + -1;\n      cVar2 = *pcVar11;\n      pcVar11 = pcVar11 + (ulong)bVar13 * -2 + 1;\n    } while (cVar2 != '\0');\n    (*(*p->sub_socket)->write)(p->sub_socket,pcVar9,~(uint)lVar10 - 1);\n    safefree(pcVar9);\n    pcVar11 = conf_get_str(p->conf,0x10);\n    pcVar9 = conf_get_str(p->conf,0x11);\n    if ((*pcVar11 != '\0') || (*pcVar9 != '\0')) {\n      ptr = (uchar *)dupprintf("%s:%s",pcVar11,pcVar9);\n      lVar10 = -1;\n      puVar12 = ptr;\n      do {\n        if (lVar10 == 0) break;\n        lVar10 = lVar10 + -1;\n        uVar3 = *puVar12;\n        puVar12 = puVar12 + (ulong)bVar13 * -2 + 1;\n      } while (uVar3 != '\0');\n      iVar6 = ~(uint)lVar10 - 1;\n      pcVar9 = (char *)safemalloc((long)((iVar6 * 4) / 3 + 100),1);\n      builtin_strncpy(pcVar9,"Proxy-Authorization: Basic ",0x1c);\n      lVar10 = -1;\n      pcVar11 = pcVar9;\n      do {\n        if (lVar10 == 0) break;\n        lVar10 = lVar10 + -1;\n        cVar2 = *pcVar11;\n        pcVar11 = pcVar11 + (ulong)bVar13 * -2 + 1;\n      } while (cVar2 != '\0');\n      iVar7 = ~(uint)lVar10 - 1;\n      if (0 < iVar6) {\n        pcVar11 = pcVar9 + iVar7;\n        iVar8 = 0;\n        puVar12 = ptr;\n        do {\n          n = iVar6 - iVar8;\n          if (3 < iVar6 - iVar8) {\n            n = 3;\n          }\n          base64_encode_atom(puVar12,n,pcVar11);\n          iVar8 = iVar8 + 3;\n          iVar7 = iVar7 + 4;\n          puVar12 = puVar12 + 3;\n          pcVar11 = pcVar11 + 4;\n        } while (iVar8 < iVar6);\n      }\n      pcVar11 = pcVar9 + iVar7;\n      pcVar11[0] = '\r';\n      pcVar11[1] = '\n';\n      pcVar11[2] = '\0';\n      lVar10 = -1;\n      pcVar11 = pcVar9;\n      do {\n        if (lVar10 == 0) break;\n        lVar10 = lVar10 + -1;\n        cVar2 = *pcVar11;\n        pcVar11 = pcVar11 + (ulong)bVar13 * -2 + 1;\n      } while (cVar2 != '\0');\n      (*(*p->sub_socket)->write)(p->sub_socket,pcVar9,~(uint)lVar10 - 1);\n      safefree(ptr);\n      safefree(pcVar9);\n    }\n    (*(*p->sub_socket)->write)(p->sub_socket,"\r\n",2);\n    p->state = 1;\n    iVar6 = 0;\n    goto LAB_00128d76;\n  }\n  if (change == 0) {\n    (*(*p->plug)->closing)\n              (p->plug,p->closing_error_msg,p->closing_error_code,p->closing_calling_back);\n    iVar6 = 0;\n    goto LAB_00128d76;\n  }\n  if (change == 1) {\n    iVar6 = 0;\n    goto LAB_00128d76;\n  }\n  if (change == 3) {\n    iVar6 = (*(*p->plug)->accepting)\n                      (p->plug,p->accepting_constructor,(accept_ctx_t)(p->accepting_ctx).p);\n    goto LAB_00128d76;\n  }\n  if (change == 2) {\n    if (iVar6 == 1) {\n      pbVar1 = &p->pending_input_data;\n      iVar6 = bufchain_size(pbVar1);\n      if (iVar6 < 1) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("len > 0","proxy.c",0x2af,"proxy_http_negotiate");\n      }\n      pcVar11 = (char *)safemalloc((long)(iVar6 + 1),1);\n      bufchain_fetch(pbVar1,pcVar11,iVar6);\n      pcVar11[iVar6] = '\0';\n      iVar7 = get_line_end(pcVar11,iVar6);\n      iVar6 = 1;\n      if (iVar7 < 0) {\n        safefree(pcVar11);\n        goto LAB_00128d76;\n      }\n      status = -1;\n      iVar8 = __isoc99_sscanf(pcVar11,"HTTP/%i.%i %n",&maj_ver,&min_ver,&status);\n      if ((iVar8 < 2) || (status == -1)) {\n        (*(*p->plug)->closing)(p->plug,"Proxy error: HTTP response was absent",8000,0);\n        safefree(pcVar11);\n        goto LAB_00128d76;\n      }\n      bufchain_consume(pbVar1,iVar7);\n      if (pcVar11[status] != '2') {\n        pcVar11[iVar7] = '\0';\n        if ((status < iVar7) &&\n           ((pcVar11[(long)iVar7 + -1] == '\r' || (pcVar11[(long)iVar7 + -1] == '\n')))) {\n          lVar10 = (long)(iVar7 + -1);\n          do {\n            pcVar11[lVar10] = '\0';\n            if ((int)lVar10 <= status) break;\n            lVar5 = lVar10 + -1;\n            lVar10 = lVar10 + -1;\n          } while ((pcVar11[lVar5] == '\r') || (pcVar11[lVar5] == '\n'));\n        }\n        pcVar9 = dupprintf("Proxy error: %s",pcVar11 + status);\n        (*(*p->plug)->closing)(p->plug,pcVar9,8000,0);\n        safefree(pcVar9);\n        safefree(pcVar11);\n        goto LAB_00128d76;\n      }\n      safefree(pcVar11);\n      p->state = 2;\n    }\n    else if (iVar6 != 2) goto LAB_00128d56;\n    pbVar1 = &p->pending_input_data;\n    iVar6 = bufchain_size(pbVar1);\n    if (iVar6 < 1) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("len > 0","proxy.c",0x2e5,"proxy_http_negotiate");\n    }\n    pcVar9 = (char *)safemalloc((long)iVar6,1);\n    bufchain_fetch(pbVar1,pcVar9,iVar6);\n    iVar7 = get_line_end(pcVar9,iVar6);\n    pcVar11 = pcVar9;\n    if (iVar7 < 0) {\n      safefree(pcVar9);\n      iVar6 = 1;\n    }\n    else {\n      while (2 < iVar7) {\n        bufchain_consume(pbVar1,iVar7);\n        lVar10 = (long)iVar7;\n        iVar6 = iVar6 - iVar7;\n        iVar7 = get_line_end(pcVar11 + lVar10,iVar6);\n        pcVar11 = pcVar11 + lVar10;\n      }\n      if (iVar7 == 2) {\n        bufchain_consume(pbVar1,2);\n        proxy_activate(p);\n        safefree(pcVar9);\n        iVar6 = 1;\n      }\n      else {\n        safefree(pcVar9);\n        iVar6 = 1;\n      }\n    }\n  }\n  else {\nLAB_00128d56:\n    (*(*p->plug)->closing)(p->plug,"Proxy error: unexpected proxy error",0x1f41,0);\n    iVar6 = 1;\n  }\nLAB_00128d76:\n  if (lVar4 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar6;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" comment (function_definition "int proxy_http_negotiate(Proxy_Socket p,int change)\n\n{\n  bufchain *pbVar1;\n  char cVar2;\n  uchar uVar3;\n  long lVar4;\n  int n;\n  long lVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  uchar *ptr;\n  char *pcVar9;\n  long lVar10;\n  char *pcVar11;\n  uchar *puVar12;\n  long in_FS_OFFSET;\n  byte bVar13;\n  int min_ver;\n  int maj_ver;\n  int status;\n  char dest [512];\n  \n  bVar13 = 0;\n  lVar4 = *(long *)(in_FS_OFFSET + 0x28);\n  iVar6 = p->state;\n  if (iVar6 == -1) {\n    sk_getaddr(p->remote_addr,dest,0x200);\n    pcVar9 = dupprintf("CONNECT %s:%i HTTP/1.1\r\nHost: %s:%i\r\n",dest,(ulong)(uint)p->remote_port,\n                       dest,(ulong)(uint)p->remote_port);\n    lVar10 = -1;\n    pcVar11 = pcVar9;\n    do {\n      if (lVar10 == 0) break;\n      lVar10 = lVar10 + -1;\n      cVar2 = *pcVar11;\n      pcVar11 = pcVar11 + (ulong)bVar13 * -2 + 1;\n    } while (cVar2 != '\0');\n    (*(*p->sub_socket)->write)(p->sub_socket,pcVar9,~(uint)lVar10 - 1);\n    safefree(pcVar9);\n    pcVar11 = conf_get_str(p->conf,0x10);\n    pcVar9 = conf_get_str(p->conf,0x11);\n    if ((*pcVar11 != '\0') || (*pcVar9 != '\0')) {\n      ptr = (uchar *)dupprintf("%s:%s",pcVar11,pcVar9);\n      lVar10 = -1;\n      puVar12 = ptr;\n      do {\n        if (lVar10 == 0) break;\n        lVar10 = lVar10 + -1;\n        uVar3 = *puVar12;\n        puVar12 = puVar12 + (ulong)bVar13 * -2 + 1;\n      } while (uVar3 != '\0');\n      iVar6 = ~(uint)lVar10 - 1;\n      pcVar9 = (char *)safemalloc((long)((iVar6 * 4) / 3 + 100),1);\n      builtin_strncpy(pcVar9,"Proxy-Authorization: Basic ",0x1c);\n      lVar10 = -1;\n      pcVar11 = pcVar9;\n      do {\n        if (lVar10 == 0) break;\n        lVar10 = lVar10 + -1;\n        cVar2 = *pcVar11;\n        pcVar11 = pcVar11 + (ulong)bVar13 * -2 + 1;\n      } while (cVar2 != '\0');\n      iVar7 = ~(uint)lVar10 - 1;\n      if (0 < iVar6) {\n        pcVar11 = pcVar9 + iVar7;\n        iVar8 = 0;\n        puVar12 = ptr;\n        do {\n          n = iVar6 - iVar8;\n          if (3 < iVar6 - iVar8) {\n            n = 3;\n          }\n          base64_encode_atom(puVar12,n,pcVar11);\n          iVar8 = iVar8 + 3;\n          iVar7 = iVar7 + 4;\n          puVar12 = puVar12 + 3;\n          pcVar11 = pcVar11 + 4;\n        } while (iVar8 < iVar6);\n      }\n      pcVar11 = pcVar9 + iVar7;\n      pcVar11[0] = '\r';\n      pcVar11[1] = '\n';\n      pcVar11[2] = '\0';\n      lVar10 = -1;\n      pcVar11 = pcVar9;\n      do {\n        if (lVar10 == 0) break;\n        lVar10 = lVar10 + -1;\n        cVar2 = *pcVar11;\n        pcVar11 = pcVar11 + (ulong)bVar13 * -2 + 1;\n      } while (cVar2 != '\0');\n      (*(*p->sub_socket)->write)(p->sub_socket,pcVar9,~(uint)lVar10 - 1);\n      safefree(ptr);\n      safefree(pcVar9);\n    }\n    (*(*p->sub_socket)->write)(p->sub_socket,"\r\n",2);\n    p->state = 1;\n    iVar6 = 0;\n    goto LAB_00128d76;\n  }\n  if (change == 0) {\n    (*(*p->plug)->closing)\n              (p->plug,p->closing_error_msg,p->closing_error_code,p->closing_calling_back);\n    iVar6 = 0;\n    goto LAB_00128d76;\n  }\n  if (change == 1) {\n    iVar6 = 0;\n    goto LAB_00128d76;\n  }\n  if (change == 3) {\n    iVar6 = (*(*p->plug)->accepting)\n                      (p->plug,p->accepting_constructor,(accept_ctx_t)(p->accepting_ctx).p);\n    goto LAB_00128d76;\n  }\n  if (change == 2) {\n    if (iVar6 == 1) {\n      pbVar1 = &p->pending_input_data;\n      iVar6 = bufchain_size(pbVar1);\n      if (iVar6 < 1) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("len > 0","proxy.c",0x2af,"proxy_http_negotiate");\n      }\n      pcVar11 = (char *)safemalloc((long)(iVar6 + 1),1);\n      bufchain_fetch(pbVar1,pcVar11,iVar6);\n      pcVar11[iVar6] = '\0';\n      iVar7 = get_line_end(pcVar11,iVar6);\n      iVar6 = 1;\n      if (iVar7 < 0) {\n        safefree(pcVar11);\n        goto LAB_00128d76;\n      }\n      status = -1;\n      iVar8 = __isoc99_sscanf(pcVar11,"HTTP/%i.%i %n",&maj_ver,&min_ver,&status);\n      if ((iVar8 < 2) || (status == -1)) {\n        (*(*p->plug)->closing)(p->plug,"Proxy error: HTTP response was absent",8000,0);\n        safefree(pcVar11);\n        goto LAB_00128d76;\n      }\n      bufchain_consume(pbVar1,iVar7);\n      if (pcVar11[status] != '2') {\n        pcVar11[iVar7] = '\0';\n        if ((status < iVar7) &&\n           ((pcVar11[(long)iVar7 + -1] == '\r' || (pcVar11[(long)iVar7 + -1] == '\n')))) {\n          lVar10 = (long)(iVar7 + -1);\n          do {\n            pcVar11[lVar10] = '\0';\n            if ((int)lVar10 <= status) break;\n            lVar5 = lVar10 + -1;\n            lVar10 = lVar10 + -1;\n          } while ((pcVar11[lVar5] == '\r') || (pcVar11[lVar5] == '\n'));\n        }\n        pcVar9 = dupprintf("Proxy error: %s",pcVar11 + status);\n        (*(*p->plug)->closing)(p->plug,pcVar9,8000,0);\n        safefree(pcVar9);\n        safefree(pcVar11);\n        goto LAB_00128d76;\n      }\n      safefree(pcVar11);\n      p->state = 2;\n    }\n    else if (iVar6 != 2) goto LAB_00128d56;\n    pbVar1 = &p->pending_input_data;\n    iVar6 = bufchain_size(pbVar1);\n    if (iVar6 < 1) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("len > 0","proxy.c",0x2e5,"proxy_http_negotiate");\n    }\n    pcVar9 = (char *)safemalloc((long)iVar6,1);\n    bufchain_fetch(pbVar1,pcVar9,iVar6);\n    iVar7 = get_line_end(pcVar9,iVar6);\n    pcVar11 = pcVar9;\n    if (iVar7 < 0) {\n      safefree(pcVar9);\n      iVar6 = 1;\n    }\n    else {\n      while (2 < iVar7) {\n        bufchain_consume(pbVar1,iVar7);\n        lVar10 = (long)iVar7;\n        iVar6 = iVar6 - iVar7;\n        iVar7 = get_line_end(pcVar11 + lVar10,iVar6);\n        pcVar11 = pcVar11 + lVar10;\n      }\n      if (iVar7 == 2) {\n        bufchain_consume(pbVar1,2);\n        proxy_activate(p);\n        safefree(pcVar9);\n        iVar6 = 1;\n      }\n      else {\n        safefree(pcVar9);\n        iVar6 = 1;\n      }\n    }\n  }\n  else {\nLAB_00128d56:\n    (*(*p->plug)->closing)(p->plug,"Proxy error: unexpected proxy error",0x1f41,0);\n    iVar6 = 1;\n  }\nLAB_00128d76:\n  if (lVar4 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar6;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" primitive_type (function_declarator "proxy_http_negotiate(Proxy_Socket p,int change)" identifier (parameter_list "(Proxy_Socket p,int change)" ( (parameter_declaration "Proxy_Socket p" type_identifier identifier) , (parameter_declaration "int change" primitive_type identifier) ))) (compound_statement "{\n  bufchain *pbVar1;\n  char cVar2;\n  uchar uVar3;\n  long lVar4;\n  int n;\n  long lVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  uchar *ptr;\n  char *pcVar9;\n  long lVar10;\n  char *pcVar11;\n  uchar *puVar12;\n  long in_FS_OFFSET;\n  byte bVar13;\n  int min_ver;\n  int maj_ver;\n  int status;\n  char dest [512];\n  \n  bVar13 = 0;\n  lVar4 = *(long *)(in_FS_OFFSET + 0x28);\n  iVar6 = p->state;\n  if (iVar6 == -1) {\n    sk_getaddr(p->remote_addr,dest,0x200);\n    pcVar9 = dupprintf("CONNECT %s:%i HTTP/1.1\r\nHost: %s:%i\r\n",dest,(ulong)(uint)p->remote_port,\n                       dest,(ulong)(uint)p->remote_port);\n    lVar10 = -1;\n    pcVar11 = pcVar9;\n    do {\n      if (lVar10 == 0) break;\n      lVar10 = lVar10 + -1;\n      cVar2 = *pcVar11;\n      pcVar11 = pcVar11 + (ulong)bVar13 * -2 + 1;\n    } while (cVar2 != '\0');\n    (*(*p->sub_socket)->write)(p->sub_socket,pcVar9,~(uint)lVar10 - 1);\n    safefree(pcVar9);\n    pcVar11 = conf_get_str(p->conf,0x10);\n    pcVar9 = conf_get_str(p->conf,0x11);\n    if ((*pcVar11 != '\0') || (*pcVar9 != '\0')) {\n      ptr = (uchar *)dupprintf("%s:%s",pcVar11,pcVar9);\n      lVar10 = -1;\n      puVar12 = ptr;\n      do {\n        if (lVar10 == 0) break;\n        lVar10 = lVar10 + -1;\n        uVar3 = *puVar12;\n        puVar12 = puVar12 + (ulong)bVar13 * -2 + 1;\n      } while (uVar3 != '\0');\n      iVar6 = ~(uint)lVar10 - 1;\n      pcVar9 = (char *)safemalloc((long)((iVar6 * 4) / 3 + 100),1);\n      builtin_strncpy(pcVar9,"Proxy-Authorization: Basic ",0x1c);\n      lVar10 = -1;\n      pcVar11 = pcVar9;\n      do {\n        if (lVar10 == 0) break;\n        lVar10 = lVar10 + -1;\n        cVar2 = *pcVar11;\n        pcVar11 = pcVar11 + (ulong)bVar13 * -2 + 1;\n      } while (cVar2 != '\0');\n      iVar7 = ~(uint)lVar10 - 1;\n      if (0 < iVar6) {\n        pcVar11 = pcVar9 + iVar7;\n        iVar8 = 0;\n        puVar12 = ptr;\n        do {\n          n = iVar6 - iVar8;\n          if (3 < iVar6 - iVar8) {\n            n = 3;\n          }\n          base64_encode_atom(puVar12,n,pcVar11);\n          iVar8 = iVar8 + 3;\n          iVar7 = iVar7 + 4;\n          puVar12 = puVar12 + 3;\n          pcVar11 = pcVar11 + 4;\n        } while (iVar8 < iVar6);\n      }\n      pcVar11 = pcVar9 + iVar7;\n      pcVar11[0] = '\r';\n      pcVar11[1] = '\n';\n      pcVar11[2] = '\0';\n      lVar10 = -1;\n      pcVar11 = pcVar9;\n      do {\n        if (lVar10 == 0) break;\n        lVar10 = lVar10 + -1;\n        cVar2 = *pcVar11;\n        pcVar11 = pcVar11 + (ulong)bVar13 * -2 + 1;\n      } while (cVar2 != '\0');\n      (*(*p->sub_socket)->write)(p->sub_socket,pcVar9,~(uint)lVar10 - 1);\n      safefree(ptr);\n      safefree(pcVar9);\n    }\n    (*(*p->sub_socket)->write)(p->sub_socket,"\r\n",2);\n    p->state = 1;\n    iVar6 = 0;\n    goto LAB_00128d76;\n  }\n  if (change == 0) {\n    (*(*p->plug)->closing)\n              (p->plug,p->closing_error_msg,p->closing_error_code,p->closing_calling_back);\n    iVar6 = 0;\n    goto LAB_00128d76;\n  }\n  if (change == 1) {\n    iVar6 = 0;\n    goto LAB_00128d76;\n  }\n  if (change == 3) {\n    iVar6 = (*(*p->plug)->accepting)\n                      (p->plug,p->accepting_constructor,(accept_ctx_t)(p->accepting_ctx).p);\n    goto LAB_00128d76;\n  }\n  if (change == 2) {\n    if (iVar6 == 1) {\n      pbVar1 = &p->pending_input_data;\n      iVar6 = bufchain_size(pbVar1);\n      if (iVar6 < 1) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("len > 0","proxy.c",0x2af,"proxy_http_negotiate");\n      }\n      pcVar11 = (char *)safemalloc((long)(iVar6 + 1),1);\n      bufchain_fetch(pbVar1,pcVar11,iVar6);\n      pcVar11[iVar6] = '\0';\n      iVar7 = get_line_end(pcVar11,iVar6);\n      iVar6 = 1;\n      if (iVar7 < 0) {\n        safefree(pcVar11);\n        goto LAB_00128d76;\n      }\n      status = -1;\n      iVar8 = __isoc99_sscanf(pcVar11,"HTTP/%i.%i %n",&maj_ver,&min_ver,&status);\n      if ((iVar8 < 2) || (status == -1)) {\n        (*(*p->plug)->closing)(p->plug,"Proxy error: HTTP response was absent",8000,0);\n        safefree(pcVar11);\n        goto LAB_00128d76;\n      }\n      bufchain_consume(pbVar1,iVar7);\n      if (pcVar11[status] != '2') {\n        pcVar11[iVar7] = '\0';\n        if ((status < iVar7) &&\n           ((pcVar11[(long)iVar7 + -1] == '\r' || (pcVar11[(long)iVar7 + -1] == '\n')))) {\n          lVar10 = (long)(iVar7 + -1);\n          do {\n            pcVar11[lVar10] = '\0';\n            if ((int)lVar10 <= status) break;\n            lVar5 = lVar10 + -1;\n            lVar10 = lVar10 + -1;\n          } while ((pcVar11[lVar5] == '\r') || (pcVar11[lVar5] == '\n'));\n        }\n        pcVar9 = dupprintf("Proxy error: %s",pcVar11 + status);\n        (*(*p->plug)->closing)(p->plug,pcVar9,8000,0);\n        safefree(pcVar9);\n        safefree(pcVar11);\n        goto LAB_00128d76;\n      }\n      safefree(pcVar11);\n      p->state = 2;\n    }\n    else if (iVar6 != 2) goto LAB_00128d56;\n    pbVar1 = &p->pending_input_data;\n    iVar6 = bufchain_size(pbVar1);\n    if (iVar6 < 1) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("len > 0","proxy.c",0x2e5,"proxy_http_negotiate");\n    }\n    pcVar9 = (char *)safemalloc((long)iVar6,1);\n    bufchain_fetch(pbVar1,pcVar9,iVar6);\n    iVar7 = get_line_end(pcVar9,iVar6);\n    pcVar11 = pcVar9;\n    if (iVar7 < 0) {\n      safefree(pcVar9);\n      iVar6 = 1;\n    }\n    else {\n      while (2 < iVar7) {\n        bufchain_consume(pbVar1,iVar7);\n        lVar10 = (long)iVar7;\n        iVar6 = iVar6 - iVar7;\n        iVar7 = get_line_end(pcVar11 + lVar10,iVar6);\n        pcVar11 = pcVar11 + lVar10;\n      }\n      if (iVar7 == 2) {\n        bufchain_consume(pbVar1,2);\n        proxy_activate(p);\n        safefree(pcVar9);\n        iVar6 = 1;\n      }\n      else {\n        safefree(pcVar9);\n        iVar6 = 1;\n      }\n    }\n  }\n  else {\nLAB_00128d56:\n    (*(*p->plug)->closing)(p->plug,"Proxy error: unexpected proxy error",0x1f41,0);\n    iVar6 = 1;\n  }\nLAB_00128d76:\n  if (lVar4 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar6;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "bufchain *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "uchar uVar3;" type_identifier identifier ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "int n;" primitive_type identifier ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "uchar *ptr;" type_identifier (pointer_declarator "*ptr" * identifier) ;) (declaration "char *pcVar9;" primitive_type (pointer_declarator "*pcVar9" * identifier) ;) (declaration "long lVar10;" (sized_type_specifier "long" long) identifier ;) (declaration "char *pcVar11;" primitive_type (pointer_declarator "*pcVar11" * identifier) ;) (declaration "uchar *puVar12;" type_identifier (pointer_declarator "*puVar12" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "byte bVar13;" type_identifier identifier ;) (declaration "int min_ver;" primitive_type identifier ;) (declaration "int maj_ver;" primitive_type identifier ;) (declaration "int status;" primitive_type identifier ;) (declaration "char dest [512];" primitive_type (array_declarator "dest [512]" identifier [ number_literal ]) ;) (expression_statement "bVar13 = 0;" (assignment_expression "bVar13 = 0" identifier = number_literal) ;) (expression_statement "lVar4 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "lVar4 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "iVar6 = p->state;" (assignment_expression "iVar6 = p->state" identifier = (field_expression "p->state" identifier -> field_identifier)) ;) (if_statement "if (iVar6 == -1) {\n    sk_getaddr(p->remote_addr,dest,0x200);\n    pcVar9 = dupprintf("CONNECT %s:%i HTTP/1.1\r\nHost: %s:%i\r\n",dest,(ulong)(uint)p->remote_port,\n                       dest,(ulong)(uint)p->remote_port);\n    lVar10 = -1;\n    pcVar11 = pcVar9;\n    do {\n      if (lVar10 == 0) break;\n      lVar10 = lVar10 + -1;\n      cVar2 = *pcVar11;\n      pcVar11 = pcVar11 + (ulong)bVar13 * -2 + 1;\n    } while (cVar2 != '\0');\n    (*(*p->sub_socket)->write)(p->sub_socket,pcVar9,~(uint)lVar10 - 1);\n    safefree(pcVar9);\n    pcVar11 = conf_get_str(p->conf,0x10);\n    pcVar9 = conf_get_str(p->conf,0x11);\n    if ((*pcVar11 != '\0') || (*pcVar9 != '\0')) {\n      ptr = (uchar *)dupprintf("%s:%s",pcVar11,pcVar9);\n      lVar10 = -1;\n      puVar12 = ptr;\n      do {\n        if (lVar10 == 0) break;\n        lVar10 = lVar10 + -1;\n        uVar3 = *puVar12;\n        puVar12 = puVar12 + (ulong)bVar13 * -2 + 1;\n      } while (uVar3 != '\0');\n      iVar6 = ~(uint)lVar10 - 1;\n      pcVar9 = (char *)safemalloc((long)((iVar6 * 4) / 3 + 100),1);\n      builtin_strncpy(pcVar9,"Proxy-Authorization: Basic ",0x1c);\n      lVar10 = -1;\n      pcVar11 = pcVar9;\n      do {\n        if (lVar10 == 0) break;\n        lVar10 = lVar10 + -1;\n        cVar2 = *pcVar11;\n        pcVar11 = pcVar11 + (ulong)bVar13 * -2 + 1;\n      } while (cVar2 != '\0');\n      iVar7 = ~(uint)lVar10 - 1;\n      if (0 < iVar6) {\n        pcVar11 = pcVar9 + iVar7;\n        iVar8 = 0;\n        puVar12 = ptr;\n        do {\n          n = iVar6 - iVar8;\n          if (3 < iVar6 - iVar8) {\n            n = 3;\n          }\n          base64_encode_atom(puVar12,n,pcVar11);\n          iVar8 = iVar8 + 3;\n          iVar7 = iVar7 + 4;\n          puVar12 = puVar12 + 3;\n          pcVar11 = pcVar11 + 4;\n        } while (iVar8 < iVar6);\n      }\n      pcVar11 = pcVar9 + iVar7;\n      pcVar11[0] = '\r';\n      pcVar11[1] = '\n';\n      pcVar11[2] = '\0';\n      lVar10 = -1;\n      pcVar11 = pcVar9;\n      do {\n        if (lVar10 == 0) break;\n        lVar10 = lVar10 + -1;\n        cVar2 = *pcVar11;\n        pcVar11 = pcVar11 + (ulong)bVar13 * -2 + 1;\n      } while (cVar2 != '\0');\n      (*(*p->sub_socket)->write)(p->sub_socket,pcVar9,~(uint)lVar10 - 1);\n      safefree(ptr);\n      safefree(pcVar9);\n    }\n    (*(*p->sub_socket)->write)(p->sub_socket,"\r\n",2);\n    p->state = 1;\n    iVar6 = 0;\n    goto LAB_00128d76;\n  }" if (parenthesized_expression "(iVar6 == -1)" ( (binary_expression "iVar6 == -1" identifier == number_literal) )) (compound_statement "{\n    sk_getaddr(p->remote_addr,dest,0x200);\n    pcVar9 = dupprintf("CONNECT %s:%i HTTP/1.1\r\nHost: %s:%i\r\n",dest,(ulong)(uint)p->remote_port,\n                       dest,(ulong)(uint)p->remote_port);\n    lVar10 = -1;\n    pcVar11 = pcVar9;\n    do {\n      if (lVar10 == 0) break;\n      lVar10 = lVar10 + -1;\n      cVar2 = *pcVar11;\n      pcVar11 = pcVar11 + (ulong)bVar13 * -2 + 1;\n    } while (cVar2 != '\0');\n    (*(*p->sub_socket)->write)(p->sub_socket,pcVar9,~(uint)lVar10 - 1);\n    safefree(pcVar9);\n    pcVar11 = conf_get_str(p->conf,0x10);\n    pcVar9 = conf_get_str(p->conf,0x11);\n    if ((*pcVar11 != '\0') || (*pcVar9 != '\0')) {\n      ptr = (uchar *)dupprintf("%s:%s",pcVar11,pcVar9);\n      lVar10 = -1;\n      puVar12 = ptr;\n      do {\n        if (lVar10 == 0) break;\n        lVar10 = lVar10 + -1;\n        uVar3 = *puVar12;\n        puVar12 = puVar12 + (ulong)bVar13 * -2 + 1;\n      } while (uVar3 != '\0');\n      iVar6 = ~(uint)lVar10 - 1;\n      pcVar9 = (char *)safemalloc((long)((iVar6 * 4) / 3 + 100),1);\n      builtin_strncpy(pcVar9,"Proxy-Authorization: Basic ",0x1c);\n      lVar10 = -1;\n      pcVar11 = pcVar9;\n      do {\n        if (lVar10 == 0) break;\n        lVar10 = lVar10 + -1;\n        cVar2 = *pcVar11;\n        pcVar11 = pcVar11 + (ulong)bVar13 * -2 + 1;\n      } while (cVar2 != '\0');\n      iVar7 = ~(uint)lVar10 - 1;\n      if (0 < iVar6) {\n        pcVar11 = pcVar9 + iVar7;\n        iVar8 = 0;\n        puVar12 = ptr;\n        do {\n          n = iVar6 - iVar8;\n          if (3 < iVar6 - iVar8) {\n            n = 3;\n          }\n          base64_encode_atom(puVar12,n,pcVar11);\n          iVar8 = iVar8 + 3;\n          iVar7 = iVar7 + 4;\n          puVar12 = puVar12 + 3;\n          pcVar11 = pcVar11 + 4;\n        } while (iVar8 < iVar6);\n      }\n      pcVar11 = pcVar9 + iVar7;\n      pcVar11[0] = '\r';\n      pcVar11[1] = '\n';\n      pcVar11[2] = '\0';\n      lVar10 = -1;\n      pcVar11 = pcVar9;\n      do {\n        if (lVar10 == 0) break;\n        lVar10 = lVar10 + -1;\n        cVar2 = *pcVar11;\n        pcVar11 = pcVar11 + (ulong)bVar13 * -2 + 1;\n      } while (cVar2 != '\0');\n      (*(*p->sub_socket)->write)(p->sub_socket,pcVar9,~(uint)lVar10 - 1);\n      safefree(ptr);\n      safefree(pcVar9);\n    }\n    (*(*p->sub_socket)->write)(p->sub_socket,"\r\n",2);\n    p->state = 1;\n    iVar6 = 0;\n    goto LAB_00128d76;\n  }" { (expression_statement "sk_getaddr(p->remote_addr,dest,0x200);" (call_expression "sk_getaddr(p->remote_addr,dest,0x200)" identifier (argument_list "(p->remote_addr,dest,0x200)" ( (field_expression "p->remote_addr" identifier -> field_identifier) , identifier , number_literal ))) ;) (expression_statement "pcVar9 = dupprintf("CONNECT %s:%i HTTP/1.1\r\nHost: %s:%i\r\n",dest,(ulong)(uint)p->remote_port,\n                       dest,(ulong)(uint)p->remote_port);" (assignment_expression "pcVar9 = dupprintf("CONNECT %s:%i HTTP/1.1\r\nHost: %s:%i\r\n",dest,(ulong)(uint)p->remote_port,\n                       dest,(ulong)(uint)p->remote_port)" identifier = (call_expression "dupprintf("CONNECT %s:%i HTTP/1.1\r\nHost: %s:%i\r\n",dest,(ulong)(uint)p->remote_port,\n                       dest,(ulong)(uint)p->remote_port)" identifier (argument_list "("CONNECT %s:%i HTTP/1.1\r\nHost: %s:%i\r\n",dest,(ulong)(uint)p->remote_port,\n                       dest,(ulong)(uint)p->remote_port)" ( (string_literal ""CONNECT %s:%i HTTP/1.1\r\nHost: %s:%i\r\n"" " string_content escape_sequence escape_sequence string_content escape_sequence escape_sequence ") , identifier , (cast_expression "(ulong)(uint)p->remote_port" ( (type_descriptor "ulong" type_identifier) ) (cast_expression "(uint)p->remote_port" ( (type_descriptor "uint" type_identifier) ) (field_expression "p->remote_port" identifier -> field_identifier))) , identifier , (cast_expression "(ulong)(uint)p->remote_port" ( (type_descriptor "ulong" type_identifier) ) (cast_expression "(uint)p->remote_port" ( (type_descriptor "uint" type_identifier) ) (field_expression "p->remote_port" identifier -> field_identifier))) )))) ;) (expression_statement "lVar10 = -1;" (assignment_expression "lVar10 = -1" identifier = number_literal) ;) (expression_statement "pcVar11 = pcVar9;" (assignment_expression "pcVar11 = pcVar9" identifier = identifier) ;) (do_statement "do {\n      if (lVar10 == 0) break;\n      lVar10 = lVar10 + -1;\n      cVar2 = *pcVar11;\n      pcVar11 = pcVar11 + (ulong)bVar13 * -2 + 1;\n    } while (cVar2 != '\0');" do (compound_statement "{\n      if (lVar10 == 0) break;\n      lVar10 = lVar10 + -1;\n      cVar2 = *pcVar11;\n      pcVar11 = pcVar11 + (ulong)bVar13 * -2 + 1;\n    }" { (if_statement "if (lVar10 == 0) break;" if (parenthesized_expression "(lVar10 == 0)" ( (binary_expression "lVar10 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar10 = lVar10 + -1;" (assignment_expression "lVar10 = lVar10 + -1" identifier = (binary_expression "lVar10 + -1" identifier + number_literal)) ;) (expression_statement "cVar2 = *pcVar11;" (assignment_expression "cVar2 = *pcVar11" identifier = (pointer_expression "*pcVar11" * identifier)) ;) (expression_statement "pcVar11 = pcVar11 + (ulong)bVar13 * -2 + 1;" (assignment_expression "pcVar11 = pcVar11 + (ulong)bVar13 * -2 + 1" identifier = (binary_expression "pcVar11 + (ulong)bVar13 * -2 + 1" (binary_expression "pcVar11 + (ulong)bVar13 * -2" identifier + (binary_expression "(ulong)bVar13 * -2" (cast_expression "(ulong)bVar13" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "(*(*p->sub_socket)->write)(p->sub_socket,pcVar9,~(uint)lVar10 - 1);" (call_expression "(*(*p->sub_socket)->write)(p->sub_socket,pcVar9,~(uint)lVar10 - 1)" (parenthesized_expression "(*(*p->sub_socket)->write)" ( (pointer_expression "*(*p->sub_socket)->write" * (field_expression "(*p->sub_socket)->write" (parenthesized_expression "(*p->sub_socket)" ( (pointer_expression "*p->sub_socket" * (field_expression "p->sub_socket" identifier -> field_identifier)) )) -> field_identifier)) )) (argument_list "(p->sub_socket,pcVar9,~(uint)lVar10 - 1)" ( (field_expression "p->sub_socket" identifier -> field_identifier) , identifier , (binary_expression "~(uint)lVar10 - 1" (unary_expression "~(uint)lVar10" ~ (cast_expression "(uint)lVar10" ( (type_descriptor "uint" type_identifier) ) identifier)) - number_literal) ))) ;) (expression_statement "safefree(pcVar9);" (call_expression "safefree(pcVar9)" identifier (argument_list "(pcVar9)" ( identifier ))) ;) (expression_statement "pcVar11 = conf_get_str(p->conf,0x10);" (assignment_expression "pcVar11 = conf_get_str(p->conf,0x10)" identifier = (call_expression "conf_get_str(p->conf,0x10)" identifier (argument_list "(p->conf,0x10)" ( (field_expression "p->conf" identifier -> field_identifier) , number_literal )))) ;) (expression_statement "pcVar9 = conf_get_str(p->conf,0x11);" (assignment_expression "pcVar9 = conf_get_str(p->conf,0x11)" identifier = (call_expression "conf_get_str(p->conf,0x11)" identifier (argument_list "(p->conf,0x11)" ( (field_expression "p->conf" identifier -> field_identifier) , number_literal )))) ;) (if_statement "if ((*pcVar11 != '\0') || (*pcVar9 != '\0')) {\n      ptr = (uchar *)dupprintf("%s:%s",pcVar11,pcVar9);\n      lVar10 = -1;\n      puVar12 = ptr;\n      do {\n        if (lVar10 == 0) break;\n        lVar10 = lVar10 + -1;\n        uVar3 = *puVar12;\n        puVar12 = puVar12 + (ulong)bVar13 * -2 + 1;\n      } while (uVar3 != '\0');\n      iVar6 = ~(uint)lVar10 - 1;\n      pcVar9 = (char *)safemalloc((long)((iVar6 * 4) / 3 + 100),1);\n      builtin_strncpy(pcVar9,"Proxy-Authorization: Basic ",0x1c);\n      lVar10 = -1;\n      pcVar11 = pcVar9;\n      do {\n        if (lVar10 == 0) break;\n        lVar10 = lVar10 + -1;\n        cVar2 = *pcVar11;\n        pcVar11 = pcVar11 + (ulong)bVar13 * -2 + 1;\n      } while (cVar2 != '\0');\n      iVar7 = ~(uint)lVar10 - 1;\n      if (0 < iVar6) {\n        pcVar11 = pcVar9 + iVar7;\n        iVar8 = 0;\n        puVar12 = ptr;\n        do {\n          n = iVar6 - iVar8;\n          if (3 < iVar6 - iVar8) {\n            n = 3;\n          }\n          base64_encode_atom(puVar12,n,pcVar11);\n          iVar8 = iVar8 + 3;\n          iVar7 = iVar7 + 4;\n          puVar12 = puVar12 + 3;\n          pcVar11 = pcVar11 + 4;\n        } while (iVar8 < iVar6);\n      }\n      pcVar11 = pcVar9 + iVar7;\n      pcVar11[0] = '\r';\n      pcVar11[1] = '\n';\n      pcVar11[2] = '\0';\n      lVar10 = -1;\n      pcVar11 = pcVar9;\n      do {\n        if (lVar10 == 0) break;\n        lVar10 = lVar10 + -1;\n        cVar2 = *pcVar11;\n        pcVar11 = pcVar11 + (ulong)bVar13 * -2 + 1;\n      } while (cVar2 != '\0');\n      (*(*p->sub_socket)->write)(p->sub_socket,pcVar9,~(uint)lVar10 - 1);\n      safefree(ptr);\n      safefree(pcVar9);\n    }" if (parenthesized_expression "((*pcVar11 != '\0') || (*pcVar9 != '\0'))" ( (binary_expression "(*pcVar11 != '\0') || (*pcVar9 != '\0')" (parenthesized_expression "(*pcVar11 != '\0')" ( (binary_expression "*pcVar11 != '\0'" (pointer_expression "*pcVar11" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(*pcVar9 != '\0')" ( (binary_expression "*pcVar9 != '\0'" (pointer_expression "*pcVar9" * identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n      ptr = (uchar *)dupprintf("%s:%s",pcVar11,pcVar9);\n      lVar10 = -1;\n      puVar12 = ptr;\n      do {\n        if (lVar10 == 0) break;\n        lVar10 = lVar10 + -1;\n        uVar3 = *puVar12;\n        puVar12 = puVar12 + (ulong)bVar13 * -2 + 1;\n      } while (uVar3 != '\0');\n      iVar6 = ~(uint)lVar10 - 1;\n      pcVar9 = (char *)safemalloc((long)((iVar6 * 4) / 3 + 100),1);\n      builtin_strncpy(pcVar9,"Proxy-Authorization: Basic ",0x1c);\n      lVar10 = -1;\n      pcVar11 = pcVar9;\n      do {\n        if (lVar10 == 0) break;\n        lVar10 = lVar10 + -1;\n        cVar2 = *pcVar11;\n        pcVar11 = pcVar11 + (ulong)bVar13 * -2 + 1;\n      } while (cVar2 != '\0');\n      iVar7 = ~(uint)lVar10 - 1;\n      if (0 < iVar6) {\n        pcVar11 = pcVar9 + iVar7;\n        iVar8 = 0;\n        puVar12 = ptr;\n        do {\n          n = iVar6 - iVar8;\n          if (3 < iVar6 - iVar8) {\n            n = 3;\n          }\n          base64_encode_atom(puVar12,n,pcVar11);\n          iVar8 = iVar8 + 3;\n          iVar7 = iVar7 + 4;\n          puVar12 = puVar12 + 3;\n          pcVar11 = pcVar11 + 4;\n        } while (iVar8 < iVar6);\n      }\n      pcVar11 = pcVar9 + iVar7;\n      pcVar11[0] = '\r';\n      pcVar11[1] = '\n';\n      pcVar11[2] = '\0';\n      lVar10 = -1;\n      pcVar11 = pcVar9;\n      do {\n        if (lVar10 == 0) break;\n        lVar10 = lVar10 + -1;\n        cVar2 = *pcVar11;\n        pcVar11 = pcVar11 + (ulong)bVar13 * -2 + 1;\n      } while (cVar2 != '\0');\n      (*(*p->sub_socket)->write)(p->sub_socket,pcVar9,~(uint)lVar10 - 1);\n      safefree(ptr);\n      safefree(pcVar9);\n    }" { (expression_statement "ptr = (uchar *)dupprintf("%s:%s",pcVar11,pcVar9);" (assignment_expression "ptr = (uchar *)dupprintf("%s:%s",pcVar11,pcVar9)" identifier = (cast_expression "(uchar *)dupprintf("%s:%s",pcVar11,pcVar9)" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "dupprintf("%s:%s",pcVar11,pcVar9)" identifier (argument_list "("%s:%s",pcVar11,pcVar9)" ( (string_literal ""%s:%s"" " string_content ") , identifier , identifier ))))) ;) (expression_statement "lVar10 = -1;" (assignment_expression "lVar10 = -1" identifier = number_literal) ;) (expression_statement "puVar12 = ptr;" (assignment_expression "puVar12 = ptr" identifier = identifier) ;) (do_statement "do {\n        if (lVar10 == 0) break;\n        lVar10 = lVar10 + -1;\n        uVar3 = *puVar12;\n        puVar12 = puVar12 + (ulong)bVar13 * -2 + 1;\n      } while (uVar3 != '\0');" do (compound_statement "{\n        if (lVar10 == 0) break;\n        lVar10 = lVar10 + -1;\n        uVar3 = *puVar12;\n        puVar12 = puVar12 + (ulong)bVar13 * -2 + 1;\n      }" { (if_statement "if (lVar10 == 0) break;" if (parenthesized_expression "(lVar10 == 0)" ( (binary_expression "lVar10 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar10 = lVar10 + -1;" (assignment_expression "lVar10 = lVar10 + -1" identifier = (binary_expression "lVar10 + -1" identifier + number_literal)) ;) (expression_statement "uVar3 = *puVar12;" (assignment_expression "uVar3 = *puVar12" identifier = (pointer_expression "*puVar12" * identifier)) ;) (expression_statement "puVar12 = puVar12 + (ulong)bVar13 * -2 + 1;" (assignment_expression "puVar12 = puVar12 + (ulong)bVar13 * -2 + 1" identifier = (binary_expression "puVar12 + (ulong)bVar13 * -2 + 1" (binary_expression "puVar12 + (ulong)bVar13 * -2" identifier + (binary_expression "(ulong)bVar13 * -2" (cast_expression "(ulong)bVar13" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(uVar3 != '\0')" ( (binary_expression "uVar3 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "iVar6 = ~(uint)lVar10 - 1;" (assignment_expression "iVar6 = ~(uint)lVar10 - 1" identifier = (binary_expression "~(uint)lVar10 - 1" (unary_expression "~(uint)lVar10" ~ (cast_expression "(uint)lVar10" ( (type_descriptor "uint" type_identifier) ) identifier)) - number_literal)) ;) (expression_statement "pcVar9 = (char *)safemalloc((long)((iVar6 * 4) / 3 + 100),1);" (assignment_expression "pcVar9 = (char *)safemalloc((long)((iVar6 * 4) / 3 + 100),1)" identifier = (cast_expression "(char *)safemalloc((long)((iVar6 * 4) / 3 + 100),1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "safemalloc((long)((iVar6 * 4) / 3 + 100),1)" identifier (argument_list "((long)((iVar6 * 4) / 3 + 100),1)" ( (cast_expression "(long)((iVar6 * 4) / 3 + 100)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "((iVar6 * 4) / 3 + 100)" ( (binary_expression "(iVar6 * 4) / 3 + 100" (binary_expression "(iVar6 * 4) / 3" (parenthesized_expression "(iVar6 * 4)" ( (binary_expression "iVar6 * 4" identifier * number_literal) )) / number_literal) + number_literal) ))) , number_literal ))))) ;) (expression_statement "builtin_strncpy(pcVar9,"Proxy-Authorization: Basic ",0x1c);" (call_expression "builtin_strncpy(pcVar9,"Proxy-Authorization: Basic ",0x1c)" identifier (argument_list "(pcVar9,"Proxy-Authorization: Basic ",0x1c)" ( identifier , (string_literal ""Proxy-Authorization: Basic "" " string_content ") , number_literal ))) ;) (expression_statement "lVar10 = -1;" (assignment_expression "lVar10 = -1" identifier = number_literal) ;) (expression_statement "pcVar11 = pcVar9;" (assignment_expression "pcVar11 = pcVar9" identifier = identifier) ;) (do_statement "do {\n        if (lVar10 == 0) break;\n        lVar10 = lVar10 + -1;\n        cVar2 = *pcVar11;\n        pcVar11 = pcVar11 + (ulong)bVar13 * -2 + 1;\n      } while (cVar2 != '\0');" do (compound_statement "{\n        if (lVar10 == 0) break;\n        lVar10 = lVar10 + -1;\n        cVar2 = *pcVar11;\n        pcVar11 = pcVar11 + (ulong)bVar13 * -2 + 1;\n      }" { (if_statement "if (lVar10 == 0) break;" if (parenthesized_expression "(lVar10 == 0)" ( (binary_expression "lVar10 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar10 = lVar10 + -1;" (assignment_expression "lVar10 = lVar10 + -1" identifier = (binary_expression "lVar10 + -1" identifier + number_literal)) ;) (expression_statement "cVar2 = *pcVar11;" (assignment_expression "cVar2 = *pcVar11" identifier = (pointer_expression "*pcVar11" * identifier)) ;) (expression_statement "pcVar11 = pcVar11 + (ulong)bVar13 * -2 + 1;" (assignment_expression "pcVar11 = pcVar11 + (ulong)bVar13 * -2 + 1" identifier = (binary_expression "pcVar11 + (ulong)bVar13 * -2 + 1" (binary_expression "pcVar11 + (ulong)bVar13 * -2" identifier + (binary_expression "(ulong)bVar13 * -2" (cast_expression "(ulong)bVar13" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "iVar7 = ~(uint)lVar10 - 1;" (assignment_expression "iVar7 = ~(uint)lVar10 - 1" identifier = (binary_expression "~(uint)lVar10 - 1" (unary_expression "~(uint)lVar10" ~ (cast_expression "(uint)lVar10" ( (type_descriptor "uint" type_identifier) ) identifier)) - number_literal)) ;) (if_statement "if (0 < iVar6) {\n        pcVar11 = pcVar9 + iVar7;\n        iVar8 = 0;\n        puVar12 = ptr;\n        do {\n          n = iVar6 - iVar8;\n          if (3 < iVar6 - iVar8) {\n            n = 3;\n          }\n          base64_encode_atom(puVar12,n,pcVar11);\n          iVar8 = iVar8 + 3;\n          iVar7 = iVar7 + 4;\n          puVar12 = puVar12 + 3;\n          pcVar11 = pcVar11 + 4;\n        } while (iVar8 < iVar6);\n      }" if (parenthesized_expression "(0 < iVar6)" ( (binary_expression "0 < iVar6" number_literal < identifier) )) (compound_statement "{\n        pcVar11 = pcVar9 + iVar7;\n        iVar8 = 0;\n        puVar12 = ptr;\n        do {\n          n = iVar6 - iVar8;\n          if (3 < iVar6 - iVar8) {\n            n = 3;\n          }\n          base64_encode_atom(puVar12,n,pcVar11);\n          iVar8 = iVar8 + 3;\n          iVar7 = iVar7 + 4;\n          puVar12 = puVar12 + 3;\n          pcVar11 = pcVar11 + 4;\n        } while (iVar8 < iVar6);\n      }" { (expression_statement "pcVar11 = pcVar9 + iVar7;" (assignment_expression "pcVar11 = pcVar9 + iVar7" identifier = (binary_expression "pcVar9 + iVar7" identifier + identifier)) ;) (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) (expression_statement "puVar12 = ptr;" (assignment_expression "puVar12 = ptr" identifier = identifier) ;) (do_statement "do {\n          n = iVar6 - iVar8;\n          if (3 < iVar6 - iVar8) {\n            n = 3;\n          }\n          base64_encode_atom(puVar12,n,pcVar11);\n          iVar8 = iVar8 + 3;\n          iVar7 = iVar7 + 4;\n          puVar12 = puVar12 + 3;\n          pcVar11 = pcVar11 + 4;\n        } while (iVar8 < iVar6);" do (compound_statement "{\n          n = iVar6 - iVar8;\n          if (3 < iVar6 - iVar8) {\n            n = 3;\n          }\n          base64_encode_atom(puVar12,n,pcVar11);\n          iVar8 = iVar8 + 3;\n          iVar7 = iVar7 + 4;\n          puVar12 = puVar12 + 3;\n          pcVar11 = pcVar11 + 4;\n        }" { (expression_statement "n = iVar6 - iVar8;" (assignment_expression "n = iVar6 - iVar8" identifier = (binary_expression "iVar6 - iVar8" identifier - identifier)) ;) (if_statement "if (3 < iVar6 - iVar8) {\n            n = 3;\n          }" if (parenthesized_expression "(3 < iVar6 - iVar8)" ( (binary_expression "3 < iVar6 - iVar8" number_literal < (binary_expression "iVar6 - iVar8" identifier - identifier)) )) (compound_statement "{\n            n = 3;\n          }" { (expression_statement "n = 3;" (assignment_expression "n = 3" identifier = number_literal) ;) })) (expression_statement "base64_encode_atom(puVar12,n,pcVar11);" (call_expression "base64_encode_atom(puVar12,n,pcVar11)" identifier (argument_list "(puVar12,n,pcVar11)" ( identifier , identifier , identifier ))) ;) (expression_statement "iVar8 = iVar8 + 3;" (assignment_expression "iVar8 = iVar8 + 3" identifier = (binary_expression "iVar8 + 3" identifier + number_literal)) ;) (expression_statement "iVar7 = iVar7 + 4;" (assignment_expression "iVar7 = iVar7 + 4" identifier = (binary_expression "iVar7 + 4" identifier + number_literal)) ;) (expression_statement "puVar12 = puVar12 + 3;" (assignment_expression "puVar12 = puVar12 + 3" identifier = (binary_expression "puVar12 + 3" identifier + number_literal)) ;) (expression_statement "pcVar11 = pcVar11 + 4;" (assignment_expression "pcVar11 = pcVar11 + 4" identifier = (binary_expression "pcVar11 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar8 < iVar6)" ( (binary_expression "iVar8 < iVar6" identifier < identifier) )) ;) })) (expression_statement "pcVar11 = pcVar9 + iVar7;" (assignment_expression "pcVar11 = pcVar9 + iVar7" identifier = (binary_expression "pcVar9 + iVar7" identifier + identifier)) ;) (expression_statement "pcVar11[0] = '\r';" (assignment_expression "pcVar11[0] = '\r'" (subscript_expression "pcVar11[0]" identifier [ number_literal ]) = (char_literal "'\r'" ' escape_sequence ')) ;) (expression_statement "pcVar11[1] = '\n';" (assignment_expression "pcVar11[1] = '\n'" (subscript_expression "pcVar11[1]" identifier [ number_literal ]) = (char_literal "'\n'" ' escape_sequence ')) ;) (expression_statement "pcVar11[2] = '\0';" (assignment_expression "pcVar11[2] = '\0'" (subscript_expression "pcVar11[2]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "lVar10 = -1;" (assignment_expression "lVar10 = -1" identifier = number_literal) ;) (expression_statement "pcVar11 = pcVar9;" (assignment_expression "pcVar11 = pcVar9" identifier = identifier) ;) (do_statement "do {\n        if (lVar10 == 0) break;\n        lVar10 = lVar10 + -1;\n        cVar2 = *pcVar11;\n        pcVar11 = pcVar11 + (ulong)bVar13 * -2 + 1;\n      } while (cVar2 != '\0');" do (compound_statement "{\n        if (lVar10 == 0) break;\n        lVar10 = lVar10 + -1;\n        cVar2 = *pcVar11;\n        pcVar11 = pcVar11 + (ulong)bVar13 * -2 + 1;\n      }" { (if_statement "if (lVar10 == 0) break;" if (parenthesized_expression "(lVar10 == 0)" ( (binary_expression "lVar10 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar10 = lVar10 + -1;" (assignment_expression "lVar10 = lVar10 + -1" identifier = (binary_expression "lVar10 + -1" identifier + number_literal)) ;) (expression_statement "cVar2 = *pcVar11;" (assignment_expression "cVar2 = *pcVar11" identifier = (pointer_expression "*pcVar11" * identifier)) ;) (expression_statement "pcVar11 = pcVar11 + (ulong)bVar13 * -2 + 1;" (assignment_expression "pcVar11 = pcVar11 + (ulong)bVar13 * -2 + 1" identifier = (binary_expression "pcVar11 + (ulong)bVar13 * -2 + 1" (binary_expression "pcVar11 + (ulong)bVar13 * -2" identifier + (binary_expression "(ulong)bVar13 * -2" (cast_expression "(ulong)bVar13" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "(*(*p->sub_socket)->write)(p->sub_socket,pcVar9,~(uint)lVar10 - 1);" (call_expression "(*(*p->sub_socket)->write)(p->sub_socket,pcVar9,~(uint)lVar10 - 1)" (parenthesized_expression "(*(*p->sub_socket)->write)" ( (pointer_expression "*(*p->sub_socket)->write" * (field_expression "(*p->sub_socket)->write" (parenthesized_expression "(*p->sub_socket)" ( (pointer_expression "*p->sub_socket" * (field_expression "p->sub_socket" identifier -> field_identifier)) )) -> field_identifier)) )) (argument_list "(p->sub_socket,pcVar9,~(uint)lVar10 - 1)" ( (field_expression "p->sub_socket" identifier -> field_identifier) , identifier , (binary_expression "~(uint)lVar10 - 1" (unary_expression "~(uint)lVar10" ~ (cast_expression "(uint)lVar10" ( (type_descriptor "uint" type_identifier) ) identifier)) - number_literal) ))) ;) (expression_statement "safefree(ptr);" (call_expression "safefree(ptr)" identifier (argument_list "(ptr)" ( identifier ))) ;) (expression_statement "safefree(pcVar9);" (call_expression "safefree(pcVar9)" identifier (argument_list "(pcVar9)" ( identifier ))) ;) })) (expression_statement "(*(*p->sub_socket)->write)(p->sub_socket,"\r\n",2);" (call_expression "(*(*p->sub_socket)->write)(p->sub_socket,"\r\n",2)" (parenthesized_expression "(*(*p->sub_socket)->write)" ( (pointer_expression "*(*p->sub_socket)->write" * (field_expression "(*p->sub_socket)->write" (parenthesized_expression "(*p->sub_socket)" ( (pointer_expression "*p->sub_socket" * (field_expression "p->sub_socket" identifier -> field_identifier)) )) -> field_identifier)) )) (argument_list "(p->sub_socket,"\r\n",2)" ( (field_expression "p->sub_socket" identifier -> field_identifier) , (string_literal ""\r\n"" " escape_sequence escape_sequence ") , number_literal ))) ;) (expression_statement "p->state = 1;" (assignment_expression "p->state = 1" (field_expression "p->state" identifier -> field_identifier) = number_literal) ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00128d76;" goto statement_identifier ;) })) (if_statement "if (change == 0) {\n    (*(*p->plug)->closing)\n              (p->plug,p->closing_error_msg,p->closing_error_code,p->closing_calling_back);\n    iVar6 = 0;\n    goto LAB_00128d76;\n  }" if (parenthesized_expression "(change == 0)" ( (binary_expression "change == 0" identifier == number_literal) )) (compound_statement "{\n    (*(*p->plug)->closing)\n              (p->plug,p->closing_error_msg,p->closing_error_code,p->closing_calling_back);\n    iVar6 = 0;\n    goto LAB_00128d76;\n  }" { (expression_statement "(*(*p->plug)->closing)\n              (p->plug,p->closing_error_msg,p->closing_error_code,p->closing_calling_back);" (call_expression "(*(*p->plug)->closing)\n              (p->plug,p->closing_error_msg,p->closing_error_code,p->closing_calling_back)" (parenthesized_expression "(*(*p->plug)->closing)" ( (pointer_expression "*(*p->plug)->closing" * (field_expression "(*p->plug)->closing" (parenthesized_expression "(*p->plug)" ( (pointer_expression "*p->plug" * (field_expression "p->plug" identifier -> field_identifier)) )) -> field_identifier)) )) (argument_list "(p->plug,p->closing_error_msg,p->closing_error_code,p->closing_calling_back)" ( (field_expression "p->plug" identifier -> field_identifier) , (field_expression "p->closing_error_msg" identifier -> field_identifier) , (field_expression "p->closing_error_code" identifier -> field_identifier) , (field_expression "p->closing_calling_back" identifier -> field_identifier) ))) ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00128d76;" goto statement_identifier ;) })) (if_statement "if (change == 1) {\n    iVar6 = 0;\n    goto LAB_00128d76;\n  }" if (parenthesized_expression "(change == 1)" ( (binary_expression "change == 1" identifier == number_literal) )) (compound_statement "{\n    iVar6 = 0;\n    goto LAB_00128d76;\n  }" { (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00128d76;" goto statement_identifier ;) })) (if_statement "if (change == 3) {\n    iVar6 = (*(*p->plug)->accepting)\n                      (p->plug,p->accepting_constructor,(accept_ctx_t)(p->accepting_ctx).p);\n    goto LAB_00128d76;\n  }" if (parenthesized_expression "(change == 3)" ( (binary_expression "change == 3" identifier == number_literal) )) (compound_statement "{\n    iVar6 = (*(*p->plug)->accepting)\n                      (p->plug,p->accepting_constructor,(accept_ctx_t)(p->accepting_ctx).p);\n    goto LAB_00128d76;\n  }" { (expression_statement "iVar6 = (*(*p->plug)->accepting)\n                      (p->plug,p->accepting_constructor,(accept_ctx_t)(p->accepting_ctx).p);" (assignment_expression "iVar6 = (*(*p->plug)->accepting)\n                      (p->plug,p->accepting_constructor,(accept_ctx_t)(p->accepting_ctx).p)" identifier = (call_expression "(*(*p->plug)->accepting)\n                      (p->plug,p->accepting_constructor,(accept_ctx_t)(p->accepting_ctx).p)" (parenthesized_expression "(*(*p->plug)->accepting)" ( (pointer_expression "*(*p->plug)->accepting" * (field_expression "(*p->plug)->accepting" (parenthesized_expression "(*p->plug)" ( (pointer_expression "*p->plug" * (field_expression "p->plug" identifier -> field_identifier)) )) -> field_identifier)) )) (argument_list "(p->plug,p->accepting_constructor,(accept_ctx_t)(p->accepting_ctx).p)" ( (field_expression "p->plug" identifier -> field_identifier) , (field_expression "p->accepting_constructor" identifier -> field_identifier) , (field_expression "(accept_ctx_t)(p->accepting_ctx).p" (call_expression "(accept_ctx_t)(p->accepting_ctx)" (parenthesized_expression "(accept_ctx_t)" ( identifier )) (argument_list "(p->accepting_ctx)" ( (field_expression "p->accepting_ctx" identifier -> field_identifier) ))) . field_identifier) )))) ;) (goto_statement "goto LAB_00128d76;" goto statement_identifier ;) })) (if_statement "if (change == 2) {\n    if (iVar6 == 1) {\n      pbVar1 = &p->pending_input_data;\n      iVar6 = bufchain_size(pbVar1);\n      if (iVar6 < 1) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("len > 0","proxy.c",0x2af,"proxy_http_negotiate");\n      }\n      pcVar11 = (char *)safemalloc((long)(iVar6 + 1),1);\n      bufchain_fetch(pbVar1,pcVar11,iVar6);\n      pcVar11[iVar6] = '\0';\n      iVar7 = get_line_end(pcVar11,iVar6);\n      iVar6 = 1;\n      if (iVar7 < 0) {\n        safefree(pcVar11);\n        goto LAB_00128d76;\n      }\n      status = -1;\n      iVar8 = __isoc99_sscanf(pcVar11,"HTTP/%i.%i %n",&maj_ver,&min_ver,&status);\n      if ((iVar8 < 2) || (status == -1)) {\n        (*(*p->plug)->closing)(p->plug,"Proxy error: HTTP response was absent",8000,0);\n        safefree(pcVar11);\n        goto LAB_00128d76;\n      }\n      bufchain_consume(pbVar1,iVar7);\n      if (pcVar11[status] != '2') {\n        pcVar11[iVar7] = '\0';\n        if ((status < iVar7) &&\n           ((pcVar11[(long)iVar7 + -1] == '\r' || (pcVar11[(long)iVar7 + -1] == '\n')))) {\n          lVar10 = (long)(iVar7 + -1);\n          do {\n            pcVar11[lVar10] = '\0';\n            if ((int)lVar10 <= status) break;\n            lVar5 = lVar10 + -1;\n            lVar10 = lVar10 + -1;\n          } while ((pcVar11[lVar5] == '\r') || (pcVar11[lVar5] == '\n'));\n        }\n        pcVar9 = dupprintf("Proxy error: %s",pcVar11 + status);\n        (*(*p->plug)->closing)(p->plug,pcVar9,8000,0);\n        safefree(pcVar9);\n        safefree(pcVar11);\n        goto LAB_00128d76;\n      }\n      safefree(pcVar11);\n      p->state = 2;\n    }\n    else if (iVar6 != 2) goto LAB_00128d56;\n    pbVar1 = &p->pending_input_data;\n    iVar6 = bufchain_size(pbVar1);\n    if (iVar6 < 1) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("len > 0","proxy.c",0x2e5,"proxy_http_negotiate");\n    }\n    pcVar9 = (char *)safemalloc((long)iVar6,1);\n    bufchain_fetch(pbVar1,pcVar9,iVar6);\n    iVar7 = get_line_end(pcVar9,iVar6);\n    pcVar11 = pcVar9;\n    if (iVar7 < 0) {\n      safefree(pcVar9);\n      iVar6 = 1;\n    }\n    else {\n      while (2 < iVar7) {\n        bufchain_consume(pbVar1,iVar7);\n        lVar10 = (long)iVar7;\n        iVar6 = iVar6 - iVar7;\n        iVar7 = get_line_end(pcVar11 + lVar10,iVar6);\n        pcVar11 = pcVar11 + lVar10;\n      }\n      if (iVar7 == 2) {\n        bufchain_consume(pbVar1,2);\n        proxy_activate(p);\n        safefree(pcVar9);\n        iVar6 = 1;\n      }\n      else {\n        safefree(pcVar9);\n        iVar6 = 1;\n      }\n    }\n  }\n  else {\nLAB_00128d56:\n    (*(*p->plug)->closing)(p->plug,"Proxy error: unexpected proxy error",0x1f41,0);\n    iVar6 = 1;\n  }" if (parenthesized_expression "(change == 2)" ( (binary_expression "change == 2" identifier == number_literal) )) (compound_statement "{\n    if (iVar6 == 1) {\n      pbVar1 = &p->pending_input_data;\n      iVar6 = bufchain_size(pbVar1);\n      if (iVar6 < 1) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("len > 0","proxy.c",0x2af,"proxy_http_negotiate");\n      }\n      pcVar11 = (char *)safemalloc((long)(iVar6 + 1),1);\n      bufchain_fetch(pbVar1,pcVar11,iVar6);\n      pcVar11[iVar6] = '\0';\n      iVar7 = get_line_end(pcVar11,iVar6);\n      iVar6 = 1;\n      if (iVar7 < 0) {\n        safefree(pcVar11);\n        goto LAB_00128d76;\n      }\n      status = -1;\n      iVar8 = __isoc99_sscanf(pcVar11,"HTTP/%i.%i %n",&maj_ver,&min_ver,&status);\n      if ((iVar8 < 2) || (status == -1)) {\n        (*(*p->plug)->closing)(p->plug,"Proxy error: HTTP response was absent",8000,0);\n        safefree(pcVar11);\n        goto LAB_00128d76;\n      }\n      bufchain_consume(pbVar1,iVar7);\n      if (pcVar11[status] != '2') {\n        pcVar11[iVar7] = '\0';\n        if ((status < iVar7) &&\n           ((pcVar11[(long)iVar7 + -1] == '\r' || (pcVar11[(long)iVar7 + -1] == '\n')))) {\n          lVar10 = (long)(iVar7 + -1);\n          do {\n            pcVar11[lVar10] = '\0';\n            if ((int)lVar10 <= status) break;\n            lVar5 = lVar10 + -1;\n            lVar10 = lVar10 + -1;\n          } while ((pcVar11[lVar5] == '\r') || (pcVar11[lVar5] == '\n'));\n        }\n        pcVar9 = dupprintf("Proxy error: %s",pcVar11 + status);\n        (*(*p->plug)->closing)(p->plug,pcVar9,8000,0);\n        safefree(pcVar9);\n        safefree(pcVar11);\n        goto LAB_00128d76;\n      }\n      safefree(pcVar11);\n      p->state = 2;\n    }\n    else if (iVar6 != 2) goto LAB_00128d56;\n    pbVar1 = &p->pending_input_data;\n    iVar6 = bufchain_size(pbVar1);\n    if (iVar6 < 1) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("len > 0","proxy.c",0x2e5,"proxy_http_negotiate");\n    }\n    pcVar9 = (char *)safemalloc((long)iVar6,1);\n    bufchain_fetch(pbVar1,pcVar9,iVar6);\n    iVar7 = get_line_end(pcVar9,iVar6);\n    pcVar11 = pcVar9;\n    if (iVar7 < 0) {\n      safefree(pcVar9);\n      iVar6 = 1;\n    }\n    else {\n      while (2 < iVar7) {\n        bufchain_consume(pbVar1,iVar7);\n        lVar10 = (long)iVar7;\n        iVar6 = iVar6 - iVar7;\n        iVar7 = get_line_end(pcVar11 + lVar10,iVar6);\n        pcVar11 = pcVar11 + lVar10;\n      }\n      if (iVar7 == 2) {\n        bufchain_consume(pbVar1,2);\n        proxy_activate(p);\n        safefree(pcVar9);\n        iVar6 = 1;\n      }\n      else {\n        safefree(pcVar9);\n        iVar6 = 1;\n      }\n    }\n  }" { (if_statement "if (iVar6 == 1) {\n      pbVar1 = &p->pending_input_data;\n      iVar6 = bufchain_size(pbVar1);\n      if (iVar6 < 1) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("len > 0","proxy.c",0x2af,"proxy_http_negotiate");\n      }\n      pcVar11 = (char *)safemalloc((long)(iVar6 + 1),1);\n      bufchain_fetch(pbVar1,pcVar11,iVar6);\n      pcVar11[iVar6] = '\0';\n      iVar7 = get_line_end(pcVar11,iVar6);\n      iVar6 = 1;\n      if (iVar7 < 0) {\n        safefree(pcVar11);\n        goto LAB_00128d76;\n      }\n      status = -1;\n      iVar8 = __isoc99_sscanf(pcVar11,"HTTP/%i.%i %n",&maj_ver,&min_ver,&status);\n      if ((iVar8 < 2) || (status == -1)) {\n        (*(*p->plug)->closing)(p->plug,"Proxy error: HTTP response was absent",8000,0);\n        safefree(pcVar11);\n        goto LAB_00128d76;\n      }\n      bufchain_consume(pbVar1,iVar7);\n      if (pcVar11[status] != '2') {\n        pcVar11[iVar7] = '\0';\n        if ((status < iVar7) &&\n           ((pcVar11[(long)iVar7 + -1] == '\r' || (pcVar11[(long)iVar7 + -1] == '\n')))) {\n          lVar10 = (long)(iVar7 + -1);\n          do {\n            pcVar11[lVar10] = '\0';\n            if ((int)lVar10 <= status) break;\n            lVar5 = lVar10 + -1;\n            lVar10 = lVar10 + -1;\n          } while ((pcVar11[lVar5] == '\r') || (pcVar11[lVar5] == '\n'));\n        }\n        pcVar9 = dupprintf("Proxy error: %s",pcVar11 + status);\n        (*(*p->plug)->closing)(p->plug,pcVar9,8000,0);\n        safefree(pcVar9);\n        safefree(pcVar11);\n        goto LAB_00128d76;\n      }\n      safefree(pcVar11);\n      p->state = 2;\n    }\n    else if (iVar6 != 2) goto LAB_00128d56;" if (parenthesized_expression "(iVar6 == 1)" ( (binary_expression "iVar6 == 1" identifier == number_literal) )) (compound_statement "{\n      pbVar1 = &p->pending_input_data;\n      iVar6 = bufchain_size(pbVar1);\n      if (iVar6 < 1) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("len > 0","proxy.c",0x2af,"proxy_http_negotiate");\n      }\n      pcVar11 = (char *)safemalloc((long)(iVar6 + 1),1);\n      bufchain_fetch(pbVar1,pcVar11,iVar6);\n      pcVar11[iVar6] = '\0';\n      iVar7 = get_line_end(pcVar11,iVar6);\n      iVar6 = 1;\n      if (iVar7 < 0) {\n        safefree(pcVar11);\n        goto LAB_00128d76;\n      }\n      status = -1;\n      iVar8 = __isoc99_sscanf(pcVar11,"HTTP/%i.%i %n",&maj_ver,&min_ver,&status);\n      if ((iVar8 < 2) || (status == -1)) {\n        (*(*p->plug)->closing)(p->plug,"Proxy error: HTTP response was absent",8000,0);\n        safefree(pcVar11);\n        goto LAB_00128d76;\n      }\n      bufchain_consume(pbVar1,iVar7);\n      if (pcVar11[status] != '2') {\n        pcVar11[iVar7] = '\0';\n        if ((status < iVar7) &&\n           ((pcVar11[(long)iVar7 + -1] == '\r' || (pcVar11[(long)iVar7 + -1] == '\n')))) {\n          lVar10 = (long)(iVar7 + -1);\n          do {\n            pcVar11[lVar10] = '\0';\n            if ((int)lVar10 <= status) break;\n            lVar5 = lVar10 + -1;\n            lVar10 = lVar10 + -1;\n          } while ((pcVar11[lVar5] == '\r') || (pcVar11[lVar5] == '\n'));\n        }\n        pcVar9 = dupprintf("Proxy error: %s",pcVar11 + status);\n        (*(*p->plug)->closing)(p->plug,pcVar9,8000,0);\n        safefree(pcVar9);\n        safefree(pcVar11);\n        goto LAB_00128d76;\n      }\n      safefree(pcVar11);\n      p->state = 2;\n    }" { (expression_statement "pbVar1 = &p->pending_input_data;" (assignment_expression "pbVar1 = &p->pending_input_data" identifier = (pointer_expression "&p->pending_input_data" & (field_expression "p->pending_input_data" identifier -> field_identifier))) ;) (expression_statement "iVar6 = bufchain_size(pbVar1);" (assignment_expression "iVar6 = bufchain_size(pbVar1)" identifier = (call_expression "bufchain_size(pbVar1)" identifier (argument_list "(pbVar1)" ( identifier )))) ;) (if_statement "if (iVar6 < 1) {\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("len > 0","proxy.c",0x2af,"proxy_http_negotiate");\n      }" if (parenthesized_expression "(iVar6 < 1)" ( (binary_expression "iVar6 < 1" identifier < number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        __assert_fail("len > 0","proxy.c",0x2af,"proxy_http_negotiate");\n      }" { comment (expression_statement "__assert_fail("len > 0","proxy.c",0x2af,"proxy_http_negotiate");" (call_expression "__assert_fail("len > 0","proxy.c",0x2af,"proxy_http_negotiate")" identifier (argument_list "("len > 0","proxy.c",0x2af,"proxy_http_negotiate")" ( (string_literal ""len > 0"" " string_content ") , (string_literal ""proxy.c"" " string_content ") , number_literal , (string_literal ""proxy_http_negotiate"" " string_content ") ))) ;) })) (expression_statement "pcVar11 = (char *)safemalloc((long)(iVar6 + 1),1);" (assignment_expression "pcVar11 = (char *)safemalloc((long)(iVar6 + 1),1)" identifier = (cast_expression "(char *)safemalloc((long)(iVar6 + 1),1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "safemalloc((long)(iVar6 + 1),1)" identifier (argument_list "((long)(iVar6 + 1),1)" ( (cast_expression "(long)(iVar6 + 1)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(iVar6 + 1)" ( (binary_expression "iVar6 + 1" identifier + number_literal) ))) , number_literal ))))) ;) (expression_statement "bufchain_fetch(pbVar1,pcVar11,iVar6);" (call_expression "bufchain_fetch(pbVar1,pcVar11,iVar6)" identifier (argument_list "(pbVar1,pcVar11,iVar6)" ( identifier , identifier , identifier ))) ;) (expression_statement "pcVar11[iVar6] = '\0';" (assignment_expression "pcVar11[iVar6] = '\0'" (subscript_expression "pcVar11[iVar6]" identifier [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "iVar7 = get_line_end(pcVar11,iVar6);" (assignment_expression "iVar7 = get_line_end(pcVar11,iVar6)" identifier = (call_expression "get_line_end(pcVar11,iVar6)" identifier (argument_list "(pcVar11,iVar6)" ( identifier , identifier )))) ;) (expression_statement "iVar6 = 1;" (assignment_expression "iVar6 = 1" identifier = number_literal) ;) (if_statement "if (iVar7 < 0) {\n        safefree(pcVar11);\n        goto LAB_00128d76;\n      }" if (parenthesized_expression "(iVar7 < 0)" ( (binary_expression "iVar7 < 0" identifier < number_literal) )) (compound_statement "{\n        safefree(pcVar11);\n        goto LAB_00128d76;\n      }" { (expression_statement "safefree(pcVar11);" (call_expression "safefree(pcVar11)" identifier (argument_list "(pcVar11)" ( identifier ))) ;) (goto_statement "goto LAB_00128d76;" goto statement_identifier ;) })) (expression_statement "status = -1;" (assignment_expression "status = -1" identifier = number_literal) ;) (expression_statement "iVar8 = __isoc99_sscanf(pcVar11,"HTTP/%i.%i %n",&maj_ver,&min_ver,&status);" (assignment_expression "iVar8 = __isoc99_sscanf(pcVar11,"HTTP/%i.%i %n",&maj_ver,&min_ver,&status)" identifier = (call_expression "__isoc99_sscanf(pcVar11,"HTTP/%i.%i %n",&maj_ver,&min_ver,&status)" identifier (argument_list "(pcVar11,"HTTP/%i.%i %n",&maj_ver,&min_ver,&status)" ( identifier , (string_literal ""HTTP/%i.%i %n"" " string_content ") , (pointer_expression "&maj_ver" & identifier) , (pointer_expression "&min_ver" & identifier) , (pointer_expression "&status" & identifier) )))) ;) (if_statement "if ((iVar8 < 2) || (status == -1)) {\n        (*(*p->plug)->closing)(p->plug,"Proxy error: HTTP response was absent",8000,0);\n        safefree(pcVar11);\n        goto LAB_00128d76;\n      }" if (parenthesized_expression "((iVar8 < 2) || (status == -1))" ( (binary_expression "(iVar8 < 2) || (status == -1)" (parenthesized_expression "(iVar8 < 2)" ( (binary_expression "iVar8 < 2" identifier < number_literal) )) || (parenthesized_expression "(status == -1)" ( (binary_expression "status == -1" identifier == number_literal) ))) )) (compound_statement "{\n        (*(*p->plug)->closing)(p->plug,"Proxy error: HTTP response was absent",8000,0);\n        safefree(pcVar11);\n        goto LAB_00128d76;\n      }" { (expression_statement "(*(*p->plug)->closing)(p->plug,"Proxy error: HTTP response was absent",8000,0);" (call_expression "(*(*p->plug)->closing)(p->plug,"Proxy error: HTTP response was absent",8000,0)" (parenthesized_expression "(*(*p->plug)->closing)" ( (pointer_expression "*(*p->plug)->closing" * (field_expression "(*p->plug)->closing" (parenthesized_expression "(*p->plug)" ( (pointer_expression "*p->plug" * (field_expression "p->plug" identifier -> field_identifier)) )) -> field_identifier)) )) (argument_list "(p->plug,"Proxy error: HTTP response was absent",8000,0)" ( (field_expression "p->plug" identifier -> field_identifier) , (string_literal ""Proxy error: HTTP response was absent"" " string_content ") , number_literal , number_literal ))) ;) (expression_statement "safefree(pcVar11);" (call_expression "safefree(pcVar11)" identifier (argument_list "(pcVar11)" ( identifier ))) ;) (goto_statement "goto LAB_00128d76;" goto statement_identifier ;) })) (expression_statement "bufchain_consume(pbVar1,iVar7);" (call_expression "bufchain_consume(pbVar1,iVar7)" identifier (argument_list "(pbVar1,iVar7)" ( identifier , identifier ))) ;) (if_statement "if (pcVar11[status] != '2') {\n        pcVar11[iVar7] = '\0';\n        if ((status < iVar7) &&\n           ((pcVar11[(long)iVar7 + -1] == '\r' || (pcVar11[(long)iVar7 + -1] == '\n')))) {\n          lVar10 = (long)(iVar7 + -1);\n          do {\n            pcVar11[lVar10] = '\0';\n            if ((int)lVar10 <= status) break;\n            lVar5 = lVar10 + -1;\n            lVar10 = lVar10 + -1;\n          } while ((pcVar11[lVar5] == '\r') || (pcVar11[lVar5] == '\n'));\n        }\n        pcVar9 = dupprintf("Proxy error: %s",pcVar11 + status);\n        (*(*p->plug)->closing)(p->plug,pcVar9,8000,0);\n        safefree(pcVar9);\n        safefree(pcVar11);\n        goto LAB_00128d76;\n      }" if (parenthesized_expression "(pcVar11[status] != '2')" ( (binary_expression "pcVar11[status] != '2'" (subscript_expression "pcVar11[status]" identifier [ identifier ]) != (char_literal "'2'" ' character ')) )) (compound_statement "{\n        pcVar11[iVar7] = '\0';\n        if ((status < iVar7) &&\n           ((pcVar11[(long)iVar7 + -1] == '\r' || (pcVar11[(long)iVar7 + -1] == '\n')))) {\n          lVar10 = (long)(iVar7 + -1);\n          do {\n            pcVar11[lVar10] = '\0';\n            if ((int)lVar10 <= status) break;\n            lVar5 = lVar10 + -1;\n            lVar10 = lVar10 + -1;\n          } while ((pcVar11[lVar5] == '\r') || (pcVar11[lVar5] == '\n'));\n        }\n        pcVar9 = dupprintf("Proxy error: %s",pcVar11 + status);\n        (*(*p->plug)->closing)(p->plug,pcVar9,8000,0);\n        safefree(pcVar9);\n        safefree(pcVar11);\n        goto LAB_00128d76;\n      }" { (expression_statement "pcVar11[iVar7] = '\0';" (assignment_expression "pcVar11[iVar7] = '\0'" (subscript_expression "pcVar11[iVar7]" identifier [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (if_statement "if ((status < iVar7) &&\n           ((pcVar11[(long)iVar7 + -1] == '\r' || (pcVar11[(long)iVar7 + -1] == '\n')))) {\n          lVar10 = (long)(iVar7 + -1);\n          do {\n            pcVar11[lVar10] = '\0';\n            if ((int)lVar10 <= status) break;\n            lVar5 = lVar10 + -1;\n            lVar10 = lVar10 + -1;\n          } while ((pcVar11[lVar5] == '\r') || (pcVar11[lVar5] == '\n'));\n        }" if (parenthesized_expression "((status < iVar7) &&\n           ((pcVar11[(long)iVar7 + -1] == '\r' || (pcVar11[(long)iVar7 + -1] == '\n'))))" ( (binary_expression "(status < iVar7) &&\n           ((pcVar11[(long)iVar7 + -1] == '\r' || (pcVar11[(long)iVar7 + -1] == '\n')))" (parenthesized_expression "(status < iVar7)" ( (binary_expression "status < iVar7" identifier < identifier) )) && (parenthesized_expression "((pcVar11[(long)iVar7 + -1] == '\r' || (pcVar11[(long)iVar7 + -1] == '\n')))" ( (parenthesized_expression "(pcVar11[(long)iVar7 + -1] == '\r' || (pcVar11[(long)iVar7 + -1] == '\n'))" ( (binary_expression "pcVar11[(long)iVar7 + -1] == '\r' || (pcVar11[(long)iVar7 + -1] == '\n')" (binary_expression "pcVar11[(long)iVar7 + -1] == '\r'" (subscript_expression "pcVar11[(long)iVar7 + -1]" identifier [ (binary_expression "(long)iVar7 + -1" (cast_expression "(long)iVar7" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ]) == (char_literal "'\r'" ' escape_sequence ')) || (parenthesized_expression "(pcVar11[(long)iVar7 + -1] == '\n')" ( (binary_expression "pcVar11[(long)iVar7 + -1] == '\n'" (subscript_expression "pcVar11[(long)iVar7 + -1]" identifier [ (binary_expression "(long)iVar7 + -1" (cast_expression "(long)iVar7" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ]) == (char_literal "'\n'" ' escape_sequence ')) ))) )) ))) )) (compound_statement "{\n          lVar10 = (long)(iVar7 + -1);\n          do {\n            pcVar11[lVar10] = '\0';\n            if ((int)lVar10 <= status) break;\n            lVar5 = lVar10 + -1;\n            lVar10 = lVar10 + -1;\n          } while ((pcVar11[lVar5] == '\r') || (pcVar11[lVar5] == '\n'));\n        }" { (expression_statement "lVar10 = (long)(iVar7 + -1);" (assignment_expression "lVar10 = (long)(iVar7 + -1)" identifier = (cast_expression "(long)(iVar7 + -1)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(iVar7 + -1)" ( (binary_expression "iVar7 + -1" identifier + number_literal) )))) ;) (do_statement "do {\n            pcVar11[lVar10] = '\0';\n            if ((int)lVar10 <= status) break;\n            lVar5 = lVar10 + -1;\n            lVar10 = lVar10 + -1;\n          } while ((pcVar11[lVar5] == '\r') || (pcVar11[lVar5] == '\n'));" do (compound_statement "{\n            pcVar11[lVar10] = '\0';\n            if ((int)lVar10 <= status) break;\n            lVar5 = lVar10 + -1;\n            lVar10 = lVar10 + -1;\n          }" { (expression_statement "pcVar11[lVar10] = '\0';" (assignment_expression "pcVar11[lVar10] = '\0'" (subscript_expression "pcVar11[lVar10]" identifier [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (if_statement "if ((int)lVar10 <= status) break;" if (parenthesized_expression "((int)lVar10 <= status)" ( (binary_expression "(int)lVar10 <= status" (cast_expression "(int)lVar10" ( (type_descriptor "int" primitive_type) ) identifier) <= identifier) )) (break_statement "break;" break ;)) (expression_statement "lVar5 = lVar10 + -1;" (assignment_expression "lVar5 = lVar10 + -1" identifier = (binary_expression "lVar10 + -1" identifier + number_literal)) ;) (expression_statement "lVar10 = lVar10 + -1;" (assignment_expression "lVar10 = lVar10 + -1" identifier = (binary_expression "lVar10 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "((pcVar11[lVar5] == '\r') || (pcVar11[lVar5] == '\n'))" ( (binary_expression "(pcVar11[lVar5] == '\r') || (pcVar11[lVar5] == '\n')" (parenthesized_expression "(pcVar11[lVar5] == '\r')" ( (binary_expression "pcVar11[lVar5] == '\r'" (subscript_expression "pcVar11[lVar5]" identifier [ identifier ]) == (char_literal "'\r'" ' escape_sequence ')) )) || (parenthesized_expression "(pcVar11[lVar5] == '\n')" ( (binary_expression "pcVar11[lVar5] == '\n'" (subscript_expression "pcVar11[lVar5]" identifier [ identifier ]) == (char_literal "'\n'" ' escape_sequence ')) ))) )) ;) })) (expression_statement "pcVar9 = dupprintf("Proxy error: %s",pcVar11 + status);" (assignment_expression "pcVar9 = dupprintf("Proxy error: %s",pcVar11 + status)" identifier = (call_expression "dupprintf("Proxy error: %s",pcVar11 + status)" identifier (argument_list "("Proxy error: %s",pcVar11 + status)" ( (string_literal ""Proxy error: %s"" " string_content ") , (binary_expression "pcVar11 + status" identifier + identifier) )))) ;) (expression_statement "(*(*p->plug)->closing)(p->plug,pcVar9,8000,0);" (call_expression "(*(*p->plug)->closing)(p->plug,pcVar9,8000,0)" (parenthesized_expression "(*(*p->plug)->closing)" ( (pointer_expression "*(*p->plug)->closing" * (field_expression "(*p->plug)->closing" (parenthesized_expression "(*p->plug)" ( (pointer_expression "*p->plug" * (field_expression "p->plug" identifier -> field_identifier)) )) -> field_identifier)) )) (argument_list "(p->plug,pcVar9,8000,0)" ( (field_expression "p->plug" identifier -> field_identifier) , identifier , number_literal , number_literal ))) ;) (expression_statement "safefree(pcVar9);" (call_expression "safefree(pcVar9)" identifier (argument_list "(pcVar9)" ( identifier ))) ;) (expression_statement "safefree(pcVar11);" (call_expression "safefree(pcVar11)" identifier (argument_list "(pcVar11)" ( identifier ))) ;) (goto_statement "goto LAB_00128d76;" goto statement_identifier ;) })) (expression_statement "safefree(pcVar11);" (call_expression "safefree(pcVar11)" identifier (argument_list "(pcVar11)" ( identifier ))) ;) (expression_statement "p->state = 2;" (assignment_expression "p->state = 2" (field_expression "p->state" identifier -> field_identifier) = number_literal) ;) }) (else_clause "else if (iVar6 != 2) goto LAB_00128d56;" else (if_statement "if (iVar6 != 2) goto LAB_00128d56;" if (parenthesized_expression "(iVar6 != 2)" ( (binary_expression "iVar6 != 2" identifier != number_literal) )) (goto_statement "goto LAB_00128d56;" goto statement_identifier ;)))) (expression_statement "pbVar1 = &p->pending_input_data;" (assignment_expression "pbVar1 = &p->pending_input_data" identifier = (pointer_expression "&p->pending_input_data" & (field_expression "p->pending_input_data" identifier -> field_identifier))) ;) (expression_statement "iVar6 = bufchain_size(pbVar1);" (assignment_expression "iVar6 = bufchain_size(pbVar1)" identifier = (call_expression "bufchain_size(pbVar1)" identifier (argument_list "(pbVar1)" ( identifier )))) ;) (if_statement "if (iVar6 < 1) {\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("len > 0","proxy.c",0x2e5,"proxy_http_negotiate");\n    }" if (parenthesized_expression "(iVar6 < 1)" ( (binary_expression "iVar6 < 1" identifier < number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      __assert_fail("len > 0","proxy.c",0x2e5,"proxy_http_negotiate");\n    }" { comment (expression_statement "__assert_fail("len > 0","proxy.c",0x2e5,"proxy_http_negotiate");" (call_expression "__assert_fail("len > 0","proxy.c",0x2e5,"proxy_http_negotiate")" identifier (argument_list "("len > 0","proxy.c",0x2e5,"proxy_http_negotiate")" ( (string_literal ""len > 0"" " string_content ") , (string_literal ""proxy.c"" " string_content ") , number_literal , (string_literal ""proxy_http_negotiate"" " string_content ") ))) ;) })) (expression_statement "pcVar9 = (char *)safemalloc((long)iVar6,1);" (assignment_expression "pcVar9 = (char *)safemalloc((long)iVar6,1)" identifier = (cast_expression "(char *)safemalloc((long)iVar6,1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "safemalloc((long)iVar6,1)" identifier (argument_list "((long)iVar6,1)" ( (cast_expression "(long)iVar6" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) , number_literal ))))) ;) (expression_statement "bufchain_fetch(pbVar1,pcVar9,iVar6);" (call_expression "bufchain_fetch(pbVar1,pcVar9,iVar6)" identifier (argument_list "(pbVar1,pcVar9,iVar6)" ( identifier , identifier , identifier ))) ;) (expression_statement "iVar7 = get_line_end(pcVar9,iVar6);" (assignment_expression "iVar7 = get_line_end(pcVar9,iVar6)" identifier = (call_expression "get_line_end(pcVar9,iVar6)" identifier (argument_list "(pcVar9,iVar6)" ( identifier , identifier )))) ;) (expression_statement "pcVar11 = pcVar9;" (assignment_expression "pcVar11 = pcVar9" identifier = identifier) ;) (if_statement "if (iVar7 < 0) {\n      safefree(pcVar9);\n      iVar6 = 1;\n    }\n    else {\n      while (2 < iVar7) {\n        bufchain_consume(pbVar1,iVar7);\n        lVar10 = (long)iVar7;\n        iVar6 = iVar6 - iVar7;\n        iVar7 = get_line_end(pcVar11 + lVar10,iVar6);\n        pcVar11 = pcVar11 + lVar10;\n      }\n      if (iVar7 == 2) {\n        bufchain_consume(pbVar1,2);\n        proxy_activate(p);\n        safefree(pcVar9);\n        iVar6 = 1;\n      }\n      else {\n        safefree(pcVar9);\n        iVar6 = 1;\n      }\n    }" if (parenthesized_expression "(iVar7 < 0)" ( (binary_expression "iVar7 < 0" identifier < number_literal) )) (compound_statement "{\n      safefree(pcVar9);\n      iVar6 = 1;\n    }" { (expression_statement "safefree(pcVar9);" (call_expression "safefree(pcVar9)" identifier (argument_list "(pcVar9)" ( identifier ))) ;) (expression_statement "iVar6 = 1;" (assignment_expression "iVar6 = 1" identifier = number_literal) ;) }) (else_clause "else {\n      while (2 < iVar7) {\n        bufchain_consume(pbVar1,iVar7);\n        lVar10 = (long)iVar7;\n        iVar6 = iVar6 - iVar7;\n        iVar7 = get_line_end(pcVar11 + lVar10,iVar6);\n        pcVar11 = pcVar11 + lVar10;\n      }\n      if (iVar7 == 2) {\n        bufchain_consume(pbVar1,2);\n        proxy_activate(p);\n        safefree(pcVar9);\n        iVar6 = 1;\n      }\n      else {\n        safefree(pcVar9);\n        iVar6 = 1;\n      }\n    }" else (compound_statement "{\n      while (2 < iVar7) {\n        bufchain_consume(pbVar1,iVar7);\n        lVar10 = (long)iVar7;\n        iVar6 = iVar6 - iVar7;\n        iVar7 = get_line_end(pcVar11 + lVar10,iVar6);\n        pcVar11 = pcVar11 + lVar10;\n      }\n      if (iVar7 == 2) {\n        bufchain_consume(pbVar1,2);\n        proxy_activate(p);\n        safefree(pcVar9);\n        iVar6 = 1;\n      }\n      else {\n        safefree(pcVar9);\n        iVar6 = 1;\n      }\n    }" { (while_statement "while (2 < iVar7) {\n        bufchain_consume(pbVar1,iVar7);\n        lVar10 = (long)iVar7;\n        iVar6 = iVar6 - iVar7;\n        iVar7 = get_line_end(pcVar11 + lVar10,iVar6);\n        pcVar11 = pcVar11 + lVar10;\n      }" while (parenthesized_expression "(2 < iVar7)" ( (binary_expression "2 < iVar7" number_literal < identifier) )) (compound_statement "{\n        bufchain_consume(pbVar1,iVar7);\n        lVar10 = (long)iVar7;\n        iVar6 = iVar6 - iVar7;\n        iVar7 = get_line_end(pcVar11 + lVar10,iVar6);\n        pcVar11 = pcVar11 + lVar10;\n      }" { (expression_statement "bufchain_consume(pbVar1,iVar7);" (call_expression "bufchain_consume(pbVar1,iVar7)" identifier (argument_list "(pbVar1,iVar7)" ( identifier , identifier ))) ;) (expression_statement "lVar10 = (long)iVar7;" (assignment_expression "lVar10 = (long)iVar7" identifier = (cast_expression "(long)iVar7" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (expression_statement "iVar6 = iVar6 - iVar7;" (assignment_expression "iVar6 = iVar6 - iVar7" identifier = (binary_expression "iVar6 - iVar7" identifier - identifier)) ;) (expression_statement "iVar7 = get_line_end(pcVar11 + lVar10,iVar6);" (assignment_expression "iVar7 = get_line_end(pcVar11 + lVar10,iVar6)" identifier = (call_expression "get_line_end(pcVar11 + lVar10,iVar6)" identifier (argument_list "(pcVar11 + lVar10,iVar6)" ( (binary_expression "pcVar11 + lVar10" identifier + identifier) , identifier )))) ;) (expression_statement "pcVar11 = pcVar11 + lVar10;" (assignment_expression "pcVar11 = pcVar11 + lVar10" identifier = (binary_expression "pcVar11 + lVar10" identifier + identifier)) ;) })) (if_statement "if (iVar7 == 2) {\n        bufchain_consume(pbVar1,2);\n        proxy_activate(p);\n        safefree(pcVar9);\n        iVar6 = 1;\n      }\n      else {\n        safefree(pcVar9);\n        iVar6 = 1;\n      }" if (parenthesized_expression "(iVar7 == 2)" ( (binary_expression "iVar7 == 2" identifier == number_literal) )) (compound_statement "{\n        bufchain_consume(pbVar1,2);\n        proxy_activate(p);\n        safefree(pcVar9);\n        iVar6 = 1;\n      }" { (expression_statement "bufchain_consume(pbVar1,2);" (call_expression "bufchain_consume(pbVar1,2)" identifier (argument_list "(pbVar1,2)" ( identifier , number_literal ))) ;) (expression_statement "proxy_activate(p);" (call_expression "proxy_activate(p)" identifier (argument_list "(p)" ( identifier ))) ;) (expression_statement "safefree(pcVar9);" (call_expression "safefree(pcVar9)" identifier (argument_list "(pcVar9)" ( identifier ))) ;) (expression_statement "iVar6 = 1;" (assignment_expression "iVar6 = 1" identifier = number_literal) ;) }) (else_clause "else {\n        safefree(pcVar9);\n        iVar6 = 1;\n      }" else (compound_statement "{\n        safefree(pcVar9);\n        iVar6 = 1;\n      }" { (expression_statement "safefree(pcVar9);" (call_expression "safefree(pcVar9)" identifier (argument_list "(pcVar9)" ( identifier ))) ;) (expression_statement "iVar6 = 1;" (assignment_expression "iVar6 = 1" identifier = number_literal) ;) }))) }))) }) (else_clause "else {\nLAB_00128d56:\n    (*(*p->plug)->closing)(p->plug,"Proxy error: unexpected proxy error",0x1f41,0);\n    iVar6 = 1;\n  }" else (compound_statement "{\nLAB_00128d56:\n    (*(*p->plug)->closing)(p->plug,"Proxy error: unexpected proxy error",0x1f41,0);\n    iVar6 = 1;\n  }" { (labeled_statement "LAB_00128d56:\n    (*(*p->plug)->closing)(p->plug,"Proxy error: unexpected proxy error",0x1f41,0);" statement_identifier : (expression_statement "(*(*p->plug)->closing)(p->plug,"Proxy error: unexpected proxy error",0x1f41,0);" (call_expression "(*(*p->plug)->closing)(p->plug,"Proxy error: unexpected proxy error",0x1f41,0)" (parenthesized_expression "(*(*p->plug)->closing)" ( (pointer_expression "*(*p->plug)->closing" * (field_expression "(*p->plug)->closing" (parenthesized_expression "(*p->plug)" ( (pointer_expression "*p->plug" * (field_expression "p->plug" identifier -> field_identifier)) )) -> field_identifier)) )) (argument_list "(p->plug,"Proxy error: unexpected proxy error",0x1f41,0)" ( (field_expression "p->plug" identifier -> field_identifier) , (string_literal ""Proxy error: unexpected proxy error"" " string_content ") , number_literal , number_literal ))) ;)) (expression_statement "iVar6 = 1;" (assignment_expression "iVar6 = 1" identifier = number_literal) ;) }))) (labeled_statement "LAB_00128d76:\n  if (lVar4 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar6;\n  }" statement_identifier : (if_statement "if (lVar4 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return iVar6;\n  }" if (parenthesized_expression "(lVar4 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "lVar4 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar6;\n  }" { (return_statement "return iVar6;" return identifier ;) }))) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "undefined4 FUN_00128cfe(long param_1,int param_2)\n\n{\n  char cVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  char *pcVar6;\n  char *pcVar7;\n  char *pcVar8;\n  long lVar9;\n  long lVar10;\n  long lVar11;\n  long lVar12;\n  undefined8 uVar13;\n  ulong uVar14;\n  char *pcVar15;\n  int iVar16;\n  long in_FS_OFFSET;\n  byte bVar17;\n  undefined1 local_254 [4];\n  undefined1 local_250 [4];\n  int local_24c;\n  undefined1 local_248 [520];\n  long local_40;\n  \n  bVar17 = 0;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  iVar4 = *(int *)(param_1 + 0x84);\n  if (iVar4 == -1) {\n    FUN_0018b9e4(*(undefined8 *)(param_1 + 0x20),local_248,0x200);\n    pcVar6 = (char *)FUN_00126ed4("CONNECT %s:%i HTTP/1.1\r\nHost: %s:%i\r\n",local_248,\n                                  *(undefined4 *)(param_1 + 0x28),local_248,\n                                  *(undefined4 *)(param_1 + 0x28));\n    uVar14 = 0xffffffffffffffff;\n    pcVar7 = pcVar6;\n    do {\n      if (uVar14 == 0) break;\n      uVar14 = uVar14 - 1;\n      cVar1 = *pcVar7;\n      pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n    } while (cVar1 != '\0');\n    (**(code **)(**(long **)(param_1 + 0x10) + 0x10))(*(long **)(param_1 + 0x10),pcVar6,~uVar14 - 1)\n    ;\n    FUN_00127101(pcVar6);\n    pcVar7 = (char *)FUN_00119829(*(undefined8 *)(param_1 + 0xd0),0x10);\n    pcVar6 = (char *)FUN_00119829(*(undefined8 *)(param_1 + 0xd0),0x11);\n    if ((*pcVar7 != '\0') || (*pcVar6 != '\0')) {\n      pcVar6 = (char *)FUN_00126ed4("%s:%s",pcVar7,pcVar6);\n      lVar12 = -1;\n      pcVar7 = pcVar6;\n      do {\n        if (lVar12 == 0) break;\n        lVar12 = lVar12 + -1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar4 = ~(uint)lVar12 - 1;\n      pcVar8 = (char *)FUN_00126895((long)((iVar4 * 4) / 3 + 100),1);\n      builtin_strncpy(pcVar8,"Proxy-Authorization: Basic ",0x1c);\n      lVar12 = -1;\n      pcVar7 = pcVar8;\n      do {\n        if (lVar12 == 0) break;\n        lVar12 = lVar12 + -1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar5 = ~(uint)lVar12 - 1;\n      if (0 < iVar4) {\n        pcVar15 = pcVar8 + iVar5;\n        iVar16 = 0;\n        pcVar7 = pcVar6;\n        do {\n          iVar2 = iVar4 - iVar16;\n          if (3 < iVar4 - iVar16) {\n            iVar2 = 3;\n          }\n          FUN_001265e7(pcVar7,iVar2,pcVar15);\n          iVar16 = iVar16 + 3;\n          iVar5 = iVar5 + 4;\n          pcVar7 = pcVar7 + 3;\n          pcVar15 = pcVar15 + 4;\n        } while (iVar16 < iVar4);\n      }\n      pcVar7 = pcVar8 + iVar5;\n      pcVar7[0] = '\r';\n      pcVar7[1] = '\n';\n      pcVar7[2] = '\0';\n      uVar14 = 0xffffffffffffffff;\n      pcVar7 = pcVar8;\n      do {\n        if (uVar14 == 0) break;\n        uVar14 = uVar14 - 1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');\n      (**(code **)(**(long **)(param_1 + 0x10) + 0x10))\n                (*(long **)(param_1 + 0x10),pcVar8,~uVar14 - 1);\n      FUN_00127101(pcVar6);\n      FUN_00127101(pcVar8);\n    }\n    (**(code **)(**(long **)(param_1 + 0x10) + 0x10))(*(long **)(param_1 + 0x10),&DAT_001bc572,2);\n    *(undefined4 *)(param_1 + 0x84) = 1;\n    uVar3 = 0;\n    goto LAB_00128d76;\n  }\n  if (param_2 == 0) {\n    (**(code **)(**(long **)(param_1 + 0x18) + 8))\n              (*(long **)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x98),\n               *(undefined4 *)(param_1 + 0xa0),*(undefined4 *)(param_1 + 0xa4));\n    uVar3 = 0;\n    goto LAB_00128d76;\n  }\n  if (param_2 == 1) {\n    uVar3 = 0;\n    goto LAB_00128d76;\n  }\n  if (param_2 == 3) {\n    uVar3 = (**(code **)(**(long **)(param_1 + 0x18) + 0x20))\n                      (*(long **)(param_1 + 0x18),*(undefined8 *)(param_1 + 0xc0),\n                       *(undefined8 *)(param_1 + 200));\n    goto LAB_00128d76;\n  }\n  if (param_2 == 2) {\n    if (iVar4 == 1) {\n      lVar12 = param_1 + 0x68;\n      iVar4 = FUN_001267cf(lVar12);\n      if (iVar4 < 1) {\n                    \n        __assert_fail("len > 0","proxy.c",0x2af,"proxy_http_negotiate");\n      }\n      lVar11 = FUN_00126895((long)(iVar4 + 1),1);\n      FUN_001267eb(lVar12,lVar11,iVar4);\n      *(undefined1 *)(lVar11 + iVar4) = 0;\n      iVar4 = FUN_00128918(lVar11,iVar4);\n      uVar3 = 1;\n      if (iVar4 < 0) {\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }\n      local_24c = -1;\n      iVar5 = __isoc99_sscanf(lVar11,"HTTP/%i.%i %n",local_250,local_254,&local_24c);\n      if ((iVar5 < 2) || (local_24c == -1)) {\n        (**(code **)(**(long **)(param_1 + 0x18) + 8))\n                  (*(long **)(param_1 + 0x18),"Proxy error: HTTP response was absent",8000,0);\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }\n      FUN_0012722e(lVar12,iVar4);\n      if (*(char *)(lVar11 + local_24c) != '2') {\n        *(undefined1 *)(lVar11 + iVar4) = 0;\n        if ((local_24c < iVar4) &&\n           ((cVar1 = *(char *)(lVar11 + -1 + (long)iVar4), cVar1 == '\r' || (cVar1 == '\n')))) {\n          lVar12 = (long)(iVar4 + -1);\n          do {\n            *(undefined1 *)(lVar11 + lVar12) = 0;\n            if ((int)lVar12 <= local_24c) break;\n            cVar1 = *(char *)(lVar11 + -1 + lVar12);\n            lVar12 = lVar12 + -1;\n          } while ((cVar1 == '\r') || (cVar1 == '\n'));\n        }\n        uVar13 = FUN_00126ed4("Proxy error: %s",lVar11 + local_24c);\n        (**(code **)(**(long **)(param_1 + 0x18) + 8))(*(long **)(param_1 + 0x18),uVar13,8000,0);\n        FUN_00127101(uVar13);\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }\n      FUN_00127101(lVar11);\n      *(undefined4 *)(param_1 + 0x84) = 2;\n    }\n    else if (iVar4 != 2) goto LAB_00128d56;\n    lVar12 = param_1 + 0x68;\n    iVar4 = FUN_001267cf(lVar12);\n    if (iVar4 < 1) {\n                    \n      __assert_fail("len > 0","proxy.c",0x2e5,"proxy_http_negotiate");\n    }\n    lVar9 = FUN_00126895((long)iVar4,1);\n    FUN_001267eb(lVar12,lVar9,iVar4);\n    iVar5 = FUN_00128918(lVar9,iVar4);\n    lVar11 = lVar9;\n    if (iVar5 < 0) {\n      FUN_00127101(lVar9);\n      uVar3 = 1;\n    }\n    else {\n      while (2 < iVar5) {\n        FUN_0012722e(lVar12,iVar5);\n        lVar10 = (long)iVar5;\n        iVar4 = iVar4 - iVar5;\n        iVar5 = FUN_00128918(lVar11 + lVar10,iVar4);\n        lVar11 = lVar11 + lVar10;\n      }\n      if (iVar5 == 2) {\n        FUN_0012722e(lVar12,2);\n        FUN_00128b92(param_1);\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }\n      else {\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }\n    }\n  }\n  else {\nLAB_00128d56:\n    (**(code **)(**(long **)(param_1 + 0x18) + 8))\n              (*(long **)(param_1 + 0x18),"Proxy error: unexpected proxy error",0x1f41,0);\n    uVar3 = 1;\n  }\nLAB_00128d76:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }\n                    \n  __stack_chk_fail();\n}\n\n" (function_definition "undefined4 FUN_00128cfe(long param_1,int param_2)\n\n{\n  char cVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  char *pcVar6;\n  char *pcVar7;\n  char *pcVar8;\n  long lVar9;\n  long lVar10;\n  long lVar11;\n  long lVar12;\n  undefined8 uVar13;\n  ulong uVar14;\n  char *pcVar15;\n  int iVar16;\n  long in_FS_OFFSET;\n  byte bVar17;\n  undefined1 local_254 [4];\n  undefined1 local_250 [4];\n  int local_24c;\n  undefined1 local_248 [520];\n  long local_40;\n  \n  bVar17 = 0;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  iVar4 = *(int *)(param_1 + 0x84);\n  if (iVar4 == -1) {\n    FUN_0018b9e4(*(undefined8 *)(param_1 + 0x20),local_248,0x200);\n    pcVar6 = (char *)FUN_00126ed4("CONNECT %s:%i HTTP/1.1\r\nHost: %s:%i\r\n",local_248,\n                                  *(undefined4 *)(param_1 + 0x28),local_248,\n                                  *(undefined4 *)(param_1 + 0x28));\n    uVar14 = 0xffffffffffffffff;\n    pcVar7 = pcVar6;\n    do {\n      if (uVar14 == 0) break;\n      uVar14 = uVar14 - 1;\n      cVar1 = *pcVar7;\n      pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n    } while (cVar1 != '\0');\n    (**(code **)(**(long **)(param_1 + 0x10) + 0x10))(*(long **)(param_1 + 0x10),pcVar6,~uVar14 - 1)\n    ;\n    FUN_00127101(pcVar6);\n    pcVar7 = (char *)FUN_00119829(*(undefined8 *)(param_1 + 0xd0),0x10);\n    pcVar6 = (char *)FUN_00119829(*(undefined8 *)(param_1 + 0xd0),0x11);\n    if ((*pcVar7 != '\0') || (*pcVar6 != '\0')) {\n      pcVar6 = (char *)FUN_00126ed4("%s:%s",pcVar7,pcVar6);\n      lVar12 = -1;\n      pcVar7 = pcVar6;\n      do {\n        if (lVar12 == 0) break;\n        lVar12 = lVar12 + -1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar4 = ~(uint)lVar12 - 1;\n      pcVar8 = (char *)FUN_00126895((long)((iVar4 * 4) / 3 + 100),1);\n      builtin_strncpy(pcVar8,"Proxy-Authorization: Basic ",0x1c);\n      lVar12 = -1;\n      pcVar7 = pcVar8;\n      do {\n        if (lVar12 == 0) break;\n        lVar12 = lVar12 + -1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar5 = ~(uint)lVar12 - 1;\n      if (0 < iVar4) {\n        pcVar15 = pcVar8 + iVar5;\n        iVar16 = 0;\n        pcVar7 = pcVar6;\n        do {\n          iVar2 = iVar4 - iVar16;\n          if (3 < iVar4 - iVar16) {\n            iVar2 = 3;\n          }\n          FUN_001265e7(pcVar7,iVar2,pcVar15);\n          iVar16 = iVar16 + 3;\n          iVar5 = iVar5 + 4;\n          pcVar7 = pcVar7 + 3;\n          pcVar15 = pcVar15 + 4;\n        } while (iVar16 < iVar4);\n      }\n      pcVar7 = pcVar8 + iVar5;\n      pcVar7[0] = '\r';\n      pcVar7[1] = '\n';\n      pcVar7[2] = '\0';\n      uVar14 = 0xffffffffffffffff;\n      pcVar7 = pcVar8;\n      do {\n        if (uVar14 == 0) break;\n        uVar14 = uVar14 - 1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');\n      (**(code **)(**(long **)(param_1 + 0x10) + 0x10))\n                (*(long **)(param_1 + 0x10),pcVar8,~uVar14 - 1);\n      FUN_00127101(pcVar6);\n      FUN_00127101(pcVar8);\n    }\n    (**(code **)(**(long **)(param_1 + 0x10) + 0x10))(*(long **)(param_1 + 0x10),&DAT_001bc572,2);\n    *(undefined4 *)(param_1 + 0x84) = 1;\n    uVar3 = 0;\n    goto LAB_00128d76;\n  }\n  if (param_2 == 0) {\n    (**(code **)(**(long **)(param_1 + 0x18) + 8))\n              (*(long **)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x98),\n               *(undefined4 *)(param_1 + 0xa0),*(undefined4 *)(param_1 + 0xa4));\n    uVar3 = 0;\n    goto LAB_00128d76;\n  }\n  if (param_2 == 1) {\n    uVar3 = 0;\n    goto LAB_00128d76;\n  }\n  if (param_2 == 3) {\n    uVar3 = (**(code **)(**(long **)(param_1 + 0x18) + 0x20))\n                      (*(long **)(param_1 + 0x18),*(undefined8 *)(param_1 + 0xc0),\n                       *(undefined8 *)(param_1 + 200));\n    goto LAB_00128d76;\n  }\n  if (param_2 == 2) {\n    if (iVar4 == 1) {\n      lVar12 = param_1 + 0x68;\n      iVar4 = FUN_001267cf(lVar12);\n      if (iVar4 < 1) {\n                    \n        __assert_fail("len > 0","proxy.c",0x2af,"proxy_http_negotiate");\n      }\n      lVar11 = FUN_00126895((long)(iVar4 + 1),1);\n      FUN_001267eb(lVar12,lVar11,iVar4);\n      *(undefined1 *)(lVar11 + iVar4) = 0;\n      iVar4 = FUN_00128918(lVar11,iVar4);\n      uVar3 = 1;\n      if (iVar4 < 0) {\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }\n      local_24c = -1;\n      iVar5 = __isoc99_sscanf(lVar11,"HTTP/%i.%i %n",local_250,local_254,&local_24c);\n      if ((iVar5 < 2) || (local_24c == -1)) {\n        (**(code **)(**(long **)(param_1 + 0x18) + 8))\n                  (*(long **)(param_1 + 0x18),"Proxy error: HTTP response was absent",8000,0);\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }\n      FUN_0012722e(lVar12,iVar4);\n      if (*(char *)(lVar11 + local_24c) != '2') {\n        *(undefined1 *)(lVar11 + iVar4) = 0;\n        if ((local_24c < iVar4) &&\n           ((cVar1 = *(char *)(lVar11 + -1 + (long)iVar4), cVar1 == '\r' || (cVar1 == '\n')))) {\n          lVar12 = (long)(iVar4 + -1);\n          do {\n            *(undefined1 *)(lVar11 + lVar12) = 0;\n            if ((int)lVar12 <= local_24c) break;\n            cVar1 = *(char *)(lVar11 + -1 + lVar12);\n            lVar12 = lVar12 + -1;\n          } while ((cVar1 == '\r') || (cVar1 == '\n'));\n        }\n        uVar13 = FUN_00126ed4("Proxy error: %s",lVar11 + local_24c);\n        (**(code **)(**(long **)(param_1 + 0x18) + 8))(*(long **)(param_1 + 0x18),uVar13,8000,0);\n        FUN_00127101(uVar13);\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }\n      FUN_00127101(lVar11);\n      *(undefined4 *)(param_1 + 0x84) = 2;\n    }\n    else if (iVar4 != 2) goto LAB_00128d56;\n    lVar12 = param_1 + 0x68;\n    iVar4 = FUN_001267cf(lVar12);\n    if (iVar4 < 1) {\n                    \n      __assert_fail("len > 0","proxy.c",0x2e5,"proxy_http_negotiate");\n    }\n    lVar9 = FUN_00126895((long)iVar4,1);\n    FUN_001267eb(lVar12,lVar9,iVar4);\n    iVar5 = FUN_00128918(lVar9,iVar4);\n    lVar11 = lVar9;\n    if (iVar5 < 0) {\n      FUN_00127101(lVar9);\n      uVar3 = 1;\n    }\n    else {\n      while (2 < iVar5) {\n        FUN_0012722e(lVar12,iVar5);\n        lVar10 = (long)iVar5;\n        iVar4 = iVar4 - iVar5;\n        iVar5 = FUN_00128918(lVar11 + lVar10,iVar4);\n        lVar11 = lVar11 + lVar10;\n      }\n      if (iVar5 == 2) {\n        FUN_0012722e(lVar12,2);\n        FUN_00128b92(param_1);\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }\n      else {\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }\n    }\n  }\n  else {\nLAB_00128d56:\n    (**(code **)(**(long **)(param_1 + 0x18) + 8))\n              (*(long **)(param_1 + 0x18),"Proxy error: unexpected proxy error",0x1f41,0);\n    uVar3 = 1;\n  }\nLAB_00128d76:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }\n                    \n  __stack_chk_fail();\n}" type_identifier (function_declarator "FUN_00128cfe(long param_1,int param_2)" identifier (parameter_list "(long param_1,int param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  char *pcVar6;\n  char *pcVar7;\n  char *pcVar8;\n  long lVar9;\n  long lVar10;\n  long lVar11;\n  long lVar12;\n  undefined8 uVar13;\n  ulong uVar14;\n  char *pcVar15;\n  int iVar16;\n  long in_FS_OFFSET;\n  byte bVar17;\n  undefined1 local_254 [4];\n  undefined1 local_250 [4];\n  int local_24c;\n  undefined1 local_248 [520];\n  long local_40;\n  \n  bVar17 = 0;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  iVar4 = *(int *)(param_1 + 0x84);\n  if (iVar4 == -1) {\n    FUN_0018b9e4(*(undefined8 *)(param_1 + 0x20),local_248,0x200);\n    pcVar6 = (char *)FUN_00126ed4("CONNECT %s:%i HTTP/1.1\r\nHost: %s:%i\r\n",local_248,\n                                  *(undefined4 *)(param_1 + 0x28),local_248,\n                                  *(undefined4 *)(param_1 + 0x28));\n    uVar14 = 0xffffffffffffffff;\n    pcVar7 = pcVar6;\n    do {\n      if (uVar14 == 0) break;\n      uVar14 = uVar14 - 1;\n      cVar1 = *pcVar7;\n      pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n    } while (cVar1 != '\0');\n    (**(code **)(**(long **)(param_1 + 0x10) + 0x10))(*(long **)(param_1 + 0x10),pcVar6,~uVar14 - 1)\n    ;\n    FUN_00127101(pcVar6);\n    pcVar7 = (char *)FUN_00119829(*(undefined8 *)(param_1 + 0xd0),0x10);\n    pcVar6 = (char *)FUN_00119829(*(undefined8 *)(param_1 + 0xd0),0x11);\n    if ((*pcVar7 != '\0') || (*pcVar6 != '\0')) {\n      pcVar6 = (char *)FUN_00126ed4("%s:%s",pcVar7,pcVar6);\n      lVar12 = -1;\n      pcVar7 = pcVar6;\n      do {\n        if (lVar12 == 0) break;\n        lVar12 = lVar12 + -1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar4 = ~(uint)lVar12 - 1;\n      pcVar8 = (char *)FUN_00126895((long)((iVar4 * 4) / 3 + 100),1);\n      builtin_strncpy(pcVar8,"Proxy-Authorization: Basic ",0x1c);\n      lVar12 = -1;\n      pcVar7 = pcVar8;\n      do {\n        if (lVar12 == 0) break;\n        lVar12 = lVar12 + -1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar5 = ~(uint)lVar12 - 1;\n      if (0 < iVar4) {\n        pcVar15 = pcVar8 + iVar5;\n        iVar16 = 0;\n        pcVar7 = pcVar6;\n        do {\n          iVar2 = iVar4 - iVar16;\n          if (3 < iVar4 - iVar16) {\n            iVar2 = 3;\n          }\n          FUN_001265e7(pcVar7,iVar2,pcVar15);\n          iVar16 = iVar16 + 3;\n          iVar5 = iVar5 + 4;\n          pcVar7 = pcVar7 + 3;\n          pcVar15 = pcVar15 + 4;\n        } while (iVar16 < iVar4);\n      }\n      pcVar7 = pcVar8 + iVar5;\n      pcVar7[0] = '\r';\n      pcVar7[1] = '\n';\n      pcVar7[2] = '\0';\n      uVar14 = 0xffffffffffffffff;\n      pcVar7 = pcVar8;\n      do {\n        if (uVar14 == 0) break;\n        uVar14 = uVar14 - 1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');\n      (**(code **)(**(long **)(param_1 + 0x10) + 0x10))\n                (*(long **)(param_1 + 0x10),pcVar8,~uVar14 - 1);\n      FUN_00127101(pcVar6);\n      FUN_00127101(pcVar8);\n    }\n    (**(code **)(**(long **)(param_1 + 0x10) + 0x10))(*(long **)(param_1 + 0x10),&DAT_001bc572,2);\n    *(undefined4 *)(param_1 + 0x84) = 1;\n    uVar3 = 0;\n    goto LAB_00128d76;\n  }\n  if (param_2 == 0) {\n    (**(code **)(**(long **)(param_1 + 0x18) + 8))\n              (*(long **)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x98),\n               *(undefined4 *)(param_1 + 0xa0),*(undefined4 *)(param_1 + 0xa4));\n    uVar3 = 0;\n    goto LAB_00128d76;\n  }\n  if (param_2 == 1) {\n    uVar3 = 0;\n    goto LAB_00128d76;\n  }\n  if (param_2 == 3) {\n    uVar3 = (**(code **)(**(long **)(param_1 + 0x18) + 0x20))\n                      (*(long **)(param_1 + 0x18),*(undefined8 *)(param_1 + 0xc0),\n                       *(undefined8 *)(param_1 + 200));\n    goto LAB_00128d76;\n  }\n  if (param_2 == 2) {\n    if (iVar4 == 1) {\n      lVar12 = param_1 + 0x68;\n      iVar4 = FUN_001267cf(lVar12);\n      if (iVar4 < 1) {\n                    \n        __assert_fail("len > 0","proxy.c",0x2af,"proxy_http_negotiate");\n      }\n      lVar11 = FUN_00126895((long)(iVar4 + 1),1);\n      FUN_001267eb(lVar12,lVar11,iVar4);\n      *(undefined1 *)(lVar11 + iVar4) = 0;\n      iVar4 = FUN_00128918(lVar11,iVar4);\n      uVar3 = 1;\n      if (iVar4 < 0) {\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }\n      local_24c = -1;\n      iVar5 = __isoc99_sscanf(lVar11,"HTTP/%i.%i %n",local_250,local_254,&local_24c);\n      if ((iVar5 < 2) || (local_24c == -1)) {\n        (**(code **)(**(long **)(param_1 + 0x18) + 8))\n                  (*(long **)(param_1 + 0x18),"Proxy error: HTTP response was absent",8000,0);\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }\n      FUN_0012722e(lVar12,iVar4);\n      if (*(char *)(lVar11 + local_24c) != '2') {\n        *(undefined1 *)(lVar11 + iVar4) = 0;\n        if ((local_24c < iVar4) &&\n           ((cVar1 = *(char *)(lVar11 + -1 + (long)iVar4), cVar1 == '\r' || (cVar1 == '\n')))) {\n          lVar12 = (long)(iVar4 + -1);\n          do {\n            *(undefined1 *)(lVar11 + lVar12) = 0;\n            if ((int)lVar12 <= local_24c) break;\n            cVar1 = *(char *)(lVar11 + -1 + lVar12);\n            lVar12 = lVar12 + -1;\n          } while ((cVar1 == '\r') || (cVar1 == '\n'));\n        }\n        uVar13 = FUN_00126ed4("Proxy error: %s",lVar11 + local_24c);\n        (**(code **)(**(long **)(param_1 + 0x18) + 8))(*(long **)(param_1 + 0x18),uVar13,8000,0);\n        FUN_00127101(uVar13);\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }\n      FUN_00127101(lVar11);\n      *(undefined4 *)(param_1 + 0x84) = 2;\n    }\n    else if (iVar4 != 2) goto LAB_00128d56;\n    lVar12 = param_1 + 0x68;\n    iVar4 = FUN_001267cf(lVar12);\n    if (iVar4 < 1) {\n                    \n      __assert_fail("len > 0","proxy.c",0x2e5,"proxy_http_negotiate");\n    }\n    lVar9 = FUN_00126895((long)iVar4,1);\n    FUN_001267eb(lVar12,lVar9,iVar4);\n    iVar5 = FUN_00128918(lVar9,iVar4);\n    lVar11 = lVar9;\n    if (iVar5 < 0) {\n      FUN_00127101(lVar9);\n      uVar3 = 1;\n    }\n    else {\n      while (2 < iVar5) {\n        FUN_0012722e(lVar12,iVar5);\n        lVar10 = (long)iVar5;\n        iVar4 = iVar4 - iVar5;\n        iVar5 = FUN_00128918(lVar11 + lVar10,iVar4);\n        lVar11 = lVar11 + lVar10;\n      }\n      if (iVar5 == 2) {\n        FUN_0012722e(lVar12,2);\n        FUN_00128b92(param_1);\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }\n      else {\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }\n    }\n  }\n  else {\nLAB_00128d56:\n    (**(code **)(**(long **)(param_1 + 0x18) + 8))\n              (*(long **)(param_1 + 0x18),"Proxy error: unexpected proxy error",0x1f41,0);\n    uVar3 = 1;\n  }\nLAB_00128d76:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }\n                    \n  __stack_chk_fail();\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "long lVar9;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar10;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar11;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar12;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 uVar13;" type_identifier identifier ;) (declaration "ulong uVar14;" type_identifier identifier ;) (declaration "char *pcVar15;" primitive_type (pointer_declarator "*pcVar15" * identifier) ;) (declaration "int iVar16;" primitive_type identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "byte bVar17;" type_identifier identifier ;) (declaration "undefined1 local_254 [4];" type_identifier (array_declarator "local_254 [4]" identifier [ number_literal ]) ;) (declaration "undefined1 local_250 [4];" type_identifier (array_declarator "local_250 [4]" identifier [ number_literal ]) ;) (declaration "int local_24c;" primitive_type identifier ;) (declaration "undefined1 local_248 [520];" type_identifier (array_declarator "local_248 [520]" identifier [ number_literal ]) ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (expression_statement "bVar17 = 0;" (assignment_expression "bVar17 = 0" identifier = number_literal) ;) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = *(int *)(param_1 + 0x84);" (assignment_expression "iVar4 = *(int *)(param_1 + 0x84)" identifier = (pointer_expression "*(int *)(param_1 + 0x84)" * (cast_expression "(int *)(param_1 + 0x84)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x84)" ( (binary_expression "param_1 + 0x84" identifier + number_literal) ))))) ;) (if_statement "if (iVar4 == -1) {\n    FUN_0018b9e4(*(undefined8 *)(param_1 + 0x20),local_248,0x200);\n    pcVar6 = (char *)FUN_00126ed4("CONNECT %s:%i HTTP/1.1\r\nHost: %s:%i\r\n",local_248,\n                                  *(undefined4 *)(param_1 + 0x28),local_248,\n                                  *(undefined4 *)(param_1 + 0x28));\n    uVar14 = 0xffffffffffffffff;\n    pcVar7 = pcVar6;\n    do {\n      if (uVar14 == 0) break;\n      uVar14 = uVar14 - 1;\n      cVar1 = *pcVar7;\n      pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n    } while (cVar1 != '\0');\n    (**(code **)(**(long **)(param_1 + 0x10) + 0x10))(*(long **)(param_1 + 0x10),pcVar6,~uVar14 - 1)\n    ;\n    FUN_00127101(pcVar6);\n    pcVar7 = (char *)FUN_00119829(*(undefined8 *)(param_1 + 0xd0),0x10);\n    pcVar6 = (char *)FUN_00119829(*(undefined8 *)(param_1 + 0xd0),0x11);\n    if ((*pcVar7 != '\0') || (*pcVar6 != '\0')) {\n      pcVar6 = (char *)FUN_00126ed4("%s:%s",pcVar7,pcVar6);\n      lVar12 = -1;\n      pcVar7 = pcVar6;\n      do {\n        if (lVar12 == 0) break;\n        lVar12 = lVar12 + -1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar4 = ~(uint)lVar12 - 1;\n      pcVar8 = (char *)FUN_00126895((long)((iVar4 * 4) / 3 + 100),1);\n      builtin_strncpy(pcVar8,"Proxy-Authorization: Basic ",0x1c);\n      lVar12 = -1;\n      pcVar7 = pcVar8;\n      do {\n        if (lVar12 == 0) break;\n        lVar12 = lVar12 + -1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar5 = ~(uint)lVar12 - 1;\n      if (0 < iVar4) {\n        pcVar15 = pcVar8 + iVar5;\n        iVar16 = 0;\n        pcVar7 = pcVar6;\n        do {\n          iVar2 = iVar4 - iVar16;\n          if (3 < iVar4 - iVar16) {\n            iVar2 = 3;\n          }\n          FUN_001265e7(pcVar7,iVar2,pcVar15);\n          iVar16 = iVar16 + 3;\n          iVar5 = iVar5 + 4;\n          pcVar7 = pcVar7 + 3;\n          pcVar15 = pcVar15 + 4;\n        } while (iVar16 < iVar4);\n      }\n      pcVar7 = pcVar8 + iVar5;\n      pcVar7[0] = '\r';\n      pcVar7[1] = '\n';\n      pcVar7[2] = '\0';\n      uVar14 = 0xffffffffffffffff;\n      pcVar7 = pcVar8;\n      do {\n        if (uVar14 == 0) break;\n        uVar14 = uVar14 - 1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');\n      (**(code **)(**(long **)(param_1 + 0x10) + 0x10))\n                (*(long **)(param_1 + 0x10),pcVar8,~uVar14 - 1);\n      FUN_00127101(pcVar6);\n      FUN_00127101(pcVar8);\n    }\n    (**(code **)(**(long **)(param_1 + 0x10) + 0x10))(*(long **)(param_1 + 0x10),&DAT_001bc572,2);\n    *(undefined4 *)(param_1 + 0x84) = 1;\n    uVar3 = 0;\n    goto LAB_00128d76;\n  }" if (parenthesized_expression "(iVar4 == -1)" ( (binary_expression "iVar4 == -1" identifier == number_literal) )) (compound_statement "{\n    FUN_0018b9e4(*(undefined8 *)(param_1 + 0x20),local_248,0x200);\n    pcVar6 = (char *)FUN_00126ed4("CONNECT %s:%i HTTP/1.1\r\nHost: %s:%i\r\n",local_248,\n                                  *(undefined4 *)(param_1 + 0x28),local_248,\n                                  *(undefined4 *)(param_1 + 0x28));\n    uVar14 = 0xffffffffffffffff;\n    pcVar7 = pcVar6;\n    do {\n      if (uVar14 == 0) break;\n      uVar14 = uVar14 - 1;\n      cVar1 = *pcVar7;\n      pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n    } while (cVar1 != '\0');\n    (**(code **)(**(long **)(param_1 + 0x10) + 0x10))(*(long **)(param_1 + 0x10),pcVar6,~uVar14 - 1)\n    ;\n    FUN_00127101(pcVar6);\n    pcVar7 = (char *)FUN_00119829(*(undefined8 *)(param_1 + 0xd0),0x10);\n    pcVar6 = (char *)FUN_00119829(*(undefined8 *)(param_1 + 0xd0),0x11);\n    if ((*pcVar7 != '\0') || (*pcVar6 != '\0')) {\n      pcVar6 = (char *)FUN_00126ed4("%s:%s",pcVar7,pcVar6);\n      lVar12 = -1;\n      pcVar7 = pcVar6;\n      do {\n        if (lVar12 == 0) break;\n        lVar12 = lVar12 + -1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar4 = ~(uint)lVar12 - 1;\n      pcVar8 = (char *)FUN_00126895((long)((iVar4 * 4) / 3 + 100),1);\n      builtin_strncpy(pcVar8,"Proxy-Authorization: Basic ",0x1c);\n      lVar12 = -1;\n      pcVar7 = pcVar8;\n      do {\n        if (lVar12 == 0) break;\n        lVar12 = lVar12 + -1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar5 = ~(uint)lVar12 - 1;\n      if (0 < iVar4) {\n        pcVar15 = pcVar8 + iVar5;\n        iVar16 = 0;\n        pcVar7 = pcVar6;\n        do {\n          iVar2 = iVar4 - iVar16;\n          if (3 < iVar4 - iVar16) {\n            iVar2 = 3;\n          }\n          FUN_001265e7(pcVar7,iVar2,pcVar15);\n          iVar16 = iVar16 + 3;\n          iVar5 = iVar5 + 4;\n          pcVar7 = pcVar7 + 3;\n          pcVar15 = pcVar15 + 4;\n        } while (iVar16 < iVar4);\n      }\n      pcVar7 = pcVar8 + iVar5;\n      pcVar7[0] = '\r';\n      pcVar7[1] = '\n';\n      pcVar7[2] = '\0';\n      uVar14 = 0xffffffffffffffff;\n      pcVar7 = pcVar8;\n      do {\n        if (uVar14 == 0) break;\n        uVar14 = uVar14 - 1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');\n      (**(code **)(**(long **)(param_1 + 0x10) + 0x10))\n                (*(long **)(param_1 + 0x10),pcVar8,~uVar14 - 1);\n      FUN_00127101(pcVar6);\n      FUN_00127101(pcVar8);\n    }\n    (**(code **)(**(long **)(param_1 + 0x10) + 0x10))(*(long **)(param_1 + 0x10),&DAT_001bc572,2);\n    *(undefined4 *)(param_1 + 0x84) = 1;\n    uVar3 = 0;\n    goto LAB_00128d76;\n  }" { (expression_statement "FUN_0018b9e4(*(undefined8 *)(param_1 + 0x20),local_248,0x200);" (call_expression "FUN_0018b9e4(*(undefined8 *)(param_1 + 0x20),local_248,0x200)" identifier (argument_list "(*(undefined8 *)(param_1 + 0x20),local_248,0x200)" ( (pointer_expression "*(undefined8 *)(param_1 + 0x20)" * (cast_expression "(undefined8 *)(param_1 + 0x20)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) , identifier , number_literal ))) ;) (expression_statement "pcVar6 = (char *)FUN_00126ed4("CONNECT %s:%i HTTP/1.1\r\nHost: %s:%i\r\n",local_248,\n                                  *(undefined4 *)(param_1 + 0x28),local_248,\n                                  *(undefined4 *)(param_1 + 0x28));" (assignment_expression "pcVar6 = (char *)FUN_00126ed4("CONNECT %s:%i HTTP/1.1\r\nHost: %s:%i\r\n",local_248,\n                                  *(undefined4 *)(param_1 + 0x28),local_248,\n                                  *(undefined4 *)(param_1 + 0x28))" identifier = (cast_expression "(char *)FUN_00126ed4("CONNECT %s:%i HTTP/1.1\r\nHost: %s:%i\r\n",local_248,\n                                  *(undefined4 *)(param_1 + 0x28),local_248,\n                                  *(undefined4 *)(param_1 + 0x28))" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00126ed4("CONNECT %s:%i HTTP/1.1\r\nHost: %s:%i\r\n",local_248,\n                                  *(undefined4 *)(param_1 + 0x28),local_248,\n                                  *(undefined4 *)(param_1 + 0x28))" identifier (argument_list "("CONNECT %s:%i HTTP/1.1\r\nHost: %s:%i\r\n",local_248,\n                                  *(undefined4 *)(param_1 + 0x28),local_248,\n                                  *(undefined4 *)(param_1 + 0x28))" ( (string_literal ""CONNECT %s:%i HTTP/1.1\r\nHost: %s:%i\r\n"" " string_content escape_sequence escape_sequence string_content escape_sequence escape_sequence ") , identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x28)" * (cast_expression "(undefined4 *)(param_1 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) , identifier , (pointer_expression "*(undefined4 *)(param_1 + 0x28)" * (cast_expression "(undefined4 *)(param_1 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) ))))) ;) (expression_statement "uVar14 = 0xffffffffffffffff;" (assignment_expression "uVar14 = 0xffffffffffffffff" identifier = number_literal) ;) (expression_statement "pcVar7 = pcVar6;" (assignment_expression "pcVar7 = pcVar6" identifier = identifier) ;) (do_statement "do {\n      if (uVar14 == 0) break;\n      uVar14 = uVar14 - 1;\n      cVar1 = *pcVar7;\n      pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n    } while (cVar1 != '\0');" do (compound_statement "{\n      if (uVar14 == 0) break;\n      uVar14 = uVar14 - 1;\n      cVar1 = *pcVar7;\n      pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n    }" { (if_statement "if (uVar14 == 0) break;" if (parenthesized_expression "(uVar14 == 0)" ( (binary_expression "uVar14 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar14 = uVar14 - 1;" (assignment_expression "uVar14 = uVar14 - 1" identifier = (binary_expression "uVar14 - 1" identifier - number_literal)) ;) (expression_statement "cVar1 = *pcVar7;" (assignment_expression "cVar1 = *pcVar7" identifier = (pointer_expression "*pcVar7" * identifier)) ;) (expression_statement "pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;" (assignment_expression "pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1" identifier = (binary_expression "pcVar7 + (ulong)bVar17 * -2 + 1" (binary_expression "pcVar7 + (ulong)bVar17 * -2" identifier + (binary_expression "(ulong)bVar17 * -2" (cast_expression "(ulong)bVar17" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "(**(code **)(**(long **)(param_1 + 0x10) + 0x10))(*(long **)(param_1 + 0x10),pcVar6,~uVar14 - 1)\n    ;" (call_expression "(**(code **)(**(long **)(param_1 + 0x10) + 0x10))(*(long **)(param_1 + 0x10),pcVar6,~uVar14 - 1)" (parenthesized_expression "(**(code **)(**(long **)(param_1 + 0x10) + 0x10))" ( (pointer_expression "**(code **)(**(long **)(param_1 + 0x10) + 0x10)" * (pointer_expression "*(code **)(**(long **)(param_1 + 0x10) + 0x10)" * (cast_expression "(code **)(**(long **)(param_1 + 0x10) + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(long **)(param_1 + 0x10) + 0x10)" ( (binary_expression "**(long **)(param_1 + 0x10) + 0x10" (pointer_expression "**(long **)(param_1 + 0x10)" * (pointer_expression "*(long **)(param_1 + 0x10)" * (cast_expression "(long **)(param_1 + 0x10)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(long **)(param_1 + 0x10),pcVar6,~uVar14 - 1)" ( (pointer_expression "*(long **)(param_1 + 0x10)" * (cast_expression "(long **)(param_1 + 0x10)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) , identifier , (binary_expression "~uVar14 - 1" (unary_expression "~uVar14" ~ identifier) - number_literal) ))) ;) (expression_statement "FUN_00127101(pcVar6);" (call_expression "FUN_00127101(pcVar6)" identifier (argument_list "(pcVar6)" ( identifier ))) ;) (expression_statement "pcVar7 = (char *)FUN_00119829(*(undefined8 *)(param_1 + 0xd0),0x10);" (assignment_expression "pcVar7 = (char *)FUN_00119829(*(undefined8 *)(param_1 + 0xd0),0x10)" identifier = (cast_expression "(char *)FUN_00119829(*(undefined8 *)(param_1 + 0xd0),0x10)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00119829(*(undefined8 *)(param_1 + 0xd0),0x10)" identifier (argument_list "(*(undefined8 *)(param_1 + 0xd0),0x10)" ( (pointer_expression "*(undefined8 *)(param_1 + 0xd0)" * (cast_expression "(undefined8 *)(param_1 + 0xd0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xd0)" ( (binary_expression "param_1 + 0xd0" identifier + number_literal) )))) , number_literal ))))) ;) (expression_statement "pcVar6 = (char *)FUN_00119829(*(undefined8 *)(param_1 + 0xd0),0x11);" (assignment_expression "pcVar6 = (char *)FUN_00119829(*(undefined8 *)(param_1 + 0xd0),0x11)" identifier = (cast_expression "(char *)FUN_00119829(*(undefined8 *)(param_1 + 0xd0),0x11)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00119829(*(undefined8 *)(param_1 + 0xd0),0x11)" identifier (argument_list "(*(undefined8 *)(param_1 + 0xd0),0x11)" ( (pointer_expression "*(undefined8 *)(param_1 + 0xd0)" * (cast_expression "(undefined8 *)(param_1 + 0xd0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xd0)" ( (binary_expression "param_1 + 0xd0" identifier + number_literal) )))) , number_literal ))))) ;) (if_statement "if ((*pcVar7 != '\0') || (*pcVar6 != '\0')) {\n      pcVar6 = (char *)FUN_00126ed4("%s:%s",pcVar7,pcVar6);\n      lVar12 = -1;\n      pcVar7 = pcVar6;\n      do {\n        if (lVar12 == 0) break;\n        lVar12 = lVar12 + -1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar4 = ~(uint)lVar12 - 1;\n      pcVar8 = (char *)FUN_00126895((long)((iVar4 * 4) / 3 + 100),1);\n      builtin_strncpy(pcVar8,"Proxy-Authorization: Basic ",0x1c);\n      lVar12 = -1;\n      pcVar7 = pcVar8;\n      do {\n        if (lVar12 == 0) break;\n        lVar12 = lVar12 + -1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar5 = ~(uint)lVar12 - 1;\n      if (0 < iVar4) {\n        pcVar15 = pcVar8 + iVar5;\n        iVar16 = 0;\n        pcVar7 = pcVar6;\n        do {\n          iVar2 = iVar4 - iVar16;\n          if (3 < iVar4 - iVar16) {\n            iVar2 = 3;\n          }\n          FUN_001265e7(pcVar7,iVar2,pcVar15);\n          iVar16 = iVar16 + 3;\n          iVar5 = iVar5 + 4;\n          pcVar7 = pcVar7 + 3;\n          pcVar15 = pcVar15 + 4;\n        } while (iVar16 < iVar4);\n      }\n      pcVar7 = pcVar8 + iVar5;\n      pcVar7[0] = '\r';\n      pcVar7[1] = '\n';\n      pcVar7[2] = '\0';\n      uVar14 = 0xffffffffffffffff;\n      pcVar7 = pcVar8;\n      do {\n        if (uVar14 == 0) break;\n        uVar14 = uVar14 - 1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');\n      (**(code **)(**(long **)(param_1 + 0x10) + 0x10))\n                (*(long **)(param_1 + 0x10),pcVar8,~uVar14 - 1);\n      FUN_00127101(pcVar6);\n      FUN_00127101(pcVar8);\n    }" if (parenthesized_expression "((*pcVar7 != '\0') || (*pcVar6 != '\0'))" ( (binary_expression "(*pcVar7 != '\0') || (*pcVar6 != '\0')" (parenthesized_expression "(*pcVar7 != '\0')" ( (binary_expression "*pcVar7 != '\0'" (pointer_expression "*pcVar7" * identifier) != (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(*pcVar6 != '\0')" ( (binary_expression "*pcVar6 != '\0'" (pointer_expression "*pcVar6" * identifier) != (char_literal "'\0'" ' escape_sequence ')) ))) )) (compound_statement "{\n      pcVar6 = (char *)FUN_00126ed4("%s:%s",pcVar7,pcVar6);\n      lVar12 = -1;\n      pcVar7 = pcVar6;\n      do {\n        if (lVar12 == 0) break;\n        lVar12 = lVar12 + -1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar4 = ~(uint)lVar12 - 1;\n      pcVar8 = (char *)FUN_00126895((long)((iVar4 * 4) / 3 + 100),1);\n      builtin_strncpy(pcVar8,"Proxy-Authorization: Basic ",0x1c);\n      lVar12 = -1;\n      pcVar7 = pcVar8;\n      do {\n        if (lVar12 == 0) break;\n        lVar12 = lVar12 + -1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar5 = ~(uint)lVar12 - 1;\n      if (0 < iVar4) {\n        pcVar15 = pcVar8 + iVar5;\n        iVar16 = 0;\n        pcVar7 = pcVar6;\n        do {\n          iVar2 = iVar4 - iVar16;\n          if (3 < iVar4 - iVar16) {\n            iVar2 = 3;\n          }\n          FUN_001265e7(pcVar7,iVar2,pcVar15);\n          iVar16 = iVar16 + 3;\n          iVar5 = iVar5 + 4;\n          pcVar7 = pcVar7 + 3;\n          pcVar15 = pcVar15 + 4;\n        } while (iVar16 < iVar4);\n      }\n      pcVar7 = pcVar8 + iVar5;\n      pcVar7[0] = '\r';\n      pcVar7[1] = '\n';\n      pcVar7[2] = '\0';\n      uVar14 = 0xffffffffffffffff;\n      pcVar7 = pcVar8;\n      do {\n        if (uVar14 == 0) break;\n        uVar14 = uVar14 - 1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');\n      (**(code **)(**(long **)(param_1 + 0x10) + 0x10))\n                (*(long **)(param_1 + 0x10),pcVar8,~uVar14 - 1);\n      FUN_00127101(pcVar6);\n      FUN_00127101(pcVar8);\n    }" { (expression_statement "pcVar6 = (char *)FUN_00126ed4("%s:%s",pcVar7,pcVar6);" (assignment_expression "pcVar6 = (char *)FUN_00126ed4("%s:%s",pcVar7,pcVar6)" identifier = (cast_expression "(char *)FUN_00126ed4("%s:%s",pcVar7,pcVar6)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00126ed4("%s:%s",pcVar7,pcVar6)" identifier (argument_list "("%s:%s",pcVar7,pcVar6)" ( (string_literal ""%s:%s"" " string_content ") , identifier , identifier ))))) ;) (expression_statement "lVar12 = -1;" (assignment_expression "lVar12 = -1" identifier = number_literal) ;) (expression_statement "pcVar7 = pcVar6;" (assignment_expression "pcVar7 = pcVar6" identifier = identifier) ;) (do_statement "do {\n        if (lVar12 == 0) break;\n        lVar12 = lVar12 + -1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');" do (compound_statement "{\n        if (lVar12 == 0) break;\n        lVar12 = lVar12 + -1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      }" { (if_statement "if (lVar12 == 0) break;" if (parenthesized_expression "(lVar12 == 0)" ( (binary_expression "lVar12 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar12 = lVar12 + -1;" (assignment_expression "lVar12 = lVar12 + -1" identifier = (binary_expression "lVar12 + -1" identifier + number_literal)) ;) (expression_statement "cVar1 = *pcVar7;" (assignment_expression "cVar1 = *pcVar7" identifier = (pointer_expression "*pcVar7" * identifier)) ;) (expression_statement "pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;" (assignment_expression "pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1" identifier = (binary_expression "pcVar7 + (ulong)bVar17 * -2 + 1" (binary_expression "pcVar7 + (ulong)bVar17 * -2" identifier + (binary_expression "(ulong)bVar17 * -2" (cast_expression "(ulong)bVar17" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "iVar4 = ~(uint)lVar12 - 1;" (assignment_expression "iVar4 = ~(uint)lVar12 - 1" identifier = (binary_expression "~(uint)lVar12 - 1" (unary_expression "~(uint)lVar12" ~ (cast_expression "(uint)lVar12" ( (type_descriptor "uint" type_identifier) ) identifier)) - number_literal)) ;) (expression_statement "pcVar8 = (char *)FUN_00126895((long)((iVar4 * 4) / 3 + 100),1);" (assignment_expression "pcVar8 = (char *)FUN_00126895((long)((iVar4 * 4) / 3 + 100),1)" identifier = (cast_expression "(char *)FUN_00126895((long)((iVar4 * 4) / 3 + 100),1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00126895((long)((iVar4 * 4) / 3 + 100),1)" identifier (argument_list "((long)((iVar4 * 4) / 3 + 100),1)" ( (cast_expression "(long)((iVar4 * 4) / 3 + 100)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "((iVar4 * 4) / 3 + 100)" ( (binary_expression "(iVar4 * 4) / 3 + 100" (binary_expression "(iVar4 * 4) / 3" (parenthesized_expression "(iVar4 * 4)" ( (binary_expression "iVar4 * 4" identifier * number_literal) )) / number_literal) + number_literal) ))) , number_literal ))))) ;) (expression_statement "builtin_strncpy(pcVar8,"Proxy-Authorization: Basic ",0x1c);" (call_expression "builtin_strncpy(pcVar8,"Proxy-Authorization: Basic ",0x1c)" identifier (argument_list "(pcVar8,"Proxy-Authorization: Basic ",0x1c)" ( identifier , (string_literal ""Proxy-Authorization: Basic "" " string_content ") , number_literal ))) ;) (expression_statement "lVar12 = -1;" (assignment_expression "lVar12 = -1" identifier = number_literal) ;) (expression_statement "pcVar7 = pcVar8;" (assignment_expression "pcVar7 = pcVar8" identifier = identifier) ;) (do_statement "do {\n        if (lVar12 == 0) break;\n        lVar12 = lVar12 + -1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');" do (compound_statement "{\n        if (lVar12 == 0) break;\n        lVar12 = lVar12 + -1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      }" { (if_statement "if (lVar12 == 0) break;" if (parenthesized_expression "(lVar12 == 0)" ( (binary_expression "lVar12 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "lVar12 = lVar12 + -1;" (assignment_expression "lVar12 = lVar12 + -1" identifier = (binary_expression "lVar12 + -1" identifier + number_literal)) ;) (expression_statement "cVar1 = *pcVar7;" (assignment_expression "cVar1 = *pcVar7" identifier = (pointer_expression "*pcVar7" * identifier)) ;) (expression_statement "pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;" (assignment_expression "pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1" identifier = (binary_expression "pcVar7 + (ulong)bVar17 * -2 + 1" (binary_expression "pcVar7 + (ulong)bVar17 * -2" identifier + (binary_expression "(ulong)bVar17 * -2" (cast_expression "(ulong)bVar17" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "iVar5 = ~(uint)lVar12 - 1;" (assignment_expression "iVar5 = ~(uint)lVar12 - 1" identifier = (binary_expression "~(uint)lVar12 - 1" (unary_expression "~(uint)lVar12" ~ (cast_expression "(uint)lVar12" ( (type_descriptor "uint" type_identifier) ) identifier)) - number_literal)) ;) (if_statement "if (0 < iVar4) {\n        pcVar15 = pcVar8 + iVar5;\n        iVar16 = 0;\n        pcVar7 = pcVar6;\n        do {\n          iVar2 = iVar4 - iVar16;\n          if (3 < iVar4 - iVar16) {\n            iVar2 = 3;\n          }\n          FUN_001265e7(pcVar7,iVar2,pcVar15);\n          iVar16 = iVar16 + 3;\n          iVar5 = iVar5 + 4;\n          pcVar7 = pcVar7 + 3;\n          pcVar15 = pcVar15 + 4;\n        } while (iVar16 < iVar4);\n      }" if (parenthesized_expression "(0 < iVar4)" ( (binary_expression "0 < iVar4" number_literal < identifier) )) (compound_statement "{\n        pcVar15 = pcVar8 + iVar5;\n        iVar16 = 0;\n        pcVar7 = pcVar6;\n        do {\n          iVar2 = iVar4 - iVar16;\n          if (3 < iVar4 - iVar16) {\n            iVar2 = 3;\n          }\n          FUN_001265e7(pcVar7,iVar2,pcVar15);\n          iVar16 = iVar16 + 3;\n          iVar5 = iVar5 + 4;\n          pcVar7 = pcVar7 + 3;\n          pcVar15 = pcVar15 + 4;\n        } while (iVar16 < iVar4);\n      }" { (expression_statement "pcVar15 = pcVar8 + iVar5;" (assignment_expression "pcVar15 = pcVar8 + iVar5" identifier = (binary_expression "pcVar8 + iVar5" identifier + identifier)) ;) (expression_statement "iVar16 = 0;" (assignment_expression "iVar16 = 0" identifier = number_literal) ;) (expression_statement "pcVar7 = pcVar6;" (assignment_expression "pcVar7 = pcVar6" identifier = identifier) ;) (do_statement "do {\n          iVar2 = iVar4 - iVar16;\n          if (3 < iVar4 - iVar16) {\n            iVar2 = 3;\n          }\n          FUN_001265e7(pcVar7,iVar2,pcVar15);\n          iVar16 = iVar16 + 3;\n          iVar5 = iVar5 + 4;\n          pcVar7 = pcVar7 + 3;\n          pcVar15 = pcVar15 + 4;\n        } while (iVar16 < iVar4);" do (compound_statement "{\n          iVar2 = iVar4 - iVar16;\n          if (3 < iVar4 - iVar16) {\n            iVar2 = 3;\n          }\n          FUN_001265e7(pcVar7,iVar2,pcVar15);\n          iVar16 = iVar16 + 3;\n          iVar5 = iVar5 + 4;\n          pcVar7 = pcVar7 + 3;\n          pcVar15 = pcVar15 + 4;\n        }" { (expression_statement "iVar2 = iVar4 - iVar16;" (assignment_expression "iVar2 = iVar4 - iVar16" identifier = (binary_expression "iVar4 - iVar16" identifier - identifier)) ;) (if_statement "if (3 < iVar4 - iVar16) {\n            iVar2 = 3;\n          }" if (parenthesized_expression "(3 < iVar4 - iVar16)" ( (binary_expression "3 < iVar4 - iVar16" number_literal < (binary_expression "iVar4 - iVar16" identifier - identifier)) )) (compound_statement "{\n            iVar2 = 3;\n          }" { (expression_statement "iVar2 = 3;" (assignment_expression "iVar2 = 3" identifier = number_literal) ;) })) (expression_statement "FUN_001265e7(pcVar7,iVar2,pcVar15);" (call_expression "FUN_001265e7(pcVar7,iVar2,pcVar15)" identifier (argument_list "(pcVar7,iVar2,pcVar15)" ( identifier , identifier , identifier ))) ;) (expression_statement "iVar16 = iVar16 + 3;" (assignment_expression "iVar16 = iVar16 + 3" identifier = (binary_expression "iVar16 + 3" identifier + number_literal)) ;) (expression_statement "iVar5 = iVar5 + 4;" (assignment_expression "iVar5 = iVar5 + 4" identifier = (binary_expression "iVar5 + 4" identifier + number_literal)) ;) (expression_statement "pcVar7 = pcVar7 + 3;" (assignment_expression "pcVar7 = pcVar7 + 3" identifier = (binary_expression "pcVar7 + 3" identifier + number_literal)) ;) (expression_statement "pcVar15 = pcVar15 + 4;" (assignment_expression "pcVar15 = pcVar15 + 4" identifier = (binary_expression "pcVar15 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar16 < iVar4)" ( (binary_expression "iVar16 < iVar4" identifier < identifier) )) ;) })) (expression_statement "pcVar7 = pcVar8 + iVar5;" (assignment_expression "pcVar7 = pcVar8 + iVar5" identifier = (binary_expression "pcVar8 + iVar5" identifier + identifier)) ;) (expression_statement "pcVar7[0] = '\r';" (assignment_expression "pcVar7[0] = '\r'" (subscript_expression "pcVar7[0]" identifier [ number_literal ]) = (char_literal "'\r'" ' escape_sequence ')) ;) (expression_statement "pcVar7[1] = '\n';" (assignment_expression "pcVar7[1] = '\n'" (subscript_expression "pcVar7[1]" identifier [ number_literal ]) = (char_literal "'\n'" ' escape_sequence ')) ;) (expression_statement "pcVar7[2] = '\0';" (assignment_expression "pcVar7[2] = '\0'" (subscript_expression "pcVar7[2]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "uVar14 = 0xffffffffffffffff;" (assignment_expression "uVar14 = 0xffffffffffffffff" identifier = number_literal) ;) (expression_statement "pcVar7 = pcVar8;" (assignment_expression "pcVar7 = pcVar8" identifier = identifier) ;) (do_statement "do {\n        if (uVar14 == 0) break;\n        uVar14 = uVar14 - 1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');" do (compound_statement "{\n        if (uVar14 == 0) break;\n        uVar14 = uVar14 - 1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      }" { (if_statement "if (uVar14 == 0) break;" if (parenthesized_expression "(uVar14 == 0)" ( (binary_expression "uVar14 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar14 = uVar14 - 1;" (assignment_expression "uVar14 = uVar14 - 1" identifier = (binary_expression "uVar14 - 1" identifier - number_literal)) ;) (expression_statement "cVar1 = *pcVar7;" (assignment_expression "cVar1 = *pcVar7" identifier = (pointer_expression "*pcVar7" * identifier)) ;) (expression_statement "pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;" (assignment_expression "pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1" identifier = (binary_expression "pcVar7 + (ulong)bVar17 * -2 + 1" (binary_expression "pcVar7 + (ulong)bVar17 * -2" identifier + (binary_expression "(ulong)bVar17 * -2" (cast_expression "(ulong)bVar17" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "(**(code **)(**(long **)(param_1 + 0x10) + 0x10))\n                (*(long **)(param_1 + 0x10),pcVar8,~uVar14 - 1);" (call_expression "(**(code **)(**(long **)(param_1 + 0x10) + 0x10))\n                (*(long **)(param_1 + 0x10),pcVar8,~uVar14 - 1)" (parenthesized_expression "(**(code **)(**(long **)(param_1 + 0x10) + 0x10))" ( (pointer_expression "**(code **)(**(long **)(param_1 + 0x10) + 0x10)" * (pointer_expression "*(code **)(**(long **)(param_1 + 0x10) + 0x10)" * (cast_expression "(code **)(**(long **)(param_1 + 0x10) + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(long **)(param_1 + 0x10) + 0x10)" ( (binary_expression "**(long **)(param_1 + 0x10) + 0x10" (pointer_expression "**(long **)(param_1 + 0x10)" * (pointer_expression "*(long **)(param_1 + 0x10)" * (cast_expression "(long **)(param_1 + 0x10)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(long **)(param_1 + 0x10),pcVar8,~uVar14 - 1)" ( (pointer_expression "*(long **)(param_1 + 0x10)" * (cast_expression "(long **)(param_1 + 0x10)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) , identifier , (binary_expression "~uVar14 - 1" (unary_expression "~uVar14" ~ identifier) - number_literal) ))) ;) (expression_statement "FUN_00127101(pcVar6);" (call_expression "FUN_00127101(pcVar6)" identifier (argument_list "(pcVar6)" ( identifier ))) ;) (expression_statement "FUN_00127101(pcVar8);" (call_expression "FUN_00127101(pcVar8)" identifier (argument_list "(pcVar8)" ( identifier ))) ;) })) (expression_statement "(**(code **)(**(long **)(param_1 + 0x10) + 0x10))(*(long **)(param_1 + 0x10),&DAT_001bc572,2);" (call_expression "(**(code **)(**(long **)(param_1 + 0x10) + 0x10))(*(long **)(param_1 + 0x10),&DAT_001bc572,2)" (parenthesized_expression "(**(code **)(**(long **)(param_1 + 0x10) + 0x10))" ( (pointer_expression "**(code **)(**(long **)(param_1 + 0x10) + 0x10)" * (pointer_expression "*(code **)(**(long **)(param_1 + 0x10) + 0x10)" * (cast_expression "(code **)(**(long **)(param_1 + 0x10) + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(long **)(param_1 + 0x10) + 0x10)" ( (binary_expression "**(long **)(param_1 + 0x10) + 0x10" (pointer_expression "**(long **)(param_1 + 0x10)" * (pointer_expression "*(long **)(param_1 + 0x10)" * (cast_expression "(long **)(param_1 + 0x10)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(long **)(param_1 + 0x10),&DAT_001bc572,2)" ( (pointer_expression "*(long **)(param_1 + 0x10)" * (cast_expression "(long **)(param_1 + 0x10)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) , (pointer_expression "&DAT_001bc572" & identifier) , number_literal ))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x84) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x84) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x84)" * (cast_expression "(undefined4 *)(param_1 + 0x84)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x84)" ( (binary_expression "param_1 + 0x84" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00128d76;" goto statement_identifier ;) })) (if_statement "if (param_2 == 0) {\n    (**(code **)(**(long **)(param_1 + 0x18) + 8))\n              (*(long **)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x98),\n               *(undefined4 *)(param_1 + 0xa0),*(undefined4 *)(param_1 + 0xa4));\n    uVar3 = 0;\n    goto LAB_00128d76;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    (**(code **)(**(long **)(param_1 + 0x18) + 8))\n              (*(long **)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x98),\n               *(undefined4 *)(param_1 + 0xa0),*(undefined4 *)(param_1 + 0xa4));\n    uVar3 = 0;\n    goto LAB_00128d76;\n  }" { (expression_statement "(**(code **)(**(long **)(param_1 + 0x18) + 8))\n              (*(long **)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x98),\n               *(undefined4 *)(param_1 + 0xa0),*(undefined4 *)(param_1 + 0xa4));" (call_expression "(**(code **)(**(long **)(param_1 + 0x18) + 8))\n              (*(long **)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x98),\n               *(undefined4 *)(param_1 + 0xa0),*(undefined4 *)(param_1 + 0xa4))" (parenthesized_expression "(**(code **)(**(long **)(param_1 + 0x18) + 8))" ( (pointer_expression "**(code **)(**(long **)(param_1 + 0x18) + 8)" * (pointer_expression "*(code **)(**(long **)(param_1 + 0x18) + 8)" * (cast_expression "(code **)(**(long **)(param_1 + 0x18) + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(long **)(param_1 + 0x18) + 8)" ( (binary_expression "**(long **)(param_1 + 0x18) + 8" (pointer_expression "**(long **)(param_1 + 0x18)" * (pointer_expression "*(long **)(param_1 + 0x18)" * (cast_expression "(long **)(param_1 + 0x18)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(long **)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x98),\n               *(undefined4 *)(param_1 + 0xa0),*(undefined4 *)(param_1 + 0xa4))" ( (pointer_expression "*(long **)(param_1 + 0x18)" * (cast_expression "(long **)(param_1 + 0x18)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) , (pointer_expression "*(undefined8 *)(param_1 + 0x98)" * (cast_expression "(undefined8 *)(param_1 + 0x98)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x98)" ( (binary_expression "param_1 + 0x98" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0xa0)" * (cast_expression "(undefined4 *)(param_1 + 0xa0)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xa0)" ( (binary_expression "param_1 + 0xa0" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0xa4)" * (cast_expression "(undefined4 *)(param_1 + 0xa4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xa4)" ( (binary_expression "param_1 + 0xa4" identifier + number_literal) )))) ))) ;) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00128d76;" goto statement_identifier ;) })) (if_statement "if (param_2 == 1) {\n    uVar3 = 0;\n    goto LAB_00128d76;\n  }" if (parenthesized_expression "(param_2 == 1)" ( (binary_expression "param_2 == 1" identifier == number_literal) )) (compound_statement "{\n    uVar3 = 0;\n    goto LAB_00128d76;\n  }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00128d76;" goto statement_identifier ;) })) (if_statement "if (param_2 == 3) {\n    uVar3 = (**(code **)(**(long **)(param_1 + 0x18) + 0x20))\n                      (*(long **)(param_1 + 0x18),*(undefined8 *)(param_1 + 0xc0),\n                       *(undefined8 *)(param_1 + 200));\n    goto LAB_00128d76;\n  }" if (parenthesized_expression "(param_2 == 3)" ( (binary_expression "param_2 == 3" identifier == number_literal) )) (compound_statement "{\n    uVar3 = (**(code **)(**(long **)(param_1 + 0x18) + 0x20))\n                      (*(long **)(param_1 + 0x18),*(undefined8 *)(param_1 + 0xc0),\n                       *(undefined8 *)(param_1 + 200));\n    goto LAB_00128d76;\n  }" { (expression_statement "uVar3 = (**(code **)(**(long **)(param_1 + 0x18) + 0x20))\n                      (*(long **)(param_1 + 0x18),*(undefined8 *)(param_1 + 0xc0),\n                       *(undefined8 *)(param_1 + 200));" (assignment_expression "uVar3 = (**(code **)(**(long **)(param_1 + 0x18) + 0x20))\n                      (*(long **)(param_1 + 0x18),*(undefined8 *)(param_1 + 0xc0),\n                       *(undefined8 *)(param_1 + 200))" identifier = (call_expression "(**(code **)(**(long **)(param_1 + 0x18) + 0x20))\n                      (*(long **)(param_1 + 0x18),*(undefined8 *)(param_1 + 0xc0),\n                       *(undefined8 *)(param_1 + 200))" (parenthesized_expression "(**(code **)(**(long **)(param_1 + 0x18) + 0x20))" ( (pointer_expression "**(code **)(**(long **)(param_1 + 0x18) + 0x20)" * (pointer_expression "*(code **)(**(long **)(param_1 + 0x18) + 0x20)" * (cast_expression "(code **)(**(long **)(param_1 + 0x18) + 0x20)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(long **)(param_1 + 0x18) + 0x20)" ( (binary_expression "**(long **)(param_1 + 0x18) + 0x20" (pointer_expression "**(long **)(param_1 + 0x18)" * (pointer_expression "*(long **)(param_1 + 0x18)" * (cast_expression "(long **)(param_1 + 0x18)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(long **)(param_1 + 0x18),*(undefined8 *)(param_1 + 0xc0),\n                       *(undefined8 *)(param_1 + 200))" ( (pointer_expression "*(long **)(param_1 + 0x18)" * (cast_expression "(long **)(param_1 + 0x18)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) , (pointer_expression "*(undefined8 *)(param_1 + 0xc0)" * (cast_expression "(undefined8 *)(param_1 + 0xc0)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc0)" ( (binary_expression "param_1 + 0xc0" identifier + number_literal) )))) , (pointer_expression "*(undefined8 *)(param_1 + 200)" * (cast_expression "(undefined8 *)(param_1 + 200)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 200)" ( (binary_expression "param_1 + 200" identifier + number_literal) )))) )))) ;) (goto_statement "goto LAB_00128d76;" goto statement_identifier ;) })) (if_statement "if (param_2 == 2) {\n    if (iVar4 == 1) {\n      lVar12 = param_1 + 0x68;\n      iVar4 = FUN_001267cf(lVar12);\n      if (iVar4 < 1) {\n                    \n        __assert_fail("len > 0","proxy.c",0x2af,"proxy_http_negotiate");\n      }\n      lVar11 = FUN_00126895((long)(iVar4 + 1),1);\n      FUN_001267eb(lVar12,lVar11,iVar4);\n      *(undefined1 *)(lVar11 + iVar4) = 0;\n      iVar4 = FUN_00128918(lVar11,iVar4);\n      uVar3 = 1;\n      if (iVar4 < 0) {\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }\n      local_24c = -1;\n      iVar5 = __isoc99_sscanf(lVar11,"HTTP/%i.%i %n",local_250,local_254,&local_24c);\n      if ((iVar5 < 2) || (local_24c == -1)) {\n        (**(code **)(**(long **)(param_1 + 0x18) + 8))\n                  (*(long **)(param_1 + 0x18),"Proxy error: HTTP response was absent",8000,0);\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }\n      FUN_0012722e(lVar12,iVar4);\n      if (*(char *)(lVar11 + local_24c) != '2') {\n        *(undefined1 *)(lVar11 + iVar4) = 0;\n        if ((local_24c < iVar4) &&\n           ((cVar1 = *(char *)(lVar11 + -1 + (long)iVar4), cVar1 == '\r' || (cVar1 == '\n')))) {\n          lVar12 = (long)(iVar4 + -1);\n          do {\n            *(undefined1 *)(lVar11 + lVar12) = 0;\n            if ((int)lVar12 <= local_24c) break;\n            cVar1 = *(char *)(lVar11 + -1 + lVar12);\n            lVar12 = lVar12 + -1;\n          } while ((cVar1 == '\r') || (cVar1 == '\n'));\n        }\n        uVar13 = FUN_00126ed4("Proxy error: %s",lVar11 + local_24c);\n        (**(code **)(**(long **)(param_1 + 0x18) + 8))(*(long **)(param_1 + 0x18),uVar13,8000,0);\n        FUN_00127101(uVar13);\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }\n      FUN_00127101(lVar11);\n      *(undefined4 *)(param_1 + 0x84) = 2;\n    }\n    else if (iVar4 != 2) goto LAB_00128d56;\n    lVar12 = param_1 + 0x68;\n    iVar4 = FUN_001267cf(lVar12);\n    if (iVar4 < 1) {\n                    \n      __assert_fail("len > 0","proxy.c",0x2e5,"proxy_http_negotiate");\n    }\n    lVar9 = FUN_00126895((long)iVar4,1);\n    FUN_001267eb(lVar12,lVar9,iVar4);\n    iVar5 = FUN_00128918(lVar9,iVar4);\n    lVar11 = lVar9;\n    if (iVar5 < 0) {\n      FUN_00127101(lVar9);\n      uVar3 = 1;\n    }\n    else {\n      while (2 < iVar5) {\n        FUN_0012722e(lVar12,iVar5);\n        lVar10 = (long)iVar5;\n        iVar4 = iVar4 - iVar5;\n        iVar5 = FUN_00128918(lVar11 + lVar10,iVar4);\n        lVar11 = lVar11 + lVar10;\n      }\n      if (iVar5 == 2) {\n        FUN_0012722e(lVar12,2);\n        FUN_00128b92(param_1);\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }\n      else {\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }\n    }\n  }\n  else {\nLAB_00128d56:\n    (**(code **)(**(long **)(param_1 + 0x18) + 8))\n              (*(long **)(param_1 + 0x18),"Proxy error: unexpected proxy error",0x1f41,0);\n    uVar3 = 1;\n  }" if (parenthesized_expression "(param_2 == 2)" ( (binary_expression "param_2 == 2" identifier == number_literal) )) (compound_statement "{\n    if (iVar4 == 1) {\n      lVar12 = param_1 + 0x68;\n      iVar4 = FUN_001267cf(lVar12);\n      if (iVar4 < 1) {\n                    \n        __assert_fail("len > 0","proxy.c",0x2af,"proxy_http_negotiate");\n      }\n      lVar11 = FUN_00126895((long)(iVar4 + 1),1);\n      FUN_001267eb(lVar12,lVar11,iVar4);\n      *(undefined1 *)(lVar11 + iVar4) = 0;\n      iVar4 = FUN_00128918(lVar11,iVar4);\n      uVar3 = 1;\n      if (iVar4 < 0) {\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }\n      local_24c = -1;\n      iVar5 = __isoc99_sscanf(lVar11,"HTTP/%i.%i %n",local_250,local_254,&local_24c);\n      if ((iVar5 < 2) || (local_24c == -1)) {\n        (**(code **)(**(long **)(param_1 + 0x18) + 8))\n                  (*(long **)(param_1 + 0x18),"Proxy error: HTTP response was absent",8000,0);\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }\n      FUN_0012722e(lVar12,iVar4);\n      if (*(char *)(lVar11 + local_24c) != '2') {\n        *(undefined1 *)(lVar11 + iVar4) = 0;\n        if ((local_24c < iVar4) &&\n           ((cVar1 = *(char *)(lVar11 + -1 + (long)iVar4), cVar1 == '\r' || (cVar1 == '\n')))) {\n          lVar12 = (long)(iVar4 + -1);\n          do {\n            *(undefined1 *)(lVar11 + lVar12) = 0;\n            if ((int)lVar12 <= local_24c) break;\n            cVar1 = *(char *)(lVar11 + -1 + lVar12);\n            lVar12 = lVar12 + -1;\n          } while ((cVar1 == '\r') || (cVar1 == '\n'));\n        }\n        uVar13 = FUN_00126ed4("Proxy error: %s",lVar11 + local_24c);\n        (**(code **)(**(long **)(param_1 + 0x18) + 8))(*(long **)(param_1 + 0x18),uVar13,8000,0);\n        FUN_00127101(uVar13);\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }\n      FUN_00127101(lVar11);\n      *(undefined4 *)(param_1 + 0x84) = 2;\n    }\n    else if (iVar4 != 2) goto LAB_00128d56;\n    lVar12 = param_1 + 0x68;\n    iVar4 = FUN_001267cf(lVar12);\n    if (iVar4 < 1) {\n                    \n      __assert_fail("len > 0","proxy.c",0x2e5,"proxy_http_negotiate");\n    }\n    lVar9 = FUN_00126895((long)iVar4,1);\n    FUN_001267eb(lVar12,lVar9,iVar4);\n    iVar5 = FUN_00128918(lVar9,iVar4);\n    lVar11 = lVar9;\n    if (iVar5 < 0) {\n      FUN_00127101(lVar9);\n      uVar3 = 1;\n    }\n    else {\n      while (2 < iVar5) {\n        FUN_0012722e(lVar12,iVar5);\n        lVar10 = (long)iVar5;\n        iVar4 = iVar4 - iVar5;\n        iVar5 = FUN_00128918(lVar11 + lVar10,iVar4);\n        lVar11 = lVar11 + lVar10;\n      }\n      if (iVar5 == 2) {\n        FUN_0012722e(lVar12,2);\n        FUN_00128b92(param_1);\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }\n      else {\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }\n    }\n  }" { (if_statement "if (iVar4 == 1) {\n      lVar12 = param_1 + 0x68;\n      iVar4 = FUN_001267cf(lVar12);\n      if (iVar4 < 1) {\n                    \n        __assert_fail("len > 0","proxy.c",0x2af,"proxy_http_negotiate");\n      }\n      lVar11 = FUN_00126895((long)(iVar4 + 1),1);\n      FUN_001267eb(lVar12,lVar11,iVar4);\n      *(undefined1 *)(lVar11 + iVar4) = 0;\n      iVar4 = FUN_00128918(lVar11,iVar4);\n      uVar3 = 1;\n      if (iVar4 < 0) {\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }\n      local_24c = -1;\n      iVar5 = __isoc99_sscanf(lVar11,"HTTP/%i.%i %n",local_250,local_254,&local_24c);\n      if ((iVar5 < 2) || (local_24c == -1)) {\n        (**(code **)(**(long **)(param_1 + 0x18) + 8))\n                  (*(long **)(param_1 + 0x18),"Proxy error: HTTP response was absent",8000,0);\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }\n      FUN_0012722e(lVar12,iVar4);\n      if (*(char *)(lVar11 + local_24c) != '2') {\n        *(undefined1 *)(lVar11 + iVar4) = 0;\n        if ((local_24c < iVar4) &&\n           ((cVar1 = *(char *)(lVar11 + -1 + (long)iVar4), cVar1 == '\r' || (cVar1 == '\n')))) {\n          lVar12 = (long)(iVar4 + -1);\n          do {\n            *(undefined1 *)(lVar11 + lVar12) = 0;\n            if ((int)lVar12 <= local_24c) break;\n            cVar1 = *(char *)(lVar11 + -1 + lVar12);\n            lVar12 = lVar12 + -1;\n          } while ((cVar1 == '\r') || (cVar1 == '\n'));\n        }\n        uVar13 = FUN_00126ed4("Proxy error: %s",lVar11 + local_24c);\n        (**(code **)(**(long **)(param_1 + 0x18) + 8))(*(long **)(param_1 + 0x18),uVar13,8000,0);\n        FUN_00127101(uVar13);\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }\n      FUN_00127101(lVar11);\n      *(undefined4 *)(param_1 + 0x84) = 2;\n    }\n    else if (iVar4 != 2) goto LAB_00128d56;" if (parenthesized_expression "(iVar4 == 1)" ( (binary_expression "iVar4 == 1" identifier == number_literal) )) (compound_statement "{\n      lVar12 = param_1 + 0x68;\n      iVar4 = FUN_001267cf(lVar12);\n      if (iVar4 < 1) {\n                    \n        __assert_fail("len > 0","proxy.c",0x2af,"proxy_http_negotiate");\n      }\n      lVar11 = FUN_00126895((long)(iVar4 + 1),1);\n      FUN_001267eb(lVar12,lVar11,iVar4);\n      *(undefined1 *)(lVar11 + iVar4) = 0;\n      iVar4 = FUN_00128918(lVar11,iVar4);\n      uVar3 = 1;\n      if (iVar4 < 0) {\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }\n      local_24c = -1;\n      iVar5 = __isoc99_sscanf(lVar11,"HTTP/%i.%i %n",local_250,local_254,&local_24c);\n      if ((iVar5 < 2) || (local_24c == -1)) {\n        (**(code **)(**(long **)(param_1 + 0x18) + 8))\n                  (*(long **)(param_1 + 0x18),"Proxy error: HTTP response was absent",8000,0);\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }\n      FUN_0012722e(lVar12,iVar4);\n      if (*(char *)(lVar11 + local_24c) != '2') {\n        *(undefined1 *)(lVar11 + iVar4) = 0;\n        if ((local_24c < iVar4) &&\n           ((cVar1 = *(char *)(lVar11 + -1 + (long)iVar4), cVar1 == '\r' || (cVar1 == '\n')))) {\n          lVar12 = (long)(iVar4 + -1);\n          do {\n            *(undefined1 *)(lVar11 + lVar12) = 0;\n            if ((int)lVar12 <= local_24c) break;\n            cVar1 = *(char *)(lVar11 + -1 + lVar12);\n            lVar12 = lVar12 + -1;\n          } while ((cVar1 == '\r') || (cVar1 == '\n'));\n        }\n        uVar13 = FUN_00126ed4("Proxy error: %s",lVar11 + local_24c);\n        (**(code **)(**(long **)(param_1 + 0x18) + 8))(*(long **)(param_1 + 0x18),uVar13,8000,0);\n        FUN_00127101(uVar13);\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }\n      FUN_00127101(lVar11);\n      *(undefined4 *)(param_1 + 0x84) = 2;\n    }" { (expression_statement "lVar12 = param_1 + 0x68;" (assignment_expression "lVar12 = param_1 + 0x68" identifier = (binary_expression "param_1 + 0x68" identifier + number_literal)) ;) (expression_statement "iVar4 = FUN_001267cf(lVar12);" (assignment_expression "iVar4 = FUN_001267cf(lVar12)" identifier = (call_expression "FUN_001267cf(lVar12)" identifier (argument_list "(lVar12)" ( identifier )))) ;) (if_statement "if (iVar4 < 1) {\n                    \n        __assert_fail("len > 0","proxy.c",0x2af,"proxy_http_negotiate");\n      }" if (parenthesized_expression "(iVar4 < 1)" ( (binary_expression "iVar4 < 1" identifier < number_literal) )) (compound_statement "{\n                    \n        __assert_fail("len > 0","proxy.c",0x2af,"proxy_http_negotiate");\n      }" { (expression_statement "__assert_fail("len > 0","proxy.c",0x2af,"proxy_http_negotiate");" (call_expression "__assert_fail("len > 0","proxy.c",0x2af,"proxy_http_negotiate")" identifier (argument_list "("len > 0","proxy.c",0x2af,"proxy_http_negotiate")" ( (string_literal ""len > 0"" " string_content ") , (string_literal ""proxy.c"" " string_content ") , number_literal , (string_literal ""proxy_http_negotiate"" " string_content ") ))) ;) })) (expression_statement "lVar11 = FUN_00126895((long)(iVar4 + 1),1);" (assignment_expression "lVar11 = FUN_00126895((long)(iVar4 + 1),1)" identifier = (call_expression "FUN_00126895((long)(iVar4 + 1),1)" identifier (argument_list "((long)(iVar4 + 1),1)" ( (cast_expression "(long)(iVar4 + 1)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(iVar4 + 1)" ( (binary_expression "iVar4 + 1" identifier + number_literal) ))) , number_literal )))) ;) (expression_statement "FUN_001267eb(lVar12,lVar11,iVar4);" (call_expression "FUN_001267eb(lVar12,lVar11,iVar4)" identifier (argument_list "(lVar12,lVar11,iVar4)" ( identifier , identifier , identifier ))) ;) (expression_statement "*(undefined1 *)(lVar11 + iVar4) = 0;" (assignment_expression "*(undefined1 *)(lVar11 + iVar4) = 0" (pointer_expression "*(undefined1 *)(lVar11 + iVar4)" * (cast_expression "(undefined1 *)(lVar11 + iVar4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar11 + iVar4)" ( (binary_expression "lVar11 + iVar4" identifier + identifier) )))) = number_literal) ;) (expression_statement "iVar4 = FUN_00128918(lVar11,iVar4);" (assignment_expression "iVar4 = FUN_00128918(lVar11,iVar4)" identifier = (call_expression "FUN_00128918(lVar11,iVar4)" identifier (argument_list "(lVar11,iVar4)" ( identifier , identifier )))) ;) (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" identifier = number_literal) ;) (if_statement "if (iVar4 < 0) {\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }" if (parenthesized_expression "(iVar4 < 0)" ( (binary_expression "iVar4 < 0" identifier < number_literal) )) (compound_statement "{\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }" { (expression_statement "FUN_00127101(lVar11);" (call_expression "FUN_00127101(lVar11)" identifier (argument_list "(lVar11)" ( identifier ))) ;) (goto_statement "goto LAB_00128d76;" goto statement_identifier ;) })) (expression_statement "local_24c = -1;" (assignment_expression "local_24c = -1" identifier = number_literal) ;) (expression_statement "iVar5 = __isoc99_sscanf(lVar11,"HTTP/%i.%i %n",local_250,local_254,&local_24c);" (assignment_expression "iVar5 = __isoc99_sscanf(lVar11,"HTTP/%i.%i %n",local_250,local_254,&local_24c)" identifier = (call_expression "__isoc99_sscanf(lVar11,"HTTP/%i.%i %n",local_250,local_254,&local_24c)" identifier (argument_list "(lVar11,"HTTP/%i.%i %n",local_250,local_254,&local_24c)" ( identifier , (string_literal ""HTTP/%i.%i %n"" " string_content ") , identifier , identifier , (pointer_expression "&local_24c" & identifier) )))) ;) (if_statement "if ((iVar5 < 2) || (local_24c == -1)) {\n        (**(code **)(**(long **)(param_1 + 0x18) + 8))\n                  (*(long **)(param_1 + 0x18),"Proxy error: HTTP response was absent",8000,0);\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }" if (parenthesized_expression "((iVar5 < 2) || (local_24c == -1))" ( (binary_expression "(iVar5 < 2) || (local_24c == -1)" (parenthesized_expression "(iVar5 < 2)" ( (binary_expression "iVar5 < 2" identifier < number_literal) )) || (parenthesized_expression "(local_24c == -1)" ( (binary_expression "local_24c == -1" identifier == number_literal) ))) )) (compound_statement "{\n        (**(code **)(**(long **)(param_1 + 0x18) + 8))\n                  (*(long **)(param_1 + 0x18),"Proxy error: HTTP response was absent",8000,0);\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }" { (expression_statement "(**(code **)(**(long **)(param_1 + 0x18) + 8))\n                  (*(long **)(param_1 + 0x18),"Proxy error: HTTP response was absent",8000,0);" (call_expression "(**(code **)(**(long **)(param_1 + 0x18) + 8))\n                  (*(long **)(param_1 + 0x18),"Proxy error: HTTP response was absent",8000,0)" (parenthesized_expression "(**(code **)(**(long **)(param_1 + 0x18) + 8))" ( (pointer_expression "**(code **)(**(long **)(param_1 + 0x18) + 8)" * (pointer_expression "*(code **)(**(long **)(param_1 + 0x18) + 8)" * (cast_expression "(code **)(**(long **)(param_1 + 0x18) + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(long **)(param_1 + 0x18) + 8)" ( (binary_expression "**(long **)(param_1 + 0x18) + 8" (pointer_expression "**(long **)(param_1 + 0x18)" * (pointer_expression "*(long **)(param_1 + 0x18)" * (cast_expression "(long **)(param_1 + 0x18)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(long **)(param_1 + 0x18),"Proxy error: HTTP response was absent",8000,0)" ( (pointer_expression "*(long **)(param_1 + 0x18)" * (cast_expression "(long **)(param_1 + 0x18)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) , (string_literal ""Proxy error: HTTP response was absent"" " string_content ") , number_literal , number_literal ))) ;) (expression_statement "FUN_00127101(lVar11);" (call_expression "FUN_00127101(lVar11)" identifier (argument_list "(lVar11)" ( identifier ))) ;) (goto_statement "goto LAB_00128d76;" goto statement_identifier ;) })) (expression_statement "FUN_0012722e(lVar12,iVar4);" (call_expression "FUN_0012722e(lVar12,iVar4)" identifier (argument_list "(lVar12,iVar4)" ( identifier , identifier ))) ;) (if_statement "if (*(char *)(lVar11 + local_24c) != '2') {\n        *(undefined1 *)(lVar11 + iVar4) = 0;\n        if ((local_24c < iVar4) &&\n           ((cVar1 = *(char *)(lVar11 + -1 + (long)iVar4), cVar1 == '\r' || (cVar1 == '\n')))) {\n          lVar12 = (long)(iVar4 + -1);\n          do {\n            *(undefined1 *)(lVar11 + lVar12) = 0;\n            if ((int)lVar12 <= local_24c) break;\n            cVar1 = *(char *)(lVar11 + -1 + lVar12);\n            lVar12 = lVar12 + -1;\n          } while ((cVar1 == '\r') || (cVar1 == '\n'));\n        }\n        uVar13 = FUN_00126ed4("Proxy error: %s",lVar11 + local_24c);\n        (**(code **)(**(long **)(param_1 + 0x18) + 8))(*(long **)(param_1 + 0x18),uVar13,8000,0);\n        FUN_00127101(uVar13);\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }" if (parenthesized_expression "(*(char *)(lVar11 + local_24c) != '2')" ( (binary_expression "*(char *)(lVar11 + local_24c) != '2'" (pointer_expression "*(char *)(lVar11 + local_24c)" * (cast_expression "(char *)(lVar11 + local_24c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar11 + local_24c)" ( (binary_expression "lVar11 + local_24c" identifier + identifier) )))) != (char_literal "'2'" ' character ')) )) (compound_statement "{\n        *(undefined1 *)(lVar11 + iVar4) = 0;\n        if ((local_24c < iVar4) &&\n           ((cVar1 = *(char *)(lVar11 + -1 + (long)iVar4), cVar1 == '\r' || (cVar1 == '\n')))) {\n          lVar12 = (long)(iVar4 + -1);\n          do {\n            *(undefined1 *)(lVar11 + lVar12) = 0;\n            if ((int)lVar12 <= local_24c) break;\n            cVar1 = *(char *)(lVar11 + -1 + lVar12);\n            lVar12 = lVar12 + -1;\n          } while ((cVar1 == '\r') || (cVar1 == '\n'));\n        }\n        uVar13 = FUN_00126ed4("Proxy error: %s",lVar11 + local_24c);\n        (**(code **)(**(long **)(param_1 + 0x18) + 8))(*(long **)(param_1 + 0x18),uVar13,8000,0);\n        FUN_00127101(uVar13);\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }" { (expression_statement "*(undefined1 *)(lVar11 + iVar4) = 0;" (assignment_expression "*(undefined1 *)(lVar11 + iVar4) = 0" (pointer_expression "*(undefined1 *)(lVar11 + iVar4)" * (cast_expression "(undefined1 *)(lVar11 + iVar4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar11 + iVar4)" ( (binary_expression "lVar11 + iVar4" identifier + identifier) )))) = number_literal) ;) (if_statement "if ((local_24c < iVar4) &&\n           ((cVar1 = *(char *)(lVar11 + -1 + (long)iVar4), cVar1 == '\r' || (cVar1 == '\n')))) {\n          lVar12 = (long)(iVar4 + -1);\n          do {\n            *(undefined1 *)(lVar11 + lVar12) = 0;\n            if ((int)lVar12 <= local_24c) break;\n            cVar1 = *(char *)(lVar11 + -1 + lVar12);\n            lVar12 = lVar12 + -1;\n          } while ((cVar1 == '\r') || (cVar1 == '\n'));\n        }" if (parenthesized_expression "((local_24c < iVar4) &&\n           ((cVar1 = *(char *)(lVar11 + -1 + (long)iVar4), cVar1 == '\r' || (cVar1 == '\n'))))" ( (binary_expression "(local_24c < iVar4) &&\n           ((cVar1 = *(char *)(lVar11 + -1 + (long)iVar4), cVar1 == '\r' || (cVar1 == '\n')))" (parenthesized_expression "(local_24c < iVar4)" ( (binary_expression "local_24c < iVar4" identifier < identifier) )) && (parenthesized_expression "((cVar1 = *(char *)(lVar11 + -1 + (long)iVar4), cVar1 == '\r' || (cVar1 == '\n')))" ( (parenthesized_expression "(cVar1 = *(char *)(lVar11 + -1 + (long)iVar4), cVar1 == '\r' || (cVar1 == '\n'))" ( (comma_expression "cVar1 = *(char *)(lVar11 + -1 + (long)iVar4), cVar1 == '\r' || (cVar1 == '\n')" (assignment_expression "cVar1 = *(char *)(lVar11 + -1 + (long)iVar4)" identifier = (pointer_expression "*(char *)(lVar11 + -1 + (long)iVar4)" * (cast_expression "(char *)(lVar11 + -1 + (long)iVar4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar11 + -1 + (long)iVar4)" ( (binary_expression "lVar11 + -1 + (long)iVar4" (binary_expression "lVar11 + -1" identifier + number_literal) + (cast_expression "(long)iVar4" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ))))) , (binary_expression "cVar1 == '\r' || (cVar1 == '\n')" (binary_expression "cVar1 == '\r'" identifier == (char_literal "'\r'" ' escape_sequence ')) || (parenthesized_expression "(cVar1 == '\n')" ( (binary_expression "cVar1 == '\n'" identifier == (char_literal "'\n'" ' escape_sequence ')) )))) )) ))) )) (compound_statement "{\n          lVar12 = (long)(iVar4 + -1);\n          do {\n            *(undefined1 *)(lVar11 + lVar12) = 0;\n            if ((int)lVar12 <= local_24c) break;\n            cVar1 = *(char *)(lVar11 + -1 + lVar12);\n            lVar12 = lVar12 + -1;\n          } while ((cVar1 == '\r') || (cVar1 == '\n'));\n        }" { (expression_statement "lVar12 = (long)(iVar4 + -1);" (assignment_expression "lVar12 = (long)(iVar4 + -1)" identifier = (cast_expression "(long)(iVar4 + -1)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(iVar4 + -1)" ( (binary_expression "iVar4 + -1" identifier + number_literal) )))) ;) (do_statement "do {\n            *(undefined1 *)(lVar11 + lVar12) = 0;\n            if ((int)lVar12 <= local_24c) break;\n            cVar1 = *(char *)(lVar11 + -1 + lVar12);\n            lVar12 = lVar12 + -1;\n          } while ((cVar1 == '\r') || (cVar1 == '\n'));" do (compound_statement "{\n            *(undefined1 *)(lVar11 + lVar12) = 0;\n            if ((int)lVar12 <= local_24c) break;\n            cVar1 = *(char *)(lVar11 + -1 + lVar12);\n            lVar12 = lVar12 + -1;\n          }" { (expression_statement "*(undefined1 *)(lVar11 + lVar12) = 0;" (assignment_expression "*(undefined1 *)(lVar11 + lVar12) = 0" (pointer_expression "*(undefined1 *)(lVar11 + lVar12)" * (cast_expression "(undefined1 *)(lVar11 + lVar12)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar11 + lVar12)" ( (binary_expression "lVar11 + lVar12" identifier + identifier) )))) = number_literal) ;) (if_statement "if ((int)lVar12 <= local_24c) break;" if (parenthesized_expression "((int)lVar12 <= local_24c)" ( (binary_expression "(int)lVar12 <= local_24c" (cast_expression "(int)lVar12" ( (type_descriptor "int" primitive_type) ) identifier) <= identifier) )) (break_statement "break;" break ;)) (expression_statement "cVar1 = *(char *)(lVar11 + -1 + lVar12);" (assignment_expression "cVar1 = *(char *)(lVar11 + -1 + lVar12)" identifier = (pointer_expression "*(char *)(lVar11 + -1 + lVar12)" * (cast_expression "(char *)(lVar11 + -1 + lVar12)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar11 + -1 + lVar12)" ( (binary_expression "lVar11 + -1 + lVar12" (binary_expression "lVar11 + -1" identifier + number_literal) + identifier) ))))) ;) (expression_statement "lVar12 = lVar12 + -1;" (assignment_expression "lVar12 = lVar12 + -1" identifier = (binary_expression "lVar12 + -1" identifier + number_literal)) ;) }) while (parenthesized_expression "((cVar1 == '\r') || (cVar1 == '\n'))" ( (binary_expression "(cVar1 == '\r') || (cVar1 == '\n')" (parenthesized_expression "(cVar1 == '\r')" ( (binary_expression "cVar1 == '\r'" identifier == (char_literal "'\r'" ' escape_sequence ')) )) || (parenthesized_expression "(cVar1 == '\n')" ( (binary_expression "cVar1 == '\n'" identifier == (char_literal "'\n'" ' escape_sequence ')) ))) )) ;) })) (expression_statement "uVar13 = FUN_00126ed4("Proxy error: %s",lVar11 + local_24c);" (assignment_expression "uVar13 = FUN_00126ed4("Proxy error: %s",lVar11 + local_24c)" identifier = (call_expression "FUN_00126ed4("Proxy error: %s",lVar11 + local_24c)" identifier (argument_list "("Proxy error: %s",lVar11 + local_24c)" ( (string_literal ""Proxy error: %s"" " string_content ") , (binary_expression "lVar11 + local_24c" identifier + identifier) )))) ;) (expression_statement "(**(code **)(**(long **)(param_1 + 0x18) + 8))(*(long **)(param_1 + 0x18),uVar13,8000,0);" (call_expression "(**(code **)(**(long **)(param_1 + 0x18) + 8))(*(long **)(param_1 + 0x18),uVar13,8000,0)" (parenthesized_expression "(**(code **)(**(long **)(param_1 + 0x18) + 8))" ( (pointer_expression "**(code **)(**(long **)(param_1 + 0x18) + 8)" * (pointer_expression "*(code **)(**(long **)(param_1 + 0x18) + 8)" * (cast_expression "(code **)(**(long **)(param_1 + 0x18) + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(long **)(param_1 + 0x18) + 8)" ( (binary_expression "**(long **)(param_1 + 0x18) + 8" (pointer_expression "**(long **)(param_1 + 0x18)" * (pointer_expression "*(long **)(param_1 + 0x18)" * (cast_expression "(long **)(param_1 + 0x18)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(long **)(param_1 + 0x18),uVar13,8000,0)" ( (pointer_expression "*(long **)(param_1 + 0x18)" * (cast_expression "(long **)(param_1 + 0x18)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) , identifier , number_literal , number_literal ))) ;) (expression_statement "FUN_00127101(uVar13);" (call_expression "FUN_00127101(uVar13)" identifier (argument_list "(uVar13)" ( identifier ))) ;) (expression_statement "FUN_00127101(lVar11);" (call_expression "FUN_00127101(lVar11)" identifier (argument_list "(lVar11)" ( identifier ))) ;) (goto_statement "goto LAB_00128d76;" goto statement_identifier ;) })) (expression_statement "FUN_00127101(lVar11);" (call_expression "FUN_00127101(lVar11)" identifier (argument_list "(lVar11)" ( identifier ))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x84) = 2;" (assignment_expression "*(undefined4 *)(param_1 + 0x84) = 2" (pointer_expression "*(undefined4 *)(param_1 + 0x84)" * (cast_expression "(undefined4 *)(param_1 + 0x84)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x84)" ( (binary_expression "param_1 + 0x84" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else if (iVar4 != 2) goto LAB_00128d56;" else (if_statement "if (iVar4 != 2) goto LAB_00128d56;" if (parenthesized_expression "(iVar4 != 2)" ( (binary_expression "iVar4 != 2" identifier != number_literal) )) (goto_statement "goto LAB_00128d56;" goto statement_identifier ;)))) (expression_statement "lVar12 = param_1 + 0x68;" (assignment_expression "lVar12 = param_1 + 0x68" identifier = (binary_expression "param_1 + 0x68" identifier + number_literal)) ;) (expression_statement "iVar4 = FUN_001267cf(lVar12);" (assignment_expression "iVar4 = FUN_001267cf(lVar12)" identifier = (call_expression "FUN_001267cf(lVar12)" identifier (argument_list "(lVar12)" ( identifier )))) ;) (if_statement "if (iVar4 < 1) {\n                    \n      __assert_fail("len > 0","proxy.c",0x2e5,"proxy_http_negotiate");\n    }" if (parenthesized_expression "(iVar4 < 1)" ( (binary_expression "iVar4 < 1" identifier < number_literal) )) (compound_statement "{\n                    \n      __assert_fail("len > 0","proxy.c",0x2e5,"proxy_http_negotiate");\n    }" { (expression_statement "__assert_fail("len > 0","proxy.c",0x2e5,"proxy_http_negotiate");" (call_expression "__assert_fail("len > 0","proxy.c",0x2e5,"proxy_http_negotiate")" identifier (argument_list "("len > 0","proxy.c",0x2e5,"proxy_http_negotiate")" ( (string_literal ""len > 0"" " string_content ") , (string_literal ""proxy.c"" " string_content ") , number_literal , (string_literal ""proxy_http_negotiate"" " string_content ") ))) ;) })) (expression_statement "lVar9 = FUN_00126895((long)iVar4,1);" (assignment_expression "lVar9 = FUN_00126895((long)iVar4,1)" identifier = (call_expression "FUN_00126895((long)iVar4,1)" identifier (argument_list "((long)iVar4,1)" ( (cast_expression "(long)iVar4" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) , number_literal )))) ;) (expression_statement "FUN_001267eb(lVar12,lVar9,iVar4);" (call_expression "FUN_001267eb(lVar12,lVar9,iVar4)" identifier (argument_list "(lVar12,lVar9,iVar4)" ( identifier , identifier , identifier ))) ;) (expression_statement "iVar5 = FUN_00128918(lVar9,iVar4);" (assignment_expression "iVar5 = FUN_00128918(lVar9,iVar4)" identifier = (call_expression "FUN_00128918(lVar9,iVar4)" identifier (argument_list "(lVar9,iVar4)" ( identifier , identifier )))) ;) (expression_statement "lVar11 = lVar9;" (assignment_expression "lVar11 = lVar9" identifier = identifier) ;) (if_statement "if (iVar5 < 0) {\n      FUN_00127101(lVar9);\n      uVar3 = 1;\n    }\n    else {\n      while (2 < iVar5) {\n        FUN_0012722e(lVar12,iVar5);\n        lVar10 = (long)iVar5;\n        iVar4 = iVar4 - iVar5;\n        iVar5 = FUN_00128918(lVar11 + lVar10,iVar4);\n        lVar11 = lVar11 + lVar10;\n      }\n      if (iVar5 == 2) {\n        FUN_0012722e(lVar12,2);\n        FUN_00128b92(param_1);\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }\n      else {\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }\n    }" if (parenthesized_expression "(iVar5 < 0)" ( (binary_expression "iVar5 < 0" identifier < number_literal) )) (compound_statement "{\n      FUN_00127101(lVar9);\n      uVar3 = 1;\n    }" { (expression_statement "FUN_00127101(lVar9);" (call_expression "FUN_00127101(lVar9)" identifier (argument_list "(lVar9)" ( identifier ))) ;) (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" identifier = number_literal) ;) }) (else_clause "else {\n      while (2 < iVar5) {\n        FUN_0012722e(lVar12,iVar5);\n        lVar10 = (long)iVar5;\n        iVar4 = iVar4 - iVar5;\n        iVar5 = FUN_00128918(lVar11 + lVar10,iVar4);\n        lVar11 = lVar11 + lVar10;\n      }\n      if (iVar5 == 2) {\n        FUN_0012722e(lVar12,2);\n        FUN_00128b92(param_1);\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }\n      else {\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }\n    }" else (compound_statement "{\n      while (2 < iVar5) {\n        FUN_0012722e(lVar12,iVar5);\n        lVar10 = (long)iVar5;\n        iVar4 = iVar4 - iVar5;\n        iVar5 = FUN_00128918(lVar11 + lVar10,iVar4);\n        lVar11 = lVar11 + lVar10;\n      }\n      if (iVar5 == 2) {\n        FUN_0012722e(lVar12,2);\n        FUN_00128b92(param_1);\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }\n      else {\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }\n    }" { (while_statement "while (2 < iVar5) {\n        FUN_0012722e(lVar12,iVar5);\n        lVar10 = (long)iVar5;\n        iVar4 = iVar4 - iVar5;\n        iVar5 = FUN_00128918(lVar11 + lVar10,iVar4);\n        lVar11 = lVar11 + lVar10;\n      }" while (parenthesized_expression "(2 < iVar5)" ( (binary_expression "2 < iVar5" number_literal < identifier) )) (compound_statement "{\n        FUN_0012722e(lVar12,iVar5);\n        lVar10 = (long)iVar5;\n        iVar4 = iVar4 - iVar5;\n        iVar5 = FUN_00128918(lVar11 + lVar10,iVar4);\n        lVar11 = lVar11 + lVar10;\n      }" { (expression_statement "FUN_0012722e(lVar12,iVar5);" (call_expression "FUN_0012722e(lVar12,iVar5)" identifier (argument_list "(lVar12,iVar5)" ( identifier , identifier ))) ;) (expression_statement "lVar10 = (long)iVar5;" (assignment_expression "lVar10 = (long)iVar5" identifier = (cast_expression "(long)iVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (expression_statement "iVar4 = iVar4 - iVar5;" (assignment_expression "iVar4 = iVar4 - iVar5" identifier = (binary_expression "iVar4 - iVar5" identifier - identifier)) ;) (expression_statement "iVar5 = FUN_00128918(lVar11 + lVar10,iVar4);" (assignment_expression "iVar5 = FUN_00128918(lVar11 + lVar10,iVar4)" identifier = (call_expression "FUN_00128918(lVar11 + lVar10,iVar4)" identifier (argument_list "(lVar11 + lVar10,iVar4)" ( (binary_expression "lVar11 + lVar10" identifier + identifier) , identifier )))) ;) (expression_statement "lVar11 = lVar11 + lVar10;" (assignment_expression "lVar11 = lVar11 + lVar10" identifier = (binary_expression "lVar11 + lVar10" identifier + identifier)) ;) })) (if_statement "if (iVar5 == 2) {\n        FUN_0012722e(lVar12,2);\n        FUN_00128b92(param_1);\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }\n      else {\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }" if (parenthesized_expression "(iVar5 == 2)" ( (binary_expression "iVar5 == 2" identifier == number_literal) )) (compound_statement "{\n        FUN_0012722e(lVar12,2);\n        FUN_00128b92(param_1);\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }" { (expression_statement "FUN_0012722e(lVar12,2);" (call_expression "FUN_0012722e(lVar12,2)" identifier (argument_list "(lVar12,2)" ( identifier , number_literal ))) ;) (expression_statement "FUN_00128b92(param_1);" (call_expression "FUN_00128b92(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (expression_statement "FUN_00127101(lVar9);" (call_expression "FUN_00127101(lVar9)" identifier (argument_list "(lVar9)" ( identifier ))) ;) (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" identifier = number_literal) ;) }) (else_clause "else {\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }" else (compound_statement "{\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }" { (expression_statement "FUN_00127101(lVar9);" (call_expression "FUN_00127101(lVar9)" identifier (argument_list "(lVar9)" ( identifier ))) ;) (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" identifier = number_literal) ;) }))) }))) }) (else_clause "else {\nLAB_00128d56:\n    (**(code **)(**(long **)(param_1 + 0x18) + 8))\n              (*(long **)(param_1 + 0x18),"Proxy error: unexpected proxy error",0x1f41,0);\n    uVar3 = 1;\n  }" else (compound_statement "{\nLAB_00128d56:\n    (**(code **)(**(long **)(param_1 + 0x18) + 8))\n              (*(long **)(param_1 + 0x18),"Proxy error: unexpected proxy error",0x1f41,0);\n    uVar3 = 1;\n  }" { (labeled_statement "LAB_00128d56:\n    (**(code **)(**(long **)(param_1 + 0x18) + 8))\n              (*(long **)(param_1 + 0x18),"Proxy error: unexpected proxy error",0x1f41,0);" statement_identifier : (expression_statement "(**(code **)(**(long **)(param_1 + 0x18) + 8))\n              (*(long **)(param_1 + 0x18),"Proxy error: unexpected proxy error",0x1f41,0);" (call_expression "(**(code **)(**(long **)(param_1 + 0x18) + 8))\n              (*(long **)(param_1 + 0x18),"Proxy error: unexpected proxy error",0x1f41,0)" (parenthesized_expression "(**(code **)(**(long **)(param_1 + 0x18) + 8))" ( (pointer_expression "**(code **)(**(long **)(param_1 + 0x18) + 8)" * (pointer_expression "*(code **)(**(long **)(param_1 + 0x18) + 8)" * (cast_expression "(code **)(**(long **)(param_1 + 0x18) + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(long **)(param_1 + 0x18) + 8)" ( (binary_expression "**(long **)(param_1 + 0x18) + 8" (pointer_expression "**(long **)(param_1 + 0x18)" * (pointer_expression "*(long **)(param_1 + 0x18)" * (cast_expression "(long **)(param_1 + 0x18)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(long **)(param_1 + 0x18),"Proxy error: unexpected proxy error",0x1f41,0)" ( (pointer_expression "*(long **)(param_1 + 0x18)" * (cast_expression "(long **)(param_1 + 0x18)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) , (string_literal ""Proxy error: unexpected proxy error"" " string_content ") , number_literal , number_literal ))) ;)) (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" identifier = number_literal) ;) }))) (labeled_statement "LAB_00128d76:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }" statement_identifier : (if_statement "if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }" if (parenthesized_expression "(local_40 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_40 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return uVar3;\n  }" { (return_statement "return uVar3;" return identifier ;) }))) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (string_literal " string_content escape_sequence escape_sequence string_content escape_sequence escape_sequence ") , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , (binary_expression (unary_expression ~ IDENT) - LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (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 * IDENT) != (char_literal ' escape_sequence ')) )) || (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (char_literal ' escape_sequence ')) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (string_literal " string_content ") , IDENT , IDENT ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression (unary_expression ~ (cast_expression ( (type_descriptor TYPE) ) IDENT)) - LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( (binary_expression IDENT * LIT) )) / LIT) + LIT) ))) , LIT ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , LIT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression (unary_expression ~ (cast_expression ( (type_descriptor TYPE) ) IDENT)) - LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (binary_expression IDENT - IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < IDENT) )) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' escape_sequence ')) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , (binary_expression (unary_expression ~ IDENT) - LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression & IDENT) , LIT ))) ;) (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 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 (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_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 (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (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 { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , IDENT , IDENT , (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < LIT) )) || (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 (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (string_literal " string_content ") , LIT , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) != (char_literal ' character ')) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < IDENT) )) && (parenthesized_expression ( (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) ))))) , (binary_expression (binary_expression IDENT == (char_literal ' escape_sequence ')) || (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )))) )) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) <= IDENT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + IDENT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) || (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) ))) )) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") , (binary_expression IDENT + IDENT) )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , LIT , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (call_expression 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) ;) }) (else_clause else (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 IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (while_statement while (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + IDENT) , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) }))) }) (else_clause else (compound_statement { (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 (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (string_literal " string_content ") , 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 (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) }))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "undefined4 FUN_00128cfe(long param_1,int param_2)\n\n{\n  char cVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  char *pcVar6;\n  char *pcVar7;\n  char *pcVar8;\n  long lVar9;\n  long lVar10;\n  long lVar11;\n  long lVar12;\n  undefined8 uVar13;\n  ulong uVar14;\n  char *pcVar15;\n  int iVar16;\n  long in_FS_OFFSET;\n  byte bVar17;\n  undefined1 local_254 [4];\n  undefined1 local_250 [4];\n  int local_24c;\n  undefined1 local_248 [520];\n  long local_40;\n  \n  bVar17 = 0;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  iVar4 = *(int *)(param_1 + 0x84);\n  if (iVar4 == -1) {\n    FUN_0018b9e4(*(undefined8 *)(param_1 + 0x20),local_248,0x200);\n    pcVar6 = (char *)FUN_00126ed4("CONNECT %s:%i HTTP/1.1\r\nHost: %s:%i\r\n",local_248,\n                                  *(undefined4 *)(param_1 + 0x28),local_248,\n                                  *(undefined4 *)(param_1 + 0x28));\n    uVar14 = 0xffffffffffffffff;\n    pcVar7 = pcVar6;\n    do {\n      if (uVar14 == 0) break;\n      uVar14 = uVar14 - 1;\n      cVar1 = *pcVar7;\n      pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n    } while (cVar1 != '\0');\n    (**(code **)(**(long **)(param_1 + 0x10) + 0x10))(*(long **)(param_1 + 0x10),pcVar6,~uVar14 - 1)\n    ;\n    FUN_00127101(pcVar6);\n    pcVar7 = (char *)FUN_00119829(*(undefined8 *)(param_1 + 0xd0),0x10);\n    pcVar6 = (char *)FUN_00119829(*(undefined8 *)(param_1 + 0xd0),0x11);\n    if ((*pcVar7 != '\0') || (*pcVar6 != '\0')) {\n      pcVar6 = (char *)FUN_00126ed4("%s:%s",pcVar7,pcVar6);\n      lVar12 = -1;\n      pcVar7 = pcVar6;\n      do {\n        if (lVar12 == 0) break;\n        lVar12 = lVar12 + -1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar4 = ~(uint)lVar12 - 1;\n      pcVar8 = (char *)FUN_00126895((long)((iVar4 * 4) / 3 + 100),1);\n      builtin_strncpy(pcVar8,"Proxy-Authorization: Basic ",0x1c);\n      lVar12 = -1;\n      pcVar7 = pcVar8;\n      do {\n        if (lVar12 == 0) break;\n        lVar12 = lVar12 + -1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar5 = ~(uint)lVar12 - 1;\n      if (0 < iVar4) {\n        pcVar15 = pcVar8 + iVar5;\n        iVar16 = 0;\n        pcVar7 = pcVar6;\n        do {\n          iVar2 = iVar4 - iVar16;\n          if (3 < iVar4 - iVar16) {\n            iVar2 = 3;\n          }\n          FUN_001265e7(pcVar7,iVar2,pcVar15);\n          iVar16 = iVar16 + 3;\n          iVar5 = iVar5 + 4;\n          pcVar7 = pcVar7 + 3;\n          pcVar15 = pcVar15 + 4;\n        } while (iVar16 < iVar4);\n      }\n      pcVar7 = pcVar8 + iVar5;\n      pcVar7[0] = '\r';\n      pcVar7[1] = '\n';\n      pcVar7[2] = '\0';\n      uVar14 = 0xffffffffffffffff;\n      pcVar7 = pcVar8;\n      do {\n        if (uVar14 == 0) break;\n        uVar14 = uVar14 - 1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');\n      (**(code **)(**(long **)(param_1 + 0x10) + 0x10))\n                (*(long **)(param_1 + 0x10),pcVar8,~uVar14 - 1);\n      FUN_00127101(pcVar6);\n      FUN_00127101(pcVar8);\n    }\n    (**(code **)(**(long **)(param_1 + 0x10) + 0x10))(*(long **)(param_1 + 0x10),&DAT_001bc572,2);\n    *(undefined4 *)(param_1 + 0x84) = 1;\n    uVar3 = 0;\n    goto LAB_00128d76;\n  }\n  if (param_2 == 0) {\n    (**(code **)(**(long **)(param_1 + 0x18) + 8))\n              (*(long **)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x98),\n               *(undefined4 *)(param_1 + 0xa0),*(undefined4 *)(param_1 + 0xa4));\n    uVar3 = 0;\n    goto LAB_00128d76;\n  }\n  if (param_2 == 1) {\n    uVar3 = 0;\n    goto LAB_00128d76;\n  }\n  if (param_2 == 3) {\n    uVar3 = (**(code **)(**(long **)(param_1 + 0x18) + 0x20))\n                      (*(long **)(param_1 + 0x18),*(undefined8 *)(param_1 + 0xc0),\n                       *(undefined8 *)(param_1 + 200));\n    goto LAB_00128d76;\n  }\n  if (param_2 == 2) {\n    if (iVar4 == 1) {\n      lVar12 = param_1 + 0x68;\n      iVar4 = FUN_001267cf(lVar12);\n      if (iVar4 < 1) {\n                    \n        __assert_fail("len > 0","proxy.c",0x2af,"proxy_http_negotiate");\n      }\n      lVar11 = FUN_00126895((long)(iVar4 + 1),1);\n      FUN_001267eb(lVar12,lVar11,iVar4);\n      *(undefined1 *)(lVar11 + iVar4) = 0;\n      iVar4 = FUN_00128918(lVar11,iVar4);\n      uVar3 = 1;\n      if (iVar4 < 0) {\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }\n      local_24c = -1;\n      iVar5 = __isoc99_sscanf(lVar11,"HTTP/%i.%i %n",local_250,local_254,&local_24c);\n      if ((iVar5 < 2) || (local_24c == -1)) {\n        (**(code **)(**(long **)(param_1 + 0x18) + 8))\n                  (*(long **)(param_1 + 0x18),"Proxy error: HTTP response was absent",8000,0);\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }\n      FUN_0012722e(lVar12,iVar4);\n      if (*(char *)(lVar11 + local_24c) != '2') {\n        *(undefined1 *)(lVar11 + iVar4) = 0;\n        if ((local_24c < iVar4) &&\n           ((cVar1 = *(char *)(lVar11 + -1 + (long)iVar4), cVar1 == '\r' || (cVar1 == '\n')))) {\n          lVar12 = (long)(iVar4 + -1);\n          do {\n            *(undefined1 *)(lVar11 + lVar12) = 0;\n            if ((int)lVar12 <= local_24c) break;\n            cVar1 = *(char *)(lVar11 + -1 + lVar12);\n            lVar12 = lVar12 + -1;\n          } while ((cVar1 == '\r') || (cVar1 == '\n'));\n        }\n        uVar13 = FUN_00126ed4("Proxy error: %s",lVar11 + local_24c);\n        (**(code **)(**(long **)(param_1 + 0x18) + 8))(*(long **)(param_1 + 0x18),uVar13,8000,0);\n        FUN_00127101(uVar13);\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }\n      FUN_00127101(lVar11);\n      *(undefined4 *)(param_1 + 0x84) = 2;\n    }\n    else if (iVar4 != 2) goto LAB_00128d56;\n    lVar12 = param_1 + 0x68;\n    iVar4 = FUN_001267cf(lVar12);\n    if (iVar4 < 1) {\n                    \n      __assert_fail("len > 0","proxy.c",0x2e5,"proxy_http_negotiate");\n    }\n    lVar9 = FUN_00126895((long)iVar4,1);\n    FUN_001267eb(lVar12,lVar9,iVar4);\n    iVar5 = FUN_00128918(lVar9,iVar4);\n    lVar11 = lVar9;\n    if (iVar5 < 0) {\n      FUN_00127101(lVar9);\n      uVar3 = 1;\n    }\n    else {\n      while (2 < iVar5) {\n        FUN_0012722e(lVar12,iVar5);\n        lVar10 = (long)iVar5;\n        iVar4 = iVar4 - iVar5;\n        iVar5 = FUN_00128918(lVar11 + lVar10,iVar4);\n        lVar11 = lVar11 + lVar10;\n      }\n      if (iVar5 == 2) {\n        FUN_0012722e(lVar12,2);\n        FUN_00128b92(param_1);\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }\n      else {\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }\n    }\n  }\n  else {\nLAB_00128d56:\n    (**(code **)(**(long **)(param_1 + 0x18) + 8))\n              (*(long **)(param_1 + 0x18),"Proxy error: unexpected proxy error",0x1f41,0);\n    uVar3 = 1;\n  }\nLAB_00128d76:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }\n                    \n  __stack_chk_fail();\n}" (type_identifier "undefined4") (function_declarator "FUN_00128cfe(long param_1,int param_2)" (identifier "FUN_00128cfe") (parameter_list "(long param_1,int param_2)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  char cVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int iVar5;\n  char *pcVar6;\n  char *pcVar7;\n  char *pcVar8;\n  long lVar9;\n  long lVar10;\n  long lVar11;\n  long lVar12;\n  undefined8 uVar13;\n  ulong uVar14;\n  char *pcVar15;\n  int iVar16;\n  long in_FS_OFFSET;\n  byte bVar17;\n  undefined1 local_254 [4];\n  undefined1 local_250 [4];\n  int local_24c;\n  undefined1 local_248 [520];\n  long local_40;\n  \n  bVar17 = 0;\n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  iVar4 = *(int *)(param_1 + 0x84);\n  if (iVar4 == -1) {\n    FUN_0018b9e4(*(undefined8 *)(param_1 + 0x20),local_248,0x200);\n    pcVar6 = (char *)FUN_00126ed4("CONNECT %s:%i HTTP/1.1\r\nHost: %s:%i\r\n",local_248,\n                                  *(undefined4 *)(param_1 + 0x28),local_248,\n                                  *(undefined4 *)(param_1 + 0x28));\n    uVar14 = 0xffffffffffffffff;\n    pcVar7 = pcVar6;\n    do {\n      if (uVar14 == 0) break;\n      uVar14 = uVar14 - 1;\n      cVar1 = *pcVar7;\n      pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n    } while (cVar1 != '\0');\n    (**(code **)(**(long **)(param_1 + 0x10) + 0x10))(*(long **)(param_1 + 0x10),pcVar6,~uVar14 - 1)\n    ;\n    FUN_00127101(pcVar6);\n    pcVar7 = (char *)FUN_00119829(*(undefined8 *)(param_1 + 0xd0),0x10);\n    pcVar6 = (char *)FUN_00119829(*(undefined8 *)(param_1 + 0xd0),0x11);\n    if ((*pcVar7 != '\0') || (*pcVar6 != '\0')) {\n      pcVar6 = (char *)FUN_00126ed4("%s:%s",pcVar7,pcVar6);\n      lVar12 = -1;\n      pcVar7 = pcVar6;\n      do {\n        if (lVar12 == 0) break;\n        lVar12 = lVar12 + -1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar4 = ~(uint)lVar12 - 1;\n      pcVar8 = (char *)FUN_00126895((long)((iVar4 * 4) / 3 + 100),1);\n      builtin_strncpy(pcVar8,"Proxy-Authorization: Basic ",0x1c);\n      lVar12 = -1;\n      pcVar7 = pcVar8;\n      do {\n        if (lVar12 == 0) break;\n        lVar12 = lVar12 + -1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar5 = ~(uint)lVar12 - 1;\n      if (0 < iVar4) {\n        pcVar15 = pcVar8 + iVar5;\n        iVar16 = 0;\n        pcVar7 = pcVar6;\n        do {\n          iVar2 = iVar4 - iVar16;\n          if (3 < iVar4 - iVar16) {\n            iVar2 = 3;\n          }\n          FUN_001265e7(pcVar7,iVar2,pcVar15);\n          iVar16 = iVar16 + 3;\n          iVar5 = iVar5 + 4;\n          pcVar7 = pcVar7 + 3;\n          pcVar15 = pcVar15 + 4;\n        } while (iVar16 < iVar4);\n      }\n      pcVar7 = pcVar8 + iVar5;\n      pcVar7[0] = '\r';\n      pcVar7[1] = '\n';\n      pcVar7[2] = '\0';\n      uVar14 = 0xffffffffffffffff;\n      pcVar7 = pcVar8;\n      do {\n        if (uVar14 == 0) break;\n        uVar14 = uVar14 - 1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');\n      (**(code **)(**(long **)(param_1 + 0x10) + 0x10))\n                (*(long **)(param_1 + 0x10),pcVar8,~uVar14 - 1);\n      FUN_00127101(pcVar6);\n      FUN_00127101(pcVar8);\n    }\n    (**(code **)(**(long **)(param_1 + 0x10) + 0x10))(*(long **)(param_1 + 0x10),&DAT_001bc572,2);\n    *(undefined4 *)(param_1 + 0x84) = 1;\n    uVar3 = 0;\n    goto LAB_00128d76;\n  }\n  if (param_2 == 0) {\n    (**(code **)(**(long **)(param_1 + 0x18) + 8))\n              (*(long **)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x98),\n               *(undefined4 *)(param_1 + 0xa0),*(undefined4 *)(param_1 + 0xa4));\n    uVar3 = 0;\n    goto LAB_00128d76;\n  }\n  if (param_2 == 1) {\n    uVar3 = 0;\n    goto LAB_00128d76;\n  }\n  if (param_2 == 3) {\n    uVar3 = (**(code **)(**(long **)(param_1 + 0x18) + 0x20))\n                      (*(long **)(param_1 + 0x18),*(undefined8 *)(param_1 + 0xc0),\n                       *(undefined8 *)(param_1 + 200));\n    goto LAB_00128d76;\n  }\n  if (param_2 == 2) {\n    if (iVar4 == 1) {\n      lVar12 = param_1 + 0x68;\n      iVar4 = FUN_001267cf(lVar12);\n      if (iVar4 < 1) {\n                    \n        __assert_fail("len > 0","proxy.c",0x2af,"proxy_http_negotiate");\n      }\n      lVar11 = FUN_00126895((long)(iVar4 + 1),1);\n      FUN_001267eb(lVar12,lVar11,iVar4);\n      *(undefined1 *)(lVar11 + iVar4) = 0;\n      iVar4 = FUN_00128918(lVar11,iVar4);\n      uVar3 = 1;\n      if (iVar4 < 0) {\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }\n      local_24c = -1;\n      iVar5 = __isoc99_sscanf(lVar11,"HTTP/%i.%i %n",local_250,local_254,&local_24c);\n      if ((iVar5 < 2) || (local_24c == -1)) {\n        (**(code **)(**(long **)(param_1 + 0x18) + 8))\n                  (*(long **)(param_1 + 0x18),"Proxy error: HTTP response was absent",8000,0);\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }\n      FUN_0012722e(lVar12,iVar4);\n      if (*(char *)(lVar11 + local_24c) != '2') {\n        *(undefined1 *)(lVar11 + iVar4) = 0;\n        if ((local_24c < iVar4) &&\n           ((cVar1 = *(char *)(lVar11 + -1 + (long)iVar4), cVar1 == '\r' || (cVar1 == '\n')))) {\n          lVar12 = (long)(iVar4 + -1);\n          do {\n            *(undefined1 *)(lVar11 + lVar12) = 0;\n            if ((int)lVar12 <= local_24c) break;\n            cVar1 = *(char *)(lVar11 + -1 + lVar12);\n            lVar12 = lVar12 + -1;\n          } while ((cVar1 == '\r') || (cVar1 == '\n'));\n        }\n        uVar13 = FUN_00126ed4("Proxy error: %s",lVar11 + local_24c);\n        (**(code **)(**(long **)(param_1 + 0x18) + 8))(*(long **)(param_1 + 0x18),uVar13,8000,0);\n        FUN_00127101(uVar13);\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }\n      FUN_00127101(lVar11);\n      *(undefined4 *)(param_1 + 0x84) = 2;\n    }\n    else if (iVar4 != 2) goto LAB_00128d56;\n    lVar12 = param_1 + 0x68;\n    iVar4 = FUN_001267cf(lVar12);\n    if (iVar4 < 1) {\n                    \n      __assert_fail("len > 0","proxy.c",0x2e5,"proxy_http_negotiate");\n    }\n    lVar9 = FUN_00126895((long)iVar4,1);\n    FUN_001267eb(lVar12,lVar9,iVar4);\n    iVar5 = FUN_00128918(lVar9,iVar4);\n    lVar11 = lVar9;\n    if (iVar5 < 0) {\n      FUN_00127101(lVar9);\n      uVar3 = 1;\n    }\n    else {\n      while (2 < iVar5) {\n        FUN_0012722e(lVar12,iVar5);\n        lVar10 = (long)iVar5;\n        iVar4 = iVar4 - iVar5;\n        iVar5 = FUN_00128918(lVar11 + lVar10,iVar4);\n        lVar11 = lVar11 + lVar10;\n      }\n      if (iVar5 == 2) {\n        FUN_0012722e(lVar12,2);\n        FUN_00128b92(param_1);\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }\n      else {\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }\n    }\n  }\n  else {\nLAB_00128d56:\n    (**(code **)(**(long **)(param_1 + 0x18) + 8))\n              (*(long **)(param_1 + 0x18),"Proxy error: unexpected proxy error",0x1f41,0);\n    uVar3 = 1;\n  }\nLAB_00128d76:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }\n                    \n  __stack_chk_fail();\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "char *pcVar6;" (primitive_type "char") (pointer_declarator "*pcVar6" (* "*") (identifier "pcVar6")) (; ";")) (declaration "char *pcVar7;" (primitive_type "char") (pointer_declarator "*pcVar7" (* "*") (identifier "pcVar7")) (; ";")) (declaration "char *pcVar8;" (primitive_type "char") (pointer_declarator "*pcVar8" (* "*") (identifier "pcVar8")) (; ";")) (declaration "long lVar9;" (sized_type_specifier "long" (long "long")) (identifier "lVar9") (; ";")) (declaration "long lVar10;" (sized_type_specifier "long" (long "long")) (identifier "lVar10") (; ";")) (declaration "long lVar11;" (sized_type_specifier "long" (long "long")) (identifier "lVar11") (; ";")) (declaration "long lVar12;" (sized_type_specifier "long" (long "long")) (identifier "lVar12") (; ";")) (declaration "undefined8 uVar13;" (type_identifier "undefined8") (identifier "uVar13") (; ";")) (declaration "ulong uVar14;" (type_identifier "ulong") (identifier "uVar14") (; ";")) (declaration "char *pcVar15;" (primitive_type "char") (pointer_declarator "*pcVar15" (* "*") (identifier "pcVar15")) (; ";")) (declaration "int iVar16;" (primitive_type "int") (identifier "iVar16") (; ";")) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "byte bVar17;" (type_identifier "byte") (identifier "bVar17") (; ";")) (declaration "undefined1 local_254 [4];" (type_identifier "undefined1") (array_declarator "local_254 [4]" (identifier "local_254") ([ "[") (number_literal "4") (] "]")) (; ";")) (declaration "undefined1 local_250 [4];" (type_identifier "undefined1") (array_declarator "local_250 [4]" (identifier "local_250") ([ "[") (number_literal "4") (] "]")) (; ";")) (declaration "int local_24c;" (primitive_type "int") (identifier "local_24c") (; ";")) (declaration "undefined1 local_248 [520];" (type_identifier "undefined1") (array_declarator "local_248 [520]" (identifier "local_248") ([ "[") (number_literal "520") (] "]")) (; ";")) (declaration "long local_40;" (sized_type_specifier "long" (long "long")) (identifier "local_40") (; ";")) (expression_statement "bVar17 = 0;" (assignment_expression "bVar17 = 0" (identifier "bVar17") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_40") (= "=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "iVar4 = *(int *)(param_1 + 0x84);" (assignment_expression "iVar4 = *(int *)(param_1 + 0x84)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(param_1 + 0x84)" (* "*") (cast_expression "(int *)(param_1 + 0x84)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x84)" (( "(") (binary_expression "param_1 + 0x84" (identifier "param_1") (+ "+") (number_literal "0x84")) () ")"))))) (; ";")) (if_statement "if (iVar4 == -1) {\n    FUN_0018b9e4(*(undefined8 *)(param_1 + 0x20),local_248,0x200);\n    pcVar6 = (char *)FUN_00126ed4("CONNECT %s:%i HTTP/1.1\r\nHost: %s:%i\r\n",local_248,\n                                  *(undefined4 *)(param_1 + 0x28),local_248,\n                                  *(undefined4 *)(param_1 + 0x28));\n    uVar14 = 0xffffffffffffffff;\n    pcVar7 = pcVar6;\n    do {\n      if (uVar14 == 0) break;\n      uVar14 = uVar14 - 1;\n      cVar1 = *pcVar7;\n      pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n    } while (cVar1 != '\0');\n    (**(code **)(**(long **)(param_1 + 0x10) + 0x10))(*(long **)(param_1 + 0x10),pcVar6,~uVar14 - 1)\n    ;\n    FUN_00127101(pcVar6);\n    pcVar7 = (char *)FUN_00119829(*(undefined8 *)(param_1 + 0xd0),0x10);\n    pcVar6 = (char *)FUN_00119829(*(undefined8 *)(param_1 + 0xd0),0x11);\n    if ((*pcVar7 != '\0') || (*pcVar6 != '\0')) {\n      pcVar6 = (char *)FUN_00126ed4("%s:%s",pcVar7,pcVar6);\n      lVar12 = -1;\n      pcVar7 = pcVar6;\n      do {\n        if (lVar12 == 0) break;\n        lVar12 = lVar12 + -1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar4 = ~(uint)lVar12 - 1;\n      pcVar8 = (char *)FUN_00126895((long)((iVar4 * 4) / 3 + 100),1);\n      builtin_strncpy(pcVar8,"Proxy-Authorization: Basic ",0x1c);\n      lVar12 = -1;\n      pcVar7 = pcVar8;\n      do {\n        if (lVar12 == 0) break;\n        lVar12 = lVar12 + -1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar5 = ~(uint)lVar12 - 1;\n      if (0 < iVar4) {\n        pcVar15 = pcVar8 + iVar5;\n        iVar16 = 0;\n        pcVar7 = pcVar6;\n        do {\n          iVar2 = iVar4 - iVar16;\n          if (3 < iVar4 - iVar16) {\n            iVar2 = 3;\n          }\n          FUN_001265e7(pcVar7,iVar2,pcVar15);\n          iVar16 = iVar16 + 3;\n          iVar5 = iVar5 + 4;\n          pcVar7 = pcVar7 + 3;\n          pcVar15 = pcVar15 + 4;\n        } while (iVar16 < iVar4);\n      }\n      pcVar7 = pcVar8 + iVar5;\n      pcVar7[0] = '\r';\n      pcVar7[1] = '\n';\n      pcVar7[2] = '\0';\n      uVar14 = 0xffffffffffffffff;\n      pcVar7 = pcVar8;\n      do {\n        if (uVar14 == 0) break;\n        uVar14 = uVar14 - 1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');\n      (**(code **)(**(long **)(param_1 + 0x10) + 0x10))\n                (*(long **)(param_1 + 0x10),pcVar8,~uVar14 - 1);\n      FUN_00127101(pcVar6);\n      FUN_00127101(pcVar8);\n    }\n    (**(code **)(**(long **)(param_1 + 0x10) + 0x10))(*(long **)(param_1 + 0x10),&DAT_001bc572,2);\n    *(undefined4 *)(param_1 + 0x84) = 1;\n    uVar3 = 0;\n    goto LAB_00128d76;\n  }" (if "if") (parenthesized_expression "(iVar4 == -1)" (( "(") (binary_expression "iVar4 == -1" (identifier "iVar4") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n    FUN_0018b9e4(*(undefined8 *)(param_1 + 0x20),local_248,0x200);\n    pcVar6 = (char *)FUN_00126ed4("CONNECT %s:%i HTTP/1.1\r\nHost: %s:%i\r\n",local_248,\n                                  *(undefined4 *)(param_1 + 0x28),local_248,\n                                  *(undefined4 *)(param_1 + 0x28));\n    uVar14 = 0xffffffffffffffff;\n    pcVar7 = pcVar6;\n    do {\n      if (uVar14 == 0) break;\n      uVar14 = uVar14 - 1;\n      cVar1 = *pcVar7;\n      pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n    } while (cVar1 != '\0');\n    (**(code **)(**(long **)(param_1 + 0x10) + 0x10))(*(long **)(param_1 + 0x10),pcVar6,~uVar14 - 1)\n    ;\n    FUN_00127101(pcVar6);\n    pcVar7 = (char *)FUN_00119829(*(undefined8 *)(param_1 + 0xd0),0x10);\n    pcVar6 = (char *)FUN_00119829(*(undefined8 *)(param_1 + 0xd0),0x11);\n    if ((*pcVar7 != '\0') || (*pcVar6 != '\0')) {\n      pcVar6 = (char *)FUN_00126ed4("%s:%s",pcVar7,pcVar6);\n      lVar12 = -1;\n      pcVar7 = pcVar6;\n      do {\n        if (lVar12 == 0) break;\n        lVar12 = lVar12 + -1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar4 = ~(uint)lVar12 - 1;\n      pcVar8 = (char *)FUN_00126895((long)((iVar4 * 4) / 3 + 100),1);\n      builtin_strncpy(pcVar8,"Proxy-Authorization: Basic ",0x1c);\n      lVar12 = -1;\n      pcVar7 = pcVar8;\n      do {\n        if (lVar12 == 0) break;\n        lVar12 = lVar12 + -1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar5 = ~(uint)lVar12 - 1;\n      if (0 < iVar4) {\n        pcVar15 = pcVar8 + iVar5;\n        iVar16 = 0;\n        pcVar7 = pcVar6;\n        do {\n          iVar2 = iVar4 - iVar16;\n          if (3 < iVar4 - iVar16) {\n            iVar2 = 3;\n          }\n          FUN_001265e7(pcVar7,iVar2,pcVar15);\n          iVar16 = iVar16 + 3;\n          iVar5 = iVar5 + 4;\n          pcVar7 = pcVar7 + 3;\n          pcVar15 = pcVar15 + 4;\n        } while (iVar16 < iVar4);\n      }\n      pcVar7 = pcVar8 + iVar5;\n      pcVar7[0] = '\r';\n      pcVar7[1] = '\n';\n      pcVar7[2] = '\0';\n      uVar14 = 0xffffffffffffffff;\n      pcVar7 = pcVar8;\n      do {\n        if (uVar14 == 0) break;\n        uVar14 = uVar14 - 1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');\n      (**(code **)(**(long **)(param_1 + 0x10) + 0x10))\n                (*(long **)(param_1 + 0x10),pcVar8,~uVar14 - 1);\n      FUN_00127101(pcVar6);\n      FUN_00127101(pcVar8);\n    }\n    (**(code **)(**(long **)(param_1 + 0x10) + 0x10))(*(long **)(param_1 + 0x10),&DAT_001bc572,2);\n    *(undefined4 *)(param_1 + 0x84) = 1;\n    uVar3 = 0;\n    goto LAB_00128d76;\n  }" ({ "{") (expression_statement "FUN_0018b9e4(*(undefined8 *)(param_1 + 0x20),local_248,0x200);" (call_expression "FUN_0018b9e4(*(undefined8 *)(param_1 + 0x20),local_248,0x200)" (identifier "FUN_0018b9e4") (argument_list "(*(undefined8 *)(param_1 + 0x20),local_248,0x200)" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 0x20)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x20)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")")))) (, ",") (identifier "local_248") (, ",") (number_literal "0x200") () ")"))) (; ";")) (expression_statement "pcVar6 = (char *)FUN_00126ed4("CONNECT %s:%i HTTP/1.1\r\nHost: %s:%i\r\n",local_248,\n                                  *(undefined4 *)(param_1 + 0x28),local_248,\n                                  *(undefined4 *)(param_1 + 0x28));" (assignment_expression "pcVar6 = (char *)FUN_00126ed4("CONNECT %s:%i HTTP/1.1\r\nHost: %s:%i\r\n",local_248,\n                                  *(undefined4 *)(param_1 + 0x28),local_248,\n                                  *(undefined4 *)(param_1 + 0x28))" (identifier "pcVar6") (= "=") (cast_expression "(char *)FUN_00126ed4("CONNECT %s:%i HTTP/1.1\r\nHost: %s:%i\r\n",local_248,\n                                  *(undefined4 *)(param_1 + 0x28),local_248,\n                                  *(undefined4 *)(param_1 + 0x28))" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00126ed4("CONNECT %s:%i HTTP/1.1\r\nHost: %s:%i\r\n",local_248,\n                                  *(undefined4 *)(param_1 + 0x28),local_248,\n                                  *(undefined4 *)(param_1 + 0x28))" (identifier "FUN_00126ed4") (argument_list "("CONNECT %s:%i HTTP/1.1\r\nHost: %s:%i\r\n",local_248,\n                                  *(undefined4 *)(param_1 + 0x28),local_248,\n                                  *(undefined4 *)(param_1 + 0x28))" (( "(") (string_literal ""CONNECT %s:%i HTTP/1.1\r\nHost: %s:%i\r\n"" (" """) (string_content "CONNECT %s:%i HTTP/1.1") (escape_sequence "\r") (escape_sequence "\n") (string_content "Host: %s:%i") (escape_sequence "\r") (escape_sequence "\n") (" """)) (, ",") (identifier "local_248") (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x28)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x28)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")")))) (, ",") (identifier "local_248") (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x28)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x28)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")")))) () ")"))))) (; ";")) (expression_statement "uVar14 = 0xffffffffffffffff;" (assignment_expression "uVar14 = 0xffffffffffffffff" (identifier "uVar14") (= "=") (number_literal "0xffffffffffffffff")) (; ";")) (expression_statement "pcVar7 = pcVar6;" (assignment_expression "pcVar7 = pcVar6" (identifier "pcVar7") (= "=") (identifier "pcVar6")) (; ";")) (do_statement "do {\n      if (uVar14 == 0) break;\n      uVar14 = uVar14 - 1;\n      cVar1 = *pcVar7;\n      pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n    } while (cVar1 != '\0');" (do "do") (compound_statement "{\n      if (uVar14 == 0) break;\n      uVar14 = uVar14 - 1;\n      cVar1 = *pcVar7;\n      pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n    }" ({ "{") (if_statement "if (uVar14 == 0) break;" (if "if") (parenthesized_expression "(uVar14 == 0)" (( "(") (binary_expression "uVar14 == 0" (identifier "uVar14") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "uVar14 = uVar14 - 1;" (assignment_expression "uVar14 = uVar14 - 1" (identifier "uVar14") (= "=") (binary_expression "uVar14 - 1" (identifier "uVar14") (- "-") (number_literal "1"))) (; ";")) (expression_statement "cVar1 = *pcVar7;" (assignment_expression "cVar1 = *pcVar7" (identifier "cVar1") (= "=") (pointer_expression "*pcVar7" (* "*") (identifier "pcVar7"))) (; ";")) (expression_statement "pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;" (assignment_expression "pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1" (identifier "pcVar7") (= "=") (binary_expression "pcVar7 + (ulong)bVar17 * -2 + 1" (binary_expression "pcVar7 + (ulong)bVar17 * -2" (identifier "pcVar7") (+ "+") (binary_expression "(ulong)bVar17 * -2" (cast_expression "(ulong)bVar17" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "bVar17")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(cVar1 != '\0')" (( "(") (binary_expression "cVar1 != '\0'" (identifier "cVar1") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (; ";")) (expression_statement "(**(code **)(**(long **)(param_1 + 0x10) + 0x10))(*(long **)(param_1 + 0x10),pcVar6,~uVar14 - 1)\n    ;" (call_expression "(**(code **)(**(long **)(param_1 + 0x10) + 0x10))(*(long **)(param_1 + 0x10),pcVar6,~uVar14 - 1)" (parenthesized_expression "(**(code **)(**(long **)(param_1 + 0x10) + 0x10))" (( "(") (pointer_expression "**(code **)(**(long **)(param_1 + 0x10) + 0x10)" (* "*") (pointer_expression "*(code **)(**(long **)(param_1 + 0x10) + 0x10)" (* "*") (cast_expression "(code **)(**(long **)(param_1 + 0x10) + 0x10)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(**(long **)(param_1 + 0x10) + 0x10)" (( "(") (binary_expression "**(long **)(param_1 + 0x10) + 0x10" (pointer_expression "**(long **)(param_1 + 0x10)" (* "*") (pointer_expression "*(long **)(param_1 + 0x10)" (* "*") (cast_expression "(long **)(param_1 + 0x10)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))))) (+ "+") (number_literal "0x10")) () ")"))))) () ")")) (argument_list "(*(long **)(param_1 + 0x10),pcVar6,~uVar14 - 1)" (( "(") (pointer_expression "*(long **)(param_1 + 0x10)" (* "*") (cast_expression "(long **)(param_1 + 0x10)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (, ",") (identifier "pcVar6") (, ",") (binary_expression "~uVar14 - 1" (unary_expression "~uVar14" (~ "~") (identifier "uVar14")) (- "-") (number_literal "1")) () ")"))) (; ";")) (expression_statement "FUN_00127101(pcVar6);" (call_expression "FUN_00127101(pcVar6)" (identifier "FUN_00127101") (argument_list "(pcVar6)" (( "(") (identifier "pcVar6") () ")"))) (; ";")) (expression_statement "pcVar7 = (char *)FUN_00119829(*(undefined8 *)(param_1 + 0xd0),0x10);" (assignment_expression "pcVar7 = (char *)FUN_00119829(*(undefined8 *)(param_1 + 0xd0),0x10)" (identifier "pcVar7") (= "=") (cast_expression "(char *)FUN_00119829(*(undefined8 *)(param_1 + 0xd0),0x10)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00119829(*(undefined8 *)(param_1 + 0xd0),0x10)" (identifier "FUN_00119829") (argument_list "(*(undefined8 *)(param_1 + 0xd0),0x10)" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 0xd0)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0xd0)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xd0)" (( "(") (binary_expression "param_1 + 0xd0" (identifier "param_1") (+ "+") (number_literal "0xd0")) () ")")))) (, ",") (number_literal "0x10") () ")"))))) (; ";")) (expression_statement "pcVar6 = (char *)FUN_00119829(*(undefined8 *)(param_1 + 0xd0),0x11);" (assignment_expression "pcVar6 = (char *)FUN_00119829(*(undefined8 *)(param_1 + 0xd0),0x11)" (identifier "pcVar6") (= "=") (cast_expression "(char *)FUN_00119829(*(undefined8 *)(param_1 + 0xd0),0x11)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00119829(*(undefined8 *)(param_1 + 0xd0),0x11)" (identifier "FUN_00119829") (argument_list "(*(undefined8 *)(param_1 + 0xd0),0x11)" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 0xd0)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0xd0)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xd0)" (( "(") (binary_expression "param_1 + 0xd0" (identifier "param_1") (+ "+") (number_literal "0xd0")) () ")")))) (, ",") (number_literal "0x11") () ")"))))) (; ";")) (if_statement "if ((*pcVar7 != '\0') || (*pcVar6 != '\0')) {\n      pcVar6 = (char *)FUN_00126ed4("%s:%s",pcVar7,pcVar6);\n      lVar12 = -1;\n      pcVar7 = pcVar6;\n      do {\n        if (lVar12 == 0) break;\n        lVar12 = lVar12 + -1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar4 = ~(uint)lVar12 - 1;\n      pcVar8 = (char *)FUN_00126895((long)((iVar4 * 4) / 3 + 100),1);\n      builtin_strncpy(pcVar8,"Proxy-Authorization: Basic ",0x1c);\n      lVar12 = -1;\n      pcVar7 = pcVar8;\n      do {\n        if (lVar12 == 0) break;\n        lVar12 = lVar12 + -1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar5 = ~(uint)lVar12 - 1;\n      if (0 < iVar4) {\n        pcVar15 = pcVar8 + iVar5;\n        iVar16 = 0;\n        pcVar7 = pcVar6;\n        do {\n          iVar2 = iVar4 - iVar16;\n          if (3 < iVar4 - iVar16) {\n            iVar2 = 3;\n          }\n          FUN_001265e7(pcVar7,iVar2,pcVar15);\n          iVar16 = iVar16 + 3;\n          iVar5 = iVar5 + 4;\n          pcVar7 = pcVar7 + 3;\n          pcVar15 = pcVar15 + 4;\n        } while (iVar16 < iVar4);\n      }\n      pcVar7 = pcVar8 + iVar5;\n      pcVar7[0] = '\r';\n      pcVar7[1] = '\n';\n      pcVar7[2] = '\0';\n      uVar14 = 0xffffffffffffffff;\n      pcVar7 = pcVar8;\n      do {\n        if (uVar14 == 0) break;\n        uVar14 = uVar14 - 1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');\n      (**(code **)(**(long **)(param_1 + 0x10) + 0x10))\n                (*(long **)(param_1 + 0x10),pcVar8,~uVar14 - 1);\n      FUN_00127101(pcVar6);\n      FUN_00127101(pcVar8);\n    }" (if "if") (parenthesized_expression "((*pcVar7 != '\0') || (*pcVar6 != '\0'))" (( "(") (binary_expression "(*pcVar7 != '\0') || (*pcVar6 != '\0')" (parenthesized_expression "(*pcVar7 != '\0')" (( "(") (binary_expression "*pcVar7 != '\0'" (pointer_expression "*pcVar7" (* "*") (identifier "pcVar7")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (|| "||") (parenthesized_expression "(*pcVar6 != '\0')" (( "(") (binary_expression "*pcVar6 != '\0'" (pointer_expression "*pcVar6" (* "*") (identifier "pcVar6")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")"))) () ")")) (compound_statement "{\n      pcVar6 = (char *)FUN_00126ed4("%s:%s",pcVar7,pcVar6);\n      lVar12 = -1;\n      pcVar7 = pcVar6;\n      do {\n        if (lVar12 == 0) break;\n        lVar12 = lVar12 + -1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar4 = ~(uint)lVar12 - 1;\n      pcVar8 = (char *)FUN_00126895((long)((iVar4 * 4) / 3 + 100),1);\n      builtin_strncpy(pcVar8,"Proxy-Authorization: Basic ",0x1c);\n      lVar12 = -1;\n      pcVar7 = pcVar8;\n      do {\n        if (lVar12 == 0) break;\n        lVar12 = lVar12 + -1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');\n      iVar5 = ~(uint)lVar12 - 1;\n      if (0 < iVar4) {\n        pcVar15 = pcVar8 + iVar5;\n        iVar16 = 0;\n        pcVar7 = pcVar6;\n        do {\n          iVar2 = iVar4 - iVar16;\n          if (3 < iVar4 - iVar16) {\n            iVar2 = 3;\n          }\n          FUN_001265e7(pcVar7,iVar2,pcVar15);\n          iVar16 = iVar16 + 3;\n          iVar5 = iVar5 + 4;\n          pcVar7 = pcVar7 + 3;\n          pcVar15 = pcVar15 + 4;\n        } while (iVar16 < iVar4);\n      }\n      pcVar7 = pcVar8 + iVar5;\n      pcVar7[0] = '\r';\n      pcVar7[1] = '\n';\n      pcVar7[2] = '\0';\n      uVar14 = 0xffffffffffffffff;\n      pcVar7 = pcVar8;\n      do {\n        if (uVar14 == 0) break;\n        uVar14 = uVar14 - 1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');\n      (**(code **)(**(long **)(param_1 + 0x10) + 0x10))\n                (*(long **)(param_1 + 0x10),pcVar8,~uVar14 - 1);\n      FUN_00127101(pcVar6);\n      FUN_00127101(pcVar8);\n    }" ({ "{") (expression_statement "pcVar6 = (char *)FUN_00126ed4("%s:%s",pcVar7,pcVar6);" (assignment_expression "pcVar6 = (char *)FUN_00126ed4("%s:%s",pcVar7,pcVar6)" (identifier "pcVar6") (= "=") (cast_expression "(char *)FUN_00126ed4("%s:%s",pcVar7,pcVar6)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00126ed4("%s:%s",pcVar7,pcVar6)" (identifier "FUN_00126ed4") (argument_list "("%s:%s",pcVar7,pcVar6)" (( "(") (string_literal ""%s:%s"" (" """) (string_content "%s:%s") (" """)) (, ",") (identifier "pcVar7") (, ",") (identifier "pcVar6") () ")"))))) (; ";")) (expression_statement "lVar12 = -1;" (assignment_expression "lVar12 = -1" (identifier "lVar12") (= "=") (number_literal "-1")) (; ";")) (expression_statement "pcVar7 = pcVar6;" (assignment_expression "pcVar7 = pcVar6" (identifier "pcVar7") (= "=") (identifier "pcVar6")) (; ";")) (do_statement "do {\n        if (lVar12 == 0) break;\n        lVar12 = lVar12 + -1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');" (do "do") (compound_statement "{\n        if (lVar12 == 0) break;\n        lVar12 = lVar12 + -1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      }" ({ "{") (if_statement "if (lVar12 == 0) break;" (if "if") (parenthesized_expression "(lVar12 == 0)" (( "(") (binary_expression "lVar12 == 0" (identifier "lVar12") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "lVar12 = lVar12 + -1;" (assignment_expression "lVar12 = lVar12 + -1" (identifier "lVar12") (= "=") (binary_expression "lVar12 + -1" (identifier "lVar12") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "cVar1 = *pcVar7;" (assignment_expression "cVar1 = *pcVar7" (identifier "cVar1") (= "=") (pointer_expression "*pcVar7" (* "*") (identifier "pcVar7"))) (; ";")) (expression_statement "pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;" (assignment_expression "pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1" (identifier "pcVar7") (= "=") (binary_expression "pcVar7 + (ulong)bVar17 * -2 + 1" (binary_expression "pcVar7 + (ulong)bVar17 * -2" (identifier "pcVar7") (+ "+") (binary_expression "(ulong)bVar17 * -2" (cast_expression "(ulong)bVar17" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "bVar17")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(cVar1 != '\0')" (( "(") (binary_expression "cVar1 != '\0'" (identifier "cVar1") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (; ";")) (expression_statement "iVar4 = ~(uint)lVar12 - 1;" (assignment_expression "iVar4 = ~(uint)lVar12 - 1" (identifier "iVar4") (= "=") (binary_expression "~(uint)lVar12 - 1" (unary_expression "~(uint)lVar12" (~ "~") (cast_expression "(uint)lVar12" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "lVar12"))) (- "-") (number_literal "1"))) (; ";")) (expression_statement "pcVar8 = (char *)FUN_00126895((long)((iVar4 * 4) / 3 + 100),1);" (assignment_expression "pcVar8 = (char *)FUN_00126895((long)((iVar4 * 4) / 3 + 100),1)" (identifier "pcVar8") (= "=") (cast_expression "(char *)FUN_00126895((long)((iVar4 * 4) / 3 + 100),1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00126895((long)((iVar4 * 4) / 3 + 100),1)" (identifier "FUN_00126895") (argument_list "((long)((iVar4 * 4) / 3 + 100),1)" (( "(") (cast_expression "(long)((iVar4 * 4) / 3 + 100)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (parenthesized_expression "((iVar4 * 4) / 3 + 100)" (( "(") (binary_expression "(iVar4 * 4) / 3 + 100" (binary_expression "(iVar4 * 4) / 3" (parenthesized_expression "(iVar4 * 4)" (( "(") (binary_expression "iVar4 * 4" (identifier "iVar4") (* "*") (number_literal "4")) () ")")) (/ "/") (number_literal "3")) (+ "+") (number_literal "100")) () ")"))) (, ",") (number_literal "1") () ")"))))) (; ";")) (expression_statement "builtin_strncpy(pcVar8,"Proxy-Authorization: Basic ",0x1c);" (call_expression "builtin_strncpy(pcVar8,"Proxy-Authorization: Basic ",0x1c)" (identifier "builtin_strncpy") (argument_list "(pcVar8,"Proxy-Authorization: Basic ",0x1c)" (( "(") (identifier "pcVar8") (, ",") (string_literal ""Proxy-Authorization: Basic "" (" """) (string_content "Proxy-Authorization: Basic ") (" """)) (, ",") (number_literal "0x1c") () ")"))) (; ";")) (expression_statement "lVar12 = -1;" (assignment_expression "lVar12 = -1" (identifier "lVar12") (= "=") (number_literal "-1")) (; ";")) (expression_statement "pcVar7 = pcVar8;" (assignment_expression "pcVar7 = pcVar8" (identifier "pcVar7") (= "=") (identifier "pcVar8")) (; ";")) (do_statement "do {\n        if (lVar12 == 0) break;\n        lVar12 = lVar12 + -1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');" (do "do") (compound_statement "{\n        if (lVar12 == 0) break;\n        lVar12 = lVar12 + -1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      }" ({ "{") (if_statement "if (lVar12 == 0) break;" (if "if") (parenthesized_expression "(lVar12 == 0)" (( "(") (binary_expression "lVar12 == 0" (identifier "lVar12") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "lVar12 = lVar12 + -1;" (assignment_expression "lVar12 = lVar12 + -1" (identifier "lVar12") (= "=") (binary_expression "lVar12 + -1" (identifier "lVar12") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "cVar1 = *pcVar7;" (assignment_expression "cVar1 = *pcVar7" (identifier "cVar1") (= "=") (pointer_expression "*pcVar7" (* "*") (identifier "pcVar7"))) (; ";")) (expression_statement "pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;" (assignment_expression "pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1" (identifier "pcVar7") (= "=") (binary_expression "pcVar7 + (ulong)bVar17 * -2 + 1" (binary_expression "pcVar7 + (ulong)bVar17 * -2" (identifier "pcVar7") (+ "+") (binary_expression "(ulong)bVar17 * -2" (cast_expression "(ulong)bVar17" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "bVar17")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(cVar1 != '\0')" (( "(") (binary_expression "cVar1 != '\0'" (identifier "cVar1") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (; ";")) (expression_statement "iVar5 = ~(uint)lVar12 - 1;" (assignment_expression "iVar5 = ~(uint)lVar12 - 1" (identifier "iVar5") (= "=") (binary_expression "~(uint)lVar12 - 1" (unary_expression "~(uint)lVar12" (~ "~") (cast_expression "(uint)lVar12" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "lVar12"))) (- "-") (number_literal "1"))) (; ";")) (if_statement "if (0 < iVar4) {\n        pcVar15 = pcVar8 + iVar5;\n        iVar16 = 0;\n        pcVar7 = pcVar6;\n        do {\n          iVar2 = iVar4 - iVar16;\n          if (3 < iVar4 - iVar16) {\n            iVar2 = 3;\n          }\n          FUN_001265e7(pcVar7,iVar2,pcVar15);\n          iVar16 = iVar16 + 3;\n          iVar5 = iVar5 + 4;\n          pcVar7 = pcVar7 + 3;\n          pcVar15 = pcVar15 + 4;\n        } while (iVar16 < iVar4);\n      }" (if "if") (parenthesized_expression "(0 < iVar4)" (( "(") (binary_expression "0 < iVar4" (number_literal "0") (< "<") (identifier "iVar4")) () ")")) (compound_statement "{\n        pcVar15 = pcVar8 + iVar5;\n        iVar16 = 0;\n        pcVar7 = pcVar6;\n        do {\n          iVar2 = iVar4 - iVar16;\n          if (3 < iVar4 - iVar16) {\n            iVar2 = 3;\n          }\n          FUN_001265e7(pcVar7,iVar2,pcVar15);\n          iVar16 = iVar16 + 3;\n          iVar5 = iVar5 + 4;\n          pcVar7 = pcVar7 + 3;\n          pcVar15 = pcVar15 + 4;\n        } while (iVar16 < iVar4);\n      }" ({ "{") (expression_statement "pcVar15 = pcVar8 + iVar5;" (assignment_expression "pcVar15 = pcVar8 + iVar5" (identifier "pcVar15") (= "=") (binary_expression "pcVar8 + iVar5" (identifier "pcVar8") (+ "+") (identifier "iVar5"))) (; ";")) (expression_statement "iVar16 = 0;" (assignment_expression "iVar16 = 0" (identifier "iVar16") (= "=") (number_literal "0")) (; ";")) (expression_statement "pcVar7 = pcVar6;" (assignment_expression "pcVar7 = pcVar6" (identifier "pcVar7") (= "=") (identifier "pcVar6")) (; ";")) (do_statement "do {\n          iVar2 = iVar4 - iVar16;\n          if (3 < iVar4 - iVar16) {\n            iVar2 = 3;\n          }\n          FUN_001265e7(pcVar7,iVar2,pcVar15);\n          iVar16 = iVar16 + 3;\n          iVar5 = iVar5 + 4;\n          pcVar7 = pcVar7 + 3;\n          pcVar15 = pcVar15 + 4;\n        } while (iVar16 < iVar4);" (do "do") (compound_statement "{\n          iVar2 = iVar4 - iVar16;\n          if (3 < iVar4 - iVar16) {\n            iVar2 = 3;\n          }\n          FUN_001265e7(pcVar7,iVar2,pcVar15);\n          iVar16 = iVar16 + 3;\n          iVar5 = iVar5 + 4;\n          pcVar7 = pcVar7 + 3;\n          pcVar15 = pcVar15 + 4;\n        }" ({ "{") (expression_statement "iVar2 = iVar4 - iVar16;" (assignment_expression "iVar2 = iVar4 - iVar16" (identifier "iVar2") (= "=") (binary_expression "iVar4 - iVar16" (identifier "iVar4") (- "-") (identifier "iVar16"))) (; ";")) (if_statement "if (3 < iVar4 - iVar16) {\n            iVar2 = 3;\n          }" (if "if") (parenthesized_expression "(3 < iVar4 - iVar16)" (( "(") (binary_expression "3 < iVar4 - iVar16" (number_literal "3") (< "<") (binary_expression "iVar4 - iVar16" (identifier "iVar4") (- "-") (identifier "iVar16"))) () ")")) (compound_statement "{\n            iVar2 = 3;\n          }" ({ "{") (expression_statement "iVar2 = 3;" (assignment_expression "iVar2 = 3" (identifier "iVar2") (= "=") (number_literal "3")) (; ";")) (} "}"))) (expression_statement "FUN_001265e7(pcVar7,iVar2,pcVar15);" (call_expression "FUN_001265e7(pcVar7,iVar2,pcVar15)" (identifier "FUN_001265e7") (argument_list "(pcVar7,iVar2,pcVar15)" (( "(") (identifier "pcVar7") (, ",") (identifier "iVar2") (, ",") (identifier "pcVar15") () ")"))) (; ";")) (expression_statement "iVar16 = iVar16 + 3;" (assignment_expression "iVar16 = iVar16 + 3" (identifier "iVar16") (= "=") (binary_expression "iVar16 + 3" (identifier "iVar16") (+ "+") (number_literal "3"))) (; ";")) (expression_statement "iVar5 = iVar5 + 4;" (assignment_expression "iVar5 = iVar5 + 4" (identifier "iVar5") (= "=") (binary_expression "iVar5 + 4" (identifier "iVar5") (+ "+") (number_literal "4"))) (; ";")) (expression_statement "pcVar7 = pcVar7 + 3;" (assignment_expression "pcVar7 = pcVar7 + 3" (identifier "pcVar7") (= "=") (binary_expression "pcVar7 + 3" (identifier "pcVar7") (+ "+") (number_literal "3"))) (; ";")) (expression_statement "pcVar15 = pcVar15 + 4;" (assignment_expression "pcVar15 = pcVar15 + 4" (identifier "pcVar15") (= "=") (binary_expression "pcVar15 + 4" (identifier "pcVar15") (+ "+") (number_literal "4"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar16 < iVar4)" (( "(") (binary_expression "iVar16 < iVar4" (identifier "iVar16") (< "<") (identifier "iVar4")) () ")")) (; ";")) (} "}"))) (expression_statement "pcVar7 = pcVar8 + iVar5;" (assignment_expression "pcVar7 = pcVar8 + iVar5" (identifier "pcVar7") (= "=") (binary_expression "pcVar8 + iVar5" (identifier "pcVar8") (+ "+") (identifier "iVar5"))) (; ";")) (expression_statement "pcVar7[0] = '\r';" (assignment_expression "pcVar7[0] = '\r'" (subscript_expression "pcVar7[0]" (identifier "pcVar7") ([ "[") (number_literal "0") (] "]")) (= "=") (char_literal "'\r'" (' "'") (escape_sequence "\r") (' "'"))) (; ";")) (expression_statement "pcVar7[1] = '\n';" (assignment_expression "pcVar7[1] = '\n'" (subscript_expression "pcVar7[1]" (identifier "pcVar7") ([ "[") (number_literal "1") (] "]")) (= "=") (char_literal "'\n'" (' "'") (escape_sequence "\n") (' "'"))) (; ";")) (expression_statement "pcVar7[2] = '\0';" (assignment_expression "pcVar7[2] = '\0'" (subscript_expression "pcVar7[2]" (identifier "pcVar7") ([ "[") (number_literal "2") (] "]")) (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (expression_statement "uVar14 = 0xffffffffffffffff;" (assignment_expression "uVar14 = 0xffffffffffffffff" (identifier "uVar14") (= "=") (number_literal "0xffffffffffffffff")) (; ";")) (expression_statement "pcVar7 = pcVar8;" (assignment_expression "pcVar7 = pcVar8" (identifier "pcVar7") (= "=") (identifier "pcVar8")) (; ";")) (do_statement "do {\n        if (uVar14 == 0) break;\n        uVar14 = uVar14 - 1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      } while (cVar1 != '\0');" (do "do") (compound_statement "{\n        if (uVar14 == 0) break;\n        uVar14 = uVar14 - 1;\n        cVar1 = *pcVar7;\n        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;\n      }" ({ "{") (if_statement "if (uVar14 == 0) break;" (if "if") (parenthesized_expression "(uVar14 == 0)" (( "(") (binary_expression "uVar14 == 0" (identifier "uVar14") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "uVar14 = uVar14 - 1;" (assignment_expression "uVar14 = uVar14 - 1" (identifier "uVar14") (= "=") (binary_expression "uVar14 - 1" (identifier "uVar14") (- "-") (number_literal "1"))) (; ";")) (expression_statement "cVar1 = *pcVar7;" (assignment_expression "cVar1 = *pcVar7" (identifier "cVar1") (= "=") (pointer_expression "*pcVar7" (* "*") (identifier "pcVar7"))) (; ";")) (expression_statement "pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;" (assignment_expression "pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1" (identifier "pcVar7") (= "=") (binary_expression "pcVar7 + (ulong)bVar17 * -2 + 1" (binary_expression "pcVar7 + (ulong)bVar17 * -2" (identifier "pcVar7") (+ "+") (binary_expression "(ulong)bVar17 * -2" (cast_expression "(ulong)bVar17" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "bVar17")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(cVar1 != '\0')" (( "(") (binary_expression "cVar1 != '\0'" (identifier "cVar1") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (; ";")) (expression_statement "(**(code **)(**(long **)(param_1 + 0x10) + 0x10))\n                (*(long **)(param_1 + 0x10),pcVar8,~uVar14 - 1);" (call_expression "(**(code **)(**(long **)(param_1 + 0x10) + 0x10))\n                (*(long **)(param_1 + 0x10),pcVar8,~uVar14 - 1)" (parenthesized_expression "(**(code **)(**(long **)(param_1 + 0x10) + 0x10))" (( "(") (pointer_expression "**(code **)(**(long **)(param_1 + 0x10) + 0x10)" (* "*") (pointer_expression "*(code **)(**(long **)(param_1 + 0x10) + 0x10)" (* "*") (cast_expression "(code **)(**(long **)(param_1 + 0x10) + 0x10)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(**(long **)(param_1 + 0x10) + 0x10)" (( "(") (binary_expression "**(long **)(param_1 + 0x10) + 0x10" (pointer_expression "**(long **)(param_1 + 0x10)" (* "*") (pointer_expression "*(long **)(param_1 + 0x10)" (* "*") (cast_expression "(long **)(param_1 + 0x10)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))))) (+ "+") (number_literal "0x10")) () ")"))))) () ")")) (argument_list "(*(long **)(param_1 + 0x10),pcVar8,~uVar14 - 1)" (( "(") (pointer_expression "*(long **)(param_1 + 0x10)" (* "*") (cast_expression "(long **)(param_1 + 0x10)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (, ",") (identifier "pcVar8") (, ",") (binary_expression "~uVar14 - 1" (unary_expression "~uVar14" (~ "~") (identifier "uVar14")) (- "-") (number_literal "1")) () ")"))) (; ";")) (expression_statement "FUN_00127101(pcVar6);" (call_expression "FUN_00127101(pcVar6)" (identifier "FUN_00127101") (argument_list "(pcVar6)" (( "(") (identifier "pcVar6") () ")"))) (; ";")) (expression_statement "FUN_00127101(pcVar8);" (call_expression "FUN_00127101(pcVar8)" (identifier "FUN_00127101") (argument_list "(pcVar8)" (( "(") (identifier "pcVar8") () ")"))) (; ";")) (} "}"))) (expression_statement "(**(code **)(**(long **)(param_1 + 0x10) + 0x10))(*(long **)(param_1 + 0x10),&DAT_001bc572,2);" (call_expression "(**(code **)(**(long **)(param_1 + 0x10) + 0x10))(*(long **)(param_1 + 0x10),&DAT_001bc572,2)" (parenthesized_expression "(**(code **)(**(long **)(param_1 + 0x10) + 0x10))" (( "(") (pointer_expression "**(code **)(**(long **)(param_1 + 0x10) + 0x10)" (* "*") (pointer_expression "*(code **)(**(long **)(param_1 + 0x10) + 0x10)" (* "*") (cast_expression "(code **)(**(long **)(param_1 + 0x10) + 0x10)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(**(long **)(param_1 + 0x10) + 0x10)" (( "(") (binary_expression "**(long **)(param_1 + 0x10) + 0x10" (pointer_expression "**(long **)(param_1 + 0x10)" (* "*") (pointer_expression "*(long **)(param_1 + 0x10)" (* "*") (cast_expression "(long **)(param_1 + 0x10)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")"))))) (+ "+") (number_literal "0x10")) () ")"))))) () ")")) (argument_list "(*(long **)(param_1 + 0x10),&DAT_001bc572,2)" (( "(") (pointer_expression "*(long **)(param_1 + 0x10)" (* "*") (cast_expression "(long **)(param_1 + 0x10)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (, ",") (pointer_expression "&DAT_001bc572" (& "&") (identifier "DAT_001bc572")) (, ",") (number_literal "2") () ")"))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x84) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x84) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x84)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x84)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x84)" (( "(") (binary_expression "param_1 + 0x84" (identifier "param_1") (+ "+") (number_literal "0x84")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_00128d76;" (goto "goto") (statement_identifier "LAB_00128d76") (; ";")) (} "}"))) (if_statement "if (param_2 == 0) {\n    (**(code **)(**(long **)(param_1 + 0x18) + 8))\n              (*(long **)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x98),\n               *(undefined4 *)(param_1 + 0xa0),*(undefined4 *)(param_1 + 0xa4));\n    uVar3 = 0;\n    goto LAB_00128d76;\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    (**(code **)(**(long **)(param_1 + 0x18) + 8))\n              (*(long **)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x98),\n               *(undefined4 *)(param_1 + 0xa0),*(undefined4 *)(param_1 + 0xa4));\n    uVar3 = 0;\n    goto LAB_00128d76;\n  }" ({ "{") (expression_statement "(**(code **)(**(long **)(param_1 + 0x18) + 8))\n              (*(long **)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x98),\n               *(undefined4 *)(param_1 + 0xa0),*(undefined4 *)(param_1 + 0xa4));" (call_expression "(**(code **)(**(long **)(param_1 + 0x18) + 8))\n              (*(long **)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x98),\n               *(undefined4 *)(param_1 + 0xa0),*(undefined4 *)(param_1 + 0xa4))" (parenthesized_expression "(**(code **)(**(long **)(param_1 + 0x18) + 8))" (( "(") (pointer_expression "**(code **)(**(long **)(param_1 + 0x18) + 8)" (* "*") (pointer_expression "*(code **)(**(long **)(param_1 + 0x18) + 8)" (* "*") (cast_expression "(code **)(**(long **)(param_1 + 0x18) + 8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(**(long **)(param_1 + 0x18) + 8)" (( "(") (binary_expression "**(long **)(param_1 + 0x18) + 8" (pointer_expression "**(long **)(param_1 + 0x18)" (* "*") (pointer_expression "*(long **)(param_1 + 0x18)" (* "*") (cast_expression "(long **)(param_1 + 0x18)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")"))))) (+ "+") (number_literal "8")) () ")"))))) () ")")) (argument_list "(*(long **)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x98),\n               *(undefined4 *)(param_1 + 0xa0),*(undefined4 *)(param_1 + 0xa4))" (( "(") (pointer_expression "*(long **)(param_1 + 0x18)" (* "*") (cast_expression "(long **)(param_1 + 0x18)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (, ",") (pointer_expression "*(undefined8 *)(param_1 + 0x98)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x98)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x98)" (( "(") (binary_expression "param_1 + 0x98" (identifier "param_1") (+ "+") (number_literal "0x98")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0xa0)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xa0)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xa0)" (( "(") (binary_expression "param_1 + 0xa0" (identifier "param_1") (+ "+") (number_literal "0xa0")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0xa4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xa4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xa4)" (( "(") (binary_expression "param_1 + 0xa4" (identifier "param_1") (+ "+") (number_literal "0xa4")) () ")")))) () ")"))) (; ";")) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_00128d76;" (goto "goto") (statement_identifier "LAB_00128d76") (; ";")) (} "}"))) (if_statement "if (param_2 == 1) {\n    uVar3 = 0;\n    goto LAB_00128d76;\n  }" (if "if") (parenthesized_expression "(param_2 == 1)" (( "(") (binary_expression "param_2 == 1" (identifier "param_2") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n    uVar3 = 0;\n    goto LAB_00128d76;\n  }" ({ "{") (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_00128d76;" (goto "goto") (statement_identifier "LAB_00128d76") (; ";")) (} "}"))) (if_statement "if (param_2 == 3) {\n    uVar3 = (**(code **)(**(long **)(param_1 + 0x18) + 0x20))\n                      (*(long **)(param_1 + 0x18),*(undefined8 *)(param_1 + 0xc0),\n                       *(undefined8 *)(param_1 + 200));\n    goto LAB_00128d76;\n  }" (if "if") (parenthesized_expression "(param_2 == 3)" (( "(") (binary_expression "param_2 == 3" (identifier "param_2") (== "==") (number_literal "3")) () ")")) (compound_statement "{\n    uVar3 = (**(code **)(**(long **)(param_1 + 0x18) + 0x20))\n                      (*(long **)(param_1 + 0x18),*(undefined8 *)(param_1 + 0xc0),\n                       *(undefined8 *)(param_1 + 200));\n    goto LAB_00128d76;\n  }" ({ "{") (expression_statement "uVar3 = (**(code **)(**(long **)(param_1 + 0x18) + 0x20))\n                      (*(long **)(param_1 + 0x18),*(undefined8 *)(param_1 + 0xc0),\n                       *(undefined8 *)(param_1 + 200));" (assignment_expression "uVar3 = (**(code **)(**(long **)(param_1 + 0x18) + 0x20))\n                      (*(long **)(param_1 + 0x18),*(undefined8 *)(param_1 + 0xc0),\n                       *(undefined8 *)(param_1 + 200))" (identifier "uVar3") (= "=") (call_expression "(**(code **)(**(long **)(param_1 + 0x18) + 0x20))\n                      (*(long **)(param_1 + 0x18),*(undefined8 *)(param_1 + 0xc0),\n                       *(undefined8 *)(param_1 + 200))" (parenthesized_expression "(**(code **)(**(long **)(param_1 + 0x18) + 0x20))" (( "(") (pointer_expression "**(code **)(**(long **)(param_1 + 0x18) + 0x20)" (* "*") (pointer_expression "*(code **)(**(long **)(param_1 + 0x18) + 0x20)" (* "*") (cast_expression "(code **)(**(long **)(param_1 + 0x18) + 0x20)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(**(long **)(param_1 + 0x18) + 0x20)" (( "(") (binary_expression "**(long **)(param_1 + 0x18) + 0x20" (pointer_expression "**(long **)(param_1 + 0x18)" (* "*") (pointer_expression "*(long **)(param_1 + 0x18)" (* "*") (cast_expression "(long **)(param_1 + 0x18)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")"))))) (+ "+") (number_literal "0x20")) () ")"))))) () ")")) (argument_list "(*(long **)(param_1 + 0x18),*(undefined8 *)(param_1 + 0xc0),\n                       *(undefined8 *)(param_1 + 200))" (( "(") (pointer_expression "*(long **)(param_1 + 0x18)" (* "*") (cast_expression "(long **)(param_1 + 0x18)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (, ",") (pointer_expression "*(undefined8 *)(param_1 + 0xc0)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0xc0)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc0)" (( "(") (binary_expression "param_1 + 0xc0" (identifier "param_1") (+ "+") (number_literal "0xc0")) () ")")))) (, ",") (pointer_expression "*(undefined8 *)(param_1 + 200)" (* "*") (cast_expression "(undefined8 *)(param_1 + 200)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 200)" (( "(") (binary_expression "param_1 + 200" (identifier "param_1") (+ "+") (number_literal "200")) () ")")))) () ")")))) (; ";")) (goto_statement "goto LAB_00128d76;" (goto "goto") (statement_identifier "LAB_00128d76") (; ";")) (} "}"))) (if_statement "if (param_2 == 2) {\n    if (iVar4 == 1) {\n      lVar12 = param_1 + 0x68;\n      iVar4 = FUN_001267cf(lVar12);\n      if (iVar4 < 1) {\n                    \n        __assert_fail("len > 0","proxy.c",0x2af,"proxy_http_negotiate");\n      }\n      lVar11 = FUN_00126895((long)(iVar4 + 1),1);\n      FUN_001267eb(lVar12,lVar11,iVar4);\n      *(undefined1 *)(lVar11 + iVar4) = 0;\n      iVar4 = FUN_00128918(lVar11,iVar4);\n      uVar3 = 1;\n      if (iVar4 < 0) {\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }\n      local_24c = -1;\n      iVar5 = __isoc99_sscanf(lVar11,"HTTP/%i.%i %n",local_250,local_254,&local_24c);\n      if ((iVar5 < 2) || (local_24c == -1)) {\n        (**(code **)(**(long **)(param_1 + 0x18) + 8))\n                  (*(long **)(param_1 + 0x18),"Proxy error: HTTP response was absent",8000,0);\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }\n      FUN_0012722e(lVar12,iVar4);\n      if (*(char *)(lVar11 + local_24c) != '2') {\n        *(undefined1 *)(lVar11 + iVar4) = 0;\n        if ((local_24c < iVar4) &&\n           ((cVar1 = *(char *)(lVar11 + -1 + (long)iVar4), cVar1 == '\r' || (cVar1 == '\n')))) {\n          lVar12 = (long)(iVar4 + -1);\n          do {\n            *(undefined1 *)(lVar11 + lVar12) = 0;\n            if ((int)lVar12 <= local_24c) break;\n            cVar1 = *(char *)(lVar11 + -1 + lVar12);\n            lVar12 = lVar12 + -1;\n          } while ((cVar1 == '\r') || (cVar1 == '\n'));\n        }\n        uVar13 = FUN_00126ed4("Proxy error: %s",lVar11 + local_24c);\n        (**(code **)(**(long **)(param_1 + 0x18) + 8))(*(long **)(param_1 + 0x18),uVar13,8000,0);\n        FUN_00127101(uVar13);\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }\n      FUN_00127101(lVar11);\n      *(undefined4 *)(param_1 + 0x84) = 2;\n    }\n    else if (iVar4 != 2) goto LAB_00128d56;\n    lVar12 = param_1 + 0x68;\n    iVar4 = FUN_001267cf(lVar12);\n    if (iVar4 < 1) {\n                    \n      __assert_fail("len > 0","proxy.c",0x2e5,"proxy_http_negotiate");\n    }\n    lVar9 = FUN_00126895((long)iVar4,1);\n    FUN_001267eb(lVar12,lVar9,iVar4);\n    iVar5 = FUN_00128918(lVar9,iVar4);\n    lVar11 = lVar9;\n    if (iVar5 < 0) {\n      FUN_00127101(lVar9);\n      uVar3 = 1;\n    }\n    else {\n      while (2 < iVar5) {\n        FUN_0012722e(lVar12,iVar5);\n        lVar10 = (long)iVar5;\n        iVar4 = iVar4 - iVar5;\n        iVar5 = FUN_00128918(lVar11 + lVar10,iVar4);\n        lVar11 = lVar11 + lVar10;\n      }\n      if (iVar5 == 2) {\n        FUN_0012722e(lVar12,2);\n        FUN_00128b92(param_1);\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }\n      else {\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }\n    }\n  }\n  else {\nLAB_00128d56:\n    (**(code **)(**(long **)(param_1 + 0x18) + 8))\n              (*(long **)(param_1 + 0x18),"Proxy error: unexpected proxy error",0x1f41,0);\n    uVar3 = 1;\n  }" (if "if") (parenthesized_expression "(param_2 == 2)" (( "(") (binary_expression "param_2 == 2" (identifier "param_2") (== "==") (number_literal "2")) () ")")) (compound_statement "{\n    if (iVar4 == 1) {\n      lVar12 = param_1 + 0x68;\n      iVar4 = FUN_001267cf(lVar12);\n      if (iVar4 < 1) {\n                    \n        __assert_fail("len > 0","proxy.c",0x2af,"proxy_http_negotiate");\n      }\n      lVar11 = FUN_00126895((long)(iVar4 + 1),1);\n      FUN_001267eb(lVar12,lVar11,iVar4);\n      *(undefined1 *)(lVar11 + iVar4) = 0;\n      iVar4 = FUN_00128918(lVar11,iVar4);\n      uVar3 = 1;\n      if (iVar4 < 0) {\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }\n      local_24c = -1;\n      iVar5 = __isoc99_sscanf(lVar11,"HTTP/%i.%i %n",local_250,local_254,&local_24c);\n      if ((iVar5 < 2) || (local_24c == -1)) {\n        (**(code **)(**(long **)(param_1 + 0x18) + 8))\n                  (*(long **)(param_1 + 0x18),"Proxy error: HTTP response was absent",8000,0);\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }\n      FUN_0012722e(lVar12,iVar4);\n      if (*(char *)(lVar11 + local_24c) != '2') {\n        *(undefined1 *)(lVar11 + iVar4) = 0;\n        if ((local_24c < iVar4) &&\n           ((cVar1 = *(char *)(lVar11 + -1 + (long)iVar4), cVar1 == '\r' || (cVar1 == '\n')))) {\n          lVar12 = (long)(iVar4 + -1);\n          do {\n            *(undefined1 *)(lVar11 + lVar12) = 0;\n            if ((int)lVar12 <= local_24c) break;\n            cVar1 = *(char *)(lVar11 + -1 + lVar12);\n            lVar12 = lVar12 + -1;\n          } while ((cVar1 == '\r') || (cVar1 == '\n'));\n        }\n        uVar13 = FUN_00126ed4("Proxy error: %s",lVar11 + local_24c);\n        (**(code **)(**(long **)(param_1 + 0x18) + 8))(*(long **)(param_1 + 0x18),uVar13,8000,0);\n        FUN_00127101(uVar13);\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }\n      FUN_00127101(lVar11);\n      *(undefined4 *)(param_1 + 0x84) = 2;\n    }\n    else if (iVar4 != 2) goto LAB_00128d56;\n    lVar12 = param_1 + 0x68;\n    iVar4 = FUN_001267cf(lVar12);\n    if (iVar4 < 1) {\n                    \n      __assert_fail("len > 0","proxy.c",0x2e5,"proxy_http_negotiate");\n    }\n    lVar9 = FUN_00126895((long)iVar4,1);\n    FUN_001267eb(lVar12,lVar9,iVar4);\n    iVar5 = FUN_00128918(lVar9,iVar4);\n    lVar11 = lVar9;\n    if (iVar5 < 0) {\n      FUN_00127101(lVar9);\n      uVar3 = 1;\n    }\n    else {\n      while (2 < iVar5) {\n        FUN_0012722e(lVar12,iVar5);\n        lVar10 = (long)iVar5;\n        iVar4 = iVar4 - iVar5;\n        iVar5 = FUN_00128918(lVar11 + lVar10,iVar4);\n        lVar11 = lVar11 + lVar10;\n      }\n      if (iVar5 == 2) {\n        FUN_0012722e(lVar12,2);\n        FUN_00128b92(param_1);\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }\n      else {\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }\n    }\n  }" ({ "{") (if_statement "if (iVar4 == 1) {\n      lVar12 = param_1 + 0x68;\n      iVar4 = FUN_001267cf(lVar12);\n      if (iVar4 < 1) {\n                    \n        __assert_fail("len > 0","proxy.c",0x2af,"proxy_http_negotiate");\n      }\n      lVar11 = FUN_00126895((long)(iVar4 + 1),1);\n      FUN_001267eb(lVar12,lVar11,iVar4);\n      *(undefined1 *)(lVar11 + iVar4) = 0;\n      iVar4 = FUN_00128918(lVar11,iVar4);\n      uVar3 = 1;\n      if (iVar4 < 0) {\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }\n      local_24c = -1;\n      iVar5 = __isoc99_sscanf(lVar11,"HTTP/%i.%i %n",local_250,local_254,&local_24c);\n      if ((iVar5 < 2) || (local_24c == -1)) {\n        (**(code **)(**(long **)(param_1 + 0x18) + 8))\n                  (*(long **)(param_1 + 0x18),"Proxy error: HTTP response was absent",8000,0);\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }\n      FUN_0012722e(lVar12,iVar4);\n      if (*(char *)(lVar11 + local_24c) != '2') {\n        *(undefined1 *)(lVar11 + iVar4) = 0;\n        if ((local_24c < iVar4) &&\n           ((cVar1 = *(char *)(lVar11 + -1 + (long)iVar4), cVar1 == '\r' || (cVar1 == '\n')))) {\n          lVar12 = (long)(iVar4 + -1);\n          do {\n            *(undefined1 *)(lVar11 + lVar12) = 0;\n            if ((int)lVar12 <= local_24c) break;\n            cVar1 = *(char *)(lVar11 + -1 + lVar12);\n            lVar12 = lVar12 + -1;\n          } while ((cVar1 == '\r') || (cVar1 == '\n'));\n        }\n        uVar13 = FUN_00126ed4("Proxy error: %s",lVar11 + local_24c);\n        (**(code **)(**(long **)(param_1 + 0x18) + 8))(*(long **)(param_1 + 0x18),uVar13,8000,0);\n        FUN_00127101(uVar13);\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }\n      FUN_00127101(lVar11);\n      *(undefined4 *)(param_1 + 0x84) = 2;\n    }\n    else if (iVar4 != 2) goto LAB_00128d56;" (if "if") (parenthesized_expression "(iVar4 == 1)" (( "(") (binary_expression "iVar4 == 1" (identifier "iVar4") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n      lVar12 = param_1 + 0x68;\n      iVar4 = FUN_001267cf(lVar12);\n      if (iVar4 < 1) {\n                    \n        __assert_fail("len > 0","proxy.c",0x2af,"proxy_http_negotiate");\n      }\n      lVar11 = FUN_00126895((long)(iVar4 + 1),1);\n      FUN_001267eb(lVar12,lVar11,iVar4);\n      *(undefined1 *)(lVar11 + iVar4) = 0;\n      iVar4 = FUN_00128918(lVar11,iVar4);\n      uVar3 = 1;\n      if (iVar4 < 0) {\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }\n      local_24c = -1;\n      iVar5 = __isoc99_sscanf(lVar11,"HTTP/%i.%i %n",local_250,local_254,&local_24c);\n      if ((iVar5 < 2) || (local_24c == -1)) {\n        (**(code **)(**(long **)(param_1 + 0x18) + 8))\n                  (*(long **)(param_1 + 0x18),"Proxy error: HTTP response was absent",8000,0);\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }\n      FUN_0012722e(lVar12,iVar4);\n      if (*(char *)(lVar11 + local_24c) != '2') {\n        *(undefined1 *)(lVar11 + iVar4) = 0;\n        if ((local_24c < iVar4) &&\n           ((cVar1 = *(char *)(lVar11 + -1 + (long)iVar4), cVar1 == '\r' || (cVar1 == '\n')))) {\n          lVar12 = (long)(iVar4 + -1);\n          do {\n            *(undefined1 *)(lVar11 + lVar12) = 0;\n            if ((int)lVar12 <= local_24c) break;\n            cVar1 = *(char *)(lVar11 + -1 + lVar12);\n            lVar12 = lVar12 + -1;\n          } while ((cVar1 == '\r') || (cVar1 == '\n'));\n        }\n        uVar13 = FUN_00126ed4("Proxy error: %s",lVar11 + local_24c);\n        (**(code **)(**(long **)(param_1 + 0x18) + 8))(*(long **)(param_1 + 0x18),uVar13,8000,0);\n        FUN_00127101(uVar13);\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }\n      FUN_00127101(lVar11);\n      *(undefined4 *)(param_1 + 0x84) = 2;\n    }" ({ "{") (expression_statement "lVar12 = param_1 + 0x68;" (assignment_expression "lVar12 = param_1 + 0x68" (identifier "lVar12") (= "=") (binary_expression "param_1 + 0x68" (identifier "param_1") (+ "+") (number_literal "0x68"))) (; ";")) (expression_statement "iVar4 = FUN_001267cf(lVar12);" (assignment_expression "iVar4 = FUN_001267cf(lVar12)" (identifier "iVar4") (= "=") (call_expression "FUN_001267cf(lVar12)" (identifier "FUN_001267cf") (argument_list "(lVar12)" (( "(") (identifier "lVar12") () ")")))) (; ";")) (if_statement "if (iVar4 < 1) {\n                    \n        __assert_fail("len > 0","proxy.c",0x2af,"proxy_http_negotiate");\n      }" (if "if") (parenthesized_expression "(iVar4 < 1)" (( "(") (binary_expression "iVar4 < 1" (identifier "iVar4") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n                    \n        __assert_fail("len > 0","proxy.c",0x2af,"proxy_http_negotiate");\n      }" ({ "{") (expression_statement "__assert_fail("len > 0","proxy.c",0x2af,"proxy_http_negotiate");" (call_expression "__assert_fail("len > 0","proxy.c",0x2af,"proxy_http_negotiate")" (identifier "__assert_fail") (argument_list "("len > 0","proxy.c",0x2af,"proxy_http_negotiate")" (( "(") (string_literal ""len > 0"" (" """) (string_content "len > 0") (" """)) (, ",") (string_literal ""proxy.c"" (" """) (string_content "proxy.c") (" """)) (, ",") (number_literal "0x2af") (, ",") (string_literal ""proxy_http_negotiate"" (" """) (string_content "proxy_http_negotiate") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "lVar11 = FUN_00126895((long)(iVar4 + 1),1);" (assignment_expression "lVar11 = FUN_00126895((long)(iVar4 + 1),1)" (identifier "lVar11") (= "=") (call_expression "FUN_00126895((long)(iVar4 + 1),1)" (identifier "FUN_00126895") (argument_list "((long)(iVar4 + 1),1)" (( "(") (cast_expression "(long)(iVar4 + 1)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (parenthesized_expression "(iVar4 + 1)" (( "(") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1")) () ")"))) (, ",") (number_literal "1") () ")")))) (; ";")) (expression_statement "FUN_001267eb(lVar12,lVar11,iVar4);" (call_expression "FUN_001267eb(lVar12,lVar11,iVar4)" (identifier "FUN_001267eb") (argument_list "(lVar12,lVar11,iVar4)" (( "(") (identifier "lVar12") (, ",") (identifier "lVar11") (, ",") (identifier "iVar4") () ")"))) (; ";")) (expression_statement "*(undefined1 *)(lVar11 + iVar4) = 0;" (assignment_expression "*(undefined1 *)(lVar11 + iVar4) = 0" (pointer_expression "*(undefined1 *)(lVar11 + iVar4)" (* "*") (cast_expression "(undefined1 *)(lVar11 + iVar4)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar11 + iVar4)" (( "(") (binary_expression "lVar11 + iVar4" (identifier "lVar11") (+ "+") (identifier "iVar4")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar4 = FUN_00128918(lVar11,iVar4);" (assignment_expression "iVar4 = FUN_00128918(lVar11,iVar4)" (identifier "iVar4") (= "=") (call_expression "FUN_00128918(lVar11,iVar4)" (identifier "FUN_00128918") (argument_list "(lVar11,iVar4)" (( "(") (identifier "lVar11") (, ",") (identifier "iVar4") () ")")))) (; ";")) (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" (identifier "uVar3") (= "=") (number_literal "1")) (; ";")) (if_statement "if (iVar4 < 0) {\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }" (if "if") (parenthesized_expression "(iVar4 < 0)" (( "(") (binary_expression "iVar4 < 0" (identifier "iVar4") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }" ({ "{") (expression_statement "FUN_00127101(lVar11);" (call_expression "FUN_00127101(lVar11)" (identifier "FUN_00127101") (argument_list "(lVar11)" (( "(") (identifier "lVar11") () ")"))) (; ";")) (goto_statement "goto LAB_00128d76;" (goto "goto") (statement_identifier "LAB_00128d76") (; ";")) (} "}"))) (expression_statement "local_24c = -1;" (assignment_expression "local_24c = -1" (identifier "local_24c") (= "=") (number_literal "-1")) (; ";")) (expression_statement "iVar5 = __isoc99_sscanf(lVar11,"HTTP/%i.%i %n",local_250,local_254,&local_24c);" (assignment_expression "iVar5 = __isoc99_sscanf(lVar11,"HTTP/%i.%i %n",local_250,local_254,&local_24c)" (identifier "iVar5") (= "=") (call_expression "__isoc99_sscanf(lVar11,"HTTP/%i.%i %n",local_250,local_254,&local_24c)" (identifier "__isoc99_sscanf") (argument_list "(lVar11,"HTTP/%i.%i %n",local_250,local_254,&local_24c)" (( "(") (identifier "lVar11") (, ",") (string_literal ""HTTP/%i.%i %n"" (" """) (string_content "HTTP/%i.%i %n") (" """)) (, ",") (identifier "local_250") (, ",") (identifier "local_254") (, ",") (pointer_expression "&local_24c" (& "&") (identifier "local_24c")) () ")")))) (; ";")) (if_statement "if ((iVar5 < 2) || (local_24c == -1)) {\n        (**(code **)(**(long **)(param_1 + 0x18) + 8))\n                  (*(long **)(param_1 + 0x18),"Proxy error: HTTP response was absent",8000,0);\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }" (if "if") (parenthesized_expression "((iVar5 < 2) || (local_24c == -1))" (( "(") (binary_expression "(iVar5 < 2) || (local_24c == -1)" (parenthesized_expression "(iVar5 < 2)" (( "(") (binary_expression "iVar5 < 2" (identifier "iVar5") (< "<") (number_literal "2")) () ")")) (|| "||") (parenthesized_expression "(local_24c == -1)" (( "(") (binary_expression "local_24c == -1" (identifier "local_24c") (== "==") (number_literal "-1")) () ")"))) () ")")) (compound_statement "{\n        (**(code **)(**(long **)(param_1 + 0x18) + 8))\n                  (*(long **)(param_1 + 0x18),"Proxy error: HTTP response was absent",8000,0);\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }" ({ "{") (expression_statement "(**(code **)(**(long **)(param_1 + 0x18) + 8))\n                  (*(long **)(param_1 + 0x18),"Proxy error: HTTP response was absent",8000,0);" (call_expression "(**(code **)(**(long **)(param_1 + 0x18) + 8))\n                  (*(long **)(param_1 + 0x18),"Proxy error: HTTP response was absent",8000,0)" (parenthesized_expression "(**(code **)(**(long **)(param_1 + 0x18) + 8))" (( "(") (pointer_expression "**(code **)(**(long **)(param_1 + 0x18) + 8)" (* "*") (pointer_expression "*(code **)(**(long **)(param_1 + 0x18) + 8)" (* "*") (cast_expression "(code **)(**(long **)(param_1 + 0x18) + 8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(**(long **)(param_1 + 0x18) + 8)" (( "(") (binary_expression "**(long **)(param_1 + 0x18) + 8" (pointer_expression "**(long **)(param_1 + 0x18)" (* "*") (pointer_expression "*(long **)(param_1 + 0x18)" (* "*") (cast_expression "(long **)(param_1 + 0x18)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")"))))) (+ "+") (number_literal "8")) () ")"))))) () ")")) (argument_list "(*(long **)(param_1 + 0x18),"Proxy error: HTTP response was absent",8000,0)" (( "(") (pointer_expression "*(long **)(param_1 + 0x18)" (* "*") (cast_expression "(long **)(param_1 + 0x18)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (, ",") (string_literal ""Proxy error: HTTP response was absent"" (" """) (string_content "Proxy error: HTTP response was absent") (" """)) (, ",") (number_literal "8000") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "FUN_00127101(lVar11);" (call_expression "FUN_00127101(lVar11)" (identifier "FUN_00127101") (argument_list "(lVar11)" (( "(") (identifier "lVar11") () ")"))) (; ";")) (goto_statement "goto LAB_00128d76;" (goto "goto") (statement_identifier "LAB_00128d76") (; ";")) (} "}"))) (expression_statement "FUN_0012722e(lVar12,iVar4);" (call_expression "FUN_0012722e(lVar12,iVar4)" (identifier "FUN_0012722e") (argument_list "(lVar12,iVar4)" (( "(") (identifier "lVar12") (, ",") (identifier "iVar4") () ")"))) (; ";")) (if_statement "if (*(char *)(lVar11 + local_24c) != '2') {\n        *(undefined1 *)(lVar11 + iVar4) = 0;\n        if ((local_24c < iVar4) &&\n           ((cVar1 = *(char *)(lVar11 + -1 + (long)iVar4), cVar1 == '\r' || (cVar1 == '\n')))) {\n          lVar12 = (long)(iVar4 + -1);\n          do {\n            *(undefined1 *)(lVar11 + lVar12) = 0;\n            if ((int)lVar12 <= local_24c) break;\n            cVar1 = *(char *)(lVar11 + -1 + lVar12);\n            lVar12 = lVar12 + -1;\n          } while ((cVar1 == '\r') || (cVar1 == '\n'));\n        }\n        uVar13 = FUN_00126ed4("Proxy error: %s",lVar11 + local_24c);\n        (**(code **)(**(long **)(param_1 + 0x18) + 8))(*(long **)(param_1 + 0x18),uVar13,8000,0);\n        FUN_00127101(uVar13);\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }" (if "if") (parenthesized_expression "(*(char *)(lVar11 + local_24c) != '2')" (( "(") (binary_expression "*(char *)(lVar11 + local_24c) != '2'" (pointer_expression "*(char *)(lVar11 + local_24c)" (* "*") (cast_expression "(char *)(lVar11 + local_24c)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar11 + local_24c)" (( "(") (binary_expression "lVar11 + local_24c" (identifier "lVar11") (+ "+") (identifier "local_24c")) () ")")))) (!= "!=") (char_literal "'2'" (' "'") (character "2") (' "'"))) () ")")) (compound_statement "{\n        *(undefined1 *)(lVar11 + iVar4) = 0;\n        if ((local_24c < iVar4) &&\n           ((cVar1 = *(char *)(lVar11 + -1 + (long)iVar4), cVar1 == '\r' || (cVar1 == '\n')))) {\n          lVar12 = (long)(iVar4 + -1);\n          do {\n            *(undefined1 *)(lVar11 + lVar12) = 0;\n            if ((int)lVar12 <= local_24c) break;\n            cVar1 = *(char *)(lVar11 + -1 + lVar12);\n            lVar12 = lVar12 + -1;\n          } while ((cVar1 == '\r') || (cVar1 == '\n'));\n        }\n        uVar13 = FUN_00126ed4("Proxy error: %s",lVar11 + local_24c);\n        (**(code **)(**(long **)(param_1 + 0x18) + 8))(*(long **)(param_1 + 0x18),uVar13,8000,0);\n        FUN_00127101(uVar13);\n        FUN_00127101(lVar11);\n        goto LAB_00128d76;\n      }" ({ "{") (expression_statement "*(undefined1 *)(lVar11 + iVar4) = 0;" (assignment_expression "*(undefined1 *)(lVar11 + iVar4) = 0" (pointer_expression "*(undefined1 *)(lVar11 + iVar4)" (* "*") (cast_expression "(undefined1 *)(lVar11 + iVar4)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar11 + iVar4)" (( "(") (binary_expression "lVar11 + iVar4" (identifier "lVar11") (+ "+") (identifier "iVar4")) () ")")))) (= "=") (number_literal "0")) (; ";")) (if_statement "if ((local_24c < iVar4) &&\n           ((cVar1 = *(char *)(lVar11 + -1 + (long)iVar4), cVar1 == '\r' || (cVar1 == '\n')))) {\n          lVar12 = (long)(iVar4 + -1);\n          do {\n            *(undefined1 *)(lVar11 + lVar12) = 0;\n            if ((int)lVar12 <= local_24c) break;\n            cVar1 = *(char *)(lVar11 + -1 + lVar12);\n            lVar12 = lVar12 + -1;\n          } while ((cVar1 == '\r') || (cVar1 == '\n'));\n        }" (if "if") (parenthesized_expression "((local_24c < iVar4) &&\n           ((cVar1 = *(char *)(lVar11 + -1 + (long)iVar4), cVar1 == '\r' || (cVar1 == '\n'))))" (( "(") (binary_expression "(local_24c < iVar4) &&\n           ((cVar1 = *(char *)(lVar11 + -1 + (long)iVar4), cVar1 == '\r' || (cVar1 == '\n')))" (parenthesized_expression "(local_24c < iVar4)" (( "(") (binary_expression "local_24c < iVar4" (identifier "local_24c") (< "<") (identifier "iVar4")) () ")")) (&& "&&") (parenthesized_expression "((cVar1 = *(char *)(lVar11 + -1 + (long)iVar4), cVar1 == '\r' || (cVar1 == '\n')))" (( "(") (parenthesized_expression "(cVar1 = *(char *)(lVar11 + -1 + (long)iVar4), cVar1 == '\r' || (cVar1 == '\n'))" (( "(") (comma_expression "cVar1 = *(char *)(lVar11 + -1 + (long)iVar4), cVar1 == '\r' || (cVar1 == '\n')" (assignment_expression "cVar1 = *(char *)(lVar11 + -1 + (long)iVar4)" (identifier "cVar1") (= "=") (pointer_expression "*(char *)(lVar11 + -1 + (long)iVar4)" (* "*") (cast_expression "(char *)(lVar11 + -1 + (long)iVar4)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar11 + -1 + (long)iVar4)" (( "(") (binary_expression "lVar11 + -1 + (long)iVar4" (binary_expression "lVar11 + -1" (identifier "lVar11") (+ "+") (number_literal "-1")) (+ "+") (cast_expression "(long)iVar4" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar4"))) () ")"))))) (, ",") (binary_expression "cVar1 == '\r' || (cVar1 == '\n')" (binary_expression "cVar1 == '\r'" (identifier "cVar1") (== "==") (char_literal "'\r'" (' "'") (escape_sequence "\r") (' "'"))) (|| "||") (parenthesized_expression "(cVar1 == '\n')" (( "(") (binary_expression "cVar1 == '\n'" (identifier "cVar1") (== "==") (char_literal "'\n'" (' "'") (escape_sequence "\n") (' "'"))) () ")")))) () ")")) () ")"))) () ")")) (compound_statement "{\n          lVar12 = (long)(iVar4 + -1);\n          do {\n            *(undefined1 *)(lVar11 + lVar12) = 0;\n            if ((int)lVar12 <= local_24c) break;\n            cVar1 = *(char *)(lVar11 + -1 + lVar12);\n            lVar12 = lVar12 + -1;\n          } while ((cVar1 == '\r') || (cVar1 == '\n'));\n        }" ({ "{") (expression_statement "lVar12 = (long)(iVar4 + -1);" (assignment_expression "lVar12 = (long)(iVar4 + -1)" (identifier "lVar12") (= "=") (cast_expression "(long)(iVar4 + -1)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (parenthesized_expression "(iVar4 + -1)" (( "(") (binary_expression "iVar4 + -1" (identifier "iVar4") (+ "+") (number_literal "-1")) () ")")))) (; ";")) (do_statement "do {\n            *(undefined1 *)(lVar11 + lVar12) = 0;\n            if ((int)lVar12 <= local_24c) break;\n            cVar1 = *(char *)(lVar11 + -1 + lVar12);\n            lVar12 = lVar12 + -1;\n          } while ((cVar1 == '\r') || (cVar1 == '\n'));" (do "do") (compound_statement "{\n            *(undefined1 *)(lVar11 + lVar12) = 0;\n            if ((int)lVar12 <= local_24c) break;\n            cVar1 = *(char *)(lVar11 + -1 + lVar12);\n            lVar12 = lVar12 + -1;\n          }" ({ "{") (expression_statement "*(undefined1 *)(lVar11 + lVar12) = 0;" (assignment_expression "*(undefined1 *)(lVar11 + lVar12) = 0" (pointer_expression "*(undefined1 *)(lVar11 + lVar12)" (* "*") (cast_expression "(undefined1 *)(lVar11 + lVar12)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar11 + lVar12)" (( "(") (binary_expression "lVar11 + lVar12" (identifier "lVar11") (+ "+") (identifier "lVar12")) () ")")))) (= "=") (number_literal "0")) (; ";")) (if_statement "if ((int)lVar12 <= local_24c) break;" (if "if") (parenthesized_expression "((int)lVar12 <= local_24c)" (( "(") (binary_expression "(int)lVar12 <= local_24c" (cast_expression "(int)lVar12" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "lVar12")) (<= "<=") (identifier "local_24c")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "cVar1 = *(char *)(lVar11 + -1 + lVar12);" (assignment_expression "cVar1 = *(char *)(lVar11 + -1 + lVar12)" (identifier "cVar1") (= "=") (pointer_expression "*(char *)(lVar11 + -1 + lVar12)" (* "*") (cast_expression "(char *)(lVar11 + -1 + lVar12)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar11 + -1 + lVar12)" (( "(") (binary_expression "lVar11 + -1 + lVar12" (binary_expression "lVar11 + -1" (identifier "lVar11") (+ "+") (number_literal "-1")) (+ "+") (identifier "lVar12")) () ")"))))) (; ";")) (expression_statement "lVar12 = lVar12 + -1;" (assignment_expression "lVar12 = lVar12 + -1" (identifier "lVar12") (= "=") (binary_expression "lVar12 + -1" (identifier "lVar12") (+ "+") (number_literal "-1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((cVar1 == '\r') || (cVar1 == '\n'))" (( "(") (binary_expression "(cVar1 == '\r') || (cVar1 == '\n')" (parenthesized_expression "(cVar1 == '\r')" (( "(") (binary_expression "cVar1 == '\r'" (identifier "cVar1") (== "==") (char_literal "'\r'" (' "'") (escape_sequence "\r") (' "'"))) () ")")) (|| "||") (parenthesized_expression "(cVar1 == '\n')" (( "(") (binary_expression "cVar1 == '\n'" (identifier "cVar1") (== "==") (char_literal "'\n'" (' "'") (escape_sequence "\n") (' "'"))) () ")"))) () ")")) (; ";")) (} "}"))) (expression_statement "uVar13 = FUN_00126ed4("Proxy error: %s",lVar11 + local_24c);" (assignment_expression "uVar13 = FUN_00126ed4("Proxy error: %s",lVar11 + local_24c)" (identifier "uVar13") (= "=") (call_expression "FUN_00126ed4("Proxy error: %s",lVar11 + local_24c)" (identifier "FUN_00126ed4") (argument_list "("Proxy error: %s",lVar11 + local_24c)" (( "(") (string_literal ""Proxy error: %s"" (" """) (string_content "Proxy error: %s") (" """)) (, ",") (binary_expression "lVar11 + local_24c" (identifier "lVar11") (+ "+") (identifier "local_24c")) () ")")))) (; ";")) (expression_statement "(**(code **)(**(long **)(param_1 + 0x18) + 8))(*(long **)(param_1 + 0x18),uVar13,8000,0);" (call_expression "(**(code **)(**(long **)(param_1 + 0x18) + 8))(*(long **)(param_1 + 0x18),uVar13,8000,0)" (parenthesized_expression "(**(code **)(**(long **)(param_1 + 0x18) + 8))" (( "(") (pointer_expression "**(code **)(**(long **)(param_1 + 0x18) + 8)" (* "*") (pointer_expression "*(code **)(**(long **)(param_1 + 0x18) + 8)" (* "*") (cast_expression "(code **)(**(long **)(param_1 + 0x18) + 8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(**(long **)(param_1 + 0x18) + 8)" (( "(") (binary_expression "**(long **)(param_1 + 0x18) + 8" (pointer_expression "**(long **)(param_1 + 0x18)" (* "*") (pointer_expression "*(long **)(param_1 + 0x18)" (* "*") (cast_expression "(long **)(param_1 + 0x18)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")"))))) (+ "+") (number_literal "8")) () ")"))))) () ")")) (argument_list "(*(long **)(param_1 + 0x18),uVar13,8000,0)" (( "(") (pointer_expression "*(long **)(param_1 + 0x18)" (* "*") (cast_expression "(long **)(param_1 + 0x18)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (, ",") (identifier "uVar13") (, ",") (number_literal "8000") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "FUN_00127101(uVar13);" (call_expression "FUN_00127101(uVar13)" (identifier "FUN_00127101") (argument_list "(uVar13)" (( "(") (identifier "uVar13") () ")"))) (; ";")) (expression_statement "FUN_00127101(lVar11);" (call_expression "FUN_00127101(lVar11)" (identifier "FUN_00127101") (argument_list "(lVar11)" (( "(") (identifier "lVar11") () ")"))) (; ";")) (goto_statement "goto LAB_00128d76;" (goto "goto") (statement_identifier "LAB_00128d76") (; ";")) (} "}"))) (expression_statement "FUN_00127101(lVar11);" (call_expression "FUN_00127101(lVar11)" (identifier "FUN_00127101") (argument_list "(lVar11)" (( "(") (identifier "lVar11") () ")"))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x84) = 2;" (assignment_expression "*(undefined4 *)(param_1 + 0x84) = 2" (pointer_expression "*(undefined4 *)(param_1 + 0x84)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x84)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x84)" (( "(") (binary_expression "param_1 + 0x84" (identifier "param_1") (+ "+") (number_literal "0x84")) () ")")))) (= "=") (number_literal "2")) (; ";")) (} "}")) (else_clause "else if (iVar4 != 2) goto LAB_00128d56;" (else "else") (if_statement "if (iVar4 != 2) goto LAB_00128d56;" (if "if") (parenthesized_expression "(iVar4 != 2)" (( "(") (binary_expression "iVar4 != 2" (identifier "iVar4") (!= "!=") (number_literal "2")) () ")")) (goto_statement "goto LAB_00128d56;" (goto "goto") (statement_identifier "LAB_00128d56") (; ";"))))) (expression_statement "lVar12 = param_1 + 0x68;" (assignment_expression "lVar12 = param_1 + 0x68" (identifier "lVar12") (= "=") (binary_expression "param_1 + 0x68" (identifier "param_1") (+ "+") (number_literal "0x68"))) (; ";")) (expression_statement "iVar4 = FUN_001267cf(lVar12);" (assignment_expression "iVar4 = FUN_001267cf(lVar12)" (identifier "iVar4") (= "=") (call_expression "FUN_001267cf(lVar12)" (identifier "FUN_001267cf") (argument_list "(lVar12)" (( "(") (identifier "lVar12") () ")")))) (; ";")) (if_statement "if (iVar4 < 1) {\n                    \n      __assert_fail("len > 0","proxy.c",0x2e5,"proxy_http_negotiate");\n    }" (if "if") (parenthesized_expression "(iVar4 < 1)" (( "(") (binary_expression "iVar4 < 1" (identifier "iVar4") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n                    \n      __assert_fail("len > 0","proxy.c",0x2e5,"proxy_http_negotiate");\n    }" ({ "{") (expression_statement "__assert_fail("len > 0","proxy.c",0x2e5,"proxy_http_negotiate");" (call_expression "__assert_fail("len > 0","proxy.c",0x2e5,"proxy_http_negotiate")" (identifier "__assert_fail") (argument_list "("len > 0","proxy.c",0x2e5,"proxy_http_negotiate")" (( "(") (string_literal ""len > 0"" (" """) (string_content "len > 0") (" """)) (, ",") (string_literal ""proxy.c"" (" """) (string_content "proxy.c") (" """)) (, ",") (number_literal "0x2e5") (, ",") (string_literal ""proxy_http_negotiate"" (" """) (string_content "proxy_http_negotiate") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "lVar9 = FUN_00126895((long)iVar4,1);" (assignment_expression "lVar9 = FUN_00126895((long)iVar4,1)" (identifier "lVar9") (= "=") (call_expression "FUN_00126895((long)iVar4,1)" (identifier "FUN_00126895") (argument_list "((long)iVar4,1)" (( "(") (cast_expression "(long)iVar4" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar4")) (, ",") (number_literal "1") () ")")))) (; ";")) (expression_statement "FUN_001267eb(lVar12,lVar9,iVar4);" (call_expression "FUN_001267eb(lVar12,lVar9,iVar4)" (identifier "FUN_001267eb") (argument_list "(lVar12,lVar9,iVar4)" (( "(") (identifier "lVar12") (, ",") (identifier "lVar9") (, ",") (identifier "iVar4") () ")"))) (; ";")) (expression_statement "iVar5 = FUN_00128918(lVar9,iVar4);" (assignment_expression "iVar5 = FUN_00128918(lVar9,iVar4)" (identifier "iVar5") (= "=") (call_expression "FUN_00128918(lVar9,iVar4)" (identifier "FUN_00128918") (argument_list "(lVar9,iVar4)" (( "(") (identifier "lVar9") (, ",") (identifier "iVar4") () ")")))) (; ";")) (expression_statement "lVar11 = lVar9;" (assignment_expression "lVar11 = lVar9" (identifier "lVar11") (= "=") (identifier "lVar9")) (; ";")) (if_statement "if (iVar5 < 0) {\n      FUN_00127101(lVar9);\n      uVar3 = 1;\n    }\n    else {\n      while (2 < iVar5) {\n        FUN_0012722e(lVar12,iVar5);\n        lVar10 = (long)iVar5;\n        iVar4 = iVar4 - iVar5;\n        iVar5 = FUN_00128918(lVar11 + lVar10,iVar4);\n        lVar11 = lVar11 + lVar10;\n      }\n      if (iVar5 == 2) {\n        FUN_0012722e(lVar12,2);\n        FUN_00128b92(param_1);\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }\n      else {\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }\n    }" (if "if") (parenthesized_expression "(iVar5 < 0)" (( "(") (binary_expression "iVar5 < 0" (identifier "iVar5") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n      FUN_00127101(lVar9);\n      uVar3 = 1;\n    }" ({ "{") (expression_statement "FUN_00127101(lVar9);" (call_expression "FUN_00127101(lVar9)" (identifier "FUN_00127101") (argument_list "(lVar9)" (( "(") (identifier "lVar9") () ")"))) (; ";")) (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" (identifier "uVar3") (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else {\n      while (2 < iVar5) {\n        FUN_0012722e(lVar12,iVar5);\n        lVar10 = (long)iVar5;\n        iVar4 = iVar4 - iVar5;\n        iVar5 = FUN_00128918(lVar11 + lVar10,iVar4);\n        lVar11 = lVar11 + lVar10;\n      }\n      if (iVar5 == 2) {\n        FUN_0012722e(lVar12,2);\n        FUN_00128b92(param_1);\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }\n      else {\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }\n    }" (else "else") (compound_statement "{\n      while (2 < iVar5) {\n        FUN_0012722e(lVar12,iVar5);\n        lVar10 = (long)iVar5;\n        iVar4 = iVar4 - iVar5;\n        iVar5 = FUN_00128918(lVar11 + lVar10,iVar4);\n        lVar11 = lVar11 + lVar10;\n      }\n      if (iVar5 == 2) {\n        FUN_0012722e(lVar12,2);\n        FUN_00128b92(param_1);\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }\n      else {\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }\n    }" ({ "{") (while_statement "while (2 < iVar5) {\n        FUN_0012722e(lVar12,iVar5);\n        lVar10 = (long)iVar5;\n        iVar4 = iVar4 - iVar5;\n        iVar5 = FUN_00128918(lVar11 + lVar10,iVar4);\n        lVar11 = lVar11 + lVar10;\n      }" (while "while") (parenthesized_expression "(2 < iVar5)" (( "(") (binary_expression "2 < iVar5" (number_literal "2") (< "<") (identifier "iVar5")) () ")")) (compound_statement "{\n        FUN_0012722e(lVar12,iVar5);\n        lVar10 = (long)iVar5;\n        iVar4 = iVar4 - iVar5;\n        iVar5 = FUN_00128918(lVar11 + lVar10,iVar4);\n        lVar11 = lVar11 + lVar10;\n      }" ({ "{") (expression_statement "FUN_0012722e(lVar12,iVar5);" (call_expression "FUN_0012722e(lVar12,iVar5)" (identifier "FUN_0012722e") (argument_list "(lVar12,iVar5)" (( "(") (identifier "lVar12") (, ",") (identifier "iVar5") () ")"))) (; ";")) (expression_statement "lVar10 = (long)iVar5;" (assignment_expression "lVar10 = (long)iVar5" (identifier "lVar10") (= "=") (cast_expression "(long)iVar5" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar5"))) (; ";")) (expression_statement "iVar4 = iVar4 - iVar5;" (assignment_expression "iVar4 = iVar4 - iVar5" (identifier "iVar4") (= "=") (binary_expression "iVar4 - iVar5" (identifier "iVar4") (- "-") (identifier "iVar5"))) (; ";")) (expression_statement "iVar5 = FUN_00128918(lVar11 + lVar10,iVar4);" (assignment_expression "iVar5 = FUN_00128918(lVar11 + lVar10,iVar4)" (identifier "iVar5") (= "=") (call_expression "FUN_00128918(lVar11 + lVar10,iVar4)" (identifier "FUN_00128918") (argument_list "(lVar11 + lVar10,iVar4)" (( "(") (binary_expression "lVar11 + lVar10" (identifier "lVar11") (+ "+") (identifier "lVar10")) (, ",") (identifier "iVar4") () ")")))) (; ";")) (expression_statement "lVar11 = lVar11 + lVar10;" (assignment_expression "lVar11 = lVar11 + lVar10" (identifier "lVar11") (= "=") (binary_expression "lVar11 + lVar10" (identifier "lVar11") (+ "+") (identifier "lVar10"))) (; ";")) (} "}"))) (if_statement "if (iVar5 == 2) {\n        FUN_0012722e(lVar12,2);\n        FUN_00128b92(param_1);\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }\n      else {\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }" (if "if") (parenthesized_expression "(iVar5 == 2)" (( "(") (binary_expression "iVar5 == 2" (identifier "iVar5") (== "==") (number_literal "2")) () ")")) (compound_statement "{\n        FUN_0012722e(lVar12,2);\n        FUN_00128b92(param_1);\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }" ({ "{") (expression_statement "FUN_0012722e(lVar12,2);" (call_expression "FUN_0012722e(lVar12,2)" (identifier "FUN_0012722e") (argument_list "(lVar12,2)" (( "(") (identifier "lVar12") (, ",") (number_literal "2") () ")"))) (; ";")) (expression_statement "FUN_00128b92(param_1);" (call_expression "FUN_00128b92(param_1)" (identifier "FUN_00128b92") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (expression_statement "FUN_00127101(lVar9);" (call_expression "FUN_00127101(lVar9)" (identifier "FUN_00127101") (argument_list "(lVar9)" (( "(") (identifier "lVar9") () ")"))) (; ";")) (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" (identifier "uVar3") (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else {\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }" (else "else") (compound_statement "{\n        FUN_00127101(lVar9);\n        uVar3 = 1;\n      }" ({ "{") (expression_statement "FUN_00127101(lVar9);" (call_expression "FUN_00127101(lVar9)" (identifier "FUN_00127101") (argument_list "(lVar9)" (( "(") (identifier "lVar9") () ")"))) (; ";")) (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" (identifier "uVar3") (= "=") (number_literal "1")) (; ";")) (} "}")))) (} "}")))) (} "}")) (else_clause "else {\nLAB_00128d56:\n    (**(code **)(**(long **)(param_1 + 0x18) + 8))\n              (*(long **)(param_1 + 0x18),"Proxy error: unexpected proxy error",0x1f41,0);\n    uVar3 = 1;\n  }" (else "else") (compound_statement "{\nLAB_00128d56:\n    (**(code **)(**(long **)(param_1 + 0x18) + 8))\n              (*(long **)(param_1 + 0x18),"Proxy error: unexpected proxy error",0x1f41,0);\n    uVar3 = 1;\n  }" ({ "{") (labeled_statement "LAB_00128d56:\n    (**(code **)(**(long **)(param_1 + 0x18) + 8))\n              (*(long **)(param_1 + 0x18),"Proxy error: unexpected proxy error",0x1f41,0);" (statement_identifier "LAB_00128d56") (: ":") (expression_statement "(**(code **)(**(long **)(param_1 + 0x18) + 8))\n              (*(long **)(param_1 + 0x18),"Proxy error: unexpected proxy error",0x1f41,0);" (call_expression "(**(code **)(**(long **)(param_1 + 0x18) + 8))\n              (*(long **)(param_1 + 0x18),"Proxy error: unexpected proxy error",0x1f41,0)" (parenthesized_expression "(**(code **)(**(long **)(param_1 + 0x18) + 8))" (( "(") (pointer_expression "**(code **)(**(long **)(param_1 + 0x18) + 8)" (* "*") (pointer_expression "*(code **)(**(long **)(param_1 + 0x18) + 8)" (* "*") (cast_expression "(code **)(**(long **)(param_1 + 0x18) + 8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(**(long **)(param_1 + 0x18) + 8)" (( "(") (binary_expression "**(long **)(param_1 + 0x18) + 8" (pointer_expression "**(long **)(param_1 + 0x18)" (* "*") (pointer_expression "*(long **)(param_1 + 0x18)" (* "*") (cast_expression "(long **)(param_1 + 0x18)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")"))))) (+ "+") (number_literal "8")) () ")"))))) () ")")) (argument_list "(*(long **)(param_1 + 0x18),"Proxy error: unexpected proxy error",0x1f41,0)" (( "(") (pointer_expression "*(long **)(param_1 + 0x18)" (* "*") (cast_expression "(long **)(param_1 + 0x18)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (, ",") (string_literal ""Proxy error: unexpected proxy error"" (" """) (string_content "Proxy error: unexpected proxy error") (" """)) (, ",") (number_literal "0x1f41") (, ",") (number_literal "0") () ")"))) (; ";"))) (expression_statement "uVar3 = 1;" (assignment_expression "uVar3 = 1" (identifier "uVar3") (= "=") (number_literal "1")) (; ";")) (} "}")))) (labeled_statement "LAB_00128d76:\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }" (statement_identifier "LAB_00128d76") (: ":") (if_statement "if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return uVar3;\n  }" (if "if") (parenthesized_expression "(local_40 == *(long *)(in_FS_OFFSET + 0x28))" (( "(") (binary_expression "local_40 == *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_40") (== "==") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (compound_statement "{\n    return uVar3;\n  }" ({ "{") (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}")))) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" (identifier "__stack_chk_fail") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

int function_1(type_1 p,int var_18)

{
  type_2 *pbVar1;
  char var_7;
  type_3 var_11;
  long var_27;
  int n;
  long lVar5;
  int var_2;
  int var_15;
  int var_16;
  type_3 *ptr;
  char *var_14;
  long var_5;
  char *var_6;
  type_3 *var_10;
  long var_1;
  type_4 bVar13;
  int min_ver;
  int maj_ver;
  int var_24;
  char dest [512];
  
  bVar13 = 0;
  var_27 = *(long *)(var_1 + 0x28);
  var_2 = p->state;
  if (var_2 == -1) {
    var_3(p->remote_addr,dest,0x200);
    var_14 = var_4("CONNECT %s:%i HTTP/1.1\r\nHost: %s:%i\r\n",dest,(type_5)(type_6)p->remote_port,
                       dest,(type_5)(type_6)p->remote_port);
    var_5 = -1;
    var_6 = var_14;
    do {
      if (var_5 == 0) break;
      var_5 = var_5 + -1;
      var_7 = *var_6;
      var_6 = var_6 + (type_5)bVar13 * -2 + 1;
    } while (var_7 != '\0');
    (*(*p->sub_socket)->write)(p->sub_socket,var_14,~(type_6)var_5 - 1);
    var_8(var_14);
    var_6 = var_9(p->conf,0x10);
    var_14 = var_9(p->conf,0x11);
    if ((*var_6 != '\0') || (*var_14 != '\0')) {
      ptr = (type_3 *)var_4("%s:%s",var_6,var_14);
      var_5 = -1;
      var_10 = ptr;
      do {
        if (var_5 == 0) break;
        var_5 = var_5 + -1;
        var_11 = *var_10;
        var_10 = var_10 + (type_5)bVar13 * -2 + 1;
      } while (var_11 != '\0');
      var_2 = ~(type_6)var_5 - 1;
      var_14 = (char *)var_12((long)((var_2 * 4) / 3 + 100),1);
      var_13(var_14,"Proxy-Authorization: Basic ",0x1c);
      var_5 = -1;
      var_6 = var_14;
      do {
        if (var_5 == 0) break;
        var_5 = var_5 + -1;
        var_7 = *var_6;
        var_6 = var_6 + (type_5)bVar13 * -2 + 1;
      } while (var_7 != '\0');
      var_15 = ~(type_6)var_5 - 1;
      if (0 < var_2) {
        var_6 = var_14 + var_15;
        var_16 = 0;
        var_10 = ptr;
        do {
          n = var_2 - var_16;
          if (3 < var_2 - var_16) {
            n = 3;
          }
          var_17(var_10,n,var_6);
          var_16 = var_16 + 3;
          var_15 = var_15 + 4;
          var_10 = var_10 + 3;
          var_6 = var_6 + 4;
        } while (var_16 < var_2);
      }
      var_6 = var_14 + var_15;
      var_6[0] = '\r';
      var_6[1] = '\n';
      var_6[2] = '\0';
      var_5 = -1;
      var_6 = var_14;
      do {
        if (var_5 == 0) break;
        var_5 = var_5 + -1;
        var_7 = *var_6;
        var_6 = var_6 + (type_5)bVar13 * -2 + 1;
      } while (var_7 != '\0');
      (*(*p->sub_socket)->write)(p->sub_socket,var_14,~(type_6)var_5 - 1);
      var_8(ptr);
      var_8(var_14);
    }
    (*(*p->sub_socket)->write)(p->sub_socket,"\r\n",2);
    p->state = 1;
    var_2 = 0;
    goto LAB_00128d76;
  }
  if (var_18 == 0) {
    (*(*p->plug)->closing)
              (p->plug,p->closing_error_msg,p->closing_error_code,p->closing_calling_back);
    var_2 = 0;
    goto LAB_00128d76;
  }
  if (var_18 == 1) {
    var_2 = 0;
    goto LAB_00128d76;
  }
  if (var_18 == 3) {
    var_2 = (*(*p->plug)->accepting)
                      (p->plug,p->accepting_constructor,(accept_ctx_t)(p->accepting_ctx).p);
    goto LAB_00128d76;
  }
  if (var_18 == 2) {
    if (var_2 == 1) {
      pbVar1 = &p->pending_input_data;
      var_2 = var_19(pbVar1);
      if (var_2 < 1) {
                    /* WARNING: Subroutine does not return */
        var_20("len > 0","proxy.c",0x2af,"proxy_http_negotiate");
      }
      var_6 = (char *)var_12((long)(var_2 + 1),1);
      var_21(pbVar1,var_6,var_2);
      var_6[var_2] = '\0';
      var_15 = var_22(var_6,var_2);
      var_2 = 1;
      if (var_15 < 0) {
        var_8(var_6);
        goto LAB_00128d76;
      }
      var_24 = -1;
      var_16 = var_23(var_6,"HTTP/%i.%i %n",&maj_ver,&min_ver,&var_24);
      if ((var_16 < 2) || (var_24 == -1)) {
        (*(*p->plug)->closing)(p->plug,"Proxy error: HTTP response was absent",8000,0);
        var_8(var_6);
        goto LAB_00128d76;
      }
      var_25(pbVar1,var_15);
      if (var_6[var_24] != '2') {
        var_6[var_15] = '\0';
        if ((var_24 < var_15) &&
           ((var_6[(long)var_15 + -1] == '\r' || (var_6[(long)var_15 + -1] == '\n')))) {
          var_5 = (long)(var_15 + -1);
          do {
            var_6[var_5] = '\0';
            if ((int)var_5 <= var_24) break;
            lVar5 = var_5 + -1;
            var_5 = var_5 + -1;
          } while ((var_6[lVar5] == '\r') || (var_6[lVar5] == '\n'));
        }
        var_14 = var_4("Proxy error: %s",var_6 + var_24);
        (*(*p->plug)->closing)(p->plug,var_14,8000,0);
        var_8(var_14);
        var_8(var_6);
        goto LAB_00128d76;
      }
      var_8(var_6);
      p->state = 2;
    }
    else if (var_2 != 2) goto LAB_00128d56;
    pbVar1 = &p->pending_input_data;
    var_2 = var_19(pbVar1);
    if (var_2 < 1) {
                    /* WARNING: Subroutine does not return */
      var_20("len > 0","proxy.c",0x2e5,"proxy_http_negotiate");
    }
    var_14 = (char *)var_12((long)var_2,1);
    var_21(pbVar1,var_14,var_2);
    var_15 = var_22(var_14,var_2);
    var_6 = var_14;
    if (var_15 < 0) {
      var_8(var_14);
      var_2 = 1;
    }
    else {
      while (2 < var_15) {
        var_25(pbVar1,var_15);
        var_5 = (long)var_15;
        var_2 = var_2 - var_15;
        var_15 = var_22(var_6 + var_5,var_2);
        var_6 = var_6 + var_5;
      }
      if (var_15 == 2) {
        var_25(pbVar1,2);
        var_26(p);
        var_8(var_14);
        var_2 = 1;
      }
      else {
        var_8(var_14);
        var_2 = 1;
      }
    }
  }
  else {
LAB_00128d56:
    (*(*p->plug)->closing)(p->plug,"Proxy error: unexpected proxy error",0x1f41,0);
    var_2 = 1;
  }
LAB_00128d76:
  if (var_27 == *(long *)(var_1 + 0x28)) {
    return var_2;
  }
                    /* WARNING: Subroutine does not return */
  var_28();
}


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

undefined4 MASKED(long param_1,int param_2)

{
  char cVar1;
  int iVar2;
  undefined4 uVar3;
  int iVar4;
  int iVar5;
  char *pcVar6;
  char *pcVar7;
  char *pcVar8;
  long lVar9;
  long lVar10;
  long lVar11;
  long lVar12;
  undefined8 uVar13;
  ulong uVar14;
  char *pcVar15;
  int iVar16;
  long in_FS_OFFSET;
  byte bVar17;
  undefined1 local_254 [4];
  undefined1 local_250 [4];
  int local_24c;
  undefined1 local_248 [520];
  long local_40;
  
  bVar17 = 0;
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  iVar4 = *(int *)(param_1 + 0x84);
  if (iVar4 == -1) {
    FUN_0018b9e4(*(undefined8 *)(param_1 + 0x20),local_248,0x200);
    pcVar6 = (char *)FUN_00126ed4("CONNECT %s:%i HTTP/1.1\r\nHost: %s:%i\r\n",local_248,
                                  *(undefined4 *)(param_1 + 0x28),local_248,
                                  *(undefined4 *)(param_1 + 0x28));
    uVar14 = 0xffffffffffffffff;
    pcVar7 = pcVar6;
    do {
      if (uVar14 == 0) break;
      uVar14 = uVar14 - 1;
      cVar1 = *pcVar7;
      pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;
    } while (cVar1 != '\0');
    (**(code **)(**(long **)(param_1 + 0x10) + 0x10))(*(long **)(param_1 + 0x10),pcVar6,~uVar14 - 1)
    ;
    FUN_00127101(pcVar6);
    pcVar7 = (char *)FUN_00119829(*(undefined8 *)(param_1 + 0xd0),0x10);
    pcVar6 = (char *)FUN_00119829(*(undefined8 *)(param_1 + 0xd0),0x11);
    if ((*pcVar7 != '\0') || (*pcVar6 != '\0')) {
      pcVar6 = (char *)FUN_00126ed4("%s:%s",pcVar7,pcVar6);
      lVar12 = -1;
      pcVar7 = pcVar6;
      do {
        if (lVar12 == 0) break;
        lVar12 = lVar12 + -1;
        cVar1 = *pcVar7;
        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;
      } while (cVar1 != '\0');
      iVar4 = ~(uint)lVar12 - 1;
      pcVar8 = (char *)FUN_00126895((long)((iVar4 * 4) / 3 + 100),1);
      builtin_strncpy(pcVar8,"Proxy-Authorization: Basic ",0x1c);
      lVar12 = -1;
      pcVar7 = pcVar8;
      do {
        if (lVar12 == 0) break;
        lVar12 = lVar12 + -1;
        cVar1 = *pcVar7;
        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;
      } while (cVar1 != '\0');
      iVar5 = ~(uint)lVar12 - 1;
      if (0 < iVar4) {
        pcVar15 = pcVar8 + iVar5;
        iVar16 = 0;
        pcVar7 = pcVar6;
        do {
          iVar2 = iVar4 - iVar16;
          if (3 < iVar4 - iVar16) {
            iVar2 = 3;
          }
          FUN_001265e7(pcVar7,iVar2,pcVar15);
          iVar16 = iVar16 + 3;
          iVar5 = iVar5 + 4;
          pcVar7 = pcVar7 + 3;
          pcVar15 = pcVar15 + 4;
        } while (iVar16 < iVar4);
      }
      pcVar7 = pcVar8 + iVar5;
      pcVar7[0] = '\r';
      pcVar7[1] = '\n';
      pcVar7[2] = '\0';
      uVar14 = 0xffffffffffffffff;
      pcVar7 = pcVar8;
      do {
        if (uVar14 == 0) break;
        uVar14 = uVar14 - 1;
        cVar1 = *pcVar7;
        pcVar7 = pcVar7 + (ulong)bVar17 * -2 + 1;
      } while (cVar1 != '\0');
      (**(code **)(**(long **)(param_1 + 0x10) + 0x10))
                (*(long **)(param_1 + 0x10),pcVar8,~uVar14 - 1);
      FUN_00127101(pcVar6);
      FUN_00127101(pcVar8);
    }
    (**(code **)(**(long **)(param_1 + 0x10) + 0x10))(*(long **)(param_1 + 0x10),&DAT_001bc572,2);
    *(undefined4 *)(param_1 + 0x84) = 1;
    uVar3 = 0;
    goto LAB_00128d76;
  }
  if (param_2 == 0) {
    (**(code **)(**(long **)(param_1 + 0x18) + 8))
              (*(long **)(param_1 + 0x18),*(undefined8 *)(param_1 + 0x98),
               *(undefined4 *)(param_1 + 0xa0),*(undefined4 *)(param_1 + 0xa4));
    uVar3 = 0;
    goto LAB_00128d76;
  }
  if (param_2 == 1) {
    uVar3 = 0;
    goto LAB_00128d76;
  }
  if (param_2 == 3) {
    uVar3 = (**(code **)(**(long **)(param_1 + 0x18) + 0x20))
                      (*(long **)(param_1 + 0x18),*(undefined8 *)(param_1 + 0xc0),
                       *(undefined8 *)(param_1 + 200));
    goto LAB_00128d76;
  }
  if (param_2 == 2) {
    if (iVar4 == 1) {
      lVar12 = param_1 + 0x68;
      iVar4 = FUN_001267cf(lVar12);
      if (iVar4 < 1) {
                    /* WARNING: Subroutine does not return */
        __assert_fail("len > 0","proxy.c",0x2af,"proxy_http_negotiate");
      }
      lVar11 = FUN_00126895((long)(iVar4 + 1),1);
      FUN_001267eb(lVar12,lVar11,iVar4);
      *(undefined1 *)(lVar11 + iVar4) = 0;
      iVar4 = FUN_00128918(lVar11,iVar4);
      uVar3 = 1;
      if (iVar4 < 0) {
        FUN_00127101(lVar11);
        goto LAB_00128d76;
      }
      local_24c = -1;
      iVar5 = __isoc99_sscanf(lVar11,"HTTP/%i.%i %n",local_250,local_254,&local_24c);
      if ((iVar5 < 2) || (local_24c == -1)) {
        (**(code **)(**(long **)(param_1 + 0x18) + 8))
                  (*(long **)(param_1 + 0x18),"Proxy error: HTTP response was absent",8000,0);
        FUN_00127101(lVar11);
        goto LAB_00128d76;
      }
      FUN_0012722e(lVar12,iVar4);
      if (*(char *)(lVar11 + local_24c) != '2') {
        *(undefined1 *)(lVar11 + iVar4) = 0;
        if ((local_24c < iVar4) &&
           ((cVar1 = *(char *)(lVar11 + -1 + (long)iVar4), cVar1 == '\r' || (cVar1 == '\n')))) {
          lVar12 = (long)(iVar4 + -1);
          do {
            *(undefined1 *)(lVar11 + lVar12) = 0;
            if ((int)lVar12 <= local_24c) break;
            cVar1 = *(char *)(lVar11 + -1 + lVar12);
            lVar12 = lVar12 + -1;
          } while ((cVar1 == '\r') || (cVar1 == '\n'));
        }
        uVar13 = FUN_00126ed4("Proxy error: %s",lVar11 + local_24c);
        (**(code **)(**(long **)(param_1 + 0x18) + 8))(*(long **)(param_1 + 0x18),uVar13,8000,0);
        FUN_00127101(uVar13);
        FUN_00127101(lVar11);
        goto LAB_00128d76;
      }
      FUN_00127101(lVar11);
      *(undefined4 *)(param_1 + 0x84) = 2;
    }
    else if (iVar4 != 2) goto LAB_00128d56;
    lVar12 = param_1 + 0x68;
    iVar4 = FUN_001267cf(lVar12);
    if (iVar4 < 1) {
                    /* WARNING: Subroutine does not return */
      __assert_fail("len > 0","proxy.c",0x2e5,"proxy_http_negotiate");
    }
    lVar9 = FUN_00126895((long)iVar4,1);
    FUN_001267eb(lVar12,lVar9,iVar4);
    iVar5 = FUN_00128918(lVar9,iVar4);
    lVar11 = lVar9;
    if (iVar5 < 0) {
      FUN_00127101(lVar9);
      uVar3 = 1;
    }
    else {
      while (2 < iVar5) {
        FUN_0012722e(lVar12,iVar5);
        lVar10 = (long)iVar5;
        iVar4 = iVar4 - iVar5;
        iVar5 = FUN_00128918(lVar11 + lVar10,iVar4);
        lVar11 = lVar11 + lVar10;
      }
      if (iVar5 == 2) {
        FUN_0012722e(lVar12,2);
        FUN_00128b92(param_1);
        FUN_00127101(lVar9);
        uVar3 = 1;
      }
      else {
        FUN_00127101(lVar9);
        uVar3 = 1;
      }
    }
  }
  else {
LAB_00128d56:
    (**(code **)(**(long **)(param_1 + 0x18) + 8))
              (*(long **)(param_1 + 0x18),"Proxy error: unexpected proxy error",0x1f41,0);
    uVar3 = 1;
  }
LAB_00128d76:
  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {
    return uVar3;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}

