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

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

{
  int iVar1;
  int iVar2;
  Socket e;
  char *__file;
  socket_function_table *psVar3;
  char *pcVar4;
  __pid_t _Var5;
  char *pcVar6;
  int *piVar7;
  int in_GS_OFFSET;
  int to_cmd_pipe [2];
  int from_cmd_pipe [2];
  int cmd_err_pipe [2];
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  iVar2 = conf_get_int(conf,0xd);
  if (1 < iVar2 - 5U) {
    e = (Socket)0x0;
    goto LAB_000628a8;
  }
  e = (Socket)safemalloc(1,0x40);
  *e = &platform_new_connection::socket_fn_table;
  e[5] = (socket_function_table *)plug;
  e[4] = (socket_function_table *)0x0;
  e[0xf] = (socket_function_table *)0x0;
  bufchain_init((bufchain *)(e + 9));
  bufchain_init((bufchain *)(e + 6));
  bufchain_init((bufchain *)(e + 0xc));
  if (iVar2 == 5) {
    __file = format_telnet_command(addr,port,conf);
    if (((byte)flags & 2) == 0) {
      cmd_err_pipe[1] = 0;
      cmd_err_pipe[0] = 0;
    }
    else {
      cmd_err_pipe[1] = -1;
      cmd_err_pipe[0] = -1;
    }
    pcVar4 = dupprintf("Starting local proxy command: %s",__file);
    (*(*plug)->log)(plug,2,(SockAddr)0x0,0,pcVar4,0);
    safefree(pcVar4);
    iVar2 = pipe(to_cmd_pipe);
    if (-1 < iVar2) {
      iVar2 = pipe(from_cmd_pipe);
      if (-1 < iVar2) {
        if (cmd_err_pipe[0] == 0) {
          iVar2 = pipe(cmd_err_pipe);
          if (iVar2 < 0) goto LAB_00062a58;
        }
        cloexec(to_cmd_pipe[1]);
        cloexec(from_cmd_pipe[0]);
        if (-1 < cmd_err_pipe[0]) {
          cloexec(cmd_err_pipe[0]);
        }
        _Var5 = fork();
        if (-1 < _Var5) {
          if (_Var5 == 0) {
            close(0);
            close(1);
            dup2(to_cmd_pipe[0],0);
            dup2(from_cmd_pipe[1],1);
            close(to_cmd_pipe[0]);
            close(from_cmd_pipe[1]);
            if (-1 < cmd_err_pipe[0]) {
              dup2(cmd_err_pipe[1],2);
              close(cmd_err_pipe[1]);
            }
            noncloexec(0);
            noncloexec(1);
            execl("/bin/sh","sh",&DAT_00085974,__file,0);
                    /* WARNING: Subroutine does not return */
            _exit(0xff);
          }
          safefree(__file);
          close(to_cmd_pipe[0]);
          close(from_cmd_pipe[1]);
          if (-1 < cmd_err_pipe[0]) {
            close(cmd_err_pipe[1]);
          }
          e[3] = (socket_function_table *)cmd_err_pipe[0];
          e[1] = (socket_function_table *)to_cmd_pipe[1];
          e[2] = (socket_function_table *)from_cmd_pipe[0];
          goto LAB_00062822;
        }
        piVar7 = __errno_location();
        pcVar6 = strerror(*piVar7);
        pcVar4 = "fork: %s";
        goto LAB_00062a70;
      }
    }
LAB_00062a58:
    piVar7 = __errno_location();
    pcVar6 = strerror(*piVar7);
    pcVar4 = "pipe: %s";
  }
  else {
    __file = format_telnet_command(addr,port,conf);
    psVar3 = (socket_function_table *)open64("/dev/null",1);
    e[1] = psVar3;
    if (psVar3 == (socket_function_table *)0xffffffff) {
      piVar7 = __errno_location();
      pcVar6 = strerror(*piVar7);
      pcVar4 = "/dev/null: %s";
    }
    else {
      psVar3 = (socket_function_table *)open64(__file,0);
      e[2] = psVar3;
      if (psVar3 != (socket_function_table *)0xffffffff) {
        safefree(__file);
        e[3] = (socket_function_table *)0xffffffff;
LAB_00062822:
        if (localproxy_by_fromfd == (tree234 *)0x0) {
          localproxy_by_fromfd = newtree234(localproxy_fromfd_cmp);
        }
        if (localproxy_by_tofd == (tree234 *)0x0) {
          localproxy_by_tofd = newtree234(localproxy_tofd_cmp);
        }
        if (localproxy_by_errfd == (tree234 *)0x0) {
          localproxy_by_errfd = newtree234(localproxy_errfd_cmp);
        }
        add234(localproxy_by_fromfd,e);
        add234(localproxy_by_tofd,e);
        if (-1 < (int)e[3]) {
          add234(localproxy_by_errfd,e);
        }
        uxsel_set((int)e[2],1,localproxy_select_result);
        if (-1 < (int)e[3]) {
          uxsel_set((int)e[3],1,localproxy_select_result);
        }
        sk_addr_free(addr);
        goto LAB_000628a8;
      }
      piVar7 = __errno_location();
      conf = (Conf *)strerror(*piVar7);
      pcVar4 = "%s: %s";
      pcVar6 = __file;
    }
  }
LAB_00062a70:
  psVar3 = (socket_function_table *)dupprintf(pcVar4,pcVar6,conf);
  e[4] = psVar3;
  safefree(__file);
LAB_000628a8:
  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {
    return e;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

undefined4 * FUN_00062720(undefined4 param_1,undefined4 param_2,undefined4 param_3)

{
  int iVar1;
  undefined4 *puVar2;
  char *__file;
  __pid_t _Var3;
  undefined4 uVar4;
  char *pcVar5;
  int *piVar6;
  char *pcVar7;
  int in_GS_OFFSET;
  undefined4 *in_stack_00000020;
  char *in_stack_00000024;
  int local_38;
  undefined4 local_34;
  int local_30;
  int local_2c;
  int local_28;
  int local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x62729;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  iVar1 = FUN_0001ea70(in_stack_00000024,0xd);
  if (1 < iVar1 - 5U) {
    puVar2 = (undefined4 *)0x0;
    goto LAB_000628a8;
  }
  puVar2 = (undefined4 *)FUN_0002d1f0(1,0x40);
  *puVar2 = &PTR_FUN_000afd20;
  puVar2[5] = in_stack_00000020;
  puVar2[4] = 0;
  puVar2[0xf] = 0;
  FUN_0002cfe0(puVar2 + 9);
  FUN_0002cfe0(puVar2 + 6);
  FUN_0002cfe0(puVar2 + 0xc);
  if (iVar1 == 5) {
    __file = (char *)FUN_00030750(param_1,param_3,in_stack_00000024);
    if ((DAT_000b127c & 2) == 0) {
      local_24 = 0;
      local_28 = 0;
    }
    else {
      local_24 = -1;
      local_28 = -1;
    }
    uVar4 = FUN_0002d860("Starting local proxy command: %s",__file);
    (**(code **)*in_stack_00000020)(in_stack_00000020,2,0,0,uVar4,0);
    FUN_0002da80(uVar4);
    iVar1 = pipe(&local_38);
    if (-1 < iVar1) {
      iVar1 = pipe(&local_30);
      if (-1 < iVar1) {
        if (local_28 == 0) {
          iVar1 = pipe(&local_28);
          if (iVar1 < 0) goto LAB_00062a58;
        }
        FUN_0005f000(local_34);
        FUN_0005f000(local_30);
        if (-1 < local_28) {
          FUN_0005f000(local_28);
        }
        _Var3 = fork();
        if (-1 < _Var3) {
          if (_Var3 == 0) {
            close(0);
            close(1);
            dup2(local_38,0);
            uVar4 = 1;
            dup2(local_2c,1);
            close(local_38);
            pcVar7 = (char *)close(local_2c);
            if (-1 < local_28) {
              uVar4 = 2;
              dup2(local_24,2);
              close(local_24);
              in_stack_00000024 = pcVar7;
            }
            FUN_0005f090(0,uVar4,in_stack_00000024);
            FUN_0005f090(1);
            execl("/bin/sh","sh",&DAT_00085974,__file,0);
                    /* WARNING: Subroutine does not return */
            _exit(0xff);
          }
          FUN_0002da80(__file);
          close(local_38);
          close(local_2c);
          if (-1 < local_28) {
            close(local_24);
          }
          puVar2[3] = local_28;
          puVar2[1] = local_34;
          puVar2[2] = local_30;
          goto LAB_00062822;
        }
        piVar6 = __errno_location();
        pcVar5 = strerror(*piVar6);
        pcVar7 = "fork: %s";
        goto LAB_00062a70;
      }
    }
LAB_00062a58:
    piVar6 = __errno_location();
    pcVar5 = strerror(*piVar6);
    pcVar7 = "pipe: %s";
  }
  else {
    __file = (char *)FUN_00030750(param_1,param_3,in_stack_00000024);
    iVar1 = open64("/dev/null",1);
    puVar2[1] = iVar1;
    if (iVar1 == -1) {
      piVar6 = __errno_location();
      pcVar5 = strerror(*piVar6);
      pcVar7 = "/dev/null: %s";
    }
    else {
      iVar1 = open64(__file,0);
      puVar2[2] = iVar1;
      if (iVar1 != -1) {
        FUN_0002da80(__file);
        puVar2[3] = 0xffffffff;
LAB_00062822:
        if (DAT_000b1254 == 0) {
          DAT_000b1254 = FUN_00047680(FUN_000620b0);
        }
        if (DAT_000b1250 == 0) {
          DAT_000b1250 = FUN_00047680(FUN_000620f0);
        }
        if (DAT_000b124c == 0) {
          DAT_000b124c = FUN_00047680(FUN_00062130);
        }
        FUN_00047700(DAT_000b1254,puVar2);
        FUN_00047700(DAT_000b1250,puVar2);
        if (-1 < (int)puVar2[3]) {
          FUN_00047700(DAT_000b124c,puVar2);
        }
        FUN_00063070(puVar2[2],1,FUN_00062320);
        if (-1 < (int)puVar2[3]) {
          FUN_00063070(puVar2[3],1,FUN_00062320);
        }
        FUN_00060670(param_1);
        goto LAB_000628a8;
      }
      piVar6 = __errno_location();
      in_stack_00000024 = strerror(*piVar6);
      pcVar7 = "%s: %s";
      pcVar5 = __file;
    }
  }
LAB_00062a70:
  uVar4 = FUN_0002d860(pcVar7,pcVar5,in_stack_00000024);
  puVar2[4] = uVar4;
  FUN_0002da80(__file);
LAB_000628a8:
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return puVar2;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00066390();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x0001b410
ADD EBX,0x4e07b
SUB ESP,0x44
MOV EAX,dword ptr [ESP + 0x58]
MOV EDI,dword ptr [ESP + 0x78]
MOV EBP,dword ptr [ESP + 0x74]
MOV dword ptr [ESP + 0x10],EAX
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x34],EAX
XOR EAX,EAX
PUSH 0xd
PUSH EDI
CALL 0x0001ea70
MOV EDX,EAX
SUB EAX,0x5
MOV dword ptr [ESP + 0x1c],EDX
ADD ESP,0x10
CMP EAX,0x1
JA 0x00062a00
SUB ESP,0x8
PUSH 0x40
PUSH 0x1
CALL 0x0002d1f0
MOV ESI,EAX
LEA EAX,[EBX + 0xfffff57c]
MOV dword ptr [ESI],EAX
LEA EAX,[ESI + 0x24]
MOV dword ptr [ESI + 0x14],EBP
MOV dword ptr [ESI + 0x10],0x0
MOV dword ptr [ESI + 0x3c],0x0
MOV dword ptr [ESP],EAX
CALL 0x0002cfe0
LEA EAX,[ESI + 0x18]
MOV dword ptr [ESP],EAX
CALL 0x0002cfe0
LEA EAX,[ESI + 0x30]
MOV dword ptr [ESP],EAX
CALL 0x0002cfe0
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0xc]
CMP EDX,0x5
JZ 0x000628c8
SUB ESP,0x4
PUSH EDI
PUSH dword ptr [ESP + 0x60]
PUSH dword ptr [ESP + 0x14]
CALL 0x00030750
POP EBP
MOV EDI,EAX
POP EAX
LEA EAX,[EBX + 0xfffd51db]
PUSH 0x1
PUSH EAX
CALL 0x00019290
ADD ESP,0x10
MOV dword ptr [ESI + 0x4],EAX
CMP EAX,-0x1
JZ 0x00062a90
SUB ESP,0x8
PUSH 0x0
PUSH EDI
CALL 0x00019290
ADD ESP,0x10
MOV dword ptr [ESI + 0x8],EAX
CMP EAX,-0x1
JZ 0x00062ab0
SUB ESP,0xc
PUSH EDI
CALL 0x0002da80
MOV dword ptr [ESI + 0xc],0xffffffff
ADD ESP,0x10
MOV EAX,dword ptr [EBX + 0xab0]
TEST EAX,EAX
JZ 0x00062ad0
MOV EBP,dword ptr [EBX + 0xaac]
TEST EBP,EBP
JZ 0x00062b10
MOV EDI,dword ptr [EBX + 0xaa8]
TEST EDI,EDI
JZ 0x00062af0
SUB ESP,0x8
PUSH ESI
PUSH dword ptr [EBX + 0xab0]
CALL 0x00047700
POP EAX
POP EDX
PUSH ESI
PUSH dword ptr [EBX + 0xaac]
CALL 0x00047700
MOV ECX,dword ptr [ESI + 0xc]
ADD ESP,0x10
TEST ECX,ECX
JNS 0x00062a28
SUB ESP,0x4
LEA EDI,[EBX + 0xfffb1b7c]
PUSH EDI
PUSH 0x1
PUSH dword ptr [ESI + 0x8]
CALL 0x00063070
MOV EAX,dword ptr [ESI + 0xc]
ADD ESP,0x10
TEST EAX,EAX
JNS 0x00062a10
SUB ESP,0xc
PUSH dword ptr [ESP + 0x14]
CALL 0x00060670
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x2c]
XOR ECX,dword ptr GS:[0x14]
MOV EAX,ESI
JNZ 0x00062b6d
ADD ESP,0x3c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
PUSH EDI
PUSH dword ptr [ESP + 0x60]
PUSH dword ptr [ESP + 0x14]
CALL 0x00030750
ADD ESP,0x10
MOV EDI,EAX
LEA EAX,[EBX + 0xad8]
TEST byte ptr [EAX],0x2
JNZ 0x00062a40
MOV dword ptr [ESP + 0x28],0x0
MOV dword ptr [ESP + 0x24],0x0
SUB ESP,0x8
LEA EAX,[EBX + 0xfffd51f4]
PUSH EDI
PUSH EAX
CALL 0x0002d860
POP EDX
MOV EDX,dword ptr [EBP]
POP ECX
PUSH 0x0
PUSH EAX
MOV dword ptr [ESP + 0x1c],EAX
PUSH 0x0
PUSH 0x0
PUSH 0x2
PUSH EBP
CALL dword ptr [EDX]
MOV EAX,dword ptr [ESP + 0x2c]
ADD ESP,0x14
PUSH EAX
CALL 0x0002da80
POP EBP
LEA EAX,[ESP + 0x20]
PUSH EAX
CALL 0x0001a030
ADD ESP,0x10
TEST EAX,EAX
JS 0x00062a58
SUB ESP,0xc
LEA EAX,[ESP + 0x28]
PUSH EAX
CALL 0x0001a030
ADD ESP,0x10
TEST EAX,EAX
JS 0x00062a58
MOV EAX,dword ptr [ESP + 0x24]
TEST EAX,EAX
JNZ 0x0006297d
SUB ESP,0xc
LEA EAX,[ESP + 0x30]
PUSH EAX
CALL 0x0001a030
ADD ESP,0x10
TEST EAX,EAX
JS 0x00062a58
SUB ESP,0xc
PUSH dword ptr [ESP + 0x24]
CALL 0x0005f000
POP EBP
PUSH dword ptr [ESP + 0x28]
CALL 0x0005f000
MOV EAX,dword ptr [ESP + 0x34]
ADD ESP,0x10
TEST EAX,EAX
JS 0x000629aa
SUB ESP,0xc
PUSH EAX
CALL 0x0005f000
ADD ESP,0x10
CALL 0x00019170
TEST EAX,EAX
JS 0x00062b50
JZ 0x00062b72
SUB ESP,0xc
PUSH EDI
CALL 0x0002da80
POP EAX
PUSH dword ptr [ESP + 0x20]
CALL 0x0001ab80
POP EAX
PUSH dword ptr [ESP + 0x2c]
CALL 0x0001ab80
MOV EAX,dword ptr [ESP + 0x34]
ADD ESP,0x10
TEST EAX,EAX
JNS 0x00062b30
MOV EDX,dword ptr [ESP + 0x18]
MOV dword ptr [ESI + 0xc],EAX
MOV dword ptr [ESI + 0x4],EDX
MOV EDX,dword ptr [ESP + 0x1c]
MOV dword ptr [ESI + 0x8],EDX
JMP 0x00062822
XOR ESI,ESI
JMP 0x000628a8
SUB ESP,0x4
PUSH EDI
PUSH 0x1
PUSH EAX
CALL 0x00063070
ADD ESP,0x10
JMP 0x00062899
SUB ESP,0x8
PUSH ESI
PUSH dword ptr [EBX + 0xaa8]
CALL 0x00047700
ADD ESP,0x10
JMP 0x00062877
MOV dword ptr [ESP + 0x28],0xffffffff
MOV dword ptr [ESP + 0x24],0xffffffff
JMP 0x000628fd
CALL 0x00019bd0
SUB ESP,0xc
PUSH dword ptr [EAX]
CALL 0x0001a720
POP EDX
POP ECX
PUSH EAX
LEA EAX,[EBX + 0xfffd51be]
PUSH EAX
CALL 0x0002d860
MOV dword ptr [ESI + 0x10],EAX
MOV dword ptr [ESP],EDI
CALL 0x0002da80
ADD ESP,0x10
JMP 0x000628a8
CALL 0x00019bd0
SUB ESP,0xc
PUSH dword ptr [EAX]
CALL 0x0001a720
POP EDX
POP ECX
PUSH EAX
LEA EAX,[EBX + 0xfffd51e5]
JMP 0x00062a70
CALL 0x00019bd0
SUB ESP,0xc
PUSH dword ptr [EAX]
CALL 0x0001a720
ADD ESP,0xc
PUSH EAX
LEA EAX,[EBX + 0xfffb68a3]
PUSH EDI
JMP 0x00062a70
SUB ESP,0xc
LEA EAX,[EBX + 0xfffb190c]
PUSH EAX
CALL 0x00047680
ADD ESP,0x10
MOV dword ptr [EBX + 0xab0],EAX
JMP 0x00062830
SUB ESP,0xc
LEA EAX,[EBX + 0xfffb198c]
PUSH EAX
CALL 0x00047680
ADD ESP,0x10
MOV dword ptr [EBX + 0xaa8],EAX
JMP 0x0006284c
SUB ESP,0xc
LEA EAX,[EBX + 0xfffb194c]
PUSH EAX
CALL 0x00047680
ADD ESP,0x10
MOV dword ptr [EBX + 0xaac],EAX
JMP 0x0006283e
SUB ESP,0xc
PUSH dword ptr [ESP + 0x34]
CALL 0x0001ab80
MOV EAX,dword ptr [ESP + 0x34]
ADD ESP,0x10
JMP 0x000629e9
CALL 0x00019bd0
SUB ESP,0xc
PUSH dword ptr [EAX]
CALL 0x0001a720
POP EDX
POP ECX
PUSH EAX
LEA EAX,[EBX + 0xfffd51c7]
JMP 0x00062a70
CALL 0x00066390
SUB ESP,0xc
PUSH 0x0
CALL 0x0001ab80
MOV dword ptr [ESP],0x1
CALL 0x0001ab80
POP EAX
POP EDX
PUSH 0x0
PUSH dword ptr [ESP + 0x20]
CALL 0x0001aba0
POP ECX
POP ESI
PUSH 0x1
PUSH dword ptr [ESP + 0x2c]
CALL 0x0001aba0
POP EBP
PUSH dword ptr [ESP + 0x20]
CALL 0x0001ab80
POP EAX
PUSH dword ptr [ESP + 0x2c]
CALL 0x0001ab80
ADD ESP,0x10
CMP dword ptr [ESP + 0x24],0x0
JS 0x00062bda
PUSH EAX
PUSH EAX
PUSH 0x2
PUSH dword ptr [ESP + 0x34]
CALL 0x0001aba0
POP EAX
PUSH dword ptr [ESP + 0x34]
CALL 0x0001ab80
ADD ESP,0x10
SUB ESP,0xc
PUSH 0x0
CALL 0x0005f090
MOV dword ptr [ESP],0x1
CALL 0x0005f090
LEA EAX,[EBX + 0xfffd51d0]
MOV dword ptr [ESP],0x0
PUSH EDI
PUSH EAX
LEA EAX,[EBX + 0xfffd51d8]
PUSH EAX
LEA EAX,[EBX + 0xfffd51d3]
PUSH EAX
CALL 0x0001a8f0
ADD ESP,0x14
PUSH 0xff
CALL 0x00019a10
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 * FUN_00062720(undefined4 param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  char *__file;\n  __pid_t _Var3;\n  undefined4 uVar4;\n  char *pcVar5;\n  int *piVar6;\n  char *pcVar7;\n  int in_GS_OFFSET;\n  undefined4 *in_stack_00000020;\n  char *in_stack_00000024;\n  int local_38;\n  undefined4 local_34;\n  int local_30;\n  int local_2c;\n  int local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x62729;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = FUN_0001ea70(in_stack_00000024,0xd);\n  if (1 < iVar1 - 5U) {\n    puVar2 = (undefined4 *)0x0;\n    goto LAB_000628a8;\n  }\n  puVar2 = (undefined4 *)FUN_0002d1f0(1,0x40);\n  *puVar2 = &PTR_FUN_000afd20;\n  puVar2[5] = in_stack_00000020;\n  puVar2[4] = 0;\n  puVar2[0xf] = 0;\n  FUN_0002cfe0(puVar2 + 9);\n  FUN_0002cfe0(puVar2 + 6);\n  FUN_0002cfe0(puVar2 + 0xc);\n  if (iVar1 == 5) {\n    __file = (char *)FUN_00030750(param_1,param_3,in_stack_00000024);\n    if ((DAT_000b127c & 2) == 0) {\n      local_24 = 0;\n      local_28 = 0;\n    }\n    else {\n      local_24 = -1;\n      local_28 = -1;\n    }\n    uVar4 = FUN_0002d860("Starting local proxy command: %s",__file);\n    (**(code **)*in_stack_00000020)(in_stack_00000020,2,0,0,uVar4,0);\n    FUN_0002da80(uVar4);\n    iVar1 = pipe(&local_38);\n    if (-1 < iVar1) {\n      iVar1 = pipe(&local_30);\n      if (-1 < iVar1) {\n        if (local_28 == 0) {\n          iVar1 = pipe(&local_28);\n          if (iVar1 < 0) goto LAB_00062a58;\n        }\n        FUN_0005f000(local_34);\n        FUN_0005f000(local_30);\n        if (-1 < local_28) {\n          FUN_0005f000(local_28);\n        }\n        _Var3 = fork();\n        if (-1 < _Var3) {\n          if (_Var3 == 0) {\n            close(0);\n            close(1);\n            dup2(local_38,0);\n            uVar4 = 1;\n            dup2(local_2c,1);\n            close(local_38);\n            pcVar7 = (char *)close(local_2c);\n            if (-1 < local_28) {\n              uVar4 = 2;\n              dup2(local_24,2);\n              close(local_24);\n              in_stack_00000024 = pcVar7;\n            }\n            FUN_0005f090(0,uVar4,in_stack_00000024);\n            FUN_0005f090(1);\n            execl("/bin/sh","sh",&DAT_00085974,__file,0);\n                    /* WARNING: Subroutine does not return */\n            _exit(0xff);\n          }\n          FUN_0002da80(__file);\n          close(local_38);\n          close(local_2c);\n          if (-1 < local_28) {\n            close(local_24);\n          }\n          puVar2[3] = local_28;\n          puVar2[1] = local_34;\n          puVar2[2] = local_30;\n          goto LAB_00062822;\n        }\n        piVar6 = __errno_location();\n        pcVar5 = strerror(*piVar6);\n        pcVar7 = "fork: %s";\n        goto LAB_00062a70;\n      }\n    }\nLAB_00062a58:\n    piVar6 = __errno_location();\n    pcVar5 = strerror(*piVar6);\n    pcVar7 = "pipe: %s";\n  }\n  else {\n    __file = (char *)FUN_00030750(param_1,param_3,in_stack_00000024);\n    iVar1 = open64("/dev/null",1);\n    puVar2[1] = iVar1;\n    if (iVar1 == -1) {\n      piVar6 = __errno_location();\n      pcVar5 = strerror(*piVar6);\n      pcVar7 = "/dev/null: %s";\n    }\n    else {\n      iVar1 = open64(__file,0);\n      puVar2[2] = iVar1;\n      if (iVar1 != -1) {\n        FUN_0002da80(__file);\n        puVar2[3] = 0xffffffff;\nLAB_00062822:\n        if (DAT_000b1254 == 0) {\n          DAT_000b1254 = FUN_00047680(FUN_000620b0);\n        }\n        if (DAT_000b1250 == 0) {\n          DAT_000b1250 = FUN_00047680(FUN_000620f0);\n        }\n        if (DAT_000b124c == 0) {\n          DAT_000b124c = FUN_00047680(FUN_00062130);\n        }\n        FUN_00047700(DAT_000b1254,puVar2);\n        FUN_00047700(DAT_000b1250,puVar2);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00047700(DAT_000b124c,puVar2);\n        }\n        FUN_00063070(puVar2[2],1,FUN_00062320);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00063070(puVar2[3],1,FUN_00062320);\n        }\n        FUN_00060670(param_1);\n        goto LAB_000628a8;\n      }\n      piVar6 = __errno_location();\n      in_stack_00000024 = strerror(*piVar6);\n      pcVar7 = "%s: %s";\n      pcVar5 = __file;\n    }\n  }\nLAB_00062a70:\n  uVar4 = FUN_0002d860(pcVar7,pcVar5,in_stack_00000024);\n  puVar2[4] = uVar4;\n  FUN_0002da80(__file);\nLAB_000628a8:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00066390();\n}\n\n" comment (function_definition "undefined4 * FUN_00062720(undefined4 param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  char *__file;\n  __pid_t _Var3;\n  undefined4 uVar4;\n  char *pcVar5;\n  int *piVar6;\n  char *pcVar7;\n  int in_GS_OFFSET;\n  undefined4 *in_stack_00000020;\n  char *in_stack_00000024;\n  int local_38;\n  undefined4 local_34;\n  int local_30;\n  int local_2c;\n  int local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x62729;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = FUN_0001ea70(in_stack_00000024,0xd);\n  if (1 < iVar1 - 5U) {\n    puVar2 = (undefined4 *)0x0;\n    goto LAB_000628a8;\n  }\n  puVar2 = (undefined4 *)FUN_0002d1f0(1,0x40);\n  *puVar2 = &PTR_FUN_000afd20;\n  puVar2[5] = in_stack_00000020;\n  puVar2[4] = 0;\n  puVar2[0xf] = 0;\n  FUN_0002cfe0(puVar2 + 9);\n  FUN_0002cfe0(puVar2 + 6);\n  FUN_0002cfe0(puVar2 + 0xc);\n  if (iVar1 == 5) {\n    __file = (char *)FUN_00030750(param_1,param_3,in_stack_00000024);\n    if ((DAT_000b127c & 2) == 0) {\n      local_24 = 0;\n      local_28 = 0;\n    }\n    else {\n      local_24 = -1;\n      local_28 = -1;\n    }\n    uVar4 = FUN_0002d860("Starting local proxy command: %s",__file);\n    (**(code **)*in_stack_00000020)(in_stack_00000020,2,0,0,uVar4,0);\n    FUN_0002da80(uVar4);\n    iVar1 = pipe(&local_38);\n    if (-1 < iVar1) {\n      iVar1 = pipe(&local_30);\n      if (-1 < iVar1) {\n        if (local_28 == 0) {\n          iVar1 = pipe(&local_28);\n          if (iVar1 < 0) goto LAB_00062a58;\n        }\n        FUN_0005f000(local_34);\n        FUN_0005f000(local_30);\n        if (-1 < local_28) {\n          FUN_0005f000(local_28);\n        }\n        _Var3 = fork();\n        if (-1 < _Var3) {\n          if (_Var3 == 0) {\n            close(0);\n            close(1);\n            dup2(local_38,0);\n            uVar4 = 1;\n            dup2(local_2c,1);\n            close(local_38);\n            pcVar7 = (char *)close(local_2c);\n            if (-1 < local_28) {\n              uVar4 = 2;\n              dup2(local_24,2);\n              close(local_24);\n              in_stack_00000024 = pcVar7;\n            }\n            FUN_0005f090(0,uVar4,in_stack_00000024);\n            FUN_0005f090(1);\n            execl("/bin/sh","sh",&DAT_00085974,__file,0);\n                    /* WARNING: Subroutine does not return */\n            _exit(0xff);\n          }\n          FUN_0002da80(__file);\n          close(local_38);\n          close(local_2c);\n          if (-1 < local_28) {\n            close(local_24);\n          }\n          puVar2[3] = local_28;\n          puVar2[1] = local_34;\n          puVar2[2] = local_30;\n          goto LAB_00062822;\n        }\n        piVar6 = __errno_location();\n        pcVar5 = strerror(*piVar6);\n        pcVar7 = "fork: %s";\n        goto LAB_00062a70;\n      }\n    }\nLAB_00062a58:\n    piVar6 = __errno_location();\n    pcVar5 = strerror(*piVar6);\n    pcVar7 = "pipe: %s";\n  }\n  else {\n    __file = (char *)FUN_00030750(param_1,param_3,in_stack_00000024);\n    iVar1 = open64("/dev/null",1);\n    puVar2[1] = iVar1;\n    if (iVar1 == -1) {\n      piVar6 = __errno_location();\n      pcVar5 = strerror(*piVar6);\n      pcVar7 = "/dev/null: %s";\n    }\n    else {\n      iVar1 = open64(__file,0);\n      puVar2[2] = iVar1;\n      if (iVar1 != -1) {\n        FUN_0002da80(__file);\n        puVar2[3] = 0xffffffff;\nLAB_00062822:\n        if (DAT_000b1254 == 0) {\n          DAT_000b1254 = FUN_00047680(FUN_000620b0);\n        }\n        if (DAT_000b1250 == 0) {\n          DAT_000b1250 = FUN_00047680(FUN_000620f0);\n        }\n        if (DAT_000b124c == 0) {\n          DAT_000b124c = FUN_00047680(FUN_00062130);\n        }\n        FUN_00047700(DAT_000b1254,puVar2);\n        FUN_00047700(DAT_000b1250,puVar2);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00047700(DAT_000b124c,puVar2);\n        }\n        FUN_00063070(puVar2[2],1,FUN_00062320);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00063070(puVar2[3],1,FUN_00062320);\n        }\n        FUN_00060670(param_1);\n        goto LAB_000628a8;\n      }\n      piVar6 = __errno_location();\n      in_stack_00000024 = strerror(*piVar6);\n      pcVar7 = "%s: %s";\n      pcVar5 = __file;\n    }\n  }\nLAB_00062a70:\n  uVar4 = FUN_0002d860(pcVar7,pcVar5,in_stack_00000024);\n  puVar2[4] = uVar4;\n  FUN_0002da80(__file);\nLAB_000628a8:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00066390();\n}" type_identifier (pointer_declarator "* FUN_00062720(undefined4 param_1,undefined4 param_2,undefined4 param_3)" * (function_declarator "FUN_00062720(undefined4 param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) )))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  char *__file;\n  __pid_t _Var3;\n  undefined4 uVar4;\n  char *pcVar5;\n  int *piVar6;\n  char *pcVar7;\n  int in_GS_OFFSET;\n  undefined4 *in_stack_00000020;\n  char *in_stack_00000024;\n  int local_38;\n  undefined4 local_34;\n  int local_30;\n  int local_2c;\n  int local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x62729;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = FUN_0001ea70(in_stack_00000024,0xd);\n  if (1 < iVar1 - 5U) {\n    puVar2 = (undefined4 *)0x0;\n    goto LAB_000628a8;\n  }\n  puVar2 = (undefined4 *)FUN_0002d1f0(1,0x40);\n  *puVar2 = &PTR_FUN_000afd20;\n  puVar2[5] = in_stack_00000020;\n  puVar2[4] = 0;\n  puVar2[0xf] = 0;\n  FUN_0002cfe0(puVar2 + 9);\n  FUN_0002cfe0(puVar2 + 6);\n  FUN_0002cfe0(puVar2 + 0xc);\n  if (iVar1 == 5) {\n    __file = (char *)FUN_00030750(param_1,param_3,in_stack_00000024);\n    if ((DAT_000b127c & 2) == 0) {\n      local_24 = 0;\n      local_28 = 0;\n    }\n    else {\n      local_24 = -1;\n      local_28 = -1;\n    }\n    uVar4 = FUN_0002d860("Starting local proxy command: %s",__file);\n    (**(code **)*in_stack_00000020)(in_stack_00000020,2,0,0,uVar4,0);\n    FUN_0002da80(uVar4);\n    iVar1 = pipe(&local_38);\n    if (-1 < iVar1) {\n      iVar1 = pipe(&local_30);\n      if (-1 < iVar1) {\n        if (local_28 == 0) {\n          iVar1 = pipe(&local_28);\n          if (iVar1 < 0) goto LAB_00062a58;\n        }\n        FUN_0005f000(local_34);\n        FUN_0005f000(local_30);\n        if (-1 < local_28) {\n          FUN_0005f000(local_28);\n        }\n        _Var3 = fork();\n        if (-1 < _Var3) {\n          if (_Var3 == 0) {\n            close(0);\n            close(1);\n            dup2(local_38,0);\n            uVar4 = 1;\n            dup2(local_2c,1);\n            close(local_38);\n            pcVar7 = (char *)close(local_2c);\n            if (-1 < local_28) {\n              uVar4 = 2;\n              dup2(local_24,2);\n              close(local_24);\n              in_stack_00000024 = pcVar7;\n            }\n            FUN_0005f090(0,uVar4,in_stack_00000024);\n            FUN_0005f090(1);\n            execl("/bin/sh","sh",&DAT_00085974,__file,0);\n                    /* WARNING: Subroutine does not return */\n            _exit(0xff);\n          }\n          FUN_0002da80(__file);\n          close(local_38);\n          close(local_2c);\n          if (-1 < local_28) {\n            close(local_24);\n          }\n          puVar2[3] = local_28;\n          puVar2[1] = local_34;\n          puVar2[2] = local_30;\n          goto LAB_00062822;\n        }\n        piVar6 = __errno_location();\n        pcVar5 = strerror(*piVar6);\n        pcVar7 = "fork: %s";\n        goto LAB_00062a70;\n      }\n    }\nLAB_00062a58:\n    piVar6 = __errno_location();\n    pcVar5 = strerror(*piVar6);\n    pcVar7 = "pipe: %s";\n  }\n  else {\n    __file = (char *)FUN_00030750(param_1,param_3,in_stack_00000024);\n    iVar1 = open64("/dev/null",1);\n    puVar2[1] = iVar1;\n    if (iVar1 == -1) {\n      piVar6 = __errno_location();\n      pcVar5 = strerror(*piVar6);\n      pcVar7 = "/dev/null: %s";\n    }\n    else {\n      iVar1 = open64(__file,0);\n      puVar2[2] = iVar1;\n      if (iVar1 != -1) {\n        FUN_0002da80(__file);\n        puVar2[3] = 0xffffffff;\nLAB_00062822:\n        if (DAT_000b1254 == 0) {\n          DAT_000b1254 = FUN_00047680(FUN_000620b0);\n        }\n        if (DAT_000b1250 == 0) {\n          DAT_000b1250 = FUN_00047680(FUN_000620f0);\n        }\n        if (DAT_000b124c == 0) {\n          DAT_000b124c = FUN_00047680(FUN_00062130);\n        }\n        FUN_00047700(DAT_000b1254,puVar2);\n        FUN_00047700(DAT_000b1250,puVar2);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00047700(DAT_000b124c,puVar2);\n        }\n        FUN_00063070(puVar2[2],1,FUN_00062320);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00063070(puVar2[3],1,FUN_00062320);\n        }\n        FUN_00060670(param_1);\n        goto LAB_000628a8;\n      }\n      piVar6 = __errno_location();\n      in_stack_00000024 = strerror(*piVar6);\n      pcVar7 = "%s: %s";\n      pcVar5 = __file;\n    }\n  }\nLAB_00062a70:\n  uVar4 = FUN_0002d860(pcVar7,pcVar5,in_stack_00000024);\n  puVar2[4] = uVar4;\n  FUN_0002da80(__file);\nLAB_000628a8:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_00066390();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "char *__file;" primitive_type (pointer_declarator "*__file" * identifier) ;) (declaration "__pid_t _Var3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 *in_stack_00000020;" type_identifier (pointer_declarator "*in_stack_00000020" * identifier) ;) (declaration "char *in_stack_00000024;" primitive_type (pointer_declarator "*in_stack_00000024" * identifier) ;) (declaration "int local_38;" primitive_type identifier ;) (declaration "undefined4 local_34;" type_identifier identifier ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (declaration "int local_28;" primitive_type identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x62729;" (assignment_expression "uStack_14 = 0x62729" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = FUN_0001ea70(in_stack_00000024,0xd);" (assignment_expression "iVar1 = FUN_0001ea70(in_stack_00000024,0xd)" identifier = (call_expression "FUN_0001ea70(in_stack_00000024,0xd)" identifier (argument_list "(in_stack_00000024,0xd)" ( identifier , number_literal )))) ;) (if_statement "if (1 < iVar1 - 5U) {\n    puVar2 = (undefined4 *)0x0;\n    goto LAB_000628a8;\n  }" if (parenthesized_expression "(1 < iVar1 - 5U)" ( (binary_expression "1 < iVar1 - 5U" number_literal < (binary_expression "iVar1 - 5U" identifier - number_literal)) )) (compound_statement "{\n    puVar2 = (undefined4 *)0x0;\n    goto LAB_000628a8;\n  }" { (expression_statement "puVar2 = (undefined4 *)0x0;" (assignment_expression "puVar2 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (goto_statement "goto LAB_000628a8;" goto statement_identifier ;) })) (expression_statement "puVar2 = (undefined4 *)FUN_0002d1f0(1,0x40);" (assignment_expression "puVar2 = (undefined4 *)FUN_0002d1f0(1,0x40)" identifier = (cast_expression "(undefined4 *)FUN_0002d1f0(1,0x40)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0002d1f0(1,0x40)" identifier (argument_list "(1,0x40)" ( number_literal , number_literal ))))) ;) (expression_statement "*puVar2 = &PTR_FUN_000afd20;" (assignment_expression "*puVar2 = &PTR_FUN_000afd20" (pointer_expression "*puVar2" * identifier) = (pointer_expression "&PTR_FUN_000afd20" & identifier)) ;) (expression_statement "puVar2[5] = in_stack_00000020;" (assignment_expression "puVar2[5] = in_stack_00000020" (subscript_expression "puVar2[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2[4] = 0;" (assignment_expression "puVar2[4] = 0" (subscript_expression "puVar2[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[0xf] = 0;" (assignment_expression "puVar2[0xf] = 0" (subscript_expression "puVar2[0xf]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "FUN_0002cfe0(puVar2 + 9);" (call_expression "FUN_0002cfe0(puVar2 + 9)" identifier (argument_list "(puVar2 + 9)" ( (binary_expression "puVar2 + 9" identifier + number_literal) ))) ;) (expression_statement "FUN_0002cfe0(puVar2 + 6);" (call_expression "FUN_0002cfe0(puVar2 + 6)" identifier (argument_list "(puVar2 + 6)" ( (binary_expression "puVar2 + 6" identifier + number_literal) ))) ;) (expression_statement "FUN_0002cfe0(puVar2 + 0xc);" (call_expression "FUN_0002cfe0(puVar2 + 0xc)" identifier (argument_list "(puVar2 + 0xc)" ( (binary_expression "puVar2 + 0xc" identifier + number_literal) ))) ;) (if_statement "if (iVar1 == 5) {\n    __file = (char *)FUN_00030750(param_1,param_3,in_stack_00000024);\n    if ((DAT_000b127c & 2) == 0) {\n      local_24 = 0;\n      local_28 = 0;\n    }\n    else {\n      local_24 = -1;\n      local_28 = -1;\n    }\n    uVar4 = FUN_0002d860("Starting local proxy command: %s",__file);\n    (**(code **)*in_stack_00000020)(in_stack_00000020,2,0,0,uVar4,0);\n    FUN_0002da80(uVar4);\n    iVar1 = pipe(&local_38);\n    if (-1 < iVar1) {\n      iVar1 = pipe(&local_30);\n      if (-1 < iVar1) {\n        if (local_28 == 0) {\n          iVar1 = pipe(&local_28);\n          if (iVar1 < 0) goto LAB_00062a58;\n        }\n        FUN_0005f000(local_34);\n        FUN_0005f000(local_30);\n        if (-1 < local_28) {\n          FUN_0005f000(local_28);\n        }\n        _Var3 = fork();\n        if (-1 < _Var3) {\n          if (_Var3 == 0) {\n            close(0);\n            close(1);\n            dup2(local_38,0);\n            uVar4 = 1;\n            dup2(local_2c,1);\n            close(local_38);\n            pcVar7 = (char *)close(local_2c);\n            if (-1 < local_28) {\n              uVar4 = 2;\n              dup2(local_24,2);\n              close(local_24);\n              in_stack_00000024 = pcVar7;\n            }\n            FUN_0005f090(0,uVar4,in_stack_00000024);\n            FUN_0005f090(1);\n            execl("/bin/sh","sh",&DAT_00085974,__file,0);\n                    /* WARNING: Subroutine does not return */\n            _exit(0xff);\n          }\n          FUN_0002da80(__file);\n          close(local_38);\n          close(local_2c);\n          if (-1 < local_28) {\n            close(local_24);\n          }\n          puVar2[3] = local_28;\n          puVar2[1] = local_34;\n          puVar2[2] = local_30;\n          goto LAB_00062822;\n        }\n        piVar6 = __errno_location();\n        pcVar5 = strerror(*piVar6);\n        pcVar7 = "fork: %s";\n        goto LAB_00062a70;\n      }\n    }\nLAB_00062a58:\n    piVar6 = __errno_location();\n    pcVar5 = strerror(*piVar6);\n    pcVar7 = "pipe: %s";\n  }\n  else {\n    __file = (char *)FUN_00030750(param_1,param_3,in_stack_00000024);\n    iVar1 = open64("/dev/null",1);\n    puVar2[1] = iVar1;\n    if (iVar1 == -1) {\n      piVar6 = __errno_location();\n      pcVar5 = strerror(*piVar6);\n      pcVar7 = "/dev/null: %s";\n    }\n    else {\n      iVar1 = open64(__file,0);\n      puVar2[2] = iVar1;\n      if (iVar1 != -1) {\n        FUN_0002da80(__file);\n        puVar2[3] = 0xffffffff;\nLAB_00062822:\n        if (DAT_000b1254 == 0) {\n          DAT_000b1254 = FUN_00047680(FUN_000620b0);\n        }\n        if (DAT_000b1250 == 0) {\n          DAT_000b1250 = FUN_00047680(FUN_000620f0);\n        }\n        if (DAT_000b124c == 0) {\n          DAT_000b124c = FUN_00047680(FUN_00062130);\n        }\n        FUN_00047700(DAT_000b1254,puVar2);\n        FUN_00047700(DAT_000b1250,puVar2);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00047700(DAT_000b124c,puVar2);\n        }\n        FUN_00063070(puVar2[2],1,FUN_00062320);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00063070(puVar2[3],1,FUN_00062320);\n        }\n        FUN_00060670(param_1);\n        goto LAB_000628a8;\n      }\n      piVar6 = __errno_location();\n      in_stack_00000024 = strerror(*piVar6);\n      pcVar7 = "%s: %s";\n      pcVar5 = __file;\n    }\n  }" if (parenthesized_expression "(iVar1 == 5)" ( (binary_expression "iVar1 == 5" identifier == number_literal) )) (compound_statement "{\n    __file = (char *)FUN_00030750(param_1,param_3,in_stack_00000024);\n    if ((DAT_000b127c & 2) == 0) {\n      local_24 = 0;\n      local_28 = 0;\n    }\n    else {\n      local_24 = -1;\n      local_28 = -1;\n    }\n    uVar4 = FUN_0002d860("Starting local proxy command: %s",__file);\n    (**(code **)*in_stack_00000020)(in_stack_00000020,2,0,0,uVar4,0);\n    FUN_0002da80(uVar4);\n    iVar1 = pipe(&local_38);\n    if (-1 < iVar1) {\n      iVar1 = pipe(&local_30);\n      if (-1 < iVar1) {\n        if (local_28 == 0) {\n          iVar1 = pipe(&local_28);\n          if (iVar1 < 0) goto LAB_00062a58;\n        }\n        FUN_0005f000(local_34);\n        FUN_0005f000(local_30);\n        if (-1 < local_28) {\n          FUN_0005f000(local_28);\n        }\n        _Var3 = fork();\n        if (-1 < _Var3) {\n          if (_Var3 == 0) {\n            close(0);\n            close(1);\n            dup2(local_38,0);\n            uVar4 = 1;\n            dup2(local_2c,1);\n            close(local_38);\n            pcVar7 = (char *)close(local_2c);\n            if (-1 < local_28) {\n              uVar4 = 2;\n              dup2(local_24,2);\n              close(local_24);\n              in_stack_00000024 = pcVar7;\n            }\n            FUN_0005f090(0,uVar4,in_stack_00000024);\n            FUN_0005f090(1);\n            execl("/bin/sh","sh",&DAT_00085974,__file,0);\n                    /* WARNING: Subroutine does not return */\n            _exit(0xff);\n          }\n          FUN_0002da80(__file);\n          close(local_38);\n          close(local_2c);\n          if (-1 < local_28) {\n            close(local_24);\n          }\n          puVar2[3] = local_28;\n          puVar2[1] = local_34;\n          puVar2[2] = local_30;\n          goto LAB_00062822;\n        }\n        piVar6 = __errno_location();\n        pcVar5 = strerror(*piVar6);\n        pcVar7 = "fork: %s";\n        goto LAB_00062a70;\n      }\n    }\nLAB_00062a58:\n    piVar6 = __errno_location();\n    pcVar5 = strerror(*piVar6);\n    pcVar7 = "pipe: %s";\n  }" { (expression_statement "__file = (char *)FUN_00030750(param_1,param_3,in_stack_00000024);" (assignment_expression "__file = (char *)FUN_00030750(param_1,param_3,in_stack_00000024)" identifier = (cast_expression "(char *)FUN_00030750(param_1,param_3,in_stack_00000024)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00030750(param_1,param_3,in_stack_00000024)" identifier (argument_list "(param_1,param_3,in_stack_00000024)" ( identifier , identifier , identifier ))))) ;) (if_statement "if ((DAT_000b127c & 2) == 0) {\n      local_24 = 0;\n      local_28 = 0;\n    }\n    else {\n      local_24 = -1;\n      local_28 = -1;\n    }" if (parenthesized_expression "((DAT_000b127c & 2) == 0)" ( (binary_expression "(DAT_000b127c & 2) == 0" (parenthesized_expression "(DAT_000b127c & 2)" ( (binary_expression "DAT_000b127c & 2" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      local_24 = 0;\n      local_28 = 0;\n    }" { (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      local_24 = -1;\n      local_28 = -1;\n    }" else (compound_statement "{\n      local_24 = -1;\n      local_28 = -1;\n    }" { (expression_statement "local_24 = -1;" (assignment_expression "local_24 = -1" identifier = number_literal) ;) (expression_statement "local_28 = -1;" (assignment_expression "local_28 = -1" identifier = number_literal) ;) }))) (expression_statement "uVar4 = FUN_0002d860("Starting local proxy command: %s",__file);" (assignment_expression "uVar4 = FUN_0002d860("Starting local proxy command: %s",__file)" identifier = (call_expression "FUN_0002d860("Starting local proxy command: %s",__file)" identifier (argument_list "("Starting local proxy command: %s",__file)" ( (string_literal ""Starting local proxy command: %s"" " string_content ") , identifier )))) ;) (expression_statement "(**(code **)*in_stack_00000020)(in_stack_00000020,2,0,0,uVar4,0);" (call_expression "(**(code **)*in_stack_00000020)(in_stack_00000020,2,0,0,uVar4,0)" (parenthesized_expression "(**(code **)*in_stack_00000020)" ( (pointer_expression "**(code **)*in_stack_00000020" * (pointer_expression "*(code **)*in_stack_00000020" * (cast_expression "(code **)*in_stack_00000020" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "*in_stack_00000020" * identifier)))) )) (argument_list "(in_stack_00000020,2,0,0,uVar4,0)" ( identifier , number_literal , number_literal , number_literal , identifier , number_literal ))) ;) (expression_statement "FUN_0002da80(uVar4);" (call_expression "FUN_0002da80(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) (expression_statement "iVar1 = pipe(&local_38);" (assignment_expression "iVar1 = pipe(&local_38)" identifier = (call_expression "pipe(&local_38)" identifier (argument_list "(&local_38)" ( (pointer_expression "&local_38" & identifier) )))) ;) (if_statement "if (-1 < iVar1) {\n      iVar1 = pipe(&local_30);\n      if (-1 < iVar1) {\n        if (local_28 == 0) {\n          iVar1 = pipe(&local_28);\n          if (iVar1 < 0) goto LAB_00062a58;\n        }\n        FUN_0005f000(local_34);\n        FUN_0005f000(local_30);\n        if (-1 < local_28) {\n          FUN_0005f000(local_28);\n        }\n        _Var3 = fork();\n        if (-1 < _Var3) {\n          if (_Var3 == 0) {\n            close(0);\n            close(1);\n            dup2(local_38,0);\n            uVar4 = 1;\n            dup2(local_2c,1);\n            close(local_38);\n            pcVar7 = (char *)close(local_2c);\n            if (-1 < local_28) {\n              uVar4 = 2;\n              dup2(local_24,2);\n              close(local_24);\n              in_stack_00000024 = pcVar7;\n            }\n            FUN_0005f090(0,uVar4,in_stack_00000024);\n            FUN_0005f090(1);\n            execl("/bin/sh","sh",&DAT_00085974,__file,0);\n                    /* WARNING: Subroutine does not return */\n            _exit(0xff);\n          }\n          FUN_0002da80(__file);\n          close(local_38);\n          close(local_2c);\n          if (-1 < local_28) {\n            close(local_24);\n          }\n          puVar2[3] = local_28;\n          puVar2[1] = local_34;\n          puVar2[2] = local_30;\n          goto LAB_00062822;\n        }\n        piVar6 = __errno_location();\n        pcVar5 = strerror(*piVar6);\n        pcVar7 = "fork: %s";\n        goto LAB_00062a70;\n      }\n    }" if (parenthesized_expression "(-1 < iVar1)" ( (binary_expression "-1 < iVar1" number_literal < identifier) )) (compound_statement "{\n      iVar1 = pipe(&local_30);\n      if (-1 < iVar1) {\n        if (local_28 == 0) {\n          iVar1 = pipe(&local_28);\n          if (iVar1 < 0) goto LAB_00062a58;\n        }\n        FUN_0005f000(local_34);\n        FUN_0005f000(local_30);\n        if (-1 < local_28) {\n          FUN_0005f000(local_28);\n        }\n        _Var3 = fork();\n        if (-1 < _Var3) {\n          if (_Var3 == 0) {\n            close(0);\n            close(1);\n            dup2(local_38,0);\n            uVar4 = 1;\n            dup2(local_2c,1);\n            close(local_38);\n            pcVar7 = (char *)close(local_2c);\n            if (-1 < local_28) {\n              uVar4 = 2;\n              dup2(local_24,2);\n              close(local_24);\n              in_stack_00000024 = pcVar7;\n            }\n            FUN_0005f090(0,uVar4,in_stack_00000024);\n            FUN_0005f090(1);\n            execl("/bin/sh","sh",&DAT_00085974,__file,0);\n                    /* WARNING: Subroutine does not return */\n            _exit(0xff);\n          }\n          FUN_0002da80(__file);\n          close(local_38);\n          close(local_2c);\n          if (-1 < local_28) {\n            close(local_24);\n          }\n          puVar2[3] = local_28;\n          puVar2[1] = local_34;\n          puVar2[2] = local_30;\n          goto LAB_00062822;\n        }\n        piVar6 = __errno_location();\n        pcVar5 = strerror(*piVar6);\n        pcVar7 = "fork: %s";\n        goto LAB_00062a70;\n      }\n    }" { (expression_statement "iVar1 = pipe(&local_30);" (assignment_expression "iVar1 = pipe(&local_30)" identifier = (call_expression "pipe(&local_30)" identifier (argument_list "(&local_30)" ( (pointer_expression "&local_30" & identifier) )))) ;) (if_statement "if (-1 < iVar1) {\n        if (local_28 == 0) {\n          iVar1 = pipe(&local_28);\n          if (iVar1 < 0) goto LAB_00062a58;\n        }\n        FUN_0005f000(local_34);\n        FUN_0005f000(local_30);\n        if (-1 < local_28) {\n          FUN_0005f000(local_28);\n        }\n        _Var3 = fork();\n        if (-1 < _Var3) {\n          if (_Var3 == 0) {\n            close(0);\n            close(1);\n            dup2(local_38,0);\n            uVar4 = 1;\n            dup2(local_2c,1);\n            close(local_38);\n            pcVar7 = (char *)close(local_2c);\n            if (-1 < local_28) {\n              uVar4 = 2;\n              dup2(local_24,2);\n              close(local_24);\n              in_stack_00000024 = pcVar7;\n            }\n            FUN_0005f090(0,uVar4,in_stack_00000024);\n            FUN_0005f090(1);\n            execl("/bin/sh","sh",&DAT_00085974,__file,0);\n                    /* WARNING: Subroutine does not return */\n            _exit(0xff);\n          }\n          FUN_0002da80(__file);\n          close(local_38);\n          close(local_2c);\n          if (-1 < local_28) {\n            close(local_24);\n          }\n          puVar2[3] = local_28;\n          puVar2[1] = local_34;\n          puVar2[2] = local_30;\n          goto LAB_00062822;\n        }\n        piVar6 = __errno_location();\n        pcVar5 = strerror(*piVar6);\n        pcVar7 = "fork: %s";\n        goto LAB_00062a70;\n      }" if (parenthesized_expression "(-1 < iVar1)" ( (binary_expression "-1 < iVar1" number_literal < identifier) )) (compound_statement "{\n        if (local_28 == 0) {\n          iVar1 = pipe(&local_28);\n          if (iVar1 < 0) goto LAB_00062a58;\n        }\n        FUN_0005f000(local_34);\n        FUN_0005f000(local_30);\n        if (-1 < local_28) {\n          FUN_0005f000(local_28);\n        }\n        _Var3 = fork();\n        if (-1 < _Var3) {\n          if (_Var3 == 0) {\n            close(0);\n            close(1);\n            dup2(local_38,0);\n            uVar4 = 1;\n            dup2(local_2c,1);\n            close(local_38);\n            pcVar7 = (char *)close(local_2c);\n            if (-1 < local_28) {\n              uVar4 = 2;\n              dup2(local_24,2);\n              close(local_24);\n              in_stack_00000024 = pcVar7;\n            }\n            FUN_0005f090(0,uVar4,in_stack_00000024);\n            FUN_0005f090(1);\n            execl("/bin/sh","sh",&DAT_00085974,__file,0);\n                    /* WARNING: Subroutine does not return */\n            _exit(0xff);\n          }\n          FUN_0002da80(__file);\n          close(local_38);\n          close(local_2c);\n          if (-1 < local_28) {\n            close(local_24);\n          }\n          puVar2[3] = local_28;\n          puVar2[1] = local_34;\n          puVar2[2] = local_30;\n          goto LAB_00062822;\n        }\n        piVar6 = __errno_location();\n        pcVar5 = strerror(*piVar6);\n        pcVar7 = "fork: %s";\n        goto LAB_00062a70;\n      }" { (if_statement "if (local_28 == 0) {\n          iVar1 = pipe(&local_28);\n          if (iVar1 < 0) goto LAB_00062a58;\n        }" if (parenthesized_expression "(local_28 == 0)" ( (binary_expression "local_28 == 0" identifier == number_literal) )) (compound_statement "{\n          iVar1 = pipe(&local_28);\n          if (iVar1 < 0) goto LAB_00062a58;\n        }" { (expression_statement "iVar1 = pipe(&local_28);" (assignment_expression "iVar1 = pipe(&local_28)" identifier = (call_expression "pipe(&local_28)" identifier (argument_list "(&local_28)" ( (pointer_expression "&local_28" & identifier) )))) ;) (if_statement "if (iVar1 < 0) goto LAB_00062a58;" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (goto_statement "goto LAB_00062a58;" goto statement_identifier ;)) })) (expression_statement "FUN_0005f000(local_34);" (call_expression "FUN_0005f000(local_34)" identifier (argument_list "(local_34)" ( identifier ))) ;) (expression_statement "FUN_0005f000(local_30);" (call_expression "FUN_0005f000(local_30)" identifier (argument_list "(local_30)" ( identifier ))) ;) (if_statement "if (-1 < local_28) {\n          FUN_0005f000(local_28);\n        }" if (parenthesized_expression "(-1 < local_28)" ( (binary_expression "-1 < local_28" number_literal < identifier) )) (compound_statement "{\n          FUN_0005f000(local_28);\n        }" { (expression_statement "FUN_0005f000(local_28);" (call_expression "FUN_0005f000(local_28)" identifier (argument_list "(local_28)" ( identifier ))) ;) })) (expression_statement "_Var3 = fork();" (assignment_expression "_Var3 = fork()" identifier = (call_expression "fork()" identifier (argument_list "()" ( )))) ;) (if_statement "if (-1 < _Var3) {\n          if (_Var3 == 0) {\n            close(0);\n            close(1);\n            dup2(local_38,0);\n            uVar4 = 1;\n            dup2(local_2c,1);\n            close(local_38);\n            pcVar7 = (char *)close(local_2c);\n            if (-1 < local_28) {\n              uVar4 = 2;\n              dup2(local_24,2);\n              close(local_24);\n              in_stack_00000024 = pcVar7;\n            }\n            FUN_0005f090(0,uVar4,in_stack_00000024);\n            FUN_0005f090(1);\n            execl("/bin/sh","sh",&DAT_00085974,__file,0);\n                    /* WARNING: Subroutine does not return */\n            _exit(0xff);\n          }\n          FUN_0002da80(__file);\n          close(local_38);\n          close(local_2c);\n          if (-1 < local_28) {\n            close(local_24);\n          }\n          puVar2[3] = local_28;\n          puVar2[1] = local_34;\n          puVar2[2] = local_30;\n          goto LAB_00062822;\n        }" if (parenthesized_expression "(-1 < _Var3)" ( (binary_expression "-1 < _Var3" number_literal < identifier) )) (compound_statement "{\n          if (_Var3 == 0) {\n            close(0);\n            close(1);\n            dup2(local_38,0);\n            uVar4 = 1;\n            dup2(local_2c,1);\n            close(local_38);\n            pcVar7 = (char *)close(local_2c);\n            if (-1 < local_28) {\n              uVar4 = 2;\n              dup2(local_24,2);\n              close(local_24);\n              in_stack_00000024 = pcVar7;\n            }\n            FUN_0005f090(0,uVar4,in_stack_00000024);\n            FUN_0005f090(1);\n            execl("/bin/sh","sh",&DAT_00085974,__file,0);\n                    /* WARNING: Subroutine does not return */\n            _exit(0xff);\n          }\n          FUN_0002da80(__file);\n          close(local_38);\n          close(local_2c);\n          if (-1 < local_28) {\n            close(local_24);\n          }\n          puVar2[3] = local_28;\n          puVar2[1] = local_34;\n          puVar2[2] = local_30;\n          goto LAB_00062822;\n        }" { (if_statement "if (_Var3 == 0) {\n            close(0);\n            close(1);\n            dup2(local_38,0);\n            uVar4 = 1;\n            dup2(local_2c,1);\n            close(local_38);\n            pcVar7 = (char *)close(local_2c);\n            if (-1 < local_28) {\n              uVar4 = 2;\n              dup2(local_24,2);\n              close(local_24);\n              in_stack_00000024 = pcVar7;\n            }\n            FUN_0005f090(0,uVar4,in_stack_00000024);\n            FUN_0005f090(1);\n            execl("/bin/sh","sh",&DAT_00085974,__file,0);\n                    /* WARNING: Subroutine does not return */\n            _exit(0xff);\n          }" if (parenthesized_expression "(_Var3 == 0)" ( (binary_expression "_Var3 == 0" identifier == number_literal) )) (compound_statement "{\n            close(0);\n            close(1);\n            dup2(local_38,0);\n            uVar4 = 1;\n            dup2(local_2c,1);\n            close(local_38);\n            pcVar7 = (char *)close(local_2c);\n            if (-1 < local_28) {\n              uVar4 = 2;\n              dup2(local_24,2);\n              close(local_24);\n              in_stack_00000024 = pcVar7;\n            }\n            FUN_0005f090(0,uVar4,in_stack_00000024);\n            FUN_0005f090(1);\n            execl("/bin/sh","sh",&DAT_00085974,__file,0);\n                    /* WARNING: Subroutine does not return */\n            _exit(0xff);\n          }" { (expression_statement "close(0);" (call_expression "close(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "close(1);" (call_expression "close(1)" identifier (argument_list "(1)" ( number_literal ))) ;) (expression_statement "dup2(local_38,0);" (call_expression "dup2(local_38,0)" identifier (argument_list "(local_38,0)" ( identifier , number_literal ))) ;) (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" identifier = number_literal) ;) (expression_statement "dup2(local_2c,1);" (call_expression "dup2(local_2c,1)" identifier (argument_list "(local_2c,1)" ( identifier , number_literal ))) ;) (expression_statement "close(local_38);" (call_expression "close(local_38)" identifier (argument_list "(local_38)" ( identifier ))) ;) (expression_statement "pcVar7 = (char *)close(local_2c);" (assignment_expression "pcVar7 = (char *)close(local_2c)" identifier = (cast_expression "(char *)close(local_2c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "close(local_2c)" identifier (argument_list "(local_2c)" ( identifier ))))) ;) (if_statement "if (-1 < local_28) {\n              uVar4 = 2;\n              dup2(local_24,2);\n              close(local_24);\n              in_stack_00000024 = pcVar7;\n            }" if (parenthesized_expression "(-1 < local_28)" ( (binary_expression "-1 < local_28" number_literal < identifier) )) (compound_statement "{\n              uVar4 = 2;\n              dup2(local_24,2);\n              close(local_24);\n              in_stack_00000024 = pcVar7;\n            }" { (expression_statement "uVar4 = 2;" (assignment_expression "uVar4 = 2" identifier = number_literal) ;) (expression_statement "dup2(local_24,2);" (call_expression "dup2(local_24,2)" identifier (argument_list "(local_24,2)" ( identifier , number_literal ))) ;) (expression_statement "close(local_24);" (call_expression "close(local_24)" identifier (argument_list "(local_24)" ( identifier ))) ;) (expression_statement "in_stack_00000024 = pcVar7;" (assignment_expression "in_stack_00000024 = pcVar7" identifier = identifier) ;) })) (expression_statement "FUN_0005f090(0,uVar4,in_stack_00000024);" (call_expression "FUN_0005f090(0,uVar4,in_stack_00000024)" identifier (argument_list "(0,uVar4,in_stack_00000024)" ( number_literal , identifier , identifier ))) ;) (expression_statement "FUN_0005f090(1);" (call_expression "FUN_0005f090(1)" identifier (argument_list "(1)" ( number_literal ))) ;) (expression_statement "execl("/bin/sh","sh",&DAT_00085974,__file,0);" (call_expression "execl("/bin/sh","sh",&DAT_00085974,__file,0)" identifier (argument_list "("/bin/sh","sh",&DAT_00085974,__file,0)" ( (string_literal ""/bin/sh"" " string_content ") , (string_literal ""sh"" " string_content ") , (pointer_expression "&DAT_00085974" & identifier) , identifier , number_literal ))) ;) comment (expression_statement "_exit(0xff);" (call_expression "_exit(0xff)" identifier (argument_list "(0xff)" ( number_literal ))) ;) })) (expression_statement "FUN_0002da80(__file);" (call_expression "FUN_0002da80(__file)" identifier (argument_list "(__file)" ( identifier ))) ;) (expression_statement "close(local_38);" (call_expression "close(local_38)" identifier (argument_list "(local_38)" ( identifier ))) ;) (expression_statement "close(local_2c);" (call_expression "close(local_2c)" identifier (argument_list "(local_2c)" ( identifier ))) ;) (if_statement "if (-1 < local_28) {\n            close(local_24);\n          }" if (parenthesized_expression "(-1 < local_28)" ( (binary_expression "-1 < local_28" number_literal < identifier) )) (compound_statement "{\n            close(local_24);\n          }" { (expression_statement "close(local_24);" (call_expression "close(local_24)" identifier (argument_list "(local_24)" ( identifier ))) ;) })) (expression_statement "puVar2[3] = local_28;" (assignment_expression "puVar2[3] = local_28" (subscript_expression "puVar2[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2[1] = local_34;" (assignment_expression "puVar2[1] = local_34" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2[2] = local_30;" (assignment_expression "puVar2[2] = local_30" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = identifier) ;) (goto_statement "goto LAB_00062822;" goto statement_identifier ;) })) (expression_statement "piVar6 = __errno_location();" (assignment_expression "piVar6 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar5 = strerror(*piVar6);" (assignment_expression "pcVar5 = strerror(*piVar6)" identifier = (call_expression "strerror(*piVar6)" identifier (argument_list "(*piVar6)" ( (pointer_expression "*piVar6" * identifier) )))) ;) (expression_statement "pcVar7 = "fork: %s";" (assignment_expression "pcVar7 = "fork: %s"" identifier = (string_literal ""fork: %s"" " string_content ")) ;) (goto_statement "goto LAB_00062a70;" goto statement_identifier ;) })) })) (labeled_statement "LAB_00062a58:\n    piVar6 = __errno_location();" statement_identifier : (expression_statement "piVar6 = __errno_location();" (assignment_expression "piVar6 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;)) (expression_statement "pcVar5 = strerror(*piVar6);" (assignment_expression "pcVar5 = strerror(*piVar6)" identifier = (call_expression "strerror(*piVar6)" identifier (argument_list "(*piVar6)" ( (pointer_expression "*piVar6" * identifier) )))) ;) (expression_statement "pcVar7 = "pipe: %s";" (assignment_expression "pcVar7 = "pipe: %s"" identifier = (string_literal ""pipe: %s"" " string_content ")) ;) }) (else_clause "else {\n    __file = (char *)FUN_00030750(param_1,param_3,in_stack_00000024);\n    iVar1 = open64("/dev/null",1);\n    puVar2[1] = iVar1;\n    if (iVar1 == -1) {\n      piVar6 = __errno_location();\n      pcVar5 = strerror(*piVar6);\n      pcVar7 = "/dev/null: %s";\n    }\n    else {\n      iVar1 = open64(__file,0);\n      puVar2[2] = iVar1;\n      if (iVar1 != -1) {\n        FUN_0002da80(__file);\n        puVar2[3] = 0xffffffff;\nLAB_00062822:\n        if (DAT_000b1254 == 0) {\n          DAT_000b1254 = FUN_00047680(FUN_000620b0);\n        }\n        if (DAT_000b1250 == 0) {\n          DAT_000b1250 = FUN_00047680(FUN_000620f0);\n        }\n        if (DAT_000b124c == 0) {\n          DAT_000b124c = FUN_00047680(FUN_00062130);\n        }\n        FUN_00047700(DAT_000b1254,puVar2);\n        FUN_00047700(DAT_000b1250,puVar2);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00047700(DAT_000b124c,puVar2);\n        }\n        FUN_00063070(puVar2[2],1,FUN_00062320);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00063070(puVar2[3],1,FUN_00062320);\n        }\n        FUN_00060670(param_1);\n        goto LAB_000628a8;\n      }\n      piVar6 = __errno_location();\n      in_stack_00000024 = strerror(*piVar6);\n      pcVar7 = "%s: %s";\n      pcVar5 = __file;\n    }\n  }" else (compound_statement "{\n    __file = (char *)FUN_00030750(param_1,param_3,in_stack_00000024);\n    iVar1 = open64("/dev/null",1);\n    puVar2[1] = iVar1;\n    if (iVar1 == -1) {\n      piVar6 = __errno_location();\n      pcVar5 = strerror(*piVar6);\n      pcVar7 = "/dev/null: %s";\n    }\n    else {\n      iVar1 = open64(__file,0);\n      puVar2[2] = iVar1;\n      if (iVar1 != -1) {\n        FUN_0002da80(__file);\n        puVar2[3] = 0xffffffff;\nLAB_00062822:\n        if (DAT_000b1254 == 0) {\n          DAT_000b1254 = FUN_00047680(FUN_000620b0);\n        }\n        if (DAT_000b1250 == 0) {\n          DAT_000b1250 = FUN_00047680(FUN_000620f0);\n        }\n        if (DAT_000b124c == 0) {\n          DAT_000b124c = FUN_00047680(FUN_00062130);\n        }\n        FUN_00047700(DAT_000b1254,puVar2);\n        FUN_00047700(DAT_000b1250,puVar2);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00047700(DAT_000b124c,puVar2);\n        }\n        FUN_00063070(puVar2[2],1,FUN_00062320);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00063070(puVar2[3],1,FUN_00062320);\n        }\n        FUN_00060670(param_1);\n        goto LAB_000628a8;\n      }\n      piVar6 = __errno_location();\n      in_stack_00000024 = strerror(*piVar6);\n      pcVar7 = "%s: %s";\n      pcVar5 = __file;\n    }\n  }" { (expression_statement "__file = (char *)FUN_00030750(param_1,param_3,in_stack_00000024);" (assignment_expression "__file = (char *)FUN_00030750(param_1,param_3,in_stack_00000024)" identifier = (cast_expression "(char *)FUN_00030750(param_1,param_3,in_stack_00000024)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00030750(param_1,param_3,in_stack_00000024)" identifier (argument_list "(param_1,param_3,in_stack_00000024)" ( identifier , identifier , identifier ))))) ;) (expression_statement "iVar1 = open64("/dev/null",1);" (assignment_expression "iVar1 = open64("/dev/null",1)" identifier = (call_expression "open64("/dev/null",1)" identifier (argument_list "("/dev/null",1)" ( (string_literal ""/dev/null"" " string_content ") , number_literal )))) ;) (expression_statement "puVar2[1] = iVar1;" (assignment_expression "puVar2[1] = iVar1" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar1 == -1) {\n      piVar6 = __errno_location();\n      pcVar5 = strerror(*piVar6);\n      pcVar7 = "/dev/null: %s";\n    }\n    else {\n      iVar1 = open64(__file,0);\n      puVar2[2] = iVar1;\n      if (iVar1 != -1) {\n        FUN_0002da80(__file);\n        puVar2[3] = 0xffffffff;\nLAB_00062822:\n        if (DAT_000b1254 == 0) {\n          DAT_000b1254 = FUN_00047680(FUN_000620b0);\n        }\n        if (DAT_000b1250 == 0) {\n          DAT_000b1250 = FUN_00047680(FUN_000620f0);\n        }\n        if (DAT_000b124c == 0) {\n          DAT_000b124c = FUN_00047680(FUN_00062130);\n        }\n        FUN_00047700(DAT_000b1254,puVar2);\n        FUN_00047700(DAT_000b1250,puVar2);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00047700(DAT_000b124c,puVar2);\n        }\n        FUN_00063070(puVar2[2],1,FUN_00062320);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00063070(puVar2[3],1,FUN_00062320);\n        }\n        FUN_00060670(param_1);\n        goto LAB_000628a8;\n      }\n      piVar6 = __errno_location();\n      in_stack_00000024 = strerror(*piVar6);\n      pcVar7 = "%s: %s";\n      pcVar5 = __file;\n    }" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (compound_statement "{\n      piVar6 = __errno_location();\n      pcVar5 = strerror(*piVar6);\n      pcVar7 = "/dev/null: %s";\n    }" { (expression_statement "piVar6 = __errno_location();" (assignment_expression "piVar6 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar5 = strerror(*piVar6);" (assignment_expression "pcVar5 = strerror(*piVar6)" identifier = (call_expression "strerror(*piVar6)" identifier (argument_list "(*piVar6)" ( (pointer_expression "*piVar6" * identifier) )))) ;) (expression_statement "pcVar7 = "/dev/null: %s";" (assignment_expression "pcVar7 = "/dev/null: %s"" identifier = (string_literal ""/dev/null: %s"" " string_content ")) ;) }) (else_clause "else {\n      iVar1 = open64(__file,0);\n      puVar2[2] = iVar1;\n      if (iVar1 != -1) {\n        FUN_0002da80(__file);\n        puVar2[3] = 0xffffffff;\nLAB_00062822:\n        if (DAT_000b1254 == 0) {\n          DAT_000b1254 = FUN_00047680(FUN_000620b0);\n        }\n        if (DAT_000b1250 == 0) {\n          DAT_000b1250 = FUN_00047680(FUN_000620f0);\n        }\n        if (DAT_000b124c == 0) {\n          DAT_000b124c = FUN_00047680(FUN_00062130);\n        }\n        FUN_00047700(DAT_000b1254,puVar2);\n        FUN_00047700(DAT_000b1250,puVar2);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00047700(DAT_000b124c,puVar2);\n        }\n        FUN_00063070(puVar2[2],1,FUN_00062320);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00063070(puVar2[3],1,FUN_00062320);\n        }\n        FUN_00060670(param_1);\n        goto LAB_000628a8;\n      }\n      piVar6 = __errno_location();\n      in_stack_00000024 = strerror(*piVar6);\n      pcVar7 = "%s: %s";\n      pcVar5 = __file;\n    }" else (compound_statement "{\n      iVar1 = open64(__file,0);\n      puVar2[2] = iVar1;\n      if (iVar1 != -1) {\n        FUN_0002da80(__file);\n        puVar2[3] = 0xffffffff;\nLAB_00062822:\n        if (DAT_000b1254 == 0) {\n          DAT_000b1254 = FUN_00047680(FUN_000620b0);\n        }\n        if (DAT_000b1250 == 0) {\n          DAT_000b1250 = FUN_00047680(FUN_000620f0);\n        }\n        if (DAT_000b124c == 0) {\n          DAT_000b124c = FUN_00047680(FUN_00062130);\n        }\n        FUN_00047700(DAT_000b1254,puVar2);\n        FUN_00047700(DAT_000b1250,puVar2);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00047700(DAT_000b124c,puVar2);\n        }\n        FUN_00063070(puVar2[2],1,FUN_00062320);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00063070(puVar2[3],1,FUN_00062320);\n        }\n        FUN_00060670(param_1);\n        goto LAB_000628a8;\n      }\n      piVar6 = __errno_location();\n      in_stack_00000024 = strerror(*piVar6);\n      pcVar7 = "%s: %s";\n      pcVar5 = __file;\n    }" { (expression_statement "iVar1 = open64(__file,0);" (assignment_expression "iVar1 = open64(__file,0)" identifier = (call_expression "open64(__file,0)" identifier (argument_list "(__file,0)" ( identifier , number_literal )))) ;) (expression_statement "puVar2[2] = iVar1;" (assignment_expression "puVar2[2] = iVar1" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar1 != -1) {\n        FUN_0002da80(__file);\n        puVar2[3] = 0xffffffff;\nLAB_00062822:\n        if (DAT_000b1254 == 0) {\n          DAT_000b1254 = FUN_00047680(FUN_000620b0);\n        }\n        if (DAT_000b1250 == 0) {\n          DAT_000b1250 = FUN_00047680(FUN_000620f0);\n        }\n        if (DAT_000b124c == 0) {\n          DAT_000b124c = FUN_00047680(FUN_00062130);\n        }\n        FUN_00047700(DAT_000b1254,puVar2);\n        FUN_00047700(DAT_000b1250,puVar2);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00047700(DAT_000b124c,puVar2);\n        }\n        FUN_00063070(puVar2[2],1,FUN_00062320);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00063070(puVar2[3],1,FUN_00062320);\n        }\n        FUN_00060670(param_1);\n        goto LAB_000628a8;\n      }" if (parenthesized_expression "(iVar1 != -1)" ( (binary_expression "iVar1 != -1" identifier != number_literal) )) (compound_statement "{\n        FUN_0002da80(__file);\n        puVar2[3] = 0xffffffff;\nLAB_00062822:\n        if (DAT_000b1254 == 0) {\n          DAT_000b1254 = FUN_00047680(FUN_000620b0);\n        }\n        if (DAT_000b1250 == 0) {\n          DAT_000b1250 = FUN_00047680(FUN_000620f0);\n        }\n        if (DAT_000b124c == 0) {\n          DAT_000b124c = FUN_00047680(FUN_00062130);\n        }\n        FUN_00047700(DAT_000b1254,puVar2);\n        FUN_00047700(DAT_000b1250,puVar2);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00047700(DAT_000b124c,puVar2);\n        }\n        FUN_00063070(puVar2[2],1,FUN_00062320);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00063070(puVar2[3],1,FUN_00062320);\n        }\n        FUN_00060670(param_1);\n        goto LAB_000628a8;\n      }" { (expression_statement "FUN_0002da80(__file);" (call_expression "FUN_0002da80(__file)" identifier (argument_list "(__file)" ( identifier ))) ;) (expression_statement "puVar2[3] = 0xffffffff;" (assignment_expression "puVar2[3] = 0xffffffff" (subscript_expression "puVar2[3]" identifier [ number_literal ]) = number_literal) ;) (labeled_statement "LAB_00062822:\n        if (DAT_000b1254 == 0) {\n          DAT_000b1254 = FUN_00047680(FUN_000620b0);\n        }" statement_identifier : (if_statement "if (DAT_000b1254 == 0) {\n          DAT_000b1254 = FUN_00047680(FUN_000620b0);\n        }" if (parenthesized_expression "(DAT_000b1254 == 0)" ( (binary_expression "DAT_000b1254 == 0" identifier == number_literal) )) (compound_statement "{\n          DAT_000b1254 = FUN_00047680(FUN_000620b0);\n        }" { (expression_statement "DAT_000b1254 = FUN_00047680(FUN_000620b0);" (assignment_expression "DAT_000b1254 = FUN_00047680(FUN_000620b0)" identifier = (call_expression "FUN_00047680(FUN_000620b0)" identifier (argument_list "(FUN_000620b0)" ( identifier )))) ;) }))) (if_statement "if (DAT_000b1250 == 0) {\n          DAT_000b1250 = FUN_00047680(FUN_000620f0);\n        }" if (parenthesized_expression "(DAT_000b1250 == 0)" ( (binary_expression "DAT_000b1250 == 0" identifier == number_literal) )) (compound_statement "{\n          DAT_000b1250 = FUN_00047680(FUN_000620f0);\n        }" { (expression_statement "DAT_000b1250 = FUN_00047680(FUN_000620f0);" (assignment_expression "DAT_000b1250 = FUN_00047680(FUN_000620f0)" identifier = (call_expression "FUN_00047680(FUN_000620f0)" identifier (argument_list "(FUN_000620f0)" ( identifier )))) ;) })) (if_statement "if (DAT_000b124c == 0) {\n          DAT_000b124c = FUN_00047680(FUN_00062130);\n        }" if (parenthesized_expression "(DAT_000b124c == 0)" ( (binary_expression "DAT_000b124c == 0" identifier == number_literal) )) (compound_statement "{\n          DAT_000b124c = FUN_00047680(FUN_00062130);\n        }" { (expression_statement "DAT_000b124c = FUN_00047680(FUN_00062130);" (assignment_expression "DAT_000b124c = FUN_00047680(FUN_00062130)" identifier = (call_expression "FUN_00047680(FUN_00062130)" identifier (argument_list "(FUN_00062130)" ( identifier )))) ;) })) (expression_statement "FUN_00047700(DAT_000b1254,puVar2);" (call_expression "FUN_00047700(DAT_000b1254,puVar2)" identifier (argument_list "(DAT_000b1254,puVar2)" ( identifier , identifier ))) ;) (expression_statement "FUN_00047700(DAT_000b1250,puVar2);" (call_expression "FUN_00047700(DAT_000b1250,puVar2)" identifier (argument_list "(DAT_000b1250,puVar2)" ( identifier , identifier ))) ;) (if_statement "if (-1 < (int)puVar2[3]) {\n          FUN_00047700(DAT_000b124c,puVar2);\n        }" if (parenthesized_expression "(-1 < (int)puVar2[3])" ( (binary_expression "-1 < (int)puVar2[3]" number_literal < (cast_expression "(int)puVar2[3]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "puVar2[3]" identifier [ number_literal ]))) )) (compound_statement "{\n          FUN_00047700(DAT_000b124c,puVar2);\n        }" { (expression_statement "FUN_00047700(DAT_000b124c,puVar2);" (call_expression "FUN_00047700(DAT_000b124c,puVar2)" identifier (argument_list "(DAT_000b124c,puVar2)" ( identifier , identifier ))) ;) })) (expression_statement "FUN_00063070(puVar2[2],1,FUN_00062320);" (call_expression "FUN_00063070(puVar2[2],1,FUN_00062320)" identifier (argument_list "(puVar2[2],1,FUN_00062320)" ( (subscript_expression "puVar2[2]" identifier [ number_literal ]) , number_literal , identifier ))) ;) (if_statement "if (-1 < (int)puVar2[3]) {\n          FUN_00063070(puVar2[3],1,FUN_00062320);\n        }" if (parenthesized_expression "(-1 < (int)puVar2[3])" ( (binary_expression "-1 < (int)puVar2[3]" number_literal < (cast_expression "(int)puVar2[3]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "puVar2[3]" identifier [ number_literal ]))) )) (compound_statement "{\n          FUN_00063070(puVar2[3],1,FUN_00062320);\n        }" { (expression_statement "FUN_00063070(puVar2[3],1,FUN_00062320);" (call_expression "FUN_00063070(puVar2[3],1,FUN_00062320)" identifier (argument_list "(puVar2[3],1,FUN_00062320)" ( (subscript_expression "puVar2[3]" identifier [ number_literal ]) , number_literal , identifier ))) ;) })) (expression_statement "FUN_00060670(param_1);" (call_expression "FUN_00060670(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (goto_statement "goto LAB_000628a8;" goto statement_identifier ;) })) (expression_statement "piVar6 = __errno_location();" (assignment_expression "piVar6 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "in_stack_00000024 = strerror(*piVar6);" (assignment_expression "in_stack_00000024 = strerror(*piVar6)" identifier = (call_expression "strerror(*piVar6)" identifier (argument_list "(*piVar6)" ( (pointer_expression "*piVar6" * identifier) )))) ;) (expression_statement "pcVar7 = "%s: %s";" (assignment_expression "pcVar7 = "%s: %s"" identifier = (string_literal ""%s: %s"" " string_content ")) ;) (expression_statement "pcVar5 = __file;" (assignment_expression "pcVar5 = __file" identifier = identifier) ;) }))) }))) (labeled_statement "LAB_00062a70:\n  uVar4 = FUN_0002d860(pcVar7,pcVar5,in_stack_00000024);" statement_identifier : (expression_statement "uVar4 = FUN_0002d860(pcVar7,pcVar5,in_stack_00000024);" (assignment_expression "uVar4 = FUN_0002d860(pcVar7,pcVar5,in_stack_00000024)" identifier = (call_expression "FUN_0002d860(pcVar7,pcVar5,in_stack_00000024)" identifier (argument_list "(pcVar7,pcVar5,in_stack_00000024)" ( identifier , identifier , identifier )))) ;)) (expression_statement "puVar2[4] = uVar4;" (assignment_expression "puVar2[4] = uVar4" (subscript_expression "puVar2[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "FUN_0002da80(__file);" (call_expression "FUN_0002da80(__file)" identifier (argument_list "(__file)" ( identifier ))) ;) (labeled_statement "LAB_000628a8:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar2;\n  }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar2;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return puVar2;\n  }" { (return_statement "return puVar2;" return identifier ;) }))) comment (expression_statement "FUN_00066390();" (call_expression "FUN_00066390()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nSocket platform_new_connection\n                 (SockAddr addr,char *hostname,int port,int privport,int oobinline,int nodelay,\n                 int keepalive,Plug plug,Conf *conf)\n\n{\n  int iVar1;\n  int iVar2;\n  Socket e;\n  char *__file;\n  socket_function_table *psVar3;\n  char *pcVar4;\n  __pid_t _Var5;\n  char *pcVar6;\n  int *piVar7;\n  int in_GS_OFFSET;\n  int to_cmd_pipe [2];\n  int from_cmd_pipe [2];\n  int cmd_err_pipe [2];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = conf_get_int(conf,0xd);\n  if (1 < iVar2 - 5U) {\n    e = (Socket)0x0;\n    goto LAB_000628a8;\n  }\n  e = (Socket)safemalloc(1,0x40);\n  *e = &platform_new_connection::socket_fn_table;\n  e[5] = (socket_function_table *)plug;\n  e[4] = (socket_function_table *)0x0;\n  e[0xf] = (socket_function_table *)0x0;\n  bufchain_init((bufchain *)(e + 9));\n  bufchain_init((bufchain *)(e + 6));\n  bufchain_init((bufchain *)(e + 0xc));\n  if (iVar2 == 5) {\n    __file = format_telnet_command(addr,port,conf);\n    if (((byte)flags & 2) == 0) {\n      cmd_err_pipe[1] = 0;\n      cmd_err_pipe[0] = 0;\n    }\n    else {\n      cmd_err_pipe[1] = -1;\n      cmd_err_pipe[0] = -1;\n    }\n    pcVar4 = dupprintf("Starting local proxy command: %s",__file);\n    (*(*plug)->log)(plug,2,(SockAddr)0x0,0,pcVar4,0);\n    safefree(pcVar4);\n    iVar2 = pipe(to_cmd_pipe);\n    if (-1 < iVar2) {\n      iVar2 = pipe(from_cmd_pipe);\n      if (-1 < iVar2) {\n        if (cmd_err_pipe[0] == 0) {\n          iVar2 = pipe(cmd_err_pipe);\n          if (iVar2 < 0) goto LAB_00062a58;\n        }\n        cloexec(to_cmd_pipe[1]);\n        cloexec(from_cmd_pipe[0]);\n        if (-1 < cmd_err_pipe[0]) {\n          cloexec(cmd_err_pipe[0]);\n        }\n        _Var5 = fork();\n        if (-1 < _Var5) {\n          if (_Var5 == 0) {\n            close(0);\n            close(1);\n            dup2(to_cmd_pipe[0],0);\n            dup2(from_cmd_pipe[1],1);\n            close(to_cmd_pipe[0]);\n            close(from_cmd_pipe[1]);\n            if (-1 < cmd_err_pipe[0]) {\n              dup2(cmd_err_pipe[1],2);\n              close(cmd_err_pipe[1]);\n            }\n            noncloexec(0);\n            noncloexec(1);\n            execl("/bin/sh","sh",&DAT_00085974,__file,0);\n                    /* WARNING: Subroutine does not return */\n            _exit(0xff);\n          }\n          safefree(__file);\n          close(to_cmd_pipe[0]);\n          close(from_cmd_pipe[1]);\n          if (-1 < cmd_err_pipe[0]) {\n            close(cmd_err_pipe[1]);\n          }\n          e[3] = (socket_function_table *)cmd_err_pipe[0];\n          e[1] = (socket_function_table *)to_cmd_pipe[1];\n          e[2] = (socket_function_table *)from_cmd_pipe[0];\n          goto LAB_00062822;\n        }\n        piVar7 = __errno_location();\n        pcVar6 = strerror(*piVar7);\n        pcVar4 = "fork: %s";\n        goto LAB_00062a70;\n      }\n    }\nLAB_00062a58:\n    piVar7 = __errno_location();\n    pcVar6 = strerror(*piVar7);\n    pcVar4 = "pipe: %s";\n  }\n  else {\n    __file = format_telnet_command(addr,port,conf);\n    psVar3 = (socket_function_table *)open64("/dev/null",1);\n    e[1] = psVar3;\n    if (psVar3 == (socket_function_table *)0xffffffff) {\n      piVar7 = __errno_location();\n      pcVar6 = strerror(*piVar7);\n      pcVar4 = "/dev/null: %s";\n    }\n    else {\n      psVar3 = (socket_function_table *)open64(__file,0);\n      e[2] = psVar3;\n      if (psVar3 != (socket_function_table *)0xffffffff) {\n        safefree(__file);\n        e[3] = (socket_function_table *)0xffffffff;\nLAB_00062822:\n        if (localproxy_by_fromfd == (tree234 *)0x0) {\n          localproxy_by_fromfd = newtree234(localproxy_fromfd_cmp);\n        }\n        if (localproxy_by_tofd == (tree234 *)0x0) {\n          localproxy_by_tofd = newtree234(localproxy_tofd_cmp);\n        }\n        if (localproxy_by_errfd == (tree234 *)0x0) {\n          localproxy_by_errfd = newtree234(localproxy_errfd_cmp);\n        }\n        add234(localproxy_by_fromfd,e);\n        add234(localproxy_by_tofd,e);\n        if (-1 < (int)e[3]) {\n          add234(localproxy_by_errfd,e);\n        }\n        uxsel_set((int)e[2],1,localproxy_select_result);\n        if (-1 < (int)e[3]) {\n          uxsel_set((int)e[3],1,localproxy_select_result);\n        }\n        sk_addr_free(addr);\n        goto LAB_000628a8;\n      }\n      piVar7 = __errno_location();\n      conf = (Conf *)strerror(*piVar7);\n      pcVar4 = "%s: %s";\n      pcVar6 = __file;\n    }\n  }\nLAB_00062a70:\n  psVar3 = (socket_function_table *)dupprintf(pcVar4,pcVar6,conf);\n  e[4] = psVar3;\n  safefree(__file);\nLAB_000628a8:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return e;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment comment (function_definition "Socket platform_new_connection\n                 (SockAddr addr,char *hostname,int port,int privport,int oobinline,int nodelay,\n                 int keepalive,Plug plug,Conf *conf)\n\n{\n  int iVar1;\n  int iVar2;\n  Socket e;\n  char *__file;\n  socket_function_table *psVar3;\n  char *pcVar4;\n  __pid_t _Var5;\n  char *pcVar6;\n  int *piVar7;\n  int in_GS_OFFSET;\n  int to_cmd_pipe [2];\n  int from_cmd_pipe [2];\n  int cmd_err_pipe [2];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = conf_get_int(conf,0xd);\n  if (1 < iVar2 - 5U) {\n    e = (Socket)0x0;\n    goto LAB_000628a8;\n  }\n  e = (Socket)safemalloc(1,0x40);\n  *e = &platform_new_connection::socket_fn_table;\n  e[5] = (socket_function_table *)plug;\n  e[4] = (socket_function_table *)0x0;\n  e[0xf] = (socket_function_table *)0x0;\n  bufchain_init((bufchain *)(e + 9));\n  bufchain_init((bufchain *)(e + 6));\n  bufchain_init((bufchain *)(e + 0xc));\n  if (iVar2 == 5) {\n    __file = format_telnet_command(addr,port,conf);\n    if (((byte)flags & 2) == 0) {\n      cmd_err_pipe[1] = 0;\n      cmd_err_pipe[0] = 0;\n    }\n    else {\n      cmd_err_pipe[1] = -1;\n      cmd_err_pipe[0] = -1;\n    }\n    pcVar4 = dupprintf("Starting local proxy command: %s",__file);\n    (*(*plug)->log)(plug,2,(SockAddr)0x0,0,pcVar4,0);\n    safefree(pcVar4);\n    iVar2 = pipe(to_cmd_pipe);\n    if (-1 < iVar2) {\n      iVar2 = pipe(from_cmd_pipe);\n      if (-1 < iVar2) {\n        if (cmd_err_pipe[0] == 0) {\n          iVar2 = pipe(cmd_err_pipe);\n          if (iVar2 < 0) goto LAB_00062a58;\n        }\n        cloexec(to_cmd_pipe[1]);\n        cloexec(from_cmd_pipe[0]);\n        if (-1 < cmd_err_pipe[0]) {\n          cloexec(cmd_err_pipe[0]);\n        }\n        _Var5 = fork();\n        if (-1 < _Var5) {\n          if (_Var5 == 0) {\n            close(0);\n            close(1);\n            dup2(to_cmd_pipe[0],0);\n            dup2(from_cmd_pipe[1],1);\n            close(to_cmd_pipe[0]);\n            close(from_cmd_pipe[1]);\n            if (-1 < cmd_err_pipe[0]) {\n              dup2(cmd_err_pipe[1],2);\n              close(cmd_err_pipe[1]);\n            }\n            noncloexec(0);\n            noncloexec(1);\n            execl("/bin/sh","sh",&DAT_00085974,__file,0);\n                    /* WARNING: Subroutine does not return */\n            _exit(0xff);\n          }\n          safefree(__file);\n          close(to_cmd_pipe[0]);\n          close(from_cmd_pipe[1]);\n          if (-1 < cmd_err_pipe[0]) {\n            close(cmd_err_pipe[1]);\n          }\n          e[3] = (socket_function_table *)cmd_err_pipe[0];\n          e[1] = (socket_function_table *)to_cmd_pipe[1];\n          e[2] = (socket_function_table *)from_cmd_pipe[0];\n          goto LAB_00062822;\n        }\n        piVar7 = __errno_location();\n        pcVar6 = strerror(*piVar7);\n        pcVar4 = "fork: %s";\n        goto LAB_00062a70;\n      }\n    }\nLAB_00062a58:\n    piVar7 = __errno_location();\n    pcVar6 = strerror(*piVar7);\n    pcVar4 = "pipe: %s";\n  }\n  else {\n    __file = format_telnet_command(addr,port,conf);\n    psVar3 = (socket_function_table *)open64("/dev/null",1);\n    e[1] = psVar3;\n    if (psVar3 == (socket_function_table *)0xffffffff) {\n      piVar7 = __errno_location();\n      pcVar6 = strerror(*piVar7);\n      pcVar4 = "/dev/null: %s";\n    }\n    else {\n      psVar3 = (socket_function_table *)open64(__file,0);\n      e[2] = psVar3;\n      if (psVar3 != (socket_function_table *)0xffffffff) {\n        safefree(__file);\n        e[3] = (socket_function_table *)0xffffffff;\nLAB_00062822:\n        if (localproxy_by_fromfd == (tree234 *)0x0) {\n          localproxy_by_fromfd = newtree234(localproxy_fromfd_cmp);\n        }\n        if (localproxy_by_tofd == (tree234 *)0x0) {\n          localproxy_by_tofd = newtree234(localproxy_tofd_cmp);\n        }\n        if (localproxy_by_errfd == (tree234 *)0x0) {\n          localproxy_by_errfd = newtree234(localproxy_errfd_cmp);\n        }\n        add234(localproxy_by_fromfd,e);\n        add234(localproxy_by_tofd,e);\n        if (-1 < (int)e[3]) {\n          add234(localproxy_by_errfd,e);\n        }\n        uxsel_set((int)e[2],1,localproxy_select_result);\n        if (-1 < (int)e[3]) {\n          uxsel_set((int)e[3],1,localproxy_select_result);\n        }\n        sk_addr_free(addr);\n        goto LAB_000628a8;\n      }\n      piVar7 = __errno_location();\n      conf = (Conf *)strerror(*piVar7);\n      pcVar4 = "%s: %s";\n      pcVar6 = __file;\n    }\n  }\nLAB_00062a70:\n  psVar3 = (socket_function_table *)dupprintf(pcVar4,pcVar6,conf);\n  e[4] = psVar3;\n  safefree(__file);\nLAB_000628a8:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return e;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" type_identifier (function_declarator "platform_new_connection\n                 (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  int iVar1;\n  int iVar2;\n  Socket e;\n  char *__file;\n  socket_function_table *psVar3;\n  char *pcVar4;\n  __pid_t _Var5;\n  char *pcVar6;\n  int *piVar7;\n  int in_GS_OFFSET;\n  int to_cmd_pipe [2];\n  int from_cmd_pipe [2];\n  int cmd_err_pipe [2];\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = conf_get_int(conf,0xd);\n  if (1 < iVar2 - 5U) {\n    e = (Socket)0x0;\n    goto LAB_000628a8;\n  }\n  e = (Socket)safemalloc(1,0x40);\n  *e = &platform_new_connection::socket_fn_table;\n  e[5] = (socket_function_table *)plug;\n  e[4] = (socket_function_table *)0x0;\n  e[0xf] = (socket_function_table *)0x0;\n  bufchain_init((bufchain *)(e + 9));\n  bufchain_init((bufchain *)(e + 6));\n  bufchain_init((bufchain *)(e + 0xc));\n  if (iVar2 == 5) {\n    __file = format_telnet_command(addr,port,conf);\n    if (((byte)flags & 2) == 0) {\n      cmd_err_pipe[1] = 0;\n      cmd_err_pipe[0] = 0;\n    }\n    else {\n      cmd_err_pipe[1] = -1;\n      cmd_err_pipe[0] = -1;\n    }\n    pcVar4 = dupprintf("Starting local proxy command: %s",__file);\n    (*(*plug)->log)(plug,2,(SockAddr)0x0,0,pcVar4,0);\n    safefree(pcVar4);\n    iVar2 = pipe(to_cmd_pipe);\n    if (-1 < iVar2) {\n      iVar2 = pipe(from_cmd_pipe);\n      if (-1 < iVar2) {\n        if (cmd_err_pipe[0] == 0) {\n          iVar2 = pipe(cmd_err_pipe);\n          if (iVar2 < 0) goto LAB_00062a58;\n        }\n        cloexec(to_cmd_pipe[1]);\n        cloexec(from_cmd_pipe[0]);\n        if (-1 < cmd_err_pipe[0]) {\n          cloexec(cmd_err_pipe[0]);\n        }\n        _Var5 = fork();\n        if (-1 < _Var5) {\n          if (_Var5 == 0) {\n            close(0);\n            close(1);\n            dup2(to_cmd_pipe[0],0);\n            dup2(from_cmd_pipe[1],1);\n            close(to_cmd_pipe[0]);\n            close(from_cmd_pipe[1]);\n            if (-1 < cmd_err_pipe[0]) {\n              dup2(cmd_err_pipe[1],2);\n              close(cmd_err_pipe[1]);\n            }\n            noncloexec(0);\n            noncloexec(1);\n            execl("/bin/sh","sh",&DAT_00085974,__file,0);\n                    /* WARNING: Subroutine does not return */\n            _exit(0xff);\n          }\n          safefree(__file);\n          close(to_cmd_pipe[0]);\n          close(from_cmd_pipe[1]);\n          if (-1 < cmd_err_pipe[0]) {\n            close(cmd_err_pipe[1]);\n          }\n          e[3] = (socket_function_table *)cmd_err_pipe[0];\n          e[1] = (socket_function_table *)to_cmd_pipe[1];\n          e[2] = (socket_function_table *)from_cmd_pipe[0];\n          goto LAB_00062822;\n        }\n        piVar7 = __errno_location();\n        pcVar6 = strerror(*piVar7);\n        pcVar4 = "fork: %s";\n        goto LAB_00062a70;\n      }\n    }\nLAB_00062a58:\n    piVar7 = __errno_location();\n    pcVar6 = strerror(*piVar7);\n    pcVar4 = "pipe: %s";\n  }\n  else {\n    __file = format_telnet_command(addr,port,conf);\n    psVar3 = (socket_function_table *)open64("/dev/null",1);\n    e[1] = psVar3;\n    if (psVar3 == (socket_function_table *)0xffffffff) {\n      piVar7 = __errno_location();\n      pcVar6 = strerror(*piVar7);\n      pcVar4 = "/dev/null: %s";\n    }\n    else {\n      psVar3 = (socket_function_table *)open64(__file,0);\n      e[2] = psVar3;\n      if (psVar3 != (socket_function_table *)0xffffffff) {\n        safefree(__file);\n        e[3] = (socket_function_table *)0xffffffff;\nLAB_00062822:\n        if (localproxy_by_fromfd == (tree234 *)0x0) {\n          localproxy_by_fromfd = newtree234(localproxy_fromfd_cmp);\n        }\n        if (localproxy_by_tofd == (tree234 *)0x0) {\n          localproxy_by_tofd = newtree234(localproxy_tofd_cmp);\n        }\n        if (localproxy_by_errfd == (tree234 *)0x0) {\n          localproxy_by_errfd = newtree234(localproxy_errfd_cmp);\n        }\n        add234(localproxy_by_fromfd,e);\n        add234(localproxy_by_tofd,e);\n        if (-1 < (int)e[3]) {\n          add234(localproxy_by_errfd,e);\n        }\n        uxsel_set((int)e[2],1,localproxy_select_result);\n        if (-1 < (int)e[3]) {\n          uxsel_set((int)e[3],1,localproxy_select_result);\n        }\n        sk_addr_free(addr);\n        goto LAB_000628a8;\n      }\n      piVar7 = __errno_location();\n      conf = (Conf *)strerror(*piVar7);\n      pcVar4 = "%s: %s";\n      pcVar6 = __file;\n    }\n  }\nLAB_00062a70:\n  psVar3 = (socket_function_table *)dupprintf(pcVar4,pcVar6,conf);\n  e[4] = psVar3;\n  safefree(__file);\nLAB_000628a8:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return e;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "Socket e;" type_identifier identifier ;) (declaration "char *__file;" primitive_type (pointer_declarator "*__file" * identifier) ;) (declaration "socket_function_table *psVar3;" type_identifier (pointer_declarator "*psVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "__pid_t _Var5;" type_identifier identifier ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int to_cmd_pipe [2];" primitive_type (array_declarator "to_cmd_pipe [2]" identifier [ number_literal ]) ;) (declaration "int from_cmd_pipe [2];" primitive_type (array_declarator "from_cmd_pipe [2]" identifier [ number_literal ]) ;) (declaration "int cmd_err_pipe [2];" primitive_type (array_declarator "cmd_err_pipe [2]" identifier [ number_literal ]) ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = conf_get_int(conf,0xd);" (assignment_expression "iVar2 = conf_get_int(conf,0xd)" identifier = (call_expression "conf_get_int(conf,0xd)" identifier (argument_list "(conf,0xd)" ( identifier , number_literal )))) ;) (if_statement "if (1 < iVar2 - 5U) {\n    e = (Socket)0x0;\n    goto LAB_000628a8;\n  }" if (parenthesized_expression "(1 < iVar2 - 5U)" ( (binary_expression "1 < iVar2 - 5U" number_literal < (binary_expression "iVar2 - 5U" identifier - number_literal)) )) (compound_statement "{\n    e = (Socket)0x0;\n    goto LAB_000628a8;\n  }" { (expression_statement "e = (Socket)0x0;" (assignment_expression "e = (Socket)0x0" identifier = (cast_expression "(Socket)0x0" ( (type_descriptor "Socket" type_identifier) ) number_literal)) ;) (goto_statement "goto LAB_000628a8;" goto statement_identifier ;) })) (expression_statement "e = (Socket)safemalloc(1,0x40);" (assignment_expression "e = (Socket)safemalloc(1,0x40)" identifier = (cast_expression "(Socket)safemalloc(1,0x40)" ( (type_descriptor "Socket" type_identifier) ) (call_expression "safemalloc(1,0x40)" identifier (argument_list "(1,0x40)" ( number_literal , number_literal ))))) ;) (expression_statement "*e = &platform_new_connection::socket_fn_table;" (assignment_expression "*e = &platform_new_connection" (pointer_expression "*e" * identifier) = (pointer_expression "&platform_new_connection" & identifier)) (ERROR "::socket_fn_table" : : identifier) ;) (expression_statement "e[5] = (socket_function_table *)plug;" (assignment_expression "e[5] = (socket_function_table *)plug" (subscript_expression "e[5]" identifier [ number_literal ]) = (cast_expression "(socket_function_table *)plug" ( (type_descriptor "socket_function_table *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "e[4] = (socket_function_table *)0x0;" (assignment_expression "e[4] = (socket_function_table *)0x0" (subscript_expression "e[4]" identifier [ number_literal ]) = (cast_expression "(socket_function_table *)0x0" ( (type_descriptor "socket_function_table *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "e[0xf] = (socket_function_table *)0x0;" (assignment_expression "e[0xf] = (socket_function_table *)0x0" (subscript_expression "e[0xf]" identifier [ number_literal ]) = (cast_expression "(socket_function_table *)0x0" ( (type_descriptor "socket_function_table *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "bufchain_init((bufchain *)(e + 9));" (call_expression "bufchain_init((bufchain *)(e + 9))" identifier (argument_list "((bufchain *)(e + 9))" ( (cast_expression "(bufchain *)(e + 9)" ( (type_descriptor "bufchain *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(e + 9)" ( (binary_expression "e + 9" identifier + number_literal) ))) ))) ;) (expression_statement "bufchain_init((bufchain *)(e + 6));" (call_expression "bufchain_init((bufchain *)(e + 6))" identifier (argument_list "((bufchain *)(e + 6))" ( (cast_expression "(bufchain *)(e + 6)" ( (type_descriptor "bufchain *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(e + 6)" ( (binary_expression "e + 6" identifier + number_literal) ))) ))) ;) (expression_statement "bufchain_init((bufchain *)(e + 0xc));" (call_expression "bufchain_init((bufchain *)(e + 0xc))" identifier (argument_list "((bufchain *)(e + 0xc))" ( (cast_expression "(bufchain *)(e + 0xc)" ( (type_descriptor "bufchain *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(e + 0xc)" ( (binary_expression "e + 0xc" identifier + number_literal) ))) ))) ;) (if_statement "if (iVar2 == 5) {\n    __file = format_telnet_command(addr,port,conf);\n    if (((byte)flags & 2) == 0) {\n      cmd_err_pipe[1] = 0;\n      cmd_err_pipe[0] = 0;\n    }\n    else {\n      cmd_err_pipe[1] = -1;\n      cmd_err_pipe[0] = -1;\n    }\n    pcVar4 = dupprintf("Starting local proxy command: %s",__file);\n    (*(*plug)->log)(plug,2,(SockAddr)0x0,0,pcVar4,0);\n    safefree(pcVar4);\n    iVar2 = pipe(to_cmd_pipe);\n    if (-1 < iVar2) {\n      iVar2 = pipe(from_cmd_pipe);\n      if (-1 < iVar2) {\n        if (cmd_err_pipe[0] == 0) {\n          iVar2 = pipe(cmd_err_pipe);\n          if (iVar2 < 0) goto LAB_00062a58;\n        }\n        cloexec(to_cmd_pipe[1]);\n        cloexec(from_cmd_pipe[0]);\n        if (-1 < cmd_err_pipe[0]) {\n          cloexec(cmd_err_pipe[0]);\n        }\n        _Var5 = fork();\n        if (-1 < _Var5) {\n          if (_Var5 == 0) {\n            close(0);\n            close(1);\n            dup2(to_cmd_pipe[0],0);\n            dup2(from_cmd_pipe[1],1);\n            close(to_cmd_pipe[0]);\n            close(from_cmd_pipe[1]);\n            if (-1 < cmd_err_pipe[0]) {\n              dup2(cmd_err_pipe[1],2);\n              close(cmd_err_pipe[1]);\n            }\n            noncloexec(0);\n            noncloexec(1);\n            execl("/bin/sh","sh",&DAT_00085974,__file,0);\n                    /* WARNING: Subroutine does not return */\n            _exit(0xff);\n          }\n          safefree(__file);\n          close(to_cmd_pipe[0]);\n          close(from_cmd_pipe[1]);\n          if (-1 < cmd_err_pipe[0]) {\n            close(cmd_err_pipe[1]);\n          }\n          e[3] = (socket_function_table *)cmd_err_pipe[0];\n          e[1] = (socket_function_table *)to_cmd_pipe[1];\n          e[2] = (socket_function_table *)from_cmd_pipe[0];\n          goto LAB_00062822;\n        }\n        piVar7 = __errno_location();\n        pcVar6 = strerror(*piVar7);\n        pcVar4 = "fork: %s";\n        goto LAB_00062a70;\n      }\n    }\nLAB_00062a58:\n    piVar7 = __errno_location();\n    pcVar6 = strerror(*piVar7);\n    pcVar4 = "pipe: %s";\n  }\n  else {\n    __file = format_telnet_command(addr,port,conf);\n    psVar3 = (socket_function_table *)open64("/dev/null",1);\n    e[1] = psVar3;\n    if (psVar3 == (socket_function_table *)0xffffffff) {\n      piVar7 = __errno_location();\n      pcVar6 = strerror(*piVar7);\n      pcVar4 = "/dev/null: %s";\n    }\n    else {\n      psVar3 = (socket_function_table *)open64(__file,0);\n      e[2] = psVar3;\n      if (psVar3 != (socket_function_table *)0xffffffff) {\n        safefree(__file);\n        e[3] = (socket_function_table *)0xffffffff;\nLAB_00062822:\n        if (localproxy_by_fromfd == (tree234 *)0x0) {\n          localproxy_by_fromfd = newtree234(localproxy_fromfd_cmp);\n        }\n        if (localproxy_by_tofd == (tree234 *)0x0) {\n          localproxy_by_tofd = newtree234(localproxy_tofd_cmp);\n        }\n        if (localproxy_by_errfd == (tree234 *)0x0) {\n          localproxy_by_errfd = newtree234(localproxy_errfd_cmp);\n        }\n        add234(localproxy_by_fromfd,e);\n        add234(localproxy_by_tofd,e);\n        if (-1 < (int)e[3]) {\n          add234(localproxy_by_errfd,e);\n        }\n        uxsel_set((int)e[2],1,localproxy_select_result);\n        if (-1 < (int)e[3]) {\n          uxsel_set((int)e[3],1,localproxy_select_result);\n        }\n        sk_addr_free(addr);\n        goto LAB_000628a8;\n      }\n      piVar7 = __errno_location();\n      conf = (Conf *)strerror(*piVar7);\n      pcVar4 = "%s: %s";\n      pcVar6 = __file;\n    }\n  }" if (parenthesized_expression "(iVar2 == 5)" ( (binary_expression "iVar2 == 5" identifier == number_literal) )) (compound_statement "{\n    __file = format_telnet_command(addr,port,conf);\n    if (((byte)flags & 2) == 0) {\n      cmd_err_pipe[1] = 0;\n      cmd_err_pipe[0] = 0;\n    }\n    else {\n      cmd_err_pipe[1] = -1;\n      cmd_err_pipe[0] = -1;\n    }\n    pcVar4 = dupprintf("Starting local proxy command: %s",__file);\n    (*(*plug)->log)(plug,2,(SockAddr)0x0,0,pcVar4,0);\n    safefree(pcVar4);\n    iVar2 = pipe(to_cmd_pipe);\n    if (-1 < iVar2) {\n      iVar2 = pipe(from_cmd_pipe);\n      if (-1 < iVar2) {\n        if (cmd_err_pipe[0] == 0) {\n          iVar2 = pipe(cmd_err_pipe);\n          if (iVar2 < 0) goto LAB_00062a58;\n        }\n        cloexec(to_cmd_pipe[1]);\n        cloexec(from_cmd_pipe[0]);\n        if (-1 < cmd_err_pipe[0]) {\n          cloexec(cmd_err_pipe[0]);\n        }\n        _Var5 = fork();\n        if (-1 < _Var5) {\n          if (_Var5 == 0) {\n            close(0);\n            close(1);\n            dup2(to_cmd_pipe[0],0);\n            dup2(from_cmd_pipe[1],1);\n            close(to_cmd_pipe[0]);\n            close(from_cmd_pipe[1]);\n            if (-1 < cmd_err_pipe[0]) {\n              dup2(cmd_err_pipe[1],2);\n              close(cmd_err_pipe[1]);\n            }\n            noncloexec(0);\n            noncloexec(1);\n            execl("/bin/sh","sh",&DAT_00085974,__file,0);\n                    /* WARNING: Subroutine does not return */\n            _exit(0xff);\n          }\n          safefree(__file);\n          close(to_cmd_pipe[0]);\n          close(from_cmd_pipe[1]);\n          if (-1 < cmd_err_pipe[0]) {\n            close(cmd_err_pipe[1]);\n          }\n          e[3] = (socket_function_table *)cmd_err_pipe[0];\n          e[1] = (socket_function_table *)to_cmd_pipe[1];\n          e[2] = (socket_function_table *)from_cmd_pipe[0];\n          goto LAB_00062822;\n        }\n        piVar7 = __errno_location();\n        pcVar6 = strerror(*piVar7);\n        pcVar4 = "fork: %s";\n        goto LAB_00062a70;\n      }\n    }\nLAB_00062a58:\n    piVar7 = __errno_location();\n    pcVar6 = strerror(*piVar7);\n    pcVar4 = "pipe: %s";\n  }" { (expression_statement "__file = format_telnet_command(addr,port,conf);" (assignment_expression "__file = format_telnet_command(addr,port,conf)" identifier = (call_expression "format_telnet_command(addr,port,conf)" identifier (argument_list "(addr,port,conf)" ( identifier , identifier , identifier )))) ;) (if_statement "if (((byte)flags & 2) == 0) {\n      cmd_err_pipe[1] = 0;\n      cmd_err_pipe[0] = 0;\n    }\n    else {\n      cmd_err_pipe[1] = -1;\n      cmd_err_pipe[0] = -1;\n    }" if (parenthesized_expression "(((byte)flags & 2) == 0)" ( (binary_expression "((byte)flags & 2) == 0" (parenthesized_expression "((byte)flags & 2)" ( (binary_expression "(byte)flags & 2" (cast_expression "(byte)flags" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n      cmd_err_pipe[1] = 0;\n      cmd_err_pipe[0] = 0;\n    }" { (expression_statement "cmd_err_pipe[1] = 0;" (assignment_expression "cmd_err_pipe[1] = 0" (subscript_expression "cmd_err_pipe[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "cmd_err_pipe[0] = 0;" (assignment_expression "cmd_err_pipe[0] = 0" (subscript_expression "cmd_err_pipe[0]" identifier [ number_literal ]) = number_literal) ;) }) (else_clause "else {\n      cmd_err_pipe[1] = -1;\n      cmd_err_pipe[0] = -1;\n    }" else (compound_statement "{\n      cmd_err_pipe[1] = -1;\n      cmd_err_pipe[0] = -1;\n    }" { (expression_statement "cmd_err_pipe[1] = -1;" (assignment_expression "cmd_err_pipe[1] = -1" (subscript_expression "cmd_err_pipe[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "cmd_err_pipe[0] = -1;" (assignment_expression "cmd_err_pipe[0] = -1" (subscript_expression "cmd_err_pipe[0]" identifier [ number_literal ]) = number_literal) ;) }))) (expression_statement "pcVar4 = dupprintf("Starting local proxy command: %s",__file);" (assignment_expression "pcVar4 = dupprintf("Starting local proxy command: %s",__file)" identifier = (call_expression "dupprintf("Starting local proxy command: %s",__file)" identifier (argument_list "("Starting local proxy command: %s",__file)" ( (string_literal ""Starting local proxy command: %s"" " string_content ") , identifier )))) ;) (expression_statement "(*(*plug)->log)(plug,2,(SockAddr)0x0,0,pcVar4,0);" (call_expression "(*(*plug)->log)(plug,2,(SockAddr)0x0,0,pcVar4,0)" (parenthesized_expression "(*(*plug)->log)" ( (pointer_expression "*(*plug)->log" * (field_expression "(*plug)->log" (parenthesized_expression "(*plug)" ( (pointer_expression "*plug" * identifier) )) -> field_identifier)) )) (argument_list "(plug,2,(SockAddr)0x0,0,pcVar4,0)" ( identifier , number_literal , (cast_expression "(SockAddr)0x0" ( (type_descriptor "SockAddr" type_identifier) ) number_literal) , number_literal , identifier , number_literal ))) ;) (expression_statement "safefree(pcVar4);" (call_expression "safefree(pcVar4)" identifier (argument_list "(pcVar4)" ( identifier ))) ;) (expression_statement "iVar2 = pipe(to_cmd_pipe);" (assignment_expression "iVar2 = pipe(to_cmd_pipe)" identifier = (call_expression "pipe(to_cmd_pipe)" identifier (argument_list "(to_cmd_pipe)" ( identifier )))) ;) (if_statement "if (-1 < iVar2) {\n      iVar2 = pipe(from_cmd_pipe);\n      if (-1 < iVar2) {\n        if (cmd_err_pipe[0] == 0) {\n          iVar2 = pipe(cmd_err_pipe);\n          if (iVar2 < 0) goto LAB_00062a58;\n        }\n        cloexec(to_cmd_pipe[1]);\n        cloexec(from_cmd_pipe[0]);\n        if (-1 < cmd_err_pipe[0]) {\n          cloexec(cmd_err_pipe[0]);\n        }\n        _Var5 = fork();\n        if (-1 < _Var5) {\n          if (_Var5 == 0) {\n            close(0);\n            close(1);\n            dup2(to_cmd_pipe[0],0);\n            dup2(from_cmd_pipe[1],1);\n            close(to_cmd_pipe[0]);\n            close(from_cmd_pipe[1]);\n            if (-1 < cmd_err_pipe[0]) {\n              dup2(cmd_err_pipe[1],2);\n              close(cmd_err_pipe[1]);\n            }\n            noncloexec(0);\n            noncloexec(1);\n            execl("/bin/sh","sh",&DAT_00085974,__file,0);\n                    /* WARNING: Subroutine does not return */\n            _exit(0xff);\n          }\n          safefree(__file);\n          close(to_cmd_pipe[0]);\n          close(from_cmd_pipe[1]);\n          if (-1 < cmd_err_pipe[0]) {\n            close(cmd_err_pipe[1]);\n          }\n          e[3] = (socket_function_table *)cmd_err_pipe[0];\n          e[1] = (socket_function_table *)to_cmd_pipe[1];\n          e[2] = (socket_function_table *)from_cmd_pipe[0];\n          goto LAB_00062822;\n        }\n        piVar7 = __errno_location();\n        pcVar6 = strerror(*piVar7);\n        pcVar4 = "fork: %s";\n        goto LAB_00062a70;\n      }\n    }" if (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) (compound_statement "{\n      iVar2 = pipe(from_cmd_pipe);\n      if (-1 < iVar2) {\n        if (cmd_err_pipe[0] == 0) {\n          iVar2 = pipe(cmd_err_pipe);\n          if (iVar2 < 0) goto LAB_00062a58;\n        }\n        cloexec(to_cmd_pipe[1]);\n        cloexec(from_cmd_pipe[0]);\n        if (-1 < cmd_err_pipe[0]) {\n          cloexec(cmd_err_pipe[0]);\n        }\n        _Var5 = fork();\n        if (-1 < _Var5) {\n          if (_Var5 == 0) {\n            close(0);\n            close(1);\n            dup2(to_cmd_pipe[0],0);\n            dup2(from_cmd_pipe[1],1);\n            close(to_cmd_pipe[0]);\n            close(from_cmd_pipe[1]);\n            if (-1 < cmd_err_pipe[0]) {\n              dup2(cmd_err_pipe[1],2);\n              close(cmd_err_pipe[1]);\n            }\n            noncloexec(0);\n            noncloexec(1);\n            execl("/bin/sh","sh",&DAT_00085974,__file,0);\n                    /* WARNING: Subroutine does not return */\n            _exit(0xff);\n          }\n          safefree(__file);\n          close(to_cmd_pipe[0]);\n          close(from_cmd_pipe[1]);\n          if (-1 < cmd_err_pipe[0]) {\n            close(cmd_err_pipe[1]);\n          }\n          e[3] = (socket_function_table *)cmd_err_pipe[0];\n          e[1] = (socket_function_table *)to_cmd_pipe[1];\n          e[2] = (socket_function_table *)from_cmd_pipe[0];\n          goto LAB_00062822;\n        }\n        piVar7 = __errno_location();\n        pcVar6 = strerror(*piVar7);\n        pcVar4 = "fork: %s";\n        goto LAB_00062a70;\n      }\n    }" { (expression_statement "iVar2 = pipe(from_cmd_pipe);" (assignment_expression "iVar2 = pipe(from_cmd_pipe)" identifier = (call_expression "pipe(from_cmd_pipe)" identifier (argument_list "(from_cmd_pipe)" ( identifier )))) ;) (if_statement "if (-1 < iVar2) {\n        if (cmd_err_pipe[0] == 0) {\n          iVar2 = pipe(cmd_err_pipe);\n          if (iVar2 < 0) goto LAB_00062a58;\n        }\n        cloexec(to_cmd_pipe[1]);\n        cloexec(from_cmd_pipe[0]);\n        if (-1 < cmd_err_pipe[0]) {\n          cloexec(cmd_err_pipe[0]);\n        }\n        _Var5 = fork();\n        if (-1 < _Var5) {\n          if (_Var5 == 0) {\n            close(0);\n            close(1);\n            dup2(to_cmd_pipe[0],0);\n            dup2(from_cmd_pipe[1],1);\n            close(to_cmd_pipe[0]);\n            close(from_cmd_pipe[1]);\n            if (-1 < cmd_err_pipe[0]) {\n              dup2(cmd_err_pipe[1],2);\n              close(cmd_err_pipe[1]);\n            }\n            noncloexec(0);\n            noncloexec(1);\n            execl("/bin/sh","sh",&DAT_00085974,__file,0);\n                    /* WARNING: Subroutine does not return */\n            _exit(0xff);\n          }\n          safefree(__file);\n          close(to_cmd_pipe[0]);\n          close(from_cmd_pipe[1]);\n          if (-1 < cmd_err_pipe[0]) {\n            close(cmd_err_pipe[1]);\n          }\n          e[3] = (socket_function_table *)cmd_err_pipe[0];\n          e[1] = (socket_function_table *)to_cmd_pipe[1];\n          e[2] = (socket_function_table *)from_cmd_pipe[0];\n          goto LAB_00062822;\n        }\n        piVar7 = __errno_location();\n        pcVar6 = strerror(*piVar7);\n        pcVar4 = "fork: %s";\n        goto LAB_00062a70;\n      }" if (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) (compound_statement "{\n        if (cmd_err_pipe[0] == 0) {\n          iVar2 = pipe(cmd_err_pipe);\n          if (iVar2 < 0) goto LAB_00062a58;\n        }\n        cloexec(to_cmd_pipe[1]);\n        cloexec(from_cmd_pipe[0]);\n        if (-1 < cmd_err_pipe[0]) {\n          cloexec(cmd_err_pipe[0]);\n        }\n        _Var5 = fork();\n        if (-1 < _Var5) {\n          if (_Var5 == 0) {\n            close(0);\n            close(1);\n            dup2(to_cmd_pipe[0],0);\n            dup2(from_cmd_pipe[1],1);\n            close(to_cmd_pipe[0]);\n            close(from_cmd_pipe[1]);\n            if (-1 < cmd_err_pipe[0]) {\n              dup2(cmd_err_pipe[1],2);\n              close(cmd_err_pipe[1]);\n            }\n            noncloexec(0);\n            noncloexec(1);\n            execl("/bin/sh","sh",&DAT_00085974,__file,0);\n                    /* WARNING: Subroutine does not return */\n            _exit(0xff);\n          }\n          safefree(__file);\n          close(to_cmd_pipe[0]);\n          close(from_cmd_pipe[1]);\n          if (-1 < cmd_err_pipe[0]) {\n            close(cmd_err_pipe[1]);\n          }\n          e[3] = (socket_function_table *)cmd_err_pipe[0];\n          e[1] = (socket_function_table *)to_cmd_pipe[1];\n          e[2] = (socket_function_table *)from_cmd_pipe[0];\n          goto LAB_00062822;\n        }\n        piVar7 = __errno_location();\n        pcVar6 = strerror(*piVar7);\n        pcVar4 = "fork: %s";\n        goto LAB_00062a70;\n      }" { (if_statement "if (cmd_err_pipe[0] == 0) {\n          iVar2 = pipe(cmd_err_pipe);\n          if (iVar2 < 0) goto LAB_00062a58;\n        }" if (parenthesized_expression "(cmd_err_pipe[0] == 0)" ( (binary_expression "cmd_err_pipe[0] == 0" (subscript_expression "cmd_err_pipe[0]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n          iVar2 = pipe(cmd_err_pipe);\n          if (iVar2 < 0) goto LAB_00062a58;\n        }" { (expression_statement "iVar2 = pipe(cmd_err_pipe);" (assignment_expression "iVar2 = pipe(cmd_err_pipe)" identifier = (call_expression "pipe(cmd_err_pipe)" identifier (argument_list "(cmd_err_pipe)" ( identifier )))) ;) (if_statement "if (iVar2 < 0) goto LAB_00062a58;" if (parenthesized_expression "(iVar2 < 0)" ( (binary_expression "iVar2 < 0" identifier < number_literal) )) (goto_statement "goto LAB_00062a58;" goto statement_identifier ;)) })) (expression_statement "cloexec(to_cmd_pipe[1]);" (call_expression "cloexec(to_cmd_pipe[1])" identifier (argument_list "(to_cmd_pipe[1])" ( (subscript_expression "to_cmd_pipe[1]" identifier [ number_literal ]) ))) ;) (expression_statement "cloexec(from_cmd_pipe[0]);" (call_expression "cloexec(from_cmd_pipe[0])" identifier (argument_list "(from_cmd_pipe[0])" ( (subscript_expression "from_cmd_pipe[0]" identifier [ number_literal ]) ))) ;) (if_statement "if (-1 < cmd_err_pipe[0]) {\n          cloexec(cmd_err_pipe[0]);\n        }" if (parenthesized_expression "(-1 < cmd_err_pipe[0])" ( (binary_expression "-1 < cmd_err_pipe[0]" number_literal < (subscript_expression "cmd_err_pipe[0]" identifier [ number_literal ])) )) (compound_statement "{\n          cloexec(cmd_err_pipe[0]);\n        }" { (expression_statement "cloexec(cmd_err_pipe[0]);" (call_expression "cloexec(cmd_err_pipe[0])" identifier (argument_list "(cmd_err_pipe[0])" ( (subscript_expression "cmd_err_pipe[0]" identifier [ number_literal ]) ))) ;) })) (expression_statement "_Var5 = fork();" (assignment_expression "_Var5 = fork()" identifier = (call_expression "fork()" identifier (argument_list "()" ( )))) ;) (if_statement "if (-1 < _Var5) {\n          if (_Var5 == 0) {\n            close(0);\n            close(1);\n            dup2(to_cmd_pipe[0],0);\n            dup2(from_cmd_pipe[1],1);\n            close(to_cmd_pipe[0]);\n            close(from_cmd_pipe[1]);\n            if (-1 < cmd_err_pipe[0]) {\n              dup2(cmd_err_pipe[1],2);\n              close(cmd_err_pipe[1]);\n            }\n            noncloexec(0);\n            noncloexec(1);\n            execl("/bin/sh","sh",&DAT_00085974,__file,0);\n                    /* WARNING: Subroutine does not return */\n            _exit(0xff);\n          }\n          safefree(__file);\n          close(to_cmd_pipe[0]);\n          close(from_cmd_pipe[1]);\n          if (-1 < cmd_err_pipe[0]) {\n            close(cmd_err_pipe[1]);\n          }\n          e[3] = (socket_function_table *)cmd_err_pipe[0];\n          e[1] = (socket_function_table *)to_cmd_pipe[1];\n          e[2] = (socket_function_table *)from_cmd_pipe[0];\n          goto LAB_00062822;\n        }" if (parenthesized_expression "(-1 < _Var5)" ( (binary_expression "-1 < _Var5" number_literal < identifier) )) (compound_statement "{\n          if (_Var5 == 0) {\n            close(0);\n            close(1);\n            dup2(to_cmd_pipe[0],0);\n            dup2(from_cmd_pipe[1],1);\n            close(to_cmd_pipe[0]);\n            close(from_cmd_pipe[1]);\n            if (-1 < cmd_err_pipe[0]) {\n              dup2(cmd_err_pipe[1],2);\n              close(cmd_err_pipe[1]);\n            }\n            noncloexec(0);\n            noncloexec(1);\n            execl("/bin/sh","sh",&DAT_00085974,__file,0);\n                    /* WARNING: Subroutine does not return */\n            _exit(0xff);\n          }\n          safefree(__file);\n          close(to_cmd_pipe[0]);\n          close(from_cmd_pipe[1]);\n          if (-1 < cmd_err_pipe[0]) {\n            close(cmd_err_pipe[1]);\n          }\n          e[3] = (socket_function_table *)cmd_err_pipe[0];\n          e[1] = (socket_function_table *)to_cmd_pipe[1];\n          e[2] = (socket_function_table *)from_cmd_pipe[0];\n          goto LAB_00062822;\n        }" { (if_statement "if (_Var5 == 0) {\n            close(0);\n            close(1);\n            dup2(to_cmd_pipe[0],0);\n            dup2(from_cmd_pipe[1],1);\n            close(to_cmd_pipe[0]);\n            close(from_cmd_pipe[1]);\n            if (-1 < cmd_err_pipe[0]) {\n              dup2(cmd_err_pipe[1],2);\n              close(cmd_err_pipe[1]);\n            }\n            noncloexec(0);\n            noncloexec(1);\n            execl("/bin/sh","sh",&DAT_00085974,__file,0);\n                    /* WARNING: Subroutine does not return */\n            _exit(0xff);\n          }" if (parenthesized_expression "(_Var5 == 0)" ( (binary_expression "_Var5 == 0" identifier == number_literal) )) (compound_statement "{\n            close(0);\n            close(1);\n            dup2(to_cmd_pipe[0],0);\n            dup2(from_cmd_pipe[1],1);\n            close(to_cmd_pipe[0]);\n            close(from_cmd_pipe[1]);\n            if (-1 < cmd_err_pipe[0]) {\n              dup2(cmd_err_pipe[1],2);\n              close(cmd_err_pipe[1]);\n            }\n            noncloexec(0);\n            noncloexec(1);\n            execl("/bin/sh","sh",&DAT_00085974,__file,0);\n                    /* WARNING: Subroutine does not return */\n            _exit(0xff);\n          }" { (expression_statement "close(0);" (call_expression "close(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "close(1);" (call_expression "close(1)" identifier (argument_list "(1)" ( number_literal ))) ;) (expression_statement "dup2(to_cmd_pipe[0],0);" (call_expression "dup2(to_cmd_pipe[0],0)" identifier (argument_list "(to_cmd_pipe[0],0)" ( (subscript_expression "to_cmd_pipe[0]" identifier [ number_literal ]) , number_literal ))) ;) (expression_statement "dup2(from_cmd_pipe[1],1);" (call_expression "dup2(from_cmd_pipe[1],1)" identifier (argument_list "(from_cmd_pipe[1],1)" ( (subscript_expression "from_cmd_pipe[1]" identifier [ number_literal ]) , number_literal ))) ;) (expression_statement "close(to_cmd_pipe[0]);" (call_expression "close(to_cmd_pipe[0])" identifier (argument_list "(to_cmd_pipe[0])" ( (subscript_expression "to_cmd_pipe[0]" identifier [ number_literal ]) ))) ;) (expression_statement "close(from_cmd_pipe[1]);" (call_expression "close(from_cmd_pipe[1])" identifier (argument_list "(from_cmd_pipe[1])" ( (subscript_expression "from_cmd_pipe[1]" identifier [ number_literal ]) ))) ;) (if_statement "if (-1 < cmd_err_pipe[0]) {\n              dup2(cmd_err_pipe[1],2);\n              close(cmd_err_pipe[1]);\n            }" if (parenthesized_expression "(-1 < cmd_err_pipe[0])" ( (binary_expression "-1 < cmd_err_pipe[0]" number_literal < (subscript_expression "cmd_err_pipe[0]" identifier [ number_literal ])) )) (compound_statement "{\n              dup2(cmd_err_pipe[1],2);\n              close(cmd_err_pipe[1]);\n            }" { (expression_statement "dup2(cmd_err_pipe[1],2);" (call_expression "dup2(cmd_err_pipe[1],2)" identifier (argument_list "(cmd_err_pipe[1],2)" ( (subscript_expression "cmd_err_pipe[1]" identifier [ number_literal ]) , number_literal ))) ;) (expression_statement "close(cmd_err_pipe[1]);" (call_expression "close(cmd_err_pipe[1])" identifier (argument_list "(cmd_err_pipe[1])" ( (subscript_expression "cmd_err_pipe[1]" identifier [ number_literal ]) ))) ;) })) (expression_statement "noncloexec(0);" (call_expression "noncloexec(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "noncloexec(1);" (call_expression "noncloexec(1)" identifier (argument_list "(1)" ( number_literal ))) ;) (expression_statement "execl("/bin/sh","sh",&DAT_00085974,__file,0);" (call_expression "execl("/bin/sh","sh",&DAT_00085974,__file,0)" identifier (argument_list "("/bin/sh","sh",&DAT_00085974,__file,0)" ( (string_literal ""/bin/sh"" " string_content ") , (string_literal ""sh"" " string_content ") , (pointer_expression "&DAT_00085974" & identifier) , identifier , number_literal ))) ;) comment (expression_statement "_exit(0xff);" (call_expression "_exit(0xff)" identifier (argument_list "(0xff)" ( number_literal ))) ;) })) (expression_statement "safefree(__file);" (call_expression "safefree(__file)" identifier (argument_list "(__file)" ( identifier ))) ;) (expression_statement "close(to_cmd_pipe[0]);" (call_expression "close(to_cmd_pipe[0])" identifier (argument_list "(to_cmd_pipe[0])" ( (subscript_expression "to_cmd_pipe[0]" identifier [ number_literal ]) ))) ;) (expression_statement "close(from_cmd_pipe[1]);" (call_expression "close(from_cmd_pipe[1])" identifier (argument_list "(from_cmd_pipe[1])" ( (subscript_expression "from_cmd_pipe[1]" identifier [ number_literal ]) ))) ;) (if_statement "if (-1 < cmd_err_pipe[0]) {\n            close(cmd_err_pipe[1]);\n          }" if (parenthesized_expression "(-1 < cmd_err_pipe[0])" ( (binary_expression "-1 < cmd_err_pipe[0]" number_literal < (subscript_expression "cmd_err_pipe[0]" identifier [ number_literal ])) )) (compound_statement "{\n            close(cmd_err_pipe[1]);\n          }" { (expression_statement "close(cmd_err_pipe[1]);" (call_expression "close(cmd_err_pipe[1])" identifier (argument_list "(cmd_err_pipe[1])" ( (subscript_expression "cmd_err_pipe[1]" identifier [ number_literal ]) ))) ;) })) (expression_statement "e[3] = (socket_function_table *)cmd_err_pipe[0];" (assignment_expression "e[3] = (socket_function_table *)cmd_err_pipe[0]" (subscript_expression "e[3]" identifier [ number_literal ]) = (cast_expression "(socket_function_table *)cmd_err_pipe[0]" ( (type_descriptor "socket_function_table *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "cmd_err_pipe[0]" identifier [ number_literal ]))) ;) (expression_statement "e[1] = (socket_function_table *)to_cmd_pipe[1];" (assignment_expression "e[1] = (socket_function_table *)to_cmd_pipe[1]" (subscript_expression "e[1]" identifier [ number_literal ]) = (cast_expression "(socket_function_table *)to_cmd_pipe[1]" ( (type_descriptor "socket_function_table *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "to_cmd_pipe[1]" identifier [ number_literal ]))) ;) (expression_statement "e[2] = (socket_function_table *)from_cmd_pipe[0];" (assignment_expression "e[2] = (socket_function_table *)from_cmd_pipe[0]" (subscript_expression "e[2]" identifier [ number_literal ]) = (cast_expression "(socket_function_table *)from_cmd_pipe[0]" ( (type_descriptor "socket_function_table *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "from_cmd_pipe[0]" identifier [ number_literal ]))) ;) (goto_statement "goto LAB_00062822;" goto statement_identifier ;) })) (expression_statement "piVar7 = __errno_location();" (assignment_expression "piVar7 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar6 = strerror(*piVar7);" (assignment_expression "pcVar6 = strerror(*piVar7)" identifier = (call_expression "strerror(*piVar7)" identifier (argument_list "(*piVar7)" ( (pointer_expression "*piVar7" * identifier) )))) ;) (expression_statement "pcVar4 = "fork: %s";" (assignment_expression "pcVar4 = "fork: %s"" identifier = (string_literal ""fork: %s"" " string_content ")) ;) (goto_statement "goto LAB_00062a70;" goto statement_identifier ;) })) })) (labeled_statement "LAB_00062a58:\n    piVar7 = __errno_location();" statement_identifier : (expression_statement "piVar7 = __errno_location();" (assignment_expression "piVar7 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;)) (expression_statement "pcVar6 = strerror(*piVar7);" (assignment_expression "pcVar6 = strerror(*piVar7)" identifier = (call_expression "strerror(*piVar7)" identifier (argument_list "(*piVar7)" ( (pointer_expression "*piVar7" * identifier) )))) ;) (expression_statement "pcVar4 = "pipe: %s";" (assignment_expression "pcVar4 = "pipe: %s"" identifier = (string_literal ""pipe: %s"" " string_content ")) ;) }) (else_clause "else {\n    __file = format_telnet_command(addr,port,conf);\n    psVar3 = (socket_function_table *)open64("/dev/null",1);\n    e[1] = psVar3;\n    if (psVar3 == (socket_function_table *)0xffffffff) {\n      piVar7 = __errno_location();\n      pcVar6 = strerror(*piVar7);\n      pcVar4 = "/dev/null: %s";\n    }\n    else {\n      psVar3 = (socket_function_table *)open64(__file,0);\n      e[2] = psVar3;\n      if (psVar3 != (socket_function_table *)0xffffffff) {\n        safefree(__file);\n        e[3] = (socket_function_table *)0xffffffff;\nLAB_00062822:\n        if (localproxy_by_fromfd == (tree234 *)0x0) {\n          localproxy_by_fromfd = newtree234(localproxy_fromfd_cmp);\n        }\n        if (localproxy_by_tofd == (tree234 *)0x0) {\n          localproxy_by_tofd = newtree234(localproxy_tofd_cmp);\n        }\n        if (localproxy_by_errfd == (tree234 *)0x0) {\n          localproxy_by_errfd = newtree234(localproxy_errfd_cmp);\n        }\n        add234(localproxy_by_fromfd,e);\n        add234(localproxy_by_tofd,e);\n        if (-1 < (int)e[3]) {\n          add234(localproxy_by_errfd,e);\n        }\n        uxsel_set((int)e[2],1,localproxy_select_result);\n        if (-1 < (int)e[3]) {\n          uxsel_set((int)e[3],1,localproxy_select_result);\n        }\n        sk_addr_free(addr);\n        goto LAB_000628a8;\n      }\n      piVar7 = __errno_location();\n      conf = (Conf *)strerror(*piVar7);\n      pcVar4 = "%s: %s";\n      pcVar6 = __file;\n    }\n  }" else (compound_statement "{\n    __file = format_telnet_command(addr,port,conf);\n    psVar3 = (socket_function_table *)open64("/dev/null",1);\n    e[1] = psVar3;\n    if (psVar3 == (socket_function_table *)0xffffffff) {\n      piVar7 = __errno_location();\n      pcVar6 = strerror(*piVar7);\n      pcVar4 = "/dev/null: %s";\n    }\n    else {\n      psVar3 = (socket_function_table *)open64(__file,0);\n      e[2] = psVar3;\n      if (psVar3 != (socket_function_table *)0xffffffff) {\n        safefree(__file);\n        e[3] = (socket_function_table *)0xffffffff;\nLAB_00062822:\n        if (localproxy_by_fromfd == (tree234 *)0x0) {\n          localproxy_by_fromfd = newtree234(localproxy_fromfd_cmp);\n        }\n        if (localproxy_by_tofd == (tree234 *)0x0) {\n          localproxy_by_tofd = newtree234(localproxy_tofd_cmp);\n        }\n        if (localproxy_by_errfd == (tree234 *)0x0) {\n          localproxy_by_errfd = newtree234(localproxy_errfd_cmp);\n        }\n        add234(localproxy_by_fromfd,e);\n        add234(localproxy_by_tofd,e);\n        if (-1 < (int)e[3]) {\n          add234(localproxy_by_errfd,e);\n        }\n        uxsel_set((int)e[2],1,localproxy_select_result);\n        if (-1 < (int)e[3]) {\n          uxsel_set((int)e[3],1,localproxy_select_result);\n        }\n        sk_addr_free(addr);\n        goto LAB_000628a8;\n      }\n      piVar7 = __errno_location();\n      conf = (Conf *)strerror(*piVar7);\n      pcVar4 = "%s: %s";\n      pcVar6 = __file;\n    }\n  }" { (expression_statement "__file = format_telnet_command(addr,port,conf);" (assignment_expression "__file = format_telnet_command(addr,port,conf)" identifier = (call_expression "format_telnet_command(addr,port,conf)" identifier (argument_list "(addr,port,conf)" ( identifier , identifier , identifier )))) ;) (expression_statement "psVar3 = (socket_function_table *)open64("/dev/null",1);" (assignment_expression "psVar3 = (socket_function_table *)open64("/dev/null",1)" identifier = (cast_expression "(socket_function_table *)open64("/dev/null",1)" ( (type_descriptor "socket_function_table *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "open64("/dev/null",1)" identifier (argument_list "("/dev/null",1)" ( (string_literal ""/dev/null"" " string_content ") , number_literal ))))) ;) (expression_statement "e[1] = psVar3;" (assignment_expression "e[1] = psVar3" (subscript_expression "e[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (psVar3 == (socket_function_table *)0xffffffff) {\n      piVar7 = __errno_location();\n      pcVar6 = strerror(*piVar7);\n      pcVar4 = "/dev/null: %s";\n    }\n    else {\n      psVar3 = (socket_function_table *)open64(__file,0);\n      e[2] = psVar3;\n      if (psVar3 != (socket_function_table *)0xffffffff) {\n        safefree(__file);\n        e[3] = (socket_function_table *)0xffffffff;\nLAB_00062822:\n        if (localproxy_by_fromfd == (tree234 *)0x0) {\n          localproxy_by_fromfd = newtree234(localproxy_fromfd_cmp);\n        }\n        if (localproxy_by_tofd == (tree234 *)0x0) {\n          localproxy_by_tofd = newtree234(localproxy_tofd_cmp);\n        }\n        if (localproxy_by_errfd == (tree234 *)0x0) {\n          localproxy_by_errfd = newtree234(localproxy_errfd_cmp);\n        }\n        add234(localproxy_by_fromfd,e);\n        add234(localproxy_by_tofd,e);\n        if (-1 < (int)e[3]) {\n          add234(localproxy_by_errfd,e);\n        }\n        uxsel_set((int)e[2],1,localproxy_select_result);\n        if (-1 < (int)e[3]) {\n          uxsel_set((int)e[3],1,localproxy_select_result);\n        }\n        sk_addr_free(addr);\n        goto LAB_000628a8;\n      }\n      piVar7 = __errno_location();\n      conf = (Conf *)strerror(*piVar7);\n      pcVar4 = "%s: %s";\n      pcVar6 = __file;\n    }" if (parenthesized_expression "(psVar3 == (socket_function_table *)0xffffffff)" ( (binary_expression "psVar3 == (socket_function_table *)0xffffffff" identifier == (cast_expression "(socket_function_table *)0xffffffff" ( (type_descriptor "socket_function_table *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      piVar7 = __errno_location();\n      pcVar6 = strerror(*piVar7);\n      pcVar4 = "/dev/null: %s";\n    }" { (expression_statement "piVar7 = __errno_location();" (assignment_expression "piVar7 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar6 = strerror(*piVar7);" (assignment_expression "pcVar6 = strerror(*piVar7)" identifier = (call_expression "strerror(*piVar7)" identifier (argument_list "(*piVar7)" ( (pointer_expression "*piVar7" * identifier) )))) ;) (expression_statement "pcVar4 = "/dev/null: %s";" (assignment_expression "pcVar4 = "/dev/null: %s"" identifier = (string_literal ""/dev/null: %s"" " string_content ")) ;) }) (else_clause "else {\n      psVar3 = (socket_function_table *)open64(__file,0);\n      e[2] = psVar3;\n      if (psVar3 != (socket_function_table *)0xffffffff) {\n        safefree(__file);\n        e[3] = (socket_function_table *)0xffffffff;\nLAB_00062822:\n        if (localproxy_by_fromfd == (tree234 *)0x0) {\n          localproxy_by_fromfd = newtree234(localproxy_fromfd_cmp);\n        }\n        if (localproxy_by_tofd == (tree234 *)0x0) {\n          localproxy_by_tofd = newtree234(localproxy_tofd_cmp);\n        }\n        if (localproxy_by_errfd == (tree234 *)0x0) {\n          localproxy_by_errfd = newtree234(localproxy_errfd_cmp);\n        }\n        add234(localproxy_by_fromfd,e);\n        add234(localproxy_by_tofd,e);\n        if (-1 < (int)e[3]) {\n          add234(localproxy_by_errfd,e);\n        }\n        uxsel_set((int)e[2],1,localproxy_select_result);\n        if (-1 < (int)e[3]) {\n          uxsel_set((int)e[3],1,localproxy_select_result);\n        }\n        sk_addr_free(addr);\n        goto LAB_000628a8;\n      }\n      piVar7 = __errno_location();\n      conf = (Conf *)strerror(*piVar7);\n      pcVar4 = "%s: %s";\n      pcVar6 = __file;\n    }" else (compound_statement "{\n      psVar3 = (socket_function_table *)open64(__file,0);\n      e[2] = psVar3;\n      if (psVar3 != (socket_function_table *)0xffffffff) {\n        safefree(__file);\n        e[3] = (socket_function_table *)0xffffffff;\nLAB_00062822:\n        if (localproxy_by_fromfd == (tree234 *)0x0) {\n          localproxy_by_fromfd = newtree234(localproxy_fromfd_cmp);\n        }\n        if (localproxy_by_tofd == (tree234 *)0x0) {\n          localproxy_by_tofd = newtree234(localproxy_tofd_cmp);\n        }\n        if (localproxy_by_errfd == (tree234 *)0x0) {\n          localproxy_by_errfd = newtree234(localproxy_errfd_cmp);\n        }\n        add234(localproxy_by_fromfd,e);\n        add234(localproxy_by_tofd,e);\n        if (-1 < (int)e[3]) {\n          add234(localproxy_by_errfd,e);\n        }\n        uxsel_set((int)e[2],1,localproxy_select_result);\n        if (-1 < (int)e[3]) {\n          uxsel_set((int)e[3],1,localproxy_select_result);\n        }\n        sk_addr_free(addr);\n        goto LAB_000628a8;\n      }\n      piVar7 = __errno_location();\n      conf = (Conf *)strerror(*piVar7);\n      pcVar4 = "%s: %s";\n      pcVar6 = __file;\n    }" { (expression_statement "psVar3 = (socket_function_table *)open64(__file,0);" (assignment_expression "psVar3 = (socket_function_table *)open64(__file,0)" identifier = (cast_expression "(socket_function_table *)open64(__file,0)" ( (type_descriptor "socket_function_table *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "open64(__file,0)" identifier (argument_list "(__file,0)" ( identifier , number_literal ))))) ;) (expression_statement "e[2] = psVar3;" (assignment_expression "e[2] = psVar3" (subscript_expression "e[2]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (psVar3 != (socket_function_table *)0xffffffff) {\n        safefree(__file);\n        e[3] = (socket_function_table *)0xffffffff;\nLAB_00062822:\n        if (localproxy_by_fromfd == (tree234 *)0x0) {\n          localproxy_by_fromfd = newtree234(localproxy_fromfd_cmp);\n        }\n        if (localproxy_by_tofd == (tree234 *)0x0) {\n          localproxy_by_tofd = newtree234(localproxy_tofd_cmp);\n        }\n        if (localproxy_by_errfd == (tree234 *)0x0) {\n          localproxy_by_errfd = newtree234(localproxy_errfd_cmp);\n        }\n        add234(localproxy_by_fromfd,e);\n        add234(localproxy_by_tofd,e);\n        if (-1 < (int)e[3]) {\n          add234(localproxy_by_errfd,e);\n        }\n        uxsel_set((int)e[2],1,localproxy_select_result);\n        if (-1 < (int)e[3]) {\n          uxsel_set((int)e[3],1,localproxy_select_result);\n        }\n        sk_addr_free(addr);\n        goto LAB_000628a8;\n      }" if (parenthesized_expression "(psVar3 != (socket_function_table *)0xffffffff)" ( (binary_expression "psVar3 != (socket_function_table *)0xffffffff" identifier != (cast_expression "(socket_function_table *)0xffffffff" ( (type_descriptor "socket_function_table *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        safefree(__file);\n        e[3] = (socket_function_table *)0xffffffff;\nLAB_00062822:\n        if (localproxy_by_fromfd == (tree234 *)0x0) {\n          localproxy_by_fromfd = newtree234(localproxy_fromfd_cmp);\n        }\n        if (localproxy_by_tofd == (tree234 *)0x0) {\n          localproxy_by_tofd = newtree234(localproxy_tofd_cmp);\n        }\n        if (localproxy_by_errfd == (tree234 *)0x0) {\n          localproxy_by_errfd = newtree234(localproxy_errfd_cmp);\n        }\n        add234(localproxy_by_fromfd,e);\n        add234(localproxy_by_tofd,e);\n        if (-1 < (int)e[3]) {\n          add234(localproxy_by_errfd,e);\n        }\n        uxsel_set((int)e[2],1,localproxy_select_result);\n        if (-1 < (int)e[3]) {\n          uxsel_set((int)e[3],1,localproxy_select_result);\n        }\n        sk_addr_free(addr);\n        goto LAB_000628a8;\n      }" { (expression_statement "safefree(__file);" (call_expression "safefree(__file)" identifier (argument_list "(__file)" ( identifier ))) ;) (expression_statement "e[3] = (socket_function_table *)0xffffffff;" (assignment_expression "e[3] = (socket_function_table *)0xffffffff" (subscript_expression "e[3]" identifier [ number_literal ]) = (cast_expression "(socket_function_table *)0xffffffff" ( (type_descriptor "socket_function_table *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (labeled_statement "LAB_00062822:\n        if (localproxy_by_fromfd == (tree234 *)0x0) {\n          localproxy_by_fromfd = newtree234(localproxy_fromfd_cmp);\n        }" statement_identifier : (if_statement "if (localproxy_by_fromfd == (tree234 *)0x0) {\n          localproxy_by_fromfd = newtree234(localproxy_fromfd_cmp);\n        }" if (parenthesized_expression "(localproxy_by_fromfd == (tree234 *)0x0)" ( (binary_expression "localproxy_by_fromfd == (tree234 *)0x0" identifier == (cast_expression "(tree234 *)0x0" ( (type_descriptor "tree234 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          localproxy_by_fromfd = newtree234(localproxy_fromfd_cmp);\n        }" { (expression_statement "localproxy_by_fromfd = newtree234(localproxy_fromfd_cmp);" (assignment_expression "localproxy_by_fromfd = newtree234(localproxy_fromfd_cmp)" identifier = (call_expression "newtree234(localproxy_fromfd_cmp)" identifier (argument_list "(localproxy_fromfd_cmp)" ( identifier )))) ;) }))) (if_statement "if (localproxy_by_tofd == (tree234 *)0x0) {\n          localproxy_by_tofd = newtree234(localproxy_tofd_cmp);\n        }" if (parenthesized_expression "(localproxy_by_tofd == (tree234 *)0x0)" ( (binary_expression "localproxy_by_tofd == (tree234 *)0x0" identifier == (cast_expression "(tree234 *)0x0" ( (type_descriptor "tree234 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          localproxy_by_tofd = newtree234(localproxy_tofd_cmp);\n        }" { (expression_statement "localproxy_by_tofd = newtree234(localproxy_tofd_cmp);" (assignment_expression "localproxy_by_tofd = newtree234(localproxy_tofd_cmp)" identifier = (call_expression "newtree234(localproxy_tofd_cmp)" identifier (argument_list "(localproxy_tofd_cmp)" ( identifier )))) ;) })) (if_statement "if (localproxy_by_errfd == (tree234 *)0x0) {\n          localproxy_by_errfd = newtree234(localproxy_errfd_cmp);\n        }" if (parenthesized_expression "(localproxy_by_errfd == (tree234 *)0x0)" ( (binary_expression "localproxy_by_errfd == (tree234 *)0x0" identifier == (cast_expression "(tree234 *)0x0" ( (type_descriptor "tree234 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          localproxy_by_errfd = newtree234(localproxy_errfd_cmp);\n        }" { (expression_statement "localproxy_by_errfd = newtree234(localproxy_errfd_cmp);" (assignment_expression "localproxy_by_errfd = newtree234(localproxy_errfd_cmp)" identifier = (call_expression "newtree234(localproxy_errfd_cmp)" identifier (argument_list "(localproxy_errfd_cmp)" ( identifier )))) ;) })) (expression_statement "add234(localproxy_by_fromfd,e);" (call_expression "add234(localproxy_by_fromfd,e)" identifier (argument_list "(localproxy_by_fromfd,e)" ( identifier , identifier ))) ;) (expression_statement "add234(localproxy_by_tofd,e);" (call_expression "add234(localproxy_by_tofd,e)" identifier (argument_list "(localproxy_by_tofd,e)" ( identifier , identifier ))) ;) (if_statement "if (-1 < (int)e[3]) {\n          add234(localproxy_by_errfd,e);\n        }" if (parenthesized_expression "(-1 < (int)e[3])" ( (binary_expression "-1 < (int)e[3]" number_literal < (cast_expression "(int)e[3]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "e[3]" identifier [ number_literal ]))) )) (compound_statement "{\n          add234(localproxy_by_errfd,e);\n        }" { (expression_statement "add234(localproxy_by_errfd,e);" (call_expression "add234(localproxy_by_errfd,e)" identifier (argument_list "(localproxy_by_errfd,e)" ( identifier , identifier ))) ;) })) (expression_statement "uxsel_set((int)e[2],1,localproxy_select_result);" (call_expression "uxsel_set((int)e[2],1,localproxy_select_result)" identifier (argument_list "((int)e[2],1,localproxy_select_result)" ( (cast_expression "(int)e[2]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "e[2]" identifier [ number_literal ])) , number_literal , identifier ))) ;) (if_statement "if (-1 < (int)e[3]) {\n          uxsel_set((int)e[3],1,localproxy_select_result);\n        }" if (parenthesized_expression "(-1 < (int)e[3])" ( (binary_expression "-1 < (int)e[3]" number_literal < (cast_expression "(int)e[3]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "e[3]" identifier [ number_literal ]))) )) (compound_statement "{\n          uxsel_set((int)e[3],1,localproxy_select_result);\n        }" { (expression_statement "uxsel_set((int)e[3],1,localproxy_select_result);" (call_expression "uxsel_set((int)e[3],1,localproxy_select_result)" identifier (argument_list "((int)e[3],1,localproxy_select_result)" ( (cast_expression "(int)e[3]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "e[3]" identifier [ number_literal ])) , number_literal , identifier ))) ;) })) (expression_statement "sk_addr_free(addr);" (call_expression "sk_addr_free(addr)" identifier (argument_list "(addr)" ( identifier ))) ;) (goto_statement "goto LAB_000628a8;" goto statement_identifier ;) })) (expression_statement "piVar7 = __errno_location();" (assignment_expression "piVar7 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "conf = (Conf *)strerror(*piVar7);" (assignment_expression "conf = (Conf *)strerror(*piVar7)" identifier = (cast_expression "(Conf *)strerror(*piVar7)" ( (type_descriptor "Conf *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "strerror(*piVar7)" identifier (argument_list "(*piVar7)" ( (pointer_expression "*piVar7" * identifier) ))))) ;) (expression_statement "pcVar4 = "%s: %s";" (assignment_expression "pcVar4 = "%s: %s"" identifier = (string_literal ""%s: %s"" " string_content ")) ;) (expression_statement "pcVar6 = __file;" (assignment_expression "pcVar6 = __file" identifier = identifier) ;) }))) }))) (labeled_statement "LAB_00062a70:\n  psVar3 = (socket_function_table *)dupprintf(pcVar4,pcVar6,conf);" statement_identifier : (expression_statement "psVar3 = (socket_function_table *)dupprintf(pcVar4,pcVar6,conf);" (assignment_expression "psVar3 = (socket_function_table *)dupprintf(pcVar4,pcVar6,conf)" identifier = (cast_expression "(socket_function_table *)dupprintf(pcVar4,pcVar6,conf)" ( (type_descriptor "socket_function_table *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "dupprintf(pcVar4,pcVar6,conf)" identifier (argument_list "(pcVar4,pcVar6,conf)" ( identifier , identifier , identifier ))))) ;)) (expression_statement "e[4] = psVar3;" (assignment_expression "e[4] = psVar3" (subscript_expression "e[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "safefree(__file);" (call_expression "safefree(__file)" identifier (argument_list "(__file)" ( identifier ))) ;) (labeled_statement "LAB_000628a8:\n  if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return e;\n  }" statement_identifier : (if_statement "if (iVar1 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return e;\n  }" if (parenthesized_expression "(iVar1 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return e;\n  }" { (return_statement "return e;" return identifier ;) }))) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "undefined4 * FUN_00062720(undefined4 param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  char *__file;\n  __pid_t _Var3;\n  undefined4 uVar4;\n  char *pcVar5;\n  int *piVar6;\n  char *pcVar7;\n  int in_GS_OFFSET;\n  undefined4 *in_stack_00000020;\n  char *in_stack_00000024;\n  int local_38;\n  undefined4 local_34;\n  int local_30;\n  int local_2c;\n  int local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x62729;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = FUN_0001ea70(in_stack_00000024,0xd);\n  if (1 < iVar1 - 5U) {\n    puVar2 = (undefined4 *)0x0;\n    goto LAB_000628a8;\n  }\n  puVar2 = (undefined4 *)FUN_0002d1f0(1,0x40);\n  *puVar2 = &PTR_FUN_000afd20;\n  puVar2[5] = in_stack_00000020;\n  puVar2[4] = 0;\n  puVar2[0xf] = 0;\n  FUN_0002cfe0(puVar2 + 9);\n  FUN_0002cfe0(puVar2 + 6);\n  FUN_0002cfe0(puVar2 + 0xc);\n  if (iVar1 == 5) {\n    __file = (char *)FUN_00030750(param_1,param_3,in_stack_00000024);\n    if ((DAT_000b127c & 2) == 0) {\n      local_24 = 0;\n      local_28 = 0;\n    }\n    else {\n      local_24 = -1;\n      local_28 = -1;\n    }\n    uVar4 = FUN_0002d860("Starting local proxy command: %s",__file);\n    (**(code **)*in_stack_00000020)(in_stack_00000020,2,0,0,uVar4,0);\n    FUN_0002da80(uVar4);\n    iVar1 = pipe(&local_38);\n    if (-1 < iVar1) {\n      iVar1 = pipe(&local_30);\n      if (-1 < iVar1) {\n        if (local_28 == 0) {\n          iVar1 = pipe(&local_28);\n          if (iVar1 < 0) goto LAB_00062a58;\n        }\n        FUN_0005f000(local_34);\n        FUN_0005f000(local_30);\n        if (-1 < local_28) {\n          FUN_0005f000(local_28);\n        }\n        _Var3 = fork();\n        if (-1 < _Var3) {\n          if (_Var3 == 0) {\n            close(0);\n            close(1);\n            dup2(local_38,0);\n            uVar4 = 1;\n            dup2(local_2c,1);\n            close(local_38);\n            pcVar7 = (char *)close(local_2c);\n            if (-1 < local_28) {\n              uVar4 = 2;\n              dup2(local_24,2);\n              close(local_24);\n              in_stack_00000024 = pcVar7;\n            }\n            FUN_0005f090(0,uVar4,in_stack_00000024);\n            FUN_0005f090(1);\n            execl("/bin/sh","sh",&DAT_00085974,__file,0);\n                    \n            _exit(0xff);\n          }\n          FUN_0002da80(__file);\n          close(local_38);\n          close(local_2c);\n          if (-1 < local_28) {\n            close(local_24);\n          }\n          puVar2[3] = local_28;\n          puVar2[1] = local_34;\n          puVar2[2] = local_30;\n          goto LAB_00062822;\n        }\n        piVar6 = __errno_location();\n        pcVar5 = strerror(*piVar6);\n        pcVar7 = "fork: %s";\n        goto LAB_00062a70;\n      }\n    }\nLAB_00062a58:\n    piVar6 = __errno_location();\n    pcVar5 = strerror(*piVar6);\n    pcVar7 = "pipe: %s";\n  }\n  else {\n    __file = (char *)FUN_00030750(param_1,param_3,in_stack_00000024);\n    iVar1 = open64("/dev/null",1);\n    puVar2[1] = iVar1;\n    if (iVar1 == -1) {\n      piVar6 = __errno_location();\n      pcVar5 = strerror(*piVar6);\n      pcVar7 = "/dev/null: %s";\n    }\n    else {\n      iVar1 = open64(__file,0);\n      puVar2[2] = iVar1;\n      if (iVar1 != -1) {\n        FUN_0002da80(__file);\n        puVar2[3] = 0xffffffff;\nLAB_00062822:\n        if (DAT_000b1254 == 0) {\n          DAT_000b1254 = FUN_00047680(FUN_000620b0);\n        }\n        if (DAT_000b1250 == 0) {\n          DAT_000b1250 = FUN_00047680(FUN_000620f0);\n        }\n        if (DAT_000b124c == 0) {\n          DAT_000b124c = FUN_00047680(FUN_00062130);\n        }\n        FUN_00047700(DAT_000b1254,puVar2);\n        FUN_00047700(DAT_000b1250,puVar2);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00047700(DAT_000b124c,puVar2);\n        }\n        FUN_00063070(puVar2[2],1,FUN_00062320);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00063070(puVar2[3],1,FUN_00062320);\n        }\n        FUN_00060670(param_1);\n        goto LAB_000628a8;\n      }\n      piVar6 = __errno_location();\n      in_stack_00000024 = strerror(*piVar6);\n      pcVar7 = "%s: %s";\n      pcVar5 = __file;\n    }\n  }\nLAB_00062a70:\n  uVar4 = FUN_0002d860(pcVar7,pcVar5,in_stack_00000024);\n  puVar2[4] = uVar4;\n  FUN_0002da80(__file);\nLAB_000628a8:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar2;\n  }\n                    \n  FUN_00066390();\n}\n\n" (function_definition "undefined4 * FUN_00062720(undefined4 param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  char *__file;\n  __pid_t _Var3;\n  undefined4 uVar4;\n  char *pcVar5;\n  int *piVar6;\n  char *pcVar7;\n  int in_GS_OFFSET;\n  undefined4 *in_stack_00000020;\n  char *in_stack_00000024;\n  int local_38;\n  undefined4 local_34;\n  int local_30;\n  int local_2c;\n  int local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x62729;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = FUN_0001ea70(in_stack_00000024,0xd);\n  if (1 < iVar1 - 5U) {\n    puVar2 = (undefined4 *)0x0;\n    goto LAB_000628a8;\n  }\n  puVar2 = (undefined4 *)FUN_0002d1f0(1,0x40);\n  *puVar2 = &PTR_FUN_000afd20;\n  puVar2[5] = in_stack_00000020;\n  puVar2[4] = 0;\n  puVar2[0xf] = 0;\n  FUN_0002cfe0(puVar2 + 9);\n  FUN_0002cfe0(puVar2 + 6);\n  FUN_0002cfe0(puVar2 + 0xc);\n  if (iVar1 == 5) {\n    __file = (char *)FUN_00030750(param_1,param_3,in_stack_00000024);\n    if ((DAT_000b127c & 2) == 0) {\n      local_24 = 0;\n      local_28 = 0;\n    }\n    else {\n      local_24 = -1;\n      local_28 = -1;\n    }\n    uVar4 = FUN_0002d860("Starting local proxy command: %s",__file);\n    (**(code **)*in_stack_00000020)(in_stack_00000020,2,0,0,uVar4,0);\n    FUN_0002da80(uVar4);\n    iVar1 = pipe(&local_38);\n    if (-1 < iVar1) {\n      iVar1 = pipe(&local_30);\n      if (-1 < iVar1) {\n        if (local_28 == 0) {\n          iVar1 = pipe(&local_28);\n          if (iVar1 < 0) goto LAB_00062a58;\n        }\n        FUN_0005f000(local_34);\n        FUN_0005f000(local_30);\n        if (-1 < local_28) {\n          FUN_0005f000(local_28);\n        }\n        _Var3 = fork();\n        if (-1 < _Var3) {\n          if (_Var3 == 0) {\n            close(0);\n            close(1);\n            dup2(local_38,0);\n            uVar4 = 1;\n            dup2(local_2c,1);\n            close(local_38);\n            pcVar7 = (char *)close(local_2c);\n            if (-1 < local_28) {\n              uVar4 = 2;\n              dup2(local_24,2);\n              close(local_24);\n              in_stack_00000024 = pcVar7;\n            }\n            FUN_0005f090(0,uVar4,in_stack_00000024);\n            FUN_0005f090(1);\n            execl("/bin/sh","sh",&DAT_00085974,__file,0);\n                    \n            _exit(0xff);\n          }\n          FUN_0002da80(__file);\n          close(local_38);\n          close(local_2c);\n          if (-1 < local_28) {\n            close(local_24);\n          }\n          puVar2[3] = local_28;\n          puVar2[1] = local_34;\n          puVar2[2] = local_30;\n          goto LAB_00062822;\n        }\n        piVar6 = __errno_location();\n        pcVar5 = strerror(*piVar6);\n        pcVar7 = "fork: %s";\n        goto LAB_00062a70;\n      }\n    }\nLAB_00062a58:\n    piVar6 = __errno_location();\n    pcVar5 = strerror(*piVar6);\n    pcVar7 = "pipe: %s";\n  }\n  else {\n    __file = (char *)FUN_00030750(param_1,param_3,in_stack_00000024);\n    iVar1 = open64("/dev/null",1);\n    puVar2[1] = iVar1;\n    if (iVar1 == -1) {\n      piVar6 = __errno_location();\n      pcVar5 = strerror(*piVar6);\n      pcVar7 = "/dev/null: %s";\n    }\n    else {\n      iVar1 = open64(__file,0);\n      puVar2[2] = iVar1;\n      if (iVar1 != -1) {\n        FUN_0002da80(__file);\n        puVar2[3] = 0xffffffff;\nLAB_00062822:\n        if (DAT_000b1254 == 0) {\n          DAT_000b1254 = FUN_00047680(FUN_000620b0);\n        }\n        if (DAT_000b1250 == 0) {\n          DAT_000b1250 = FUN_00047680(FUN_000620f0);\n        }\n        if (DAT_000b124c == 0) {\n          DAT_000b124c = FUN_00047680(FUN_00062130);\n        }\n        FUN_00047700(DAT_000b1254,puVar2);\n        FUN_00047700(DAT_000b1250,puVar2);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00047700(DAT_000b124c,puVar2);\n        }\n        FUN_00063070(puVar2[2],1,FUN_00062320);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00063070(puVar2[3],1,FUN_00062320);\n        }\n        FUN_00060670(param_1);\n        goto LAB_000628a8;\n      }\n      piVar6 = __errno_location();\n      in_stack_00000024 = strerror(*piVar6);\n      pcVar7 = "%s: %s";\n      pcVar5 = __file;\n    }\n  }\nLAB_00062a70:\n  uVar4 = FUN_0002d860(pcVar7,pcVar5,in_stack_00000024);\n  puVar2[4] = uVar4;\n  FUN_0002da80(__file);\nLAB_000628a8:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar2;\n  }\n                    \n  FUN_00066390();\n}" type_identifier (pointer_declarator "* FUN_00062720(undefined4 param_1,undefined4 param_2,undefined4 param_3)" * (function_declarator "FUN_00062720(undefined4 param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) )))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  char *__file;\n  __pid_t _Var3;\n  undefined4 uVar4;\n  char *pcVar5;\n  int *piVar6;\n  char *pcVar7;\n  int in_GS_OFFSET;\n  undefined4 *in_stack_00000020;\n  char *in_stack_00000024;\n  int local_38;\n  undefined4 local_34;\n  int local_30;\n  int local_2c;\n  int local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x62729;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = FUN_0001ea70(in_stack_00000024,0xd);\n  if (1 < iVar1 - 5U) {\n    puVar2 = (undefined4 *)0x0;\n    goto LAB_000628a8;\n  }\n  puVar2 = (undefined4 *)FUN_0002d1f0(1,0x40);\n  *puVar2 = &PTR_FUN_000afd20;\n  puVar2[5] = in_stack_00000020;\n  puVar2[4] = 0;\n  puVar2[0xf] = 0;\n  FUN_0002cfe0(puVar2 + 9);\n  FUN_0002cfe0(puVar2 + 6);\n  FUN_0002cfe0(puVar2 + 0xc);\n  if (iVar1 == 5) {\n    __file = (char *)FUN_00030750(param_1,param_3,in_stack_00000024);\n    if ((DAT_000b127c & 2) == 0) {\n      local_24 = 0;\n      local_28 = 0;\n    }\n    else {\n      local_24 = -1;\n      local_28 = -1;\n    }\n    uVar4 = FUN_0002d860("Starting local proxy command: %s",__file);\n    (**(code **)*in_stack_00000020)(in_stack_00000020,2,0,0,uVar4,0);\n    FUN_0002da80(uVar4);\n    iVar1 = pipe(&local_38);\n    if (-1 < iVar1) {\n      iVar1 = pipe(&local_30);\n      if (-1 < iVar1) {\n        if (local_28 == 0) {\n          iVar1 = pipe(&local_28);\n          if (iVar1 < 0) goto LAB_00062a58;\n        }\n        FUN_0005f000(local_34);\n        FUN_0005f000(local_30);\n        if (-1 < local_28) {\n          FUN_0005f000(local_28);\n        }\n        _Var3 = fork();\n        if (-1 < _Var3) {\n          if (_Var3 == 0) {\n            close(0);\n            close(1);\n            dup2(local_38,0);\n            uVar4 = 1;\n            dup2(local_2c,1);\n            close(local_38);\n            pcVar7 = (char *)close(local_2c);\n            if (-1 < local_28) {\n              uVar4 = 2;\n              dup2(local_24,2);\n              close(local_24);\n              in_stack_00000024 = pcVar7;\n            }\n            FUN_0005f090(0,uVar4,in_stack_00000024);\n            FUN_0005f090(1);\n            execl("/bin/sh","sh",&DAT_00085974,__file,0);\n                    \n            _exit(0xff);\n          }\n          FUN_0002da80(__file);\n          close(local_38);\n          close(local_2c);\n          if (-1 < local_28) {\n            close(local_24);\n          }\n          puVar2[3] = local_28;\n          puVar2[1] = local_34;\n          puVar2[2] = local_30;\n          goto LAB_00062822;\n        }\n        piVar6 = __errno_location();\n        pcVar5 = strerror(*piVar6);\n        pcVar7 = "fork: %s";\n        goto LAB_00062a70;\n      }\n    }\nLAB_00062a58:\n    piVar6 = __errno_location();\n    pcVar5 = strerror(*piVar6);\n    pcVar7 = "pipe: %s";\n  }\n  else {\n    __file = (char *)FUN_00030750(param_1,param_3,in_stack_00000024);\n    iVar1 = open64("/dev/null",1);\n    puVar2[1] = iVar1;\n    if (iVar1 == -1) {\n      piVar6 = __errno_location();\n      pcVar5 = strerror(*piVar6);\n      pcVar7 = "/dev/null: %s";\n    }\n    else {\n      iVar1 = open64(__file,0);\n      puVar2[2] = iVar1;\n      if (iVar1 != -1) {\n        FUN_0002da80(__file);\n        puVar2[3] = 0xffffffff;\nLAB_00062822:\n        if (DAT_000b1254 == 0) {\n          DAT_000b1254 = FUN_00047680(FUN_000620b0);\n        }\n        if (DAT_000b1250 == 0) {\n          DAT_000b1250 = FUN_00047680(FUN_000620f0);\n        }\n        if (DAT_000b124c == 0) {\n          DAT_000b124c = FUN_00047680(FUN_00062130);\n        }\n        FUN_00047700(DAT_000b1254,puVar2);\n        FUN_00047700(DAT_000b1250,puVar2);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00047700(DAT_000b124c,puVar2);\n        }\n        FUN_00063070(puVar2[2],1,FUN_00062320);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00063070(puVar2[3],1,FUN_00062320);\n        }\n        FUN_00060670(param_1);\n        goto LAB_000628a8;\n      }\n      piVar6 = __errno_location();\n      in_stack_00000024 = strerror(*piVar6);\n      pcVar7 = "%s: %s";\n      pcVar5 = __file;\n    }\n  }\nLAB_00062a70:\n  uVar4 = FUN_0002d860(pcVar7,pcVar5,in_stack_00000024);\n  puVar2[4] = uVar4;\n  FUN_0002da80(__file);\nLAB_000628a8:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar2;\n  }\n                    \n  FUN_00066390();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "char *__file;" primitive_type (pointer_declarator "*__file" * identifier) ;) (declaration "__pid_t _Var3;" type_identifier identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "undefined4 *in_stack_00000020;" type_identifier (pointer_declarator "*in_stack_00000020" * identifier) ;) (declaration "char *in_stack_00000024;" primitive_type (pointer_declarator "*in_stack_00000024" * identifier) ;) (declaration "int local_38;" primitive_type identifier ;) (declaration "undefined4 local_34;" type_identifier identifier ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (declaration "int local_28;" primitive_type identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x62729;" (assignment_expression "uStack_14 = 0x62729" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = FUN_0001ea70(in_stack_00000024,0xd);" (assignment_expression "iVar1 = FUN_0001ea70(in_stack_00000024,0xd)" identifier = (call_expression "FUN_0001ea70(in_stack_00000024,0xd)" identifier (argument_list "(in_stack_00000024,0xd)" ( identifier , number_literal )))) ;) (if_statement "if (1 < iVar1 - 5U) {\n    puVar2 = (undefined4 *)0x0;\n    goto LAB_000628a8;\n  }" if (parenthesized_expression "(1 < iVar1 - 5U)" ( (binary_expression "1 < iVar1 - 5U" number_literal < (binary_expression "iVar1 - 5U" identifier - number_literal)) )) (compound_statement "{\n    puVar2 = (undefined4 *)0x0;\n    goto LAB_000628a8;\n  }" { (expression_statement "puVar2 = (undefined4 *)0x0;" (assignment_expression "puVar2 = (undefined4 *)0x0" identifier = (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (goto_statement "goto LAB_000628a8;" goto statement_identifier ;) })) (expression_statement "puVar2 = (undefined4 *)FUN_0002d1f0(1,0x40);" (assignment_expression "puVar2 = (undefined4 *)FUN_0002d1f0(1,0x40)" identifier = (cast_expression "(undefined4 *)FUN_0002d1f0(1,0x40)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0002d1f0(1,0x40)" identifier (argument_list "(1,0x40)" ( number_literal , number_literal ))))) ;) (expression_statement "*puVar2 = &PTR_FUN_000afd20;" (assignment_expression "*puVar2 = &PTR_FUN_000afd20" (pointer_expression "*puVar2" * identifier) = (pointer_expression "&PTR_FUN_000afd20" & identifier)) ;) (expression_statement "puVar2[5] = in_stack_00000020;" (assignment_expression "puVar2[5] = in_stack_00000020" (subscript_expression "puVar2[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2[4] = 0;" (assignment_expression "puVar2[4] = 0" (subscript_expression "puVar2[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[0xf] = 0;" (assignment_expression "puVar2[0xf] = 0" (subscript_expression "puVar2[0xf]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "FUN_0002cfe0(puVar2 + 9);" (call_expression "FUN_0002cfe0(puVar2 + 9)" identifier (argument_list "(puVar2 + 9)" ( (binary_expression "puVar2 + 9" identifier + number_literal) ))) ;) (expression_statement "FUN_0002cfe0(puVar2 + 6);" (call_expression "FUN_0002cfe0(puVar2 + 6)" identifier (argument_list "(puVar2 + 6)" ( (binary_expression "puVar2 + 6" identifier + number_literal) ))) ;) (expression_statement "FUN_0002cfe0(puVar2 + 0xc);" (call_expression "FUN_0002cfe0(puVar2 + 0xc)" identifier (argument_list "(puVar2 + 0xc)" ( (binary_expression "puVar2 + 0xc" identifier + number_literal) ))) ;) (if_statement "if (iVar1 == 5) {\n    __file = (char *)FUN_00030750(param_1,param_3,in_stack_00000024);\n    if ((DAT_000b127c & 2) == 0) {\n      local_24 = 0;\n      local_28 = 0;\n    }\n    else {\n      local_24 = -1;\n      local_28 = -1;\n    }\n    uVar4 = FUN_0002d860("Starting local proxy command: %s",__file);\n    (**(code **)*in_stack_00000020)(in_stack_00000020,2,0,0,uVar4,0);\n    FUN_0002da80(uVar4);\n    iVar1 = pipe(&local_38);\n    if (-1 < iVar1) {\n      iVar1 = pipe(&local_30);\n      if (-1 < iVar1) {\n        if (local_28 == 0) {\n          iVar1 = pipe(&local_28);\n          if (iVar1 < 0) goto LAB_00062a58;\n        }\n        FUN_0005f000(local_34);\n        FUN_0005f000(local_30);\n        if (-1 < local_28) {\n          FUN_0005f000(local_28);\n        }\n        _Var3 = fork();\n        if (-1 < _Var3) {\n          if (_Var3 == 0) {\n            close(0);\n            close(1);\n            dup2(local_38,0);\n            uVar4 = 1;\n            dup2(local_2c,1);\n            close(local_38);\n            pcVar7 = (char *)close(local_2c);\n            if (-1 < local_28) {\n              uVar4 = 2;\n              dup2(local_24,2);\n              close(local_24);\n              in_stack_00000024 = pcVar7;\n            }\n            FUN_0005f090(0,uVar4,in_stack_00000024);\n            FUN_0005f090(1);\n            execl("/bin/sh","sh",&DAT_00085974,__file,0);\n                    \n            _exit(0xff);\n          }\n          FUN_0002da80(__file);\n          close(local_38);\n          close(local_2c);\n          if (-1 < local_28) {\n            close(local_24);\n          }\n          puVar2[3] = local_28;\n          puVar2[1] = local_34;\n          puVar2[2] = local_30;\n          goto LAB_00062822;\n        }\n        piVar6 = __errno_location();\n        pcVar5 = strerror(*piVar6);\n        pcVar7 = "fork: %s";\n        goto LAB_00062a70;\n      }\n    }\nLAB_00062a58:\n    piVar6 = __errno_location();\n    pcVar5 = strerror(*piVar6);\n    pcVar7 = "pipe: %s";\n  }\n  else {\n    __file = (char *)FUN_00030750(param_1,param_3,in_stack_00000024);\n    iVar1 = open64("/dev/null",1);\n    puVar2[1] = iVar1;\n    if (iVar1 == -1) {\n      piVar6 = __errno_location();\n      pcVar5 = strerror(*piVar6);\n      pcVar7 = "/dev/null: %s";\n    }\n    else {\n      iVar1 = open64(__file,0);\n      puVar2[2] = iVar1;\n      if (iVar1 != -1) {\n        FUN_0002da80(__file);\n        puVar2[3] = 0xffffffff;\nLAB_00062822:\n        if (DAT_000b1254 == 0) {\n          DAT_000b1254 = FUN_00047680(FUN_000620b0);\n        }\n        if (DAT_000b1250 == 0) {\n          DAT_000b1250 = FUN_00047680(FUN_000620f0);\n        }\n        if (DAT_000b124c == 0) {\n          DAT_000b124c = FUN_00047680(FUN_00062130);\n        }\n        FUN_00047700(DAT_000b1254,puVar2);\n        FUN_00047700(DAT_000b1250,puVar2);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00047700(DAT_000b124c,puVar2);\n        }\n        FUN_00063070(puVar2[2],1,FUN_00062320);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00063070(puVar2[3],1,FUN_00062320);\n        }\n        FUN_00060670(param_1);\n        goto LAB_000628a8;\n      }\n      piVar6 = __errno_location();\n      in_stack_00000024 = strerror(*piVar6);\n      pcVar7 = "%s: %s";\n      pcVar5 = __file;\n    }\n  }" if (parenthesized_expression "(iVar1 == 5)" ( (binary_expression "iVar1 == 5" identifier == number_literal) )) (compound_statement "{\n    __file = (char *)FUN_00030750(param_1,param_3,in_stack_00000024);\n    if ((DAT_000b127c & 2) == 0) {\n      local_24 = 0;\n      local_28 = 0;\n    }\n    else {\n      local_24 = -1;\n      local_28 = -1;\n    }\n    uVar4 = FUN_0002d860("Starting local proxy command: %s",__file);\n    (**(code **)*in_stack_00000020)(in_stack_00000020,2,0,0,uVar4,0);\n    FUN_0002da80(uVar4);\n    iVar1 = pipe(&local_38);\n    if (-1 < iVar1) {\n      iVar1 = pipe(&local_30);\n      if (-1 < iVar1) {\n        if (local_28 == 0) {\n          iVar1 = pipe(&local_28);\n          if (iVar1 < 0) goto LAB_00062a58;\n        }\n        FUN_0005f000(local_34);\n        FUN_0005f000(local_30);\n        if (-1 < local_28) {\n          FUN_0005f000(local_28);\n        }\n        _Var3 = fork();\n        if (-1 < _Var3) {\n          if (_Var3 == 0) {\n            close(0);\n            close(1);\n            dup2(local_38,0);\n            uVar4 = 1;\n            dup2(local_2c,1);\n            close(local_38);\n            pcVar7 = (char *)close(local_2c);\n            if (-1 < local_28) {\n              uVar4 = 2;\n              dup2(local_24,2);\n              close(local_24);\n              in_stack_00000024 = pcVar7;\n            }\n            FUN_0005f090(0,uVar4,in_stack_00000024);\n            FUN_0005f090(1);\n            execl("/bin/sh","sh",&DAT_00085974,__file,0);\n                    \n            _exit(0xff);\n          }\n          FUN_0002da80(__file);\n          close(local_38);\n          close(local_2c);\n          if (-1 < local_28) {\n            close(local_24);\n          }\n          puVar2[3] = local_28;\n          puVar2[1] = local_34;\n          puVar2[2] = local_30;\n          goto LAB_00062822;\n        }\n        piVar6 = __errno_location();\n        pcVar5 = strerror(*piVar6);\n        pcVar7 = "fork: %s";\n        goto LAB_00062a70;\n      }\n    }\nLAB_00062a58:\n    piVar6 = __errno_location();\n    pcVar5 = strerror(*piVar6);\n    pcVar7 = "pipe: %s";\n  }" { (expression_statement "__file = (char *)FUN_00030750(param_1,param_3,in_stack_00000024);" (assignment_expression "__file = (char *)FUN_00030750(param_1,param_3,in_stack_00000024)" identifier = (cast_expression "(char *)FUN_00030750(param_1,param_3,in_stack_00000024)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00030750(param_1,param_3,in_stack_00000024)" identifier (argument_list "(param_1,param_3,in_stack_00000024)" ( identifier , identifier , identifier ))))) ;) (if_statement "if ((DAT_000b127c & 2) == 0) {\n      local_24 = 0;\n      local_28 = 0;\n    }\n    else {\n      local_24 = -1;\n      local_28 = -1;\n    }" if (parenthesized_expression "((DAT_000b127c & 2) == 0)" ( (binary_expression "(DAT_000b127c & 2) == 0" (parenthesized_expression "(DAT_000b127c & 2)" ( (binary_expression "DAT_000b127c & 2" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      local_24 = 0;\n      local_28 = 0;\n    }" { (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" identifier = number_literal) ;) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      local_24 = -1;\n      local_28 = -1;\n    }" else (compound_statement "{\n      local_24 = -1;\n      local_28 = -1;\n    }" { (expression_statement "local_24 = -1;" (assignment_expression "local_24 = -1" identifier = number_literal) ;) (expression_statement "local_28 = -1;" (assignment_expression "local_28 = -1" identifier = number_literal) ;) }))) (expression_statement "uVar4 = FUN_0002d860("Starting local proxy command: %s",__file);" (assignment_expression "uVar4 = FUN_0002d860("Starting local proxy command: %s",__file)" identifier = (call_expression "FUN_0002d860("Starting local proxy command: %s",__file)" identifier (argument_list "("Starting local proxy command: %s",__file)" ( (string_literal ""Starting local proxy command: %s"" " string_content ") , identifier )))) ;) (expression_statement "(**(code **)*in_stack_00000020)(in_stack_00000020,2,0,0,uVar4,0);" (call_expression "(**(code **)*in_stack_00000020)(in_stack_00000020,2,0,0,uVar4,0)" (parenthesized_expression "(**(code **)*in_stack_00000020)" ( (pointer_expression "**(code **)*in_stack_00000020" * (pointer_expression "*(code **)*in_stack_00000020" * (cast_expression "(code **)*in_stack_00000020" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "*in_stack_00000020" * identifier)))) )) (argument_list "(in_stack_00000020,2,0,0,uVar4,0)" ( identifier , number_literal , number_literal , number_literal , identifier , number_literal ))) ;) (expression_statement "FUN_0002da80(uVar4);" (call_expression "FUN_0002da80(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) ;) (expression_statement "iVar1 = pipe(&local_38);" (assignment_expression "iVar1 = pipe(&local_38)" identifier = (call_expression "pipe(&local_38)" identifier (argument_list "(&local_38)" ( (pointer_expression "&local_38" & identifier) )))) ;) (if_statement "if (-1 < iVar1) {\n      iVar1 = pipe(&local_30);\n      if (-1 < iVar1) {\n        if (local_28 == 0) {\n          iVar1 = pipe(&local_28);\n          if (iVar1 < 0) goto LAB_00062a58;\n        }\n        FUN_0005f000(local_34);\n        FUN_0005f000(local_30);\n        if (-1 < local_28) {\n          FUN_0005f000(local_28);\n        }\n        _Var3 = fork();\n        if (-1 < _Var3) {\n          if (_Var3 == 0) {\n            close(0);\n            close(1);\n            dup2(local_38,0);\n            uVar4 = 1;\n            dup2(local_2c,1);\n            close(local_38);\n            pcVar7 = (char *)close(local_2c);\n            if (-1 < local_28) {\n              uVar4 = 2;\n              dup2(local_24,2);\n              close(local_24);\n              in_stack_00000024 = pcVar7;\n            }\n            FUN_0005f090(0,uVar4,in_stack_00000024);\n            FUN_0005f090(1);\n            execl("/bin/sh","sh",&DAT_00085974,__file,0);\n                    \n            _exit(0xff);\n          }\n          FUN_0002da80(__file);\n          close(local_38);\n          close(local_2c);\n          if (-1 < local_28) {\n            close(local_24);\n          }\n          puVar2[3] = local_28;\n          puVar2[1] = local_34;\n          puVar2[2] = local_30;\n          goto LAB_00062822;\n        }\n        piVar6 = __errno_location();\n        pcVar5 = strerror(*piVar6);\n        pcVar7 = "fork: %s";\n        goto LAB_00062a70;\n      }\n    }" if (parenthesized_expression "(-1 < iVar1)" ( (binary_expression "-1 < iVar1" number_literal < identifier) )) (compound_statement "{\n      iVar1 = pipe(&local_30);\n      if (-1 < iVar1) {\n        if (local_28 == 0) {\n          iVar1 = pipe(&local_28);\n          if (iVar1 < 0) goto LAB_00062a58;\n        }\n        FUN_0005f000(local_34);\n        FUN_0005f000(local_30);\n        if (-1 < local_28) {\n          FUN_0005f000(local_28);\n        }\n        _Var3 = fork();\n        if (-1 < _Var3) {\n          if (_Var3 == 0) {\n            close(0);\n            close(1);\n            dup2(local_38,0);\n            uVar4 = 1;\n            dup2(local_2c,1);\n            close(local_38);\n            pcVar7 = (char *)close(local_2c);\n            if (-1 < local_28) {\n              uVar4 = 2;\n              dup2(local_24,2);\n              close(local_24);\n              in_stack_00000024 = pcVar7;\n            }\n            FUN_0005f090(0,uVar4,in_stack_00000024);\n            FUN_0005f090(1);\n            execl("/bin/sh","sh",&DAT_00085974,__file,0);\n                    \n            _exit(0xff);\n          }\n          FUN_0002da80(__file);\n          close(local_38);\n          close(local_2c);\n          if (-1 < local_28) {\n            close(local_24);\n          }\n          puVar2[3] = local_28;\n          puVar2[1] = local_34;\n          puVar2[2] = local_30;\n          goto LAB_00062822;\n        }\n        piVar6 = __errno_location();\n        pcVar5 = strerror(*piVar6);\n        pcVar7 = "fork: %s";\n        goto LAB_00062a70;\n      }\n    }" { (expression_statement "iVar1 = pipe(&local_30);" (assignment_expression "iVar1 = pipe(&local_30)" identifier = (call_expression "pipe(&local_30)" identifier (argument_list "(&local_30)" ( (pointer_expression "&local_30" & identifier) )))) ;) (if_statement "if (-1 < iVar1) {\n        if (local_28 == 0) {\n          iVar1 = pipe(&local_28);\n          if (iVar1 < 0) goto LAB_00062a58;\n        }\n        FUN_0005f000(local_34);\n        FUN_0005f000(local_30);\n        if (-1 < local_28) {\n          FUN_0005f000(local_28);\n        }\n        _Var3 = fork();\n        if (-1 < _Var3) {\n          if (_Var3 == 0) {\n            close(0);\n            close(1);\n            dup2(local_38,0);\n            uVar4 = 1;\n            dup2(local_2c,1);\n            close(local_38);\n            pcVar7 = (char *)close(local_2c);\n            if (-1 < local_28) {\n              uVar4 = 2;\n              dup2(local_24,2);\n              close(local_24);\n              in_stack_00000024 = pcVar7;\n            }\n            FUN_0005f090(0,uVar4,in_stack_00000024);\n            FUN_0005f090(1);\n            execl("/bin/sh","sh",&DAT_00085974,__file,0);\n                    \n            _exit(0xff);\n          }\n          FUN_0002da80(__file);\n          close(local_38);\n          close(local_2c);\n          if (-1 < local_28) {\n            close(local_24);\n          }\n          puVar2[3] = local_28;\n          puVar2[1] = local_34;\n          puVar2[2] = local_30;\n          goto LAB_00062822;\n        }\n        piVar6 = __errno_location();\n        pcVar5 = strerror(*piVar6);\n        pcVar7 = "fork: %s";\n        goto LAB_00062a70;\n      }" if (parenthesized_expression "(-1 < iVar1)" ( (binary_expression "-1 < iVar1" number_literal < identifier) )) (compound_statement "{\n        if (local_28 == 0) {\n          iVar1 = pipe(&local_28);\n          if (iVar1 < 0) goto LAB_00062a58;\n        }\n        FUN_0005f000(local_34);\n        FUN_0005f000(local_30);\n        if (-1 < local_28) {\n          FUN_0005f000(local_28);\n        }\n        _Var3 = fork();\n        if (-1 < _Var3) {\n          if (_Var3 == 0) {\n            close(0);\n            close(1);\n            dup2(local_38,0);\n            uVar4 = 1;\n            dup2(local_2c,1);\n            close(local_38);\n            pcVar7 = (char *)close(local_2c);\n            if (-1 < local_28) {\n              uVar4 = 2;\n              dup2(local_24,2);\n              close(local_24);\n              in_stack_00000024 = pcVar7;\n            }\n            FUN_0005f090(0,uVar4,in_stack_00000024);\n            FUN_0005f090(1);\n            execl("/bin/sh","sh",&DAT_00085974,__file,0);\n                    \n            _exit(0xff);\n          }\n          FUN_0002da80(__file);\n          close(local_38);\n          close(local_2c);\n          if (-1 < local_28) {\n            close(local_24);\n          }\n          puVar2[3] = local_28;\n          puVar2[1] = local_34;\n          puVar2[2] = local_30;\n          goto LAB_00062822;\n        }\n        piVar6 = __errno_location();\n        pcVar5 = strerror(*piVar6);\n        pcVar7 = "fork: %s";\n        goto LAB_00062a70;\n      }" { (if_statement "if (local_28 == 0) {\n          iVar1 = pipe(&local_28);\n          if (iVar1 < 0) goto LAB_00062a58;\n        }" if (parenthesized_expression "(local_28 == 0)" ( (binary_expression "local_28 == 0" identifier == number_literal) )) (compound_statement "{\n          iVar1 = pipe(&local_28);\n          if (iVar1 < 0) goto LAB_00062a58;\n        }" { (expression_statement "iVar1 = pipe(&local_28);" (assignment_expression "iVar1 = pipe(&local_28)" identifier = (call_expression "pipe(&local_28)" identifier (argument_list "(&local_28)" ( (pointer_expression "&local_28" & identifier) )))) ;) (if_statement "if (iVar1 < 0) goto LAB_00062a58;" if (parenthesized_expression "(iVar1 < 0)" ( (binary_expression "iVar1 < 0" identifier < number_literal) )) (goto_statement "goto LAB_00062a58;" goto statement_identifier ;)) })) (expression_statement "FUN_0005f000(local_34);" (call_expression "FUN_0005f000(local_34)" identifier (argument_list "(local_34)" ( identifier ))) ;) (expression_statement "FUN_0005f000(local_30);" (call_expression "FUN_0005f000(local_30)" identifier (argument_list "(local_30)" ( identifier ))) ;) (if_statement "if (-1 < local_28) {\n          FUN_0005f000(local_28);\n        }" if (parenthesized_expression "(-1 < local_28)" ( (binary_expression "-1 < local_28" number_literal < identifier) )) (compound_statement "{\n          FUN_0005f000(local_28);\n        }" { (expression_statement "FUN_0005f000(local_28);" (call_expression "FUN_0005f000(local_28)" identifier (argument_list "(local_28)" ( identifier ))) ;) })) (expression_statement "_Var3 = fork();" (assignment_expression "_Var3 = fork()" identifier = (call_expression "fork()" identifier (argument_list "()" ( )))) ;) (if_statement "if (-1 < _Var3) {\n          if (_Var3 == 0) {\n            close(0);\n            close(1);\n            dup2(local_38,0);\n            uVar4 = 1;\n            dup2(local_2c,1);\n            close(local_38);\n            pcVar7 = (char *)close(local_2c);\n            if (-1 < local_28) {\n              uVar4 = 2;\n              dup2(local_24,2);\n              close(local_24);\n              in_stack_00000024 = pcVar7;\n            }\n            FUN_0005f090(0,uVar4,in_stack_00000024);\n            FUN_0005f090(1);\n            execl("/bin/sh","sh",&DAT_00085974,__file,0);\n                    \n            _exit(0xff);\n          }\n          FUN_0002da80(__file);\n          close(local_38);\n          close(local_2c);\n          if (-1 < local_28) {\n            close(local_24);\n          }\n          puVar2[3] = local_28;\n          puVar2[1] = local_34;\n          puVar2[2] = local_30;\n          goto LAB_00062822;\n        }" if (parenthesized_expression "(-1 < _Var3)" ( (binary_expression "-1 < _Var3" number_literal < identifier) )) (compound_statement "{\n          if (_Var3 == 0) {\n            close(0);\n            close(1);\n            dup2(local_38,0);\n            uVar4 = 1;\n            dup2(local_2c,1);\n            close(local_38);\n            pcVar7 = (char *)close(local_2c);\n            if (-1 < local_28) {\n              uVar4 = 2;\n              dup2(local_24,2);\n              close(local_24);\n              in_stack_00000024 = pcVar7;\n            }\n            FUN_0005f090(0,uVar4,in_stack_00000024);\n            FUN_0005f090(1);\n            execl("/bin/sh","sh",&DAT_00085974,__file,0);\n                    \n            _exit(0xff);\n          }\n          FUN_0002da80(__file);\n          close(local_38);\n          close(local_2c);\n          if (-1 < local_28) {\n            close(local_24);\n          }\n          puVar2[3] = local_28;\n          puVar2[1] = local_34;\n          puVar2[2] = local_30;\n          goto LAB_00062822;\n        }" { (if_statement "if (_Var3 == 0) {\n            close(0);\n            close(1);\n            dup2(local_38,0);\n            uVar4 = 1;\n            dup2(local_2c,1);\n            close(local_38);\n            pcVar7 = (char *)close(local_2c);\n            if (-1 < local_28) {\n              uVar4 = 2;\n              dup2(local_24,2);\n              close(local_24);\n              in_stack_00000024 = pcVar7;\n            }\n            FUN_0005f090(0,uVar4,in_stack_00000024);\n            FUN_0005f090(1);\n            execl("/bin/sh","sh",&DAT_00085974,__file,0);\n                    \n            _exit(0xff);\n          }" if (parenthesized_expression "(_Var3 == 0)" ( (binary_expression "_Var3 == 0" identifier == number_literal) )) (compound_statement "{\n            close(0);\n            close(1);\n            dup2(local_38,0);\n            uVar4 = 1;\n            dup2(local_2c,1);\n            close(local_38);\n            pcVar7 = (char *)close(local_2c);\n            if (-1 < local_28) {\n              uVar4 = 2;\n              dup2(local_24,2);\n              close(local_24);\n              in_stack_00000024 = pcVar7;\n            }\n            FUN_0005f090(0,uVar4,in_stack_00000024);\n            FUN_0005f090(1);\n            execl("/bin/sh","sh",&DAT_00085974,__file,0);\n                    \n            _exit(0xff);\n          }" { (expression_statement "close(0);" (call_expression "close(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "close(1);" (call_expression "close(1)" identifier (argument_list "(1)" ( number_literal ))) ;) (expression_statement "dup2(local_38,0);" (call_expression "dup2(local_38,0)" identifier (argument_list "(local_38,0)" ( identifier , number_literal ))) ;) (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" identifier = number_literal) ;) (expression_statement "dup2(local_2c,1);" (call_expression "dup2(local_2c,1)" identifier (argument_list "(local_2c,1)" ( identifier , number_literal ))) ;) (expression_statement "close(local_38);" (call_expression "close(local_38)" identifier (argument_list "(local_38)" ( identifier ))) ;) (expression_statement "pcVar7 = (char *)close(local_2c);" (assignment_expression "pcVar7 = (char *)close(local_2c)" identifier = (cast_expression "(char *)close(local_2c)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "close(local_2c)" identifier (argument_list "(local_2c)" ( identifier ))))) ;) (if_statement "if (-1 < local_28) {\n              uVar4 = 2;\n              dup2(local_24,2);\n              close(local_24);\n              in_stack_00000024 = pcVar7;\n            }" if (parenthesized_expression "(-1 < local_28)" ( (binary_expression "-1 < local_28" number_literal < identifier) )) (compound_statement "{\n              uVar4 = 2;\n              dup2(local_24,2);\n              close(local_24);\n              in_stack_00000024 = pcVar7;\n            }" { (expression_statement "uVar4 = 2;" (assignment_expression "uVar4 = 2" identifier = number_literal) ;) (expression_statement "dup2(local_24,2);" (call_expression "dup2(local_24,2)" identifier (argument_list "(local_24,2)" ( identifier , number_literal ))) ;) (expression_statement "close(local_24);" (call_expression "close(local_24)" identifier (argument_list "(local_24)" ( identifier ))) ;) (expression_statement "in_stack_00000024 = pcVar7;" (assignment_expression "in_stack_00000024 = pcVar7" identifier = identifier) ;) })) (expression_statement "FUN_0005f090(0,uVar4,in_stack_00000024);" (call_expression "FUN_0005f090(0,uVar4,in_stack_00000024)" identifier (argument_list "(0,uVar4,in_stack_00000024)" ( number_literal , identifier , identifier ))) ;) (expression_statement "FUN_0005f090(1);" (call_expression "FUN_0005f090(1)" identifier (argument_list "(1)" ( number_literal ))) ;) (expression_statement "execl("/bin/sh","sh",&DAT_00085974,__file,0);" (call_expression "execl("/bin/sh","sh",&DAT_00085974,__file,0)" identifier (argument_list "("/bin/sh","sh",&DAT_00085974,__file,0)" ( (string_literal ""/bin/sh"" " string_content ") , (string_literal ""sh"" " string_content ") , (pointer_expression "&DAT_00085974" & identifier) , identifier , number_literal ))) ;) (expression_statement "_exit(0xff);" (call_expression "_exit(0xff)" identifier (argument_list "(0xff)" ( number_literal ))) ;) })) (expression_statement "FUN_0002da80(__file);" (call_expression "FUN_0002da80(__file)" identifier (argument_list "(__file)" ( identifier ))) ;) (expression_statement "close(local_38);" (call_expression "close(local_38)" identifier (argument_list "(local_38)" ( identifier ))) ;) (expression_statement "close(local_2c);" (call_expression "close(local_2c)" identifier (argument_list "(local_2c)" ( identifier ))) ;) (if_statement "if (-1 < local_28) {\n            close(local_24);\n          }" if (parenthesized_expression "(-1 < local_28)" ( (binary_expression "-1 < local_28" number_literal < identifier) )) (compound_statement "{\n            close(local_24);\n          }" { (expression_statement "close(local_24);" (call_expression "close(local_24)" identifier (argument_list "(local_24)" ( identifier ))) ;) })) (expression_statement "puVar2[3] = local_28;" (assignment_expression "puVar2[3] = local_28" (subscript_expression "puVar2[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2[1] = local_34;" (assignment_expression "puVar2[1] = local_34" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2[2] = local_30;" (assignment_expression "puVar2[2] = local_30" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = identifier) ;) (goto_statement "goto LAB_00062822;" goto statement_identifier ;) })) (expression_statement "piVar6 = __errno_location();" (assignment_expression "piVar6 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar5 = strerror(*piVar6);" (assignment_expression "pcVar5 = strerror(*piVar6)" identifier = (call_expression "strerror(*piVar6)" identifier (argument_list "(*piVar6)" ( (pointer_expression "*piVar6" * identifier) )))) ;) (expression_statement "pcVar7 = "fork: %s";" (assignment_expression "pcVar7 = "fork: %s"" identifier = (string_literal ""fork: %s"" " string_content ")) ;) (goto_statement "goto LAB_00062a70;" goto statement_identifier ;) })) })) (labeled_statement "LAB_00062a58:\n    piVar6 = __errno_location();" statement_identifier : (expression_statement "piVar6 = __errno_location();" (assignment_expression "piVar6 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;)) (expression_statement "pcVar5 = strerror(*piVar6);" (assignment_expression "pcVar5 = strerror(*piVar6)" identifier = (call_expression "strerror(*piVar6)" identifier (argument_list "(*piVar6)" ( (pointer_expression "*piVar6" * identifier) )))) ;) (expression_statement "pcVar7 = "pipe: %s";" (assignment_expression "pcVar7 = "pipe: %s"" identifier = (string_literal ""pipe: %s"" " string_content ")) ;) }) (else_clause "else {\n    __file = (char *)FUN_00030750(param_1,param_3,in_stack_00000024);\n    iVar1 = open64("/dev/null",1);\n    puVar2[1] = iVar1;\n    if (iVar1 == -1) {\n      piVar6 = __errno_location();\n      pcVar5 = strerror(*piVar6);\n      pcVar7 = "/dev/null: %s";\n    }\n    else {\n      iVar1 = open64(__file,0);\n      puVar2[2] = iVar1;\n      if (iVar1 != -1) {\n        FUN_0002da80(__file);\n        puVar2[3] = 0xffffffff;\nLAB_00062822:\n        if (DAT_000b1254 == 0) {\n          DAT_000b1254 = FUN_00047680(FUN_000620b0);\n        }\n        if (DAT_000b1250 == 0) {\n          DAT_000b1250 = FUN_00047680(FUN_000620f0);\n        }\n        if (DAT_000b124c == 0) {\n          DAT_000b124c = FUN_00047680(FUN_00062130);\n        }\n        FUN_00047700(DAT_000b1254,puVar2);\n        FUN_00047700(DAT_000b1250,puVar2);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00047700(DAT_000b124c,puVar2);\n        }\n        FUN_00063070(puVar2[2],1,FUN_00062320);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00063070(puVar2[3],1,FUN_00062320);\n        }\n        FUN_00060670(param_1);\n        goto LAB_000628a8;\n      }\n      piVar6 = __errno_location();\n      in_stack_00000024 = strerror(*piVar6);\n      pcVar7 = "%s: %s";\n      pcVar5 = __file;\n    }\n  }" else (compound_statement "{\n    __file = (char *)FUN_00030750(param_1,param_3,in_stack_00000024);\n    iVar1 = open64("/dev/null",1);\n    puVar2[1] = iVar1;\n    if (iVar1 == -1) {\n      piVar6 = __errno_location();\n      pcVar5 = strerror(*piVar6);\n      pcVar7 = "/dev/null: %s";\n    }\n    else {\n      iVar1 = open64(__file,0);\n      puVar2[2] = iVar1;\n      if (iVar1 != -1) {\n        FUN_0002da80(__file);\n        puVar2[3] = 0xffffffff;\nLAB_00062822:\n        if (DAT_000b1254 == 0) {\n          DAT_000b1254 = FUN_00047680(FUN_000620b0);\n        }\n        if (DAT_000b1250 == 0) {\n          DAT_000b1250 = FUN_00047680(FUN_000620f0);\n        }\n        if (DAT_000b124c == 0) {\n          DAT_000b124c = FUN_00047680(FUN_00062130);\n        }\n        FUN_00047700(DAT_000b1254,puVar2);\n        FUN_00047700(DAT_000b1250,puVar2);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00047700(DAT_000b124c,puVar2);\n        }\n        FUN_00063070(puVar2[2],1,FUN_00062320);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00063070(puVar2[3],1,FUN_00062320);\n        }\n        FUN_00060670(param_1);\n        goto LAB_000628a8;\n      }\n      piVar6 = __errno_location();\n      in_stack_00000024 = strerror(*piVar6);\n      pcVar7 = "%s: %s";\n      pcVar5 = __file;\n    }\n  }" { (expression_statement "__file = (char *)FUN_00030750(param_1,param_3,in_stack_00000024);" (assignment_expression "__file = (char *)FUN_00030750(param_1,param_3,in_stack_00000024)" identifier = (cast_expression "(char *)FUN_00030750(param_1,param_3,in_stack_00000024)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00030750(param_1,param_3,in_stack_00000024)" identifier (argument_list "(param_1,param_3,in_stack_00000024)" ( identifier , identifier , identifier ))))) ;) (expression_statement "iVar1 = open64("/dev/null",1);" (assignment_expression "iVar1 = open64("/dev/null",1)" identifier = (call_expression "open64("/dev/null",1)" identifier (argument_list "("/dev/null",1)" ( (string_literal ""/dev/null"" " string_content ") , number_literal )))) ;) (expression_statement "puVar2[1] = iVar1;" (assignment_expression "puVar2[1] = iVar1" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar1 == -1) {\n      piVar6 = __errno_location();\n      pcVar5 = strerror(*piVar6);\n      pcVar7 = "/dev/null: %s";\n    }\n    else {\n      iVar1 = open64(__file,0);\n      puVar2[2] = iVar1;\n      if (iVar1 != -1) {\n        FUN_0002da80(__file);\n        puVar2[3] = 0xffffffff;\nLAB_00062822:\n        if (DAT_000b1254 == 0) {\n          DAT_000b1254 = FUN_00047680(FUN_000620b0);\n        }\n        if (DAT_000b1250 == 0) {\n          DAT_000b1250 = FUN_00047680(FUN_000620f0);\n        }\n        if (DAT_000b124c == 0) {\n          DAT_000b124c = FUN_00047680(FUN_00062130);\n        }\n        FUN_00047700(DAT_000b1254,puVar2);\n        FUN_00047700(DAT_000b1250,puVar2);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00047700(DAT_000b124c,puVar2);\n        }\n        FUN_00063070(puVar2[2],1,FUN_00062320);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00063070(puVar2[3],1,FUN_00062320);\n        }\n        FUN_00060670(param_1);\n        goto LAB_000628a8;\n      }\n      piVar6 = __errno_location();\n      in_stack_00000024 = strerror(*piVar6);\n      pcVar7 = "%s: %s";\n      pcVar5 = __file;\n    }" if (parenthesized_expression "(iVar1 == -1)" ( (binary_expression "iVar1 == -1" identifier == number_literal) )) (compound_statement "{\n      piVar6 = __errno_location();\n      pcVar5 = strerror(*piVar6);\n      pcVar7 = "/dev/null: %s";\n    }" { (expression_statement "piVar6 = __errno_location();" (assignment_expression "piVar6 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcVar5 = strerror(*piVar6);" (assignment_expression "pcVar5 = strerror(*piVar6)" identifier = (call_expression "strerror(*piVar6)" identifier (argument_list "(*piVar6)" ( (pointer_expression "*piVar6" * identifier) )))) ;) (expression_statement "pcVar7 = "/dev/null: %s";" (assignment_expression "pcVar7 = "/dev/null: %s"" identifier = (string_literal ""/dev/null: %s"" " string_content ")) ;) }) (else_clause "else {\n      iVar1 = open64(__file,0);\n      puVar2[2] = iVar1;\n      if (iVar1 != -1) {\n        FUN_0002da80(__file);\n        puVar2[3] = 0xffffffff;\nLAB_00062822:\n        if (DAT_000b1254 == 0) {\n          DAT_000b1254 = FUN_00047680(FUN_000620b0);\n        }\n        if (DAT_000b1250 == 0) {\n          DAT_000b1250 = FUN_00047680(FUN_000620f0);\n        }\n        if (DAT_000b124c == 0) {\n          DAT_000b124c = FUN_00047680(FUN_00062130);\n        }\n        FUN_00047700(DAT_000b1254,puVar2);\n        FUN_00047700(DAT_000b1250,puVar2);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00047700(DAT_000b124c,puVar2);\n        }\n        FUN_00063070(puVar2[2],1,FUN_00062320);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00063070(puVar2[3],1,FUN_00062320);\n        }\n        FUN_00060670(param_1);\n        goto LAB_000628a8;\n      }\n      piVar6 = __errno_location();\n      in_stack_00000024 = strerror(*piVar6);\n      pcVar7 = "%s: %s";\n      pcVar5 = __file;\n    }" else (compound_statement "{\n      iVar1 = open64(__file,0);\n      puVar2[2] = iVar1;\n      if (iVar1 != -1) {\n        FUN_0002da80(__file);\n        puVar2[3] = 0xffffffff;\nLAB_00062822:\n        if (DAT_000b1254 == 0) {\n          DAT_000b1254 = FUN_00047680(FUN_000620b0);\n        }\n        if (DAT_000b1250 == 0) {\n          DAT_000b1250 = FUN_00047680(FUN_000620f0);\n        }\n        if (DAT_000b124c == 0) {\n          DAT_000b124c = FUN_00047680(FUN_00062130);\n        }\n        FUN_00047700(DAT_000b1254,puVar2);\n        FUN_00047700(DAT_000b1250,puVar2);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00047700(DAT_000b124c,puVar2);\n        }\n        FUN_00063070(puVar2[2],1,FUN_00062320);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00063070(puVar2[3],1,FUN_00062320);\n        }\n        FUN_00060670(param_1);\n        goto LAB_000628a8;\n      }\n      piVar6 = __errno_location();\n      in_stack_00000024 = strerror(*piVar6);\n      pcVar7 = "%s: %s";\n      pcVar5 = __file;\n    }" { (expression_statement "iVar1 = open64(__file,0);" (assignment_expression "iVar1 = open64(__file,0)" identifier = (call_expression "open64(__file,0)" identifier (argument_list "(__file,0)" ( identifier , number_literal )))) ;) (expression_statement "puVar2[2] = iVar1;" (assignment_expression "puVar2[2] = iVar1" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar1 != -1) {\n        FUN_0002da80(__file);\n        puVar2[3] = 0xffffffff;\nLAB_00062822:\n        if (DAT_000b1254 == 0) {\n          DAT_000b1254 = FUN_00047680(FUN_000620b0);\n        }\n        if (DAT_000b1250 == 0) {\n          DAT_000b1250 = FUN_00047680(FUN_000620f0);\n        }\n        if (DAT_000b124c == 0) {\n          DAT_000b124c = FUN_00047680(FUN_00062130);\n        }\n        FUN_00047700(DAT_000b1254,puVar2);\n        FUN_00047700(DAT_000b1250,puVar2);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00047700(DAT_000b124c,puVar2);\n        }\n        FUN_00063070(puVar2[2],1,FUN_00062320);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00063070(puVar2[3],1,FUN_00062320);\n        }\n        FUN_00060670(param_1);\n        goto LAB_000628a8;\n      }" if (parenthesized_expression "(iVar1 != -1)" ( (binary_expression "iVar1 != -1" identifier != number_literal) )) (compound_statement "{\n        FUN_0002da80(__file);\n        puVar2[3] = 0xffffffff;\nLAB_00062822:\n        if (DAT_000b1254 == 0) {\n          DAT_000b1254 = FUN_00047680(FUN_000620b0);\n        }\n        if (DAT_000b1250 == 0) {\n          DAT_000b1250 = FUN_00047680(FUN_000620f0);\n        }\n        if (DAT_000b124c == 0) {\n          DAT_000b124c = FUN_00047680(FUN_00062130);\n        }\n        FUN_00047700(DAT_000b1254,puVar2);\n        FUN_00047700(DAT_000b1250,puVar2);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00047700(DAT_000b124c,puVar2);\n        }\n        FUN_00063070(puVar2[2],1,FUN_00062320);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00063070(puVar2[3],1,FUN_00062320);\n        }\n        FUN_00060670(param_1);\n        goto LAB_000628a8;\n      }" { (expression_statement "FUN_0002da80(__file);" (call_expression "FUN_0002da80(__file)" identifier (argument_list "(__file)" ( identifier ))) ;) (expression_statement "puVar2[3] = 0xffffffff;" (assignment_expression "puVar2[3] = 0xffffffff" (subscript_expression "puVar2[3]" identifier [ number_literal ]) = number_literal) ;) (labeled_statement "LAB_00062822:\n        if (DAT_000b1254 == 0) {\n          DAT_000b1254 = FUN_00047680(FUN_000620b0);\n        }" statement_identifier : (if_statement "if (DAT_000b1254 == 0) {\n          DAT_000b1254 = FUN_00047680(FUN_000620b0);\n        }" if (parenthesized_expression "(DAT_000b1254 == 0)" ( (binary_expression "DAT_000b1254 == 0" identifier == number_literal) )) (compound_statement "{\n          DAT_000b1254 = FUN_00047680(FUN_000620b0);\n        }" { (expression_statement "DAT_000b1254 = FUN_00047680(FUN_000620b0);" (assignment_expression "DAT_000b1254 = FUN_00047680(FUN_000620b0)" identifier = (call_expression "FUN_00047680(FUN_000620b0)" identifier (argument_list "(FUN_000620b0)" ( identifier )))) ;) }))) (if_statement "if (DAT_000b1250 == 0) {\n          DAT_000b1250 = FUN_00047680(FUN_000620f0);\n        }" if (parenthesized_expression "(DAT_000b1250 == 0)" ( (binary_expression "DAT_000b1250 == 0" identifier == number_literal) )) (compound_statement "{\n          DAT_000b1250 = FUN_00047680(FUN_000620f0);\n        }" { (expression_statement "DAT_000b1250 = FUN_00047680(FUN_000620f0);" (assignment_expression "DAT_000b1250 = FUN_00047680(FUN_000620f0)" identifier = (call_expression "FUN_00047680(FUN_000620f0)" identifier (argument_list "(FUN_000620f0)" ( identifier )))) ;) })) (if_statement "if (DAT_000b124c == 0) {\n          DAT_000b124c = FUN_00047680(FUN_00062130);\n        }" if (parenthesized_expression "(DAT_000b124c == 0)" ( (binary_expression "DAT_000b124c == 0" identifier == number_literal) )) (compound_statement "{\n          DAT_000b124c = FUN_00047680(FUN_00062130);\n        }" { (expression_statement "DAT_000b124c = FUN_00047680(FUN_00062130);" (assignment_expression "DAT_000b124c = FUN_00047680(FUN_00062130)" identifier = (call_expression "FUN_00047680(FUN_00062130)" identifier (argument_list "(FUN_00062130)" ( identifier )))) ;) })) (expression_statement "FUN_00047700(DAT_000b1254,puVar2);" (call_expression "FUN_00047700(DAT_000b1254,puVar2)" identifier (argument_list "(DAT_000b1254,puVar2)" ( identifier , identifier ))) ;) (expression_statement "FUN_00047700(DAT_000b1250,puVar2);" (call_expression "FUN_00047700(DAT_000b1250,puVar2)" identifier (argument_list "(DAT_000b1250,puVar2)" ( identifier , identifier ))) ;) (if_statement "if (-1 < (int)puVar2[3]) {\n          FUN_00047700(DAT_000b124c,puVar2);\n        }" if (parenthesized_expression "(-1 < (int)puVar2[3])" ( (binary_expression "-1 < (int)puVar2[3]" number_literal < (cast_expression "(int)puVar2[3]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "puVar2[3]" identifier [ number_literal ]))) )) (compound_statement "{\n          FUN_00047700(DAT_000b124c,puVar2);\n        }" { (expression_statement "FUN_00047700(DAT_000b124c,puVar2);" (call_expression "FUN_00047700(DAT_000b124c,puVar2)" identifier (argument_list "(DAT_000b124c,puVar2)" ( identifier , identifier ))) ;) })) (expression_statement "FUN_00063070(puVar2[2],1,FUN_00062320);" (call_expression "FUN_00063070(puVar2[2],1,FUN_00062320)" identifier (argument_list "(puVar2[2],1,FUN_00062320)" ( (subscript_expression "puVar2[2]" identifier [ number_literal ]) , number_literal , identifier ))) ;) (if_statement "if (-1 < (int)puVar2[3]) {\n          FUN_00063070(puVar2[3],1,FUN_00062320);\n        }" if (parenthesized_expression "(-1 < (int)puVar2[3])" ( (binary_expression "-1 < (int)puVar2[3]" number_literal < (cast_expression "(int)puVar2[3]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "puVar2[3]" identifier [ number_literal ]))) )) (compound_statement "{\n          FUN_00063070(puVar2[3],1,FUN_00062320);\n        }" { (expression_statement "FUN_00063070(puVar2[3],1,FUN_00062320);" (call_expression "FUN_00063070(puVar2[3],1,FUN_00062320)" identifier (argument_list "(puVar2[3],1,FUN_00062320)" ( (subscript_expression "puVar2[3]" identifier [ number_literal ]) , number_literal , identifier ))) ;) })) (expression_statement "FUN_00060670(param_1);" (call_expression "FUN_00060670(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (goto_statement "goto LAB_000628a8;" goto statement_identifier ;) })) (expression_statement "piVar6 = __errno_location();" (assignment_expression "piVar6 = __errno_location()" identifier = (call_expression "__errno_location()" identifier (argument_list "()" ( )))) ;) (expression_statement "in_stack_00000024 = strerror(*piVar6);" (assignment_expression "in_stack_00000024 = strerror(*piVar6)" identifier = (call_expression "strerror(*piVar6)" identifier (argument_list "(*piVar6)" ( (pointer_expression "*piVar6" * identifier) )))) ;) (expression_statement "pcVar7 = "%s: %s";" (assignment_expression "pcVar7 = "%s: %s"" identifier = (string_literal ""%s: %s"" " string_content ")) ;) (expression_statement "pcVar5 = __file;" (assignment_expression "pcVar5 = __file" identifier = identifier) ;) }))) }))) (labeled_statement "LAB_00062a70:\n  uVar4 = FUN_0002d860(pcVar7,pcVar5,in_stack_00000024);" statement_identifier : (expression_statement "uVar4 = FUN_0002d860(pcVar7,pcVar5,in_stack_00000024);" (assignment_expression "uVar4 = FUN_0002d860(pcVar7,pcVar5,in_stack_00000024)" identifier = (call_expression "FUN_0002d860(pcVar7,pcVar5,in_stack_00000024)" identifier (argument_list "(pcVar7,pcVar5,in_stack_00000024)" ( identifier , identifier , identifier )))) ;)) (expression_statement "puVar2[4] = uVar4;" (assignment_expression "puVar2[4] = uVar4" (subscript_expression "puVar2[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "FUN_0002da80(__file);" (call_expression "FUN_0002da80(__file)" identifier (argument_list "(__file)" ( identifier ))) ;) (labeled_statement "LAB_000628a8:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar2;\n  }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar2;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return puVar2;\n  }" { (return_statement "return puVar2;" return identifier ;) }))) (expression_statement "FUN_00066390();" (call_expression "FUN_00066390()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (binary_expression IDENT - LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (goto_statement goto statement_identifier ;) })) (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) = (pointer_expression & 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 (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) ))) ;) (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 IDENT (argument_list ( IDENT , IDENT , IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") , 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 ( (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( 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 ( IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (call_expression IDENT (argument_list ( LIT , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , (pointer_expression & IDENT) , IDENT , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (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) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (goto_statement goto statement_identifier ;) })) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , LIT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ]))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , LIT , IDENT ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }))) }))) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT )))) ;)) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) }))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "undefined4 * FUN_00062720(undefined4 param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  char *__file;\n  __pid_t _Var3;\n  undefined4 uVar4;\n  char *pcVar5;\n  int *piVar6;\n  char *pcVar7;\n  int in_GS_OFFSET;\n  undefined4 *in_stack_00000020;\n  char *in_stack_00000024;\n  int local_38;\n  undefined4 local_34;\n  int local_30;\n  int local_2c;\n  int local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x62729;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = FUN_0001ea70(in_stack_00000024,0xd);\n  if (1 < iVar1 - 5U) {\n    puVar2 = (undefined4 *)0x0;\n    goto LAB_000628a8;\n  }\n  puVar2 = (undefined4 *)FUN_0002d1f0(1,0x40);\n  *puVar2 = &PTR_FUN_000afd20;\n  puVar2[5] = in_stack_00000020;\n  puVar2[4] = 0;\n  puVar2[0xf] = 0;\n  FUN_0002cfe0(puVar2 + 9);\n  FUN_0002cfe0(puVar2 + 6);\n  FUN_0002cfe0(puVar2 + 0xc);\n  if (iVar1 == 5) {\n    __file = (char *)FUN_00030750(param_1,param_3,in_stack_00000024);\n    if ((DAT_000b127c & 2) == 0) {\n      local_24 = 0;\n      local_28 = 0;\n    }\n    else {\n      local_24 = -1;\n      local_28 = -1;\n    }\n    uVar4 = FUN_0002d860("Starting local proxy command: %s",__file);\n    (**(code **)*in_stack_00000020)(in_stack_00000020,2,0,0,uVar4,0);\n    FUN_0002da80(uVar4);\n    iVar1 = pipe(&local_38);\n    if (-1 < iVar1) {\n      iVar1 = pipe(&local_30);\n      if (-1 < iVar1) {\n        if (local_28 == 0) {\n          iVar1 = pipe(&local_28);\n          if (iVar1 < 0) goto LAB_00062a58;\n        }\n        FUN_0005f000(local_34);\n        FUN_0005f000(local_30);\n        if (-1 < local_28) {\n          FUN_0005f000(local_28);\n        }\n        _Var3 = fork();\n        if (-1 < _Var3) {\n          if (_Var3 == 0) {\n            close(0);\n            close(1);\n            dup2(local_38,0);\n            uVar4 = 1;\n            dup2(local_2c,1);\n            close(local_38);\n            pcVar7 = (char *)close(local_2c);\n            if (-1 < local_28) {\n              uVar4 = 2;\n              dup2(local_24,2);\n              close(local_24);\n              in_stack_00000024 = pcVar7;\n            }\n            FUN_0005f090(0,uVar4,in_stack_00000024);\n            FUN_0005f090(1);\n            execl("/bin/sh","sh",&DAT_00085974,__file,0);\n                    \n            _exit(0xff);\n          }\n          FUN_0002da80(__file);\n          close(local_38);\n          close(local_2c);\n          if (-1 < local_28) {\n            close(local_24);\n          }\n          puVar2[3] = local_28;\n          puVar2[1] = local_34;\n          puVar2[2] = local_30;\n          goto LAB_00062822;\n        }\n        piVar6 = __errno_location();\n        pcVar5 = strerror(*piVar6);\n        pcVar7 = "fork: %s";\n        goto LAB_00062a70;\n      }\n    }\nLAB_00062a58:\n    piVar6 = __errno_location();\n    pcVar5 = strerror(*piVar6);\n    pcVar7 = "pipe: %s";\n  }\n  else {\n    __file = (char *)FUN_00030750(param_1,param_3,in_stack_00000024);\n    iVar1 = open64("/dev/null",1);\n    puVar2[1] = iVar1;\n    if (iVar1 == -1) {\n      piVar6 = __errno_location();\n      pcVar5 = strerror(*piVar6);\n      pcVar7 = "/dev/null: %s";\n    }\n    else {\n      iVar1 = open64(__file,0);\n      puVar2[2] = iVar1;\n      if (iVar1 != -1) {\n        FUN_0002da80(__file);\n        puVar2[3] = 0xffffffff;\nLAB_00062822:\n        if (DAT_000b1254 == 0) {\n          DAT_000b1254 = FUN_00047680(FUN_000620b0);\n        }\n        if (DAT_000b1250 == 0) {\n          DAT_000b1250 = FUN_00047680(FUN_000620f0);\n        }\n        if (DAT_000b124c == 0) {\n          DAT_000b124c = FUN_00047680(FUN_00062130);\n        }\n        FUN_00047700(DAT_000b1254,puVar2);\n        FUN_00047700(DAT_000b1250,puVar2);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00047700(DAT_000b124c,puVar2);\n        }\n        FUN_00063070(puVar2[2],1,FUN_00062320);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00063070(puVar2[3],1,FUN_00062320);\n        }\n        FUN_00060670(param_1);\n        goto LAB_000628a8;\n      }\n      piVar6 = __errno_location();\n      in_stack_00000024 = strerror(*piVar6);\n      pcVar7 = "%s: %s";\n      pcVar5 = __file;\n    }\n  }\nLAB_00062a70:\n  uVar4 = FUN_0002d860(pcVar7,pcVar5,in_stack_00000024);\n  puVar2[4] = uVar4;\n  FUN_0002da80(__file);\nLAB_000628a8:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar2;\n  }\n                    \n  FUN_00066390();\n}" (type_identifier "undefined4") (pointer_declarator "* FUN_00062720(undefined4 param_1,undefined4 param_2,undefined4 param_3)" (* "*") (function_declarator "FUN_00062720(undefined4 param_1,undefined4 param_2,undefined4 param_3)" (identifier "FUN_00062720") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3)" (( "(") (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")) () ")")))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  char *__file;\n  __pid_t _Var3;\n  undefined4 uVar4;\n  char *pcVar5;\n  int *piVar6;\n  char *pcVar7;\n  int in_GS_OFFSET;\n  undefined4 *in_stack_00000020;\n  char *in_stack_00000024;\n  int local_38;\n  undefined4 local_34;\n  int local_30;\n  int local_2c;\n  int local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x62729;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = FUN_0001ea70(in_stack_00000024,0xd);\n  if (1 < iVar1 - 5U) {\n    puVar2 = (undefined4 *)0x0;\n    goto LAB_000628a8;\n  }\n  puVar2 = (undefined4 *)FUN_0002d1f0(1,0x40);\n  *puVar2 = &PTR_FUN_000afd20;\n  puVar2[5] = in_stack_00000020;\n  puVar2[4] = 0;\n  puVar2[0xf] = 0;\n  FUN_0002cfe0(puVar2 + 9);\n  FUN_0002cfe0(puVar2 + 6);\n  FUN_0002cfe0(puVar2 + 0xc);\n  if (iVar1 == 5) {\n    __file = (char *)FUN_00030750(param_1,param_3,in_stack_00000024);\n    if ((DAT_000b127c & 2) == 0) {\n      local_24 = 0;\n      local_28 = 0;\n    }\n    else {\n      local_24 = -1;\n      local_28 = -1;\n    }\n    uVar4 = FUN_0002d860("Starting local proxy command: %s",__file);\n    (**(code **)*in_stack_00000020)(in_stack_00000020,2,0,0,uVar4,0);\n    FUN_0002da80(uVar4);\n    iVar1 = pipe(&local_38);\n    if (-1 < iVar1) {\n      iVar1 = pipe(&local_30);\n      if (-1 < iVar1) {\n        if (local_28 == 0) {\n          iVar1 = pipe(&local_28);\n          if (iVar1 < 0) goto LAB_00062a58;\n        }\n        FUN_0005f000(local_34);\n        FUN_0005f000(local_30);\n        if (-1 < local_28) {\n          FUN_0005f000(local_28);\n        }\n        _Var3 = fork();\n        if (-1 < _Var3) {\n          if (_Var3 == 0) {\n            close(0);\n            close(1);\n            dup2(local_38,0);\n            uVar4 = 1;\n            dup2(local_2c,1);\n            close(local_38);\n            pcVar7 = (char *)close(local_2c);\n            if (-1 < local_28) {\n              uVar4 = 2;\n              dup2(local_24,2);\n              close(local_24);\n              in_stack_00000024 = pcVar7;\n            }\n            FUN_0005f090(0,uVar4,in_stack_00000024);\n            FUN_0005f090(1);\n            execl("/bin/sh","sh",&DAT_00085974,__file,0);\n                    \n            _exit(0xff);\n          }\n          FUN_0002da80(__file);\n          close(local_38);\n          close(local_2c);\n          if (-1 < local_28) {\n            close(local_24);\n          }\n          puVar2[3] = local_28;\n          puVar2[1] = local_34;\n          puVar2[2] = local_30;\n          goto LAB_00062822;\n        }\n        piVar6 = __errno_location();\n        pcVar5 = strerror(*piVar6);\n        pcVar7 = "fork: %s";\n        goto LAB_00062a70;\n      }\n    }\nLAB_00062a58:\n    piVar6 = __errno_location();\n    pcVar5 = strerror(*piVar6);\n    pcVar7 = "pipe: %s";\n  }\n  else {\n    __file = (char *)FUN_00030750(param_1,param_3,in_stack_00000024);\n    iVar1 = open64("/dev/null",1);\n    puVar2[1] = iVar1;\n    if (iVar1 == -1) {\n      piVar6 = __errno_location();\n      pcVar5 = strerror(*piVar6);\n      pcVar7 = "/dev/null: %s";\n    }\n    else {\n      iVar1 = open64(__file,0);\n      puVar2[2] = iVar1;\n      if (iVar1 != -1) {\n        FUN_0002da80(__file);\n        puVar2[3] = 0xffffffff;\nLAB_00062822:\n        if (DAT_000b1254 == 0) {\n          DAT_000b1254 = FUN_00047680(FUN_000620b0);\n        }\n        if (DAT_000b1250 == 0) {\n          DAT_000b1250 = FUN_00047680(FUN_000620f0);\n        }\n        if (DAT_000b124c == 0) {\n          DAT_000b124c = FUN_00047680(FUN_00062130);\n        }\n        FUN_00047700(DAT_000b1254,puVar2);\n        FUN_00047700(DAT_000b1250,puVar2);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00047700(DAT_000b124c,puVar2);\n        }\n        FUN_00063070(puVar2[2],1,FUN_00062320);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00063070(puVar2[3],1,FUN_00062320);\n        }\n        FUN_00060670(param_1);\n        goto LAB_000628a8;\n      }\n      piVar6 = __errno_location();\n      in_stack_00000024 = strerror(*piVar6);\n      pcVar7 = "%s: %s";\n      pcVar5 = __file;\n    }\n  }\nLAB_00062a70:\n  uVar4 = FUN_0002d860(pcVar7,pcVar5,in_stack_00000024);\n  puVar2[4] = uVar4;\n  FUN_0002da80(__file);\nLAB_000628a8:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar2;\n  }\n                    \n  FUN_00066390();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "char *__file;" (primitive_type "char") (pointer_declarator "*__file" (* "*") (identifier "__file")) (; ";")) (declaration "__pid_t _Var3;" (type_identifier "__pid_t") (identifier "_Var3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "char *pcVar5;" (primitive_type "char") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (declaration "int *piVar6;" (primitive_type "int") (pointer_declarator "*piVar6" (* "*") (identifier "piVar6")) (; ";")) (declaration "char *pcVar7;" (primitive_type "char") (pointer_declarator "*pcVar7" (* "*") (identifier "pcVar7")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "undefined4 *in_stack_00000020;" (type_identifier "undefined4") (pointer_declarator "*in_stack_00000020" (* "*") (identifier "in_stack_00000020")) (; ";")) (declaration "char *in_stack_00000024;" (primitive_type "char") (pointer_declarator "*in_stack_00000024" (* "*") (identifier "in_stack_00000024")) (; ";")) (declaration "int local_38;" (primitive_type "int") (identifier "local_38") (; ";")) (declaration "undefined4 local_34;" (type_identifier "undefined4") (identifier "local_34") (; ";")) (declaration "int local_30;" (primitive_type "int") (identifier "local_30") (; ";")) (declaration "int local_2c;" (primitive_type "int") (identifier "local_2c") (; ";")) (declaration "int local_28;" (primitive_type "int") (identifier "local_28") (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x62729;" (assignment_expression "uStack_14 = 0x62729" (identifier "uStack_14") (= "=") (number_literal "0x62729")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "iVar1 = FUN_0001ea70(in_stack_00000024,0xd);" (assignment_expression "iVar1 = FUN_0001ea70(in_stack_00000024,0xd)" (identifier "iVar1") (= "=") (call_expression "FUN_0001ea70(in_stack_00000024,0xd)" (identifier "FUN_0001ea70") (argument_list "(in_stack_00000024,0xd)" (( "(") (identifier "in_stack_00000024") (, ",") (number_literal "0xd") () ")")))) (; ";")) (if_statement "if (1 < iVar1 - 5U) {\n    puVar2 = (undefined4 *)0x0;\n    goto LAB_000628a8;\n  }" (if "if") (parenthesized_expression "(1 < iVar1 - 5U)" (( "(") (binary_expression "1 < iVar1 - 5U" (number_literal "1") (< "<") (binary_expression "iVar1 - 5U" (identifier "iVar1") (- "-") (number_literal "5U"))) () ")")) (compound_statement "{\n    puVar2 = (undefined4 *)0x0;\n    goto LAB_000628a8;\n  }" ({ "{") (expression_statement "puVar2 = (undefined4 *)0x0;" (assignment_expression "puVar2 = (undefined4 *)0x0" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (goto_statement "goto LAB_000628a8;" (goto "goto") (statement_identifier "LAB_000628a8") (; ";")) (} "}"))) (expression_statement "puVar2 = (undefined4 *)FUN_0002d1f0(1,0x40);" (assignment_expression "puVar2 = (undefined4 *)FUN_0002d1f0(1,0x40)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)FUN_0002d1f0(1,0x40)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0002d1f0(1,0x40)" (identifier "FUN_0002d1f0") (argument_list "(1,0x40)" (( "(") (number_literal "1") (, ",") (number_literal "0x40") () ")"))))) (; ";")) (expression_statement "*puVar2 = &PTR_FUN_000afd20;" (assignment_expression "*puVar2 = &PTR_FUN_000afd20" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (pointer_expression "&PTR_FUN_000afd20" (& "&") (identifier "PTR_FUN_000afd20"))) (; ";")) (expression_statement "puVar2[5] = in_stack_00000020;" (assignment_expression "puVar2[5] = in_stack_00000020" (subscript_expression "puVar2[5]" (identifier "puVar2") ([ "[") (number_literal "5") (] "]")) (= "=") (identifier "in_stack_00000020")) (; ";")) (expression_statement "puVar2[4] = 0;" (assignment_expression "puVar2[4] = 0" (subscript_expression "puVar2[4]" (identifier "puVar2") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2[0xf] = 0;" (assignment_expression "puVar2[0xf] = 0" (subscript_expression "puVar2[0xf]" (identifier "puVar2") ([ "[") (number_literal "0xf") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_0002cfe0(puVar2 + 9);" (call_expression "FUN_0002cfe0(puVar2 + 9)" (identifier "FUN_0002cfe0") (argument_list "(puVar2 + 9)" (( "(") (binary_expression "puVar2 + 9" (identifier "puVar2") (+ "+") (number_literal "9")) () ")"))) (; ";")) (expression_statement "FUN_0002cfe0(puVar2 + 6);" (call_expression "FUN_0002cfe0(puVar2 + 6)" (identifier "FUN_0002cfe0") (argument_list "(puVar2 + 6)" (( "(") (binary_expression "puVar2 + 6" (identifier "puVar2") (+ "+") (number_literal "6")) () ")"))) (; ";")) (expression_statement "FUN_0002cfe0(puVar2 + 0xc);" (call_expression "FUN_0002cfe0(puVar2 + 0xc)" (identifier "FUN_0002cfe0") (argument_list "(puVar2 + 0xc)" (( "(") (binary_expression "puVar2 + 0xc" (identifier "puVar2") (+ "+") (number_literal "0xc")) () ")"))) (; ";")) (if_statement "if (iVar1 == 5) {\n    __file = (char *)FUN_00030750(param_1,param_3,in_stack_00000024);\n    if ((DAT_000b127c & 2) == 0) {\n      local_24 = 0;\n      local_28 = 0;\n    }\n    else {\n      local_24 = -1;\n      local_28 = -1;\n    }\n    uVar4 = FUN_0002d860("Starting local proxy command: %s",__file);\n    (**(code **)*in_stack_00000020)(in_stack_00000020,2,0,0,uVar4,0);\n    FUN_0002da80(uVar4);\n    iVar1 = pipe(&local_38);\n    if (-1 < iVar1) {\n      iVar1 = pipe(&local_30);\n      if (-1 < iVar1) {\n        if (local_28 == 0) {\n          iVar1 = pipe(&local_28);\n          if (iVar1 < 0) goto LAB_00062a58;\n        }\n        FUN_0005f000(local_34);\n        FUN_0005f000(local_30);\n        if (-1 < local_28) {\n          FUN_0005f000(local_28);\n        }\n        _Var3 = fork();\n        if (-1 < _Var3) {\n          if (_Var3 == 0) {\n            close(0);\n            close(1);\n            dup2(local_38,0);\n            uVar4 = 1;\n            dup2(local_2c,1);\n            close(local_38);\n            pcVar7 = (char *)close(local_2c);\n            if (-1 < local_28) {\n              uVar4 = 2;\n              dup2(local_24,2);\n              close(local_24);\n              in_stack_00000024 = pcVar7;\n            }\n            FUN_0005f090(0,uVar4,in_stack_00000024);\n            FUN_0005f090(1);\n            execl("/bin/sh","sh",&DAT_00085974,__file,0);\n                    \n            _exit(0xff);\n          }\n          FUN_0002da80(__file);\n          close(local_38);\n          close(local_2c);\n          if (-1 < local_28) {\n            close(local_24);\n          }\n          puVar2[3] = local_28;\n          puVar2[1] = local_34;\n          puVar2[2] = local_30;\n          goto LAB_00062822;\n        }\n        piVar6 = __errno_location();\n        pcVar5 = strerror(*piVar6);\n        pcVar7 = "fork: %s";\n        goto LAB_00062a70;\n      }\n    }\nLAB_00062a58:\n    piVar6 = __errno_location();\n    pcVar5 = strerror(*piVar6);\n    pcVar7 = "pipe: %s";\n  }\n  else {\n    __file = (char *)FUN_00030750(param_1,param_3,in_stack_00000024);\n    iVar1 = open64("/dev/null",1);\n    puVar2[1] = iVar1;\n    if (iVar1 == -1) {\n      piVar6 = __errno_location();\n      pcVar5 = strerror(*piVar6);\n      pcVar7 = "/dev/null: %s";\n    }\n    else {\n      iVar1 = open64(__file,0);\n      puVar2[2] = iVar1;\n      if (iVar1 != -1) {\n        FUN_0002da80(__file);\n        puVar2[3] = 0xffffffff;\nLAB_00062822:\n        if (DAT_000b1254 == 0) {\n          DAT_000b1254 = FUN_00047680(FUN_000620b0);\n        }\n        if (DAT_000b1250 == 0) {\n          DAT_000b1250 = FUN_00047680(FUN_000620f0);\n        }\n        if (DAT_000b124c == 0) {\n          DAT_000b124c = FUN_00047680(FUN_00062130);\n        }\n        FUN_00047700(DAT_000b1254,puVar2);\n        FUN_00047700(DAT_000b1250,puVar2);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00047700(DAT_000b124c,puVar2);\n        }\n        FUN_00063070(puVar2[2],1,FUN_00062320);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00063070(puVar2[3],1,FUN_00062320);\n        }\n        FUN_00060670(param_1);\n        goto LAB_000628a8;\n      }\n      piVar6 = __errno_location();\n      in_stack_00000024 = strerror(*piVar6);\n      pcVar7 = "%s: %s";\n      pcVar5 = __file;\n    }\n  }" (if "if") (parenthesized_expression "(iVar1 == 5)" (( "(") (binary_expression "iVar1 == 5" (identifier "iVar1") (== "==") (number_literal "5")) () ")")) (compound_statement "{\n    __file = (char *)FUN_00030750(param_1,param_3,in_stack_00000024);\n    if ((DAT_000b127c & 2) == 0) {\n      local_24 = 0;\n      local_28 = 0;\n    }\n    else {\n      local_24 = -1;\n      local_28 = -1;\n    }\n    uVar4 = FUN_0002d860("Starting local proxy command: %s",__file);\n    (**(code **)*in_stack_00000020)(in_stack_00000020,2,0,0,uVar4,0);\n    FUN_0002da80(uVar4);\n    iVar1 = pipe(&local_38);\n    if (-1 < iVar1) {\n      iVar1 = pipe(&local_30);\n      if (-1 < iVar1) {\n        if (local_28 == 0) {\n          iVar1 = pipe(&local_28);\n          if (iVar1 < 0) goto LAB_00062a58;\n        }\n        FUN_0005f000(local_34);\n        FUN_0005f000(local_30);\n        if (-1 < local_28) {\n          FUN_0005f000(local_28);\n        }\n        _Var3 = fork();\n        if (-1 < _Var3) {\n          if (_Var3 == 0) {\n            close(0);\n            close(1);\n            dup2(local_38,0);\n            uVar4 = 1;\n            dup2(local_2c,1);\n            close(local_38);\n            pcVar7 = (char *)close(local_2c);\n            if (-1 < local_28) {\n              uVar4 = 2;\n              dup2(local_24,2);\n              close(local_24);\n              in_stack_00000024 = pcVar7;\n            }\n            FUN_0005f090(0,uVar4,in_stack_00000024);\n            FUN_0005f090(1);\n            execl("/bin/sh","sh",&DAT_00085974,__file,0);\n                    \n            _exit(0xff);\n          }\n          FUN_0002da80(__file);\n          close(local_38);\n          close(local_2c);\n          if (-1 < local_28) {\n            close(local_24);\n          }\n          puVar2[3] = local_28;\n          puVar2[1] = local_34;\n          puVar2[2] = local_30;\n          goto LAB_00062822;\n        }\n        piVar6 = __errno_location();\n        pcVar5 = strerror(*piVar6);\n        pcVar7 = "fork: %s";\n        goto LAB_00062a70;\n      }\n    }\nLAB_00062a58:\n    piVar6 = __errno_location();\n    pcVar5 = strerror(*piVar6);\n    pcVar7 = "pipe: %s";\n  }" ({ "{") (expression_statement "__file = (char *)FUN_00030750(param_1,param_3,in_stack_00000024);" (assignment_expression "__file = (char *)FUN_00030750(param_1,param_3,in_stack_00000024)" (identifier "__file") (= "=") (cast_expression "(char *)FUN_00030750(param_1,param_3,in_stack_00000024)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00030750(param_1,param_3,in_stack_00000024)" (identifier "FUN_00030750") (argument_list "(param_1,param_3,in_stack_00000024)" (( "(") (identifier "param_1") (, ",") (identifier "param_3") (, ",") (identifier "in_stack_00000024") () ")"))))) (; ";")) (if_statement "if ((DAT_000b127c & 2) == 0) {\n      local_24 = 0;\n      local_28 = 0;\n    }\n    else {\n      local_24 = -1;\n      local_28 = -1;\n    }" (if "if") (parenthesized_expression "((DAT_000b127c & 2) == 0)" (( "(") (binary_expression "(DAT_000b127c & 2) == 0" (parenthesized_expression "(DAT_000b127c & 2)" (( "(") (binary_expression "DAT_000b127c & 2" (identifier "DAT_000b127c") (& "&") (number_literal "2")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      local_24 = 0;\n      local_28 = 0;\n    }" ({ "{") (expression_statement "local_24 = 0;" (assignment_expression "local_24 = 0" (identifier "local_24") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" (identifier "local_28") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n      local_24 = -1;\n      local_28 = -1;\n    }" (else "else") (compound_statement "{\n      local_24 = -1;\n      local_28 = -1;\n    }" ({ "{") (expression_statement "local_24 = -1;" (assignment_expression "local_24 = -1" (identifier "local_24") (= "=") (number_literal "-1")) (; ";")) (expression_statement "local_28 = -1;" (assignment_expression "local_28 = -1" (identifier "local_28") (= "=") (number_literal "-1")) (; ";")) (} "}")))) (expression_statement "uVar4 = FUN_0002d860("Starting local proxy command: %s",__file);" (assignment_expression "uVar4 = FUN_0002d860("Starting local proxy command: %s",__file)" (identifier "uVar4") (= "=") (call_expression "FUN_0002d860("Starting local proxy command: %s",__file)" (identifier "FUN_0002d860") (argument_list "("Starting local proxy command: %s",__file)" (( "(") (string_literal ""Starting local proxy command: %s"" (" """) (string_content "Starting local proxy command: %s") (" """)) (, ",") (identifier "__file") () ")")))) (; ";")) (expression_statement "(**(code **)*in_stack_00000020)(in_stack_00000020,2,0,0,uVar4,0);" (call_expression "(**(code **)*in_stack_00000020)(in_stack_00000020,2,0,0,uVar4,0)" (parenthesized_expression "(**(code **)*in_stack_00000020)" (( "(") (pointer_expression "**(code **)*in_stack_00000020" (* "*") (pointer_expression "*(code **)*in_stack_00000020" (* "*") (cast_expression "(code **)*in_stack_00000020" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (pointer_expression "*in_stack_00000020" (* "*") (identifier "in_stack_00000020"))))) () ")")) (argument_list "(in_stack_00000020,2,0,0,uVar4,0)" (( "(") (identifier "in_stack_00000020") (, ",") (number_literal "2") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (identifier "uVar4") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "FUN_0002da80(uVar4);" (call_expression "FUN_0002da80(uVar4)" (identifier "FUN_0002da80") (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")"))) (; ";")) (expression_statement "iVar1 = pipe(&local_38);" (assignment_expression "iVar1 = pipe(&local_38)" (identifier "iVar1") (= "=") (call_expression "pipe(&local_38)" (identifier "pipe") (argument_list "(&local_38)" (( "(") (pointer_expression "&local_38" (& "&") (identifier "local_38")) () ")")))) (; ";")) (if_statement "if (-1 < iVar1) {\n      iVar1 = pipe(&local_30);\n      if (-1 < iVar1) {\n        if (local_28 == 0) {\n          iVar1 = pipe(&local_28);\n          if (iVar1 < 0) goto LAB_00062a58;\n        }\n        FUN_0005f000(local_34);\n        FUN_0005f000(local_30);\n        if (-1 < local_28) {\n          FUN_0005f000(local_28);\n        }\n        _Var3 = fork();\n        if (-1 < _Var3) {\n          if (_Var3 == 0) {\n            close(0);\n            close(1);\n            dup2(local_38,0);\n            uVar4 = 1;\n            dup2(local_2c,1);\n            close(local_38);\n            pcVar7 = (char *)close(local_2c);\n            if (-1 < local_28) {\n              uVar4 = 2;\n              dup2(local_24,2);\n              close(local_24);\n              in_stack_00000024 = pcVar7;\n            }\n            FUN_0005f090(0,uVar4,in_stack_00000024);\n            FUN_0005f090(1);\n            execl("/bin/sh","sh",&DAT_00085974,__file,0);\n                    \n            _exit(0xff);\n          }\n          FUN_0002da80(__file);\n          close(local_38);\n          close(local_2c);\n          if (-1 < local_28) {\n            close(local_24);\n          }\n          puVar2[3] = local_28;\n          puVar2[1] = local_34;\n          puVar2[2] = local_30;\n          goto LAB_00062822;\n        }\n        piVar6 = __errno_location();\n        pcVar5 = strerror(*piVar6);\n        pcVar7 = "fork: %s";\n        goto LAB_00062a70;\n      }\n    }" (if "if") (parenthesized_expression "(-1 < iVar1)" (( "(") (binary_expression "-1 < iVar1" (number_literal "-1") (< "<") (identifier "iVar1")) () ")")) (compound_statement "{\n      iVar1 = pipe(&local_30);\n      if (-1 < iVar1) {\n        if (local_28 == 0) {\n          iVar1 = pipe(&local_28);\n          if (iVar1 < 0) goto LAB_00062a58;\n        }\n        FUN_0005f000(local_34);\n        FUN_0005f000(local_30);\n        if (-1 < local_28) {\n          FUN_0005f000(local_28);\n        }\n        _Var3 = fork();\n        if (-1 < _Var3) {\n          if (_Var3 == 0) {\n            close(0);\n            close(1);\n            dup2(local_38,0);\n            uVar4 = 1;\n            dup2(local_2c,1);\n            close(local_38);\n            pcVar7 = (char *)close(local_2c);\n            if (-1 < local_28) {\n              uVar4 = 2;\n              dup2(local_24,2);\n              close(local_24);\n              in_stack_00000024 = pcVar7;\n            }\n            FUN_0005f090(0,uVar4,in_stack_00000024);\n            FUN_0005f090(1);\n            execl("/bin/sh","sh",&DAT_00085974,__file,0);\n                    \n            _exit(0xff);\n          }\n          FUN_0002da80(__file);\n          close(local_38);\n          close(local_2c);\n          if (-1 < local_28) {\n            close(local_24);\n          }\n          puVar2[3] = local_28;\n          puVar2[1] = local_34;\n          puVar2[2] = local_30;\n          goto LAB_00062822;\n        }\n        piVar6 = __errno_location();\n        pcVar5 = strerror(*piVar6);\n        pcVar7 = "fork: %s";\n        goto LAB_00062a70;\n      }\n    }" ({ "{") (expression_statement "iVar1 = pipe(&local_30);" (assignment_expression "iVar1 = pipe(&local_30)" (identifier "iVar1") (= "=") (call_expression "pipe(&local_30)" (identifier "pipe") (argument_list "(&local_30)" (( "(") (pointer_expression "&local_30" (& "&") (identifier "local_30")) () ")")))) (; ";")) (if_statement "if (-1 < iVar1) {\n        if (local_28 == 0) {\n          iVar1 = pipe(&local_28);\n          if (iVar1 < 0) goto LAB_00062a58;\n        }\n        FUN_0005f000(local_34);\n        FUN_0005f000(local_30);\n        if (-1 < local_28) {\n          FUN_0005f000(local_28);\n        }\n        _Var3 = fork();\n        if (-1 < _Var3) {\n          if (_Var3 == 0) {\n            close(0);\n            close(1);\n            dup2(local_38,0);\n            uVar4 = 1;\n            dup2(local_2c,1);\n            close(local_38);\n            pcVar7 = (char *)close(local_2c);\n            if (-1 < local_28) {\n              uVar4 = 2;\n              dup2(local_24,2);\n              close(local_24);\n              in_stack_00000024 = pcVar7;\n            }\n            FUN_0005f090(0,uVar4,in_stack_00000024);\n            FUN_0005f090(1);\n            execl("/bin/sh","sh",&DAT_00085974,__file,0);\n                    \n            _exit(0xff);\n          }\n          FUN_0002da80(__file);\n          close(local_38);\n          close(local_2c);\n          if (-1 < local_28) {\n            close(local_24);\n          }\n          puVar2[3] = local_28;\n          puVar2[1] = local_34;\n          puVar2[2] = local_30;\n          goto LAB_00062822;\n        }\n        piVar6 = __errno_location();\n        pcVar5 = strerror(*piVar6);\n        pcVar7 = "fork: %s";\n        goto LAB_00062a70;\n      }" (if "if") (parenthesized_expression "(-1 < iVar1)" (( "(") (binary_expression "-1 < iVar1" (number_literal "-1") (< "<") (identifier "iVar1")) () ")")) (compound_statement "{\n        if (local_28 == 0) {\n          iVar1 = pipe(&local_28);\n          if (iVar1 < 0) goto LAB_00062a58;\n        }\n        FUN_0005f000(local_34);\n        FUN_0005f000(local_30);\n        if (-1 < local_28) {\n          FUN_0005f000(local_28);\n        }\n        _Var3 = fork();\n        if (-1 < _Var3) {\n          if (_Var3 == 0) {\n            close(0);\n            close(1);\n            dup2(local_38,0);\n            uVar4 = 1;\n            dup2(local_2c,1);\n            close(local_38);\n            pcVar7 = (char *)close(local_2c);\n            if (-1 < local_28) {\n              uVar4 = 2;\n              dup2(local_24,2);\n              close(local_24);\n              in_stack_00000024 = pcVar7;\n            }\n            FUN_0005f090(0,uVar4,in_stack_00000024);\n            FUN_0005f090(1);\n            execl("/bin/sh","sh",&DAT_00085974,__file,0);\n                    \n            _exit(0xff);\n          }\n          FUN_0002da80(__file);\n          close(local_38);\n          close(local_2c);\n          if (-1 < local_28) {\n            close(local_24);\n          }\n          puVar2[3] = local_28;\n          puVar2[1] = local_34;\n          puVar2[2] = local_30;\n          goto LAB_00062822;\n        }\n        piVar6 = __errno_location();\n        pcVar5 = strerror(*piVar6);\n        pcVar7 = "fork: %s";\n        goto LAB_00062a70;\n      }" ({ "{") (if_statement "if (local_28 == 0) {\n          iVar1 = pipe(&local_28);\n          if (iVar1 < 0) goto LAB_00062a58;\n        }" (if "if") (parenthesized_expression "(local_28 == 0)" (( "(") (binary_expression "local_28 == 0" (identifier "local_28") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          iVar1 = pipe(&local_28);\n          if (iVar1 < 0) goto LAB_00062a58;\n        }" ({ "{") (expression_statement "iVar1 = pipe(&local_28);" (assignment_expression "iVar1 = pipe(&local_28)" (identifier "iVar1") (= "=") (call_expression "pipe(&local_28)" (identifier "pipe") (argument_list "(&local_28)" (( "(") (pointer_expression "&local_28" (& "&") (identifier "local_28")) () ")")))) (; ";")) (if_statement "if (iVar1 < 0) goto LAB_00062a58;" (if "if") (parenthesized_expression "(iVar1 < 0)" (( "(") (binary_expression "iVar1 < 0" (identifier "iVar1") (< "<") (number_literal "0")) () ")")) (goto_statement "goto LAB_00062a58;" (goto "goto") (statement_identifier "LAB_00062a58") (; ";"))) (} "}"))) (expression_statement "FUN_0005f000(local_34);" (call_expression "FUN_0005f000(local_34)" (identifier "FUN_0005f000") (argument_list "(local_34)" (( "(") (identifier "local_34") () ")"))) (; ";")) (expression_statement "FUN_0005f000(local_30);" (call_expression "FUN_0005f000(local_30)" (identifier "FUN_0005f000") (argument_list "(local_30)" (( "(") (identifier "local_30") () ")"))) (; ";")) (if_statement "if (-1 < local_28) {\n          FUN_0005f000(local_28);\n        }" (if "if") (parenthesized_expression "(-1 < local_28)" (( "(") (binary_expression "-1 < local_28" (number_literal "-1") (< "<") (identifier "local_28")) () ")")) (compound_statement "{\n          FUN_0005f000(local_28);\n        }" ({ "{") (expression_statement "FUN_0005f000(local_28);" (call_expression "FUN_0005f000(local_28)" (identifier "FUN_0005f000") (argument_list "(local_28)" (( "(") (identifier "local_28") () ")"))) (; ";")) (} "}"))) (expression_statement "_Var3 = fork();" (assignment_expression "_Var3 = fork()" (identifier "_Var3") (= "=") (call_expression "fork()" (identifier "fork") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (-1 < _Var3) {\n          if (_Var3 == 0) {\n            close(0);\n            close(1);\n            dup2(local_38,0);\n            uVar4 = 1;\n            dup2(local_2c,1);\n            close(local_38);\n            pcVar7 = (char *)close(local_2c);\n            if (-1 < local_28) {\n              uVar4 = 2;\n              dup2(local_24,2);\n              close(local_24);\n              in_stack_00000024 = pcVar7;\n            }\n            FUN_0005f090(0,uVar4,in_stack_00000024);\n            FUN_0005f090(1);\n            execl("/bin/sh","sh",&DAT_00085974,__file,0);\n                    \n            _exit(0xff);\n          }\n          FUN_0002da80(__file);\n          close(local_38);\n          close(local_2c);\n          if (-1 < local_28) {\n            close(local_24);\n          }\n          puVar2[3] = local_28;\n          puVar2[1] = local_34;\n          puVar2[2] = local_30;\n          goto LAB_00062822;\n        }" (if "if") (parenthesized_expression "(-1 < _Var3)" (( "(") (binary_expression "-1 < _Var3" (number_literal "-1") (< "<") (identifier "_Var3")) () ")")) (compound_statement "{\n          if (_Var3 == 0) {\n            close(0);\n            close(1);\n            dup2(local_38,0);\n            uVar4 = 1;\n            dup2(local_2c,1);\n            close(local_38);\n            pcVar7 = (char *)close(local_2c);\n            if (-1 < local_28) {\n              uVar4 = 2;\n              dup2(local_24,2);\n              close(local_24);\n              in_stack_00000024 = pcVar7;\n            }\n            FUN_0005f090(0,uVar4,in_stack_00000024);\n            FUN_0005f090(1);\n            execl("/bin/sh","sh",&DAT_00085974,__file,0);\n                    \n            _exit(0xff);\n          }\n          FUN_0002da80(__file);\n          close(local_38);\n          close(local_2c);\n          if (-1 < local_28) {\n            close(local_24);\n          }\n          puVar2[3] = local_28;\n          puVar2[1] = local_34;\n          puVar2[2] = local_30;\n          goto LAB_00062822;\n        }" ({ "{") (if_statement "if (_Var3 == 0) {\n            close(0);\n            close(1);\n            dup2(local_38,0);\n            uVar4 = 1;\n            dup2(local_2c,1);\n            close(local_38);\n            pcVar7 = (char *)close(local_2c);\n            if (-1 < local_28) {\n              uVar4 = 2;\n              dup2(local_24,2);\n              close(local_24);\n              in_stack_00000024 = pcVar7;\n            }\n            FUN_0005f090(0,uVar4,in_stack_00000024);\n            FUN_0005f090(1);\n            execl("/bin/sh","sh",&DAT_00085974,__file,0);\n                    \n            _exit(0xff);\n          }" (if "if") (parenthesized_expression "(_Var3 == 0)" (( "(") (binary_expression "_Var3 == 0" (identifier "_Var3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            close(0);\n            close(1);\n            dup2(local_38,0);\n            uVar4 = 1;\n            dup2(local_2c,1);\n            close(local_38);\n            pcVar7 = (char *)close(local_2c);\n            if (-1 < local_28) {\n              uVar4 = 2;\n              dup2(local_24,2);\n              close(local_24);\n              in_stack_00000024 = pcVar7;\n            }\n            FUN_0005f090(0,uVar4,in_stack_00000024);\n            FUN_0005f090(1);\n            execl("/bin/sh","sh",&DAT_00085974,__file,0);\n                    \n            _exit(0xff);\n          }" ({ "{") (expression_statement "close(0);" (call_expression "close(0)" (identifier "close") (argument_list "(0)" (( "(") (number_literal "0") () ")"))) (; ";")) (expression_statement "close(1);" (call_expression "close(1)" (identifier "close") (argument_list "(1)" (( "(") (number_literal "1") () ")"))) (; ";")) (expression_statement "dup2(local_38,0);" (call_expression "dup2(local_38,0)" (identifier "dup2") (argument_list "(local_38,0)" (( "(") (identifier "local_38") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "uVar4 = 1;" (assignment_expression "uVar4 = 1" (identifier "uVar4") (= "=") (number_literal "1")) (; ";")) (expression_statement "dup2(local_2c,1);" (call_expression "dup2(local_2c,1)" (identifier "dup2") (argument_list "(local_2c,1)" (( "(") (identifier "local_2c") (, ",") (number_literal "1") () ")"))) (; ";")) (expression_statement "close(local_38);" (call_expression "close(local_38)" (identifier "close") (argument_list "(local_38)" (( "(") (identifier "local_38") () ")"))) (; ";")) (expression_statement "pcVar7 = (char *)close(local_2c);" (assignment_expression "pcVar7 = (char *)close(local_2c)" (identifier "pcVar7") (= "=") (cast_expression "(char *)close(local_2c)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "close(local_2c)" (identifier "close") (argument_list "(local_2c)" (( "(") (identifier "local_2c") () ")"))))) (; ";")) (if_statement "if (-1 < local_28) {\n              uVar4 = 2;\n              dup2(local_24,2);\n              close(local_24);\n              in_stack_00000024 = pcVar7;\n            }" (if "if") (parenthesized_expression "(-1 < local_28)" (( "(") (binary_expression "-1 < local_28" (number_literal "-1") (< "<") (identifier "local_28")) () ")")) (compound_statement "{\n              uVar4 = 2;\n              dup2(local_24,2);\n              close(local_24);\n              in_stack_00000024 = pcVar7;\n            }" ({ "{") (expression_statement "uVar4 = 2;" (assignment_expression "uVar4 = 2" (identifier "uVar4") (= "=") (number_literal "2")) (; ";")) (expression_statement "dup2(local_24,2);" (call_expression "dup2(local_24,2)" (identifier "dup2") (argument_list "(local_24,2)" (( "(") (identifier "local_24") (, ",") (number_literal "2") () ")"))) (; ";")) (expression_statement "close(local_24);" (call_expression "close(local_24)" (identifier "close") (argument_list "(local_24)" (( "(") (identifier "local_24") () ")"))) (; ";")) (expression_statement "in_stack_00000024 = pcVar7;" (assignment_expression "in_stack_00000024 = pcVar7" (identifier "in_stack_00000024") (= "=") (identifier "pcVar7")) (; ";")) (} "}"))) (expression_statement "FUN_0005f090(0,uVar4,in_stack_00000024);" (call_expression "FUN_0005f090(0,uVar4,in_stack_00000024)" (identifier "FUN_0005f090") (argument_list "(0,uVar4,in_stack_00000024)" (( "(") (number_literal "0") (, ",") (identifier "uVar4") (, ",") (identifier "in_stack_00000024") () ")"))) (; ";")) (expression_statement "FUN_0005f090(1);" (call_expression "FUN_0005f090(1)" (identifier "FUN_0005f090") (argument_list "(1)" (( "(") (number_literal "1") () ")"))) (; ";")) (expression_statement "execl("/bin/sh","sh",&DAT_00085974,__file,0);" (call_expression "execl("/bin/sh","sh",&DAT_00085974,__file,0)" (identifier "execl") (argument_list "("/bin/sh","sh",&DAT_00085974,__file,0)" (( "(") (string_literal ""/bin/sh"" (" """) (string_content "/bin/sh") (" """)) (, ",") (string_literal ""sh"" (" """) (string_content "sh") (" """)) (, ",") (pointer_expression "&DAT_00085974" (& "&") (identifier "DAT_00085974")) (, ",") (identifier "__file") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "_exit(0xff);" (call_expression "_exit(0xff)" (identifier "_exit") (argument_list "(0xff)" (( "(") (number_literal "0xff") () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_0002da80(__file);" (call_expression "FUN_0002da80(__file)" (identifier "FUN_0002da80") (argument_list "(__file)" (( "(") (identifier "__file") () ")"))) (; ";")) (expression_statement "close(local_38);" (call_expression "close(local_38)" (identifier "close") (argument_list "(local_38)" (( "(") (identifier "local_38") () ")"))) (; ";")) (expression_statement "close(local_2c);" (call_expression "close(local_2c)" (identifier "close") (argument_list "(local_2c)" (( "(") (identifier "local_2c") () ")"))) (; ";")) (if_statement "if (-1 < local_28) {\n            close(local_24);\n          }" (if "if") (parenthesized_expression "(-1 < local_28)" (( "(") (binary_expression "-1 < local_28" (number_literal "-1") (< "<") (identifier "local_28")) () ")")) (compound_statement "{\n            close(local_24);\n          }" ({ "{") (expression_statement "close(local_24);" (call_expression "close(local_24)" (identifier "close") (argument_list "(local_24)" (( "(") (identifier "local_24") () ")"))) (; ";")) (} "}"))) (expression_statement "puVar2[3] = local_28;" (assignment_expression "puVar2[3] = local_28" (subscript_expression "puVar2[3]" (identifier "puVar2") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "local_28")) (; ";")) (expression_statement "puVar2[1] = local_34;" (assignment_expression "puVar2[1] = local_34" (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "local_34")) (; ";")) (expression_statement "puVar2[2] = local_30;" (assignment_expression "puVar2[2] = local_30" (subscript_expression "puVar2[2]" (identifier "puVar2") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "local_30")) (; ";")) (goto_statement "goto LAB_00062822;" (goto "goto") (statement_identifier "LAB_00062822") (; ";")) (} "}"))) (expression_statement "piVar6 = __errno_location();" (assignment_expression "piVar6 = __errno_location()" (identifier "piVar6") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "pcVar5 = strerror(*piVar6);" (assignment_expression "pcVar5 = strerror(*piVar6)" (identifier "pcVar5") (= "=") (call_expression "strerror(*piVar6)" (identifier "strerror") (argument_list "(*piVar6)" (( "(") (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) () ")")))) (; ";")) (expression_statement "pcVar7 = "fork: %s";" (assignment_expression "pcVar7 = "fork: %s"" (identifier "pcVar7") (= "=") (string_literal ""fork: %s"" (" """) (string_content "fork: %s") (" """))) (; ";")) (goto_statement "goto LAB_00062a70;" (goto "goto") (statement_identifier "LAB_00062a70") (; ";")) (} "}"))) (} "}"))) (labeled_statement "LAB_00062a58:\n    piVar6 = __errno_location();" (statement_identifier "LAB_00062a58") (: ":") (expression_statement "piVar6 = __errno_location();" (assignment_expression "piVar6 = __errno_location()" (identifier "piVar6") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";"))) (expression_statement "pcVar5 = strerror(*piVar6);" (assignment_expression "pcVar5 = strerror(*piVar6)" (identifier "pcVar5") (= "=") (call_expression "strerror(*piVar6)" (identifier "strerror") (argument_list "(*piVar6)" (( "(") (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) () ")")))) (; ";")) (expression_statement "pcVar7 = "pipe: %s";" (assignment_expression "pcVar7 = "pipe: %s"" (identifier "pcVar7") (= "=") (string_literal ""pipe: %s"" (" """) (string_content "pipe: %s") (" """))) (; ";")) (} "}")) (else_clause "else {\n    __file = (char *)FUN_00030750(param_1,param_3,in_stack_00000024);\n    iVar1 = open64("/dev/null",1);\n    puVar2[1] = iVar1;\n    if (iVar1 == -1) {\n      piVar6 = __errno_location();\n      pcVar5 = strerror(*piVar6);\n      pcVar7 = "/dev/null: %s";\n    }\n    else {\n      iVar1 = open64(__file,0);\n      puVar2[2] = iVar1;\n      if (iVar1 != -1) {\n        FUN_0002da80(__file);\n        puVar2[3] = 0xffffffff;\nLAB_00062822:\n        if (DAT_000b1254 == 0) {\n          DAT_000b1254 = FUN_00047680(FUN_000620b0);\n        }\n        if (DAT_000b1250 == 0) {\n          DAT_000b1250 = FUN_00047680(FUN_000620f0);\n        }\n        if (DAT_000b124c == 0) {\n          DAT_000b124c = FUN_00047680(FUN_00062130);\n        }\n        FUN_00047700(DAT_000b1254,puVar2);\n        FUN_00047700(DAT_000b1250,puVar2);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00047700(DAT_000b124c,puVar2);\n        }\n        FUN_00063070(puVar2[2],1,FUN_00062320);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00063070(puVar2[3],1,FUN_00062320);\n        }\n        FUN_00060670(param_1);\n        goto LAB_000628a8;\n      }\n      piVar6 = __errno_location();\n      in_stack_00000024 = strerror(*piVar6);\n      pcVar7 = "%s: %s";\n      pcVar5 = __file;\n    }\n  }" (else "else") (compound_statement "{\n    __file = (char *)FUN_00030750(param_1,param_3,in_stack_00000024);\n    iVar1 = open64("/dev/null",1);\n    puVar2[1] = iVar1;\n    if (iVar1 == -1) {\n      piVar6 = __errno_location();\n      pcVar5 = strerror(*piVar6);\n      pcVar7 = "/dev/null: %s";\n    }\n    else {\n      iVar1 = open64(__file,0);\n      puVar2[2] = iVar1;\n      if (iVar1 != -1) {\n        FUN_0002da80(__file);\n        puVar2[3] = 0xffffffff;\nLAB_00062822:\n        if (DAT_000b1254 == 0) {\n          DAT_000b1254 = FUN_00047680(FUN_000620b0);\n        }\n        if (DAT_000b1250 == 0) {\n          DAT_000b1250 = FUN_00047680(FUN_000620f0);\n        }\n        if (DAT_000b124c == 0) {\n          DAT_000b124c = FUN_00047680(FUN_00062130);\n        }\n        FUN_00047700(DAT_000b1254,puVar2);\n        FUN_00047700(DAT_000b1250,puVar2);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00047700(DAT_000b124c,puVar2);\n        }\n        FUN_00063070(puVar2[2],1,FUN_00062320);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00063070(puVar2[3],1,FUN_00062320);\n        }\n        FUN_00060670(param_1);\n        goto LAB_000628a8;\n      }\n      piVar6 = __errno_location();\n      in_stack_00000024 = strerror(*piVar6);\n      pcVar7 = "%s: %s";\n      pcVar5 = __file;\n    }\n  }" ({ "{") (expression_statement "__file = (char *)FUN_00030750(param_1,param_3,in_stack_00000024);" (assignment_expression "__file = (char *)FUN_00030750(param_1,param_3,in_stack_00000024)" (identifier "__file") (= "=") (cast_expression "(char *)FUN_00030750(param_1,param_3,in_stack_00000024)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00030750(param_1,param_3,in_stack_00000024)" (identifier "FUN_00030750") (argument_list "(param_1,param_3,in_stack_00000024)" (( "(") (identifier "param_1") (, ",") (identifier "param_3") (, ",") (identifier "in_stack_00000024") () ")"))))) (; ";")) (expression_statement "iVar1 = open64("/dev/null",1);" (assignment_expression "iVar1 = open64("/dev/null",1)" (identifier "iVar1") (= "=") (call_expression "open64("/dev/null",1)" (identifier "open64") (argument_list "("/dev/null",1)" (( "(") (string_literal ""/dev/null"" (" """) (string_content "/dev/null") (" """)) (, ",") (number_literal "1") () ")")))) (; ";")) (expression_statement "puVar2[1] = iVar1;" (assignment_expression "puVar2[1] = iVar1" (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar1")) (; ";")) (if_statement "if (iVar1 == -1) {\n      piVar6 = __errno_location();\n      pcVar5 = strerror(*piVar6);\n      pcVar7 = "/dev/null: %s";\n    }\n    else {\n      iVar1 = open64(__file,0);\n      puVar2[2] = iVar1;\n      if (iVar1 != -1) {\n        FUN_0002da80(__file);\n        puVar2[3] = 0xffffffff;\nLAB_00062822:\n        if (DAT_000b1254 == 0) {\n          DAT_000b1254 = FUN_00047680(FUN_000620b0);\n        }\n        if (DAT_000b1250 == 0) {\n          DAT_000b1250 = FUN_00047680(FUN_000620f0);\n        }\n        if (DAT_000b124c == 0) {\n          DAT_000b124c = FUN_00047680(FUN_00062130);\n        }\n        FUN_00047700(DAT_000b1254,puVar2);\n        FUN_00047700(DAT_000b1250,puVar2);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00047700(DAT_000b124c,puVar2);\n        }\n        FUN_00063070(puVar2[2],1,FUN_00062320);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00063070(puVar2[3],1,FUN_00062320);\n        }\n        FUN_00060670(param_1);\n        goto LAB_000628a8;\n      }\n      piVar6 = __errno_location();\n      in_stack_00000024 = strerror(*piVar6);\n      pcVar7 = "%s: %s";\n      pcVar5 = __file;\n    }" (if "if") (parenthesized_expression "(iVar1 == -1)" (( "(") (binary_expression "iVar1 == -1" (identifier "iVar1") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n      piVar6 = __errno_location();\n      pcVar5 = strerror(*piVar6);\n      pcVar7 = "/dev/null: %s";\n    }" ({ "{") (expression_statement "piVar6 = __errno_location();" (assignment_expression "piVar6 = __errno_location()" (identifier "piVar6") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "pcVar5 = strerror(*piVar6);" (assignment_expression "pcVar5 = strerror(*piVar6)" (identifier "pcVar5") (= "=") (call_expression "strerror(*piVar6)" (identifier "strerror") (argument_list "(*piVar6)" (( "(") (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) () ")")))) (; ";")) (expression_statement "pcVar7 = "/dev/null: %s";" (assignment_expression "pcVar7 = "/dev/null: %s"" (identifier "pcVar7") (= "=") (string_literal ""/dev/null: %s"" (" """) (string_content "/dev/null: %s") (" """))) (; ";")) (} "}")) (else_clause "else {\n      iVar1 = open64(__file,0);\n      puVar2[2] = iVar1;\n      if (iVar1 != -1) {\n        FUN_0002da80(__file);\n        puVar2[3] = 0xffffffff;\nLAB_00062822:\n        if (DAT_000b1254 == 0) {\n          DAT_000b1254 = FUN_00047680(FUN_000620b0);\n        }\n        if (DAT_000b1250 == 0) {\n          DAT_000b1250 = FUN_00047680(FUN_000620f0);\n        }\n        if (DAT_000b124c == 0) {\n          DAT_000b124c = FUN_00047680(FUN_00062130);\n        }\n        FUN_00047700(DAT_000b1254,puVar2);\n        FUN_00047700(DAT_000b1250,puVar2);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00047700(DAT_000b124c,puVar2);\n        }\n        FUN_00063070(puVar2[2],1,FUN_00062320);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00063070(puVar2[3],1,FUN_00062320);\n        }\n        FUN_00060670(param_1);\n        goto LAB_000628a8;\n      }\n      piVar6 = __errno_location();\n      in_stack_00000024 = strerror(*piVar6);\n      pcVar7 = "%s: %s";\n      pcVar5 = __file;\n    }" (else "else") (compound_statement "{\n      iVar1 = open64(__file,0);\n      puVar2[2] = iVar1;\n      if (iVar1 != -1) {\n        FUN_0002da80(__file);\n        puVar2[3] = 0xffffffff;\nLAB_00062822:\n        if (DAT_000b1254 == 0) {\n          DAT_000b1254 = FUN_00047680(FUN_000620b0);\n        }\n        if (DAT_000b1250 == 0) {\n          DAT_000b1250 = FUN_00047680(FUN_000620f0);\n        }\n        if (DAT_000b124c == 0) {\n          DAT_000b124c = FUN_00047680(FUN_00062130);\n        }\n        FUN_00047700(DAT_000b1254,puVar2);\n        FUN_00047700(DAT_000b1250,puVar2);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00047700(DAT_000b124c,puVar2);\n        }\n        FUN_00063070(puVar2[2],1,FUN_00062320);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00063070(puVar2[3],1,FUN_00062320);\n        }\n        FUN_00060670(param_1);\n        goto LAB_000628a8;\n      }\n      piVar6 = __errno_location();\n      in_stack_00000024 = strerror(*piVar6);\n      pcVar7 = "%s: %s";\n      pcVar5 = __file;\n    }" ({ "{") (expression_statement "iVar1 = open64(__file,0);" (assignment_expression "iVar1 = open64(__file,0)" (identifier "iVar1") (= "=") (call_expression "open64(__file,0)" (identifier "open64") (argument_list "(__file,0)" (( "(") (identifier "__file") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "puVar2[2] = iVar1;" (assignment_expression "puVar2[2] = iVar1" (subscript_expression "puVar2[2]" (identifier "puVar2") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "iVar1")) (; ";")) (if_statement "if (iVar1 != -1) {\n        FUN_0002da80(__file);\n        puVar2[3] = 0xffffffff;\nLAB_00062822:\n        if (DAT_000b1254 == 0) {\n          DAT_000b1254 = FUN_00047680(FUN_000620b0);\n        }\n        if (DAT_000b1250 == 0) {\n          DAT_000b1250 = FUN_00047680(FUN_000620f0);\n        }\n        if (DAT_000b124c == 0) {\n          DAT_000b124c = FUN_00047680(FUN_00062130);\n        }\n        FUN_00047700(DAT_000b1254,puVar2);\n        FUN_00047700(DAT_000b1250,puVar2);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00047700(DAT_000b124c,puVar2);\n        }\n        FUN_00063070(puVar2[2],1,FUN_00062320);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00063070(puVar2[3],1,FUN_00062320);\n        }\n        FUN_00060670(param_1);\n        goto LAB_000628a8;\n      }" (if "if") (parenthesized_expression "(iVar1 != -1)" (( "(") (binary_expression "iVar1 != -1" (identifier "iVar1") (!= "!=") (number_literal "-1")) () ")")) (compound_statement "{\n        FUN_0002da80(__file);\n        puVar2[3] = 0xffffffff;\nLAB_00062822:\n        if (DAT_000b1254 == 0) {\n          DAT_000b1254 = FUN_00047680(FUN_000620b0);\n        }\n        if (DAT_000b1250 == 0) {\n          DAT_000b1250 = FUN_00047680(FUN_000620f0);\n        }\n        if (DAT_000b124c == 0) {\n          DAT_000b124c = FUN_00047680(FUN_00062130);\n        }\n        FUN_00047700(DAT_000b1254,puVar2);\n        FUN_00047700(DAT_000b1250,puVar2);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00047700(DAT_000b124c,puVar2);\n        }\n        FUN_00063070(puVar2[2],1,FUN_00062320);\n        if (-1 < (int)puVar2[3]) {\n          FUN_00063070(puVar2[3],1,FUN_00062320);\n        }\n        FUN_00060670(param_1);\n        goto LAB_000628a8;\n      }" ({ "{") (expression_statement "FUN_0002da80(__file);" (call_expression "FUN_0002da80(__file)" (identifier "FUN_0002da80") (argument_list "(__file)" (( "(") (identifier "__file") () ")"))) (; ";")) (expression_statement "puVar2[3] = 0xffffffff;" (assignment_expression "puVar2[3] = 0xffffffff" (subscript_expression "puVar2[3]" (identifier "puVar2") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0xffffffff")) (; ";")) (labeled_statement "LAB_00062822:\n        if (DAT_000b1254 == 0) {\n          DAT_000b1254 = FUN_00047680(FUN_000620b0);\n        }" (statement_identifier "LAB_00062822") (: ":") (if_statement "if (DAT_000b1254 == 0) {\n          DAT_000b1254 = FUN_00047680(FUN_000620b0);\n        }" (if "if") (parenthesized_expression "(DAT_000b1254 == 0)" (( "(") (binary_expression "DAT_000b1254 == 0" (identifier "DAT_000b1254") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          DAT_000b1254 = FUN_00047680(FUN_000620b0);\n        }" ({ "{") (expression_statement "DAT_000b1254 = FUN_00047680(FUN_000620b0);" (assignment_expression "DAT_000b1254 = FUN_00047680(FUN_000620b0)" (identifier "DAT_000b1254") (= "=") (call_expression "FUN_00047680(FUN_000620b0)" (identifier "FUN_00047680") (argument_list "(FUN_000620b0)" (( "(") (identifier "FUN_000620b0") () ")")))) (; ";")) (} "}")))) (if_statement "if (DAT_000b1250 == 0) {\n          DAT_000b1250 = FUN_00047680(FUN_000620f0);\n        }" (if "if") (parenthesized_expression "(DAT_000b1250 == 0)" (( "(") (binary_expression "DAT_000b1250 == 0" (identifier "DAT_000b1250") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          DAT_000b1250 = FUN_00047680(FUN_000620f0);\n        }" ({ "{") (expression_statement "DAT_000b1250 = FUN_00047680(FUN_000620f0);" (assignment_expression "DAT_000b1250 = FUN_00047680(FUN_000620f0)" (identifier "DAT_000b1250") (= "=") (call_expression "FUN_00047680(FUN_000620f0)" (identifier "FUN_00047680") (argument_list "(FUN_000620f0)" (( "(") (identifier "FUN_000620f0") () ")")))) (; ";")) (} "}"))) (if_statement "if (DAT_000b124c == 0) {\n          DAT_000b124c = FUN_00047680(FUN_00062130);\n        }" (if "if") (parenthesized_expression "(DAT_000b124c == 0)" (( "(") (binary_expression "DAT_000b124c == 0" (identifier "DAT_000b124c") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          DAT_000b124c = FUN_00047680(FUN_00062130);\n        }" ({ "{") (expression_statement "DAT_000b124c = FUN_00047680(FUN_00062130);" (assignment_expression "DAT_000b124c = FUN_00047680(FUN_00062130)" (identifier "DAT_000b124c") (= "=") (call_expression "FUN_00047680(FUN_00062130)" (identifier "FUN_00047680") (argument_list "(FUN_00062130)" (( "(") (identifier "FUN_00062130") () ")")))) (; ";")) (} "}"))) (expression_statement "FUN_00047700(DAT_000b1254,puVar2);" (call_expression "FUN_00047700(DAT_000b1254,puVar2)" (identifier "FUN_00047700") (argument_list "(DAT_000b1254,puVar2)" (( "(") (identifier "DAT_000b1254") (, ",") (identifier "puVar2") () ")"))) (; ";")) (expression_statement "FUN_00047700(DAT_000b1250,puVar2);" (call_expression "FUN_00047700(DAT_000b1250,puVar2)" (identifier "FUN_00047700") (argument_list "(DAT_000b1250,puVar2)" (( "(") (identifier "DAT_000b1250") (, ",") (identifier "puVar2") () ")"))) (; ";")) (if_statement "if (-1 < (int)puVar2[3]) {\n          FUN_00047700(DAT_000b124c,puVar2);\n        }" (if "if") (parenthesized_expression "(-1 < (int)puVar2[3])" (( "(") (binary_expression "-1 < (int)puVar2[3]" (number_literal "-1") (< "<") (cast_expression "(int)puVar2[3]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "puVar2[3]" (identifier "puVar2") ([ "[") (number_literal "3") (] "]")))) () ")")) (compound_statement "{\n          FUN_00047700(DAT_000b124c,puVar2);\n        }" ({ "{") (expression_statement "FUN_00047700(DAT_000b124c,puVar2);" (call_expression "FUN_00047700(DAT_000b124c,puVar2)" (identifier "FUN_00047700") (argument_list "(DAT_000b124c,puVar2)" (( "(") (identifier "DAT_000b124c") (, ",") (identifier "puVar2") () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_00063070(puVar2[2],1,FUN_00062320);" (call_expression "FUN_00063070(puVar2[2],1,FUN_00062320)" (identifier "FUN_00063070") (argument_list "(puVar2[2],1,FUN_00062320)" (( "(") (subscript_expression "puVar2[2]" (identifier "puVar2") ([ "[") (number_literal "2") (] "]")) (, ",") (number_literal "1") (, ",") (identifier "FUN_00062320") () ")"))) (; ";")) (if_statement "if (-1 < (int)puVar2[3]) {\n          FUN_00063070(puVar2[3],1,FUN_00062320);\n        }" (if "if") (parenthesized_expression "(-1 < (int)puVar2[3])" (( "(") (binary_expression "-1 < (int)puVar2[3]" (number_literal "-1") (< "<") (cast_expression "(int)puVar2[3]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "puVar2[3]" (identifier "puVar2") ([ "[") (number_literal "3") (] "]")))) () ")")) (compound_statement "{\n          FUN_00063070(puVar2[3],1,FUN_00062320);\n        }" ({ "{") (expression_statement "FUN_00063070(puVar2[3],1,FUN_00062320);" (call_expression "FUN_00063070(puVar2[3],1,FUN_00062320)" (identifier "FUN_00063070") (argument_list "(puVar2[3],1,FUN_00062320)" (( "(") (subscript_expression "puVar2[3]" (identifier "puVar2") ([ "[") (number_literal "3") (] "]")) (, ",") (number_literal "1") (, ",") (identifier "FUN_00062320") () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_00060670(param_1);" (call_expression "FUN_00060670(param_1)" (identifier "FUN_00060670") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (goto_statement "goto LAB_000628a8;" (goto "goto") (statement_identifier "LAB_000628a8") (; ";")) (} "}"))) (expression_statement "piVar6 = __errno_location();" (assignment_expression "piVar6 = __errno_location()" (identifier "piVar6") (= "=") (call_expression "__errno_location()" (identifier "__errno_location") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "in_stack_00000024 = strerror(*piVar6);" (assignment_expression "in_stack_00000024 = strerror(*piVar6)" (identifier "in_stack_00000024") (= "=") (call_expression "strerror(*piVar6)" (identifier "strerror") (argument_list "(*piVar6)" (( "(") (pointer_expression "*piVar6" (* "*") (identifier "piVar6")) () ")")))) (; ";")) (expression_statement "pcVar7 = "%s: %s";" (assignment_expression "pcVar7 = "%s: %s"" (identifier "pcVar7") (= "=") (string_literal ""%s: %s"" (" """) (string_content "%s: %s") (" """))) (; ";")) (expression_statement "pcVar5 = __file;" (assignment_expression "pcVar5 = __file" (identifier "pcVar5") (= "=") (identifier "__file")) (; ";")) (} "}")))) (} "}")))) (labeled_statement "LAB_00062a70:\n  uVar4 = FUN_0002d860(pcVar7,pcVar5,in_stack_00000024);" (statement_identifier "LAB_00062a70") (: ":") (expression_statement "uVar4 = FUN_0002d860(pcVar7,pcVar5,in_stack_00000024);" (assignment_expression "uVar4 = FUN_0002d860(pcVar7,pcVar5,in_stack_00000024)" (identifier "uVar4") (= "=") (call_expression "FUN_0002d860(pcVar7,pcVar5,in_stack_00000024)" (identifier "FUN_0002d860") (argument_list "(pcVar7,pcVar5,in_stack_00000024)" (( "(") (identifier "pcVar7") (, ",") (identifier "pcVar5") (, ",") (identifier "in_stack_00000024") () ")")))) (; ";"))) (expression_statement "puVar2[4] = uVar4;" (assignment_expression "puVar2[4] = uVar4" (subscript_expression "puVar2[4]" (identifier "puVar2") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "uVar4")) (; ";")) (expression_statement "FUN_0002da80(__file);" (call_expression "FUN_0002da80(__file)" (identifier "FUN_0002da80") (argument_list "(__file)" (( "(") (identifier "__file") () ")"))) (; ";")) (labeled_statement "LAB_000628a8:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar2;\n  }" (statement_identifier "LAB_000628a8") (: ":") (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return puVar2;\n  }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return puVar2;\n  }" ({ "{") (return_statement "return puVar2;" (return "return") (identifier "puVar2") (; ";")) (} "}")))) (expression_statement "FUN_00066390();" (call_expression "FUN_00066390()" (identifier "FUN_00066390") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

type_1 function_1
                 (type_2 addr,char *hostname,int port,int privport,int oobinline,int nodelay,
                 int keepalive,type_3 plug,type_4 *conf)

{
  int var_30;
  int var_3;
  type_1 var_6;
  char *__file;
  type_5 *var_22;
  char *pcVar4;
  type_6 var_13;
  char *pcVar6;
  int *piVar7;
  int var_1;
  int to_cmd_pipe [2];
  int from_cmd_pipe [2];
  int cmd_err_pipe [2];
  
  var_30 = *(int *)(var_1 + 0x14);
  var_3 = var_2(conf,0xd);
  if (1 < var_3 - 5U) {
    var_6 = (type_1)0x0;
    goto LAB_000628a8;
  }
  var_6 = (type_1)var_4(1,0x40);
  *var_6 = &function_1::socket_fn_table;
  var_6[5] = (type_5 *)plug;
  var_6[4] = (type_5 *)0x0;
  var_6[0xf] = (type_5 *)0x0;
  var_5((type_7 *)(var_6 + 9));
  var_5((type_7 *)(var_6 + 6));
  var_5((type_7 *)(var_6 + 0xc));
  if (var_3 == 5) {
    __file = var_7(addr,port,conf);
    if (((type_8)flags & 2) == 0) {
      cmd_err_pipe[1] = 0;
      cmd_err_pipe[0] = 0;
    }
    else {
      cmd_err_pipe[1] = -1;
      cmd_err_pipe[0] = -1;
    }
    pcVar4 = var_8("Starting local proxy command: %s",__file);
    (*(*plug)->log)(plug,2,(type_2)0x0,0,pcVar4,0);
    var_9(pcVar4);
    var_3 = var_10(to_cmd_pipe);
    if (-1 < var_3) {
      var_3 = var_10(from_cmd_pipe);
      if (-1 < var_3) {
        if (cmd_err_pipe[0] == 0) {
          var_3 = var_10(cmd_err_pipe);
          if (var_3 < 0) goto LAB_00062a58;
        }
        var_11(to_cmd_pipe[1]);
        var_11(from_cmd_pipe[0]);
        if (-1 < cmd_err_pipe[0]) {
          var_11(cmd_err_pipe[0]);
        }
        var_13 = var_12();
        if (-1 < var_13) {
          if (var_13 == 0) {
            var_14(0);
            var_14(1);
            var_15(to_cmd_pipe[0],0);
            var_15(from_cmd_pipe[1],1);
            var_14(to_cmd_pipe[0]);
            var_14(from_cmd_pipe[1]);
            if (-1 < cmd_err_pipe[0]) {
              var_15(cmd_err_pipe[1],2);
              var_14(cmd_err_pipe[1]);
            }
            var_16(0);
            var_16(1);
            var_17("/bin/sh","sh",&DAT_00085974,__file,0);
                    /* WARNING: Subroutine does not return */
            var_18(0xff);
          }
          var_9(__file);
          var_14(to_cmd_pipe[0]);
          var_14(from_cmd_pipe[1]);
          if (-1 < cmd_err_pipe[0]) {
            var_14(cmd_err_pipe[1]);
          }
          var_6[3] = (type_5 *)cmd_err_pipe[0];
          var_6[1] = (type_5 *)to_cmd_pipe[1];
          var_6[2] = (type_5 *)from_cmd_pipe[0];
          goto LAB_00062822;
        }
        piVar7 = var_19();
        pcVar6 = var_20(*piVar7);
        pcVar4 = "fork: %s";
        goto LAB_00062a70;
      }
    }
LAB_00062a58:
    piVar7 = var_19();
    pcVar6 = var_20(*piVar7);
    pcVar4 = "pipe: %s";
  }
  else {
    __file = var_7(addr,port,conf);
    var_22 = (type_5 *)var_21("/dev/null",1);
    var_6[1] = var_22;
    if (var_22 == (type_5 *)0xffffffff) {
      piVar7 = var_19();
      pcVar6 = var_20(*piVar7);
      pcVar4 = "/dev/null: %s";
    }
    else {
      var_22 = (type_5 *)var_21(__file,0);
      var_6[2] = var_22;
      if (var_22 != (type_5 *)0xffffffff) {
        var_9(__file);
        var_6[3] = (type_5 *)0xffffffff;
LAB_00062822:
        if (var_23 == (type_9 *)0x0) {
          var_23 = var_24(localproxy_fromfd_cmp);
        }
        if (var_25 == (type_9 *)0x0) {
          var_25 = var_24(localproxy_tofd_cmp);
        }
        if (var_26 == (type_9 *)0x0) {
          var_26 = var_24(localproxy_errfd_cmp);
        }
        var_27(var_23,var_6);
        var_27(var_25,var_6);
        if (-1 < (int)var_6[3]) {
          var_27(var_26,var_6);
        }
        var_28((int)var_6[2],1,localproxy_select_result);
        if (-1 < (int)var_6[3]) {
          var_28((int)var_6[3],1,localproxy_select_result);
        }
        var_29(addr);
        goto LAB_000628a8;
      }
      piVar7 = var_19();
      conf = (type_4 *)var_20(*piVar7);
      pcVar4 = "%s: %s";
      pcVar6 = __file;
    }
  }
LAB_00062a70:
  var_22 = (type_5 *)var_8(pcVar4,pcVar6,conf);
  var_6[4] = var_22;
  var_9(__file);
LAB_000628a8:
  if (var_30 == *(int *)(var_1 + 0x14)) {
    return var_6;
  }
                    /* WARNING: Subroutine does not return */
  var_31();
}


(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))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (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: (number_literal) right: (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: (number_literal)))) (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: (identifier) arguments: (argument_list (number_literal) (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (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 (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))))) (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: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (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 (pointer_expression argument: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (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: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal) (identifier) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (string_literal (string_content)) (pointer_expression argument: (identifier)) (identifier) (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (number_literal)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (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))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (goto_statement label: (statement_identifier)))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (number_literal))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier)))))))) (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))))))) (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))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (subscript_expression argument: (identifier) index: (number_literal))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal)) (number_literal) (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (subscript_expression argument: (identifier) index: (number_literal))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal)) (number_literal) (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (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: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (return_statement (identifier))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

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

undefined4 * MASKED(undefined4 param_1,undefined4 param_2,undefined4 param_3)

{
  int iVar1;
  undefined4 *puVar2;
  char *__file;
  __pid_t _Var3;
  undefined4 uVar4;
  char *pcVar5;
  int *piVar6;
  char *pcVar7;
  int in_GS_OFFSET;
  undefined4 *in_stack_00000020;
  char *in_stack_00000024;
  int local_38;
  undefined4 local_34;
  int local_30;
  int local_2c;
  int local_28;
  int local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x62729;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  iVar1 = FUN_0001ea70(in_stack_00000024,0xd);
  if (1 < iVar1 - 5U) {
    puVar2 = (undefined4 *)0x0;
    goto LAB_000628a8;
  }
  puVar2 = (undefined4 *)FUN_0002d1f0(1,0x40);
  *puVar2 = &PTR_FUN_000afd20;
  puVar2[5] = in_stack_00000020;
  puVar2[4] = 0;
  puVar2[0xf] = 0;
  FUN_0002cfe0(puVar2 + 9);
  FUN_0002cfe0(puVar2 + 6);
  FUN_0002cfe0(puVar2 + 0xc);
  if (iVar1 == 5) {
    __file = (char *)FUN_00030750(param_1,param_3,in_stack_00000024);
    if ((DAT_000b127c & 2) == 0) {
      local_24 = 0;
      local_28 = 0;
    }
    else {
      local_24 = -1;
      local_28 = -1;
    }
    uVar4 = FUN_0002d860("Starting local proxy command: %s",__file);
    (**(code **)*in_stack_00000020)(in_stack_00000020,2,0,0,uVar4,0);
    FUN_0002da80(uVar4);
    iVar1 = pipe(&local_38);
    if (-1 < iVar1) {
      iVar1 = pipe(&local_30);
      if (-1 < iVar1) {
        if (local_28 == 0) {
          iVar1 = pipe(&local_28);
          if (iVar1 < 0) goto LAB_00062a58;
        }
        FUN_0005f000(local_34);
        FUN_0005f000(local_30);
        if (-1 < local_28) {
          FUN_0005f000(local_28);
        }
        _Var3 = fork();
        if (-1 < _Var3) {
          if (_Var3 == 0) {
            close(0);
            close(1);
            dup2(local_38,0);
            uVar4 = 1;
            dup2(local_2c,1);
            close(local_38);
            pcVar7 = (char *)close(local_2c);
            if (-1 < local_28) {
              uVar4 = 2;
              dup2(local_24,2);
              close(local_24);
              in_stack_00000024 = pcVar7;
            }
            FUN_0005f090(0,uVar4,in_stack_00000024);
            FUN_0005f090(1);
            execl("/bin/sh","sh",&DAT_00085974,__file,0);
                    /* WARNING: Subroutine does not return */
            _exit(0xff);
          }
          FUN_0002da80(__file);
          close(local_38);
          close(local_2c);
          if (-1 < local_28) {
            close(local_24);
          }
          puVar2[3] = local_28;
          puVar2[1] = local_34;
          puVar2[2] = local_30;
          goto LAB_00062822;
        }
        piVar6 = __errno_location();
        pcVar5 = strerror(*piVar6);
        pcVar7 = "fork: %s";
        goto LAB_00062a70;
      }
    }
LAB_00062a58:
    piVar6 = __errno_location();
    pcVar5 = strerror(*piVar6);
    pcVar7 = "pipe: %s";
  }
  else {
    __file = (char *)FUN_00030750(param_1,param_3,in_stack_00000024);
    iVar1 = open64("/dev/null",1);
    puVar2[1] = iVar1;
    if (iVar1 == -1) {
      piVar6 = __errno_location();
      pcVar5 = strerror(*piVar6);
      pcVar7 = "/dev/null: %s";
    }
    else {
      iVar1 = open64(__file,0);
      puVar2[2] = iVar1;
      if (iVar1 != -1) {
        FUN_0002da80(__file);
        puVar2[3] = 0xffffffff;
LAB_00062822:
        if (DAT_000b1254 == 0) {
          DAT_000b1254 = FUN_00047680(FUN_000620b0);
        }
        if (DAT_000b1250 == 0) {
          DAT_000b1250 = FUN_00047680(FUN_000620f0);
        }
        if (DAT_000b124c == 0) {
          DAT_000b124c = FUN_00047680(FUN_00062130);
        }
        FUN_00047700(DAT_000b1254,puVar2);
        FUN_00047700(DAT_000b1250,puVar2);
        if (-1 < (int)puVar2[3]) {
          FUN_00047700(DAT_000b124c,puVar2);
        }
        FUN_00063070(puVar2[2],1,FUN_00062320);
        if (-1 < (int)puVar2[3]) {
          FUN_00063070(puVar2[3],1,FUN_00062320);
        }
        FUN_00060670(param_1);
        goto LAB_000628a8;
      }
      piVar6 = __errno_location();
      in_stack_00000024 = strerror(*piVar6);
      pcVar7 = "%s: %s";
      pcVar5 = __file;
    }
  }
LAB_00062a70:
  uVar4 = FUN_0002d860(pcVar7,pcVar5,in_stack_00000024);
  puVar2[4] = uVar4;
  FUN_0002da80(__file);
LAB_000628a8:
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return puVar2;
  }
                    /* WARNING: Subroutine does not return */
  FUN_00066390();
}

