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

Socket new_connection(SockAddr addr,char *hostname,int port,int privport,int oobinline,int nodelay,
                     int keepalive,Plug plug,Conf *conf)

{
  char *proxy_canonical_name;
  char addrbuf [256];
  
                    /* WARNING: Subroutine does not return */
  conf_get_int(conf,0xd);
}



undefined4 *
new_connection(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,
              undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 *param_8,
              undefined4 param_9)

{
  int iVar1;
  undefined4 *puVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  undefined4 *puVar5;
  int *piVar6;
  undefined *puVar7;
  undefined *puVar8;
  undefined *puVar9;
  undefined4 local_130;
  undefined1 auStack_12c [256];
  int local_2c;
  
  puVar9 = PTR___stack_chk_guard_000b0c9c;
  local_2c = *(int *)PTR___stack_chk_guard_000b0c9c;
  iVar1 = conf_get_int(param_9,0xd);
  if (iVar1 != 0) {
    iVar1 = proxy_for_destination(param_1,param_2,param_3,param_9);
    if (iVar1 != 0) {
      puVar2 = (undefined4 *)
               (*(code *)PTR_platform_new_connection_000b03c0)
                         (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9);
      if (puVar2 == (undefined4 *)0x0) {
        puVar2 = (undefined4 *)safemalloc(1,0x88);
        *puVar2 = PTR_DAT_000b0178 + -0x1158;
        uVar3 = conf_copy(param_9);
        puVar2[0x1d] = uVar3;
        puVar2[3] = param_8;
        puVar2[4] = param_1;
        puVar2[5] = param_3;
        puVar2[1] = 0;
        puVar2[0xc] = 0;
        puVar2[0x10] = 0;
        puVar2[0x12] = 0;
        bufchain_init(puVar2 + 0xd);
        bufchain_init(puVar2 + 6);
        bufchain_init(puVar2 + 9);
        puVar2[2] = 0;
        puVar2[0x11] = 0xffffffff;
        puVar2[0x13] = 0;
        iVar1 = conf_get_int(param_9,0xd);
        puVar8 = PTR_s_Present_000b0188;
        if (iVar1 == 3) {
          puVar2[0x13] = PTR_proxy_http_negotiate_000b03c8;
          puVar8 = puVar8 + -0x12c0;
        }
        else if (iVar1 == 1) {
          puVar2[0x13] = PTR_proxy_socks4_negotiate_000b03cc;
          puVar8 = puVar8 + -0x12b8;
        }
        else if (iVar1 == 2) {
          puVar2[0x13] = PTR_proxy_socks5_negotiate_000b03d0;
          puVar8 = puVar8 + -0x12b0;
        }
        else {
          if (iVar1 != 4) {
            puVar2[1] = PTR_s_Present_000b0188 + -0x12a0;
            goto LAB_000250c4;
          }
          puVar8 = PTR_s_Present_000b0188 + -0x12a8;
          puVar2[0x13] = PTR_proxy_telnet_negotiate_000b03c4;
        }
        uVar3 = conf_get_str(param_9,0xe);
        uVar4 = conf_get_int(param_9,0xf);
        uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x127c,puVar8,uVar3,uVar4,param_2,param_3);
        (**(code **)*param_8)(param_8,2,0,0,uVar3,0);
        safefree(uVar3);
        puVar5 = (undefined4 *)safemalloc(1,8);
        puVar5[1] = puVar2;
        *puVar5 = PTR_DAT_000b0178 + -0x116c;
        uVar3 = conf_get_str(param_9,0xe);
        iVar1 = conf_get_int(param_9,3);
        if (iVar1 == 1) {
          puVar7 = PTR_s_Present_000b0188 + -0x1320;
        }
        else if (iVar1 == 2) {
          puVar7 = PTR_s_Present_000b0188 + -0x1318;
        }
        else {
          puVar7 = PTR_s_Present_000b0188 + 0x2d54;
        }
        uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x12e0,uVar3,puVar7,
                          PTR_s_Present_000b0188 + -0x163c);
        (**(code **)*param_8)(param_8,2,0,0,uVar3,0);
        safefree(uVar3);
        uVar3 = conf_get_str(param_9,0xe);
        uVar4 = conf_get_int(param_9,3);
        uVar3 = (*(code *)PTR_sk_namelookup_000b03b0)(uVar3,&local_130,uVar4);
        iVar1 = (*(code *)PTR_sk_addr_error_000b0364)(uVar3);
        if (iVar1 == 0) {
          safefree(local_130);
          (*(code *)PTR_sk_getaddr_000b0208)(uVar3,auStack_12c,0x100);
          uVar4 = conf_get_int(param_9,0xf);
          uVar4 = dupprintf(PTR_s_Present_000b0188 + -0x121c,puVar8,auStack_12c,uVar4);
          (**(code **)*param_8)(param_8,2,0,0,uVar4,0);
          safefree(uVar4);
          uVar4 = conf_get_int(param_9,0xf);
          piVar6 = (int *)(*(code *)PTR_sk_new_000b03bc)
                                    (uVar3,uVar4,param_4,param_5,param_6,param_7,puVar5);
          puVar2[2] = piVar6;
          iVar1 = (**(code **)(*piVar6 + 0x1c))(piVar6);
          if (iVar1 == 0) {
            (**(code **)(*(int *)puVar2[2] + 0x18))((int *)puVar2[2],0);
            (*(code *)puVar2[0x13])(puVar2,0xffffffff);
          }
        }
        else {
          puVar2[1] = PTR_s_Present_000b0188 + -0x124c;
          safefree(puVar5);
          (*(code *)PTR_sk_addr_free_000b0368)(uVar3);
        }
      }
      goto LAB_000250c4;
    }
  }
  puVar2 = (undefined4 *)
           (*(code *)PTR_sk_new_000b03bc)(param_1,param_3,param_4,param_5,param_6,param_7,param_8);
LAB_000250c4:
  if (local_2c == *(int *)puVar9) {
    return puVar2;
  }
  puVar9 = PTR___stack_chk_fail_000b0c70;
  (*(code *)PTR___stack_chk_fail_000b0c70)();
  puVar2 = (undefined4 *)(**(code **)(puVar9 + 0x8ae38))();
  return puVar2;
}


lui gp,0x9
addiu gp,gp,0x315c
addu gp,gp,t9
addiu sp,sp,-0x160
lw t9,-0x7f3c(gp)
sw s1,0x13c(sp)
sw s0,0x138(sp)
lw s1,-0x74b4(gp)
lw s0,0x180(sp)
sw s8,0x158(sp)
or s8,a1,zero
li a1,0xd
sw gp,0x28(sp)
sw s7,0x154(sp)
or s7,a3,zero
sw s4,0x148(sp)
sw s3,0x144(sp)
or s3,a0,zero
sw s2,0x140(sp)
or a0,s0,zero
sw ra,0x15c(sp)
or s2,a2,zero
sw s6,0x150(sp)
sw s5,0x14c(sp)
lw v0,0x0(s1)
lw s4,0x17c(sp)
sw v0,0x134(sp)
bal 0x0001bca0
_nop
beq v0,zero,0x00025090
_lw gp,0x28(sp)
lw t9,-0x7d9c(gp)
or a3,s0,zero
or a2,s2,zero
or a1,s8,zero
bal 0x00024a0c
_or a0,s3,zero
bne v0,zero,0x00025104
_lw gp,0x28(sp)
lw v0,0x178(sp)
or a2,s7,zero
lw t9,-0x7d94(gp)
or a1,s2,zero
lw a3,0x170(sp)
or a0,s3,zero
sw v0,0x14(sp)
sw s4,0x18(sp)
lw v0,0x174(sp)
jalr t9
_sw v0,0x10(sp)
lw gp,0x28(sp)
or s5,v0,zero
lw a0,0x134(sp)
or v0,s5,zero
lw v1,0x0(s1)
bne a0,v1,0x00025590
_lw ra,0x15c(sp)
lw s8,0x158(sp)
lw s7,0x154(sp)
lw s6,0x150(sp)
lw s5,0x14c(sp)
lw s4,0x148(sp)
lw s3,0x144(sp)
lw s2,0x140(sp)
lw s1,0x13c(sp)
lw s0,0x138(sp)
jr ra
_addiu sp,sp,0x160
lw v0,0x178(sp)
or a3,s7,zero
lw t9,-0x7d90(gp)
or a2,s2,zero
sw s0,0x20(sp)
or a1,s8,zero
sw v0,0x18(sp)
or a0,s3,zero
lw v0,0x174(sp)
sw s4,0x1c(sp)
sw v0,0x14(sp)
lw v0,0x170(sp)
jalr t9
_sw v0,0x10(sp)
lw gp,0x28(sp)
bne v0,zero,0x000250c4
_or s5,v0,zero
lw t9,-0x7f68(gp)
li a1,0x88
bal 0x00020374
_li a0,0x1
or a0,s0,zero
lw gp,0x28(sp)
or s5,v0,zero
lw v0,-0x7fd8(gp)
lw t9,-0x7e3c(gp)
addiu v0,v0,-0x1158
bal 0x0001bc4c
_sw v0,0x0(s5)
addiu a0,s5,0x34
lw gp,0x28(sp)
sw v0,0x74(s5)
sw s4,0xc(s5)
sw s3,0x10(s5)
sw s2,0x14(s5)
sw zero,0x4(s5)
sw zero,0x30(s5)
sw zero,0x40(s5)
lw t9,-0x7e38(gp)
bal 0x000200e0
_sw zero,0x48(s5)
lw gp,0x28(sp)
lw t9,-0x7e38(gp)
bal 0x000200e0
_addiu a0,s5,0x18
lw gp,0x28(sp)
lw t9,-0x7e38(gp)
bal 0x000200e0
_addiu a0,s5,0x24
li v0,-0x1
lw gp,0x28(sp)
li a1,0xd
or a0,s0,zero
sw zero,0x8(s5)
sw v0,0x44(s5)
lw t9,-0x7f3c(gp)
bal 0x0001bca0
_sw zero,0x4c(s5)
li a0,0x3
beq v0,a0,0x00025534
_lw gp,0x28(sp)
li a0,0x1
beq v0,a0,0x00025554
_nop
li a0,0x2
beq v0,a0,0x00025574
_lw s3,-0x7fc8(gp)
li a0,0x4
bne v0,a0,0x00025584
_lw v0,-0x7fc8(gp)
lw s3,-0x7fc8(gp)
lw v0,-0x7d8c(gp)
addiu s3,s3,-0x12a8
sw v0,0x4c(s5)
lw t9,-0x7ee8(gp)
li a1,0xe
bal 0x0001bed0
_or a0,s0,zero
li a1,0xf
lw gp,0x28(sp)
or a0,s0,zero
lw t9,-0x7f3c(gp)
bal 0x0001bca0
_or s6,v0,zero
or a2,s6,zero
lw gp,0x28(sp)
or a1,s3,zero
or a3,v0,zero
sw s2,0x14(sp)
sw s8,0x10(sp)
lw a0,-0x7fc8(gp)
lw t9,-0x7f6c(gp)
bal 0x00020d18
_addiu a0,a0,-0x127c
or a3,zero,zero
lw t0,0x0(s4)
or a2,zero,zero
sw v0,0x10(sp)
li a1,0x2
sw zero,0x14(sp)
or a0,s4,zero
lw t9,0x0(t0)
jalr t9
_or s2,v0,zero
lw gp,0x28(sp)
lw t9,-0x7fa0(gp)
bal 0x000210a4
_or a0,s2,zero
li a1,0x8
lw gp,0x28(sp)
lw t9,-0x7f68(gp)
bal 0x00020374
_li a0,0x1
li a1,0xe
lw gp,0x28(sp)
or s2,v0,zero
sw s5,0x4(v0)
or a0,s0,zero
lw v0,-0x7fd8(gp)
lw t9,-0x7ee8(gp)
addiu v0,v0,-0x116c
bal 0x0001bed0
_sw v0,0x0(s2)
li a1,0x3
lw gp,0x28(sp)
or a0,s0,zero
lw t9,-0x7f3c(gp)
bal 0x0001bca0
_or s8,v0,zero
li a0,0x1
beq v0,a0,0x00025548
_lw gp,0x28(sp)
li a0,0x2
beq v0,a0,0x00025568
_nop
lw a2,-0x7fc8(gp)
addiu a2,a2,0x2d54
lw a3,-0x7fc8(gp)
or a1,s8,zero
lw a0,-0x7fc8(gp)
lw t9,-0x7f6c(gp)
addiu a3,a3,-0x163c
bal 0x00020d18
_addiu a0,a0,-0x12e0
or a3,zero,zero
lw t0,0x0(s4)
or a2,zero,zero
sw v0,0x10(sp)
li a1,0x2
sw zero,0x14(sp)
or a0,s4,zero
lw t9,0x0(t0)
jalr t9
_or s8,v0,zero
lw gp,0x28(sp)
lw t9,-0x7fa0(gp)
bal 0x000210a4
_or a0,s8,zero
li a1,0xe
lw gp,0x28(sp)
lw t9,-0x7ee8(gp)
bal 0x0001bed0
_or a0,s0,zero
li a1,0x3
lw gp,0x28(sp)
or a0,s0,zero
lw t9,-0x7f3c(gp)
bal 0x0001bca0
_or s8,v0,zero
addiu a1,sp,0x30
lw gp,0x28(sp)
or a0,s8,zero
lw t9,-0x7da0(gp)
jalr t9
_or a2,v0,zero
lw gp,0x28(sp)
or a0,v0,zero
lw t9,-0x7dec(gp)
jalr t9
_or s8,v0,zero
beq v0,zero,0x0002540c
_lw gp,0x28(sp)
lw v0,-0x7fc8(gp)
or a0,s2,zero
lw t9,-0x7fa0(gp)
addiu v0,v0,-0x124c
bal 0x000210a4
_sw v0,0x4(s5)
lw gp,0x28(sp)
lw t9,-0x7de8(gp)
jalr t9
_or a0,s8,zero
b 0x000250c4
_lw gp,0x28(sp)
lw t9,-0x7fa0(gp)
addiu s6,sp,0x34
bal 0x000210a4
_lw a0,0x30(sp)
li a2,0x100
lw gp,0x28(sp)
or a1,s6,zero
lw t9,-0x7f48(gp)
jalr t9
_or a0,s8,zero
li a1,0xf
lw gp,0x28(sp)
lw t9,-0x7f3c(gp)
bal 0x0001bca0
_or a0,s0,zero
or a1,s3,zero
lw gp,0x28(sp)
or a2,s6,zero
or a3,v0,zero
lw a0,-0x7fc8(gp)
lw t9,-0x7f6c(gp)
bal 0x00020d18
_addiu a0,a0,-0x121c
or a3,zero,zero
lw t0,0x0(s4)
or a2,zero,zero
sw v0,0x10(sp)
li a1,0x2
sw zero,0x14(sp)
or a0,s4,zero
lw t9,0x0(t0)
jalr t9
_or s3,v0,zero
lw gp,0x28(sp)
lw t9,-0x7fa0(gp)
bal 0x000210a4
_or a0,s3,zero
li a1,0xf
lw gp,0x28(sp)
lw t9,-0x7f3c(gp)
bal 0x0001bca0
_or a0,s0,zero
or a0,s8,zero
lw gp,0x28(sp)
or a1,v0,zero
lw v1,0x178(sp)
or a2,s7,zero
lw v0,0x174(sp)
lw a3,0x170(sp)
lw t9,-0x7d94(gp)
sw v1,0x14(sp)
sw s2,0x18(sp)
jalr t9
_sw v0,0x10(sp)
sw v0,0x8(s5)
or a0,v0,zero
lw v0,0x0(v0)
lw t9,0x1c(v0)
jalr t9
_nop
bne v0,zero,0x000250c4
_lw gp,0x28(sp)
lw v0,0x8(s5)
or a0,v0,zero
lw v0,0x0(v0)
lw t9,0x18(v0)
jalr t9
_or a1,zero,zero
li a1,-0x1
lw t9,0x4c(s5)
jalr t9
_or a0,s5,zero
b 0x000250c4
_lw gp,0x28(sp)
lw v0,-0x7d88(gp)
lw s3,-0x7fc8(gp)
sw v0,0x4c(s5)
b 0x0002522c
_addiu s3,s3,-0x12c0
lw a2,-0x7fc8(gp)
b 0x00025328
_addiu a2,a2,-0x1320
lw v0,-0x7d84(gp)
lw s3,-0x7fc8(gp)
sw v0,0x4c(s5)
b 0x0002522c
_addiu s3,s3,-0x12b8
lw a2,-0x7fc8(gp)
b 0x00025328
_addiu a2,a2,-0x1318
lw v0,-0x7d80(gp)
sw v0,0x4c(s5)
b 0x0002522c
_addiu s3,s3,-0x12b0
addiu v0,v0,-0x12a0
b 0x000250c4
_sw v0,0x4(s5)
lw t9,-0x74e0(gp)
jalr t9
_nop
(translation_unit "undefined4 *\nnew_connection(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n              undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 *param_8,\n              undefined4 param_9)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  int *piVar6;\n  undefined *puVar7;\n  undefined *puVar8;\n  undefined *puVar9;\n  undefined4 local_130;\n  undefined1 auStack_12c [256];\n  int local_2c;\n  \n  puVar9 = PTR___stack_chk_guard_000b0c9c;\n  local_2c = *(int *)PTR___stack_chk_guard_000b0c9c;\n  iVar1 = conf_get_int(param_9,0xd);\n  if (iVar1 != 0) {\n    iVar1 = proxy_for_destination(param_1,param_2,param_3,param_9);\n    if (iVar1 != 0) {\n      puVar2 = (undefined4 *)\n               (*(code *)PTR_platform_new_connection_000b03c0)\n                         (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9);\n      if (puVar2 == (undefined4 *)0x0) {\n        puVar2 = (undefined4 *)safemalloc(1,0x88);\n        *puVar2 = PTR_DAT_000b0178 + -0x1158;\n        uVar3 = conf_copy(param_9);\n        puVar2[0x1d] = uVar3;\n        puVar2[3] = param_8;\n        puVar2[4] = param_1;\n        puVar2[5] = param_3;\n        puVar2[1] = 0;\n        puVar2[0xc] = 0;\n        puVar2[0x10] = 0;\n        puVar2[0x12] = 0;\n        bufchain_init(puVar2 + 0xd);\n        bufchain_init(puVar2 + 6);\n        bufchain_init(puVar2 + 9);\n        puVar2[2] = 0;\n        puVar2[0x11] = 0xffffffff;\n        puVar2[0x13] = 0;\n        iVar1 = conf_get_int(param_9,0xd);\n        puVar8 = PTR_s_Present_000b0188;\n        if (iVar1 == 3) {\n          puVar2[0x13] = PTR_proxy_http_negotiate_000b03c8;\n          puVar8 = puVar8 + -0x12c0;\n        }\n        else if (iVar1 == 1) {\n          puVar2[0x13] = PTR_proxy_socks4_negotiate_000b03cc;\n          puVar8 = puVar8 + -0x12b8;\n        }\n        else if (iVar1 == 2) {\n          puVar2[0x13] = PTR_proxy_socks5_negotiate_000b03d0;\n          puVar8 = puVar8 + -0x12b0;\n        }\n        else {\n          if (iVar1 != 4) {\n            puVar2[1] = PTR_s_Present_000b0188 + -0x12a0;\n            goto LAB_000250c4;\n          }\n          puVar8 = PTR_s_Present_000b0188 + -0x12a8;\n          puVar2[0x13] = PTR_proxy_telnet_negotiate_000b03c4;\n        }\n        uVar3 = conf_get_str(param_9,0xe);\n        uVar4 = conf_get_int(param_9,0xf);\n        uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x127c,puVar8,uVar3,uVar4,param_2,param_3);\n        (**(code **)*param_8)(param_8,2,0,0,uVar3,0);\n        safefree(uVar3);\n        puVar5 = (undefined4 *)safemalloc(1,8);\n        puVar5[1] = puVar2;\n        *puVar5 = PTR_DAT_000b0178 + -0x116c;\n        uVar3 = conf_get_str(param_9,0xe);\n        iVar1 = conf_get_int(param_9,3);\n        if (iVar1 == 1) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1320;\n        }\n        else if (iVar1 == 2) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1318;\n        }\n        else {\n          puVar7 = PTR_s_Present_000b0188 + 0x2d54;\n        }\n        uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x12e0,uVar3,puVar7,\n                          PTR_s_Present_000b0188 + -0x163c);\n        (**(code **)*param_8)(param_8,2,0,0,uVar3,0);\n        safefree(uVar3);\n        uVar3 = conf_get_str(param_9,0xe);\n        uVar4 = conf_get_int(param_9,3);\n        uVar3 = (*(code *)PTR_sk_namelookup_000b03b0)(uVar3,&local_130,uVar4);\n        iVar1 = (*(code *)PTR_sk_addr_error_000b0364)(uVar3);\n        if (iVar1 == 0) {\n          safefree(local_130);\n          (*(code *)PTR_sk_getaddr_000b0208)(uVar3,auStack_12c,0x100);\n          uVar4 = conf_get_int(param_9,0xf);\n          uVar4 = dupprintf(PTR_s_Present_000b0188 + -0x121c,puVar8,auStack_12c,uVar4);\n          (**(code **)*param_8)(param_8,2,0,0,uVar4,0);\n          safefree(uVar4);\n          uVar4 = conf_get_int(param_9,0xf);\n          piVar6 = (int *)(*(code *)PTR_sk_new_000b03bc)\n                                    (uVar3,uVar4,param_4,param_5,param_6,param_7,puVar5);\n          puVar2[2] = piVar6;\n          iVar1 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n          if (iVar1 == 0) {\n            (**(code **)(*(int *)puVar2[2] + 0x18))((int *)puVar2[2],0);\n            (*(code *)puVar2[0x13])(puVar2,0xffffffff);\n          }\n        }\n        else {\n          puVar2[1] = PTR_s_Present_000b0188 + -0x124c;\n          safefree(puVar5);\n          (*(code *)PTR_sk_addr_free_000b0368)(uVar3);\n        }\n      }\n      goto LAB_000250c4;\n    }\n  }\n  puVar2 = (undefined4 *)\n           (*(code *)PTR_sk_new_000b03bc)(param_1,param_3,param_4,param_5,param_6,param_7,param_8);\nLAB_000250c4:\n  if (local_2c == *(int *)puVar9) {\n    return puVar2;\n  }\n  puVar9 = PTR___stack_chk_fail_000b0c70;\n  (*(code *)PTR___stack_chk_fail_000b0c70)();\n  puVar2 = (undefined4 *)(**(code **)(puVar9 + 0x8ae38))();\n  return puVar2;\n}\n\n" (function_definition "undefined4 *\nnew_connection(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n              undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 *param_8,\n              undefined4 param_9)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  int *piVar6;\n  undefined *puVar7;\n  undefined *puVar8;\n  undefined *puVar9;\n  undefined4 local_130;\n  undefined1 auStack_12c [256];\n  int local_2c;\n  \n  puVar9 = PTR___stack_chk_guard_000b0c9c;\n  local_2c = *(int *)PTR___stack_chk_guard_000b0c9c;\n  iVar1 = conf_get_int(param_9,0xd);\n  if (iVar1 != 0) {\n    iVar1 = proxy_for_destination(param_1,param_2,param_3,param_9);\n    if (iVar1 != 0) {\n      puVar2 = (undefined4 *)\n               (*(code *)PTR_platform_new_connection_000b03c0)\n                         (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9);\n      if (puVar2 == (undefined4 *)0x0) {\n        puVar2 = (undefined4 *)safemalloc(1,0x88);\n        *puVar2 = PTR_DAT_000b0178 + -0x1158;\n        uVar3 = conf_copy(param_9);\n        puVar2[0x1d] = uVar3;\n        puVar2[3] = param_8;\n        puVar2[4] = param_1;\n        puVar2[5] = param_3;\n        puVar2[1] = 0;\n        puVar2[0xc] = 0;\n        puVar2[0x10] = 0;\n        puVar2[0x12] = 0;\n        bufchain_init(puVar2 + 0xd);\n        bufchain_init(puVar2 + 6);\n        bufchain_init(puVar2 + 9);\n        puVar2[2] = 0;\n        puVar2[0x11] = 0xffffffff;\n        puVar2[0x13] = 0;\n        iVar1 = conf_get_int(param_9,0xd);\n        puVar8 = PTR_s_Present_000b0188;\n        if (iVar1 == 3) {\n          puVar2[0x13] = PTR_proxy_http_negotiate_000b03c8;\n          puVar8 = puVar8 + -0x12c0;\n        }\n        else if (iVar1 == 1) {\n          puVar2[0x13] = PTR_proxy_socks4_negotiate_000b03cc;\n          puVar8 = puVar8 + -0x12b8;\n        }\n        else if (iVar1 == 2) {\n          puVar2[0x13] = PTR_proxy_socks5_negotiate_000b03d0;\n          puVar8 = puVar8 + -0x12b0;\n        }\n        else {\n          if (iVar1 != 4) {\n            puVar2[1] = PTR_s_Present_000b0188 + -0x12a0;\n            goto LAB_000250c4;\n          }\n          puVar8 = PTR_s_Present_000b0188 + -0x12a8;\n          puVar2[0x13] = PTR_proxy_telnet_negotiate_000b03c4;\n        }\n        uVar3 = conf_get_str(param_9,0xe);\n        uVar4 = conf_get_int(param_9,0xf);\n        uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x127c,puVar8,uVar3,uVar4,param_2,param_3);\n        (**(code **)*param_8)(param_8,2,0,0,uVar3,0);\n        safefree(uVar3);\n        puVar5 = (undefined4 *)safemalloc(1,8);\n        puVar5[1] = puVar2;\n        *puVar5 = PTR_DAT_000b0178 + -0x116c;\n        uVar3 = conf_get_str(param_9,0xe);\n        iVar1 = conf_get_int(param_9,3);\n        if (iVar1 == 1) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1320;\n        }\n        else if (iVar1 == 2) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1318;\n        }\n        else {\n          puVar7 = PTR_s_Present_000b0188 + 0x2d54;\n        }\n        uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x12e0,uVar3,puVar7,\n                          PTR_s_Present_000b0188 + -0x163c);\n        (**(code **)*param_8)(param_8,2,0,0,uVar3,0);\n        safefree(uVar3);\n        uVar3 = conf_get_str(param_9,0xe);\n        uVar4 = conf_get_int(param_9,3);\n        uVar3 = (*(code *)PTR_sk_namelookup_000b03b0)(uVar3,&local_130,uVar4);\n        iVar1 = (*(code *)PTR_sk_addr_error_000b0364)(uVar3);\n        if (iVar1 == 0) {\n          safefree(local_130);\n          (*(code *)PTR_sk_getaddr_000b0208)(uVar3,auStack_12c,0x100);\n          uVar4 = conf_get_int(param_9,0xf);\n          uVar4 = dupprintf(PTR_s_Present_000b0188 + -0x121c,puVar8,auStack_12c,uVar4);\n          (**(code **)*param_8)(param_8,2,0,0,uVar4,0);\n          safefree(uVar4);\n          uVar4 = conf_get_int(param_9,0xf);\n          piVar6 = (int *)(*(code *)PTR_sk_new_000b03bc)\n                                    (uVar3,uVar4,param_4,param_5,param_6,param_7,puVar5);\n          puVar2[2] = piVar6;\n          iVar1 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n          if (iVar1 == 0) {\n            (**(code **)(*(int *)puVar2[2] + 0x18))((int *)puVar2[2],0);\n            (*(code *)puVar2[0x13])(puVar2,0xffffffff);\n          }\n        }\n        else {\n          puVar2[1] = PTR_s_Present_000b0188 + -0x124c;\n          safefree(puVar5);\n          (*(code *)PTR_sk_addr_free_000b0368)(uVar3);\n        }\n      }\n      goto LAB_000250c4;\n    }\n  }\n  puVar2 = (undefined4 *)\n           (*(code *)PTR_sk_new_000b03bc)(param_1,param_3,param_4,param_5,param_6,param_7,param_8);\nLAB_000250c4:\n  if (local_2c == *(int *)puVar9) {\n    return puVar2;\n  }\n  puVar9 = PTR___stack_chk_fail_000b0c70;\n  (*(code *)PTR___stack_chk_fail_000b0c70)();\n  puVar2 = (undefined4 *)(**(code **)(puVar9 + 0x8ae38))();\n  return puVar2;\n}" type_identifier (pointer_declarator "*\nnew_connection(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n              undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 *param_8,\n              undefined4 param_9)" * (function_declarator "new_connection(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n              undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 *param_8,\n              undefined4 param_9)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n              undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 *param_8,\n              undefined4 param_9)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) , (parameter_declaration "undefined4 param_7" type_identifier identifier) , (parameter_declaration "undefined4 *param_8" type_identifier (pointer_declarator "*param_8" * identifier)) , (parameter_declaration "undefined4 param_9" type_identifier identifier) )))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  int *piVar6;\n  undefined *puVar7;\n  undefined *puVar8;\n  undefined *puVar9;\n  undefined4 local_130;\n  undefined1 auStack_12c [256];\n  int local_2c;\n  \n  puVar9 = PTR___stack_chk_guard_000b0c9c;\n  local_2c = *(int *)PTR___stack_chk_guard_000b0c9c;\n  iVar1 = conf_get_int(param_9,0xd);\n  if (iVar1 != 0) {\n    iVar1 = proxy_for_destination(param_1,param_2,param_3,param_9);\n    if (iVar1 != 0) {\n      puVar2 = (undefined4 *)\n               (*(code *)PTR_platform_new_connection_000b03c0)\n                         (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9);\n      if (puVar2 == (undefined4 *)0x0) {\n        puVar2 = (undefined4 *)safemalloc(1,0x88);\n        *puVar2 = PTR_DAT_000b0178 + -0x1158;\n        uVar3 = conf_copy(param_9);\n        puVar2[0x1d] = uVar3;\n        puVar2[3] = param_8;\n        puVar2[4] = param_1;\n        puVar2[5] = param_3;\n        puVar2[1] = 0;\n        puVar2[0xc] = 0;\n        puVar2[0x10] = 0;\n        puVar2[0x12] = 0;\n        bufchain_init(puVar2 + 0xd);\n        bufchain_init(puVar2 + 6);\n        bufchain_init(puVar2 + 9);\n        puVar2[2] = 0;\n        puVar2[0x11] = 0xffffffff;\n        puVar2[0x13] = 0;\n        iVar1 = conf_get_int(param_9,0xd);\n        puVar8 = PTR_s_Present_000b0188;\n        if (iVar1 == 3) {\n          puVar2[0x13] = PTR_proxy_http_negotiate_000b03c8;\n          puVar8 = puVar8 + -0x12c0;\n        }\n        else if (iVar1 == 1) {\n          puVar2[0x13] = PTR_proxy_socks4_negotiate_000b03cc;\n          puVar8 = puVar8 + -0x12b8;\n        }\n        else if (iVar1 == 2) {\n          puVar2[0x13] = PTR_proxy_socks5_negotiate_000b03d0;\n          puVar8 = puVar8 + -0x12b0;\n        }\n        else {\n          if (iVar1 != 4) {\n            puVar2[1] = PTR_s_Present_000b0188 + -0x12a0;\n            goto LAB_000250c4;\n          }\n          puVar8 = PTR_s_Present_000b0188 + -0x12a8;\n          puVar2[0x13] = PTR_proxy_telnet_negotiate_000b03c4;\n        }\n        uVar3 = conf_get_str(param_9,0xe);\n        uVar4 = conf_get_int(param_9,0xf);\n        uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x127c,puVar8,uVar3,uVar4,param_2,param_3);\n        (**(code **)*param_8)(param_8,2,0,0,uVar3,0);\n        safefree(uVar3);\n        puVar5 = (undefined4 *)safemalloc(1,8);\n        puVar5[1] = puVar2;\n        *puVar5 = PTR_DAT_000b0178 + -0x116c;\n        uVar3 = conf_get_str(param_9,0xe);\n        iVar1 = conf_get_int(param_9,3);\n        if (iVar1 == 1) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1320;\n        }\n        else if (iVar1 == 2) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1318;\n        }\n        else {\n          puVar7 = PTR_s_Present_000b0188 + 0x2d54;\n        }\n        uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x12e0,uVar3,puVar7,\n                          PTR_s_Present_000b0188 + -0x163c);\n        (**(code **)*param_8)(param_8,2,0,0,uVar3,0);\n        safefree(uVar3);\n        uVar3 = conf_get_str(param_9,0xe);\n        uVar4 = conf_get_int(param_9,3);\n        uVar3 = (*(code *)PTR_sk_namelookup_000b03b0)(uVar3,&local_130,uVar4);\n        iVar1 = (*(code *)PTR_sk_addr_error_000b0364)(uVar3);\n        if (iVar1 == 0) {\n          safefree(local_130);\n          (*(code *)PTR_sk_getaddr_000b0208)(uVar3,auStack_12c,0x100);\n          uVar4 = conf_get_int(param_9,0xf);\n          uVar4 = dupprintf(PTR_s_Present_000b0188 + -0x121c,puVar8,auStack_12c,uVar4);\n          (**(code **)*param_8)(param_8,2,0,0,uVar4,0);\n          safefree(uVar4);\n          uVar4 = conf_get_int(param_9,0xf);\n          piVar6 = (int *)(*(code *)PTR_sk_new_000b03bc)\n                                    (uVar3,uVar4,param_4,param_5,param_6,param_7,puVar5);\n          puVar2[2] = piVar6;\n          iVar1 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n          if (iVar1 == 0) {\n            (**(code **)(*(int *)puVar2[2] + 0x18))((int *)puVar2[2],0);\n            (*(code *)puVar2[0x13])(puVar2,0xffffffff);\n          }\n        }\n        else {\n          puVar2[1] = PTR_s_Present_000b0188 + -0x124c;\n          safefree(puVar5);\n          (*(code *)PTR_sk_addr_free_000b0368)(uVar3);\n        }\n      }\n      goto LAB_000250c4;\n    }\n  }\n  puVar2 = (undefined4 *)\n           (*(code *)PTR_sk_new_000b03bc)(param_1,param_3,param_4,param_5,param_6,param_7,param_8);\nLAB_000250c4:\n  if (local_2c == *(int *)puVar9) {\n    return puVar2;\n  }\n  puVar9 = PTR___stack_chk_fail_000b0c70;\n  (*(code *)PTR___stack_chk_fail_000b0c70)();\n  puVar2 = (undefined4 *)(**(code **)(puVar9 + 0x8ae38))();\n  return puVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "undefined *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "undefined *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "undefined4 local_130;" type_identifier identifier ;) (declaration "undefined1 auStack_12c [256];" type_identifier (array_declarator "auStack_12c [256]" identifier [ number_literal ]) ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "puVar9 = PTR___stack_chk_guard_000b0c9c;" (assignment_expression "puVar9 = PTR___stack_chk_guard_000b0c9c" identifier = identifier) ;) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_000b0c9c;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_000b0c9c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000b0c9c" * (cast_expression "(int *)PTR___stack_chk_guard_000b0c9c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar1 = conf_get_int(param_9,0xd);" (assignment_expression "iVar1 = conf_get_int(param_9,0xd)" identifier = (call_expression "conf_get_int(param_9,0xd)" identifier (argument_list "(param_9,0xd)" ( identifier , number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n    iVar1 = proxy_for_destination(param_1,param_2,param_3,param_9);\n    if (iVar1 != 0) {\n      puVar2 = (undefined4 *)\n               (*(code *)PTR_platform_new_connection_000b03c0)\n                         (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9);\n      if (puVar2 == (undefined4 *)0x0) {\n        puVar2 = (undefined4 *)safemalloc(1,0x88);\n        *puVar2 = PTR_DAT_000b0178 + -0x1158;\n        uVar3 = conf_copy(param_9);\n        puVar2[0x1d] = uVar3;\n        puVar2[3] = param_8;\n        puVar2[4] = param_1;\n        puVar2[5] = param_3;\n        puVar2[1] = 0;\n        puVar2[0xc] = 0;\n        puVar2[0x10] = 0;\n        puVar2[0x12] = 0;\n        bufchain_init(puVar2 + 0xd);\n        bufchain_init(puVar2 + 6);\n        bufchain_init(puVar2 + 9);\n        puVar2[2] = 0;\n        puVar2[0x11] = 0xffffffff;\n        puVar2[0x13] = 0;\n        iVar1 = conf_get_int(param_9,0xd);\n        puVar8 = PTR_s_Present_000b0188;\n        if (iVar1 == 3) {\n          puVar2[0x13] = PTR_proxy_http_negotiate_000b03c8;\n          puVar8 = puVar8 + -0x12c0;\n        }\n        else if (iVar1 == 1) {\n          puVar2[0x13] = PTR_proxy_socks4_negotiate_000b03cc;\n          puVar8 = puVar8 + -0x12b8;\n        }\n        else if (iVar1 == 2) {\n          puVar2[0x13] = PTR_proxy_socks5_negotiate_000b03d0;\n          puVar8 = puVar8 + -0x12b0;\n        }\n        else {\n          if (iVar1 != 4) {\n            puVar2[1] = PTR_s_Present_000b0188 + -0x12a0;\n            goto LAB_000250c4;\n          }\n          puVar8 = PTR_s_Present_000b0188 + -0x12a8;\n          puVar2[0x13] = PTR_proxy_telnet_negotiate_000b03c4;\n        }\n        uVar3 = conf_get_str(param_9,0xe);\n        uVar4 = conf_get_int(param_9,0xf);\n        uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x127c,puVar8,uVar3,uVar4,param_2,param_3);\n        (**(code **)*param_8)(param_8,2,0,0,uVar3,0);\n        safefree(uVar3);\n        puVar5 = (undefined4 *)safemalloc(1,8);\n        puVar5[1] = puVar2;\n        *puVar5 = PTR_DAT_000b0178 + -0x116c;\n        uVar3 = conf_get_str(param_9,0xe);\n        iVar1 = conf_get_int(param_9,3);\n        if (iVar1 == 1) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1320;\n        }\n        else if (iVar1 == 2) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1318;\n        }\n        else {\n          puVar7 = PTR_s_Present_000b0188 + 0x2d54;\n        }\n        uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x12e0,uVar3,puVar7,\n                          PTR_s_Present_000b0188 + -0x163c);\n        (**(code **)*param_8)(param_8,2,0,0,uVar3,0);\n        safefree(uVar3);\n        uVar3 = conf_get_str(param_9,0xe);\n        uVar4 = conf_get_int(param_9,3);\n        uVar3 = (*(code *)PTR_sk_namelookup_000b03b0)(uVar3,&local_130,uVar4);\n        iVar1 = (*(code *)PTR_sk_addr_error_000b0364)(uVar3);\n        if (iVar1 == 0) {\n          safefree(local_130);\n          (*(code *)PTR_sk_getaddr_000b0208)(uVar3,auStack_12c,0x100);\n          uVar4 = conf_get_int(param_9,0xf);\n          uVar4 = dupprintf(PTR_s_Present_000b0188 + -0x121c,puVar8,auStack_12c,uVar4);\n          (**(code **)*param_8)(param_8,2,0,0,uVar4,0);\n          safefree(uVar4);\n          uVar4 = conf_get_int(param_9,0xf);\n          piVar6 = (int *)(*(code *)PTR_sk_new_000b03bc)\n                                    (uVar3,uVar4,param_4,param_5,param_6,param_7,puVar5);\n          puVar2[2] = piVar6;\n          iVar1 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n          if (iVar1 == 0) {\n            (**(code **)(*(int *)puVar2[2] + 0x18))((int *)puVar2[2],0);\n            (*(code *)puVar2[0x13])(puVar2,0xffffffff);\n          }\n        }\n        else {\n          puVar2[1] = PTR_s_Present_000b0188 + -0x124c;\n          safefree(puVar5);\n          (*(code *)PTR_sk_addr_free_000b0368)(uVar3);\n        }\n      }\n      goto LAB_000250c4;\n    }\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = proxy_for_destination(param_1,param_2,param_3,param_9);\n    if (iVar1 != 0) {\n      puVar2 = (undefined4 *)\n               (*(code *)PTR_platform_new_connection_000b03c0)\n                         (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9);\n      if (puVar2 == (undefined4 *)0x0) {\n        puVar2 = (undefined4 *)safemalloc(1,0x88);\n        *puVar2 = PTR_DAT_000b0178 + -0x1158;\n        uVar3 = conf_copy(param_9);\n        puVar2[0x1d] = uVar3;\n        puVar2[3] = param_8;\n        puVar2[4] = param_1;\n        puVar2[5] = param_3;\n        puVar2[1] = 0;\n        puVar2[0xc] = 0;\n        puVar2[0x10] = 0;\n        puVar2[0x12] = 0;\n        bufchain_init(puVar2 + 0xd);\n        bufchain_init(puVar2 + 6);\n        bufchain_init(puVar2 + 9);\n        puVar2[2] = 0;\n        puVar2[0x11] = 0xffffffff;\n        puVar2[0x13] = 0;\n        iVar1 = conf_get_int(param_9,0xd);\n        puVar8 = PTR_s_Present_000b0188;\n        if (iVar1 == 3) {\n          puVar2[0x13] = PTR_proxy_http_negotiate_000b03c8;\n          puVar8 = puVar8 + -0x12c0;\n        }\n        else if (iVar1 == 1) {\n          puVar2[0x13] = PTR_proxy_socks4_negotiate_000b03cc;\n          puVar8 = puVar8 + -0x12b8;\n        }\n        else if (iVar1 == 2) {\n          puVar2[0x13] = PTR_proxy_socks5_negotiate_000b03d0;\n          puVar8 = puVar8 + -0x12b0;\n        }\n        else {\n          if (iVar1 != 4) {\n            puVar2[1] = PTR_s_Present_000b0188 + -0x12a0;\n            goto LAB_000250c4;\n          }\n          puVar8 = PTR_s_Present_000b0188 + -0x12a8;\n          puVar2[0x13] = PTR_proxy_telnet_negotiate_000b03c4;\n        }\n        uVar3 = conf_get_str(param_9,0xe);\n        uVar4 = conf_get_int(param_9,0xf);\n        uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x127c,puVar8,uVar3,uVar4,param_2,param_3);\n        (**(code **)*param_8)(param_8,2,0,0,uVar3,0);\n        safefree(uVar3);\n        puVar5 = (undefined4 *)safemalloc(1,8);\n        puVar5[1] = puVar2;\n        *puVar5 = PTR_DAT_000b0178 + -0x116c;\n        uVar3 = conf_get_str(param_9,0xe);\n        iVar1 = conf_get_int(param_9,3);\n        if (iVar1 == 1) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1320;\n        }\n        else if (iVar1 == 2) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1318;\n        }\n        else {\n          puVar7 = PTR_s_Present_000b0188 + 0x2d54;\n        }\n        uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x12e0,uVar3,puVar7,\n                          PTR_s_Present_000b0188 + -0x163c);\n        (**(code **)*param_8)(param_8,2,0,0,uVar3,0);\n        safefree(uVar3);\n        uVar3 = conf_get_str(param_9,0xe);\n        uVar4 = conf_get_int(param_9,3);\n        uVar3 = (*(code *)PTR_sk_namelookup_000b03b0)(uVar3,&local_130,uVar4);\n        iVar1 = (*(code *)PTR_sk_addr_error_000b0364)(uVar3);\n        if (iVar1 == 0) {\n          safefree(local_130);\n          (*(code *)PTR_sk_getaddr_000b0208)(uVar3,auStack_12c,0x100);\n          uVar4 = conf_get_int(param_9,0xf);\n          uVar4 = dupprintf(PTR_s_Present_000b0188 + -0x121c,puVar8,auStack_12c,uVar4);\n          (**(code **)*param_8)(param_8,2,0,0,uVar4,0);\n          safefree(uVar4);\n          uVar4 = conf_get_int(param_9,0xf);\n          piVar6 = (int *)(*(code *)PTR_sk_new_000b03bc)\n                                    (uVar3,uVar4,param_4,param_5,param_6,param_7,puVar5);\n          puVar2[2] = piVar6;\n          iVar1 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n          if (iVar1 == 0) {\n            (**(code **)(*(int *)puVar2[2] + 0x18))((int *)puVar2[2],0);\n            (*(code *)puVar2[0x13])(puVar2,0xffffffff);\n          }\n        }\n        else {\n          puVar2[1] = PTR_s_Present_000b0188 + -0x124c;\n          safefree(puVar5);\n          (*(code *)PTR_sk_addr_free_000b0368)(uVar3);\n        }\n      }\n      goto LAB_000250c4;\n    }\n  }" { (expression_statement "iVar1 = proxy_for_destination(param_1,param_2,param_3,param_9);" (assignment_expression "iVar1 = proxy_for_destination(param_1,param_2,param_3,param_9)" identifier = (call_expression "proxy_for_destination(param_1,param_2,param_3,param_9)" identifier (argument_list "(param_1,param_2,param_3,param_9)" ( identifier , identifier , identifier , identifier )))) ;) (if_statement "if (iVar1 != 0) {\n      puVar2 = (undefined4 *)\n               (*(code *)PTR_platform_new_connection_000b03c0)\n                         (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9);\n      if (puVar2 == (undefined4 *)0x0) {\n        puVar2 = (undefined4 *)safemalloc(1,0x88);\n        *puVar2 = PTR_DAT_000b0178 + -0x1158;\n        uVar3 = conf_copy(param_9);\n        puVar2[0x1d] = uVar3;\n        puVar2[3] = param_8;\n        puVar2[4] = param_1;\n        puVar2[5] = param_3;\n        puVar2[1] = 0;\n        puVar2[0xc] = 0;\n        puVar2[0x10] = 0;\n        puVar2[0x12] = 0;\n        bufchain_init(puVar2 + 0xd);\n        bufchain_init(puVar2 + 6);\n        bufchain_init(puVar2 + 9);\n        puVar2[2] = 0;\n        puVar2[0x11] = 0xffffffff;\n        puVar2[0x13] = 0;\n        iVar1 = conf_get_int(param_9,0xd);\n        puVar8 = PTR_s_Present_000b0188;\n        if (iVar1 == 3) {\n          puVar2[0x13] = PTR_proxy_http_negotiate_000b03c8;\n          puVar8 = puVar8 + -0x12c0;\n        }\n        else if (iVar1 == 1) {\n          puVar2[0x13] = PTR_proxy_socks4_negotiate_000b03cc;\n          puVar8 = puVar8 + -0x12b8;\n        }\n        else if (iVar1 == 2) {\n          puVar2[0x13] = PTR_proxy_socks5_negotiate_000b03d0;\n          puVar8 = puVar8 + -0x12b0;\n        }\n        else {\n          if (iVar1 != 4) {\n            puVar2[1] = PTR_s_Present_000b0188 + -0x12a0;\n            goto LAB_000250c4;\n          }\n          puVar8 = PTR_s_Present_000b0188 + -0x12a8;\n          puVar2[0x13] = PTR_proxy_telnet_negotiate_000b03c4;\n        }\n        uVar3 = conf_get_str(param_9,0xe);\n        uVar4 = conf_get_int(param_9,0xf);\n        uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x127c,puVar8,uVar3,uVar4,param_2,param_3);\n        (**(code **)*param_8)(param_8,2,0,0,uVar3,0);\n        safefree(uVar3);\n        puVar5 = (undefined4 *)safemalloc(1,8);\n        puVar5[1] = puVar2;\n        *puVar5 = PTR_DAT_000b0178 + -0x116c;\n        uVar3 = conf_get_str(param_9,0xe);\n        iVar1 = conf_get_int(param_9,3);\n        if (iVar1 == 1) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1320;\n        }\n        else if (iVar1 == 2) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1318;\n        }\n        else {\n          puVar7 = PTR_s_Present_000b0188 + 0x2d54;\n        }\n        uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x12e0,uVar3,puVar7,\n                          PTR_s_Present_000b0188 + -0x163c);\n        (**(code **)*param_8)(param_8,2,0,0,uVar3,0);\n        safefree(uVar3);\n        uVar3 = conf_get_str(param_9,0xe);\n        uVar4 = conf_get_int(param_9,3);\n        uVar3 = (*(code *)PTR_sk_namelookup_000b03b0)(uVar3,&local_130,uVar4);\n        iVar1 = (*(code *)PTR_sk_addr_error_000b0364)(uVar3);\n        if (iVar1 == 0) {\n          safefree(local_130);\n          (*(code *)PTR_sk_getaddr_000b0208)(uVar3,auStack_12c,0x100);\n          uVar4 = conf_get_int(param_9,0xf);\n          uVar4 = dupprintf(PTR_s_Present_000b0188 + -0x121c,puVar8,auStack_12c,uVar4);\n          (**(code **)*param_8)(param_8,2,0,0,uVar4,0);\n          safefree(uVar4);\n          uVar4 = conf_get_int(param_9,0xf);\n          piVar6 = (int *)(*(code *)PTR_sk_new_000b03bc)\n                                    (uVar3,uVar4,param_4,param_5,param_6,param_7,puVar5);\n          puVar2[2] = piVar6;\n          iVar1 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n          if (iVar1 == 0) {\n            (**(code **)(*(int *)puVar2[2] + 0x18))((int *)puVar2[2],0);\n            (*(code *)puVar2[0x13])(puVar2,0xffffffff);\n          }\n        }\n        else {\n          puVar2[1] = PTR_s_Present_000b0188 + -0x124c;\n          safefree(puVar5);\n          (*(code *)PTR_sk_addr_free_000b0368)(uVar3);\n        }\n      }\n      goto LAB_000250c4;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      puVar2 = (undefined4 *)\n               (*(code *)PTR_platform_new_connection_000b03c0)\n                         (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9);\n      if (puVar2 == (undefined4 *)0x0) {\n        puVar2 = (undefined4 *)safemalloc(1,0x88);\n        *puVar2 = PTR_DAT_000b0178 + -0x1158;\n        uVar3 = conf_copy(param_9);\n        puVar2[0x1d] = uVar3;\n        puVar2[3] = param_8;\n        puVar2[4] = param_1;\n        puVar2[5] = param_3;\n        puVar2[1] = 0;\n        puVar2[0xc] = 0;\n        puVar2[0x10] = 0;\n        puVar2[0x12] = 0;\n        bufchain_init(puVar2 + 0xd);\n        bufchain_init(puVar2 + 6);\n        bufchain_init(puVar2 + 9);\n        puVar2[2] = 0;\n        puVar2[0x11] = 0xffffffff;\n        puVar2[0x13] = 0;\n        iVar1 = conf_get_int(param_9,0xd);\n        puVar8 = PTR_s_Present_000b0188;\n        if (iVar1 == 3) {\n          puVar2[0x13] = PTR_proxy_http_negotiate_000b03c8;\n          puVar8 = puVar8 + -0x12c0;\n        }\n        else if (iVar1 == 1) {\n          puVar2[0x13] = PTR_proxy_socks4_negotiate_000b03cc;\n          puVar8 = puVar8 + -0x12b8;\n        }\n        else if (iVar1 == 2) {\n          puVar2[0x13] = PTR_proxy_socks5_negotiate_000b03d0;\n          puVar8 = puVar8 + -0x12b0;\n        }\n        else {\n          if (iVar1 != 4) {\n            puVar2[1] = PTR_s_Present_000b0188 + -0x12a0;\n            goto LAB_000250c4;\n          }\n          puVar8 = PTR_s_Present_000b0188 + -0x12a8;\n          puVar2[0x13] = PTR_proxy_telnet_negotiate_000b03c4;\n        }\n        uVar3 = conf_get_str(param_9,0xe);\n        uVar4 = conf_get_int(param_9,0xf);\n        uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x127c,puVar8,uVar3,uVar4,param_2,param_3);\n        (**(code **)*param_8)(param_8,2,0,0,uVar3,0);\n        safefree(uVar3);\n        puVar5 = (undefined4 *)safemalloc(1,8);\n        puVar5[1] = puVar2;\n        *puVar5 = PTR_DAT_000b0178 + -0x116c;\n        uVar3 = conf_get_str(param_9,0xe);\n        iVar1 = conf_get_int(param_9,3);\n        if (iVar1 == 1) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1320;\n        }\n        else if (iVar1 == 2) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1318;\n        }\n        else {\n          puVar7 = PTR_s_Present_000b0188 + 0x2d54;\n        }\n        uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x12e0,uVar3,puVar7,\n                          PTR_s_Present_000b0188 + -0x163c);\n        (**(code **)*param_8)(param_8,2,0,0,uVar3,0);\n        safefree(uVar3);\n        uVar3 = conf_get_str(param_9,0xe);\n        uVar4 = conf_get_int(param_9,3);\n        uVar3 = (*(code *)PTR_sk_namelookup_000b03b0)(uVar3,&local_130,uVar4);\n        iVar1 = (*(code *)PTR_sk_addr_error_000b0364)(uVar3);\n        if (iVar1 == 0) {\n          safefree(local_130);\n          (*(code *)PTR_sk_getaddr_000b0208)(uVar3,auStack_12c,0x100);\n          uVar4 = conf_get_int(param_9,0xf);\n          uVar4 = dupprintf(PTR_s_Present_000b0188 + -0x121c,puVar8,auStack_12c,uVar4);\n          (**(code **)*param_8)(param_8,2,0,0,uVar4,0);\n          safefree(uVar4);\n          uVar4 = conf_get_int(param_9,0xf);\n          piVar6 = (int *)(*(code *)PTR_sk_new_000b03bc)\n                                    (uVar3,uVar4,param_4,param_5,param_6,param_7,puVar5);\n          puVar2[2] = piVar6;\n          iVar1 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n          if (iVar1 == 0) {\n            (**(code **)(*(int *)puVar2[2] + 0x18))((int *)puVar2[2],0);\n            (*(code *)puVar2[0x13])(puVar2,0xffffffff);\n          }\n        }\n        else {\n          puVar2[1] = PTR_s_Present_000b0188 + -0x124c;\n          safefree(puVar5);\n          (*(code *)PTR_sk_addr_free_000b0368)(uVar3);\n        }\n      }\n      goto LAB_000250c4;\n    }" { (expression_statement "puVar2 = (undefined4 *)\n               (*(code *)PTR_platform_new_connection_000b03c0)\n                         (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9);" (assignment_expression "puVar2 = (undefined4 *)\n               (*(code *)PTR_platform_new_connection_000b03c0)\n                         (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9)" identifier = (cast_expression "(undefined4 *)\n               (*(code *)PTR_platform_new_connection_000b03c0)\n                         (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_platform_new_connection_000b03c0)\n                         (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9)" (parenthesized_expression "(*(code *)PTR_platform_new_connection_000b03c0)" ( (pointer_expression "*(code *)PTR_platform_new_connection_000b03c0" * (cast_expression "(code *)PTR_platform_new_connection_000b03c0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier ))))) ;) (if_statement "if (puVar2 == (undefined4 *)0x0) {\n        puVar2 = (undefined4 *)safemalloc(1,0x88);\n        *puVar2 = PTR_DAT_000b0178 + -0x1158;\n        uVar3 = conf_copy(param_9);\n        puVar2[0x1d] = uVar3;\n        puVar2[3] = param_8;\n        puVar2[4] = param_1;\n        puVar2[5] = param_3;\n        puVar2[1] = 0;\n        puVar2[0xc] = 0;\n        puVar2[0x10] = 0;\n        puVar2[0x12] = 0;\n        bufchain_init(puVar2 + 0xd);\n        bufchain_init(puVar2 + 6);\n        bufchain_init(puVar2 + 9);\n        puVar2[2] = 0;\n        puVar2[0x11] = 0xffffffff;\n        puVar2[0x13] = 0;\n        iVar1 = conf_get_int(param_9,0xd);\n        puVar8 = PTR_s_Present_000b0188;\n        if (iVar1 == 3) {\n          puVar2[0x13] = PTR_proxy_http_negotiate_000b03c8;\n          puVar8 = puVar8 + -0x12c0;\n        }\n        else if (iVar1 == 1) {\n          puVar2[0x13] = PTR_proxy_socks4_negotiate_000b03cc;\n          puVar8 = puVar8 + -0x12b8;\n        }\n        else if (iVar1 == 2) {\n          puVar2[0x13] = PTR_proxy_socks5_negotiate_000b03d0;\n          puVar8 = puVar8 + -0x12b0;\n        }\n        else {\n          if (iVar1 != 4) {\n            puVar2[1] = PTR_s_Present_000b0188 + -0x12a0;\n            goto LAB_000250c4;\n          }\n          puVar8 = PTR_s_Present_000b0188 + -0x12a8;\n          puVar2[0x13] = PTR_proxy_telnet_negotiate_000b03c4;\n        }\n        uVar3 = conf_get_str(param_9,0xe);\n        uVar4 = conf_get_int(param_9,0xf);\n        uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x127c,puVar8,uVar3,uVar4,param_2,param_3);\n        (**(code **)*param_8)(param_8,2,0,0,uVar3,0);\n        safefree(uVar3);\n        puVar5 = (undefined4 *)safemalloc(1,8);\n        puVar5[1] = puVar2;\n        *puVar5 = PTR_DAT_000b0178 + -0x116c;\n        uVar3 = conf_get_str(param_9,0xe);\n        iVar1 = conf_get_int(param_9,3);\n        if (iVar1 == 1) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1320;\n        }\n        else if (iVar1 == 2) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1318;\n        }\n        else {\n          puVar7 = PTR_s_Present_000b0188 + 0x2d54;\n        }\n        uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x12e0,uVar3,puVar7,\n                          PTR_s_Present_000b0188 + -0x163c);\n        (**(code **)*param_8)(param_8,2,0,0,uVar3,0);\n        safefree(uVar3);\n        uVar3 = conf_get_str(param_9,0xe);\n        uVar4 = conf_get_int(param_9,3);\n        uVar3 = (*(code *)PTR_sk_namelookup_000b03b0)(uVar3,&local_130,uVar4);\n        iVar1 = (*(code *)PTR_sk_addr_error_000b0364)(uVar3);\n        if (iVar1 == 0) {\n          safefree(local_130);\n          (*(code *)PTR_sk_getaddr_000b0208)(uVar3,auStack_12c,0x100);\n          uVar4 = conf_get_int(param_9,0xf);\n          uVar4 = dupprintf(PTR_s_Present_000b0188 + -0x121c,puVar8,auStack_12c,uVar4);\n          (**(code **)*param_8)(param_8,2,0,0,uVar4,0);\n          safefree(uVar4);\n          uVar4 = conf_get_int(param_9,0xf);\n          piVar6 = (int *)(*(code *)PTR_sk_new_000b03bc)\n                                    (uVar3,uVar4,param_4,param_5,param_6,param_7,puVar5);\n          puVar2[2] = piVar6;\n          iVar1 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n          if (iVar1 == 0) {\n            (**(code **)(*(int *)puVar2[2] + 0x18))((int *)puVar2[2],0);\n            (*(code *)puVar2[0x13])(puVar2,0xffffffff);\n          }\n        }\n        else {\n          puVar2[1] = PTR_s_Present_000b0188 + -0x124c;\n          safefree(puVar5);\n          (*(code *)PTR_sk_addr_free_000b0368)(uVar3);\n        }\n      }" if (parenthesized_expression "(puVar2 == (undefined4 *)0x0)" ( (binary_expression "puVar2 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        puVar2 = (undefined4 *)safemalloc(1,0x88);\n        *puVar2 = PTR_DAT_000b0178 + -0x1158;\n        uVar3 = conf_copy(param_9);\n        puVar2[0x1d] = uVar3;\n        puVar2[3] = param_8;\n        puVar2[4] = param_1;\n        puVar2[5] = param_3;\n        puVar2[1] = 0;\n        puVar2[0xc] = 0;\n        puVar2[0x10] = 0;\n        puVar2[0x12] = 0;\n        bufchain_init(puVar2 + 0xd);\n        bufchain_init(puVar2 + 6);\n        bufchain_init(puVar2 + 9);\n        puVar2[2] = 0;\n        puVar2[0x11] = 0xffffffff;\n        puVar2[0x13] = 0;\n        iVar1 = conf_get_int(param_9,0xd);\n        puVar8 = PTR_s_Present_000b0188;\n        if (iVar1 == 3) {\n          puVar2[0x13] = PTR_proxy_http_negotiate_000b03c8;\n          puVar8 = puVar8 + -0x12c0;\n        }\n        else if (iVar1 == 1) {\n          puVar2[0x13] = PTR_proxy_socks4_negotiate_000b03cc;\n          puVar8 = puVar8 + -0x12b8;\n        }\n        else if (iVar1 == 2) {\n          puVar2[0x13] = PTR_proxy_socks5_negotiate_000b03d0;\n          puVar8 = puVar8 + -0x12b0;\n        }\n        else {\n          if (iVar1 != 4) {\n            puVar2[1] = PTR_s_Present_000b0188 + -0x12a0;\n            goto LAB_000250c4;\n          }\n          puVar8 = PTR_s_Present_000b0188 + -0x12a8;\n          puVar2[0x13] = PTR_proxy_telnet_negotiate_000b03c4;\n        }\n        uVar3 = conf_get_str(param_9,0xe);\n        uVar4 = conf_get_int(param_9,0xf);\n        uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x127c,puVar8,uVar3,uVar4,param_2,param_3);\n        (**(code **)*param_8)(param_8,2,0,0,uVar3,0);\n        safefree(uVar3);\n        puVar5 = (undefined4 *)safemalloc(1,8);\n        puVar5[1] = puVar2;\n        *puVar5 = PTR_DAT_000b0178 + -0x116c;\n        uVar3 = conf_get_str(param_9,0xe);\n        iVar1 = conf_get_int(param_9,3);\n        if (iVar1 == 1) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1320;\n        }\n        else if (iVar1 == 2) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1318;\n        }\n        else {\n          puVar7 = PTR_s_Present_000b0188 + 0x2d54;\n        }\n        uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x12e0,uVar3,puVar7,\n                          PTR_s_Present_000b0188 + -0x163c);\n        (**(code **)*param_8)(param_8,2,0,0,uVar3,0);\n        safefree(uVar3);\n        uVar3 = conf_get_str(param_9,0xe);\n        uVar4 = conf_get_int(param_9,3);\n        uVar3 = (*(code *)PTR_sk_namelookup_000b03b0)(uVar3,&local_130,uVar4);\n        iVar1 = (*(code *)PTR_sk_addr_error_000b0364)(uVar3);\n        if (iVar1 == 0) {\n          safefree(local_130);\n          (*(code *)PTR_sk_getaddr_000b0208)(uVar3,auStack_12c,0x100);\n          uVar4 = conf_get_int(param_9,0xf);\n          uVar4 = dupprintf(PTR_s_Present_000b0188 + -0x121c,puVar8,auStack_12c,uVar4);\n          (**(code **)*param_8)(param_8,2,0,0,uVar4,0);\n          safefree(uVar4);\n          uVar4 = conf_get_int(param_9,0xf);\n          piVar6 = (int *)(*(code *)PTR_sk_new_000b03bc)\n                                    (uVar3,uVar4,param_4,param_5,param_6,param_7,puVar5);\n          puVar2[2] = piVar6;\n          iVar1 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n          if (iVar1 == 0) {\n            (**(code **)(*(int *)puVar2[2] + 0x18))((int *)puVar2[2],0);\n            (*(code *)puVar2[0x13])(puVar2,0xffffffff);\n          }\n        }\n        else {\n          puVar2[1] = PTR_s_Present_000b0188 + -0x124c;\n          safefree(puVar5);\n          (*(code *)PTR_sk_addr_free_000b0368)(uVar3);\n        }\n      }" { (expression_statement "puVar2 = (undefined4 *)safemalloc(1,0x88);" (assignment_expression "puVar2 = (undefined4 *)safemalloc(1,0x88)" identifier = (cast_expression "(undefined4 *)safemalloc(1,0x88)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "safemalloc(1,0x88)" identifier (argument_list "(1,0x88)" ( number_literal , number_literal ))))) ;) (expression_statement "*puVar2 = PTR_DAT_000b0178 + -0x1158;" (assignment_expression "*puVar2 = PTR_DAT_000b0178 + -0x1158" (pointer_expression "*puVar2" * identifier) = (binary_expression "PTR_DAT_000b0178 + -0x1158" identifier + number_literal)) ;) (expression_statement "uVar3 = conf_copy(param_9);" (assignment_expression "uVar3 = conf_copy(param_9)" identifier = (call_expression "conf_copy(param_9)" identifier (argument_list "(param_9)" ( identifier )))) ;) (expression_statement "puVar2[0x1d] = uVar3;" (assignment_expression "puVar2[0x1d] = uVar3" (subscript_expression "puVar2[0x1d]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2[3] = param_8;" (assignment_expression "puVar2[3] = param_8" (subscript_expression "puVar2[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2[4] = param_1;" (assignment_expression "puVar2[4] = param_1" (subscript_expression "puVar2[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2[5] = param_3;" (assignment_expression "puVar2[5] = param_3" (subscript_expression "puVar2[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2[1] = 0;" (assignment_expression "puVar2[1] = 0" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[0xc] = 0;" (assignment_expression "puVar2[0xc] = 0" (subscript_expression "puVar2[0xc]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[0x10] = 0;" (assignment_expression "puVar2[0x10] = 0" (subscript_expression "puVar2[0x10]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[0x12] = 0;" (assignment_expression "puVar2[0x12] = 0" (subscript_expression "puVar2[0x12]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "bufchain_init(puVar2 + 0xd);" (call_expression "bufchain_init(puVar2 + 0xd)" identifier (argument_list "(puVar2 + 0xd)" ( (binary_expression "puVar2 + 0xd" identifier + number_literal) ))) ;) (expression_statement "bufchain_init(puVar2 + 6);" (call_expression "bufchain_init(puVar2 + 6)" identifier (argument_list "(puVar2 + 6)" ( (binary_expression "puVar2 + 6" identifier + number_literal) ))) ;) (expression_statement "bufchain_init(puVar2 + 9);" (call_expression "bufchain_init(puVar2 + 9)" identifier (argument_list "(puVar2 + 9)" ( (binary_expression "puVar2 + 9" identifier + number_literal) ))) ;) (expression_statement "puVar2[2] = 0;" (assignment_expression "puVar2[2] = 0" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[0x11] = 0xffffffff;" (assignment_expression "puVar2[0x11] = 0xffffffff" (subscript_expression "puVar2[0x11]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[0x13] = 0;" (assignment_expression "puVar2[0x13] = 0" (subscript_expression "puVar2[0x13]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar1 = conf_get_int(param_9,0xd);" (assignment_expression "iVar1 = conf_get_int(param_9,0xd)" identifier = (call_expression "conf_get_int(param_9,0xd)" identifier (argument_list "(param_9,0xd)" ( identifier , number_literal )))) ;) (expression_statement "puVar8 = PTR_s_Present_000b0188;" (assignment_expression "puVar8 = PTR_s_Present_000b0188" identifier = identifier) ;) (if_statement "if (iVar1 == 3) {\n          puVar2[0x13] = PTR_proxy_http_negotiate_000b03c8;\n          puVar8 = puVar8 + -0x12c0;\n        }\n        else if (iVar1 == 1) {\n          puVar2[0x13] = PTR_proxy_socks4_negotiate_000b03cc;\n          puVar8 = puVar8 + -0x12b8;\n        }\n        else if (iVar1 == 2) {\n          puVar2[0x13] = PTR_proxy_socks5_negotiate_000b03d0;\n          puVar8 = puVar8 + -0x12b0;\n        }\n        else {\n          if (iVar1 != 4) {\n            puVar2[1] = PTR_s_Present_000b0188 + -0x12a0;\n            goto LAB_000250c4;\n          }\n          puVar8 = PTR_s_Present_000b0188 + -0x12a8;\n          puVar2[0x13] = PTR_proxy_telnet_negotiate_000b03c4;\n        }" if (parenthesized_expression "(iVar1 == 3)" ( (binary_expression "iVar1 == 3" identifier == number_literal) )) (compound_statement "{\n          puVar2[0x13] = PTR_proxy_http_negotiate_000b03c8;\n          puVar8 = puVar8 + -0x12c0;\n        }" { (expression_statement "puVar2[0x13] = PTR_proxy_http_negotiate_000b03c8;" (assignment_expression "puVar2[0x13] = PTR_proxy_http_negotiate_000b03c8" (subscript_expression "puVar2[0x13]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar8 = puVar8 + -0x12c0;" (assignment_expression "puVar8 = puVar8 + -0x12c0" identifier = (binary_expression "puVar8 + -0x12c0" identifier + number_literal)) ;) }) (else_clause "else if (iVar1 == 1) {\n          puVar2[0x13] = PTR_proxy_socks4_negotiate_000b03cc;\n          puVar8 = puVar8 + -0x12b8;\n        }\n        else if (iVar1 == 2) {\n          puVar2[0x13] = PTR_proxy_socks5_negotiate_000b03d0;\n          puVar8 = puVar8 + -0x12b0;\n        }\n        else {\n          if (iVar1 != 4) {\n            puVar2[1] = PTR_s_Present_000b0188 + -0x12a0;\n            goto LAB_000250c4;\n          }\n          puVar8 = PTR_s_Present_000b0188 + -0x12a8;\n          puVar2[0x13] = PTR_proxy_telnet_negotiate_000b03c4;\n        }" else (if_statement "if (iVar1 == 1) {\n          puVar2[0x13] = PTR_proxy_socks4_negotiate_000b03cc;\n          puVar8 = puVar8 + -0x12b8;\n        }\n        else if (iVar1 == 2) {\n          puVar2[0x13] = PTR_proxy_socks5_negotiate_000b03d0;\n          puVar8 = puVar8 + -0x12b0;\n        }\n        else {\n          if (iVar1 != 4) {\n            puVar2[1] = PTR_s_Present_000b0188 + -0x12a0;\n            goto LAB_000250c4;\n          }\n          puVar8 = PTR_s_Present_000b0188 + -0x12a8;\n          puVar2[0x13] = PTR_proxy_telnet_negotiate_000b03c4;\n        }" if (parenthesized_expression "(iVar1 == 1)" ( (binary_expression "iVar1 == 1" identifier == number_literal) )) (compound_statement "{\n          puVar2[0x13] = PTR_proxy_socks4_negotiate_000b03cc;\n          puVar8 = puVar8 + -0x12b8;\n        }" { (expression_statement "puVar2[0x13] = PTR_proxy_socks4_negotiate_000b03cc;" (assignment_expression "puVar2[0x13] = PTR_proxy_socks4_negotiate_000b03cc" (subscript_expression "puVar2[0x13]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar8 = puVar8 + -0x12b8;" (assignment_expression "puVar8 = puVar8 + -0x12b8" identifier = (binary_expression "puVar8 + -0x12b8" identifier + number_literal)) ;) }) (else_clause "else if (iVar1 == 2) {\n          puVar2[0x13] = PTR_proxy_socks5_negotiate_000b03d0;\n          puVar8 = puVar8 + -0x12b0;\n        }\n        else {\n          if (iVar1 != 4) {\n            puVar2[1] = PTR_s_Present_000b0188 + -0x12a0;\n            goto LAB_000250c4;\n          }\n          puVar8 = PTR_s_Present_000b0188 + -0x12a8;\n          puVar2[0x13] = PTR_proxy_telnet_negotiate_000b03c4;\n        }" else (if_statement "if (iVar1 == 2) {\n          puVar2[0x13] = PTR_proxy_socks5_negotiate_000b03d0;\n          puVar8 = puVar8 + -0x12b0;\n        }\n        else {\n          if (iVar1 != 4) {\n            puVar2[1] = PTR_s_Present_000b0188 + -0x12a0;\n            goto LAB_000250c4;\n          }\n          puVar8 = PTR_s_Present_000b0188 + -0x12a8;\n          puVar2[0x13] = PTR_proxy_telnet_negotiate_000b03c4;\n        }" if (parenthesized_expression "(iVar1 == 2)" ( (binary_expression "iVar1 == 2" identifier == number_literal) )) (compound_statement "{\n          puVar2[0x13] = PTR_proxy_socks5_negotiate_000b03d0;\n          puVar8 = puVar8 + -0x12b0;\n        }" { (expression_statement "puVar2[0x13] = PTR_proxy_socks5_negotiate_000b03d0;" (assignment_expression "puVar2[0x13] = PTR_proxy_socks5_negotiate_000b03d0" (subscript_expression "puVar2[0x13]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar8 = puVar8 + -0x12b0;" (assignment_expression "puVar8 = puVar8 + -0x12b0" identifier = (binary_expression "puVar8 + -0x12b0" identifier + number_literal)) ;) }) (else_clause "else {\n          if (iVar1 != 4) {\n            puVar2[1] = PTR_s_Present_000b0188 + -0x12a0;\n            goto LAB_000250c4;\n          }\n          puVar8 = PTR_s_Present_000b0188 + -0x12a8;\n          puVar2[0x13] = PTR_proxy_telnet_negotiate_000b03c4;\n        }" else (compound_statement "{\n          if (iVar1 != 4) {\n            puVar2[1] = PTR_s_Present_000b0188 + -0x12a0;\n            goto LAB_000250c4;\n          }\n          puVar8 = PTR_s_Present_000b0188 + -0x12a8;\n          puVar2[0x13] = PTR_proxy_telnet_negotiate_000b03c4;\n        }" { (if_statement "if (iVar1 != 4) {\n            puVar2[1] = PTR_s_Present_000b0188 + -0x12a0;\n            goto LAB_000250c4;\n          }" if (parenthesized_expression "(iVar1 != 4)" ( (binary_expression "iVar1 != 4" identifier != number_literal) )) (compound_statement "{\n            puVar2[1] = PTR_s_Present_000b0188 + -0x12a0;\n            goto LAB_000250c4;\n          }" { (expression_statement "puVar2[1] = PTR_s_Present_000b0188 + -0x12a0;" (assignment_expression "puVar2[1] = PTR_s_Present_000b0188 + -0x12a0" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = (binary_expression "PTR_s_Present_000b0188 + -0x12a0" identifier + number_literal)) ;) (goto_statement "goto LAB_000250c4;" goto statement_identifier ;) })) (expression_statement "puVar8 = PTR_s_Present_000b0188 + -0x12a8;" (assignment_expression "puVar8 = PTR_s_Present_000b0188 + -0x12a8" identifier = (binary_expression "PTR_s_Present_000b0188 + -0x12a8" identifier + number_literal)) ;) (expression_statement "puVar2[0x13] = PTR_proxy_telnet_negotiate_000b03c4;" (assignment_expression "puVar2[0x13] = PTR_proxy_telnet_negotiate_000b03c4" (subscript_expression "puVar2[0x13]" identifier [ number_literal ]) = identifier) ;) }))))))) (expression_statement "uVar3 = conf_get_str(param_9,0xe);" (assignment_expression "uVar3 = conf_get_str(param_9,0xe)" identifier = (call_expression "conf_get_str(param_9,0xe)" identifier (argument_list "(param_9,0xe)" ( identifier , number_literal )))) ;) (expression_statement "uVar4 = conf_get_int(param_9,0xf);" (assignment_expression "uVar4 = conf_get_int(param_9,0xf)" identifier = (call_expression "conf_get_int(param_9,0xf)" identifier (argument_list "(param_9,0xf)" ( identifier , number_literal )))) ;) (expression_statement "uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x127c,puVar8,uVar3,uVar4,param_2,param_3);" (assignment_expression "uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x127c,puVar8,uVar3,uVar4,param_2,param_3)" identifier = (call_expression "dupprintf(PTR_s_Present_000b0188 + -0x127c,puVar8,uVar3,uVar4,param_2,param_3)" identifier (argument_list "(PTR_s_Present_000b0188 + -0x127c,puVar8,uVar3,uVar4,param_2,param_3)" ( (binary_expression "PTR_s_Present_000b0188 + -0x127c" identifier + number_literal) , identifier , identifier , identifier , identifier , identifier )))) ;) (expression_statement "(**(code **)*param_8)(param_8,2,0,0,uVar3,0);" (call_expression "(**(code **)*param_8)(param_8,2,0,0,uVar3,0)" (parenthesized_expression "(**(code **)*param_8)" ( (pointer_expression "**(code **)*param_8" * (pointer_expression "*(code **)*param_8" * (cast_expression "(code **)*param_8" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "*param_8" * identifier)))) )) (argument_list "(param_8,2,0,0,uVar3,0)" ( identifier , number_literal , number_literal , number_literal , identifier , number_literal ))) ;) (expression_statement "safefree(uVar3);" (call_expression "safefree(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) (expression_statement "puVar5 = (undefined4 *)safemalloc(1,8);" (assignment_expression "puVar5 = (undefined4 *)safemalloc(1,8)" identifier = (cast_expression "(undefined4 *)safemalloc(1,8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "safemalloc(1,8)" identifier (argument_list "(1,8)" ( number_literal , number_literal ))))) ;) (expression_statement "puVar5[1] = puVar2;" (assignment_expression "puVar5[1] = puVar2" (subscript_expression "puVar5[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*puVar5 = PTR_DAT_000b0178 + -0x116c;" (assignment_expression "*puVar5 = PTR_DAT_000b0178 + -0x116c" (pointer_expression "*puVar5" * identifier) = (binary_expression "PTR_DAT_000b0178 + -0x116c" identifier + number_literal)) ;) (expression_statement "uVar3 = conf_get_str(param_9,0xe);" (assignment_expression "uVar3 = conf_get_str(param_9,0xe)" identifier = (call_expression "conf_get_str(param_9,0xe)" identifier (argument_list "(param_9,0xe)" ( identifier , number_literal )))) ;) (expression_statement "iVar1 = conf_get_int(param_9,3);" (assignment_expression "iVar1 = conf_get_int(param_9,3)" identifier = (call_expression "conf_get_int(param_9,3)" identifier (argument_list "(param_9,3)" ( identifier , number_literal )))) ;) (if_statement "if (iVar1 == 1) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1320;\n        }\n        else if (iVar1 == 2) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1318;\n        }\n        else {\n          puVar7 = PTR_s_Present_000b0188 + 0x2d54;\n        }" if (parenthesized_expression "(iVar1 == 1)" ( (binary_expression "iVar1 == 1" identifier == number_literal) )) (compound_statement "{\n          puVar7 = PTR_s_Present_000b0188 + -0x1320;\n        }" { (expression_statement "puVar7 = PTR_s_Present_000b0188 + -0x1320;" (assignment_expression "puVar7 = PTR_s_Present_000b0188 + -0x1320" identifier = (binary_expression "PTR_s_Present_000b0188 + -0x1320" identifier + number_literal)) ;) }) (else_clause "else if (iVar1 == 2) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1318;\n        }\n        else {\n          puVar7 = PTR_s_Present_000b0188 + 0x2d54;\n        }" else (if_statement "if (iVar1 == 2) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1318;\n        }\n        else {\n          puVar7 = PTR_s_Present_000b0188 + 0x2d54;\n        }" if (parenthesized_expression "(iVar1 == 2)" ( (binary_expression "iVar1 == 2" identifier == number_literal) )) (compound_statement "{\n          puVar7 = PTR_s_Present_000b0188 + -0x1318;\n        }" { (expression_statement "puVar7 = PTR_s_Present_000b0188 + -0x1318;" (assignment_expression "puVar7 = PTR_s_Present_000b0188 + -0x1318" identifier = (binary_expression "PTR_s_Present_000b0188 + -0x1318" identifier + number_literal)) ;) }) (else_clause "else {\n          puVar7 = PTR_s_Present_000b0188 + 0x2d54;\n        }" else (compound_statement "{\n          puVar7 = PTR_s_Present_000b0188 + 0x2d54;\n        }" { (expression_statement "puVar7 = PTR_s_Present_000b0188 + 0x2d54;" (assignment_expression "puVar7 = PTR_s_Present_000b0188 + 0x2d54" identifier = (binary_expression "PTR_s_Present_000b0188 + 0x2d54" identifier + number_literal)) ;) }))))) (expression_statement "uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x12e0,uVar3,puVar7,\n                          PTR_s_Present_000b0188 + -0x163c);" (assignment_expression "uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x12e0,uVar3,puVar7,\n                          PTR_s_Present_000b0188 + -0x163c)" identifier = (call_expression "dupprintf(PTR_s_Present_000b0188 + -0x12e0,uVar3,puVar7,\n                          PTR_s_Present_000b0188 + -0x163c)" identifier (argument_list "(PTR_s_Present_000b0188 + -0x12e0,uVar3,puVar7,\n                          PTR_s_Present_000b0188 + -0x163c)" ( (binary_expression "PTR_s_Present_000b0188 + -0x12e0" identifier + number_literal) , identifier , identifier , (binary_expression "PTR_s_Present_000b0188 + -0x163c" identifier + number_literal) )))) ;) (expression_statement "(**(code **)*param_8)(param_8,2,0,0,uVar3,0);" (call_expression "(**(code **)*param_8)(param_8,2,0,0,uVar3,0)" (parenthesized_expression "(**(code **)*param_8)" ( (pointer_expression "**(code **)*param_8" * (pointer_expression "*(code **)*param_8" * (cast_expression "(code **)*param_8" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "*param_8" * identifier)))) )) (argument_list "(param_8,2,0,0,uVar3,0)" ( identifier , number_literal , number_literal , number_literal , identifier , number_literal ))) ;) (expression_statement "safefree(uVar3);" (call_expression "safefree(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) (expression_statement "uVar3 = conf_get_str(param_9,0xe);" (assignment_expression "uVar3 = conf_get_str(param_9,0xe)" identifier = (call_expression "conf_get_str(param_9,0xe)" identifier (argument_list "(param_9,0xe)" ( identifier , number_literal )))) ;) (expression_statement "uVar4 = conf_get_int(param_9,3);" (assignment_expression "uVar4 = conf_get_int(param_9,3)" identifier = (call_expression "conf_get_int(param_9,3)" identifier (argument_list "(param_9,3)" ( identifier , number_literal )))) ;) (expression_statement "uVar3 = (*(code *)PTR_sk_namelookup_000b03b0)(uVar3,&local_130,uVar4);" (assignment_expression "uVar3 = (*(code *)PTR_sk_namelookup_000b03b0)(uVar3,&local_130,uVar4)" identifier = (call_expression "(*(code *)PTR_sk_namelookup_000b03b0)(uVar3,&local_130,uVar4)" (parenthesized_expression "(*(code *)PTR_sk_namelookup_000b03b0)" ( (pointer_expression "*(code *)PTR_sk_namelookup_000b03b0" * (cast_expression "(code *)PTR_sk_namelookup_000b03b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar3,&local_130,uVar4)" ( identifier , (pointer_expression "&local_130" & identifier) , identifier )))) ;) (expression_statement "iVar1 = (*(code *)PTR_sk_addr_error_000b0364)(uVar3);" (assignment_expression "iVar1 = (*(code *)PTR_sk_addr_error_000b0364)(uVar3)" identifier = (call_expression "(*(code *)PTR_sk_addr_error_000b0364)(uVar3)" (parenthesized_expression "(*(code *)PTR_sk_addr_error_000b0364)" ( (pointer_expression "*(code *)PTR_sk_addr_error_000b0364" * (cast_expression "(code *)PTR_sk_addr_error_000b0364" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar3)" ( identifier )))) ;) (if_statement "if (iVar1 == 0) {\n          safefree(local_130);\n          (*(code *)PTR_sk_getaddr_000b0208)(uVar3,auStack_12c,0x100);\n          uVar4 = conf_get_int(param_9,0xf);\n          uVar4 = dupprintf(PTR_s_Present_000b0188 + -0x121c,puVar8,auStack_12c,uVar4);\n          (**(code **)*param_8)(param_8,2,0,0,uVar4,0);\n          safefree(uVar4);\n          uVar4 = conf_get_int(param_9,0xf);\n          piVar6 = (int *)(*(code *)PTR_sk_new_000b03bc)\n                                    (uVar3,uVar4,param_4,param_5,param_6,param_7,puVar5);\n          puVar2[2] = piVar6;\n          iVar1 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n          if (iVar1 == 0) {\n            (**(code **)(*(int *)puVar2[2] + 0x18))((int *)puVar2[2],0);\n            (*(code *)puVar2[0x13])(puVar2,0xffffffff);\n          }\n        }\n        else {\n          puVar2[1] = PTR_s_Present_000b0188 + -0x124c;\n          safefree(puVar5);\n          (*(code *)PTR_sk_addr_free_000b0368)(uVar3);\n        }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n          safefree(local_130);\n          (*(code *)PTR_sk_getaddr_000b0208)(uVar3,auStack_12c,0x100);\n          uVar4 = conf_get_int(param_9,0xf);\n          uVar4 = dupprintf(PTR_s_Present_000b0188 + -0x121c,puVar8,auStack_12c,uVar4);\n          (**(code **)*param_8)(param_8,2,0,0,uVar4,0);\n          safefree(uVar4);\n          uVar4 = conf_get_int(param_9,0xf);\n          piVar6 = (int *)(*(code *)PTR_sk_new_000b03bc)\n                                    (uVar3,uVar4,param_4,param_5,param_6,param_7,puVar5);\n          puVar2[2] = piVar6;\n          iVar1 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n          if (iVar1 == 0) {\n            (**(code **)(*(int *)puVar2[2] + 0x18))((int *)puVar2[2],0);\n            (*(code *)puVar2[0x13])(puVar2,0xffffffff);\n          }\n        }" { (expression_statement "safefree(local_130);" (call_expression "safefree(local_130)" identifier (argument_list "(local_130)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_sk_getaddr_000b0208)(uVar3,auStack_12c,0x100);" (call_expression "(*(code *)PTR_sk_getaddr_000b0208)(uVar3,auStack_12c,0x100)" (parenthesized_expression "(*(code *)PTR_sk_getaddr_000b0208)" ( (pointer_expression "*(code *)PTR_sk_getaddr_000b0208" * (cast_expression "(code *)PTR_sk_getaddr_000b0208" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar3,auStack_12c,0x100)" ( identifier , identifier , number_literal ))) ;) (expression_statement "uVar4 = conf_get_int(param_9,0xf);" (assignment_expression "uVar4 = conf_get_int(param_9,0xf)" identifier = (call_expression "conf_get_int(param_9,0xf)" identifier (argument_list "(param_9,0xf)" ( identifier , number_literal )))) ;) (expression_statement "uVar4 = dupprintf(PTR_s_Present_000b0188 + -0x121c,puVar8,auStack_12c,uVar4);" (assignment_expression "uVar4 = dupprintf(PTR_s_Present_000b0188 + -0x121c,puVar8,auStack_12c,uVar4)" identifier = (call_expression "dupprintf(PTR_s_Present_000b0188 + -0x121c,puVar8,auStack_12c,uVar4)" identifier (argument_list "(PTR_s_Present_000b0188 + -0x121c,puVar8,auStack_12c,uVar4)" ( (binary_expression "PTR_s_Present_000b0188 + -0x121c" identifier + number_literal) , identifier , identifier , identifier )))) ;) (expression_statement "(**(code **)*param_8)(param_8,2,0,0,uVar4,0);" (call_expression "(**(code **)*param_8)(param_8,2,0,0,uVar4,0)" (parenthesized_expression "(**(code **)*param_8)" ( (pointer_expression "**(code **)*param_8" * (pointer_expression "*(code **)*param_8" * (cast_expression "(code **)*param_8" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "*param_8" * identifier)))) )) (argument_list "(param_8,2,0,0,uVar4,0)" ( identifier , number_literal , number_literal , number_literal , identifier , number_literal ))) ;) (expression_statement "safefree(uVar4);" (call_expression "safefree(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) (expression_statement "uVar4 = conf_get_int(param_9,0xf);" (assignment_expression "uVar4 = conf_get_int(param_9,0xf)" identifier = (call_expression "conf_get_int(param_9,0xf)" identifier (argument_list "(param_9,0xf)" ( identifier , number_literal )))) ;) (expression_statement "piVar6 = (int *)(*(code *)PTR_sk_new_000b03bc)\n                                    (uVar3,uVar4,param_4,param_5,param_6,param_7,puVar5);" (assignment_expression "piVar6 = (int *)(*(code *)PTR_sk_new_000b03bc)\n                                    (uVar3,uVar4,param_4,param_5,param_6,param_7,puVar5)" identifier = (cast_expression "(int *)(*(code *)PTR_sk_new_000b03bc)\n                                    (uVar3,uVar4,param_4,param_5,param_6,param_7,puVar5)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_sk_new_000b03bc)\n                                    (uVar3,uVar4,param_4,param_5,param_6,param_7,puVar5)" (parenthesized_expression "(*(code *)PTR_sk_new_000b03bc)" ( (pointer_expression "*(code *)PTR_sk_new_000b03bc" * (cast_expression "(code *)PTR_sk_new_000b03bc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar3,uVar4,param_4,param_5,param_6,param_7,puVar5)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier ))))) ;) (expression_statement "puVar2[2] = piVar6;" (assignment_expression "puVar2[2] = piVar6" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar1 = (**(code **)(*piVar6 + 0x1c))(piVar6);" (assignment_expression "iVar1 = (**(code **)(*piVar6 + 0x1c))(piVar6)" identifier = (call_expression "(**(code **)(*piVar6 + 0x1c))(piVar6)" (parenthesized_expression "(**(code **)(*piVar6 + 0x1c))" ( (pointer_expression "**(code **)(*piVar6 + 0x1c)" * (pointer_expression "*(code **)(*piVar6 + 0x1c)" * (cast_expression "(code **)(*piVar6 + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar6 + 0x1c)" ( (binary_expression "*piVar6 + 0x1c" (pointer_expression "*piVar6" * identifier) + number_literal) ))))) )) (argument_list "(piVar6)" ( identifier )))) ;) (if_statement "if (iVar1 == 0) {\n            (**(code **)(*(int *)puVar2[2] + 0x18))((int *)puVar2[2],0);\n            (*(code *)puVar2[0x13])(puVar2,0xffffffff);\n          }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n            (**(code **)(*(int *)puVar2[2] + 0x18))((int *)puVar2[2],0);\n            (*(code *)puVar2[0x13])(puVar2,0xffffffff);\n          }" { (expression_statement "(**(code **)(*(int *)puVar2[2] + 0x18))((int *)puVar2[2],0);" (call_expression "(**(code **)(*(int *)puVar2[2] + 0x18))((int *)puVar2[2],0)" (parenthesized_expression "(**(code **)(*(int *)puVar2[2] + 0x18))" ( (pointer_expression "**(code **)(*(int *)puVar2[2] + 0x18)" * (pointer_expression "*(code **)(*(int *)puVar2[2] + 0x18)" * (cast_expression "(code **)(*(int *)puVar2[2] + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)puVar2[2] + 0x18)" ( (binary_expression "*(int *)puVar2[2] + 0x18" (pointer_expression "*(int *)puVar2[2]" * (cast_expression "(int *)puVar2[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar2[2]" identifier [ number_literal ]))) + number_literal) ))))) )) (argument_list "((int *)puVar2[2],0)" ( (cast_expression "(int *)puVar2[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar2[2]" identifier [ number_literal ])) , number_literal ))) ;) (expression_statement "(*(code *)puVar2[0x13])(puVar2,0xffffffff);" (call_expression "(*(code *)puVar2[0x13])(puVar2,0xffffffff)" (parenthesized_expression "(*(code *)puVar2[0x13])" ( (pointer_expression "*(code *)puVar2[0x13]" * (cast_expression "(code *)puVar2[0x13]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar2[0x13]" identifier [ number_literal ]))) )) (argument_list "(puVar2,0xffffffff)" ( identifier , number_literal ))) ;) })) }) (else_clause "else {\n          puVar2[1] = PTR_s_Present_000b0188 + -0x124c;\n          safefree(puVar5);\n          (*(code *)PTR_sk_addr_free_000b0368)(uVar3);\n        }" else (compound_statement "{\n          puVar2[1] = PTR_s_Present_000b0188 + -0x124c;\n          safefree(puVar5);\n          (*(code *)PTR_sk_addr_free_000b0368)(uVar3);\n        }" { (expression_statement "puVar2[1] = PTR_s_Present_000b0188 + -0x124c;" (assignment_expression "puVar2[1] = PTR_s_Present_000b0188 + -0x124c" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = (binary_expression "PTR_s_Present_000b0188 + -0x124c" identifier + number_literal)) ;) (expression_statement "safefree(puVar5);" (call_expression "safefree(puVar5)" identifier (argument_list "(puVar5)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_sk_addr_free_000b0368)(uVar3);" (call_expression "(*(code *)PTR_sk_addr_free_000b0368)(uVar3)" (parenthesized_expression "(*(code *)PTR_sk_addr_free_000b0368)" ( (pointer_expression "*(code *)PTR_sk_addr_free_000b0368" * (cast_expression "(code *)PTR_sk_addr_free_000b0368" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar3)" ( identifier ))) ;) }))) })) (goto_statement "goto LAB_000250c4;" goto statement_identifier ;) })) })) (expression_statement "puVar2 = (undefined4 *)\n           (*(code *)PTR_sk_new_000b03bc)(param_1,param_3,param_4,param_5,param_6,param_7,param_8);" (assignment_expression "puVar2 = (undefined4 *)\n           (*(code *)PTR_sk_new_000b03bc)(param_1,param_3,param_4,param_5,param_6,param_7,param_8)" identifier = (cast_expression "(undefined4 *)\n           (*(code *)PTR_sk_new_000b03bc)(param_1,param_3,param_4,param_5,param_6,param_7,param_8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_sk_new_000b03bc)(param_1,param_3,param_4,param_5,param_6,param_7,param_8)" (parenthesized_expression "(*(code *)PTR_sk_new_000b03bc)" ( (pointer_expression "*(code *)PTR_sk_new_000b03bc" * (cast_expression "(code *)PTR_sk_new_000b03bc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_3,param_4,param_5,param_6,param_7,param_8)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier ))))) ;) (labeled_statement "LAB_000250c4:\n  if (local_2c == *(int *)puVar9) {\n    return puVar2;\n  }" statement_identifier : (if_statement "if (local_2c == *(int *)puVar9) {\n    return puVar2;\n  }" if (parenthesized_expression "(local_2c == *(int *)puVar9)" ( (binary_expression "local_2c == *(int *)puVar9" identifier == (pointer_expression "*(int *)puVar9" * (cast_expression "(int *)puVar9" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return puVar2;\n  }" { (return_statement "return puVar2;" return identifier ;) }))) (expression_statement "puVar9 = PTR___stack_chk_fail_000b0c70;" (assignment_expression "puVar9 = PTR___stack_chk_fail_000b0c70" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000b0c70)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b0c70)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b0c70)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000b0c70" * (cast_expression "(code *)PTR___stack_chk_fail_000b0c70" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "puVar2 = (undefined4 *)(**(code **)(puVar9 + 0x8ae38))();" (assignment_expression "puVar2 = (undefined4 *)(**(code **)(puVar9 + 0x8ae38))()" identifier = (cast_expression "(undefined4 *)(**(code **)(puVar9 + 0x8ae38))()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar9 + 0x8ae38))()" (parenthesized_expression "(**(code **)(puVar9 + 0x8ae38))" ( (pointer_expression "**(code **)(puVar9 + 0x8ae38)" * (pointer_expression "*(code **)(puVar9 + 0x8ae38)" * (cast_expression "(code **)(puVar9 + 0x8ae38)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0x8ae38)" ( (binary_expression "puVar9 + 0x8ae38" identifier + number_literal) ))))) )) (argument_list "()" ( ))))) ;) (return_statement "return puVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nSocket new_connection(SockAddr addr,char *hostname,int port,int privport,int oobinline,int nodelay,\n                     int keepalive,Plug plug,Conf *conf)\n\n{\n  char *proxy_canonical_name;\n  char addrbuf [256];\n  \n                    /* WARNING: Subroutine does not return */\n  conf_get_int(conf,0xd);\n}\n\n" comment (function_definition "Socket new_connection(SockAddr addr,char *hostname,int port,int privport,int oobinline,int nodelay,\n                     int keepalive,Plug plug,Conf *conf)\n\n{\n  char *proxy_canonical_name;\n  char addrbuf [256];\n  \n                    /* WARNING: Subroutine does not return */\n  conf_get_int(conf,0xd);\n}" type_identifier (function_declarator "new_connection(SockAddr addr,char *hostname,int port,int privport,int oobinline,int nodelay,\n                     int keepalive,Plug plug,Conf *conf)" identifier (parameter_list "(SockAddr addr,char *hostname,int port,int privport,int oobinline,int nodelay,\n                     int keepalive,Plug plug,Conf *conf)" ( (parameter_declaration "SockAddr addr" type_identifier identifier) , (parameter_declaration "char *hostname" primitive_type (pointer_declarator "*hostname" * identifier)) , (parameter_declaration "int port" primitive_type identifier) , (parameter_declaration "int privport" primitive_type identifier) , (parameter_declaration "int oobinline" primitive_type identifier) , (parameter_declaration "int nodelay" primitive_type identifier) , (parameter_declaration "int keepalive" primitive_type identifier) , (parameter_declaration "Plug plug" type_identifier identifier) , (parameter_declaration "Conf *conf" type_identifier (pointer_declarator "*conf" * identifier)) ))) (compound_statement "{\n  char *proxy_canonical_name;\n  char addrbuf [256];\n  \n                    /* WARNING: Subroutine does not return */\n  conf_get_int(conf,0xd);\n}" { (declaration "char *proxy_canonical_name;" primitive_type (pointer_declarator "*proxy_canonical_name" * identifier) ;) (declaration "char addrbuf [256];" primitive_type (array_declarator "addrbuf [256]" identifier [ number_literal ]) ;) comment (expression_statement "conf_get_int(conf,0xd);" (call_expression "conf_get_int(conf,0xd)" identifier (argument_list "(conf,0xd)" ( identifier , number_literal ))) ;) })))
(translation_unit "undefined4 *\nnew_connection(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n              undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 *param_8,\n              undefined4 param_9)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  int *piVar6;\n  undefined *puVar7;\n  undefined *puVar8;\n  undefined *puVar9;\n  undefined4 local_130;\n  undefined1 auStack_12c [256];\n  int local_2c;\n  \n  puVar9 = PTR___stack_chk_guard_000b0c9c;\n  local_2c = *(int *)PTR___stack_chk_guard_000b0c9c;\n  iVar1 = conf_get_int(param_9,0xd);\n  if (iVar1 != 0) {\n    iVar1 = proxy_for_destination(param_1,param_2,param_3,param_9);\n    if (iVar1 != 0) {\n      puVar2 = (undefined4 *)\n               (*(code *)PTR_platform_new_connection_000b03c0)\n                         (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9);\n      if (puVar2 == (undefined4 *)0x0) {\n        puVar2 = (undefined4 *)safemalloc(1,0x88);\n        *puVar2 = PTR_DAT_000b0178 + -0x1158;\n        uVar3 = conf_copy(param_9);\n        puVar2[0x1d] = uVar3;\n        puVar2[3] = param_8;\n        puVar2[4] = param_1;\n        puVar2[5] = param_3;\n        puVar2[1] = 0;\n        puVar2[0xc] = 0;\n        puVar2[0x10] = 0;\n        puVar2[0x12] = 0;\n        bufchain_init(puVar2 + 0xd);\n        bufchain_init(puVar2 + 6);\n        bufchain_init(puVar2 + 9);\n        puVar2[2] = 0;\n        puVar2[0x11] = 0xffffffff;\n        puVar2[0x13] = 0;\n        iVar1 = conf_get_int(param_9,0xd);\n        puVar8 = PTR_s_Present_000b0188;\n        if (iVar1 == 3) {\n          puVar2[0x13] = PTR_proxy_http_negotiate_000b03c8;\n          puVar8 = puVar8 + -0x12c0;\n        }\n        else if (iVar1 == 1) {\n          puVar2[0x13] = PTR_proxy_socks4_negotiate_000b03cc;\n          puVar8 = puVar8 + -0x12b8;\n        }\n        else if (iVar1 == 2) {\n          puVar2[0x13] = PTR_proxy_socks5_negotiate_000b03d0;\n          puVar8 = puVar8 + -0x12b0;\n        }\n        else {\n          if (iVar1 != 4) {\n            puVar2[1] = PTR_s_Present_000b0188 + -0x12a0;\n            goto LAB_000250c4;\n          }\n          puVar8 = PTR_s_Present_000b0188 + -0x12a8;\n          puVar2[0x13] = PTR_proxy_telnet_negotiate_000b03c4;\n        }\n        uVar3 = conf_get_str(param_9,0xe);\n        uVar4 = conf_get_int(param_9,0xf);\n        uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x127c,puVar8,uVar3,uVar4,param_2,param_3);\n        (**(code **)*param_8)(param_8,2,0,0,uVar3,0);\n        safefree(uVar3);\n        puVar5 = (undefined4 *)safemalloc(1,8);\n        puVar5[1] = puVar2;\n        *puVar5 = PTR_DAT_000b0178 + -0x116c;\n        uVar3 = conf_get_str(param_9,0xe);\n        iVar1 = conf_get_int(param_9,3);\n        if (iVar1 == 1) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1320;\n        }\n        else if (iVar1 == 2) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1318;\n        }\n        else {\n          puVar7 = PTR_s_Present_000b0188 + 0x2d54;\n        }\n        uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x12e0,uVar3,puVar7,\n                          PTR_s_Present_000b0188 + -0x163c);\n        (**(code **)*param_8)(param_8,2,0,0,uVar3,0);\n        safefree(uVar3);\n        uVar3 = conf_get_str(param_9,0xe);\n        uVar4 = conf_get_int(param_9,3);\n        uVar3 = (*(code *)PTR_sk_namelookup_000b03b0)(uVar3,&local_130,uVar4);\n        iVar1 = (*(code *)PTR_sk_addr_error_000b0364)(uVar3);\n        if (iVar1 == 0) {\n          safefree(local_130);\n          (*(code *)PTR_sk_getaddr_000b0208)(uVar3,auStack_12c,0x100);\n          uVar4 = conf_get_int(param_9,0xf);\n          uVar4 = dupprintf(PTR_s_Present_000b0188 + -0x121c,puVar8,auStack_12c,uVar4);\n          (**(code **)*param_8)(param_8,2,0,0,uVar4,0);\n          safefree(uVar4);\n          uVar4 = conf_get_int(param_9,0xf);\n          piVar6 = (int *)(*(code *)PTR_sk_new_000b03bc)\n                                    (uVar3,uVar4,param_4,param_5,param_6,param_7,puVar5);\n          puVar2[2] = piVar6;\n          iVar1 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n          if (iVar1 == 0) {\n            (**(code **)(*(int *)puVar2[2] + 0x18))((int *)puVar2[2],0);\n            (*(code *)puVar2[0x13])(puVar2,0xffffffff);\n          }\n        }\n        else {\n          puVar2[1] = PTR_s_Present_000b0188 + -0x124c;\n          safefree(puVar5);\n          (*(code *)PTR_sk_addr_free_000b0368)(uVar3);\n        }\n      }\n      goto LAB_000250c4;\n    }\n  }\n  puVar2 = (undefined4 *)\n           (*(code *)PTR_sk_new_000b03bc)(param_1,param_3,param_4,param_5,param_6,param_7,param_8);\nLAB_000250c4:\n  if (local_2c == *(int *)puVar9) {\n    return puVar2;\n  }\n  puVar9 = PTR___stack_chk_fail_000b0c70;\n  (*(code *)PTR___stack_chk_fail_000b0c70)();\n  puVar2 = (undefined4 *)(**(code **)(puVar9 + 0x8ae38))();\n  return puVar2;\n}\n\n" (function_definition "undefined4 *\nnew_connection(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n              undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 *param_8,\n              undefined4 param_9)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  int *piVar6;\n  undefined *puVar7;\n  undefined *puVar8;\n  undefined *puVar9;\n  undefined4 local_130;\n  undefined1 auStack_12c [256];\n  int local_2c;\n  \n  puVar9 = PTR___stack_chk_guard_000b0c9c;\n  local_2c = *(int *)PTR___stack_chk_guard_000b0c9c;\n  iVar1 = conf_get_int(param_9,0xd);\n  if (iVar1 != 0) {\n    iVar1 = proxy_for_destination(param_1,param_2,param_3,param_9);\n    if (iVar1 != 0) {\n      puVar2 = (undefined4 *)\n               (*(code *)PTR_platform_new_connection_000b03c0)\n                         (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9);\n      if (puVar2 == (undefined4 *)0x0) {\n        puVar2 = (undefined4 *)safemalloc(1,0x88);\n        *puVar2 = PTR_DAT_000b0178 + -0x1158;\n        uVar3 = conf_copy(param_9);\n        puVar2[0x1d] = uVar3;\n        puVar2[3] = param_8;\n        puVar2[4] = param_1;\n        puVar2[5] = param_3;\n        puVar2[1] = 0;\n        puVar2[0xc] = 0;\n        puVar2[0x10] = 0;\n        puVar2[0x12] = 0;\n        bufchain_init(puVar2 + 0xd);\n        bufchain_init(puVar2 + 6);\n        bufchain_init(puVar2 + 9);\n        puVar2[2] = 0;\n        puVar2[0x11] = 0xffffffff;\n        puVar2[0x13] = 0;\n        iVar1 = conf_get_int(param_9,0xd);\n        puVar8 = PTR_s_Present_000b0188;\n        if (iVar1 == 3) {\n          puVar2[0x13] = PTR_proxy_http_negotiate_000b03c8;\n          puVar8 = puVar8 + -0x12c0;\n        }\n        else if (iVar1 == 1) {\n          puVar2[0x13] = PTR_proxy_socks4_negotiate_000b03cc;\n          puVar8 = puVar8 + -0x12b8;\n        }\n        else if (iVar1 == 2) {\n          puVar2[0x13] = PTR_proxy_socks5_negotiate_000b03d0;\n          puVar8 = puVar8 + -0x12b0;\n        }\n        else {\n          if (iVar1 != 4) {\n            puVar2[1] = PTR_s_Present_000b0188 + -0x12a0;\n            goto LAB_000250c4;\n          }\n          puVar8 = PTR_s_Present_000b0188 + -0x12a8;\n          puVar2[0x13] = PTR_proxy_telnet_negotiate_000b03c4;\n        }\n        uVar3 = conf_get_str(param_9,0xe);\n        uVar4 = conf_get_int(param_9,0xf);\n        uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x127c,puVar8,uVar3,uVar4,param_2,param_3);\n        (**(code **)*param_8)(param_8,2,0,0,uVar3,0);\n        safefree(uVar3);\n        puVar5 = (undefined4 *)safemalloc(1,8);\n        puVar5[1] = puVar2;\n        *puVar5 = PTR_DAT_000b0178 + -0x116c;\n        uVar3 = conf_get_str(param_9,0xe);\n        iVar1 = conf_get_int(param_9,3);\n        if (iVar1 == 1) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1320;\n        }\n        else if (iVar1 == 2) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1318;\n        }\n        else {\n          puVar7 = PTR_s_Present_000b0188 + 0x2d54;\n        }\n        uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x12e0,uVar3,puVar7,\n                          PTR_s_Present_000b0188 + -0x163c);\n        (**(code **)*param_8)(param_8,2,0,0,uVar3,0);\n        safefree(uVar3);\n        uVar3 = conf_get_str(param_9,0xe);\n        uVar4 = conf_get_int(param_9,3);\n        uVar3 = (*(code *)PTR_sk_namelookup_000b03b0)(uVar3,&local_130,uVar4);\n        iVar1 = (*(code *)PTR_sk_addr_error_000b0364)(uVar3);\n        if (iVar1 == 0) {\n          safefree(local_130);\n          (*(code *)PTR_sk_getaddr_000b0208)(uVar3,auStack_12c,0x100);\n          uVar4 = conf_get_int(param_9,0xf);\n          uVar4 = dupprintf(PTR_s_Present_000b0188 + -0x121c,puVar8,auStack_12c,uVar4);\n          (**(code **)*param_8)(param_8,2,0,0,uVar4,0);\n          safefree(uVar4);\n          uVar4 = conf_get_int(param_9,0xf);\n          piVar6 = (int *)(*(code *)PTR_sk_new_000b03bc)\n                                    (uVar3,uVar4,param_4,param_5,param_6,param_7,puVar5);\n          puVar2[2] = piVar6;\n          iVar1 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n          if (iVar1 == 0) {\n            (**(code **)(*(int *)puVar2[2] + 0x18))((int *)puVar2[2],0);\n            (*(code *)puVar2[0x13])(puVar2,0xffffffff);\n          }\n        }\n        else {\n          puVar2[1] = PTR_s_Present_000b0188 + -0x124c;\n          safefree(puVar5);\n          (*(code *)PTR_sk_addr_free_000b0368)(uVar3);\n        }\n      }\n      goto LAB_000250c4;\n    }\n  }\n  puVar2 = (undefined4 *)\n           (*(code *)PTR_sk_new_000b03bc)(param_1,param_3,param_4,param_5,param_6,param_7,param_8);\nLAB_000250c4:\n  if (local_2c == *(int *)puVar9) {\n    return puVar2;\n  }\n  puVar9 = PTR___stack_chk_fail_000b0c70;\n  (*(code *)PTR___stack_chk_fail_000b0c70)();\n  puVar2 = (undefined4 *)(**(code **)(puVar9 + 0x8ae38))();\n  return puVar2;\n}" type_identifier (pointer_declarator "*\nnew_connection(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n              undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 *param_8,\n              undefined4 param_9)" * (function_declarator "new_connection(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n              undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 *param_8,\n              undefined4 param_9)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n              undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 *param_8,\n              undefined4 param_9)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) , (parameter_declaration "undefined4 param_7" type_identifier identifier) , (parameter_declaration "undefined4 *param_8" type_identifier (pointer_declarator "*param_8" * identifier)) , (parameter_declaration "undefined4 param_9" type_identifier identifier) )))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  int *piVar6;\n  undefined *puVar7;\n  undefined *puVar8;\n  undefined *puVar9;\n  undefined4 local_130;\n  undefined1 auStack_12c [256];\n  int local_2c;\n  \n  puVar9 = PTR___stack_chk_guard_000b0c9c;\n  local_2c = *(int *)PTR___stack_chk_guard_000b0c9c;\n  iVar1 = conf_get_int(param_9,0xd);\n  if (iVar1 != 0) {\n    iVar1 = proxy_for_destination(param_1,param_2,param_3,param_9);\n    if (iVar1 != 0) {\n      puVar2 = (undefined4 *)\n               (*(code *)PTR_platform_new_connection_000b03c0)\n                         (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9);\n      if (puVar2 == (undefined4 *)0x0) {\n        puVar2 = (undefined4 *)safemalloc(1,0x88);\n        *puVar2 = PTR_DAT_000b0178 + -0x1158;\n        uVar3 = conf_copy(param_9);\n        puVar2[0x1d] = uVar3;\n        puVar2[3] = param_8;\n        puVar2[4] = param_1;\n        puVar2[5] = param_3;\n        puVar2[1] = 0;\n        puVar2[0xc] = 0;\n        puVar2[0x10] = 0;\n        puVar2[0x12] = 0;\n        bufchain_init(puVar2 + 0xd);\n        bufchain_init(puVar2 + 6);\n        bufchain_init(puVar2 + 9);\n        puVar2[2] = 0;\n        puVar2[0x11] = 0xffffffff;\n        puVar2[0x13] = 0;\n        iVar1 = conf_get_int(param_9,0xd);\n        puVar8 = PTR_s_Present_000b0188;\n        if (iVar1 == 3) {\n          puVar2[0x13] = PTR_proxy_http_negotiate_000b03c8;\n          puVar8 = puVar8 + -0x12c0;\n        }\n        else if (iVar1 == 1) {\n          puVar2[0x13] = PTR_proxy_socks4_negotiate_000b03cc;\n          puVar8 = puVar8 + -0x12b8;\n        }\n        else if (iVar1 == 2) {\n          puVar2[0x13] = PTR_proxy_socks5_negotiate_000b03d0;\n          puVar8 = puVar8 + -0x12b0;\n        }\n        else {\n          if (iVar1 != 4) {\n            puVar2[1] = PTR_s_Present_000b0188 + -0x12a0;\n            goto LAB_000250c4;\n          }\n          puVar8 = PTR_s_Present_000b0188 + -0x12a8;\n          puVar2[0x13] = PTR_proxy_telnet_negotiate_000b03c4;\n        }\n        uVar3 = conf_get_str(param_9,0xe);\n        uVar4 = conf_get_int(param_9,0xf);\n        uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x127c,puVar8,uVar3,uVar4,param_2,param_3);\n        (**(code **)*param_8)(param_8,2,0,0,uVar3,0);\n        safefree(uVar3);\n        puVar5 = (undefined4 *)safemalloc(1,8);\n        puVar5[1] = puVar2;\n        *puVar5 = PTR_DAT_000b0178 + -0x116c;\n        uVar3 = conf_get_str(param_9,0xe);\n        iVar1 = conf_get_int(param_9,3);\n        if (iVar1 == 1) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1320;\n        }\n        else if (iVar1 == 2) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1318;\n        }\n        else {\n          puVar7 = PTR_s_Present_000b0188 + 0x2d54;\n        }\n        uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x12e0,uVar3,puVar7,\n                          PTR_s_Present_000b0188 + -0x163c);\n        (**(code **)*param_8)(param_8,2,0,0,uVar3,0);\n        safefree(uVar3);\n        uVar3 = conf_get_str(param_9,0xe);\n        uVar4 = conf_get_int(param_9,3);\n        uVar3 = (*(code *)PTR_sk_namelookup_000b03b0)(uVar3,&local_130,uVar4);\n        iVar1 = (*(code *)PTR_sk_addr_error_000b0364)(uVar3);\n        if (iVar1 == 0) {\n          safefree(local_130);\n          (*(code *)PTR_sk_getaddr_000b0208)(uVar3,auStack_12c,0x100);\n          uVar4 = conf_get_int(param_9,0xf);\n          uVar4 = dupprintf(PTR_s_Present_000b0188 + -0x121c,puVar8,auStack_12c,uVar4);\n          (**(code **)*param_8)(param_8,2,0,0,uVar4,0);\n          safefree(uVar4);\n          uVar4 = conf_get_int(param_9,0xf);\n          piVar6 = (int *)(*(code *)PTR_sk_new_000b03bc)\n                                    (uVar3,uVar4,param_4,param_5,param_6,param_7,puVar5);\n          puVar2[2] = piVar6;\n          iVar1 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n          if (iVar1 == 0) {\n            (**(code **)(*(int *)puVar2[2] + 0x18))((int *)puVar2[2],0);\n            (*(code *)puVar2[0x13])(puVar2,0xffffffff);\n          }\n        }\n        else {\n          puVar2[1] = PTR_s_Present_000b0188 + -0x124c;\n          safefree(puVar5);\n          (*(code *)PTR_sk_addr_free_000b0368)(uVar3);\n        }\n      }\n      goto LAB_000250c4;\n    }\n  }\n  puVar2 = (undefined4 *)\n           (*(code *)PTR_sk_new_000b03bc)(param_1,param_3,param_4,param_5,param_6,param_7,param_8);\nLAB_000250c4:\n  if (local_2c == *(int *)puVar9) {\n    return puVar2;\n  }\n  puVar9 = PTR___stack_chk_fail_000b0c70;\n  (*(code *)PTR___stack_chk_fail_000b0c70)();\n  puVar2 = (undefined4 *)(**(code **)(puVar9 + 0x8ae38))();\n  return puVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "undefined *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "undefined *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "undefined4 local_130;" type_identifier identifier ;) (declaration "undefined1 auStack_12c [256];" type_identifier (array_declarator "auStack_12c [256]" identifier [ number_literal ]) ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "puVar9 = PTR___stack_chk_guard_000b0c9c;" (assignment_expression "puVar9 = PTR___stack_chk_guard_000b0c9c" identifier = identifier) ;) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_000b0c9c;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_000b0c9c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000b0c9c" * (cast_expression "(int *)PTR___stack_chk_guard_000b0c9c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "iVar1 = conf_get_int(param_9,0xd);" (assignment_expression "iVar1 = conf_get_int(param_9,0xd)" identifier = (call_expression "conf_get_int(param_9,0xd)" identifier (argument_list "(param_9,0xd)" ( identifier , number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n    iVar1 = proxy_for_destination(param_1,param_2,param_3,param_9);\n    if (iVar1 != 0) {\n      puVar2 = (undefined4 *)\n               (*(code *)PTR_platform_new_connection_000b03c0)\n                         (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9);\n      if (puVar2 == (undefined4 *)0x0) {\n        puVar2 = (undefined4 *)safemalloc(1,0x88);\n        *puVar2 = PTR_DAT_000b0178 + -0x1158;\n        uVar3 = conf_copy(param_9);\n        puVar2[0x1d] = uVar3;\n        puVar2[3] = param_8;\n        puVar2[4] = param_1;\n        puVar2[5] = param_3;\n        puVar2[1] = 0;\n        puVar2[0xc] = 0;\n        puVar2[0x10] = 0;\n        puVar2[0x12] = 0;\n        bufchain_init(puVar2 + 0xd);\n        bufchain_init(puVar2 + 6);\n        bufchain_init(puVar2 + 9);\n        puVar2[2] = 0;\n        puVar2[0x11] = 0xffffffff;\n        puVar2[0x13] = 0;\n        iVar1 = conf_get_int(param_9,0xd);\n        puVar8 = PTR_s_Present_000b0188;\n        if (iVar1 == 3) {\n          puVar2[0x13] = PTR_proxy_http_negotiate_000b03c8;\n          puVar8 = puVar8 + -0x12c0;\n        }\n        else if (iVar1 == 1) {\n          puVar2[0x13] = PTR_proxy_socks4_negotiate_000b03cc;\n          puVar8 = puVar8 + -0x12b8;\n        }\n        else if (iVar1 == 2) {\n          puVar2[0x13] = PTR_proxy_socks5_negotiate_000b03d0;\n          puVar8 = puVar8 + -0x12b0;\n        }\n        else {\n          if (iVar1 != 4) {\n            puVar2[1] = PTR_s_Present_000b0188 + -0x12a0;\n            goto LAB_000250c4;\n          }\n          puVar8 = PTR_s_Present_000b0188 + -0x12a8;\n          puVar2[0x13] = PTR_proxy_telnet_negotiate_000b03c4;\n        }\n        uVar3 = conf_get_str(param_9,0xe);\n        uVar4 = conf_get_int(param_9,0xf);\n        uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x127c,puVar8,uVar3,uVar4,param_2,param_3);\n        (**(code **)*param_8)(param_8,2,0,0,uVar3,0);\n        safefree(uVar3);\n        puVar5 = (undefined4 *)safemalloc(1,8);\n        puVar5[1] = puVar2;\n        *puVar5 = PTR_DAT_000b0178 + -0x116c;\n        uVar3 = conf_get_str(param_9,0xe);\n        iVar1 = conf_get_int(param_9,3);\n        if (iVar1 == 1) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1320;\n        }\n        else if (iVar1 == 2) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1318;\n        }\n        else {\n          puVar7 = PTR_s_Present_000b0188 + 0x2d54;\n        }\n        uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x12e0,uVar3,puVar7,\n                          PTR_s_Present_000b0188 + -0x163c);\n        (**(code **)*param_8)(param_8,2,0,0,uVar3,0);\n        safefree(uVar3);\n        uVar3 = conf_get_str(param_9,0xe);\n        uVar4 = conf_get_int(param_9,3);\n        uVar3 = (*(code *)PTR_sk_namelookup_000b03b0)(uVar3,&local_130,uVar4);\n        iVar1 = (*(code *)PTR_sk_addr_error_000b0364)(uVar3);\n        if (iVar1 == 0) {\n          safefree(local_130);\n          (*(code *)PTR_sk_getaddr_000b0208)(uVar3,auStack_12c,0x100);\n          uVar4 = conf_get_int(param_9,0xf);\n          uVar4 = dupprintf(PTR_s_Present_000b0188 + -0x121c,puVar8,auStack_12c,uVar4);\n          (**(code **)*param_8)(param_8,2,0,0,uVar4,0);\n          safefree(uVar4);\n          uVar4 = conf_get_int(param_9,0xf);\n          piVar6 = (int *)(*(code *)PTR_sk_new_000b03bc)\n                                    (uVar3,uVar4,param_4,param_5,param_6,param_7,puVar5);\n          puVar2[2] = piVar6;\n          iVar1 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n          if (iVar1 == 0) {\n            (**(code **)(*(int *)puVar2[2] + 0x18))((int *)puVar2[2],0);\n            (*(code *)puVar2[0x13])(puVar2,0xffffffff);\n          }\n        }\n        else {\n          puVar2[1] = PTR_s_Present_000b0188 + -0x124c;\n          safefree(puVar5);\n          (*(code *)PTR_sk_addr_free_000b0368)(uVar3);\n        }\n      }\n      goto LAB_000250c4;\n    }\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = proxy_for_destination(param_1,param_2,param_3,param_9);\n    if (iVar1 != 0) {\n      puVar2 = (undefined4 *)\n               (*(code *)PTR_platform_new_connection_000b03c0)\n                         (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9);\n      if (puVar2 == (undefined4 *)0x0) {\n        puVar2 = (undefined4 *)safemalloc(1,0x88);\n        *puVar2 = PTR_DAT_000b0178 + -0x1158;\n        uVar3 = conf_copy(param_9);\n        puVar2[0x1d] = uVar3;\n        puVar2[3] = param_8;\n        puVar2[4] = param_1;\n        puVar2[5] = param_3;\n        puVar2[1] = 0;\n        puVar2[0xc] = 0;\n        puVar2[0x10] = 0;\n        puVar2[0x12] = 0;\n        bufchain_init(puVar2 + 0xd);\n        bufchain_init(puVar2 + 6);\n        bufchain_init(puVar2 + 9);\n        puVar2[2] = 0;\n        puVar2[0x11] = 0xffffffff;\n        puVar2[0x13] = 0;\n        iVar1 = conf_get_int(param_9,0xd);\n        puVar8 = PTR_s_Present_000b0188;\n        if (iVar1 == 3) {\n          puVar2[0x13] = PTR_proxy_http_negotiate_000b03c8;\n          puVar8 = puVar8 + -0x12c0;\n        }\n        else if (iVar1 == 1) {\n          puVar2[0x13] = PTR_proxy_socks4_negotiate_000b03cc;\n          puVar8 = puVar8 + -0x12b8;\n        }\n        else if (iVar1 == 2) {\n          puVar2[0x13] = PTR_proxy_socks5_negotiate_000b03d0;\n          puVar8 = puVar8 + -0x12b0;\n        }\n        else {\n          if (iVar1 != 4) {\n            puVar2[1] = PTR_s_Present_000b0188 + -0x12a0;\n            goto LAB_000250c4;\n          }\n          puVar8 = PTR_s_Present_000b0188 + -0x12a8;\n          puVar2[0x13] = PTR_proxy_telnet_negotiate_000b03c4;\n        }\n        uVar3 = conf_get_str(param_9,0xe);\n        uVar4 = conf_get_int(param_9,0xf);\n        uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x127c,puVar8,uVar3,uVar4,param_2,param_3);\n        (**(code **)*param_8)(param_8,2,0,0,uVar3,0);\n        safefree(uVar3);\n        puVar5 = (undefined4 *)safemalloc(1,8);\n        puVar5[1] = puVar2;\n        *puVar5 = PTR_DAT_000b0178 + -0x116c;\n        uVar3 = conf_get_str(param_9,0xe);\n        iVar1 = conf_get_int(param_9,3);\n        if (iVar1 == 1) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1320;\n        }\n        else if (iVar1 == 2) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1318;\n        }\n        else {\n          puVar7 = PTR_s_Present_000b0188 + 0x2d54;\n        }\n        uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x12e0,uVar3,puVar7,\n                          PTR_s_Present_000b0188 + -0x163c);\n        (**(code **)*param_8)(param_8,2,0,0,uVar3,0);\n        safefree(uVar3);\n        uVar3 = conf_get_str(param_9,0xe);\n        uVar4 = conf_get_int(param_9,3);\n        uVar3 = (*(code *)PTR_sk_namelookup_000b03b0)(uVar3,&local_130,uVar4);\n        iVar1 = (*(code *)PTR_sk_addr_error_000b0364)(uVar3);\n        if (iVar1 == 0) {\n          safefree(local_130);\n          (*(code *)PTR_sk_getaddr_000b0208)(uVar3,auStack_12c,0x100);\n          uVar4 = conf_get_int(param_9,0xf);\n          uVar4 = dupprintf(PTR_s_Present_000b0188 + -0x121c,puVar8,auStack_12c,uVar4);\n          (**(code **)*param_8)(param_8,2,0,0,uVar4,0);\n          safefree(uVar4);\n          uVar4 = conf_get_int(param_9,0xf);\n          piVar6 = (int *)(*(code *)PTR_sk_new_000b03bc)\n                                    (uVar3,uVar4,param_4,param_5,param_6,param_7,puVar5);\n          puVar2[2] = piVar6;\n          iVar1 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n          if (iVar1 == 0) {\n            (**(code **)(*(int *)puVar2[2] + 0x18))((int *)puVar2[2],0);\n            (*(code *)puVar2[0x13])(puVar2,0xffffffff);\n          }\n        }\n        else {\n          puVar2[1] = PTR_s_Present_000b0188 + -0x124c;\n          safefree(puVar5);\n          (*(code *)PTR_sk_addr_free_000b0368)(uVar3);\n        }\n      }\n      goto LAB_000250c4;\n    }\n  }" { (expression_statement "iVar1 = proxy_for_destination(param_1,param_2,param_3,param_9);" (assignment_expression "iVar1 = proxy_for_destination(param_1,param_2,param_3,param_9)" identifier = (call_expression "proxy_for_destination(param_1,param_2,param_3,param_9)" identifier (argument_list "(param_1,param_2,param_3,param_9)" ( identifier , identifier , identifier , identifier )))) ;) (if_statement "if (iVar1 != 0) {\n      puVar2 = (undefined4 *)\n               (*(code *)PTR_platform_new_connection_000b03c0)\n                         (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9);\n      if (puVar2 == (undefined4 *)0x0) {\n        puVar2 = (undefined4 *)safemalloc(1,0x88);\n        *puVar2 = PTR_DAT_000b0178 + -0x1158;\n        uVar3 = conf_copy(param_9);\n        puVar2[0x1d] = uVar3;\n        puVar2[3] = param_8;\n        puVar2[4] = param_1;\n        puVar2[5] = param_3;\n        puVar2[1] = 0;\n        puVar2[0xc] = 0;\n        puVar2[0x10] = 0;\n        puVar2[0x12] = 0;\n        bufchain_init(puVar2 + 0xd);\n        bufchain_init(puVar2 + 6);\n        bufchain_init(puVar2 + 9);\n        puVar2[2] = 0;\n        puVar2[0x11] = 0xffffffff;\n        puVar2[0x13] = 0;\n        iVar1 = conf_get_int(param_9,0xd);\n        puVar8 = PTR_s_Present_000b0188;\n        if (iVar1 == 3) {\n          puVar2[0x13] = PTR_proxy_http_negotiate_000b03c8;\n          puVar8 = puVar8 + -0x12c0;\n        }\n        else if (iVar1 == 1) {\n          puVar2[0x13] = PTR_proxy_socks4_negotiate_000b03cc;\n          puVar8 = puVar8 + -0x12b8;\n        }\n        else if (iVar1 == 2) {\n          puVar2[0x13] = PTR_proxy_socks5_negotiate_000b03d0;\n          puVar8 = puVar8 + -0x12b0;\n        }\n        else {\n          if (iVar1 != 4) {\n            puVar2[1] = PTR_s_Present_000b0188 + -0x12a0;\n            goto LAB_000250c4;\n          }\n          puVar8 = PTR_s_Present_000b0188 + -0x12a8;\n          puVar2[0x13] = PTR_proxy_telnet_negotiate_000b03c4;\n        }\n        uVar3 = conf_get_str(param_9,0xe);\n        uVar4 = conf_get_int(param_9,0xf);\n        uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x127c,puVar8,uVar3,uVar4,param_2,param_3);\n        (**(code **)*param_8)(param_8,2,0,0,uVar3,0);\n        safefree(uVar3);\n        puVar5 = (undefined4 *)safemalloc(1,8);\n        puVar5[1] = puVar2;\n        *puVar5 = PTR_DAT_000b0178 + -0x116c;\n        uVar3 = conf_get_str(param_9,0xe);\n        iVar1 = conf_get_int(param_9,3);\n        if (iVar1 == 1) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1320;\n        }\n        else if (iVar1 == 2) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1318;\n        }\n        else {\n          puVar7 = PTR_s_Present_000b0188 + 0x2d54;\n        }\n        uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x12e0,uVar3,puVar7,\n                          PTR_s_Present_000b0188 + -0x163c);\n        (**(code **)*param_8)(param_8,2,0,0,uVar3,0);\n        safefree(uVar3);\n        uVar3 = conf_get_str(param_9,0xe);\n        uVar4 = conf_get_int(param_9,3);\n        uVar3 = (*(code *)PTR_sk_namelookup_000b03b0)(uVar3,&local_130,uVar4);\n        iVar1 = (*(code *)PTR_sk_addr_error_000b0364)(uVar3);\n        if (iVar1 == 0) {\n          safefree(local_130);\n          (*(code *)PTR_sk_getaddr_000b0208)(uVar3,auStack_12c,0x100);\n          uVar4 = conf_get_int(param_9,0xf);\n          uVar4 = dupprintf(PTR_s_Present_000b0188 + -0x121c,puVar8,auStack_12c,uVar4);\n          (**(code **)*param_8)(param_8,2,0,0,uVar4,0);\n          safefree(uVar4);\n          uVar4 = conf_get_int(param_9,0xf);\n          piVar6 = (int *)(*(code *)PTR_sk_new_000b03bc)\n                                    (uVar3,uVar4,param_4,param_5,param_6,param_7,puVar5);\n          puVar2[2] = piVar6;\n          iVar1 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n          if (iVar1 == 0) {\n            (**(code **)(*(int *)puVar2[2] + 0x18))((int *)puVar2[2],0);\n            (*(code *)puVar2[0x13])(puVar2,0xffffffff);\n          }\n        }\n        else {\n          puVar2[1] = PTR_s_Present_000b0188 + -0x124c;\n          safefree(puVar5);\n          (*(code *)PTR_sk_addr_free_000b0368)(uVar3);\n        }\n      }\n      goto LAB_000250c4;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      puVar2 = (undefined4 *)\n               (*(code *)PTR_platform_new_connection_000b03c0)\n                         (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9);\n      if (puVar2 == (undefined4 *)0x0) {\n        puVar2 = (undefined4 *)safemalloc(1,0x88);\n        *puVar2 = PTR_DAT_000b0178 + -0x1158;\n        uVar3 = conf_copy(param_9);\n        puVar2[0x1d] = uVar3;\n        puVar2[3] = param_8;\n        puVar2[4] = param_1;\n        puVar2[5] = param_3;\n        puVar2[1] = 0;\n        puVar2[0xc] = 0;\n        puVar2[0x10] = 0;\n        puVar2[0x12] = 0;\n        bufchain_init(puVar2 + 0xd);\n        bufchain_init(puVar2 + 6);\n        bufchain_init(puVar2 + 9);\n        puVar2[2] = 0;\n        puVar2[0x11] = 0xffffffff;\n        puVar2[0x13] = 0;\n        iVar1 = conf_get_int(param_9,0xd);\n        puVar8 = PTR_s_Present_000b0188;\n        if (iVar1 == 3) {\n          puVar2[0x13] = PTR_proxy_http_negotiate_000b03c8;\n          puVar8 = puVar8 + -0x12c0;\n        }\n        else if (iVar1 == 1) {\n          puVar2[0x13] = PTR_proxy_socks4_negotiate_000b03cc;\n          puVar8 = puVar8 + -0x12b8;\n        }\n        else if (iVar1 == 2) {\n          puVar2[0x13] = PTR_proxy_socks5_negotiate_000b03d0;\n          puVar8 = puVar8 + -0x12b0;\n        }\n        else {\n          if (iVar1 != 4) {\n            puVar2[1] = PTR_s_Present_000b0188 + -0x12a0;\n            goto LAB_000250c4;\n          }\n          puVar8 = PTR_s_Present_000b0188 + -0x12a8;\n          puVar2[0x13] = PTR_proxy_telnet_negotiate_000b03c4;\n        }\n        uVar3 = conf_get_str(param_9,0xe);\n        uVar4 = conf_get_int(param_9,0xf);\n        uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x127c,puVar8,uVar3,uVar4,param_2,param_3);\n        (**(code **)*param_8)(param_8,2,0,0,uVar3,0);\n        safefree(uVar3);\n        puVar5 = (undefined4 *)safemalloc(1,8);\n        puVar5[1] = puVar2;\n        *puVar5 = PTR_DAT_000b0178 + -0x116c;\n        uVar3 = conf_get_str(param_9,0xe);\n        iVar1 = conf_get_int(param_9,3);\n        if (iVar1 == 1) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1320;\n        }\n        else if (iVar1 == 2) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1318;\n        }\n        else {\n          puVar7 = PTR_s_Present_000b0188 + 0x2d54;\n        }\n        uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x12e0,uVar3,puVar7,\n                          PTR_s_Present_000b0188 + -0x163c);\n        (**(code **)*param_8)(param_8,2,0,0,uVar3,0);\n        safefree(uVar3);\n        uVar3 = conf_get_str(param_9,0xe);\n        uVar4 = conf_get_int(param_9,3);\n        uVar3 = (*(code *)PTR_sk_namelookup_000b03b0)(uVar3,&local_130,uVar4);\n        iVar1 = (*(code *)PTR_sk_addr_error_000b0364)(uVar3);\n        if (iVar1 == 0) {\n          safefree(local_130);\n          (*(code *)PTR_sk_getaddr_000b0208)(uVar3,auStack_12c,0x100);\n          uVar4 = conf_get_int(param_9,0xf);\n          uVar4 = dupprintf(PTR_s_Present_000b0188 + -0x121c,puVar8,auStack_12c,uVar4);\n          (**(code **)*param_8)(param_8,2,0,0,uVar4,0);\n          safefree(uVar4);\n          uVar4 = conf_get_int(param_9,0xf);\n          piVar6 = (int *)(*(code *)PTR_sk_new_000b03bc)\n                                    (uVar3,uVar4,param_4,param_5,param_6,param_7,puVar5);\n          puVar2[2] = piVar6;\n          iVar1 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n          if (iVar1 == 0) {\n            (**(code **)(*(int *)puVar2[2] + 0x18))((int *)puVar2[2],0);\n            (*(code *)puVar2[0x13])(puVar2,0xffffffff);\n          }\n        }\n        else {\n          puVar2[1] = PTR_s_Present_000b0188 + -0x124c;\n          safefree(puVar5);\n          (*(code *)PTR_sk_addr_free_000b0368)(uVar3);\n        }\n      }\n      goto LAB_000250c4;\n    }" { (expression_statement "puVar2 = (undefined4 *)\n               (*(code *)PTR_platform_new_connection_000b03c0)\n                         (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9);" (assignment_expression "puVar2 = (undefined4 *)\n               (*(code *)PTR_platform_new_connection_000b03c0)\n                         (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9)" identifier = (cast_expression "(undefined4 *)\n               (*(code *)PTR_platform_new_connection_000b03c0)\n                         (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_platform_new_connection_000b03c0)\n                         (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9)" (parenthesized_expression "(*(code *)PTR_platform_new_connection_000b03c0)" ( (pointer_expression "*(code *)PTR_platform_new_connection_000b03c0" * (cast_expression "(code *)PTR_platform_new_connection_000b03c0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier , identifier ))))) ;) (if_statement "if (puVar2 == (undefined4 *)0x0) {\n        puVar2 = (undefined4 *)safemalloc(1,0x88);\n        *puVar2 = PTR_DAT_000b0178 + -0x1158;\n        uVar3 = conf_copy(param_9);\n        puVar2[0x1d] = uVar3;\n        puVar2[3] = param_8;\n        puVar2[4] = param_1;\n        puVar2[5] = param_3;\n        puVar2[1] = 0;\n        puVar2[0xc] = 0;\n        puVar2[0x10] = 0;\n        puVar2[0x12] = 0;\n        bufchain_init(puVar2 + 0xd);\n        bufchain_init(puVar2 + 6);\n        bufchain_init(puVar2 + 9);\n        puVar2[2] = 0;\n        puVar2[0x11] = 0xffffffff;\n        puVar2[0x13] = 0;\n        iVar1 = conf_get_int(param_9,0xd);\n        puVar8 = PTR_s_Present_000b0188;\n        if (iVar1 == 3) {\n          puVar2[0x13] = PTR_proxy_http_negotiate_000b03c8;\n          puVar8 = puVar8 + -0x12c0;\n        }\n        else if (iVar1 == 1) {\n          puVar2[0x13] = PTR_proxy_socks4_negotiate_000b03cc;\n          puVar8 = puVar8 + -0x12b8;\n        }\n        else if (iVar1 == 2) {\n          puVar2[0x13] = PTR_proxy_socks5_negotiate_000b03d0;\n          puVar8 = puVar8 + -0x12b0;\n        }\n        else {\n          if (iVar1 != 4) {\n            puVar2[1] = PTR_s_Present_000b0188 + -0x12a0;\n            goto LAB_000250c4;\n          }\n          puVar8 = PTR_s_Present_000b0188 + -0x12a8;\n          puVar2[0x13] = PTR_proxy_telnet_negotiate_000b03c4;\n        }\n        uVar3 = conf_get_str(param_9,0xe);\n        uVar4 = conf_get_int(param_9,0xf);\n        uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x127c,puVar8,uVar3,uVar4,param_2,param_3);\n        (**(code **)*param_8)(param_8,2,0,0,uVar3,0);\n        safefree(uVar3);\n        puVar5 = (undefined4 *)safemalloc(1,8);\n        puVar5[1] = puVar2;\n        *puVar5 = PTR_DAT_000b0178 + -0x116c;\n        uVar3 = conf_get_str(param_9,0xe);\n        iVar1 = conf_get_int(param_9,3);\n        if (iVar1 == 1) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1320;\n        }\n        else if (iVar1 == 2) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1318;\n        }\n        else {\n          puVar7 = PTR_s_Present_000b0188 + 0x2d54;\n        }\n        uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x12e0,uVar3,puVar7,\n                          PTR_s_Present_000b0188 + -0x163c);\n        (**(code **)*param_8)(param_8,2,0,0,uVar3,0);\n        safefree(uVar3);\n        uVar3 = conf_get_str(param_9,0xe);\n        uVar4 = conf_get_int(param_9,3);\n        uVar3 = (*(code *)PTR_sk_namelookup_000b03b0)(uVar3,&local_130,uVar4);\n        iVar1 = (*(code *)PTR_sk_addr_error_000b0364)(uVar3);\n        if (iVar1 == 0) {\n          safefree(local_130);\n          (*(code *)PTR_sk_getaddr_000b0208)(uVar3,auStack_12c,0x100);\n          uVar4 = conf_get_int(param_9,0xf);\n          uVar4 = dupprintf(PTR_s_Present_000b0188 + -0x121c,puVar8,auStack_12c,uVar4);\n          (**(code **)*param_8)(param_8,2,0,0,uVar4,0);\n          safefree(uVar4);\n          uVar4 = conf_get_int(param_9,0xf);\n          piVar6 = (int *)(*(code *)PTR_sk_new_000b03bc)\n                                    (uVar3,uVar4,param_4,param_5,param_6,param_7,puVar5);\n          puVar2[2] = piVar6;\n          iVar1 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n          if (iVar1 == 0) {\n            (**(code **)(*(int *)puVar2[2] + 0x18))((int *)puVar2[2],0);\n            (*(code *)puVar2[0x13])(puVar2,0xffffffff);\n          }\n        }\n        else {\n          puVar2[1] = PTR_s_Present_000b0188 + -0x124c;\n          safefree(puVar5);\n          (*(code *)PTR_sk_addr_free_000b0368)(uVar3);\n        }\n      }" if (parenthesized_expression "(puVar2 == (undefined4 *)0x0)" ( (binary_expression "puVar2 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        puVar2 = (undefined4 *)safemalloc(1,0x88);\n        *puVar2 = PTR_DAT_000b0178 + -0x1158;\n        uVar3 = conf_copy(param_9);\n        puVar2[0x1d] = uVar3;\n        puVar2[3] = param_8;\n        puVar2[4] = param_1;\n        puVar2[5] = param_3;\n        puVar2[1] = 0;\n        puVar2[0xc] = 0;\n        puVar2[0x10] = 0;\n        puVar2[0x12] = 0;\n        bufchain_init(puVar2 + 0xd);\n        bufchain_init(puVar2 + 6);\n        bufchain_init(puVar2 + 9);\n        puVar2[2] = 0;\n        puVar2[0x11] = 0xffffffff;\n        puVar2[0x13] = 0;\n        iVar1 = conf_get_int(param_9,0xd);\n        puVar8 = PTR_s_Present_000b0188;\n        if (iVar1 == 3) {\n          puVar2[0x13] = PTR_proxy_http_negotiate_000b03c8;\n          puVar8 = puVar8 + -0x12c0;\n        }\n        else if (iVar1 == 1) {\n          puVar2[0x13] = PTR_proxy_socks4_negotiate_000b03cc;\n          puVar8 = puVar8 + -0x12b8;\n        }\n        else if (iVar1 == 2) {\n          puVar2[0x13] = PTR_proxy_socks5_negotiate_000b03d0;\n          puVar8 = puVar8 + -0x12b0;\n        }\n        else {\n          if (iVar1 != 4) {\n            puVar2[1] = PTR_s_Present_000b0188 + -0x12a0;\n            goto LAB_000250c4;\n          }\n          puVar8 = PTR_s_Present_000b0188 + -0x12a8;\n          puVar2[0x13] = PTR_proxy_telnet_negotiate_000b03c4;\n        }\n        uVar3 = conf_get_str(param_9,0xe);\n        uVar4 = conf_get_int(param_9,0xf);\n        uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x127c,puVar8,uVar3,uVar4,param_2,param_3);\n        (**(code **)*param_8)(param_8,2,0,0,uVar3,0);\n        safefree(uVar3);\n        puVar5 = (undefined4 *)safemalloc(1,8);\n        puVar5[1] = puVar2;\n        *puVar5 = PTR_DAT_000b0178 + -0x116c;\n        uVar3 = conf_get_str(param_9,0xe);\n        iVar1 = conf_get_int(param_9,3);\n        if (iVar1 == 1) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1320;\n        }\n        else if (iVar1 == 2) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1318;\n        }\n        else {\n          puVar7 = PTR_s_Present_000b0188 + 0x2d54;\n        }\n        uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x12e0,uVar3,puVar7,\n                          PTR_s_Present_000b0188 + -0x163c);\n        (**(code **)*param_8)(param_8,2,0,0,uVar3,0);\n        safefree(uVar3);\n        uVar3 = conf_get_str(param_9,0xe);\n        uVar4 = conf_get_int(param_9,3);\n        uVar3 = (*(code *)PTR_sk_namelookup_000b03b0)(uVar3,&local_130,uVar4);\n        iVar1 = (*(code *)PTR_sk_addr_error_000b0364)(uVar3);\n        if (iVar1 == 0) {\n          safefree(local_130);\n          (*(code *)PTR_sk_getaddr_000b0208)(uVar3,auStack_12c,0x100);\n          uVar4 = conf_get_int(param_9,0xf);\n          uVar4 = dupprintf(PTR_s_Present_000b0188 + -0x121c,puVar8,auStack_12c,uVar4);\n          (**(code **)*param_8)(param_8,2,0,0,uVar4,0);\n          safefree(uVar4);\n          uVar4 = conf_get_int(param_9,0xf);\n          piVar6 = (int *)(*(code *)PTR_sk_new_000b03bc)\n                                    (uVar3,uVar4,param_4,param_5,param_6,param_7,puVar5);\n          puVar2[2] = piVar6;\n          iVar1 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n          if (iVar1 == 0) {\n            (**(code **)(*(int *)puVar2[2] + 0x18))((int *)puVar2[2],0);\n            (*(code *)puVar2[0x13])(puVar2,0xffffffff);\n          }\n        }\n        else {\n          puVar2[1] = PTR_s_Present_000b0188 + -0x124c;\n          safefree(puVar5);\n          (*(code *)PTR_sk_addr_free_000b0368)(uVar3);\n        }\n      }" { (expression_statement "puVar2 = (undefined4 *)safemalloc(1,0x88);" (assignment_expression "puVar2 = (undefined4 *)safemalloc(1,0x88)" identifier = (cast_expression "(undefined4 *)safemalloc(1,0x88)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "safemalloc(1,0x88)" identifier (argument_list "(1,0x88)" ( number_literal , number_literal ))))) ;) (expression_statement "*puVar2 = PTR_DAT_000b0178 + -0x1158;" (assignment_expression "*puVar2 = PTR_DAT_000b0178 + -0x1158" (pointer_expression "*puVar2" * identifier) = (binary_expression "PTR_DAT_000b0178 + -0x1158" identifier + number_literal)) ;) (expression_statement "uVar3 = conf_copy(param_9);" (assignment_expression "uVar3 = conf_copy(param_9)" identifier = (call_expression "conf_copy(param_9)" identifier (argument_list "(param_9)" ( identifier )))) ;) (expression_statement "puVar2[0x1d] = uVar3;" (assignment_expression "puVar2[0x1d] = uVar3" (subscript_expression "puVar2[0x1d]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2[3] = param_8;" (assignment_expression "puVar2[3] = param_8" (subscript_expression "puVar2[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2[4] = param_1;" (assignment_expression "puVar2[4] = param_1" (subscript_expression "puVar2[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2[5] = param_3;" (assignment_expression "puVar2[5] = param_3" (subscript_expression "puVar2[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2[1] = 0;" (assignment_expression "puVar2[1] = 0" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[0xc] = 0;" (assignment_expression "puVar2[0xc] = 0" (subscript_expression "puVar2[0xc]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[0x10] = 0;" (assignment_expression "puVar2[0x10] = 0" (subscript_expression "puVar2[0x10]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[0x12] = 0;" (assignment_expression "puVar2[0x12] = 0" (subscript_expression "puVar2[0x12]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "bufchain_init(puVar2 + 0xd);" (call_expression "bufchain_init(puVar2 + 0xd)" identifier (argument_list "(puVar2 + 0xd)" ( (binary_expression "puVar2 + 0xd" identifier + number_literal) ))) ;) (expression_statement "bufchain_init(puVar2 + 6);" (call_expression "bufchain_init(puVar2 + 6)" identifier (argument_list "(puVar2 + 6)" ( (binary_expression "puVar2 + 6" identifier + number_literal) ))) ;) (expression_statement "bufchain_init(puVar2 + 9);" (call_expression "bufchain_init(puVar2 + 9)" identifier (argument_list "(puVar2 + 9)" ( (binary_expression "puVar2 + 9" identifier + number_literal) ))) ;) (expression_statement "puVar2[2] = 0;" (assignment_expression "puVar2[2] = 0" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[0x11] = 0xffffffff;" (assignment_expression "puVar2[0x11] = 0xffffffff" (subscript_expression "puVar2[0x11]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[0x13] = 0;" (assignment_expression "puVar2[0x13] = 0" (subscript_expression "puVar2[0x13]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar1 = conf_get_int(param_9,0xd);" (assignment_expression "iVar1 = conf_get_int(param_9,0xd)" identifier = (call_expression "conf_get_int(param_9,0xd)" identifier (argument_list "(param_9,0xd)" ( identifier , number_literal )))) ;) (expression_statement "puVar8 = PTR_s_Present_000b0188;" (assignment_expression "puVar8 = PTR_s_Present_000b0188" identifier = identifier) ;) (if_statement "if (iVar1 == 3) {\n          puVar2[0x13] = PTR_proxy_http_negotiate_000b03c8;\n          puVar8 = puVar8 + -0x12c0;\n        }\n        else if (iVar1 == 1) {\n          puVar2[0x13] = PTR_proxy_socks4_negotiate_000b03cc;\n          puVar8 = puVar8 + -0x12b8;\n        }\n        else if (iVar1 == 2) {\n          puVar2[0x13] = PTR_proxy_socks5_negotiate_000b03d0;\n          puVar8 = puVar8 + -0x12b0;\n        }\n        else {\n          if (iVar1 != 4) {\n            puVar2[1] = PTR_s_Present_000b0188 + -0x12a0;\n            goto LAB_000250c4;\n          }\n          puVar8 = PTR_s_Present_000b0188 + -0x12a8;\n          puVar2[0x13] = PTR_proxy_telnet_negotiate_000b03c4;\n        }" if (parenthesized_expression "(iVar1 == 3)" ( (binary_expression "iVar1 == 3" identifier == number_literal) )) (compound_statement "{\n          puVar2[0x13] = PTR_proxy_http_negotiate_000b03c8;\n          puVar8 = puVar8 + -0x12c0;\n        }" { (expression_statement "puVar2[0x13] = PTR_proxy_http_negotiate_000b03c8;" (assignment_expression "puVar2[0x13] = PTR_proxy_http_negotiate_000b03c8" (subscript_expression "puVar2[0x13]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar8 = puVar8 + -0x12c0;" (assignment_expression "puVar8 = puVar8 + -0x12c0" identifier = (binary_expression "puVar8 + -0x12c0" identifier + number_literal)) ;) }) (else_clause "else if (iVar1 == 1) {\n          puVar2[0x13] = PTR_proxy_socks4_negotiate_000b03cc;\n          puVar8 = puVar8 + -0x12b8;\n        }\n        else if (iVar1 == 2) {\n          puVar2[0x13] = PTR_proxy_socks5_negotiate_000b03d0;\n          puVar8 = puVar8 + -0x12b0;\n        }\n        else {\n          if (iVar1 != 4) {\n            puVar2[1] = PTR_s_Present_000b0188 + -0x12a0;\n            goto LAB_000250c4;\n          }\n          puVar8 = PTR_s_Present_000b0188 + -0x12a8;\n          puVar2[0x13] = PTR_proxy_telnet_negotiate_000b03c4;\n        }" else (if_statement "if (iVar1 == 1) {\n          puVar2[0x13] = PTR_proxy_socks4_negotiate_000b03cc;\n          puVar8 = puVar8 + -0x12b8;\n        }\n        else if (iVar1 == 2) {\n          puVar2[0x13] = PTR_proxy_socks5_negotiate_000b03d0;\n          puVar8 = puVar8 + -0x12b0;\n        }\n        else {\n          if (iVar1 != 4) {\n            puVar2[1] = PTR_s_Present_000b0188 + -0x12a0;\n            goto LAB_000250c4;\n          }\n          puVar8 = PTR_s_Present_000b0188 + -0x12a8;\n          puVar2[0x13] = PTR_proxy_telnet_negotiate_000b03c4;\n        }" if (parenthesized_expression "(iVar1 == 1)" ( (binary_expression "iVar1 == 1" identifier == number_literal) )) (compound_statement "{\n          puVar2[0x13] = PTR_proxy_socks4_negotiate_000b03cc;\n          puVar8 = puVar8 + -0x12b8;\n        }" { (expression_statement "puVar2[0x13] = PTR_proxy_socks4_negotiate_000b03cc;" (assignment_expression "puVar2[0x13] = PTR_proxy_socks4_negotiate_000b03cc" (subscript_expression "puVar2[0x13]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar8 = puVar8 + -0x12b8;" (assignment_expression "puVar8 = puVar8 + -0x12b8" identifier = (binary_expression "puVar8 + -0x12b8" identifier + number_literal)) ;) }) (else_clause "else if (iVar1 == 2) {\n          puVar2[0x13] = PTR_proxy_socks5_negotiate_000b03d0;\n          puVar8 = puVar8 + -0x12b0;\n        }\n        else {\n          if (iVar1 != 4) {\n            puVar2[1] = PTR_s_Present_000b0188 + -0x12a0;\n            goto LAB_000250c4;\n          }\n          puVar8 = PTR_s_Present_000b0188 + -0x12a8;\n          puVar2[0x13] = PTR_proxy_telnet_negotiate_000b03c4;\n        }" else (if_statement "if (iVar1 == 2) {\n          puVar2[0x13] = PTR_proxy_socks5_negotiate_000b03d0;\n          puVar8 = puVar8 + -0x12b0;\n        }\n        else {\n          if (iVar1 != 4) {\n            puVar2[1] = PTR_s_Present_000b0188 + -0x12a0;\n            goto LAB_000250c4;\n          }\n          puVar8 = PTR_s_Present_000b0188 + -0x12a8;\n          puVar2[0x13] = PTR_proxy_telnet_negotiate_000b03c4;\n        }" if (parenthesized_expression "(iVar1 == 2)" ( (binary_expression "iVar1 == 2" identifier == number_literal) )) (compound_statement "{\n          puVar2[0x13] = PTR_proxy_socks5_negotiate_000b03d0;\n          puVar8 = puVar8 + -0x12b0;\n        }" { (expression_statement "puVar2[0x13] = PTR_proxy_socks5_negotiate_000b03d0;" (assignment_expression "puVar2[0x13] = PTR_proxy_socks5_negotiate_000b03d0" (subscript_expression "puVar2[0x13]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar8 = puVar8 + -0x12b0;" (assignment_expression "puVar8 = puVar8 + -0x12b0" identifier = (binary_expression "puVar8 + -0x12b0" identifier + number_literal)) ;) }) (else_clause "else {\n          if (iVar1 != 4) {\n            puVar2[1] = PTR_s_Present_000b0188 + -0x12a0;\n            goto LAB_000250c4;\n          }\n          puVar8 = PTR_s_Present_000b0188 + -0x12a8;\n          puVar2[0x13] = PTR_proxy_telnet_negotiate_000b03c4;\n        }" else (compound_statement "{\n          if (iVar1 != 4) {\n            puVar2[1] = PTR_s_Present_000b0188 + -0x12a0;\n            goto LAB_000250c4;\n          }\n          puVar8 = PTR_s_Present_000b0188 + -0x12a8;\n          puVar2[0x13] = PTR_proxy_telnet_negotiate_000b03c4;\n        }" { (if_statement "if (iVar1 != 4) {\n            puVar2[1] = PTR_s_Present_000b0188 + -0x12a0;\n            goto LAB_000250c4;\n          }" if (parenthesized_expression "(iVar1 != 4)" ( (binary_expression "iVar1 != 4" identifier != number_literal) )) (compound_statement "{\n            puVar2[1] = PTR_s_Present_000b0188 + -0x12a0;\n            goto LAB_000250c4;\n          }" { (expression_statement "puVar2[1] = PTR_s_Present_000b0188 + -0x12a0;" (assignment_expression "puVar2[1] = PTR_s_Present_000b0188 + -0x12a0" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = (binary_expression "PTR_s_Present_000b0188 + -0x12a0" identifier + number_literal)) ;) (goto_statement "goto LAB_000250c4;" goto statement_identifier ;) })) (expression_statement "puVar8 = PTR_s_Present_000b0188 + -0x12a8;" (assignment_expression "puVar8 = PTR_s_Present_000b0188 + -0x12a8" identifier = (binary_expression "PTR_s_Present_000b0188 + -0x12a8" identifier + number_literal)) ;) (expression_statement "puVar2[0x13] = PTR_proxy_telnet_negotiate_000b03c4;" (assignment_expression "puVar2[0x13] = PTR_proxy_telnet_negotiate_000b03c4" (subscript_expression "puVar2[0x13]" identifier [ number_literal ]) = identifier) ;) }))))))) (expression_statement "uVar3 = conf_get_str(param_9,0xe);" (assignment_expression "uVar3 = conf_get_str(param_9,0xe)" identifier = (call_expression "conf_get_str(param_9,0xe)" identifier (argument_list "(param_9,0xe)" ( identifier , number_literal )))) ;) (expression_statement "uVar4 = conf_get_int(param_9,0xf);" (assignment_expression "uVar4 = conf_get_int(param_9,0xf)" identifier = (call_expression "conf_get_int(param_9,0xf)" identifier (argument_list "(param_9,0xf)" ( identifier , number_literal )))) ;) (expression_statement "uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x127c,puVar8,uVar3,uVar4,param_2,param_3);" (assignment_expression "uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x127c,puVar8,uVar3,uVar4,param_2,param_3)" identifier = (call_expression "dupprintf(PTR_s_Present_000b0188 + -0x127c,puVar8,uVar3,uVar4,param_2,param_3)" identifier (argument_list "(PTR_s_Present_000b0188 + -0x127c,puVar8,uVar3,uVar4,param_2,param_3)" ( (binary_expression "PTR_s_Present_000b0188 + -0x127c" identifier + number_literal) , identifier , identifier , identifier , identifier , identifier )))) ;) (expression_statement "(**(code **)*param_8)(param_8,2,0,0,uVar3,0);" (call_expression "(**(code **)*param_8)(param_8,2,0,0,uVar3,0)" (parenthesized_expression "(**(code **)*param_8)" ( (pointer_expression "**(code **)*param_8" * (pointer_expression "*(code **)*param_8" * (cast_expression "(code **)*param_8" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "*param_8" * identifier)))) )) (argument_list "(param_8,2,0,0,uVar3,0)" ( identifier , number_literal , number_literal , number_literal , identifier , number_literal ))) ;) (expression_statement "safefree(uVar3);" (call_expression "safefree(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) (expression_statement "puVar5 = (undefined4 *)safemalloc(1,8);" (assignment_expression "puVar5 = (undefined4 *)safemalloc(1,8)" identifier = (cast_expression "(undefined4 *)safemalloc(1,8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "safemalloc(1,8)" identifier (argument_list "(1,8)" ( number_literal , number_literal ))))) ;) (expression_statement "puVar5[1] = puVar2;" (assignment_expression "puVar5[1] = puVar2" (subscript_expression "puVar5[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*puVar5 = PTR_DAT_000b0178 + -0x116c;" (assignment_expression "*puVar5 = PTR_DAT_000b0178 + -0x116c" (pointer_expression "*puVar5" * identifier) = (binary_expression "PTR_DAT_000b0178 + -0x116c" identifier + number_literal)) ;) (expression_statement "uVar3 = conf_get_str(param_9,0xe);" (assignment_expression "uVar3 = conf_get_str(param_9,0xe)" identifier = (call_expression "conf_get_str(param_9,0xe)" identifier (argument_list "(param_9,0xe)" ( identifier , number_literal )))) ;) (expression_statement "iVar1 = conf_get_int(param_9,3);" (assignment_expression "iVar1 = conf_get_int(param_9,3)" identifier = (call_expression "conf_get_int(param_9,3)" identifier (argument_list "(param_9,3)" ( identifier , number_literal )))) ;) (if_statement "if (iVar1 == 1) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1320;\n        }\n        else if (iVar1 == 2) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1318;\n        }\n        else {\n          puVar7 = PTR_s_Present_000b0188 + 0x2d54;\n        }" if (parenthesized_expression "(iVar1 == 1)" ( (binary_expression "iVar1 == 1" identifier == number_literal) )) (compound_statement "{\n          puVar7 = PTR_s_Present_000b0188 + -0x1320;\n        }" { (expression_statement "puVar7 = PTR_s_Present_000b0188 + -0x1320;" (assignment_expression "puVar7 = PTR_s_Present_000b0188 + -0x1320" identifier = (binary_expression "PTR_s_Present_000b0188 + -0x1320" identifier + number_literal)) ;) }) (else_clause "else if (iVar1 == 2) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1318;\n        }\n        else {\n          puVar7 = PTR_s_Present_000b0188 + 0x2d54;\n        }" else (if_statement "if (iVar1 == 2) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1318;\n        }\n        else {\n          puVar7 = PTR_s_Present_000b0188 + 0x2d54;\n        }" if (parenthesized_expression "(iVar1 == 2)" ( (binary_expression "iVar1 == 2" identifier == number_literal) )) (compound_statement "{\n          puVar7 = PTR_s_Present_000b0188 + -0x1318;\n        }" { (expression_statement "puVar7 = PTR_s_Present_000b0188 + -0x1318;" (assignment_expression "puVar7 = PTR_s_Present_000b0188 + -0x1318" identifier = (binary_expression "PTR_s_Present_000b0188 + -0x1318" identifier + number_literal)) ;) }) (else_clause "else {\n          puVar7 = PTR_s_Present_000b0188 + 0x2d54;\n        }" else (compound_statement "{\n          puVar7 = PTR_s_Present_000b0188 + 0x2d54;\n        }" { (expression_statement "puVar7 = PTR_s_Present_000b0188 + 0x2d54;" (assignment_expression "puVar7 = PTR_s_Present_000b0188 + 0x2d54" identifier = (binary_expression "PTR_s_Present_000b0188 + 0x2d54" identifier + number_literal)) ;) }))))) (expression_statement "uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x12e0,uVar3,puVar7,\n                          PTR_s_Present_000b0188 + -0x163c);" (assignment_expression "uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x12e0,uVar3,puVar7,\n                          PTR_s_Present_000b0188 + -0x163c)" identifier = (call_expression "dupprintf(PTR_s_Present_000b0188 + -0x12e0,uVar3,puVar7,\n                          PTR_s_Present_000b0188 + -0x163c)" identifier (argument_list "(PTR_s_Present_000b0188 + -0x12e0,uVar3,puVar7,\n                          PTR_s_Present_000b0188 + -0x163c)" ( (binary_expression "PTR_s_Present_000b0188 + -0x12e0" identifier + number_literal) , identifier , identifier , (binary_expression "PTR_s_Present_000b0188 + -0x163c" identifier + number_literal) )))) ;) (expression_statement "(**(code **)*param_8)(param_8,2,0,0,uVar3,0);" (call_expression "(**(code **)*param_8)(param_8,2,0,0,uVar3,0)" (parenthesized_expression "(**(code **)*param_8)" ( (pointer_expression "**(code **)*param_8" * (pointer_expression "*(code **)*param_8" * (cast_expression "(code **)*param_8" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "*param_8" * identifier)))) )) (argument_list "(param_8,2,0,0,uVar3,0)" ( identifier , number_literal , number_literal , number_literal , identifier , number_literal ))) ;) (expression_statement "safefree(uVar3);" (call_expression "safefree(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) (expression_statement "uVar3 = conf_get_str(param_9,0xe);" (assignment_expression "uVar3 = conf_get_str(param_9,0xe)" identifier = (call_expression "conf_get_str(param_9,0xe)" identifier (argument_list "(param_9,0xe)" ( identifier , number_literal )))) ;) (expression_statement "uVar4 = conf_get_int(param_9,3);" (assignment_expression "uVar4 = conf_get_int(param_9,3)" identifier = (call_expression "conf_get_int(param_9,3)" identifier (argument_list "(param_9,3)" ( identifier , number_literal )))) ;) (expression_statement "uVar3 = (*(code *)PTR_sk_namelookup_000b03b0)(uVar3,&local_130,uVar4);" (assignment_expression "uVar3 = (*(code *)PTR_sk_namelookup_000b03b0)(uVar3,&local_130,uVar4)" identifier = (call_expression "(*(code *)PTR_sk_namelookup_000b03b0)(uVar3,&local_130,uVar4)" (parenthesized_expression "(*(code *)PTR_sk_namelookup_000b03b0)" ( (pointer_expression "*(code *)PTR_sk_namelookup_000b03b0" * (cast_expression "(code *)PTR_sk_namelookup_000b03b0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar3,&local_130,uVar4)" ( identifier , (pointer_expression "&local_130" & identifier) , identifier )))) ;) (expression_statement "iVar1 = (*(code *)PTR_sk_addr_error_000b0364)(uVar3);" (assignment_expression "iVar1 = (*(code *)PTR_sk_addr_error_000b0364)(uVar3)" identifier = (call_expression "(*(code *)PTR_sk_addr_error_000b0364)(uVar3)" (parenthesized_expression "(*(code *)PTR_sk_addr_error_000b0364)" ( (pointer_expression "*(code *)PTR_sk_addr_error_000b0364" * (cast_expression "(code *)PTR_sk_addr_error_000b0364" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar3)" ( identifier )))) ;) (if_statement "if (iVar1 == 0) {\n          safefree(local_130);\n          (*(code *)PTR_sk_getaddr_000b0208)(uVar3,auStack_12c,0x100);\n          uVar4 = conf_get_int(param_9,0xf);\n          uVar4 = dupprintf(PTR_s_Present_000b0188 + -0x121c,puVar8,auStack_12c,uVar4);\n          (**(code **)*param_8)(param_8,2,0,0,uVar4,0);\n          safefree(uVar4);\n          uVar4 = conf_get_int(param_9,0xf);\n          piVar6 = (int *)(*(code *)PTR_sk_new_000b03bc)\n                                    (uVar3,uVar4,param_4,param_5,param_6,param_7,puVar5);\n          puVar2[2] = piVar6;\n          iVar1 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n          if (iVar1 == 0) {\n            (**(code **)(*(int *)puVar2[2] + 0x18))((int *)puVar2[2],0);\n            (*(code *)puVar2[0x13])(puVar2,0xffffffff);\n          }\n        }\n        else {\n          puVar2[1] = PTR_s_Present_000b0188 + -0x124c;\n          safefree(puVar5);\n          (*(code *)PTR_sk_addr_free_000b0368)(uVar3);\n        }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n          safefree(local_130);\n          (*(code *)PTR_sk_getaddr_000b0208)(uVar3,auStack_12c,0x100);\n          uVar4 = conf_get_int(param_9,0xf);\n          uVar4 = dupprintf(PTR_s_Present_000b0188 + -0x121c,puVar8,auStack_12c,uVar4);\n          (**(code **)*param_8)(param_8,2,0,0,uVar4,0);\n          safefree(uVar4);\n          uVar4 = conf_get_int(param_9,0xf);\n          piVar6 = (int *)(*(code *)PTR_sk_new_000b03bc)\n                                    (uVar3,uVar4,param_4,param_5,param_6,param_7,puVar5);\n          puVar2[2] = piVar6;\n          iVar1 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n          if (iVar1 == 0) {\n            (**(code **)(*(int *)puVar2[2] + 0x18))((int *)puVar2[2],0);\n            (*(code *)puVar2[0x13])(puVar2,0xffffffff);\n          }\n        }" { (expression_statement "safefree(local_130);" (call_expression "safefree(local_130)" identifier (argument_list "(local_130)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_sk_getaddr_000b0208)(uVar3,auStack_12c,0x100);" (call_expression "(*(code *)PTR_sk_getaddr_000b0208)(uVar3,auStack_12c,0x100)" (parenthesized_expression "(*(code *)PTR_sk_getaddr_000b0208)" ( (pointer_expression "*(code *)PTR_sk_getaddr_000b0208" * (cast_expression "(code *)PTR_sk_getaddr_000b0208" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar3,auStack_12c,0x100)" ( identifier , identifier , number_literal ))) ;) (expression_statement "uVar4 = conf_get_int(param_9,0xf);" (assignment_expression "uVar4 = conf_get_int(param_9,0xf)" identifier = (call_expression "conf_get_int(param_9,0xf)" identifier (argument_list "(param_9,0xf)" ( identifier , number_literal )))) ;) (expression_statement "uVar4 = dupprintf(PTR_s_Present_000b0188 + -0x121c,puVar8,auStack_12c,uVar4);" (assignment_expression "uVar4 = dupprintf(PTR_s_Present_000b0188 + -0x121c,puVar8,auStack_12c,uVar4)" identifier = (call_expression "dupprintf(PTR_s_Present_000b0188 + -0x121c,puVar8,auStack_12c,uVar4)" identifier (argument_list "(PTR_s_Present_000b0188 + -0x121c,puVar8,auStack_12c,uVar4)" ( (binary_expression "PTR_s_Present_000b0188 + -0x121c" identifier + number_literal) , identifier , identifier , identifier )))) ;) (expression_statement "(**(code **)*param_8)(param_8,2,0,0,uVar4,0);" (call_expression "(**(code **)*param_8)(param_8,2,0,0,uVar4,0)" (parenthesized_expression "(**(code **)*param_8)" ( (pointer_expression "**(code **)*param_8" * (pointer_expression "*(code **)*param_8" * (cast_expression "(code **)*param_8" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "*param_8" * identifier)))) )) (argument_list "(param_8,2,0,0,uVar4,0)" ( identifier , number_literal , number_literal , number_literal , identifier , number_literal ))) ;) (expression_statement "safefree(uVar4);" (call_expression "safefree(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) (expression_statement "uVar4 = conf_get_int(param_9,0xf);" (assignment_expression "uVar4 = conf_get_int(param_9,0xf)" identifier = (call_expression "conf_get_int(param_9,0xf)" identifier (argument_list "(param_9,0xf)" ( identifier , number_literal )))) ;) (expression_statement "piVar6 = (int *)(*(code *)PTR_sk_new_000b03bc)\n                                    (uVar3,uVar4,param_4,param_5,param_6,param_7,puVar5);" (assignment_expression "piVar6 = (int *)(*(code *)PTR_sk_new_000b03bc)\n                                    (uVar3,uVar4,param_4,param_5,param_6,param_7,puVar5)" identifier = (cast_expression "(int *)(*(code *)PTR_sk_new_000b03bc)\n                                    (uVar3,uVar4,param_4,param_5,param_6,param_7,puVar5)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_sk_new_000b03bc)\n                                    (uVar3,uVar4,param_4,param_5,param_6,param_7,puVar5)" (parenthesized_expression "(*(code *)PTR_sk_new_000b03bc)" ( (pointer_expression "*(code *)PTR_sk_new_000b03bc" * (cast_expression "(code *)PTR_sk_new_000b03bc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar3,uVar4,param_4,param_5,param_6,param_7,puVar5)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier ))))) ;) (expression_statement "puVar2[2] = piVar6;" (assignment_expression "puVar2[2] = piVar6" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar1 = (**(code **)(*piVar6 + 0x1c))(piVar6);" (assignment_expression "iVar1 = (**(code **)(*piVar6 + 0x1c))(piVar6)" identifier = (call_expression "(**(code **)(*piVar6 + 0x1c))(piVar6)" (parenthesized_expression "(**(code **)(*piVar6 + 0x1c))" ( (pointer_expression "**(code **)(*piVar6 + 0x1c)" * (pointer_expression "*(code **)(*piVar6 + 0x1c)" * (cast_expression "(code **)(*piVar6 + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar6 + 0x1c)" ( (binary_expression "*piVar6 + 0x1c" (pointer_expression "*piVar6" * identifier) + number_literal) ))))) )) (argument_list "(piVar6)" ( identifier )))) ;) (if_statement "if (iVar1 == 0) {\n            (**(code **)(*(int *)puVar2[2] + 0x18))((int *)puVar2[2],0);\n            (*(code *)puVar2[0x13])(puVar2,0xffffffff);\n          }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n            (**(code **)(*(int *)puVar2[2] + 0x18))((int *)puVar2[2],0);\n            (*(code *)puVar2[0x13])(puVar2,0xffffffff);\n          }" { (expression_statement "(**(code **)(*(int *)puVar2[2] + 0x18))((int *)puVar2[2],0);" (call_expression "(**(code **)(*(int *)puVar2[2] + 0x18))((int *)puVar2[2],0)" (parenthesized_expression "(**(code **)(*(int *)puVar2[2] + 0x18))" ( (pointer_expression "**(code **)(*(int *)puVar2[2] + 0x18)" * (pointer_expression "*(code **)(*(int *)puVar2[2] + 0x18)" * (cast_expression "(code **)(*(int *)puVar2[2] + 0x18)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)puVar2[2] + 0x18)" ( (binary_expression "*(int *)puVar2[2] + 0x18" (pointer_expression "*(int *)puVar2[2]" * (cast_expression "(int *)puVar2[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar2[2]" identifier [ number_literal ]))) + number_literal) ))))) )) (argument_list "((int *)puVar2[2],0)" ( (cast_expression "(int *)puVar2[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar2[2]" identifier [ number_literal ])) , number_literal ))) ;) (expression_statement "(*(code *)puVar2[0x13])(puVar2,0xffffffff);" (call_expression "(*(code *)puVar2[0x13])(puVar2,0xffffffff)" (parenthesized_expression "(*(code *)puVar2[0x13])" ( (pointer_expression "*(code *)puVar2[0x13]" * (cast_expression "(code *)puVar2[0x13]" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "puVar2[0x13]" identifier [ number_literal ]))) )) (argument_list "(puVar2,0xffffffff)" ( identifier , number_literal ))) ;) })) }) (else_clause "else {\n          puVar2[1] = PTR_s_Present_000b0188 + -0x124c;\n          safefree(puVar5);\n          (*(code *)PTR_sk_addr_free_000b0368)(uVar3);\n        }" else (compound_statement "{\n          puVar2[1] = PTR_s_Present_000b0188 + -0x124c;\n          safefree(puVar5);\n          (*(code *)PTR_sk_addr_free_000b0368)(uVar3);\n        }" { (expression_statement "puVar2[1] = PTR_s_Present_000b0188 + -0x124c;" (assignment_expression "puVar2[1] = PTR_s_Present_000b0188 + -0x124c" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = (binary_expression "PTR_s_Present_000b0188 + -0x124c" identifier + number_literal)) ;) (expression_statement "safefree(puVar5);" (call_expression "safefree(puVar5)" identifier (argument_list "(puVar5)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_sk_addr_free_000b0368)(uVar3);" (call_expression "(*(code *)PTR_sk_addr_free_000b0368)(uVar3)" (parenthesized_expression "(*(code *)PTR_sk_addr_free_000b0368)" ( (pointer_expression "*(code *)PTR_sk_addr_free_000b0368" * (cast_expression "(code *)PTR_sk_addr_free_000b0368" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar3)" ( identifier ))) ;) }))) })) (goto_statement "goto LAB_000250c4;" goto statement_identifier ;) })) })) (expression_statement "puVar2 = (undefined4 *)\n           (*(code *)PTR_sk_new_000b03bc)(param_1,param_3,param_4,param_5,param_6,param_7,param_8);" (assignment_expression "puVar2 = (undefined4 *)\n           (*(code *)PTR_sk_new_000b03bc)(param_1,param_3,param_4,param_5,param_6,param_7,param_8)" identifier = (cast_expression "(undefined4 *)\n           (*(code *)PTR_sk_new_000b03bc)(param_1,param_3,param_4,param_5,param_6,param_7,param_8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_sk_new_000b03bc)(param_1,param_3,param_4,param_5,param_6,param_7,param_8)" (parenthesized_expression "(*(code *)PTR_sk_new_000b03bc)" ( (pointer_expression "*(code *)PTR_sk_new_000b03bc" * (cast_expression "(code *)PTR_sk_new_000b03bc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1,param_3,param_4,param_5,param_6,param_7,param_8)" ( identifier , identifier , identifier , identifier , identifier , identifier , identifier ))))) ;) (labeled_statement "LAB_000250c4:\n  if (local_2c == *(int *)puVar9) {\n    return puVar2;\n  }" statement_identifier : (if_statement "if (local_2c == *(int *)puVar9) {\n    return puVar2;\n  }" if (parenthesized_expression "(local_2c == *(int *)puVar9)" ( (binary_expression "local_2c == *(int *)puVar9" identifier == (pointer_expression "*(int *)puVar9" * (cast_expression "(int *)puVar9" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return puVar2;\n  }" { (return_statement "return puVar2;" return identifier ;) }))) (expression_statement "puVar9 = PTR___stack_chk_fail_000b0c70;" (assignment_expression "puVar9 = PTR___stack_chk_fail_000b0c70" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_000b0c70)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b0c70)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b0c70)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000b0c70" * (cast_expression "(code *)PTR___stack_chk_fail_000b0c70" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "puVar2 = (undefined4 *)(**(code **)(puVar9 + 0x8ae38))();" (assignment_expression "puVar2 = (undefined4 *)(**(code **)(puVar9 + 0x8ae38))()" identifier = (cast_expression "(undefined4 *)(**(code **)(puVar9 + 0x8ae38))()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar9 + 0x8ae38))()" (parenthesized_expression "(**(code **)(puVar9 + 0x8ae38))" ( (pointer_expression "**(code **)(puVar9 + 0x8ae38)" * (pointer_expression "*(code **)(puVar9 + 0x8ae38)" * (cast_expression "(code **)(puVar9 + 0x8ae38)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar9 + 0x8ae38)" ( (binary_expression "puVar9 + 0x8ae38" identifier + number_literal) ))))) )) (argument_list "()" ( ))))) ;) (return_statement "return puVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , IDENT , IDENT , IDENT , IDENT , IDENT , IDENT , IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }))))))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT , IDENT , IDENT , IDENT )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (pointer_expression * IDENT)))) )) (argument_list ( IDENT , LIT , LIT , LIT , 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 ( LIT , LIT ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }))))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT , (binary_expression IDENT + LIT) )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (pointer_expression * IDENT)))) )) (argument_list ( IDENT , LIT , LIT , LIT , IDENT , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (pointer_expression & IDENT) , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT , IDENT )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (pointer_expression * IDENT)))) )) (argument_list ( IDENT , LIT , LIT , LIT , IDENT , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , IDENT , IDENT , IDENT , IDENT , IDENT ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (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 * IDENT) + LIT) ))))) )) (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) + LIT) ))))) )) (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) , LIT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) )) (argument_list ( IDENT , LIT ))) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) }))) })) (goto_statement goto statement_identifier ;) })) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , IDENT , IDENT , IDENT , IDENT , IDENT ))))) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return IDENT ;) }))) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( ))))) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 *\nnew_connection(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n              undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 *param_8,\n              undefined4 param_9)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  int *piVar6;\n  undefined *puVar7;\n  undefined *puVar8;\n  undefined *puVar9;\n  undefined4 local_130;\n  undefined1 auStack_12c [256];\n  int local_2c;\n  \n  puVar9 = PTR___stack_chk_guard_000b0c9c;\n  local_2c = *(int *)PTR___stack_chk_guard_000b0c9c;\n  iVar1 = conf_get_int(param_9,0xd);\n  if (iVar1 != 0) {\n    iVar1 = proxy_for_destination(param_1,param_2,param_3,param_9);\n    if (iVar1 != 0) {\n      puVar2 = (undefined4 *)\n               (*(code *)PTR_platform_new_connection_000b03c0)\n                         (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9);\n      if (puVar2 == (undefined4 *)0x0) {\n        puVar2 = (undefined4 *)safemalloc(1,0x88);\n        *puVar2 = PTR_DAT_000b0178 + -0x1158;\n        uVar3 = conf_copy(param_9);\n        puVar2[0x1d] = uVar3;\n        puVar2[3] = param_8;\n        puVar2[4] = param_1;\n        puVar2[5] = param_3;\n        puVar2[1] = 0;\n        puVar2[0xc] = 0;\n        puVar2[0x10] = 0;\n        puVar2[0x12] = 0;\n        bufchain_init(puVar2 + 0xd);\n        bufchain_init(puVar2 + 6);\n        bufchain_init(puVar2 + 9);\n        puVar2[2] = 0;\n        puVar2[0x11] = 0xffffffff;\n        puVar2[0x13] = 0;\n        iVar1 = conf_get_int(param_9,0xd);\n        puVar8 = PTR_s_Present_000b0188;\n        if (iVar1 == 3) {\n          puVar2[0x13] = PTR_proxy_http_negotiate_000b03c8;\n          puVar8 = puVar8 + -0x12c0;\n        }\n        else if (iVar1 == 1) {\n          puVar2[0x13] = PTR_proxy_socks4_negotiate_000b03cc;\n          puVar8 = puVar8 + -0x12b8;\n        }\n        else if (iVar1 == 2) {\n          puVar2[0x13] = PTR_proxy_socks5_negotiate_000b03d0;\n          puVar8 = puVar8 + -0x12b0;\n        }\n        else {\n          if (iVar1 != 4) {\n            puVar2[1] = PTR_s_Present_000b0188 + -0x12a0;\n            goto LAB_000250c4;\n          }\n          puVar8 = PTR_s_Present_000b0188 + -0x12a8;\n          puVar2[0x13] = PTR_proxy_telnet_negotiate_000b03c4;\n        }\n        uVar3 = conf_get_str(param_9,0xe);\n        uVar4 = conf_get_int(param_9,0xf);\n        uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x127c,puVar8,uVar3,uVar4,param_2,param_3);\n        (**(code **)*param_8)(param_8,2,0,0,uVar3,0);\n        safefree(uVar3);\n        puVar5 = (undefined4 *)safemalloc(1,8);\n        puVar5[1] = puVar2;\n        *puVar5 = PTR_DAT_000b0178 + -0x116c;\n        uVar3 = conf_get_str(param_9,0xe);\n        iVar1 = conf_get_int(param_9,3);\n        if (iVar1 == 1) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1320;\n        }\n        else if (iVar1 == 2) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1318;\n        }\n        else {\n          puVar7 = PTR_s_Present_000b0188 + 0x2d54;\n        }\n        uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x12e0,uVar3,puVar7,\n                          PTR_s_Present_000b0188 + -0x163c);\n        (**(code **)*param_8)(param_8,2,0,0,uVar3,0);\n        safefree(uVar3);\n        uVar3 = conf_get_str(param_9,0xe);\n        uVar4 = conf_get_int(param_9,3);\n        uVar3 = (*(code *)PTR_sk_namelookup_000b03b0)(uVar3,&local_130,uVar4);\n        iVar1 = (*(code *)PTR_sk_addr_error_000b0364)(uVar3);\n        if (iVar1 == 0) {\n          safefree(local_130);\n          (*(code *)PTR_sk_getaddr_000b0208)(uVar3,auStack_12c,0x100);\n          uVar4 = conf_get_int(param_9,0xf);\n          uVar4 = dupprintf(PTR_s_Present_000b0188 + -0x121c,puVar8,auStack_12c,uVar4);\n          (**(code **)*param_8)(param_8,2,0,0,uVar4,0);\n          safefree(uVar4);\n          uVar4 = conf_get_int(param_9,0xf);\n          piVar6 = (int *)(*(code *)PTR_sk_new_000b03bc)\n                                    (uVar3,uVar4,param_4,param_5,param_6,param_7,puVar5);\n          puVar2[2] = piVar6;\n          iVar1 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n          if (iVar1 == 0) {\n            (**(code **)(*(int *)puVar2[2] + 0x18))((int *)puVar2[2],0);\n            (*(code *)puVar2[0x13])(puVar2,0xffffffff);\n          }\n        }\n        else {\n          puVar2[1] = PTR_s_Present_000b0188 + -0x124c;\n          safefree(puVar5);\n          (*(code *)PTR_sk_addr_free_000b0368)(uVar3);\n        }\n      }\n      goto LAB_000250c4;\n    }\n  }\n  puVar2 = (undefined4 *)\n           (*(code *)PTR_sk_new_000b03bc)(param_1,param_3,param_4,param_5,param_6,param_7,param_8);\nLAB_000250c4:\n  if (local_2c == *(int *)puVar9) {\n    return puVar2;\n  }\n  puVar9 = PTR___stack_chk_fail_000b0c70;\n  (*(code *)PTR___stack_chk_fail_000b0c70)();\n  puVar2 = (undefined4 *)(**(code **)(puVar9 + 0x8ae38))();\n  return puVar2;\n}" (type_identifier "undefined4") (pointer_declarator "*\nnew_connection(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n              undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 *param_8,\n              undefined4 param_9)" (* "*") (function_declarator "new_connection(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n              undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 *param_8,\n              undefined4 param_9)" (identifier "new_connection") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,\n              undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 *param_8,\n              undefined4 param_9)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "undefined4 param_5" (type_identifier "undefined4") (identifier "param_5")) (, ",") (parameter_declaration "undefined4 param_6" (type_identifier "undefined4") (identifier "param_6")) (, ",") (parameter_declaration "undefined4 param_7" (type_identifier "undefined4") (identifier "param_7")) (, ",") (parameter_declaration "undefined4 *param_8" (type_identifier "undefined4") (pointer_declarator "*param_8" (* "*") (identifier "param_8"))) (, ",") (parameter_declaration "undefined4 param_9" (type_identifier "undefined4") (identifier "param_9")) () ")")))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 uVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  int *piVar6;\n  undefined *puVar7;\n  undefined *puVar8;\n  undefined *puVar9;\n  undefined4 local_130;\n  undefined1 auStack_12c [256];\n  int local_2c;\n  \n  puVar9 = PTR___stack_chk_guard_000b0c9c;\n  local_2c = *(int *)PTR___stack_chk_guard_000b0c9c;\n  iVar1 = conf_get_int(param_9,0xd);\n  if (iVar1 != 0) {\n    iVar1 = proxy_for_destination(param_1,param_2,param_3,param_9);\n    if (iVar1 != 0) {\n      puVar2 = (undefined4 *)\n               (*(code *)PTR_platform_new_connection_000b03c0)\n                         (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9);\n      if (puVar2 == (undefined4 *)0x0) {\n        puVar2 = (undefined4 *)safemalloc(1,0x88);\n        *puVar2 = PTR_DAT_000b0178 + -0x1158;\n        uVar3 = conf_copy(param_9);\n        puVar2[0x1d] = uVar3;\n        puVar2[3] = param_8;\n        puVar2[4] = param_1;\n        puVar2[5] = param_3;\n        puVar2[1] = 0;\n        puVar2[0xc] = 0;\n        puVar2[0x10] = 0;\n        puVar2[0x12] = 0;\n        bufchain_init(puVar2 + 0xd);\n        bufchain_init(puVar2 + 6);\n        bufchain_init(puVar2 + 9);\n        puVar2[2] = 0;\n        puVar2[0x11] = 0xffffffff;\n        puVar2[0x13] = 0;\n        iVar1 = conf_get_int(param_9,0xd);\n        puVar8 = PTR_s_Present_000b0188;\n        if (iVar1 == 3) {\n          puVar2[0x13] = PTR_proxy_http_negotiate_000b03c8;\n          puVar8 = puVar8 + -0x12c0;\n        }\n        else if (iVar1 == 1) {\n          puVar2[0x13] = PTR_proxy_socks4_negotiate_000b03cc;\n          puVar8 = puVar8 + -0x12b8;\n        }\n        else if (iVar1 == 2) {\n          puVar2[0x13] = PTR_proxy_socks5_negotiate_000b03d0;\n          puVar8 = puVar8 + -0x12b0;\n        }\n        else {\n          if (iVar1 != 4) {\n            puVar2[1] = PTR_s_Present_000b0188 + -0x12a0;\n            goto LAB_000250c4;\n          }\n          puVar8 = PTR_s_Present_000b0188 + -0x12a8;\n          puVar2[0x13] = PTR_proxy_telnet_negotiate_000b03c4;\n        }\n        uVar3 = conf_get_str(param_9,0xe);\n        uVar4 = conf_get_int(param_9,0xf);\n        uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x127c,puVar8,uVar3,uVar4,param_2,param_3);\n        (**(code **)*param_8)(param_8,2,0,0,uVar3,0);\n        safefree(uVar3);\n        puVar5 = (undefined4 *)safemalloc(1,8);\n        puVar5[1] = puVar2;\n        *puVar5 = PTR_DAT_000b0178 + -0x116c;\n        uVar3 = conf_get_str(param_9,0xe);\n        iVar1 = conf_get_int(param_9,3);\n        if (iVar1 == 1) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1320;\n        }\n        else if (iVar1 == 2) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1318;\n        }\n        else {\n          puVar7 = PTR_s_Present_000b0188 + 0x2d54;\n        }\n        uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x12e0,uVar3,puVar7,\n                          PTR_s_Present_000b0188 + -0x163c);\n        (**(code **)*param_8)(param_8,2,0,0,uVar3,0);\n        safefree(uVar3);\n        uVar3 = conf_get_str(param_9,0xe);\n        uVar4 = conf_get_int(param_9,3);\n        uVar3 = (*(code *)PTR_sk_namelookup_000b03b0)(uVar3,&local_130,uVar4);\n        iVar1 = (*(code *)PTR_sk_addr_error_000b0364)(uVar3);\n        if (iVar1 == 0) {\n          safefree(local_130);\n          (*(code *)PTR_sk_getaddr_000b0208)(uVar3,auStack_12c,0x100);\n          uVar4 = conf_get_int(param_9,0xf);\n          uVar4 = dupprintf(PTR_s_Present_000b0188 + -0x121c,puVar8,auStack_12c,uVar4);\n          (**(code **)*param_8)(param_8,2,0,0,uVar4,0);\n          safefree(uVar4);\n          uVar4 = conf_get_int(param_9,0xf);\n          piVar6 = (int *)(*(code *)PTR_sk_new_000b03bc)\n                                    (uVar3,uVar4,param_4,param_5,param_6,param_7,puVar5);\n          puVar2[2] = piVar6;\n          iVar1 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n          if (iVar1 == 0) {\n            (**(code **)(*(int *)puVar2[2] + 0x18))((int *)puVar2[2],0);\n            (*(code *)puVar2[0x13])(puVar2,0xffffffff);\n          }\n        }\n        else {\n          puVar2[1] = PTR_s_Present_000b0188 + -0x124c;\n          safefree(puVar5);\n          (*(code *)PTR_sk_addr_free_000b0368)(uVar3);\n        }\n      }\n      goto LAB_000250c4;\n    }\n  }\n  puVar2 = (undefined4 *)\n           (*(code *)PTR_sk_new_000b03bc)(param_1,param_3,param_4,param_5,param_6,param_7,param_8);\nLAB_000250c4:\n  if (local_2c == *(int *)puVar9) {\n    return puVar2;\n  }\n  puVar9 = PTR___stack_chk_fail_000b0c70;\n  (*(code *)PTR___stack_chk_fail_000b0c70)();\n  puVar2 = (undefined4 *)(**(code **)(puVar9 + 0x8ae38))();\n  return puVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "undefined4 *puVar5;" (type_identifier "undefined4") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "int *piVar6;" (primitive_type "int") (pointer_declarator "*piVar6" (* "*") (identifier "piVar6")) (; ";")) (declaration "undefined *puVar7;" (type_identifier "undefined") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (declaration "undefined *puVar8;" (type_identifier "undefined") (pointer_declarator "*puVar8" (* "*") (identifier "puVar8")) (; ";")) (declaration "undefined *puVar9;" (type_identifier "undefined") (pointer_declarator "*puVar9" (* "*") (identifier "puVar9")) (; ";")) (declaration "undefined4 local_130;" (type_identifier "undefined4") (identifier "local_130") (; ";")) (declaration "undefined1 auStack_12c [256];" (type_identifier "undefined1") (array_declarator "auStack_12c [256]" (identifier "auStack_12c") ([ "[") (number_literal "256") (] "]")) (; ";")) (declaration "int local_2c;" (primitive_type "int") (identifier "local_2c") (; ";")) (expression_statement "puVar9 = PTR___stack_chk_guard_000b0c9c;" (assignment_expression "puVar9 = PTR___stack_chk_guard_000b0c9c" (identifier "puVar9") (= "=") (identifier "PTR___stack_chk_guard_000b0c9c")) (; ";")) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_000b0c9c;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_000b0c9c" (identifier "local_2c") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_000b0c9c" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_000b0c9c" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_000b0c9c")))) (; ";")) (expression_statement "iVar1 = conf_get_int(param_9,0xd);" (assignment_expression "iVar1 = conf_get_int(param_9,0xd)" (identifier "iVar1") (= "=") (call_expression "conf_get_int(param_9,0xd)" (identifier "conf_get_int") (argument_list "(param_9,0xd)" (( "(") (identifier "param_9") (, ",") (number_literal "0xd") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n    iVar1 = proxy_for_destination(param_1,param_2,param_3,param_9);\n    if (iVar1 != 0) {\n      puVar2 = (undefined4 *)\n               (*(code *)PTR_platform_new_connection_000b03c0)\n                         (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9);\n      if (puVar2 == (undefined4 *)0x0) {\n        puVar2 = (undefined4 *)safemalloc(1,0x88);\n        *puVar2 = PTR_DAT_000b0178 + -0x1158;\n        uVar3 = conf_copy(param_9);\n        puVar2[0x1d] = uVar3;\n        puVar2[3] = param_8;\n        puVar2[4] = param_1;\n        puVar2[5] = param_3;\n        puVar2[1] = 0;\n        puVar2[0xc] = 0;\n        puVar2[0x10] = 0;\n        puVar2[0x12] = 0;\n        bufchain_init(puVar2 + 0xd);\n        bufchain_init(puVar2 + 6);\n        bufchain_init(puVar2 + 9);\n        puVar2[2] = 0;\n        puVar2[0x11] = 0xffffffff;\n        puVar2[0x13] = 0;\n        iVar1 = conf_get_int(param_9,0xd);\n        puVar8 = PTR_s_Present_000b0188;\n        if (iVar1 == 3) {\n          puVar2[0x13] = PTR_proxy_http_negotiate_000b03c8;\n          puVar8 = puVar8 + -0x12c0;\n        }\n        else if (iVar1 == 1) {\n          puVar2[0x13] = PTR_proxy_socks4_negotiate_000b03cc;\n          puVar8 = puVar8 + -0x12b8;\n        }\n        else if (iVar1 == 2) {\n          puVar2[0x13] = PTR_proxy_socks5_negotiate_000b03d0;\n          puVar8 = puVar8 + -0x12b0;\n        }\n        else {\n          if (iVar1 != 4) {\n            puVar2[1] = PTR_s_Present_000b0188 + -0x12a0;\n            goto LAB_000250c4;\n          }\n          puVar8 = PTR_s_Present_000b0188 + -0x12a8;\n          puVar2[0x13] = PTR_proxy_telnet_negotiate_000b03c4;\n        }\n        uVar3 = conf_get_str(param_9,0xe);\n        uVar4 = conf_get_int(param_9,0xf);\n        uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x127c,puVar8,uVar3,uVar4,param_2,param_3);\n        (**(code **)*param_8)(param_8,2,0,0,uVar3,0);\n        safefree(uVar3);\n        puVar5 = (undefined4 *)safemalloc(1,8);\n        puVar5[1] = puVar2;\n        *puVar5 = PTR_DAT_000b0178 + -0x116c;\n        uVar3 = conf_get_str(param_9,0xe);\n        iVar1 = conf_get_int(param_9,3);\n        if (iVar1 == 1) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1320;\n        }\n        else if (iVar1 == 2) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1318;\n        }\n        else {\n          puVar7 = PTR_s_Present_000b0188 + 0x2d54;\n        }\n        uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x12e0,uVar3,puVar7,\n                          PTR_s_Present_000b0188 + -0x163c);\n        (**(code **)*param_8)(param_8,2,0,0,uVar3,0);\n        safefree(uVar3);\n        uVar3 = conf_get_str(param_9,0xe);\n        uVar4 = conf_get_int(param_9,3);\n        uVar3 = (*(code *)PTR_sk_namelookup_000b03b0)(uVar3,&local_130,uVar4);\n        iVar1 = (*(code *)PTR_sk_addr_error_000b0364)(uVar3);\n        if (iVar1 == 0) {\n          safefree(local_130);\n          (*(code *)PTR_sk_getaddr_000b0208)(uVar3,auStack_12c,0x100);\n          uVar4 = conf_get_int(param_9,0xf);\n          uVar4 = dupprintf(PTR_s_Present_000b0188 + -0x121c,puVar8,auStack_12c,uVar4);\n          (**(code **)*param_8)(param_8,2,0,0,uVar4,0);\n          safefree(uVar4);\n          uVar4 = conf_get_int(param_9,0xf);\n          piVar6 = (int *)(*(code *)PTR_sk_new_000b03bc)\n                                    (uVar3,uVar4,param_4,param_5,param_6,param_7,puVar5);\n          puVar2[2] = piVar6;\n          iVar1 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n          if (iVar1 == 0) {\n            (**(code **)(*(int *)puVar2[2] + 0x18))((int *)puVar2[2],0);\n            (*(code *)puVar2[0x13])(puVar2,0xffffffff);\n          }\n        }\n        else {\n          puVar2[1] = PTR_s_Present_000b0188 + -0x124c;\n          safefree(puVar5);\n          (*(code *)PTR_sk_addr_free_000b0368)(uVar3);\n        }\n      }\n      goto LAB_000250c4;\n    }\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = proxy_for_destination(param_1,param_2,param_3,param_9);\n    if (iVar1 != 0) {\n      puVar2 = (undefined4 *)\n               (*(code *)PTR_platform_new_connection_000b03c0)\n                         (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9);\n      if (puVar2 == (undefined4 *)0x0) {\n        puVar2 = (undefined4 *)safemalloc(1,0x88);\n        *puVar2 = PTR_DAT_000b0178 + -0x1158;\n        uVar3 = conf_copy(param_9);\n        puVar2[0x1d] = uVar3;\n        puVar2[3] = param_8;\n        puVar2[4] = param_1;\n        puVar2[5] = param_3;\n        puVar2[1] = 0;\n        puVar2[0xc] = 0;\n        puVar2[0x10] = 0;\n        puVar2[0x12] = 0;\n        bufchain_init(puVar2 + 0xd);\n        bufchain_init(puVar2 + 6);\n        bufchain_init(puVar2 + 9);\n        puVar2[2] = 0;\n        puVar2[0x11] = 0xffffffff;\n        puVar2[0x13] = 0;\n        iVar1 = conf_get_int(param_9,0xd);\n        puVar8 = PTR_s_Present_000b0188;\n        if (iVar1 == 3) {\n          puVar2[0x13] = PTR_proxy_http_negotiate_000b03c8;\n          puVar8 = puVar8 + -0x12c0;\n        }\n        else if (iVar1 == 1) {\n          puVar2[0x13] = PTR_proxy_socks4_negotiate_000b03cc;\n          puVar8 = puVar8 + -0x12b8;\n        }\n        else if (iVar1 == 2) {\n          puVar2[0x13] = PTR_proxy_socks5_negotiate_000b03d0;\n          puVar8 = puVar8 + -0x12b0;\n        }\n        else {\n          if (iVar1 != 4) {\n            puVar2[1] = PTR_s_Present_000b0188 + -0x12a0;\n            goto LAB_000250c4;\n          }\n          puVar8 = PTR_s_Present_000b0188 + -0x12a8;\n          puVar2[0x13] = PTR_proxy_telnet_negotiate_000b03c4;\n        }\n        uVar3 = conf_get_str(param_9,0xe);\n        uVar4 = conf_get_int(param_9,0xf);\n        uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x127c,puVar8,uVar3,uVar4,param_2,param_3);\n        (**(code **)*param_8)(param_8,2,0,0,uVar3,0);\n        safefree(uVar3);\n        puVar5 = (undefined4 *)safemalloc(1,8);\n        puVar5[1] = puVar2;\n        *puVar5 = PTR_DAT_000b0178 + -0x116c;\n        uVar3 = conf_get_str(param_9,0xe);\n        iVar1 = conf_get_int(param_9,3);\n        if (iVar1 == 1) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1320;\n        }\n        else if (iVar1 == 2) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1318;\n        }\n        else {\n          puVar7 = PTR_s_Present_000b0188 + 0x2d54;\n        }\n        uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x12e0,uVar3,puVar7,\n                          PTR_s_Present_000b0188 + -0x163c);\n        (**(code **)*param_8)(param_8,2,0,0,uVar3,0);\n        safefree(uVar3);\n        uVar3 = conf_get_str(param_9,0xe);\n        uVar4 = conf_get_int(param_9,3);\n        uVar3 = (*(code *)PTR_sk_namelookup_000b03b0)(uVar3,&local_130,uVar4);\n        iVar1 = (*(code *)PTR_sk_addr_error_000b0364)(uVar3);\n        if (iVar1 == 0) {\n          safefree(local_130);\n          (*(code *)PTR_sk_getaddr_000b0208)(uVar3,auStack_12c,0x100);\n          uVar4 = conf_get_int(param_9,0xf);\n          uVar4 = dupprintf(PTR_s_Present_000b0188 + -0x121c,puVar8,auStack_12c,uVar4);\n          (**(code **)*param_8)(param_8,2,0,0,uVar4,0);\n          safefree(uVar4);\n          uVar4 = conf_get_int(param_9,0xf);\n          piVar6 = (int *)(*(code *)PTR_sk_new_000b03bc)\n                                    (uVar3,uVar4,param_4,param_5,param_6,param_7,puVar5);\n          puVar2[2] = piVar6;\n          iVar1 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n          if (iVar1 == 0) {\n            (**(code **)(*(int *)puVar2[2] + 0x18))((int *)puVar2[2],0);\n            (*(code *)puVar2[0x13])(puVar2,0xffffffff);\n          }\n        }\n        else {\n          puVar2[1] = PTR_s_Present_000b0188 + -0x124c;\n          safefree(puVar5);\n          (*(code *)PTR_sk_addr_free_000b0368)(uVar3);\n        }\n      }\n      goto LAB_000250c4;\n    }\n  }" ({ "{") (expression_statement "iVar1 = proxy_for_destination(param_1,param_2,param_3,param_9);" (assignment_expression "iVar1 = proxy_for_destination(param_1,param_2,param_3,param_9)" (identifier "iVar1") (= "=") (call_expression "proxy_for_destination(param_1,param_2,param_3,param_9)" (identifier "proxy_for_destination") (argument_list "(param_1,param_2,param_3,param_9)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_9") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n      puVar2 = (undefined4 *)\n               (*(code *)PTR_platform_new_connection_000b03c0)\n                         (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9);\n      if (puVar2 == (undefined4 *)0x0) {\n        puVar2 = (undefined4 *)safemalloc(1,0x88);\n        *puVar2 = PTR_DAT_000b0178 + -0x1158;\n        uVar3 = conf_copy(param_9);\n        puVar2[0x1d] = uVar3;\n        puVar2[3] = param_8;\n        puVar2[4] = param_1;\n        puVar2[5] = param_3;\n        puVar2[1] = 0;\n        puVar2[0xc] = 0;\n        puVar2[0x10] = 0;\n        puVar2[0x12] = 0;\n        bufchain_init(puVar2 + 0xd);\n        bufchain_init(puVar2 + 6);\n        bufchain_init(puVar2 + 9);\n        puVar2[2] = 0;\n        puVar2[0x11] = 0xffffffff;\n        puVar2[0x13] = 0;\n        iVar1 = conf_get_int(param_9,0xd);\n        puVar8 = PTR_s_Present_000b0188;\n        if (iVar1 == 3) {\n          puVar2[0x13] = PTR_proxy_http_negotiate_000b03c8;\n          puVar8 = puVar8 + -0x12c0;\n        }\n        else if (iVar1 == 1) {\n          puVar2[0x13] = PTR_proxy_socks4_negotiate_000b03cc;\n          puVar8 = puVar8 + -0x12b8;\n        }\n        else if (iVar1 == 2) {\n          puVar2[0x13] = PTR_proxy_socks5_negotiate_000b03d0;\n          puVar8 = puVar8 + -0x12b0;\n        }\n        else {\n          if (iVar1 != 4) {\n            puVar2[1] = PTR_s_Present_000b0188 + -0x12a0;\n            goto LAB_000250c4;\n          }\n          puVar8 = PTR_s_Present_000b0188 + -0x12a8;\n          puVar2[0x13] = PTR_proxy_telnet_negotiate_000b03c4;\n        }\n        uVar3 = conf_get_str(param_9,0xe);\n        uVar4 = conf_get_int(param_9,0xf);\n        uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x127c,puVar8,uVar3,uVar4,param_2,param_3);\n        (**(code **)*param_8)(param_8,2,0,0,uVar3,0);\n        safefree(uVar3);\n        puVar5 = (undefined4 *)safemalloc(1,8);\n        puVar5[1] = puVar2;\n        *puVar5 = PTR_DAT_000b0178 + -0x116c;\n        uVar3 = conf_get_str(param_9,0xe);\n        iVar1 = conf_get_int(param_9,3);\n        if (iVar1 == 1) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1320;\n        }\n        else if (iVar1 == 2) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1318;\n        }\n        else {\n          puVar7 = PTR_s_Present_000b0188 + 0x2d54;\n        }\n        uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x12e0,uVar3,puVar7,\n                          PTR_s_Present_000b0188 + -0x163c);\n        (**(code **)*param_8)(param_8,2,0,0,uVar3,0);\n        safefree(uVar3);\n        uVar3 = conf_get_str(param_9,0xe);\n        uVar4 = conf_get_int(param_9,3);\n        uVar3 = (*(code *)PTR_sk_namelookup_000b03b0)(uVar3,&local_130,uVar4);\n        iVar1 = (*(code *)PTR_sk_addr_error_000b0364)(uVar3);\n        if (iVar1 == 0) {\n          safefree(local_130);\n          (*(code *)PTR_sk_getaddr_000b0208)(uVar3,auStack_12c,0x100);\n          uVar4 = conf_get_int(param_9,0xf);\n          uVar4 = dupprintf(PTR_s_Present_000b0188 + -0x121c,puVar8,auStack_12c,uVar4);\n          (**(code **)*param_8)(param_8,2,0,0,uVar4,0);\n          safefree(uVar4);\n          uVar4 = conf_get_int(param_9,0xf);\n          piVar6 = (int *)(*(code *)PTR_sk_new_000b03bc)\n                                    (uVar3,uVar4,param_4,param_5,param_6,param_7,puVar5);\n          puVar2[2] = piVar6;\n          iVar1 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n          if (iVar1 == 0) {\n            (**(code **)(*(int *)puVar2[2] + 0x18))((int *)puVar2[2],0);\n            (*(code *)puVar2[0x13])(puVar2,0xffffffff);\n          }\n        }\n        else {\n          puVar2[1] = PTR_s_Present_000b0188 + -0x124c;\n          safefree(puVar5);\n          (*(code *)PTR_sk_addr_free_000b0368)(uVar3);\n        }\n      }\n      goto LAB_000250c4;\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      puVar2 = (undefined4 *)\n               (*(code *)PTR_platform_new_connection_000b03c0)\n                         (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9);\n      if (puVar2 == (undefined4 *)0x0) {\n        puVar2 = (undefined4 *)safemalloc(1,0x88);\n        *puVar2 = PTR_DAT_000b0178 + -0x1158;\n        uVar3 = conf_copy(param_9);\n        puVar2[0x1d] = uVar3;\n        puVar2[3] = param_8;\n        puVar2[4] = param_1;\n        puVar2[5] = param_3;\n        puVar2[1] = 0;\n        puVar2[0xc] = 0;\n        puVar2[0x10] = 0;\n        puVar2[0x12] = 0;\n        bufchain_init(puVar2 + 0xd);\n        bufchain_init(puVar2 + 6);\n        bufchain_init(puVar2 + 9);\n        puVar2[2] = 0;\n        puVar2[0x11] = 0xffffffff;\n        puVar2[0x13] = 0;\n        iVar1 = conf_get_int(param_9,0xd);\n        puVar8 = PTR_s_Present_000b0188;\n        if (iVar1 == 3) {\n          puVar2[0x13] = PTR_proxy_http_negotiate_000b03c8;\n          puVar8 = puVar8 + -0x12c0;\n        }\n        else if (iVar1 == 1) {\n          puVar2[0x13] = PTR_proxy_socks4_negotiate_000b03cc;\n          puVar8 = puVar8 + -0x12b8;\n        }\n        else if (iVar1 == 2) {\n          puVar2[0x13] = PTR_proxy_socks5_negotiate_000b03d0;\n          puVar8 = puVar8 + -0x12b0;\n        }\n        else {\n          if (iVar1 != 4) {\n            puVar2[1] = PTR_s_Present_000b0188 + -0x12a0;\n            goto LAB_000250c4;\n          }\n          puVar8 = PTR_s_Present_000b0188 + -0x12a8;\n          puVar2[0x13] = PTR_proxy_telnet_negotiate_000b03c4;\n        }\n        uVar3 = conf_get_str(param_9,0xe);\n        uVar4 = conf_get_int(param_9,0xf);\n        uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x127c,puVar8,uVar3,uVar4,param_2,param_3);\n        (**(code **)*param_8)(param_8,2,0,0,uVar3,0);\n        safefree(uVar3);\n        puVar5 = (undefined4 *)safemalloc(1,8);\n        puVar5[1] = puVar2;\n        *puVar5 = PTR_DAT_000b0178 + -0x116c;\n        uVar3 = conf_get_str(param_9,0xe);\n        iVar1 = conf_get_int(param_9,3);\n        if (iVar1 == 1) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1320;\n        }\n        else if (iVar1 == 2) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1318;\n        }\n        else {\n          puVar7 = PTR_s_Present_000b0188 + 0x2d54;\n        }\n        uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x12e0,uVar3,puVar7,\n                          PTR_s_Present_000b0188 + -0x163c);\n        (**(code **)*param_8)(param_8,2,0,0,uVar3,0);\n        safefree(uVar3);\n        uVar3 = conf_get_str(param_9,0xe);\n        uVar4 = conf_get_int(param_9,3);\n        uVar3 = (*(code *)PTR_sk_namelookup_000b03b0)(uVar3,&local_130,uVar4);\n        iVar1 = (*(code *)PTR_sk_addr_error_000b0364)(uVar3);\n        if (iVar1 == 0) {\n          safefree(local_130);\n          (*(code *)PTR_sk_getaddr_000b0208)(uVar3,auStack_12c,0x100);\n          uVar4 = conf_get_int(param_9,0xf);\n          uVar4 = dupprintf(PTR_s_Present_000b0188 + -0x121c,puVar8,auStack_12c,uVar4);\n          (**(code **)*param_8)(param_8,2,0,0,uVar4,0);\n          safefree(uVar4);\n          uVar4 = conf_get_int(param_9,0xf);\n          piVar6 = (int *)(*(code *)PTR_sk_new_000b03bc)\n                                    (uVar3,uVar4,param_4,param_5,param_6,param_7,puVar5);\n          puVar2[2] = piVar6;\n          iVar1 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n          if (iVar1 == 0) {\n            (**(code **)(*(int *)puVar2[2] + 0x18))((int *)puVar2[2],0);\n            (*(code *)puVar2[0x13])(puVar2,0xffffffff);\n          }\n        }\n        else {\n          puVar2[1] = PTR_s_Present_000b0188 + -0x124c;\n          safefree(puVar5);\n          (*(code *)PTR_sk_addr_free_000b0368)(uVar3);\n        }\n      }\n      goto LAB_000250c4;\n    }" ({ "{") (expression_statement "puVar2 = (undefined4 *)\n               (*(code *)PTR_platform_new_connection_000b03c0)\n                         (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9);" (assignment_expression "puVar2 = (undefined4 *)\n               (*(code *)PTR_platform_new_connection_000b03c0)\n                         (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)\n               (*(code *)PTR_platform_new_connection_000b03c0)\n                         (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_platform_new_connection_000b03c0)\n                         (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9)" (parenthesized_expression "(*(code *)PTR_platform_new_connection_000b03c0)" (( "(") (pointer_expression "*(code *)PTR_platform_new_connection_000b03c0" (* "*") (cast_expression "(code *)PTR_platform_new_connection_000b03c0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_platform_new_connection_000b03c0"))) () ")")) (argument_list "(param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "param_5") (, ",") (identifier "param_6") (, ",") (identifier "param_7") (, ",") (identifier "param_8") (, ",") (identifier "param_9") () ")"))))) (; ";")) (if_statement "if (puVar2 == (undefined4 *)0x0) {\n        puVar2 = (undefined4 *)safemalloc(1,0x88);\n        *puVar2 = PTR_DAT_000b0178 + -0x1158;\n        uVar3 = conf_copy(param_9);\n        puVar2[0x1d] = uVar3;\n        puVar2[3] = param_8;\n        puVar2[4] = param_1;\n        puVar2[5] = param_3;\n        puVar2[1] = 0;\n        puVar2[0xc] = 0;\n        puVar2[0x10] = 0;\n        puVar2[0x12] = 0;\n        bufchain_init(puVar2 + 0xd);\n        bufchain_init(puVar2 + 6);\n        bufchain_init(puVar2 + 9);\n        puVar2[2] = 0;\n        puVar2[0x11] = 0xffffffff;\n        puVar2[0x13] = 0;\n        iVar1 = conf_get_int(param_9,0xd);\n        puVar8 = PTR_s_Present_000b0188;\n        if (iVar1 == 3) {\n          puVar2[0x13] = PTR_proxy_http_negotiate_000b03c8;\n          puVar8 = puVar8 + -0x12c0;\n        }\n        else if (iVar1 == 1) {\n          puVar2[0x13] = PTR_proxy_socks4_negotiate_000b03cc;\n          puVar8 = puVar8 + -0x12b8;\n        }\n        else if (iVar1 == 2) {\n          puVar2[0x13] = PTR_proxy_socks5_negotiate_000b03d0;\n          puVar8 = puVar8 + -0x12b0;\n        }\n        else {\n          if (iVar1 != 4) {\n            puVar2[1] = PTR_s_Present_000b0188 + -0x12a0;\n            goto LAB_000250c4;\n          }\n          puVar8 = PTR_s_Present_000b0188 + -0x12a8;\n          puVar2[0x13] = PTR_proxy_telnet_negotiate_000b03c4;\n        }\n        uVar3 = conf_get_str(param_9,0xe);\n        uVar4 = conf_get_int(param_9,0xf);\n        uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x127c,puVar8,uVar3,uVar4,param_2,param_3);\n        (**(code **)*param_8)(param_8,2,0,0,uVar3,0);\n        safefree(uVar3);\n        puVar5 = (undefined4 *)safemalloc(1,8);\n        puVar5[1] = puVar2;\n        *puVar5 = PTR_DAT_000b0178 + -0x116c;\n        uVar3 = conf_get_str(param_9,0xe);\n        iVar1 = conf_get_int(param_9,3);\n        if (iVar1 == 1) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1320;\n        }\n        else if (iVar1 == 2) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1318;\n        }\n        else {\n          puVar7 = PTR_s_Present_000b0188 + 0x2d54;\n        }\n        uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x12e0,uVar3,puVar7,\n                          PTR_s_Present_000b0188 + -0x163c);\n        (**(code **)*param_8)(param_8,2,0,0,uVar3,0);\n        safefree(uVar3);\n        uVar3 = conf_get_str(param_9,0xe);\n        uVar4 = conf_get_int(param_9,3);\n        uVar3 = (*(code *)PTR_sk_namelookup_000b03b0)(uVar3,&local_130,uVar4);\n        iVar1 = (*(code *)PTR_sk_addr_error_000b0364)(uVar3);\n        if (iVar1 == 0) {\n          safefree(local_130);\n          (*(code *)PTR_sk_getaddr_000b0208)(uVar3,auStack_12c,0x100);\n          uVar4 = conf_get_int(param_9,0xf);\n          uVar4 = dupprintf(PTR_s_Present_000b0188 + -0x121c,puVar8,auStack_12c,uVar4);\n          (**(code **)*param_8)(param_8,2,0,0,uVar4,0);\n          safefree(uVar4);\n          uVar4 = conf_get_int(param_9,0xf);\n          piVar6 = (int *)(*(code *)PTR_sk_new_000b03bc)\n                                    (uVar3,uVar4,param_4,param_5,param_6,param_7,puVar5);\n          puVar2[2] = piVar6;\n          iVar1 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n          if (iVar1 == 0) {\n            (**(code **)(*(int *)puVar2[2] + 0x18))((int *)puVar2[2],0);\n            (*(code *)puVar2[0x13])(puVar2,0xffffffff);\n          }\n        }\n        else {\n          puVar2[1] = PTR_s_Present_000b0188 + -0x124c;\n          safefree(puVar5);\n          (*(code *)PTR_sk_addr_free_000b0368)(uVar3);\n        }\n      }" (if "if") (parenthesized_expression "(puVar2 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar2 == (undefined4 *)0x0" (identifier "puVar2") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        puVar2 = (undefined4 *)safemalloc(1,0x88);\n        *puVar2 = PTR_DAT_000b0178 + -0x1158;\n        uVar3 = conf_copy(param_9);\n        puVar2[0x1d] = uVar3;\n        puVar2[3] = param_8;\n        puVar2[4] = param_1;\n        puVar2[5] = param_3;\n        puVar2[1] = 0;\n        puVar2[0xc] = 0;\n        puVar2[0x10] = 0;\n        puVar2[0x12] = 0;\n        bufchain_init(puVar2 + 0xd);\n        bufchain_init(puVar2 + 6);\n        bufchain_init(puVar2 + 9);\n        puVar2[2] = 0;\n        puVar2[0x11] = 0xffffffff;\n        puVar2[0x13] = 0;\n        iVar1 = conf_get_int(param_9,0xd);\n        puVar8 = PTR_s_Present_000b0188;\n        if (iVar1 == 3) {\n          puVar2[0x13] = PTR_proxy_http_negotiate_000b03c8;\n          puVar8 = puVar8 + -0x12c0;\n        }\n        else if (iVar1 == 1) {\n          puVar2[0x13] = PTR_proxy_socks4_negotiate_000b03cc;\n          puVar8 = puVar8 + -0x12b8;\n        }\n        else if (iVar1 == 2) {\n          puVar2[0x13] = PTR_proxy_socks5_negotiate_000b03d0;\n          puVar8 = puVar8 + -0x12b0;\n        }\n        else {\n          if (iVar1 != 4) {\n            puVar2[1] = PTR_s_Present_000b0188 + -0x12a0;\n            goto LAB_000250c4;\n          }\n          puVar8 = PTR_s_Present_000b0188 + -0x12a8;\n          puVar2[0x13] = PTR_proxy_telnet_negotiate_000b03c4;\n        }\n        uVar3 = conf_get_str(param_9,0xe);\n        uVar4 = conf_get_int(param_9,0xf);\n        uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x127c,puVar8,uVar3,uVar4,param_2,param_3);\n        (**(code **)*param_8)(param_8,2,0,0,uVar3,0);\n        safefree(uVar3);\n        puVar5 = (undefined4 *)safemalloc(1,8);\n        puVar5[1] = puVar2;\n        *puVar5 = PTR_DAT_000b0178 + -0x116c;\n        uVar3 = conf_get_str(param_9,0xe);\n        iVar1 = conf_get_int(param_9,3);\n        if (iVar1 == 1) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1320;\n        }\n        else if (iVar1 == 2) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1318;\n        }\n        else {\n          puVar7 = PTR_s_Present_000b0188 + 0x2d54;\n        }\n        uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x12e0,uVar3,puVar7,\n                          PTR_s_Present_000b0188 + -0x163c);\n        (**(code **)*param_8)(param_8,2,0,0,uVar3,0);\n        safefree(uVar3);\n        uVar3 = conf_get_str(param_9,0xe);\n        uVar4 = conf_get_int(param_9,3);\n        uVar3 = (*(code *)PTR_sk_namelookup_000b03b0)(uVar3,&local_130,uVar4);\n        iVar1 = (*(code *)PTR_sk_addr_error_000b0364)(uVar3);\n        if (iVar1 == 0) {\n          safefree(local_130);\n          (*(code *)PTR_sk_getaddr_000b0208)(uVar3,auStack_12c,0x100);\n          uVar4 = conf_get_int(param_9,0xf);\n          uVar4 = dupprintf(PTR_s_Present_000b0188 + -0x121c,puVar8,auStack_12c,uVar4);\n          (**(code **)*param_8)(param_8,2,0,0,uVar4,0);\n          safefree(uVar4);\n          uVar4 = conf_get_int(param_9,0xf);\n          piVar6 = (int *)(*(code *)PTR_sk_new_000b03bc)\n                                    (uVar3,uVar4,param_4,param_5,param_6,param_7,puVar5);\n          puVar2[2] = piVar6;\n          iVar1 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n          if (iVar1 == 0) {\n            (**(code **)(*(int *)puVar2[2] + 0x18))((int *)puVar2[2],0);\n            (*(code *)puVar2[0x13])(puVar2,0xffffffff);\n          }\n        }\n        else {\n          puVar2[1] = PTR_s_Present_000b0188 + -0x124c;\n          safefree(puVar5);\n          (*(code *)PTR_sk_addr_free_000b0368)(uVar3);\n        }\n      }" ({ "{") (expression_statement "puVar2 = (undefined4 *)safemalloc(1,0x88);" (assignment_expression "puVar2 = (undefined4 *)safemalloc(1,0x88)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)safemalloc(1,0x88)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "safemalloc(1,0x88)" (identifier "safemalloc") (argument_list "(1,0x88)" (( "(") (number_literal "1") (, ",") (number_literal "0x88") () ")"))))) (; ";")) (expression_statement "*puVar2 = PTR_DAT_000b0178 + -0x1158;" (assignment_expression "*puVar2 = PTR_DAT_000b0178 + -0x1158" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (binary_expression "PTR_DAT_000b0178 + -0x1158" (identifier "PTR_DAT_000b0178") (+ "+") (number_literal "-0x1158"))) (; ";")) (expression_statement "uVar3 = conf_copy(param_9);" (assignment_expression "uVar3 = conf_copy(param_9)" (identifier "uVar3") (= "=") (call_expression "conf_copy(param_9)" (identifier "conf_copy") (argument_list "(param_9)" (( "(") (identifier "param_9") () ")")))) (; ";")) (expression_statement "puVar2[0x1d] = uVar3;" (assignment_expression "puVar2[0x1d] = uVar3" (subscript_expression "puVar2[0x1d]" (identifier "puVar2") ([ "[") (number_literal "0x1d") (] "]")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "puVar2[3] = param_8;" (assignment_expression "puVar2[3] = param_8" (subscript_expression "puVar2[3]" (identifier "puVar2") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "param_8")) (; ";")) (expression_statement "puVar2[4] = param_1;" (assignment_expression "puVar2[4] = param_1" (subscript_expression "puVar2[4]" (identifier "puVar2") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "param_1")) (; ";")) (expression_statement "puVar2[5] = param_3;" (assignment_expression "puVar2[5] = param_3" (subscript_expression "puVar2[5]" (identifier "puVar2") ([ "[") (number_literal "5") (] "]")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "puVar2[1] = 0;" (assignment_expression "puVar2[1] = 0" (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2[0xc] = 0;" (assignment_expression "puVar2[0xc] = 0" (subscript_expression "puVar2[0xc]" (identifier "puVar2") ([ "[") (number_literal "0xc") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2[0x10] = 0;" (assignment_expression "puVar2[0x10] = 0" (subscript_expression "puVar2[0x10]" (identifier "puVar2") ([ "[") (number_literal "0x10") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2[0x12] = 0;" (assignment_expression "puVar2[0x12] = 0" (subscript_expression "puVar2[0x12]" (identifier "puVar2") ([ "[") (number_literal "0x12") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "bufchain_init(puVar2 + 0xd);" (call_expression "bufchain_init(puVar2 + 0xd)" (identifier "bufchain_init") (argument_list "(puVar2 + 0xd)" (( "(") (binary_expression "puVar2 + 0xd" (identifier "puVar2") (+ "+") (number_literal "0xd")) () ")"))) (; ";")) (expression_statement "bufchain_init(puVar2 + 6);" (call_expression "bufchain_init(puVar2 + 6)" (identifier "bufchain_init") (argument_list "(puVar2 + 6)" (( "(") (binary_expression "puVar2 + 6" (identifier "puVar2") (+ "+") (number_literal "6")) () ")"))) (; ";")) (expression_statement "bufchain_init(puVar2 + 9);" (call_expression "bufchain_init(puVar2 + 9)" (identifier "bufchain_init") (argument_list "(puVar2 + 9)" (( "(") (binary_expression "puVar2 + 9" (identifier "puVar2") (+ "+") (number_literal "9")) () ")"))) (; ";")) (expression_statement "puVar2[2] = 0;" (assignment_expression "puVar2[2] = 0" (subscript_expression "puVar2[2]" (identifier "puVar2") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2[0x11] = 0xffffffff;" (assignment_expression "puVar2[0x11] = 0xffffffff" (subscript_expression "puVar2[0x11]" (identifier "puVar2") ([ "[") (number_literal "0x11") (] "]")) (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "puVar2[0x13] = 0;" (assignment_expression "puVar2[0x13] = 0" (subscript_expression "puVar2[0x13]" (identifier "puVar2") ([ "[") (number_literal "0x13") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar1 = conf_get_int(param_9,0xd);" (assignment_expression "iVar1 = conf_get_int(param_9,0xd)" (identifier "iVar1") (= "=") (call_expression "conf_get_int(param_9,0xd)" (identifier "conf_get_int") (argument_list "(param_9,0xd)" (( "(") (identifier "param_9") (, ",") (number_literal "0xd") () ")")))) (; ";")) (expression_statement "puVar8 = PTR_s_Present_000b0188;" (assignment_expression "puVar8 = PTR_s_Present_000b0188" (identifier "puVar8") (= "=") (identifier "PTR_s_Present_000b0188")) (; ";")) (if_statement "if (iVar1 == 3) {\n          puVar2[0x13] = PTR_proxy_http_negotiate_000b03c8;\n          puVar8 = puVar8 + -0x12c0;\n        }\n        else if (iVar1 == 1) {\n          puVar2[0x13] = PTR_proxy_socks4_negotiate_000b03cc;\n          puVar8 = puVar8 + -0x12b8;\n        }\n        else if (iVar1 == 2) {\n          puVar2[0x13] = PTR_proxy_socks5_negotiate_000b03d0;\n          puVar8 = puVar8 + -0x12b0;\n        }\n        else {\n          if (iVar1 != 4) {\n            puVar2[1] = PTR_s_Present_000b0188 + -0x12a0;\n            goto LAB_000250c4;\n          }\n          puVar8 = PTR_s_Present_000b0188 + -0x12a8;\n          puVar2[0x13] = PTR_proxy_telnet_negotiate_000b03c4;\n        }" (if "if") (parenthesized_expression "(iVar1 == 3)" (( "(") (binary_expression "iVar1 == 3" (identifier "iVar1") (== "==") (number_literal "3")) () ")")) (compound_statement "{\n          puVar2[0x13] = PTR_proxy_http_negotiate_000b03c8;\n          puVar8 = puVar8 + -0x12c0;\n        }" ({ "{") (expression_statement "puVar2[0x13] = PTR_proxy_http_negotiate_000b03c8;" (assignment_expression "puVar2[0x13] = PTR_proxy_http_negotiate_000b03c8" (subscript_expression "puVar2[0x13]" (identifier "puVar2") ([ "[") (number_literal "0x13") (] "]")) (= "=") (identifier "PTR_proxy_http_negotiate_000b03c8")) (; ";")) (expression_statement "puVar8 = puVar8 + -0x12c0;" (assignment_expression "puVar8 = puVar8 + -0x12c0" (identifier "puVar8") (= "=") (binary_expression "puVar8 + -0x12c0" (identifier "puVar8") (+ "+") (number_literal "-0x12c0"))) (; ";")) (} "}")) (else_clause "else if (iVar1 == 1) {\n          puVar2[0x13] = PTR_proxy_socks4_negotiate_000b03cc;\n          puVar8 = puVar8 + -0x12b8;\n        }\n        else if (iVar1 == 2) {\n          puVar2[0x13] = PTR_proxy_socks5_negotiate_000b03d0;\n          puVar8 = puVar8 + -0x12b0;\n        }\n        else {\n          if (iVar1 != 4) {\n            puVar2[1] = PTR_s_Present_000b0188 + -0x12a0;\n            goto LAB_000250c4;\n          }\n          puVar8 = PTR_s_Present_000b0188 + -0x12a8;\n          puVar2[0x13] = PTR_proxy_telnet_negotiate_000b03c4;\n        }" (else "else") (if_statement "if (iVar1 == 1) {\n          puVar2[0x13] = PTR_proxy_socks4_negotiate_000b03cc;\n          puVar8 = puVar8 + -0x12b8;\n        }\n        else if (iVar1 == 2) {\n          puVar2[0x13] = PTR_proxy_socks5_negotiate_000b03d0;\n          puVar8 = puVar8 + -0x12b0;\n        }\n        else {\n          if (iVar1 != 4) {\n            puVar2[1] = PTR_s_Present_000b0188 + -0x12a0;\n            goto LAB_000250c4;\n          }\n          puVar8 = PTR_s_Present_000b0188 + -0x12a8;\n          puVar2[0x13] = PTR_proxy_telnet_negotiate_000b03c4;\n        }" (if "if") (parenthesized_expression "(iVar1 == 1)" (( "(") (binary_expression "iVar1 == 1" (identifier "iVar1") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n          puVar2[0x13] = PTR_proxy_socks4_negotiate_000b03cc;\n          puVar8 = puVar8 + -0x12b8;\n        }" ({ "{") (expression_statement "puVar2[0x13] = PTR_proxy_socks4_negotiate_000b03cc;" (assignment_expression "puVar2[0x13] = PTR_proxy_socks4_negotiate_000b03cc" (subscript_expression "puVar2[0x13]" (identifier "puVar2") ([ "[") (number_literal "0x13") (] "]")) (= "=") (identifier "PTR_proxy_socks4_negotiate_000b03cc")) (; ";")) (expression_statement "puVar8 = puVar8 + -0x12b8;" (assignment_expression "puVar8 = puVar8 + -0x12b8" (identifier "puVar8") (= "=") (binary_expression "puVar8 + -0x12b8" (identifier "puVar8") (+ "+") (number_literal "-0x12b8"))) (; ";")) (} "}")) (else_clause "else if (iVar1 == 2) {\n          puVar2[0x13] = PTR_proxy_socks5_negotiate_000b03d0;\n          puVar8 = puVar8 + -0x12b0;\n        }\n        else {\n          if (iVar1 != 4) {\n            puVar2[1] = PTR_s_Present_000b0188 + -0x12a0;\n            goto LAB_000250c4;\n          }\n          puVar8 = PTR_s_Present_000b0188 + -0x12a8;\n          puVar2[0x13] = PTR_proxy_telnet_negotiate_000b03c4;\n        }" (else "else") (if_statement "if (iVar1 == 2) {\n          puVar2[0x13] = PTR_proxy_socks5_negotiate_000b03d0;\n          puVar8 = puVar8 + -0x12b0;\n        }\n        else {\n          if (iVar1 != 4) {\n            puVar2[1] = PTR_s_Present_000b0188 + -0x12a0;\n            goto LAB_000250c4;\n          }\n          puVar8 = PTR_s_Present_000b0188 + -0x12a8;\n          puVar2[0x13] = PTR_proxy_telnet_negotiate_000b03c4;\n        }" (if "if") (parenthesized_expression "(iVar1 == 2)" (( "(") (binary_expression "iVar1 == 2" (identifier "iVar1") (== "==") (number_literal "2")) () ")")) (compound_statement "{\n          puVar2[0x13] = PTR_proxy_socks5_negotiate_000b03d0;\n          puVar8 = puVar8 + -0x12b0;\n        }" ({ "{") (expression_statement "puVar2[0x13] = PTR_proxy_socks5_negotiate_000b03d0;" (assignment_expression "puVar2[0x13] = PTR_proxy_socks5_negotiate_000b03d0" (subscript_expression "puVar2[0x13]" (identifier "puVar2") ([ "[") (number_literal "0x13") (] "]")) (= "=") (identifier "PTR_proxy_socks5_negotiate_000b03d0")) (; ";")) (expression_statement "puVar8 = puVar8 + -0x12b0;" (assignment_expression "puVar8 = puVar8 + -0x12b0" (identifier "puVar8") (= "=") (binary_expression "puVar8 + -0x12b0" (identifier "puVar8") (+ "+") (number_literal "-0x12b0"))) (; ";")) (} "}")) (else_clause "else {\n          if (iVar1 != 4) {\n            puVar2[1] = PTR_s_Present_000b0188 + -0x12a0;\n            goto LAB_000250c4;\n          }\n          puVar8 = PTR_s_Present_000b0188 + -0x12a8;\n          puVar2[0x13] = PTR_proxy_telnet_negotiate_000b03c4;\n        }" (else "else") (compound_statement "{\n          if (iVar1 != 4) {\n            puVar2[1] = PTR_s_Present_000b0188 + -0x12a0;\n            goto LAB_000250c4;\n          }\n          puVar8 = PTR_s_Present_000b0188 + -0x12a8;\n          puVar2[0x13] = PTR_proxy_telnet_negotiate_000b03c4;\n        }" ({ "{") (if_statement "if (iVar1 != 4) {\n            puVar2[1] = PTR_s_Present_000b0188 + -0x12a0;\n            goto LAB_000250c4;\n          }" (if "if") (parenthesized_expression "(iVar1 != 4)" (( "(") (binary_expression "iVar1 != 4" (identifier "iVar1") (!= "!=") (number_literal "4")) () ")")) (compound_statement "{\n            puVar2[1] = PTR_s_Present_000b0188 + -0x12a0;\n            goto LAB_000250c4;\n          }" ({ "{") (expression_statement "puVar2[1] = PTR_s_Present_000b0188 + -0x12a0;" (assignment_expression "puVar2[1] = PTR_s_Present_000b0188 + -0x12a0" (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "PTR_s_Present_000b0188 + -0x12a0" (identifier "PTR_s_Present_000b0188") (+ "+") (number_literal "-0x12a0"))) (; ";")) (goto_statement "goto LAB_000250c4;" (goto "goto") (statement_identifier "LAB_000250c4") (; ";")) (} "}"))) (expression_statement "puVar8 = PTR_s_Present_000b0188 + -0x12a8;" (assignment_expression "puVar8 = PTR_s_Present_000b0188 + -0x12a8" (identifier "puVar8") (= "=") (binary_expression "PTR_s_Present_000b0188 + -0x12a8" (identifier "PTR_s_Present_000b0188") (+ "+") (number_literal "-0x12a8"))) (; ";")) (expression_statement "puVar2[0x13] = PTR_proxy_telnet_negotiate_000b03c4;" (assignment_expression "puVar2[0x13] = PTR_proxy_telnet_negotiate_000b03c4" (subscript_expression "puVar2[0x13]" (identifier "puVar2") ([ "[") (number_literal "0x13") (] "]")) (= "=") (identifier "PTR_proxy_telnet_negotiate_000b03c4")) (; ";")) (} "}")))))))) (expression_statement "uVar3 = conf_get_str(param_9,0xe);" (assignment_expression "uVar3 = conf_get_str(param_9,0xe)" (identifier "uVar3") (= "=") (call_expression "conf_get_str(param_9,0xe)" (identifier "conf_get_str") (argument_list "(param_9,0xe)" (( "(") (identifier "param_9") (, ",") (number_literal "0xe") () ")")))) (; ";")) (expression_statement "uVar4 = conf_get_int(param_9,0xf);" (assignment_expression "uVar4 = conf_get_int(param_9,0xf)" (identifier "uVar4") (= "=") (call_expression "conf_get_int(param_9,0xf)" (identifier "conf_get_int") (argument_list "(param_9,0xf)" (( "(") (identifier "param_9") (, ",") (number_literal "0xf") () ")")))) (; ";")) (expression_statement "uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x127c,puVar8,uVar3,uVar4,param_2,param_3);" (assignment_expression "uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x127c,puVar8,uVar3,uVar4,param_2,param_3)" (identifier "uVar3") (= "=") (call_expression "dupprintf(PTR_s_Present_000b0188 + -0x127c,puVar8,uVar3,uVar4,param_2,param_3)" (identifier "dupprintf") (argument_list "(PTR_s_Present_000b0188 + -0x127c,puVar8,uVar3,uVar4,param_2,param_3)" (( "(") (binary_expression "PTR_s_Present_000b0188 + -0x127c" (identifier "PTR_s_Present_000b0188") (+ "+") (number_literal "-0x127c")) (, ",") (identifier "puVar8") (, ",") (identifier "uVar3") (, ",") (identifier "uVar4") (, ",") (identifier "param_2") (, ",") (identifier "param_3") () ")")))) (; ";")) (expression_statement "(**(code **)*param_8)(param_8,2,0,0,uVar3,0);" (call_expression "(**(code **)*param_8)(param_8,2,0,0,uVar3,0)" (parenthesized_expression "(**(code **)*param_8)" (( "(") (pointer_expression "**(code **)*param_8" (* "*") (pointer_expression "*(code **)*param_8" (* "*") (cast_expression "(code **)*param_8" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (pointer_expression "*param_8" (* "*") (identifier "param_8"))))) () ")")) (argument_list "(param_8,2,0,0,uVar3,0)" (( "(") (identifier "param_8") (, ",") (number_literal "2") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (identifier "uVar3") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "safefree(uVar3);" (call_expression "safefree(uVar3)" (identifier "safefree") (argument_list "(uVar3)" (( "(") (identifier "uVar3") () ")"))) (; ";")) (expression_statement "puVar5 = (undefined4 *)safemalloc(1,8);" (assignment_expression "puVar5 = (undefined4 *)safemalloc(1,8)" (identifier "puVar5") (= "=") (cast_expression "(undefined4 *)safemalloc(1,8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "safemalloc(1,8)" (identifier "safemalloc") (argument_list "(1,8)" (( "(") (number_literal "1") (, ",") (number_literal "8") () ")"))))) (; ";")) (expression_statement "puVar5[1] = puVar2;" (assignment_expression "puVar5[1] = puVar2" (subscript_expression "puVar5[1]" (identifier "puVar5") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "puVar2")) (; ";")) (expression_statement "*puVar5 = PTR_DAT_000b0178 + -0x116c;" (assignment_expression "*puVar5 = PTR_DAT_000b0178 + -0x116c" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (binary_expression "PTR_DAT_000b0178 + -0x116c" (identifier "PTR_DAT_000b0178") (+ "+") (number_literal "-0x116c"))) (; ";")) (expression_statement "uVar3 = conf_get_str(param_9,0xe);" (assignment_expression "uVar3 = conf_get_str(param_9,0xe)" (identifier "uVar3") (= "=") (call_expression "conf_get_str(param_9,0xe)" (identifier "conf_get_str") (argument_list "(param_9,0xe)" (( "(") (identifier "param_9") (, ",") (number_literal "0xe") () ")")))) (; ";")) (expression_statement "iVar1 = conf_get_int(param_9,3);" (assignment_expression "iVar1 = conf_get_int(param_9,3)" (identifier "iVar1") (= "=") (call_expression "conf_get_int(param_9,3)" (identifier "conf_get_int") (argument_list "(param_9,3)" (( "(") (identifier "param_9") (, ",") (number_literal "3") () ")")))) (; ";")) (if_statement "if (iVar1 == 1) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1320;\n        }\n        else if (iVar1 == 2) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1318;\n        }\n        else {\n          puVar7 = PTR_s_Present_000b0188 + 0x2d54;\n        }" (if "if") (parenthesized_expression "(iVar1 == 1)" (( "(") (binary_expression "iVar1 == 1" (identifier "iVar1") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n          puVar7 = PTR_s_Present_000b0188 + -0x1320;\n        }" ({ "{") (expression_statement "puVar7 = PTR_s_Present_000b0188 + -0x1320;" (assignment_expression "puVar7 = PTR_s_Present_000b0188 + -0x1320" (identifier "puVar7") (= "=") (binary_expression "PTR_s_Present_000b0188 + -0x1320" (identifier "PTR_s_Present_000b0188") (+ "+") (number_literal "-0x1320"))) (; ";")) (} "}")) (else_clause "else if (iVar1 == 2) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1318;\n        }\n        else {\n          puVar7 = PTR_s_Present_000b0188 + 0x2d54;\n        }" (else "else") (if_statement "if (iVar1 == 2) {\n          puVar7 = PTR_s_Present_000b0188 + -0x1318;\n        }\n        else {\n          puVar7 = PTR_s_Present_000b0188 + 0x2d54;\n        }" (if "if") (parenthesized_expression "(iVar1 == 2)" (( "(") (binary_expression "iVar1 == 2" (identifier "iVar1") (== "==") (number_literal "2")) () ")")) (compound_statement "{\n          puVar7 = PTR_s_Present_000b0188 + -0x1318;\n        }" ({ "{") (expression_statement "puVar7 = PTR_s_Present_000b0188 + -0x1318;" (assignment_expression "puVar7 = PTR_s_Present_000b0188 + -0x1318" (identifier "puVar7") (= "=") (binary_expression "PTR_s_Present_000b0188 + -0x1318" (identifier "PTR_s_Present_000b0188") (+ "+") (number_literal "-0x1318"))) (; ";")) (} "}")) (else_clause "else {\n          puVar7 = PTR_s_Present_000b0188 + 0x2d54;\n        }" (else "else") (compound_statement "{\n          puVar7 = PTR_s_Present_000b0188 + 0x2d54;\n        }" ({ "{") (expression_statement "puVar7 = PTR_s_Present_000b0188 + 0x2d54;" (assignment_expression "puVar7 = PTR_s_Present_000b0188 + 0x2d54" (identifier "puVar7") (= "=") (binary_expression "PTR_s_Present_000b0188 + 0x2d54" (identifier "PTR_s_Present_000b0188") (+ "+") (number_literal "0x2d54"))) (; ";")) (} "}")))))) (expression_statement "uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x12e0,uVar3,puVar7,\n                          PTR_s_Present_000b0188 + -0x163c);" (assignment_expression "uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x12e0,uVar3,puVar7,\n                          PTR_s_Present_000b0188 + -0x163c)" (identifier "uVar3") (= "=") (call_expression "dupprintf(PTR_s_Present_000b0188 + -0x12e0,uVar3,puVar7,\n                          PTR_s_Present_000b0188 + -0x163c)" (identifier "dupprintf") (argument_list "(PTR_s_Present_000b0188 + -0x12e0,uVar3,puVar7,\n                          PTR_s_Present_000b0188 + -0x163c)" (( "(") (binary_expression "PTR_s_Present_000b0188 + -0x12e0" (identifier "PTR_s_Present_000b0188") (+ "+") (number_literal "-0x12e0")) (, ",") (identifier "uVar3") (, ",") (identifier "puVar7") (, ",") (binary_expression "PTR_s_Present_000b0188 + -0x163c" (identifier "PTR_s_Present_000b0188") (+ "+") (number_literal "-0x163c")) () ")")))) (; ";")) (expression_statement "(**(code **)*param_8)(param_8,2,0,0,uVar3,0);" (call_expression "(**(code **)*param_8)(param_8,2,0,0,uVar3,0)" (parenthesized_expression "(**(code **)*param_8)" (( "(") (pointer_expression "**(code **)*param_8" (* "*") (pointer_expression "*(code **)*param_8" (* "*") (cast_expression "(code **)*param_8" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (pointer_expression "*param_8" (* "*") (identifier "param_8"))))) () ")")) (argument_list "(param_8,2,0,0,uVar3,0)" (( "(") (identifier "param_8") (, ",") (number_literal "2") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (identifier "uVar3") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "safefree(uVar3);" (call_expression "safefree(uVar3)" (identifier "safefree") (argument_list "(uVar3)" (( "(") (identifier "uVar3") () ")"))) (; ";")) (expression_statement "uVar3 = conf_get_str(param_9,0xe);" (assignment_expression "uVar3 = conf_get_str(param_9,0xe)" (identifier "uVar3") (= "=") (call_expression "conf_get_str(param_9,0xe)" (identifier "conf_get_str") (argument_list "(param_9,0xe)" (( "(") (identifier "param_9") (, ",") (number_literal "0xe") () ")")))) (; ";")) (expression_statement "uVar4 = conf_get_int(param_9,3);" (assignment_expression "uVar4 = conf_get_int(param_9,3)" (identifier "uVar4") (= "=") (call_expression "conf_get_int(param_9,3)" (identifier "conf_get_int") (argument_list "(param_9,3)" (( "(") (identifier "param_9") (, ",") (number_literal "3") () ")")))) (; ";")) (expression_statement "uVar3 = (*(code *)PTR_sk_namelookup_000b03b0)(uVar3,&local_130,uVar4);" (assignment_expression "uVar3 = (*(code *)PTR_sk_namelookup_000b03b0)(uVar3,&local_130,uVar4)" (identifier "uVar3") (= "=") (call_expression "(*(code *)PTR_sk_namelookup_000b03b0)(uVar3,&local_130,uVar4)" (parenthesized_expression "(*(code *)PTR_sk_namelookup_000b03b0)" (( "(") (pointer_expression "*(code *)PTR_sk_namelookup_000b03b0" (* "*") (cast_expression "(code *)PTR_sk_namelookup_000b03b0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sk_namelookup_000b03b0"))) () ")")) (argument_list "(uVar3,&local_130,uVar4)" (( "(") (identifier "uVar3") (, ",") (pointer_expression "&local_130" (& "&") (identifier "local_130")) (, ",") (identifier "uVar4") () ")")))) (; ";")) (expression_statement "iVar1 = (*(code *)PTR_sk_addr_error_000b0364)(uVar3);" (assignment_expression "iVar1 = (*(code *)PTR_sk_addr_error_000b0364)(uVar3)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_sk_addr_error_000b0364)(uVar3)" (parenthesized_expression "(*(code *)PTR_sk_addr_error_000b0364)" (( "(") (pointer_expression "*(code *)PTR_sk_addr_error_000b0364" (* "*") (cast_expression "(code *)PTR_sk_addr_error_000b0364" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sk_addr_error_000b0364"))) () ")")) (argument_list "(uVar3)" (( "(") (identifier "uVar3") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n          safefree(local_130);\n          (*(code *)PTR_sk_getaddr_000b0208)(uVar3,auStack_12c,0x100);\n          uVar4 = conf_get_int(param_9,0xf);\n          uVar4 = dupprintf(PTR_s_Present_000b0188 + -0x121c,puVar8,auStack_12c,uVar4);\n          (**(code **)*param_8)(param_8,2,0,0,uVar4,0);\n          safefree(uVar4);\n          uVar4 = conf_get_int(param_9,0xf);\n          piVar6 = (int *)(*(code *)PTR_sk_new_000b03bc)\n                                    (uVar3,uVar4,param_4,param_5,param_6,param_7,puVar5);\n          puVar2[2] = piVar6;\n          iVar1 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n          if (iVar1 == 0) {\n            (**(code **)(*(int *)puVar2[2] + 0x18))((int *)puVar2[2],0);\n            (*(code *)puVar2[0x13])(puVar2,0xffffffff);\n          }\n        }\n        else {\n          puVar2[1] = PTR_s_Present_000b0188 + -0x124c;\n          safefree(puVar5);\n          (*(code *)PTR_sk_addr_free_000b0368)(uVar3);\n        }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          safefree(local_130);\n          (*(code *)PTR_sk_getaddr_000b0208)(uVar3,auStack_12c,0x100);\n          uVar4 = conf_get_int(param_9,0xf);\n          uVar4 = dupprintf(PTR_s_Present_000b0188 + -0x121c,puVar8,auStack_12c,uVar4);\n          (**(code **)*param_8)(param_8,2,0,0,uVar4,0);\n          safefree(uVar4);\n          uVar4 = conf_get_int(param_9,0xf);\n          piVar6 = (int *)(*(code *)PTR_sk_new_000b03bc)\n                                    (uVar3,uVar4,param_4,param_5,param_6,param_7,puVar5);\n          puVar2[2] = piVar6;\n          iVar1 = (**(code **)(*piVar6 + 0x1c))(piVar6);\n          if (iVar1 == 0) {\n            (**(code **)(*(int *)puVar2[2] + 0x18))((int *)puVar2[2],0);\n            (*(code *)puVar2[0x13])(puVar2,0xffffffff);\n          }\n        }" ({ "{") (expression_statement "safefree(local_130);" (call_expression "safefree(local_130)" (identifier "safefree") (argument_list "(local_130)" (( "(") (identifier "local_130") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_sk_getaddr_000b0208)(uVar3,auStack_12c,0x100);" (call_expression "(*(code *)PTR_sk_getaddr_000b0208)(uVar3,auStack_12c,0x100)" (parenthesized_expression "(*(code *)PTR_sk_getaddr_000b0208)" (( "(") (pointer_expression "*(code *)PTR_sk_getaddr_000b0208" (* "*") (cast_expression "(code *)PTR_sk_getaddr_000b0208" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sk_getaddr_000b0208"))) () ")")) (argument_list "(uVar3,auStack_12c,0x100)" (( "(") (identifier "uVar3") (, ",") (identifier "auStack_12c") (, ",") (number_literal "0x100") () ")"))) (; ";")) (expression_statement "uVar4 = conf_get_int(param_9,0xf);" (assignment_expression "uVar4 = conf_get_int(param_9,0xf)" (identifier "uVar4") (= "=") (call_expression "conf_get_int(param_9,0xf)" (identifier "conf_get_int") (argument_list "(param_9,0xf)" (( "(") (identifier "param_9") (, ",") (number_literal "0xf") () ")")))) (; ";")) (expression_statement "uVar4 = dupprintf(PTR_s_Present_000b0188 + -0x121c,puVar8,auStack_12c,uVar4);" (assignment_expression "uVar4 = dupprintf(PTR_s_Present_000b0188 + -0x121c,puVar8,auStack_12c,uVar4)" (identifier "uVar4") (= "=") (call_expression "dupprintf(PTR_s_Present_000b0188 + -0x121c,puVar8,auStack_12c,uVar4)" (identifier "dupprintf") (argument_list "(PTR_s_Present_000b0188 + -0x121c,puVar8,auStack_12c,uVar4)" (( "(") (binary_expression "PTR_s_Present_000b0188 + -0x121c" (identifier "PTR_s_Present_000b0188") (+ "+") (number_literal "-0x121c")) (, ",") (identifier "puVar8") (, ",") (identifier "auStack_12c") (, ",") (identifier "uVar4") () ")")))) (; ";")) (expression_statement "(**(code **)*param_8)(param_8,2,0,0,uVar4,0);" (call_expression "(**(code **)*param_8)(param_8,2,0,0,uVar4,0)" (parenthesized_expression "(**(code **)*param_8)" (( "(") (pointer_expression "**(code **)*param_8" (* "*") (pointer_expression "*(code **)*param_8" (* "*") (cast_expression "(code **)*param_8" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (pointer_expression "*param_8" (* "*") (identifier "param_8"))))) () ")")) (argument_list "(param_8,2,0,0,uVar4,0)" (( "(") (identifier "param_8") (, ",") (number_literal "2") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (identifier "uVar4") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "safefree(uVar4);" (call_expression "safefree(uVar4)" (identifier "safefree") (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")"))) (; ";")) (expression_statement "uVar4 = conf_get_int(param_9,0xf);" (assignment_expression "uVar4 = conf_get_int(param_9,0xf)" (identifier "uVar4") (= "=") (call_expression "conf_get_int(param_9,0xf)" (identifier "conf_get_int") (argument_list "(param_9,0xf)" (( "(") (identifier "param_9") (, ",") (number_literal "0xf") () ")")))) (; ";")) (expression_statement "piVar6 = (int *)(*(code *)PTR_sk_new_000b03bc)\n                                    (uVar3,uVar4,param_4,param_5,param_6,param_7,puVar5);" (assignment_expression "piVar6 = (int *)(*(code *)PTR_sk_new_000b03bc)\n                                    (uVar3,uVar4,param_4,param_5,param_6,param_7,puVar5)" (identifier "piVar6") (= "=") (cast_expression "(int *)(*(code *)PTR_sk_new_000b03bc)\n                                    (uVar3,uVar4,param_4,param_5,param_6,param_7,puVar5)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_sk_new_000b03bc)\n                                    (uVar3,uVar4,param_4,param_5,param_6,param_7,puVar5)" (parenthesized_expression "(*(code *)PTR_sk_new_000b03bc)" (( "(") (pointer_expression "*(code *)PTR_sk_new_000b03bc" (* "*") (cast_expression "(code *)PTR_sk_new_000b03bc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sk_new_000b03bc"))) () ")")) (argument_list "(uVar3,uVar4,param_4,param_5,param_6,param_7,puVar5)" (( "(") (identifier "uVar3") (, ",") (identifier "uVar4") (, ",") (identifier "param_4") (, ",") (identifier "param_5") (, ",") (identifier "param_6") (, ",") (identifier "param_7") (, ",") (identifier "puVar5") () ")"))))) (; ";")) (expression_statement "puVar2[2] = piVar6;" (assignment_expression "puVar2[2] = piVar6" (subscript_expression "puVar2[2]" (identifier "puVar2") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "piVar6")) (; ";")) (expression_statement "iVar1 = (**(code **)(*piVar6 + 0x1c))(piVar6);" (assignment_expression "iVar1 = (**(code **)(*piVar6 + 0x1c))(piVar6)" (identifier "iVar1") (= "=") (call_expression "(**(code **)(*piVar6 + 0x1c))(piVar6)" (parenthesized_expression "(**(code **)(*piVar6 + 0x1c))" (( "(") (pointer_expression "**(code **)(*piVar6 + 0x1c)" (* "*") (pointer_expression "*(code **)(*piVar6 + 0x1c)" (* "*") (cast_expression "(code **)(*piVar6 + 0x1c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar6 + 0x1c)" (( "(") (binary_expression "*piVar6 + 0x1c" (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) (+ "+") (number_literal "0x1c")) () ")"))))) () ")")) (argument_list "(piVar6)" (( "(") (identifier "piVar6") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n            (**(code **)(*(int *)puVar2[2] + 0x18))((int *)puVar2[2],0);\n            (*(code *)puVar2[0x13])(puVar2,0xffffffff);\n          }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            (**(code **)(*(int *)puVar2[2] + 0x18))((int *)puVar2[2],0);\n            (*(code *)puVar2[0x13])(puVar2,0xffffffff);\n          }" ({ "{") (expression_statement "(**(code **)(*(int *)puVar2[2] + 0x18))((int *)puVar2[2],0);" (call_expression "(**(code **)(*(int *)puVar2[2] + 0x18))((int *)puVar2[2],0)" (parenthesized_expression "(**(code **)(*(int *)puVar2[2] + 0x18))" (( "(") (pointer_expression "**(code **)(*(int *)puVar2[2] + 0x18)" (* "*") (pointer_expression "*(code **)(*(int *)puVar2[2] + 0x18)" (* "*") (cast_expression "(code **)(*(int *)puVar2[2] + 0x18)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)puVar2[2] + 0x18)" (( "(") (binary_expression "*(int *)puVar2[2] + 0x18" (pointer_expression "*(int *)puVar2[2]" (* "*") (cast_expression "(int *)puVar2[2]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar2[2]" (identifier "puVar2") ([ "[") (number_literal "2") (] "]")))) (+ "+") (number_literal "0x18")) () ")"))))) () ")")) (argument_list "((int *)puVar2[2],0)" (( "(") (cast_expression "(int *)puVar2[2]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar2[2]" (identifier "puVar2") ([ "[") (number_literal "2") (] "]"))) (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "(*(code *)puVar2[0x13])(puVar2,0xffffffff);" (call_expression "(*(code *)puVar2[0x13])(puVar2,0xffffffff)" (parenthesized_expression "(*(code *)puVar2[0x13])" (( "(") (pointer_expression "*(code *)puVar2[0x13]" (* "*") (cast_expression "(code *)puVar2[0x13]" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "puVar2[0x13]" (identifier "puVar2") ([ "[") (number_literal "0x13") (] "]")))) () ")")) (argument_list "(puVar2,0xffffffff)" (( "(") (identifier "puVar2") (, ",") (number_literal "0xffffffff") () ")"))) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n          puVar2[1] = PTR_s_Present_000b0188 + -0x124c;\n          safefree(puVar5);\n          (*(code *)PTR_sk_addr_free_000b0368)(uVar3);\n        }" (else "else") (compound_statement "{\n          puVar2[1] = PTR_s_Present_000b0188 + -0x124c;\n          safefree(puVar5);\n          (*(code *)PTR_sk_addr_free_000b0368)(uVar3);\n        }" ({ "{") (expression_statement "puVar2[1] = PTR_s_Present_000b0188 + -0x124c;" (assignment_expression "puVar2[1] = PTR_s_Present_000b0188 + -0x124c" (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "PTR_s_Present_000b0188 + -0x124c" (identifier "PTR_s_Present_000b0188") (+ "+") (number_literal "-0x124c"))) (; ";")) (expression_statement "safefree(puVar5);" (call_expression "safefree(puVar5)" (identifier "safefree") (argument_list "(puVar5)" (( "(") (identifier "puVar5") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_sk_addr_free_000b0368)(uVar3);" (call_expression "(*(code *)PTR_sk_addr_free_000b0368)(uVar3)" (parenthesized_expression "(*(code *)PTR_sk_addr_free_000b0368)" (( "(") (pointer_expression "*(code *)PTR_sk_addr_free_000b0368" (* "*") (cast_expression "(code *)PTR_sk_addr_free_000b0368" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sk_addr_free_000b0368"))) () ")")) (argument_list "(uVar3)" (( "(") (identifier "uVar3") () ")"))) (; ";")) (} "}")))) (} "}"))) (goto_statement "goto LAB_000250c4;" (goto "goto") (statement_identifier "LAB_000250c4") (; ";")) (} "}"))) (} "}"))) (expression_statement "puVar2 = (undefined4 *)\n           (*(code *)PTR_sk_new_000b03bc)(param_1,param_3,param_4,param_5,param_6,param_7,param_8);" (assignment_expression "puVar2 = (undefined4 *)\n           (*(code *)PTR_sk_new_000b03bc)(param_1,param_3,param_4,param_5,param_6,param_7,param_8)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)\n           (*(code *)PTR_sk_new_000b03bc)(param_1,param_3,param_4,param_5,param_6,param_7,param_8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_sk_new_000b03bc)(param_1,param_3,param_4,param_5,param_6,param_7,param_8)" (parenthesized_expression "(*(code *)PTR_sk_new_000b03bc)" (( "(") (pointer_expression "*(code *)PTR_sk_new_000b03bc" (* "*") (cast_expression "(code *)PTR_sk_new_000b03bc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_sk_new_000b03bc"))) () ")")) (argument_list "(param_1,param_3,param_4,param_5,param_6,param_7,param_8)" (( "(") (identifier "param_1") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "param_5") (, ",") (identifier "param_6") (, ",") (identifier "param_7") (, ",") (identifier "param_8") () ")"))))) (; ";")) (labeled_statement "LAB_000250c4:\n  if (local_2c == *(int *)puVar9) {\n    return puVar2;\n  }" (statement_identifier "LAB_000250c4") (: ":") (if_statement "if (local_2c == *(int *)puVar9) {\n    return puVar2;\n  }" (if "if") (parenthesized_expression "(local_2c == *(int *)puVar9)" (( "(") (binary_expression "local_2c == *(int *)puVar9" (identifier "local_2c") (== "==") (pointer_expression "*(int *)puVar9" (* "*") (cast_expression "(int *)puVar9" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar9")))) () ")")) (compound_statement "{\n    return puVar2;\n  }" ({ "{") (return_statement "return puVar2;" (return "return") (identifier "puVar2") (; ";")) (} "}")))) (expression_statement "puVar9 = PTR___stack_chk_fail_000b0c70;" (assignment_expression "puVar9 = PTR___stack_chk_fail_000b0c70" (identifier "puVar9") (= "=") (identifier "PTR___stack_chk_fail_000b0c70")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_000b0c70)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b0c70)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b0c70)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_000b0c70" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_000b0c70" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_000b0c70"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "puVar2 = (undefined4 *)(**(code **)(puVar9 + 0x8ae38))();" (assignment_expression "puVar2 = (undefined4 *)(**(code **)(puVar9 + 0x8ae38))()" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)(**(code **)(puVar9 + 0x8ae38))()" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(**(code **)(puVar9 + 0x8ae38))()" (parenthesized_expression "(**(code **)(puVar9 + 0x8ae38))" (( "(") (pointer_expression "**(code **)(puVar9 + 0x8ae38)" (* "*") (pointer_expression "*(code **)(puVar9 + 0x8ae38)" (* "*") (cast_expression "(code **)(puVar9 + 0x8ae38)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar9 + 0x8ae38)" (( "(") (binary_expression "puVar9 + 0x8ae38" (identifier "puVar9") (+ "+") (number_literal "0x8ae38")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (return_statement "return puVar2;" (return "return") (identifier "puVar2") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (identifier) (identifier) (identifier) (identifier) (identifier) (identifier) (identifier) (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (number_literal) (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (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 (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)))))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (identifier) (identifier) (identifier) (identifier) (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: (pointer_expression argument: (identifier)))))) arguments: (argument_list (identifier) (number_literal) (number_literal) (number_literal) (identifier) (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: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (number_literal) (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) alternative: (else_clause (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))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (identifier) (identifier) (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (pointer_expression argument: (identifier)))))) arguments: (argument_list (identifier) (number_literal) (number_literal) (number_literal) (identifier) (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (pointer_expression argument: (identifier)) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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 (identifier)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (identifier) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (identifier) (identifier) (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: (pointer_expression argument: (identifier)))))) arguments: (argument_list (identifier) (number_literal) (number_literal) (number_literal) (identifier) (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (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: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (identifier) (identifier) (identifier) (identifier) (identifier) (identifier)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (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: (identifier)) right: (number_literal))))))) arguments: (argument_list (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: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal)))) right: (number_literal))))))) arguments: (argument_list (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))) (number_literal)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (subscript_expression argument: (identifier) index: (number_literal))))) arguments: (argument_list (identifier) (number_literal))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier))))))))) (goto_statement label: (statement_identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (identifier) (identifier) (identifier) (identifier) (identifier) (identifier)))))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (identifier))))) consequence: (compound_statement (return_statement (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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: (identifier) right: (number_literal))))))) arguments: (argument_list))))) (return_statement (identifier)))))

undefined4 *
MASKED(undefined4 param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,
              undefined4 param_5,undefined4 param_6,undefined4 param_7,undefined4 *param_8,
              undefined4 param_9)

{
  int iVar1;
  undefined4 *puVar2;
  undefined4 uVar3;
  undefined4 uVar4;
  undefined4 *puVar5;
  int *piVar6;
  undefined *puVar7;
  undefined *puVar8;
  undefined *puVar9;
  undefined4 local_130;
  undefined1 auStack_12c [256];
  int local_2c;
  
  puVar9 = PTR___stack_chk_guard_000b0c9c;
  local_2c = *(int *)PTR___stack_chk_guard_000b0c9c;
  iVar1 = conf_get_int(param_9,0xd);
  if (iVar1 != 0) {
    iVar1 = proxy_for_destination(param_1,param_2,param_3,param_9);
    if (iVar1 != 0) {
      puVar2 = (undefined4 *)
               (*(code *)PTR_platform_MASKED_000b03c0)
                         (param_1,param_2,param_3,param_4,param_5,param_6,param_7,param_8,param_9);
      if (puVar2 == (undefined4 *)0x0) {
        puVar2 = (undefined4 *)safemalloc(1,0x88);
        *puVar2 = PTR_DAT_000b0178 + -0x1158;
        uVar3 = conf_copy(param_9);
        puVar2[0x1d] = uVar3;
        puVar2[3] = param_8;
        puVar2[4] = param_1;
        puVar2[5] = param_3;
        puVar2[1] = 0;
        puVar2[0xc] = 0;
        puVar2[0x10] = 0;
        puVar2[0x12] = 0;
        bufchain_init(puVar2 + 0xd);
        bufchain_init(puVar2 + 6);
        bufchain_init(puVar2 + 9);
        puVar2[2] = 0;
        puVar2[0x11] = 0xffffffff;
        puVar2[0x13] = 0;
        iVar1 = conf_get_int(param_9,0xd);
        puVar8 = PTR_s_Present_000b0188;
        if (iVar1 == 3) {
          puVar2[0x13] = PTR_proxy_http_negotiate_000b03c8;
          puVar8 = puVar8 + -0x12c0;
        }
        else if (iVar1 == 1) {
          puVar2[0x13] = PTR_proxy_socks4_negotiate_000b03cc;
          puVar8 = puVar8 + -0x12b8;
        }
        else if (iVar1 == 2) {
          puVar2[0x13] = PTR_proxy_socks5_negotiate_000b03d0;
          puVar8 = puVar8 + -0x12b0;
        }
        else {
          if (iVar1 != 4) {
            puVar2[1] = PTR_s_Present_000b0188 + -0x12a0;
            goto LAB_000250c4;
          }
          puVar8 = PTR_s_Present_000b0188 + -0x12a8;
          puVar2[0x13] = PTR_proxy_telnet_negotiate_000b03c4;
        }
        uVar3 = conf_get_str(param_9,0xe);
        uVar4 = conf_get_int(param_9,0xf);
        uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x127c,puVar8,uVar3,uVar4,param_2,param_3);
        (**(code **)*param_8)(param_8,2,0,0,uVar3,0);
        safefree(uVar3);
        puVar5 = (undefined4 *)safemalloc(1,8);
        puVar5[1] = puVar2;
        *puVar5 = PTR_DAT_000b0178 + -0x116c;
        uVar3 = conf_get_str(param_9,0xe);
        iVar1 = conf_get_int(param_9,3);
        if (iVar1 == 1) {
          puVar7 = PTR_s_Present_000b0188 + -0x1320;
        }
        else if (iVar1 == 2) {
          puVar7 = PTR_s_Present_000b0188 + -0x1318;
        }
        else {
          puVar7 = PTR_s_Present_000b0188 + 0x2d54;
        }
        uVar3 = dupprintf(PTR_s_Present_000b0188 + -0x12e0,uVar3,puVar7,
                          PTR_s_Present_000b0188 + -0x163c);
        (**(code **)*param_8)(param_8,2,0,0,uVar3,0);
        safefree(uVar3);
        uVar3 = conf_get_str(param_9,0xe);
        uVar4 = conf_get_int(param_9,3);
        uVar3 = (*(code *)PTR_sk_namelookup_000b03b0)(uVar3,&local_130,uVar4);
        iVar1 = (*(code *)PTR_sk_addr_error_000b0364)(uVar3);
        if (iVar1 == 0) {
          safefree(local_130);
          (*(code *)PTR_sk_getaddr_000b0208)(uVar3,auStack_12c,0x100);
          uVar4 = conf_get_int(param_9,0xf);
          uVar4 = dupprintf(PTR_s_Present_000b0188 + -0x121c,puVar8,auStack_12c,uVar4);
          (**(code **)*param_8)(param_8,2,0,0,uVar4,0);
          safefree(uVar4);
          uVar4 = conf_get_int(param_9,0xf);
          piVar6 = (int *)(*(code *)PTR_sk_new_000b03bc)
                                    (uVar3,uVar4,param_4,param_5,param_6,param_7,puVar5);
          puVar2[2] = piVar6;
          iVar1 = (**(code **)(*piVar6 + 0x1c))(piVar6);
          if (iVar1 == 0) {
            (**(code **)(*(int *)puVar2[2] + 0x18))((int *)puVar2[2],0);
            (*(code *)puVar2[0x13])(puVar2,0xffffffff);
          }
        }
        else {
          puVar2[1] = PTR_s_Present_000b0188 + -0x124c;
          safefree(puVar5);
          (*(code *)PTR_sk_addr_free_000b0368)(uVar3);
        }
      }
      goto LAB_000250c4;
    }
  }
  puVar2 = (undefined4 *)
           (*(code *)PTR_sk_new_000b03bc)(param_1,param_3,param_4,param_5,param_6,param_7,param_8);
LAB_000250c4:
  if (local_2c == *(int *)puVar9) {
    return puVar2;
  }
  puVar9 = PTR___stack_chk_fail_000b0c70;
  (*(code *)PTR___stack_chk_fail_000b0c70)();
  puVar2 = (undefined4 *)(**(code **)(puVar9 + 0x8ae38))();
  return puVar2;
}

