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

int proxy_telnet_negotiate(Proxy_Socket p,int change)

{
  int iVar1;
  char *pcVar2;
  int in_t9;
  
  if (p->state != -1) {
    if (change == 0) {
      (*(*p->plug)->closing)
                (p->plug,p->closing_error_msg,p->closing_error_code,p->closing_calling_back);
      iVar1 = 0;
    }
    else {
      iVar1 = 0;
      if (change != 1) {
        if (change == 3) {
          iVar1 = (*(*p->plug)->accepting)
                            (p->plug,p->accepting_constructor,(accept_ctx_t)(p->accepting_ctx).p);
        }
        else if (change == 2) {
          proxy_activate(p);
          iVar1 = 1;
        }
        else {
          (*(*p->plug)->closing)(p->plug,(char *)(*(int *)(in_t9 + 0x962e0) + -0x5014),0x1f41,0);
          iVar1 = 1;
        }
      }
    }
    return iVar1;
  }
  pcVar2 = format_telnet_command(p->remote_addr,p->remote_port,p->conf);
  iVar1 = (**(code **)(in_t9 + 0x96dac))(pcVar2);
                    /* WARNING: Subroutine does not return */
  safemalloc(iVar1 * 4 + 1,1);
}



undefined4 proxy_telnet_negotiate(int param_1,int param_2)

{
  undefined4 uVar1;
  char *pcVar2;
  int iVar3;
  undefined1 *puVar4;
  uint uVar5;
  undefined1 *puVar6;
  int *piVar7;
  char *pcVar8;
  undefined *puVar9;
  
  if (*(int *)(param_1 + 0x44) == -1) {
    pcVar2 = (char *)format_telnet_command
                               (*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),
                                *(undefined4 *)(param_1 + 0x74));
    iVar3 = (*(code *)PTR_strlen_000bee74)(pcVar2);
    puVar4 = (undefined1 *)safemalloc(iVar3 * 4 + 1,1);
    uVar5 = (uint)*pcVar2;
    puVar6 = puVar4;
    if (uVar5 != 0) {
      puVar9 = PTR_s_1_0_000be3a8 + -0x4e98;
      pcVar8 = pcVar2;
      do {
        if (uVar5 == 10) {
          *puVar6 = 0x5c;
          puVar6[1] = 0x6e;
          puVar6 = puVar6 + 2;
        }
        else if (uVar5 == 0xd) {
          *puVar6 = 0x5c;
          puVar6[1] = 0x72;
          puVar6 = puVar6 + 2;
        }
        else if (uVar5 == 9) {
          *puVar6 = 0x5c;
          puVar6[1] = 0x74;
          puVar6 = puVar6 + 2;
        }
        else if (uVar5 == 0x5c) {
          *puVar6 = 0x5c;
          puVar6[1] = 0x5c;
          puVar6 = puVar6 + 2;
        }
        else if ((uVar5 & 0xff) - 0x20 < 0x5f) {
          *puVar6 = (char)uVar5;
          puVar6 = puVar6 + 1;
        }
        else {
          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);
          puVar6 = puVar6 + 4;
        }
        pcVar8 = pcVar8 + 1;
        uVar5 = (uint)*pcVar8;
      } while (uVar5 != 0);
    }
    *puVar6 = 0;
    uVar1 = dupprintf(PTR_s_1_0_000be3a8 + -0x4e90,puVar4);
    (**(code **)**(undefined4 **)(param_1 + 0xc))(*(undefined4 **)(param_1 + 0xc),2,0,0,uVar1,0);
    safefree(uVar1);
    safefree(puVar4);
    piVar7 = *(int **)(param_1 + 8);
    uVar1 = (*(code *)PTR_strlen_000bee74)(pcVar2);
    (**(code **)(*piVar7 + 8))(piVar7,pcVar2,uVar1);
    safefree(pcVar2);
    *(undefined4 *)(param_1 + 0x44) = 1;
    uVar1 = 0;
  }
  else if (param_2 == 0) {
    (**(code **)(**(int **)(param_1 + 0xc) + 4))
              (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x50),
               *(undefined4 *)(param_1 + 0x54),*(undefined4 *)(param_1 + 0x58));
    uVar1 = 0;
  }
  else {
    uVar1 = 0;
    if (param_2 != 1) {
      if (param_2 == 3) {
        uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 0x10))
                          (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x6c),
                           *(undefined4 *)(param_1 + 0x70));
      }
      else if (param_2 == 2) {
        proxy_activate();
        uVar1 = 1;
      }
      else {
        (**(code **)(**(int **)(param_1 + 0xc) + 4))
                  (*(int **)(param_1 + 0xc),PTR_s_1_0_000be3a8 + -0x5014,0x1f41);
        uVar1 = 1;
      }
    }
  }
  return uVar1;
}


lui gp,0xa
addiu gp,gp,-0x1d58
addu gp,gp,t9
addiu sp,sp,-0x48
sw ra,0x44(sp)
sw s8,0x40(sp)
sw s7,0x3c(sp)
sw s6,0x38(sp)
sw s5,0x34(sp)
sw s4,0x30(sp)
sw s3,0x2c(sp)
sw s2,0x28(sp)
sw s1,0x24(sp)
sw s0,0x20(sp)
sw gp,0x18(sp)
lw v1,0x44(a0)
li v0,-0x1
beq v1,v0,0x00028198
_or s1,a0,zero
beq a1,zero,0x000283b8
_or s0,a1,zero
li v0,0x1
beq a1,v0,0x00028168
_or v0,zero,zero
li v0,0x3
beq a1,v0,0x000283e4
_nop
li v0,0x2
beq a1,v0,0x0002840c
_or a3,zero,zero
lw a0,0xc(a0)
lw v0,0x0(a0)
lw t9,0x4(v0)
li a2,0x1f41
lw a1,-0x7fc8(gp)
addiu a1,a1,-0x5014
jalr t9
_nop
lw gp,0x18(sp)
li v0,0x1
lw ra,0x44(sp)
lw s8,0x40(sp)
lw s7,0x3c(sp)
lw s6,0x38(sp)
lw s5,0x34(sp)
lw s4,0x30(sp)
lw s3,0x2c(sp)
lw s2,0x28(sp)
lw s1,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x48
lw a2,0x74(a0)
lw a1,0x14(a0)
lw a0,0x10(a0)
lw t9,-0x7dc0(gp)
bal 0x00027618
_nop
lw gp,0x18(sp)
or s4,v0,zero
or a0,v0,zero
lw t9,-0x74fc(gp)
jalr t9
_nop
lw gp,0x18(sp)
sll v0,v0,0x2
li a1,0x1
addiu a0,v0,0x1
lw t9,-0x7f9c(gp)
bal 0x000217e8
_nop
lw gp,0x18(sp)
or s7,v0,zero
lb v0,0x0(s4)
beq v0,zero,0x000282e4
_or s0,s7,zero
or s2,s4,zero
li s3,0xa
li s5,0xd
li s6,0x9
lw s8,-0x7fc8(gp)
b 0x00028238
_addiu s8,s8,-0x4e98
li v0,0x5c
sb v0,0x0(s0)
li v0,0x6e
sb v0,0x1(s0)
addiu s0,s0,0x2
addiu s2,s2,0x1
lb v0,0x0(s2)
beq v0,zero,0x000282e4
_nop
beq v0,s3,0x00028214
_nop
beq v0,s5,0x00028274
_nop
beq v0,s6,0x0002828c
_li v1,0x5c
beq v0,v1,0x000282a4
_andi v1,v0,0xff
addiu v1,v1,-0x20
sltiu v1,v1,0x5f
beq v1,zero,0x000282b8
_or a3,s8,zero
sb v0,0x0(s0)
b 0x00028228
_addiu s0,s0,0x1
li v0,0x5c
sb v0,0x0(s0)
li v0,0x72
sb v0,0x1(s0)
b 0x00028228
_addiu s0,s0,0x2
li v0,0x5c
sb v0,0x0(s0)
li v0,0x74
sb v0,0x1(s0)
b 0x00028228
_addiu s0,s0,0x2
li v0,0x5c
sb v0,0x0(s0)
sb v0,0x1(s0)
b 0x00028228
_addiu s0,s0,0x2
andi v0,v0,0xff
sw v0,0x10(sp)
li a2,-0x1
li a1,0x1
or a0,s0,zero
lw t9,-0x7628(gp)
jalr t9
_nop
lw gp,0x18(sp)
b 0x00028228
_addiu s0,s0,0x4
sb zero,0x0(s0)
or a1,s7,zero
lw a0,-0x7fc8(gp)
addiu a0,a0,-0x4e90
lw t9,-0x7fb8(gp)
bal 0x00022060
_nop
lw gp,0x18(sp)
or s0,v0,zero
lw a0,0xc(s1)
lw v0,0x0(a0)
sw zero,0x14(sp)
sw s0,0x10(sp)
lw t9,0x0(v0)
or a3,zero,zero
or a2,zero,zero
li a1,0x2
jalr t9
_nop
lw gp,0x18(sp)
or a0,s0,zero
lw t9,-0x7fac(gp)
bal 0x000222f8
_nop
lw gp,0x18(sp)
or a0,s7,zero
lw t9,-0x7fac(gp)
bal 0x000222f8
_nop
lw gp,0x18(sp)
lw s0,0x8(s1)
or a0,s4,zero
lw t9,-0x74fc(gp)
jalr t9
_nop
lw gp,0x18(sp)
lw v1,0x0(s0)
lw t9,0x8(v1)
or a2,v0,zero
or a1,s4,zero
or a0,s0,zero
jalr t9
_nop
lw gp,0x18(sp)
or a0,s4,zero
lw t9,-0x7fac(gp)
bal 0x000222f8
_nop
lw gp,0x18(sp)
li v0,0x1
sw v0,0x44(s1)
b 0x00028168
_or v0,zero,zero
lw a0,0xc(a0)
lw v0,0x0(a0)
lw t9,0x4(v0)
lw a3,0x58(s1)
lw a2,0x54(s1)
lw a1,0x50(s1)
jalr t9
_nop
lw gp,0x18(sp)
b 0x00028168
_or v0,s0,zero
lw a0,0xc(a0)
lw v0,0x0(a0)
lw t9,0x10(v0)
lw a2,0x70(s1)
lw a1,0x6c(s1)
jalr t9
_nop
lw gp,0x18(sp)
b 0x0002816c
_lw ra,0x44(sp)
lw t9,-0x7e0c(gp)
bal 0x00024f3c
_nop
lw gp,0x18(sp)
b 0x00028168
_li v0,0x1
(translation_unit "undefined4 proxy_telnet_negotiate(int param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  char *pcVar2;\n  int iVar3;\n  undefined1 *puVar4;\n  uint uVar5;\n  undefined1 *puVar6;\n  int *piVar7;\n  char *pcVar8;\n  undefined *puVar9;\n  \n  if (*(int *)(param_1 + 0x44) == -1) {\n    pcVar2 = (char *)format_telnet_command\n                               (*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                                *(undefined4 *)(param_1 + 0x74));\n    iVar3 = (*(code *)PTR_strlen_000bee74)(pcVar2);\n    puVar4 = (undefined1 *)safemalloc(iVar3 * 4 + 1,1);\n    uVar5 = (uint)*pcVar2;\n    puVar6 = puVar4;\n    if (uVar5 != 0) {\n      puVar9 = PTR_s_1_0_000be3a8 + -0x4e98;\n      pcVar8 = pcVar2;\n      do {\n        if (uVar5 == 10) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x6e;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0xd) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x72;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 9) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x74;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0x5c) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x5c;\n          puVar6 = puVar6 + 2;\n        }\n        else if ((uVar5 & 0xff) - 0x20 < 0x5f) {\n          *puVar6 = (char)uVar5;\n          puVar6 = puVar6 + 1;\n        }\n        else {\n          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);\n          puVar6 = puVar6 + 4;\n        }\n        pcVar8 = pcVar8 + 1;\n        uVar5 = (uint)*pcVar8;\n      } while (uVar5 != 0);\n    }\n    *puVar6 = 0;\n    uVar1 = dupprintf(PTR_s_1_0_000be3a8 + -0x4e90,puVar4);\n    (**(code **)**(undefined4 **)(param_1 + 0xc))(*(undefined4 **)(param_1 + 0xc),2,0,0,uVar1,0);\n    safefree(uVar1);\n    safefree(puVar4);\n    piVar7 = *(int **)(param_1 + 8);\n    uVar1 = (*(code *)PTR_strlen_000bee74)(pcVar2);\n    (**(code **)(*piVar7 + 8))(piVar7,pcVar2,uVar1);\n    safefree(pcVar2);\n    *(undefined4 *)(param_1 + 0x44) = 1;\n    uVar1 = 0;\n  }\n  else if (param_2 == 0) {\n    (**(code **)(**(int **)(param_1 + 0xc) + 4))\n              (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x50),\n               *(undefined4 *)(param_1 + 0x54),*(undefined4 *)(param_1 + 0x58));\n    uVar1 = 0;\n  }\n  else {\n    uVar1 = 0;\n    if (param_2 != 1) {\n      if (param_2 == 3) {\n        uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 0x10))\n                          (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x6c),\n                           *(undefined4 *)(param_1 + 0x70));\n      }\n      else if (param_2 == 2) {\n        proxy_activate();\n        uVar1 = 1;\n      }\n      else {\n        (**(code **)(**(int **)(param_1 + 0xc) + 4))\n                  (*(int **)(param_1 + 0xc),PTR_s_1_0_000be3a8 + -0x5014,0x1f41);\n        uVar1 = 1;\n      }\n    }\n  }\n  return uVar1;\n}\n\n" (function_definition "undefined4 proxy_telnet_negotiate(int param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  char *pcVar2;\n  int iVar3;\n  undefined1 *puVar4;\n  uint uVar5;\n  undefined1 *puVar6;\n  int *piVar7;\n  char *pcVar8;\n  undefined *puVar9;\n  \n  if (*(int *)(param_1 + 0x44) == -1) {\n    pcVar2 = (char *)format_telnet_command\n                               (*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                                *(undefined4 *)(param_1 + 0x74));\n    iVar3 = (*(code *)PTR_strlen_000bee74)(pcVar2);\n    puVar4 = (undefined1 *)safemalloc(iVar3 * 4 + 1,1);\n    uVar5 = (uint)*pcVar2;\n    puVar6 = puVar4;\n    if (uVar5 != 0) {\n      puVar9 = PTR_s_1_0_000be3a8 + -0x4e98;\n      pcVar8 = pcVar2;\n      do {\n        if (uVar5 == 10) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x6e;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0xd) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x72;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 9) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x74;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0x5c) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x5c;\n          puVar6 = puVar6 + 2;\n        }\n        else if ((uVar5 & 0xff) - 0x20 < 0x5f) {\n          *puVar6 = (char)uVar5;\n          puVar6 = puVar6 + 1;\n        }\n        else {\n          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);\n          puVar6 = puVar6 + 4;\n        }\n        pcVar8 = pcVar8 + 1;\n        uVar5 = (uint)*pcVar8;\n      } while (uVar5 != 0);\n    }\n    *puVar6 = 0;\n    uVar1 = dupprintf(PTR_s_1_0_000be3a8 + -0x4e90,puVar4);\n    (**(code **)**(undefined4 **)(param_1 + 0xc))(*(undefined4 **)(param_1 + 0xc),2,0,0,uVar1,0);\n    safefree(uVar1);\n    safefree(puVar4);\n    piVar7 = *(int **)(param_1 + 8);\n    uVar1 = (*(code *)PTR_strlen_000bee74)(pcVar2);\n    (**(code **)(*piVar7 + 8))(piVar7,pcVar2,uVar1);\n    safefree(pcVar2);\n    *(undefined4 *)(param_1 + 0x44) = 1;\n    uVar1 = 0;\n  }\n  else if (param_2 == 0) {\n    (**(code **)(**(int **)(param_1 + 0xc) + 4))\n              (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x50),\n               *(undefined4 *)(param_1 + 0x54),*(undefined4 *)(param_1 + 0x58));\n    uVar1 = 0;\n  }\n  else {\n    uVar1 = 0;\n    if (param_2 != 1) {\n      if (param_2 == 3) {\n        uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 0x10))\n                          (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x6c),\n                           *(undefined4 *)(param_1 + 0x70));\n      }\n      else if (param_2 == 2) {\n        proxy_activate();\n        uVar1 = 1;\n      }\n      else {\n        (**(code **)(**(int **)(param_1 + 0xc) + 4))\n                  (*(int **)(param_1 + 0xc),PTR_s_1_0_000be3a8 + -0x5014,0x1f41);\n        uVar1 = 1;\n      }\n    }\n  }\n  return uVar1;\n}" type_identifier (function_declarator "proxy_telnet_negotiate(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  char *pcVar2;\n  int iVar3;\n  undefined1 *puVar4;\n  uint uVar5;\n  undefined1 *puVar6;\n  int *piVar7;\n  char *pcVar8;\n  undefined *puVar9;\n  \n  if (*(int *)(param_1 + 0x44) == -1) {\n    pcVar2 = (char *)format_telnet_command\n                               (*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                                *(undefined4 *)(param_1 + 0x74));\n    iVar3 = (*(code *)PTR_strlen_000bee74)(pcVar2);\n    puVar4 = (undefined1 *)safemalloc(iVar3 * 4 + 1,1);\n    uVar5 = (uint)*pcVar2;\n    puVar6 = puVar4;\n    if (uVar5 != 0) {\n      puVar9 = PTR_s_1_0_000be3a8 + -0x4e98;\n      pcVar8 = pcVar2;\n      do {\n        if (uVar5 == 10) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x6e;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0xd) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x72;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 9) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x74;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0x5c) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x5c;\n          puVar6 = puVar6 + 2;\n        }\n        else if ((uVar5 & 0xff) - 0x20 < 0x5f) {\n          *puVar6 = (char)uVar5;\n          puVar6 = puVar6 + 1;\n        }\n        else {\n          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);\n          puVar6 = puVar6 + 4;\n        }\n        pcVar8 = pcVar8 + 1;\n        uVar5 = (uint)*pcVar8;\n      } while (uVar5 != 0);\n    }\n    *puVar6 = 0;\n    uVar1 = dupprintf(PTR_s_1_0_000be3a8 + -0x4e90,puVar4);\n    (**(code **)**(undefined4 **)(param_1 + 0xc))(*(undefined4 **)(param_1 + 0xc),2,0,0,uVar1,0);\n    safefree(uVar1);\n    safefree(puVar4);\n    piVar7 = *(int **)(param_1 + 8);\n    uVar1 = (*(code *)PTR_strlen_000bee74)(pcVar2);\n    (**(code **)(*piVar7 + 8))(piVar7,pcVar2,uVar1);\n    safefree(pcVar2);\n    *(undefined4 *)(param_1 + 0x44) = 1;\n    uVar1 = 0;\n  }\n  else if (param_2 == 0) {\n    (**(code **)(**(int **)(param_1 + 0xc) + 4))\n              (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x50),\n               *(undefined4 *)(param_1 + 0x54),*(undefined4 *)(param_1 + 0x58));\n    uVar1 = 0;\n  }\n  else {\n    uVar1 = 0;\n    if (param_2 != 1) {\n      if (param_2 == 3) {\n        uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 0x10))\n                          (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x6c),\n                           *(undefined4 *)(param_1 + 0x70));\n      }\n      else if (param_2 == 2) {\n        proxy_activate();\n        uVar1 = 1;\n      }\n      else {\n        (**(code **)(**(int **)(param_1 + 0xc) + 4))\n                  (*(int **)(param_1 + 0xc),PTR_s_1_0_000be3a8 + -0x5014,0x1f41);\n        uVar1 = 1;\n      }\n    }\n  }\n  return uVar1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined1 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "undefined1 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "undefined *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (if_statement "if (*(int *)(param_1 + 0x44) == -1) {\n    pcVar2 = (char *)format_telnet_command\n                               (*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                                *(undefined4 *)(param_1 + 0x74));\n    iVar3 = (*(code *)PTR_strlen_000bee74)(pcVar2);\n    puVar4 = (undefined1 *)safemalloc(iVar3 * 4 + 1,1);\n    uVar5 = (uint)*pcVar2;\n    puVar6 = puVar4;\n    if (uVar5 != 0) {\n      puVar9 = PTR_s_1_0_000be3a8 + -0x4e98;\n      pcVar8 = pcVar2;\n      do {\n        if (uVar5 == 10) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x6e;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0xd) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x72;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 9) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x74;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0x5c) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x5c;\n          puVar6 = puVar6 + 2;\n        }\n        else if ((uVar5 & 0xff) - 0x20 < 0x5f) {\n          *puVar6 = (char)uVar5;\n          puVar6 = puVar6 + 1;\n        }\n        else {\n          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);\n          puVar6 = puVar6 + 4;\n        }\n        pcVar8 = pcVar8 + 1;\n        uVar5 = (uint)*pcVar8;\n      } while (uVar5 != 0);\n    }\n    *puVar6 = 0;\n    uVar1 = dupprintf(PTR_s_1_0_000be3a8 + -0x4e90,puVar4);\n    (**(code **)**(undefined4 **)(param_1 + 0xc))(*(undefined4 **)(param_1 + 0xc),2,0,0,uVar1,0);\n    safefree(uVar1);\n    safefree(puVar4);\n    piVar7 = *(int **)(param_1 + 8);\n    uVar1 = (*(code *)PTR_strlen_000bee74)(pcVar2);\n    (**(code **)(*piVar7 + 8))(piVar7,pcVar2,uVar1);\n    safefree(pcVar2);\n    *(undefined4 *)(param_1 + 0x44) = 1;\n    uVar1 = 0;\n  }\n  else if (param_2 == 0) {\n    (**(code **)(**(int **)(param_1 + 0xc) + 4))\n              (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x50),\n               *(undefined4 *)(param_1 + 0x54),*(undefined4 *)(param_1 + 0x58));\n    uVar1 = 0;\n  }\n  else {\n    uVar1 = 0;\n    if (param_2 != 1) {\n      if (param_2 == 3) {\n        uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 0x10))\n                          (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x6c),\n                           *(undefined4 *)(param_1 + 0x70));\n      }\n      else if (param_2 == 2) {\n        proxy_activate();\n        uVar1 = 1;\n      }\n      else {\n        (**(code **)(**(int **)(param_1 + 0xc) + 4))\n                  (*(int **)(param_1 + 0xc),PTR_s_1_0_000be3a8 + -0x5014,0x1f41);\n        uVar1 = 1;\n      }\n    }\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x44) == -1)" ( (binary_expression "*(int *)(param_1 + 0x44) == -1" (pointer_expression "*(int *)(param_1 + 0x44)" * (cast_expression "(int *)(param_1 + 0x44)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    pcVar2 = (char *)format_telnet_command\n                               (*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                                *(undefined4 *)(param_1 + 0x74));\n    iVar3 = (*(code *)PTR_strlen_000bee74)(pcVar2);\n    puVar4 = (undefined1 *)safemalloc(iVar3 * 4 + 1,1);\n    uVar5 = (uint)*pcVar2;\n    puVar6 = puVar4;\n    if (uVar5 != 0) {\n      puVar9 = PTR_s_1_0_000be3a8 + -0x4e98;\n      pcVar8 = pcVar2;\n      do {\n        if (uVar5 == 10) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x6e;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0xd) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x72;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 9) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x74;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0x5c) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x5c;\n          puVar6 = puVar6 + 2;\n        }\n        else if ((uVar5 & 0xff) - 0x20 < 0x5f) {\n          *puVar6 = (char)uVar5;\n          puVar6 = puVar6 + 1;\n        }\n        else {\n          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);\n          puVar6 = puVar6 + 4;\n        }\n        pcVar8 = pcVar8 + 1;\n        uVar5 = (uint)*pcVar8;\n      } while (uVar5 != 0);\n    }\n    *puVar6 = 0;\n    uVar1 = dupprintf(PTR_s_1_0_000be3a8 + -0x4e90,puVar4);\n    (**(code **)**(undefined4 **)(param_1 + 0xc))(*(undefined4 **)(param_1 + 0xc),2,0,0,uVar1,0);\n    safefree(uVar1);\n    safefree(puVar4);\n    piVar7 = *(int **)(param_1 + 8);\n    uVar1 = (*(code *)PTR_strlen_000bee74)(pcVar2);\n    (**(code **)(*piVar7 + 8))(piVar7,pcVar2,uVar1);\n    safefree(pcVar2);\n    *(undefined4 *)(param_1 + 0x44) = 1;\n    uVar1 = 0;\n  }" { (expression_statement "pcVar2 = (char *)format_telnet_command\n                               (*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                                *(undefined4 *)(param_1 + 0x74));" (assignment_expression "pcVar2 = (char *)format_telnet_command\n                               (*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                                *(undefined4 *)(param_1 + 0x74))" identifier = (cast_expression "(char *)format_telnet_command\n                               (*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                                *(undefined4 *)(param_1 + 0x74))" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "format_telnet_command\n                               (*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                                *(undefined4 *)(param_1 + 0x74))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                                *(undefined4 *)(param_1 + 0x74))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0x74)" * (cast_expression "(undefined4 *)(param_1 + 0x74)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) )))) ))))) ;) (expression_statement "iVar3 = (*(code *)PTR_strlen_000bee74)(pcVar2);" (assignment_expression "iVar3 = (*(code *)PTR_strlen_000bee74)(pcVar2)" identifier = (call_expression "(*(code *)PTR_strlen_000bee74)(pcVar2)" (parenthesized_expression "(*(code *)PTR_strlen_000bee74)" ( (pointer_expression "*(code *)PTR_strlen_000bee74" * (cast_expression "(code *)PTR_strlen_000bee74" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar2)" ( identifier )))) ;) (expression_statement "puVar4 = (undefined1 *)safemalloc(iVar3 * 4 + 1,1);" (assignment_expression "puVar4 = (undefined1 *)safemalloc(iVar3 * 4 + 1,1)" identifier = (cast_expression "(undefined1 *)safemalloc(iVar3 * 4 + 1,1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "safemalloc(iVar3 * 4 + 1,1)" identifier (argument_list "(iVar3 * 4 + 1,1)" ( (binary_expression "iVar3 * 4 + 1" (binary_expression "iVar3 * 4" identifier * number_literal) + number_literal) , number_literal ))))) ;) (expression_statement "uVar5 = (uint)*pcVar2;" (assignment_expression "uVar5 = (uint)*pcVar2" identifier = (binary_expression "(uint)*pcVar2" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "puVar6 = puVar4;" (assignment_expression "puVar6 = puVar4" identifier = identifier) ;) (if_statement "if (uVar5 != 0) {\n      puVar9 = PTR_s_1_0_000be3a8 + -0x4e98;\n      pcVar8 = pcVar2;\n      do {\n        if (uVar5 == 10) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x6e;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0xd) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x72;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 9) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x74;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0x5c) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x5c;\n          puVar6 = puVar6 + 2;\n        }\n        else if ((uVar5 & 0xff) - 0x20 < 0x5f) {\n          *puVar6 = (char)uVar5;\n          puVar6 = puVar6 + 1;\n        }\n        else {\n          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);\n          puVar6 = puVar6 + 4;\n        }\n        pcVar8 = pcVar8 + 1;\n        uVar5 = (uint)*pcVar8;\n      } while (uVar5 != 0);\n    }" if (parenthesized_expression "(uVar5 != 0)" ( (binary_expression "uVar5 != 0" identifier != number_literal) )) (compound_statement "{\n      puVar9 = PTR_s_1_0_000be3a8 + -0x4e98;\n      pcVar8 = pcVar2;\n      do {\n        if (uVar5 == 10) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x6e;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0xd) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x72;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 9) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x74;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0x5c) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x5c;\n          puVar6 = puVar6 + 2;\n        }\n        else if ((uVar5 & 0xff) - 0x20 < 0x5f) {\n          *puVar6 = (char)uVar5;\n          puVar6 = puVar6 + 1;\n        }\n        else {\n          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);\n          puVar6 = puVar6 + 4;\n        }\n        pcVar8 = pcVar8 + 1;\n        uVar5 = (uint)*pcVar8;\n      } while (uVar5 != 0);\n    }" { (expression_statement "puVar9 = PTR_s_1_0_000be3a8 + -0x4e98;" (assignment_expression "puVar9 = PTR_s_1_0_000be3a8 + -0x4e98" identifier = (binary_expression "PTR_s_1_0_000be3a8 + -0x4e98" identifier + number_literal)) ;) (expression_statement "pcVar8 = pcVar2;" (assignment_expression "pcVar8 = pcVar2" identifier = identifier) ;) (do_statement "do {\n        if (uVar5 == 10) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x6e;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0xd) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x72;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 9) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x74;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0x5c) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x5c;\n          puVar6 = puVar6 + 2;\n        }\n        else if ((uVar5 & 0xff) - 0x20 < 0x5f) {\n          *puVar6 = (char)uVar5;\n          puVar6 = puVar6 + 1;\n        }\n        else {\n          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);\n          puVar6 = puVar6 + 4;\n        }\n        pcVar8 = pcVar8 + 1;\n        uVar5 = (uint)*pcVar8;\n      } while (uVar5 != 0);" do (compound_statement "{\n        if (uVar5 == 10) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x6e;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0xd) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x72;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 9) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x74;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0x5c) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x5c;\n          puVar6 = puVar6 + 2;\n        }\n        else if ((uVar5 & 0xff) - 0x20 < 0x5f) {\n          *puVar6 = (char)uVar5;\n          puVar6 = puVar6 + 1;\n        }\n        else {\n          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);\n          puVar6 = puVar6 + 4;\n        }\n        pcVar8 = pcVar8 + 1;\n        uVar5 = (uint)*pcVar8;\n      }" { (if_statement "if (uVar5 == 10) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x6e;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0xd) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x72;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 9) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x74;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0x5c) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x5c;\n          puVar6 = puVar6 + 2;\n        }\n        else if ((uVar5 & 0xff) - 0x20 < 0x5f) {\n          *puVar6 = (char)uVar5;\n          puVar6 = puVar6 + 1;\n        }\n        else {\n          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);\n          puVar6 = puVar6 + 4;\n        }" if (parenthesized_expression "(uVar5 == 10)" ( (binary_expression "uVar5 == 10" identifier == number_literal) )) (compound_statement "{\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x6e;\n          puVar6 = puVar6 + 2;\n        }" { (expression_statement "*puVar6 = 0x5c;" (assignment_expression "*puVar6 = 0x5c" (pointer_expression "*puVar6" * identifier) = number_literal) ;) (expression_statement "puVar6[1] = 0x6e;" (assignment_expression "puVar6[1] = 0x6e" (subscript_expression "puVar6[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar6 = puVar6 + 2;" (assignment_expression "puVar6 = puVar6 + 2" identifier = (binary_expression "puVar6 + 2" identifier + number_literal)) ;) }) (else_clause "else if (uVar5 == 0xd) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x72;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 9) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x74;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0x5c) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x5c;\n          puVar6 = puVar6 + 2;\n        }\n        else if ((uVar5 & 0xff) - 0x20 < 0x5f) {\n          *puVar6 = (char)uVar5;\n          puVar6 = puVar6 + 1;\n        }\n        else {\n          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);\n          puVar6 = puVar6 + 4;\n        }" else (if_statement "if (uVar5 == 0xd) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x72;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 9) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x74;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0x5c) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x5c;\n          puVar6 = puVar6 + 2;\n        }\n        else if ((uVar5 & 0xff) - 0x20 < 0x5f) {\n          *puVar6 = (char)uVar5;\n          puVar6 = puVar6 + 1;\n        }\n        else {\n          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);\n          puVar6 = puVar6 + 4;\n        }" if (parenthesized_expression "(uVar5 == 0xd)" ( (binary_expression "uVar5 == 0xd" identifier == number_literal) )) (compound_statement "{\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x72;\n          puVar6 = puVar6 + 2;\n        }" { (expression_statement "*puVar6 = 0x5c;" (assignment_expression "*puVar6 = 0x5c" (pointer_expression "*puVar6" * identifier) = number_literal) ;) (expression_statement "puVar6[1] = 0x72;" (assignment_expression "puVar6[1] = 0x72" (subscript_expression "puVar6[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar6 = puVar6 + 2;" (assignment_expression "puVar6 = puVar6 + 2" identifier = (binary_expression "puVar6 + 2" identifier + number_literal)) ;) }) (else_clause "else if (uVar5 == 9) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x74;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0x5c) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x5c;\n          puVar6 = puVar6 + 2;\n        }\n        else if ((uVar5 & 0xff) - 0x20 < 0x5f) {\n          *puVar6 = (char)uVar5;\n          puVar6 = puVar6 + 1;\n        }\n        else {\n          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);\n          puVar6 = puVar6 + 4;\n        }" else (if_statement "if (uVar5 == 9) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x74;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0x5c) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x5c;\n          puVar6 = puVar6 + 2;\n        }\n        else if ((uVar5 & 0xff) - 0x20 < 0x5f) {\n          *puVar6 = (char)uVar5;\n          puVar6 = puVar6 + 1;\n        }\n        else {\n          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);\n          puVar6 = puVar6 + 4;\n        }" if (parenthesized_expression "(uVar5 == 9)" ( (binary_expression "uVar5 == 9" identifier == number_literal) )) (compound_statement "{\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x74;\n          puVar6 = puVar6 + 2;\n        }" { (expression_statement "*puVar6 = 0x5c;" (assignment_expression "*puVar6 = 0x5c" (pointer_expression "*puVar6" * identifier) = number_literal) ;) (expression_statement "puVar6[1] = 0x74;" (assignment_expression "puVar6[1] = 0x74" (subscript_expression "puVar6[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar6 = puVar6 + 2;" (assignment_expression "puVar6 = puVar6 + 2" identifier = (binary_expression "puVar6 + 2" identifier + number_literal)) ;) }) (else_clause "else if (uVar5 == 0x5c) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x5c;\n          puVar6 = puVar6 + 2;\n        }\n        else if ((uVar5 & 0xff) - 0x20 < 0x5f) {\n          *puVar6 = (char)uVar5;\n          puVar6 = puVar6 + 1;\n        }\n        else {\n          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);\n          puVar6 = puVar6 + 4;\n        }" else (if_statement "if (uVar5 == 0x5c) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x5c;\n          puVar6 = puVar6 + 2;\n        }\n        else if ((uVar5 & 0xff) - 0x20 < 0x5f) {\n          *puVar6 = (char)uVar5;\n          puVar6 = puVar6 + 1;\n        }\n        else {\n          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);\n          puVar6 = puVar6 + 4;\n        }" if (parenthesized_expression "(uVar5 == 0x5c)" ( (binary_expression "uVar5 == 0x5c" identifier == number_literal) )) (compound_statement "{\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x5c;\n          puVar6 = puVar6 + 2;\n        }" { (expression_statement "*puVar6 = 0x5c;" (assignment_expression "*puVar6 = 0x5c" (pointer_expression "*puVar6" * identifier) = number_literal) ;) (expression_statement "puVar6[1] = 0x5c;" (assignment_expression "puVar6[1] = 0x5c" (subscript_expression "puVar6[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar6 = puVar6 + 2;" (assignment_expression "puVar6 = puVar6 + 2" identifier = (binary_expression "puVar6 + 2" identifier + number_literal)) ;) }) (else_clause "else if ((uVar5 & 0xff) - 0x20 < 0x5f) {\n          *puVar6 = (char)uVar5;\n          puVar6 = puVar6 + 1;\n        }\n        else {\n          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);\n          puVar6 = puVar6 + 4;\n        }" else (if_statement "if ((uVar5 & 0xff) - 0x20 < 0x5f) {\n          *puVar6 = (char)uVar5;\n          puVar6 = puVar6 + 1;\n        }\n        else {\n          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);\n          puVar6 = puVar6 + 4;\n        }" if (parenthesized_expression "((uVar5 & 0xff) - 0x20 < 0x5f)" ( (binary_expression "(uVar5 & 0xff) - 0x20 < 0x5f" (binary_expression "(uVar5 & 0xff) - 0x20" (parenthesized_expression "(uVar5 & 0xff)" ( (binary_expression "uVar5 & 0xff" identifier & number_literal) )) - number_literal) < number_literal) )) (compound_statement "{\n          *puVar6 = (char)uVar5;\n          puVar6 = puVar6 + 1;\n        }" { (expression_statement "*puVar6 = (char)uVar5;" (assignment_expression "*puVar6 = (char)uVar5" (pointer_expression "*puVar6" * identifier) = (cast_expression "(char)uVar5" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "puVar6 = puVar6 + 1;" (assignment_expression "puVar6 = puVar6 + 1" identifier = (binary_expression "puVar6 + 1" identifier + number_literal)) ;) }) (else_clause "else {\n          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);\n          puVar6 = puVar6 + 4;\n        }" else (compound_statement "{\n          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);\n          puVar6 = puVar6 + 4;\n        }" { (expression_statement "(*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);" (call_expression "(*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff)" (parenthesized_expression "(*(code *)PTR___sprintf_chk_000bed48)" ( (pointer_expression "*(code *)PTR___sprintf_chk_000bed48" * (cast_expression "(code *)PTR___sprintf_chk_000bed48" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff)" ( identifier , number_literal , number_literal , identifier , (binary_expression "uVar5 & 0xff" identifier & number_literal) ))) ;) (expression_statement "puVar6 = puVar6 + 4;" (assignment_expression "puVar6 = puVar6 + 4" identifier = (binary_expression "puVar6 + 4" identifier + number_literal)) ;) }))))))))))) (expression_statement "pcVar8 = pcVar8 + 1;" (assignment_expression "pcVar8 = pcVar8 + 1" identifier = (binary_expression "pcVar8 + 1" identifier + number_literal)) ;) (expression_statement "uVar5 = (uint)*pcVar8;" (assignment_expression "uVar5 = (uint)*pcVar8" identifier = (binary_expression "(uint)*pcVar8" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) }) while (parenthesized_expression "(uVar5 != 0)" ( (binary_expression "uVar5 != 0" identifier != number_literal) )) ;) })) (expression_statement "*puVar6 = 0;" (assignment_expression "*puVar6 = 0" (pointer_expression "*puVar6" * identifier) = number_literal) ;) (expression_statement "uVar1 = dupprintf(PTR_s_1_0_000be3a8 + -0x4e90,puVar4);" (assignment_expression "uVar1 = dupprintf(PTR_s_1_0_000be3a8 + -0x4e90,puVar4)" identifier = (call_expression "dupprintf(PTR_s_1_0_000be3a8 + -0x4e90,puVar4)" identifier (argument_list "(PTR_s_1_0_000be3a8 + -0x4e90,puVar4)" ( (binary_expression "PTR_s_1_0_000be3a8 + -0x4e90" identifier + number_literal) , identifier )))) ;) (expression_statement "(**(code **)**(undefined4 **)(param_1 + 0xc))(*(undefined4 **)(param_1 + 0xc),2,0,0,uVar1,0);" (call_expression "(**(code **)**(undefined4 **)(param_1 + 0xc))(*(undefined4 **)(param_1 + 0xc),2,0,0,uVar1,0)" (parenthesized_expression "(**(code **)**(undefined4 **)(param_1 + 0xc))" ( (pointer_expression "**(code **)**(undefined4 **)(param_1 + 0xc)" * (pointer_expression "*(code **)**(undefined4 **)(param_1 + 0xc)" * (cast_expression "(code **)**(undefined4 **)(param_1 + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "**(undefined4 **)(param_1 + 0xc)" * (pointer_expression "*(undefined4 **)(param_1 + 0xc)" * (cast_expression "(undefined4 **)(param_1 + 0xc)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))))))) )) (argument_list "(*(undefined4 **)(param_1 + 0xc),2,0,0,uVar1,0)" ( (pointer_expression "*(undefined4 **)(param_1 + 0xc)" * (cast_expression "(undefined4 **)(param_1 + 0xc)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) , number_literal , number_literal , number_literal , identifier , number_literal ))) ;) (expression_statement "safefree(uVar1);" (call_expression "safefree(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) (expression_statement "safefree(puVar4);" (call_expression "safefree(puVar4)" identifier (argument_list "(puVar4)" ( identifier ))) ;) (expression_statement "piVar7 = *(int **)(param_1 + 8);" (assignment_expression "piVar7 = *(int **)(param_1 + 8)" identifier = (pointer_expression "*(int **)(param_1 + 8)" * (cast_expression "(int **)(param_1 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "uVar1 = (*(code *)PTR_strlen_000bee74)(pcVar2);" (assignment_expression "uVar1 = (*(code *)PTR_strlen_000bee74)(pcVar2)" identifier = (call_expression "(*(code *)PTR_strlen_000bee74)(pcVar2)" (parenthesized_expression "(*(code *)PTR_strlen_000bee74)" ( (pointer_expression "*(code *)PTR_strlen_000bee74" * (cast_expression "(code *)PTR_strlen_000bee74" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar2)" ( identifier )))) ;) (expression_statement "(**(code **)(*piVar7 + 8))(piVar7,pcVar2,uVar1);" (call_expression "(**(code **)(*piVar7 + 8))(piVar7,pcVar2,uVar1)" (parenthesized_expression "(**(code **)(*piVar7 + 8))" ( (pointer_expression "**(code **)(*piVar7 + 8)" * (pointer_expression "*(code **)(*piVar7 + 8)" * (cast_expression "(code **)(*piVar7 + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar7 + 8)" ( (binary_expression "*piVar7 + 8" (pointer_expression "*piVar7" * identifier) + number_literal) ))))) )) (argument_list "(piVar7,pcVar2,uVar1)" ( identifier , identifier , identifier ))) ;) (expression_statement "safefree(pcVar2);" (call_expression "safefree(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier ))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x44) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x44) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x44)" * (cast_expression "(undefined4 *)(param_1 + 0x44)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) }) (else_clause "else if (param_2 == 0) {\n    (**(code **)(**(int **)(param_1 + 0xc) + 4))\n              (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x50),\n               *(undefined4 *)(param_1 + 0x54),*(undefined4 *)(param_1 + 0x58));\n    uVar1 = 0;\n  }\n  else {\n    uVar1 = 0;\n    if (param_2 != 1) {\n      if (param_2 == 3) {\n        uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 0x10))\n                          (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x6c),\n                           *(undefined4 *)(param_1 + 0x70));\n      }\n      else if (param_2 == 2) {\n        proxy_activate();\n        uVar1 = 1;\n      }\n      else {\n        (**(code **)(**(int **)(param_1 + 0xc) + 4))\n                  (*(int **)(param_1 + 0xc),PTR_s_1_0_000be3a8 + -0x5014,0x1f41);\n        uVar1 = 1;\n      }\n    }\n  }" else (if_statement "if (param_2 == 0) {\n    (**(code **)(**(int **)(param_1 + 0xc) + 4))\n              (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x50),\n               *(undefined4 *)(param_1 + 0x54),*(undefined4 *)(param_1 + 0x58));\n    uVar1 = 0;\n  }\n  else {\n    uVar1 = 0;\n    if (param_2 != 1) {\n      if (param_2 == 3) {\n        uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 0x10))\n                          (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x6c),\n                           *(undefined4 *)(param_1 + 0x70));\n      }\n      else if (param_2 == 2) {\n        proxy_activate();\n        uVar1 = 1;\n      }\n      else {\n        (**(code **)(**(int **)(param_1 + 0xc) + 4))\n                  (*(int **)(param_1 + 0xc),PTR_s_1_0_000be3a8 + -0x5014,0x1f41);\n        uVar1 = 1;\n      }\n    }\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    (**(code **)(**(int **)(param_1 + 0xc) + 4))\n              (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x50),\n               *(undefined4 *)(param_1 + 0x54),*(undefined4 *)(param_1 + 0x58));\n    uVar1 = 0;\n  }" { (expression_statement "(**(code **)(**(int **)(param_1 + 0xc) + 4))\n              (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x50),\n               *(undefined4 *)(param_1 + 0x54),*(undefined4 *)(param_1 + 0x58));" (call_expression "(**(code **)(**(int **)(param_1 + 0xc) + 4))\n              (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x50),\n               *(undefined4 *)(param_1 + 0x54),*(undefined4 *)(param_1 + 0x58))" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 0xc) + 4))" ( (pointer_expression "**(code **)(**(int **)(param_1 + 0xc) + 4)" * (pointer_expression "*(code **)(**(int **)(param_1 + 0xc) + 4)" * (cast_expression "(code **)(**(int **)(param_1 + 0xc) + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(param_1 + 0xc) + 4)" ( (binary_expression "**(int **)(param_1 + 0xc) + 4" (pointer_expression "**(int **)(param_1 + 0xc)" * (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x50),\n               *(undefined4 *)(param_1 + 0x54),*(undefined4 *)(param_1 + 0x58))" ( (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0x50)" * (cast_expression "(undefined4 *)(param_1 + 0x50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0x54)" * (cast_expression "(undefined4 *)(param_1 + 0x54)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0x58)" * (cast_expression "(undefined4 *)(param_1 + 0x58)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) )))) ))) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    uVar1 = 0;\n    if (param_2 != 1) {\n      if (param_2 == 3) {\n        uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 0x10))\n                          (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x6c),\n                           *(undefined4 *)(param_1 + 0x70));\n      }\n      else if (param_2 == 2) {\n        proxy_activate();\n        uVar1 = 1;\n      }\n      else {\n        (**(code **)(**(int **)(param_1 + 0xc) + 4))\n                  (*(int **)(param_1 + 0xc),PTR_s_1_0_000be3a8 + -0x5014,0x1f41);\n        uVar1 = 1;\n      }\n    }\n  }" else (compound_statement "{\n    uVar1 = 0;\n    if (param_2 != 1) {\n      if (param_2 == 3) {\n        uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 0x10))\n                          (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x6c),\n                           *(undefined4 *)(param_1 + 0x70));\n      }\n      else if (param_2 == 2) {\n        proxy_activate();\n        uVar1 = 1;\n      }\n      else {\n        (**(code **)(**(int **)(param_1 + 0xc) + 4))\n                  (*(int **)(param_1 + 0xc),PTR_s_1_0_000be3a8 + -0x5014,0x1f41);\n        uVar1 = 1;\n      }\n    }\n  }" { (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (if_statement "if (param_2 != 1) {\n      if (param_2 == 3) {\n        uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 0x10))\n                          (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x6c),\n                           *(undefined4 *)(param_1 + 0x70));\n      }\n      else if (param_2 == 2) {\n        proxy_activate();\n        uVar1 = 1;\n      }\n      else {\n        (**(code **)(**(int **)(param_1 + 0xc) + 4))\n                  (*(int **)(param_1 + 0xc),PTR_s_1_0_000be3a8 + -0x5014,0x1f41);\n        uVar1 = 1;\n      }\n    }" if (parenthesized_expression "(param_2 != 1)" ( (binary_expression "param_2 != 1" identifier != number_literal) )) (compound_statement "{\n      if (param_2 == 3) {\n        uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 0x10))\n                          (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x6c),\n                           *(undefined4 *)(param_1 + 0x70));\n      }\n      else if (param_2 == 2) {\n        proxy_activate();\n        uVar1 = 1;\n      }\n      else {\n        (**(code **)(**(int **)(param_1 + 0xc) + 4))\n                  (*(int **)(param_1 + 0xc),PTR_s_1_0_000be3a8 + -0x5014,0x1f41);\n        uVar1 = 1;\n      }\n    }" { (if_statement "if (param_2 == 3) {\n        uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 0x10))\n                          (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x6c),\n                           *(undefined4 *)(param_1 + 0x70));\n      }\n      else if (param_2 == 2) {\n        proxy_activate();\n        uVar1 = 1;\n      }\n      else {\n        (**(code **)(**(int **)(param_1 + 0xc) + 4))\n                  (*(int **)(param_1 + 0xc),PTR_s_1_0_000be3a8 + -0x5014,0x1f41);\n        uVar1 = 1;\n      }" if (parenthesized_expression "(param_2 == 3)" ( (binary_expression "param_2 == 3" identifier == number_literal) )) (compound_statement "{\n        uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 0x10))\n                          (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x6c),\n                           *(undefined4 *)(param_1 + 0x70));\n      }" { (expression_statement "uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 0x10))\n                          (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x6c),\n                           *(undefined4 *)(param_1 + 0x70));" (assignment_expression "uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 0x10))\n                          (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x6c),\n                           *(undefined4 *)(param_1 + 0x70))" identifier = (call_expression "(**(code **)(**(int **)(param_1 + 0xc) + 0x10))\n                          (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x6c),\n                           *(undefined4 *)(param_1 + 0x70))" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 0xc) + 0x10))" ( (pointer_expression "**(code **)(**(int **)(param_1 + 0xc) + 0x10)" * (pointer_expression "*(code **)(**(int **)(param_1 + 0xc) + 0x10)" * (cast_expression "(code **)(**(int **)(param_1 + 0xc) + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(param_1 + 0xc) + 0x10)" ( (binary_expression "**(int **)(param_1 + 0xc) + 0x10" (pointer_expression "**(int **)(param_1 + 0xc)" * (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x6c),\n                           *(undefined4 *)(param_1 + 0x70))" ( (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0x6c)" * (cast_expression "(undefined4 *)(param_1 + 0x6c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0x70)" * (cast_expression "(undefined4 *)(param_1 + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) )))) )))) ;) }) (else_clause "else if (param_2 == 2) {\n        proxy_activate();\n        uVar1 = 1;\n      }\n      else {\n        (**(code **)(**(int **)(param_1 + 0xc) + 4))\n                  (*(int **)(param_1 + 0xc),PTR_s_1_0_000be3a8 + -0x5014,0x1f41);\n        uVar1 = 1;\n      }" else (if_statement "if (param_2 == 2) {\n        proxy_activate();\n        uVar1 = 1;\n      }\n      else {\n        (**(code **)(**(int **)(param_1 + 0xc) + 4))\n                  (*(int **)(param_1 + 0xc),PTR_s_1_0_000be3a8 + -0x5014,0x1f41);\n        uVar1 = 1;\n      }" if (parenthesized_expression "(param_2 == 2)" ( (binary_expression "param_2 == 2" identifier == number_literal) )) (compound_statement "{\n        proxy_activate();\n        uVar1 = 1;\n      }" { (expression_statement "proxy_activate();" (call_expression "proxy_activate()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar1 = 1;" (assignment_expression "uVar1 = 1" identifier = number_literal) ;) }) (else_clause "else {\n        (**(code **)(**(int **)(param_1 + 0xc) + 4))\n                  (*(int **)(param_1 + 0xc),PTR_s_1_0_000be3a8 + -0x5014,0x1f41);\n        uVar1 = 1;\n      }" else (compound_statement "{\n        (**(code **)(**(int **)(param_1 + 0xc) + 4))\n                  (*(int **)(param_1 + 0xc),PTR_s_1_0_000be3a8 + -0x5014,0x1f41);\n        uVar1 = 1;\n      }" { (expression_statement "(**(code **)(**(int **)(param_1 + 0xc) + 4))\n                  (*(int **)(param_1 + 0xc),PTR_s_1_0_000be3a8 + -0x5014,0x1f41);" (call_expression "(**(code **)(**(int **)(param_1 + 0xc) + 4))\n                  (*(int **)(param_1 + 0xc),PTR_s_1_0_000be3a8 + -0x5014,0x1f41)" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 0xc) + 4))" ( (pointer_expression "**(code **)(**(int **)(param_1 + 0xc) + 4)" * (pointer_expression "*(code **)(**(int **)(param_1 + 0xc) + 4)" * (cast_expression "(code **)(**(int **)(param_1 + 0xc) + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(param_1 + 0xc) + 4)" ( (binary_expression "**(int **)(param_1 + 0xc) + 4" (pointer_expression "**(int **)(param_1 + 0xc)" * (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(int **)(param_1 + 0xc),PTR_s_1_0_000be3a8 + -0x5014,0x1f41)" ( (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) , (binary_expression "PTR_s_1_0_000be3a8 + -0x5014" identifier + number_literal) , number_literal ))) ;) (expression_statement "uVar1 = 1;" (assignment_expression "uVar1 = 1" identifier = number_literal) ;) }))))) })) }))))) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nint proxy_telnet_negotiate(Proxy_Socket p,int change)\n\n{\n  int iVar1;\n  char *pcVar2;\n  int in_t9;\n  \n  if (p->state != -1) {\n    if (change == 0) {\n      (*(*p->plug)->closing)\n                (p->plug,p->closing_error_msg,p->closing_error_code,p->closing_calling_back);\n      iVar1 = 0;\n    }\n    else {\n      iVar1 = 0;\n      if (change != 1) {\n        if (change == 3) {\n          iVar1 = (*(*p->plug)->accepting)\n                            (p->plug,p->accepting_constructor,(accept_ctx_t)(p->accepting_ctx).p);\n        }\n        else if (change == 2) {\n          proxy_activate(p);\n          iVar1 = 1;\n        }\n        else {\n          (*(*p->plug)->closing)(p->plug,(char *)(*(int *)(in_t9 + 0x962e0) + -0x5014),0x1f41,0);\n          iVar1 = 1;\n        }\n      }\n    }\n    return iVar1;\n  }\n  pcVar2 = format_telnet_command(p->remote_addr,p->remote_port,p->conf);\n  iVar1 = (**(code **)(in_t9 + 0x96dac))(pcVar2);\n                    /* WARNING: Subroutine does not return */\n  safemalloc(iVar1 * 4 + 1,1);\n}\n\n" comment (function_definition "int proxy_telnet_negotiate(Proxy_Socket p,int change)\n\n{\n  int iVar1;\n  char *pcVar2;\n  int in_t9;\n  \n  if (p->state != -1) {\n    if (change == 0) {\n      (*(*p->plug)->closing)\n                (p->plug,p->closing_error_msg,p->closing_error_code,p->closing_calling_back);\n      iVar1 = 0;\n    }\n    else {\n      iVar1 = 0;\n      if (change != 1) {\n        if (change == 3) {\n          iVar1 = (*(*p->plug)->accepting)\n                            (p->plug,p->accepting_constructor,(accept_ctx_t)(p->accepting_ctx).p);\n        }\n        else if (change == 2) {\n          proxy_activate(p);\n          iVar1 = 1;\n        }\n        else {\n          (*(*p->plug)->closing)(p->plug,(char *)(*(int *)(in_t9 + 0x962e0) + -0x5014),0x1f41,0);\n          iVar1 = 1;\n        }\n      }\n    }\n    return iVar1;\n  }\n  pcVar2 = format_telnet_command(p->remote_addr,p->remote_port,p->conf);\n  iVar1 = (**(code **)(in_t9 + 0x96dac))(pcVar2);\n                    /* WARNING: Subroutine does not return */\n  safemalloc(iVar1 * 4 + 1,1);\n}" primitive_type (function_declarator "proxy_telnet_negotiate(Proxy_Socket p,int change)" identifier (parameter_list "(Proxy_Socket p,int change)" ( (parameter_declaration "Proxy_Socket p" type_identifier identifier) , (parameter_declaration "int change" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  int in_t9;\n  \n  if (p->state != -1) {\n    if (change == 0) {\n      (*(*p->plug)->closing)\n                (p->plug,p->closing_error_msg,p->closing_error_code,p->closing_calling_back);\n      iVar1 = 0;\n    }\n    else {\n      iVar1 = 0;\n      if (change != 1) {\n        if (change == 3) {\n          iVar1 = (*(*p->plug)->accepting)\n                            (p->plug,p->accepting_constructor,(accept_ctx_t)(p->accepting_ctx).p);\n        }\n        else if (change == 2) {\n          proxy_activate(p);\n          iVar1 = 1;\n        }\n        else {\n          (*(*p->plug)->closing)(p->plug,(char *)(*(int *)(in_t9 + 0x962e0) + -0x5014),0x1f41,0);\n          iVar1 = 1;\n        }\n      }\n    }\n    return iVar1;\n  }\n  pcVar2 = format_telnet_command(p->remote_addr,p->remote_port,p->conf);\n  iVar1 = (**(code **)(in_t9 + 0x96dac))(pcVar2);\n                    /* WARNING: Subroutine does not return */\n  safemalloc(iVar1 * 4 + 1,1);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "int in_t9;" primitive_type identifier ;) (if_statement "if (p->state != -1) {\n    if (change == 0) {\n      (*(*p->plug)->closing)\n                (p->plug,p->closing_error_msg,p->closing_error_code,p->closing_calling_back);\n      iVar1 = 0;\n    }\n    else {\n      iVar1 = 0;\n      if (change != 1) {\n        if (change == 3) {\n          iVar1 = (*(*p->plug)->accepting)\n                            (p->plug,p->accepting_constructor,(accept_ctx_t)(p->accepting_ctx).p);\n        }\n        else if (change == 2) {\n          proxy_activate(p);\n          iVar1 = 1;\n        }\n        else {\n          (*(*p->plug)->closing)(p->plug,(char *)(*(int *)(in_t9 + 0x962e0) + -0x5014),0x1f41,0);\n          iVar1 = 1;\n        }\n      }\n    }\n    return iVar1;\n  }" if (parenthesized_expression "(p->state != -1)" ( (binary_expression "p->state != -1" (field_expression "p->state" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n    if (change == 0) {\n      (*(*p->plug)->closing)\n                (p->plug,p->closing_error_msg,p->closing_error_code,p->closing_calling_back);\n      iVar1 = 0;\n    }\n    else {\n      iVar1 = 0;\n      if (change != 1) {\n        if (change == 3) {\n          iVar1 = (*(*p->plug)->accepting)\n                            (p->plug,p->accepting_constructor,(accept_ctx_t)(p->accepting_ctx).p);\n        }\n        else if (change == 2) {\n          proxy_activate(p);\n          iVar1 = 1;\n        }\n        else {\n          (*(*p->plug)->closing)(p->plug,(char *)(*(int *)(in_t9 + 0x962e0) + -0x5014),0x1f41,0);\n          iVar1 = 1;\n        }\n      }\n    }\n    return iVar1;\n  }" { (if_statement "if (change == 0) {\n      (*(*p->plug)->closing)\n                (p->plug,p->closing_error_msg,p->closing_error_code,p->closing_calling_back);\n      iVar1 = 0;\n    }\n    else {\n      iVar1 = 0;\n      if (change != 1) {\n        if (change == 3) {\n          iVar1 = (*(*p->plug)->accepting)\n                            (p->plug,p->accepting_constructor,(accept_ctx_t)(p->accepting_ctx).p);\n        }\n        else if (change == 2) {\n          proxy_activate(p);\n          iVar1 = 1;\n        }\n        else {\n          (*(*p->plug)->closing)(p->plug,(char *)(*(int *)(in_t9 + 0x962e0) + -0x5014),0x1f41,0);\n          iVar1 = 1;\n        }\n      }\n    }" if (parenthesized_expression "(change == 0)" ( (binary_expression "change == 0" identifier == number_literal) )) (compound_statement "{\n      (*(*p->plug)->closing)\n                (p->plug,p->closing_error_msg,p->closing_error_code,p->closing_calling_back);\n      iVar1 = 0;\n    }" { (expression_statement "(*(*p->plug)->closing)\n                (p->plug,p->closing_error_msg,p->closing_error_code,p->closing_calling_back);" (call_expression "(*(*p->plug)->closing)\n                (p->plug,p->closing_error_msg,p->closing_error_code,p->closing_calling_back)" (parenthesized_expression "(*(*p->plug)->closing)" ( (pointer_expression "*(*p->plug)->closing" * (field_expression "(*p->plug)->closing" (parenthesized_expression "(*p->plug)" ( (pointer_expression "*p->plug" * (field_expression "p->plug" identifier -> field_identifier)) )) -> field_identifier)) )) (argument_list "(p->plug,p->closing_error_msg,p->closing_error_code,p->closing_calling_back)" ( (field_expression "p->plug" identifier -> field_identifier) , (field_expression "p->closing_error_msg" identifier -> field_identifier) , (field_expression "p->closing_error_code" identifier -> field_identifier) , (field_expression "p->closing_calling_back" identifier -> field_identifier) ))) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) }) (else_clause "else {\n      iVar1 = 0;\n      if (change != 1) {\n        if (change == 3) {\n          iVar1 = (*(*p->plug)->accepting)\n                            (p->plug,p->accepting_constructor,(accept_ctx_t)(p->accepting_ctx).p);\n        }\n        else if (change == 2) {\n          proxy_activate(p);\n          iVar1 = 1;\n        }\n        else {\n          (*(*p->plug)->closing)(p->plug,(char *)(*(int *)(in_t9 + 0x962e0) + -0x5014),0x1f41,0);\n          iVar1 = 1;\n        }\n      }\n    }" else (compound_statement "{\n      iVar1 = 0;\n      if (change != 1) {\n        if (change == 3) {\n          iVar1 = (*(*p->plug)->accepting)\n                            (p->plug,p->accepting_constructor,(accept_ctx_t)(p->accepting_ctx).p);\n        }\n        else if (change == 2) {\n          proxy_activate(p);\n          iVar1 = 1;\n        }\n        else {\n          (*(*p->plug)->closing)(p->plug,(char *)(*(int *)(in_t9 + 0x962e0) + -0x5014),0x1f41,0);\n          iVar1 = 1;\n        }\n      }\n    }" { (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (if_statement "if (change != 1) {\n        if (change == 3) {\n          iVar1 = (*(*p->plug)->accepting)\n                            (p->plug,p->accepting_constructor,(accept_ctx_t)(p->accepting_ctx).p);\n        }\n        else if (change == 2) {\n          proxy_activate(p);\n          iVar1 = 1;\n        }\n        else {\n          (*(*p->plug)->closing)(p->plug,(char *)(*(int *)(in_t9 + 0x962e0) + -0x5014),0x1f41,0);\n          iVar1 = 1;\n        }\n      }" if (parenthesized_expression "(change != 1)" ( (binary_expression "change != 1" identifier != number_literal) )) (compound_statement "{\n        if (change == 3) {\n          iVar1 = (*(*p->plug)->accepting)\n                            (p->plug,p->accepting_constructor,(accept_ctx_t)(p->accepting_ctx).p);\n        }\n        else if (change == 2) {\n          proxy_activate(p);\n          iVar1 = 1;\n        }\n        else {\n          (*(*p->plug)->closing)(p->plug,(char *)(*(int *)(in_t9 + 0x962e0) + -0x5014),0x1f41,0);\n          iVar1 = 1;\n        }\n      }" { (if_statement "if (change == 3) {\n          iVar1 = (*(*p->plug)->accepting)\n                            (p->plug,p->accepting_constructor,(accept_ctx_t)(p->accepting_ctx).p);\n        }\n        else if (change == 2) {\n          proxy_activate(p);\n          iVar1 = 1;\n        }\n        else {\n          (*(*p->plug)->closing)(p->plug,(char *)(*(int *)(in_t9 + 0x962e0) + -0x5014),0x1f41,0);\n          iVar1 = 1;\n        }" if (parenthesized_expression "(change == 3)" ( (binary_expression "change == 3" identifier == number_literal) )) (compound_statement "{\n          iVar1 = (*(*p->plug)->accepting)\n                            (p->plug,p->accepting_constructor,(accept_ctx_t)(p->accepting_ctx).p);\n        }" { (expression_statement "iVar1 = (*(*p->plug)->accepting)\n                            (p->plug,p->accepting_constructor,(accept_ctx_t)(p->accepting_ctx).p);" (assignment_expression "iVar1 = (*(*p->plug)->accepting)\n                            (p->plug,p->accepting_constructor,(accept_ctx_t)(p->accepting_ctx).p)" identifier = (call_expression "(*(*p->plug)->accepting)\n                            (p->plug,p->accepting_constructor,(accept_ctx_t)(p->accepting_ctx).p)" (parenthesized_expression "(*(*p->plug)->accepting)" ( (pointer_expression "*(*p->plug)->accepting" * (field_expression "(*p->plug)->accepting" (parenthesized_expression "(*p->plug)" ( (pointer_expression "*p->plug" * (field_expression "p->plug" identifier -> field_identifier)) )) -> field_identifier)) )) (argument_list "(p->plug,p->accepting_constructor,(accept_ctx_t)(p->accepting_ctx).p)" ( (field_expression "p->plug" identifier -> field_identifier) , (field_expression "p->accepting_constructor" identifier -> field_identifier) , (field_expression "(accept_ctx_t)(p->accepting_ctx).p" (call_expression "(accept_ctx_t)(p->accepting_ctx)" (parenthesized_expression "(accept_ctx_t)" ( identifier )) (argument_list "(p->accepting_ctx)" ( (field_expression "p->accepting_ctx" identifier -> field_identifier) ))) . field_identifier) )))) ;) }) (else_clause "else if (change == 2) {\n          proxy_activate(p);\n          iVar1 = 1;\n        }\n        else {\n          (*(*p->plug)->closing)(p->plug,(char *)(*(int *)(in_t9 + 0x962e0) + -0x5014),0x1f41,0);\n          iVar1 = 1;\n        }" else (if_statement "if (change == 2) {\n          proxy_activate(p);\n          iVar1 = 1;\n        }\n        else {\n          (*(*p->plug)->closing)(p->plug,(char *)(*(int *)(in_t9 + 0x962e0) + -0x5014),0x1f41,0);\n          iVar1 = 1;\n        }" if (parenthesized_expression "(change == 2)" ( (binary_expression "change == 2" identifier == number_literal) )) (compound_statement "{\n          proxy_activate(p);\n          iVar1 = 1;\n        }" { (expression_statement "proxy_activate(p);" (call_expression "proxy_activate(p)" identifier (argument_list "(p)" ( identifier ))) ;) (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) }) (else_clause "else {\n          (*(*p->plug)->closing)(p->plug,(char *)(*(int *)(in_t9 + 0x962e0) + -0x5014),0x1f41,0);\n          iVar1 = 1;\n        }" else (compound_statement "{\n          (*(*p->plug)->closing)(p->plug,(char *)(*(int *)(in_t9 + 0x962e0) + -0x5014),0x1f41,0);\n          iVar1 = 1;\n        }" { (expression_statement "(*(*p->plug)->closing)(p->plug,(char *)(*(int *)(in_t9 + 0x962e0) + -0x5014),0x1f41,0);" (call_expression "(*(*p->plug)->closing)(p->plug,(char *)(*(int *)(in_t9 + 0x962e0) + -0x5014),0x1f41,0)" (parenthesized_expression "(*(*p->plug)->closing)" ( (pointer_expression "*(*p->plug)->closing" * (field_expression "(*p->plug)->closing" (parenthesized_expression "(*p->plug)" ( (pointer_expression "*p->plug" * (field_expression "p->plug" identifier -> field_identifier)) )) -> field_identifier)) )) (argument_list "(p->plug,(char *)(*(int *)(in_t9 + 0x962e0) + -0x5014),0x1f41,0)" ( (field_expression "p->plug" identifier -> field_identifier) , (cast_expression "(char *)(*(int *)(in_t9 + 0x962e0) + -0x5014)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(in_t9 + 0x962e0) + -0x5014)" ( (binary_expression "*(int *)(in_t9 + 0x962e0) + -0x5014" (pointer_expression "*(int *)(in_t9 + 0x962e0)" * (cast_expression "(int *)(in_t9 + 0x962e0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_t9 + 0x962e0)" ( (binary_expression "in_t9 + 0x962e0" identifier + number_literal) )))) + number_literal) ))) , number_literal , number_literal ))) ;) (expression_statement "iVar1 = 1;" (assignment_expression "iVar1 = 1" identifier = number_literal) ;) }))))) })) }))) (return_statement "return iVar1;" return identifier ;) })) (expression_statement "pcVar2 = format_telnet_command(p->remote_addr,p->remote_port,p->conf);" (assignment_expression "pcVar2 = format_telnet_command(p->remote_addr,p->remote_port,p->conf)" identifier = (call_expression "format_telnet_command(p->remote_addr,p->remote_port,p->conf)" identifier (argument_list "(p->remote_addr,p->remote_port,p->conf)" ( (field_expression "p->remote_addr" identifier -> field_identifier) , (field_expression "p->remote_port" identifier -> field_identifier) , (field_expression "p->conf" identifier -> field_identifier) )))) ;) (expression_statement "iVar1 = (**(code **)(in_t9 + 0x96dac))(pcVar2);" (assignment_expression "iVar1 = (**(code **)(in_t9 + 0x96dac))(pcVar2)" identifier = (call_expression "(**(code **)(in_t9 + 0x96dac))(pcVar2)" (parenthesized_expression "(**(code **)(in_t9 + 0x96dac))" ( (pointer_expression "**(code **)(in_t9 + 0x96dac)" * (pointer_expression "*(code **)(in_t9 + 0x96dac)" * (cast_expression "(code **)(in_t9 + 0x96dac)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(in_t9 + 0x96dac)" ( (binary_expression "in_t9 + 0x96dac" identifier + number_literal) ))))) )) (argument_list "(pcVar2)" ( identifier )))) ;) comment (expression_statement "safemalloc(iVar1 * 4 + 1,1);" (call_expression "safemalloc(iVar1 * 4 + 1,1)" identifier (argument_list "(iVar1 * 4 + 1,1)" ( (binary_expression "iVar1 * 4 + 1" (binary_expression "iVar1 * 4" identifier * number_literal) + number_literal) , number_literal ))) ;) })))
(translation_unit "undefined4 proxy_telnet_negotiate(int param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  char *pcVar2;\n  int iVar3;\n  undefined1 *puVar4;\n  uint uVar5;\n  undefined1 *puVar6;\n  int *piVar7;\n  char *pcVar8;\n  undefined *puVar9;\n  \n  if (*(int *)(param_1 + 0x44) == -1) {\n    pcVar2 = (char *)format_telnet_command\n                               (*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                                *(undefined4 *)(param_1 + 0x74));\n    iVar3 = (*(code *)PTR_strlen_000bee74)(pcVar2);\n    puVar4 = (undefined1 *)safemalloc(iVar3 * 4 + 1,1);\n    uVar5 = (uint)*pcVar2;\n    puVar6 = puVar4;\n    if (uVar5 != 0) {\n      puVar9 = PTR_s_1_0_000be3a8 + -0x4e98;\n      pcVar8 = pcVar2;\n      do {\n        if (uVar5 == 10) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x6e;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0xd) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x72;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 9) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x74;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0x5c) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x5c;\n          puVar6 = puVar6 + 2;\n        }\n        else if ((uVar5 & 0xff) - 0x20 < 0x5f) {\n          *puVar6 = (char)uVar5;\n          puVar6 = puVar6 + 1;\n        }\n        else {\n          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);\n          puVar6 = puVar6 + 4;\n        }\n        pcVar8 = pcVar8 + 1;\n        uVar5 = (uint)*pcVar8;\n      } while (uVar5 != 0);\n    }\n    *puVar6 = 0;\n    uVar1 = dupprintf(PTR_s_1_0_000be3a8 + -0x4e90,puVar4);\n    (**(code **)**(undefined4 **)(param_1 + 0xc))(*(undefined4 **)(param_1 + 0xc),2,0,0,uVar1,0);\n    safefree(uVar1);\n    safefree(puVar4);\n    piVar7 = *(int **)(param_1 + 8);\n    uVar1 = (*(code *)PTR_strlen_000bee74)(pcVar2);\n    (**(code **)(*piVar7 + 8))(piVar7,pcVar2,uVar1);\n    safefree(pcVar2);\n    *(undefined4 *)(param_1 + 0x44) = 1;\n    uVar1 = 0;\n  }\n  else if (param_2 == 0) {\n    (**(code **)(**(int **)(param_1 + 0xc) + 4))\n              (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x50),\n               *(undefined4 *)(param_1 + 0x54),*(undefined4 *)(param_1 + 0x58));\n    uVar1 = 0;\n  }\n  else {\n    uVar1 = 0;\n    if (param_2 != 1) {\n      if (param_2 == 3) {\n        uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 0x10))\n                          (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x6c),\n                           *(undefined4 *)(param_1 + 0x70));\n      }\n      else if (param_2 == 2) {\n        proxy_activate();\n        uVar1 = 1;\n      }\n      else {\n        (**(code **)(**(int **)(param_1 + 0xc) + 4))\n                  (*(int **)(param_1 + 0xc),PTR_s_1_0_000be3a8 + -0x5014,0x1f41);\n        uVar1 = 1;\n      }\n    }\n  }\n  return uVar1;\n}\n\n" (function_definition "undefined4 proxy_telnet_negotiate(int param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  char *pcVar2;\n  int iVar3;\n  undefined1 *puVar4;\n  uint uVar5;\n  undefined1 *puVar6;\n  int *piVar7;\n  char *pcVar8;\n  undefined *puVar9;\n  \n  if (*(int *)(param_1 + 0x44) == -1) {\n    pcVar2 = (char *)format_telnet_command\n                               (*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                                *(undefined4 *)(param_1 + 0x74));\n    iVar3 = (*(code *)PTR_strlen_000bee74)(pcVar2);\n    puVar4 = (undefined1 *)safemalloc(iVar3 * 4 + 1,1);\n    uVar5 = (uint)*pcVar2;\n    puVar6 = puVar4;\n    if (uVar5 != 0) {\n      puVar9 = PTR_s_1_0_000be3a8 + -0x4e98;\n      pcVar8 = pcVar2;\n      do {\n        if (uVar5 == 10) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x6e;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0xd) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x72;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 9) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x74;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0x5c) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x5c;\n          puVar6 = puVar6 + 2;\n        }\n        else if ((uVar5 & 0xff) - 0x20 < 0x5f) {\n          *puVar6 = (char)uVar5;\n          puVar6 = puVar6 + 1;\n        }\n        else {\n          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);\n          puVar6 = puVar6 + 4;\n        }\n        pcVar8 = pcVar8 + 1;\n        uVar5 = (uint)*pcVar8;\n      } while (uVar5 != 0);\n    }\n    *puVar6 = 0;\n    uVar1 = dupprintf(PTR_s_1_0_000be3a8 + -0x4e90,puVar4);\n    (**(code **)**(undefined4 **)(param_1 + 0xc))(*(undefined4 **)(param_1 + 0xc),2,0,0,uVar1,0);\n    safefree(uVar1);\n    safefree(puVar4);\n    piVar7 = *(int **)(param_1 + 8);\n    uVar1 = (*(code *)PTR_strlen_000bee74)(pcVar2);\n    (**(code **)(*piVar7 + 8))(piVar7,pcVar2,uVar1);\n    safefree(pcVar2);\n    *(undefined4 *)(param_1 + 0x44) = 1;\n    uVar1 = 0;\n  }\n  else if (param_2 == 0) {\n    (**(code **)(**(int **)(param_1 + 0xc) + 4))\n              (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x50),\n               *(undefined4 *)(param_1 + 0x54),*(undefined4 *)(param_1 + 0x58));\n    uVar1 = 0;\n  }\n  else {\n    uVar1 = 0;\n    if (param_2 != 1) {\n      if (param_2 == 3) {\n        uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 0x10))\n                          (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x6c),\n                           *(undefined4 *)(param_1 + 0x70));\n      }\n      else if (param_2 == 2) {\n        proxy_activate();\n        uVar1 = 1;\n      }\n      else {\n        (**(code **)(**(int **)(param_1 + 0xc) + 4))\n                  (*(int **)(param_1 + 0xc),PTR_s_1_0_000be3a8 + -0x5014,0x1f41);\n        uVar1 = 1;\n      }\n    }\n  }\n  return uVar1;\n}" type_identifier (function_declarator "proxy_telnet_negotiate(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  char *pcVar2;\n  int iVar3;\n  undefined1 *puVar4;\n  uint uVar5;\n  undefined1 *puVar6;\n  int *piVar7;\n  char *pcVar8;\n  undefined *puVar9;\n  \n  if (*(int *)(param_1 + 0x44) == -1) {\n    pcVar2 = (char *)format_telnet_command\n                               (*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                                *(undefined4 *)(param_1 + 0x74));\n    iVar3 = (*(code *)PTR_strlen_000bee74)(pcVar2);\n    puVar4 = (undefined1 *)safemalloc(iVar3 * 4 + 1,1);\n    uVar5 = (uint)*pcVar2;\n    puVar6 = puVar4;\n    if (uVar5 != 0) {\n      puVar9 = PTR_s_1_0_000be3a8 + -0x4e98;\n      pcVar8 = pcVar2;\n      do {\n        if (uVar5 == 10) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x6e;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0xd) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x72;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 9) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x74;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0x5c) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x5c;\n          puVar6 = puVar6 + 2;\n        }\n        else if ((uVar5 & 0xff) - 0x20 < 0x5f) {\n          *puVar6 = (char)uVar5;\n          puVar6 = puVar6 + 1;\n        }\n        else {\n          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);\n          puVar6 = puVar6 + 4;\n        }\n        pcVar8 = pcVar8 + 1;\n        uVar5 = (uint)*pcVar8;\n      } while (uVar5 != 0);\n    }\n    *puVar6 = 0;\n    uVar1 = dupprintf(PTR_s_1_0_000be3a8 + -0x4e90,puVar4);\n    (**(code **)**(undefined4 **)(param_1 + 0xc))(*(undefined4 **)(param_1 + 0xc),2,0,0,uVar1,0);\n    safefree(uVar1);\n    safefree(puVar4);\n    piVar7 = *(int **)(param_1 + 8);\n    uVar1 = (*(code *)PTR_strlen_000bee74)(pcVar2);\n    (**(code **)(*piVar7 + 8))(piVar7,pcVar2,uVar1);\n    safefree(pcVar2);\n    *(undefined4 *)(param_1 + 0x44) = 1;\n    uVar1 = 0;\n  }\n  else if (param_2 == 0) {\n    (**(code **)(**(int **)(param_1 + 0xc) + 4))\n              (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x50),\n               *(undefined4 *)(param_1 + 0x54),*(undefined4 *)(param_1 + 0x58));\n    uVar1 = 0;\n  }\n  else {\n    uVar1 = 0;\n    if (param_2 != 1) {\n      if (param_2 == 3) {\n        uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 0x10))\n                          (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x6c),\n                           *(undefined4 *)(param_1 + 0x70));\n      }\n      else if (param_2 == 2) {\n        proxy_activate();\n        uVar1 = 1;\n      }\n      else {\n        (**(code **)(**(int **)(param_1 + 0xc) + 4))\n                  (*(int **)(param_1 + 0xc),PTR_s_1_0_000be3a8 + -0x5014,0x1f41);\n        uVar1 = 1;\n      }\n    }\n  }\n  return uVar1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined1 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "undefined1 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "undefined *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (if_statement "if (*(int *)(param_1 + 0x44) == -1) {\n    pcVar2 = (char *)format_telnet_command\n                               (*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                                *(undefined4 *)(param_1 + 0x74));\n    iVar3 = (*(code *)PTR_strlen_000bee74)(pcVar2);\n    puVar4 = (undefined1 *)safemalloc(iVar3 * 4 + 1,1);\n    uVar5 = (uint)*pcVar2;\n    puVar6 = puVar4;\n    if (uVar5 != 0) {\n      puVar9 = PTR_s_1_0_000be3a8 + -0x4e98;\n      pcVar8 = pcVar2;\n      do {\n        if (uVar5 == 10) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x6e;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0xd) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x72;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 9) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x74;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0x5c) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x5c;\n          puVar6 = puVar6 + 2;\n        }\n        else if ((uVar5 & 0xff) - 0x20 < 0x5f) {\n          *puVar6 = (char)uVar5;\n          puVar6 = puVar6 + 1;\n        }\n        else {\n          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);\n          puVar6 = puVar6 + 4;\n        }\n        pcVar8 = pcVar8 + 1;\n        uVar5 = (uint)*pcVar8;\n      } while (uVar5 != 0);\n    }\n    *puVar6 = 0;\n    uVar1 = dupprintf(PTR_s_1_0_000be3a8 + -0x4e90,puVar4);\n    (**(code **)**(undefined4 **)(param_1 + 0xc))(*(undefined4 **)(param_1 + 0xc),2,0,0,uVar1,0);\n    safefree(uVar1);\n    safefree(puVar4);\n    piVar7 = *(int **)(param_1 + 8);\n    uVar1 = (*(code *)PTR_strlen_000bee74)(pcVar2);\n    (**(code **)(*piVar7 + 8))(piVar7,pcVar2,uVar1);\n    safefree(pcVar2);\n    *(undefined4 *)(param_1 + 0x44) = 1;\n    uVar1 = 0;\n  }\n  else if (param_2 == 0) {\n    (**(code **)(**(int **)(param_1 + 0xc) + 4))\n              (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x50),\n               *(undefined4 *)(param_1 + 0x54),*(undefined4 *)(param_1 + 0x58));\n    uVar1 = 0;\n  }\n  else {\n    uVar1 = 0;\n    if (param_2 != 1) {\n      if (param_2 == 3) {\n        uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 0x10))\n                          (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x6c),\n                           *(undefined4 *)(param_1 + 0x70));\n      }\n      else if (param_2 == 2) {\n        proxy_activate();\n        uVar1 = 1;\n      }\n      else {\n        (**(code **)(**(int **)(param_1 + 0xc) + 4))\n                  (*(int **)(param_1 + 0xc),PTR_s_1_0_000be3a8 + -0x5014,0x1f41);\n        uVar1 = 1;\n      }\n    }\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x44) == -1)" ( (binary_expression "*(int *)(param_1 + 0x44) == -1" (pointer_expression "*(int *)(param_1 + 0x44)" * (cast_expression "(int *)(param_1 + 0x44)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    pcVar2 = (char *)format_telnet_command\n                               (*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                                *(undefined4 *)(param_1 + 0x74));\n    iVar3 = (*(code *)PTR_strlen_000bee74)(pcVar2);\n    puVar4 = (undefined1 *)safemalloc(iVar3 * 4 + 1,1);\n    uVar5 = (uint)*pcVar2;\n    puVar6 = puVar4;\n    if (uVar5 != 0) {\n      puVar9 = PTR_s_1_0_000be3a8 + -0x4e98;\n      pcVar8 = pcVar2;\n      do {\n        if (uVar5 == 10) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x6e;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0xd) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x72;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 9) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x74;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0x5c) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x5c;\n          puVar6 = puVar6 + 2;\n        }\n        else if ((uVar5 & 0xff) - 0x20 < 0x5f) {\n          *puVar6 = (char)uVar5;\n          puVar6 = puVar6 + 1;\n        }\n        else {\n          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);\n          puVar6 = puVar6 + 4;\n        }\n        pcVar8 = pcVar8 + 1;\n        uVar5 = (uint)*pcVar8;\n      } while (uVar5 != 0);\n    }\n    *puVar6 = 0;\n    uVar1 = dupprintf(PTR_s_1_0_000be3a8 + -0x4e90,puVar4);\n    (**(code **)**(undefined4 **)(param_1 + 0xc))(*(undefined4 **)(param_1 + 0xc),2,0,0,uVar1,0);\n    safefree(uVar1);\n    safefree(puVar4);\n    piVar7 = *(int **)(param_1 + 8);\n    uVar1 = (*(code *)PTR_strlen_000bee74)(pcVar2);\n    (**(code **)(*piVar7 + 8))(piVar7,pcVar2,uVar1);\n    safefree(pcVar2);\n    *(undefined4 *)(param_1 + 0x44) = 1;\n    uVar1 = 0;\n  }" { (expression_statement "pcVar2 = (char *)format_telnet_command\n                               (*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                                *(undefined4 *)(param_1 + 0x74));" (assignment_expression "pcVar2 = (char *)format_telnet_command\n                               (*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                                *(undefined4 *)(param_1 + 0x74))" identifier = (cast_expression "(char *)format_telnet_command\n                               (*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                                *(undefined4 *)(param_1 + 0x74))" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "format_telnet_command\n                               (*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                                *(undefined4 *)(param_1 + 0x74))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                                *(undefined4 *)(param_1 + 0x74))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x10)" * (cast_expression "(undefined4 *)(param_1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0x14)" * (cast_expression "(undefined4 *)(param_1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0x74)" * (cast_expression "(undefined4 *)(param_1 + 0x74)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) )))) ))))) ;) (expression_statement "iVar3 = (*(code *)PTR_strlen_000bee74)(pcVar2);" (assignment_expression "iVar3 = (*(code *)PTR_strlen_000bee74)(pcVar2)" identifier = (call_expression "(*(code *)PTR_strlen_000bee74)(pcVar2)" (parenthesized_expression "(*(code *)PTR_strlen_000bee74)" ( (pointer_expression "*(code *)PTR_strlen_000bee74" * (cast_expression "(code *)PTR_strlen_000bee74" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar2)" ( identifier )))) ;) (expression_statement "puVar4 = (undefined1 *)safemalloc(iVar3 * 4 + 1,1);" (assignment_expression "puVar4 = (undefined1 *)safemalloc(iVar3 * 4 + 1,1)" identifier = (cast_expression "(undefined1 *)safemalloc(iVar3 * 4 + 1,1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "safemalloc(iVar3 * 4 + 1,1)" identifier (argument_list "(iVar3 * 4 + 1,1)" ( (binary_expression "iVar3 * 4 + 1" (binary_expression "iVar3 * 4" identifier * number_literal) + number_literal) , number_literal ))))) ;) (expression_statement "uVar5 = (uint)*pcVar2;" (assignment_expression "uVar5 = (uint)*pcVar2" identifier = (binary_expression "(uint)*pcVar2" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "puVar6 = puVar4;" (assignment_expression "puVar6 = puVar4" identifier = identifier) ;) (if_statement "if (uVar5 != 0) {\n      puVar9 = PTR_s_1_0_000be3a8 + -0x4e98;\n      pcVar8 = pcVar2;\n      do {\n        if (uVar5 == 10) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x6e;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0xd) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x72;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 9) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x74;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0x5c) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x5c;\n          puVar6 = puVar6 + 2;\n        }\n        else if ((uVar5 & 0xff) - 0x20 < 0x5f) {\n          *puVar6 = (char)uVar5;\n          puVar6 = puVar6 + 1;\n        }\n        else {\n          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);\n          puVar6 = puVar6 + 4;\n        }\n        pcVar8 = pcVar8 + 1;\n        uVar5 = (uint)*pcVar8;\n      } while (uVar5 != 0);\n    }" if (parenthesized_expression "(uVar5 != 0)" ( (binary_expression "uVar5 != 0" identifier != number_literal) )) (compound_statement "{\n      puVar9 = PTR_s_1_0_000be3a8 + -0x4e98;\n      pcVar8 = pcVar2;\n      do {\n        if (uVar5 == 10) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x6e;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0xd) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x72;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 9) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x74;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0x5c) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x5c;\n          puVar6 = puVar6 + 2;\n        }\n        else if ((uVar5 & 0xff) - 0x20 < 0x5f) {\n          *puVar6 = (char)uVar5;\n          puVar6 = puVar6 + 1;\n        }\n        else {\n          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);\n          puVar6 = puVar6 + 4;\n        }\n        pcVar8 = pcVar8 + 1;\n        uVar5 = (uint)*pcVar8;\n      } while (uVar5 != 0);\n    }" { (expression_statement "puVar9 = PTR_s_1_0_000be3a8 + -0x4e98;" (assignment_expression "puVar9 = PTR_s_1_0_000be3a8 + -0x4e98" identifier = (binary_expression "PTR_s_1_0_000be3a8 + -0x4e98" identifier + number_literal)) ;) (expression_statement "pcVar8 = pcVar2;" (assignment_expression "pcVar8 = pcVar2" identifier = identifier) ;) (do_statement "do {\n        if (uVar5 == 10) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x6e;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0xd) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x72;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 9) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x74;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0x5c) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x5c;\n          puVar6 = puVar6 + 2;\n        }\n        else if ((uVar5 & 0xff) - 0x20 < 0x5f) {\n          *puVar6 = (char)uVar5;\n          puVar6 = puVar6 + 1;\n        }\n        else {\n          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);\n          puVar6 = puVar6 + 4;\n        }\n        pcVar8 = pcVar8 + 1;\n        uVar5 = (uint)*pcVar8;\n      } while (uVar5 != 0);" do (compound_statement "{\n        if (uVar5 == 10) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x6e;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0xd) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x72;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 9) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x74;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0x5c) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x5c;\n          puVar6 = puVar6 + 2;\n        }\n        else if ((uVar5 & 0xff) - 0x20 < 0x5f) {\n          *puVar6 = (char)uVar5;\n          puVar6 = puVar6 + 1;\n        }\n        else {\n          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);\n          puVar6 = puVar6 + 4;\n        }\n        pcVar8 = pcVar8 + 1;\n        uVar5 = (uint)*pcVar8;\n      }" { (if_statement "if (uVar5 == 10) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x6e;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0xd) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x72;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 9) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x74;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0x5c) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x5c;\n          puVar6 = puVar6 + 2;\n        }\n        else if ((uVar5 & 0xff) - 0x20 < 0x5f) {\n          *puVar6 = (char)uVar5;\n          puVar6 = puVar6 + 1;\n        }\n        else {\n          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);\n          puVar6 = puVar6 + 4;\n        }" if (parenthesized_expression "(uVar5 == 10)" ( (binary_expression "uVar5 == 10" identifier == number_literal) )) (compound_statement "{\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x6e;\n          puVar6 = puVar6 + 2;\n        }" { (expression_statement "*puVar6 = 0x5c;" (assignment_expression "*puVar6 = 0x5c" (pointer_expression "*puVar6" * identifier) = number_literal) ;) (expression_statement "puVar6[1] = 0x6e;" (assignment_expression "puVar6[1] = 0x6e" (subscript_expression "puVar6[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar6 = puVar6 + 2;" (assignment_expression "puVar6 = puVar6 + 2" identifier = (binary_expression "puVar6 + 2" identifier + number_literal)) ;) }) (else_clause "else if (uVar5 == 0xd) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x72;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 9) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x74;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0x5c) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x5c;\n          puVar6 = puVar6 + 2;\n        }\n        else if ((uVar5 & 0xff) - 0x20 < 0x5f) {\n          *puVar6 = (char)uVar5;\n          puVar6 = puVar6 + 1;\n        }\n        else {\n          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);\n          puVar6 = puVar6 + 4;\n        }" else (if_statement "if (uVar5 == 0xd) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x72;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 9) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x74;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0x5c) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x5c;\n          puVar6 = puVar6 + 2;\n        }\n        else if ((uVar5 & 0xff) - 0x20 < 0x5f) {\n          *puVar6 = (char)uVar5;\n          puVar6 = puVar6 + 1;\n        }\n        else {\n          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);\n          puVar6 = puVar6 + 4;\n        }" if (parenthesized_expression "(uVar5 == 0xd)" ( (binary_expression "uVar5 == 0xd" identifier == number_literal) )) (compound_statement "{\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x72;\n          puVar6 = puVar6 + 2;\n        }" { (expression_statement "*puVar6 = 0x5c;" (assignment_expression "*puVar6 = 0x5c" (pointer_expression "*puVar6" * identifier) = number_literal) ;) (expression_statement "puVar6[1] = 0x72;" (assignment_expression "puVar6[1] = 0x72" (subscript_expression "puVar6[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar6 = puVar6 + 2;" (assignment_expression "puVar6 = puVar6 + 2" identifier = (binary_expression "puVar6 + 2" identifier + number_literal)) ;) }) (else_clause "else if (uVar5 == 9) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x74;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0x5c) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x5c;\n          puVar6 = puVar6 + 2;\n        }\n        else if ((uVar5 & 0xff) - 0x20 < 0x5f) {\n          *puVar6 = (char)uVar5;\n          puVar6 = puVar6 + 1;\n        }\n        else {\n          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);\n          puVar6 = puVar6 + 4;\n        }" else (if_statement "if (uVar5 == 9) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x74;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0x5c) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x5c;\n          puVar6 = puVar6 + 2;\n        }\n        else if ((uVar5 & 0xff) - 0x20 < 0x5f) {\n          *puVar6 = (char)uVar5;\n          puVar6 = puVar6 + 1;\n        }\n        else {\n          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);\n          puVar6 = puVar6 + 4;\n        }" if (parenthesized_expression "(uVar5 == 9)" ( (binary_expression "uVar5 == 9" identifier == number_literal) )) (compound_statement "{\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x74;\n          puVar6 = puVar6 + 2;\n        }" { (expression_statement "*puVar6 = 0x5c;" (assignment_expression "*puVar6 = 0x5c" (pointer_expression "*puVar6" * identifier) = number_literal) ;) (expression_statement "puVar6[1] = 0x74;" (assignment_expression "puVar6[1] = 0x74" (subscript_expression "puVar6[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar6 = puVar6 + 2;" (assignment_expression "puVar6 = puVar6 + 2" identifier = (binary_expression "puVar6 + 2" identifier + number_literal)) ;) }) (else_clause "else if (uVar5 == 0x5c) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x5c;\n          puVar6 = puVar6 + 2;\n        }\n        else if ((uVar5 & 0xff) - 0x20 < 0x5f) {\n          *puVar6 = (char)uVar5;\n          puVar6 = puVar6 + 1;\n        }\n        else {\n          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);\n          puVar6 = puVar6 + 4;\n        }" else (if_statement "if (uVar5 == 0x5c) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x5c;\n          puVar6 = puVar6 + 2;\n        }\n        else if ((uVar5 & 0xff) - 0x20 < 0x5f) {\n          *puVar6 = (char)uVar5;\n          puVar6 = puVar6 + 1;\n        }\n        else {\n          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);\n          puVar6 = puVar6 + 4;\n        }" if (parenthesized_expression "(uVar5 == 0x5c)" ( (binary_expression "uVar5 == 0x5c" identifier == number_literal) )) (compound_statement "{\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x5c;\n          puVar6 = puVar6 + 2;\n        }" { (expression_statement "*puVar6 = 0x5c;" (assignment_expression "*puVar6 = 0x5c" (pointer_expression "*puVar6" * identifier) = number_literal) ;) (expression_statement "puVar6[1] = 0x5c;" (assignment_expression "puVar6[1] = 0x5c" (subscript_expression "puVar6[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar6 = puVar6 + 2;" (assignment_expression "puVar6 = puVar6 + 2" identifier = (binary_expression "puVar6 + 2" identifier + number_literal)) ;) }) (else_clause "else if ((uVar5 & 0xff) - 0x20 < 0x5f) {\n          *puVar6 = (char)uVar5;\n          puVar6 = puVar6 + 1;\n        }\n        else {\n          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);\n          puVar6 = puVar6 + 4;\n        }" else (if_statement "if ((uVar5 & 0xff) - 0x20 < 0x5f) {\n          *puVar6 = (char)uVar5;\n          puVar6 = puVar6 + 1;\n        }\n        else {\n          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);\n          puVar6 = puVar6 + 4;\n        }" if (parenthesized_expression "((uVar5 & 0xff) - 0x20 < 0x5f)" ( (binary_expression "(uVar5 & 0xff) - 0x20 < 0x5f" (binary_expression "(uVar5 & 0xff) - 0x20" (parenthesized_expression "(uVar5 & 0xff)" ( (binary_expression "uVar5 & 0xff" identifier & number_literal) )) - number_literal) < number_literal) )) (compound_statement "{\n          *puVar6 = (char)uVar5;\n          puVar6 = puVar6 + 1;\n        }" { (expression_statement "*puVar6 = (char)uVar5;" (assignment_expression "*puVar6 = (char)uVar5" (pointer_expression "*puVar6" * identifier) = (cast_expression "(char)uVar5" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "puVar6 = puVar6 + 1;" (assignment_expression "puVar6 = puVar6 + 1" identifier = (binary_expression "puVar6 + 1" identifier + number_literal)) ;) }) (else_clause "else {\n          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);\n          puVar6 = puVar6 + 4;\n        }" else (compound_statement "{\n          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);\n          puVar6 = puVar6 + 4;\n        }" { (expression_statement "(*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);" (call_expression "(*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff)" (parenthesized_expression "(*(code *)PTR___sprintf_chk_000bed48)" ( (pointer_expression "*(code *)PTR___sprintf_chk_000bed48" * (cast_expression "(code *)PTR___sprintf_chk_000bed48" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff)" ( identifier , number_literal , number_literal , identifier , (binary_expression "uVar5 & 0xff" identifier & number_literal) ))) ;) (expression_statement "puVar6 = puVar6 + 4;" (assignment_expression "puVar6 = puVar6 + 4" identifier = (binary_expression "puVar6 + 4" identifier + number_literal)) ;) }))))))))))) (expression_statement "pcVar8 = pcVar8 + 1;" (assignment_expression "pcVar8 = pcVar8 + 1" identifier = (binary_expression "pcVar8 + 1" identifier + number_literal)) ;) (expression_statement "uVar5 = (uint)*pcVar8;" (assignment_expression "uVar5 = (uint)*pcVar8" identifier = (binary_expression "(uint)*pcVar8" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) }) while (parenthesized_expression "(uVar5 != 0)" ( (binary_expression "uVar5 != 0" identifier != number_literal) )) ;) })) (expression_statement "*puVar6 = 0;" (assignment_expression "*puVar6 = 0" (pointer_expression "*puVar6" * identifier) = number_literal) ;) (expression_statement "uVar1 = dupprintf(PTR_s_1_0_000be3a8 + -0x4e90,puVar4);" (assignment_expression "uVar1 = dupprintf(PTR_s_1_0_000be3a8 + -0x4e90,puVar4)" identifier = (call_expression "dupprintf(PTR_s_1_0_000be3a8 + -0x4e90,puVar4)" identifier (argument_list "(PTR_s_1_0_000be3a8 + -0x4e90,puVar4)" ( (binary_expression "PTR_s_1_0_000be3a8 + -0x4e90" identifier + number_literal) , identifier )))) ;) (expression_statement "(**(code **)**(undefined4 **)(param_1 + 0xc))(*(undefined4 **)(param_1 + 0xc),2,0,0,uVar1,0);" (call_expression "(**(code **)**(undefined4 **)(param_1 + 0xc))(*(undefined4 **)(param_1 + 0xc),2,0,0,uVar1,0)" (parenthesized_expression "(**(code **)**(undefined4 **)(param_1 + 0xc))" ( (pointer_expression "**(code **)**(undefined4 **)(param_1 + 0xc)" * (pointer_expression "*(code **)**(undefined4 **)(param_1 + 0xc)" * (cast_expression "(code **)**(undefined4 **)(param_1 + 0xc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "**(undefined4 **)(param_1 + 0xc)" * (pointer_expression "*(undefined4 **)(param_1 + 0xc)" * (cast_expression "(undefined4 **)(param_1 + 0xc)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))))))) )) (argument_list "(*(undefined4 **)(param_1 + 0xc),2,0,0,uVar1,0)" ( (pointer_expression "*(undefined4 **)(param_1 + 0xc)" * (cast_expression "(undefined4 **)(param_1 + 0xc)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) , number_literal , number_literal , number_literal , identifier , number_literal ))) ;) (expression_statement "safefree(uVar1);" (call_expression "safefree(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) (expression_statement "safefree(puVar4);" (call_expression "safefree(puVar4)" identifier (argument_list "(puVar4)" ( identifier ))) ;) (expression_statement "piVar7 = *(int **)(param_1 + 8);" (assignment_expression "piVar7 = *(int **)(param_1 + 8)" identifier = (pointer_expression "*(int **)(param_1 + 8)" * (cast_expression "(int **)(param_1 + 8)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) ;) (expression_statement "uVar1 = (*(code *)PTR_strlen_000bee74)(pcVar2);" (assignment_expression "uVar1 = (*(code *)PTR_strlen_000bee74)(pcVar2)" identifier = (call_expression "(*(code *)PTR_strlen_000bee74)(pcVar2)" (parenthesized_expression "(*(code *)PTR_strlen_000bee74)" ( (pointer_expression "*(code *)PTR_strlen_000bee74" * (cast_expression "(code *)PTR_strlen_000bee74" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar2)" ( identifier )))) ;) (expression_statement "(**(code **)(*piVar7 + 8))(piVar7,pcVar2,uVar1);" (call_expression "(**(code **)(*piVar7 + 8))(piVar7,pcVar2,uVar1)" (parenthesized_expression "(**(code **)(*piVar7 + 8))" ( (pointer_expression "**(code **)(*piVar7 + 8)" * (pointer_expression "*(code **)(*piVar7 + 8)" * (cast_expression "(code **)(*piVar7 + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar7 + 8)" ( (binary_expression "*piVar7 + 8" (pointer_expression "*piVar7" * identifier) + number_literal) ))))) )) (argument_list "(piVar7,pcVar2,uVar1)" ( identifier , identifier , identifier ))) ;) (expression_statement "safefree(pcVar2);" (call_expression "safefree(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier ))) ;) (expression_statement "*(undefined4 *)(param_1 + 0x44) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x44) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x44)" * (cast_expression "(undefined4 *)(param_1 + 0x44)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x44)" ( (binary_expression "param_1 + 0x44" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) }) (else_clause "else if (param_2 == 0) {\n    (**(code **)(**(int **)(param_1 + 0xc) + 4))\n              (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x50),\n               *(undefined4 *)(param_1 + 0x54),*(undefined4 *)(param_1 + 0x58));\n    uVar1 = 0;\n  }\n  else {\n    uVar1 = 0;\n    if (param_2 != 1) {\n      if (param_2 == 3) {\n        uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 0x10))\n                          (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x6c),\n                           *(undefined4 *)(param_1 + 0x70));\n      }\n      else if (param_2 == 2) {\n        proxy_activate();\n        uVar1 = 1;\n      }\n      else {\n        (**(code **)(**(int **)(param_1 + 0xc) + 4))\n                  (*(int **)(param_1 + 0xc),PTR_s_1_0_000be3a8 + -0x5014,0x1f41);\n        uVar1 = 1;\n      }\n    }\n  }" else (if_statement "if (param_2 == 0) {\n    (**(code **)(**(int **)(param_1 + 0xc) + 4))\n              (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x50),\n               *(undefined4 *)(param_1 + 0x54),*(undefined4 *)(param_1 + 0x58));\n    uVar1 = 0;\n  }\n  else {\n    uVar1 = 0;\n    if (param_2 != 1) {\n      if (param_2 == 3) {\n        uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 0x10))\n                          (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x6c),\n                           *(undefined4 *)(param_1 + 0x70));\n      }\n      else if (param_2 == 2) {\n        proxy_activate();\n        uVar1 = 1;\n      }\n      else {\n        (**(code **)(**(int **)(param_1 + 0xc) + 4))\n                  (*(int **)(param_1 + 0xc),PTR_s_1_0_000be3a8 + -0x5014,0x1f41);\n        uVar1 = 1;\n      }\n    }\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    (**(code **)(**(int **)(param_1 + 0xc) + 4))\n              (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x50),\n               *(undefined4 *)(param_1 + 0x54),*(undefined4 *)(param_1 + 0x58));\n    uVar1 = 0;\n  }" { (expression_statement "(**(code **)(**(int **)(param_1 + 0xc) + 4))\n              (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x50),\n               *(undefined4 *)(param_1 + 0x54),*(undefined4 *)(param_1 + 0x58));" (call_expression "(**(code **)(**(int **)(param_1 + 0xc) + 4))\n              (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x50),\n               *(undefined4 *)(param_1 + 0x54),*(undefined4 *)(param_1 + 0x58))" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 0xc) + 4))" ( (pointer_expression "**(code **)(**(int **)(param_1 + 0xc) + 4)" * (pointer_expression "*(code **)(**(int **)(param_1 + 0xc) + 4)" * (cast_expression "(code **)(**(int **)(param_1 + 0xc) + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(param_1 + 0xc) + 4)" ( (binary_expression "**(int **)(param_1 + 0xc) + 4" (pointer_expression "**(int **)(param_1 + 0xc)" * (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x50),\n               *(undefined4 *)(param_1 + 0x54),*(undefined4 *)(param_1 + 0x58))" ( (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0x50)" * (cast_expression "(undefined4 *)(param_1 + 0x50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0x54)" * (cast_expression "(undefined4 *)(param_1 + 0x54)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x54)" ( (binary_expression "param_1 + 0x54" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0x58)" * (cast_expression "(undefined4 *)(param_1 + 0x58)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x58)" ( (binary_expression "param_1 + 0x58" identifier + number_literal) )))) ))) ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    uVar1 = 0;\n    if (param_2 != 1) {\n      if (param_2 == 3) {\n        uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 0x10))\n                          (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x6c),\n                           *(undefined4 *)(param_1 + 0x70));\n      }\n      else if (param_2 == 2) {\n        proxy_activate();\n        uVar1 = 1;\n      }\n      else {\n        (**(code **)(**(int **)(param_1 + 0xc) + 4))\n                  (*(int **)(param_1 + 0xc),PTR_s_1_0_000be3a8 + -0x5014,0x1f41);\n        uVar1 = 1;\n      }\n    }\n  }" else (compound_statement "{\n    uVar1 = 0;\n    if (param_2 != 1) {\n      if (param_2 == 3) {\n        uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 0x10))\n                          (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x6c),\n                           *(undefined4 *)(param_1 + 0x70));\n      }\n      else if (param_2 == 2) {\n        proxy_activate();\n        uVar1 = 1;\n      }\n      else {\n        (**(code **)(**(int **)(param_1 + 0xc) + 4))\n                  (*(int **)(param_1 + 0xc),PTR_s_1_0_000be3a8 + -0x5014,0x1f41);\n        uVar1 = 1;\n      }\n    }\n  }" { (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (if_statement "if (param_2 != 1) {\n      if (param_2 == 3) {\n        uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 0x10))\n                          (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x6c),\n                           *(undefined4 *)(param_1 + 0x70));\n      }\n      else if (param_2 == 2) {\n        proxy_activate();\n        uVar1 = 1;\n      }\n      else {\n        (**(code **)(**(int **)(param_1 + 0xc) + 4))\n                  (*(int **)(param_1 + 0xc),PTR_s_1_0_000be3a8 + -0x5014,0x1f41);\n        uVar1 = 1;\n      }\n    }" if (parenthesized_expression "(param_2 != 1)" ( (binary_expression "param_2 != 1" identifier != number_literal) )) (compound_statement "{\n      if (param_2 == 3) {\n        uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 0x10))\n                          (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x6c),\n                           *(undefined4 *)(param_1 + 0x70));\n      }\n      else if (param_2 == 2) {\n        proxy_activate();\n        uVar1 = 1;\n      }\n      else {\n        (**(code **)(**(int **)(param_1 + 0xc) + 4))\n                  (*(int **)(param_1 + 0xc),PTR_s_1_0_000be3a8 + -0x5014,0x1f41);\n        uVar1 = 1;\n      }\n    }" { (if_statement "if (param_2 == 3) {\n        uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 0x10))\n                          (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x6c),\n                           *(undefined4 *)(param_1 + 0x70));\n      }\n      else if (param_2 == 2) {\n        proxy_activate();\n        uVar1 = 1;\n      }\n      else {\n        (**(code **)(**(int **)(param_1 + 0xc) + 4))\n                  (*(int **)(param_1 + 0xc),PTR_s_1_0_000be3a8 + -0x5014,0x1f41);\n        uVar1 = 1;\n      }" if (parenthesized_expression "(param_2 == 3)" ( (binary_expression "param_2 == 3" identifier == number_literal) )) (compound_statement "{\n        uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 0x10))\n                          (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x6c),\n                           *(undefined4 *)(param_1 + 0x70));\n      }" { (expression_statement "uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 0x10))\n                          (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x6c),\n                           *(undefined4 *)(param_1 + 0x70));" (assignment_expression "uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 0x10))\n                          (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x6c),\n                           *(undefined4 *)(param_1 + 0x70))" identifier = (call_expression "(**(code **)(**(int **)(param_1 + 0xc) + 0x10))\n                          (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x6c),\n                           *(undefined4 *)(param_1 + 0x70))" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 0xc) + 0x10))" ( (pointer_expression "**(code **)(**(int **)(param_1 + 0xc) + 0x10)" * (pointer_expression "*(code **)(**(int **)(param_1 + 0xc) + 0x10)" * (cast_expression "(code **)(**(int **)(param_1 + 0xc) + 0x10)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(param_1 + 0xc) + 0x10)" ( (binary_expression "**(int **)(param_1 + 0xc) + 0x10" (pointer_expression "**(int **)(param_1 + 0xc)" * (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x6c),\n                           *(undefined4 *)(param_1 + 0x70))" ( (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0x6c)" * (cast_expression "(undefined4 *)(param_1 + 0x6c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x6c)" ( (binary_expression "param_1 + 0x6c" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_1 + 0x70)" * (cast_expression "(undefined4 *)(param_1 + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) )))) )))) ;) }) (else_clause "else if (param_2 == 2) {\n        proxy_activate();\n        uVar1 = 1;\n      }\n      else {\n        (**(code **)(**(int **)(param_1 + 0xc) + 4))\n                  (*(int **)(param_1 + 0xc),PTR_s_1_0_000be3a8 + -0x5014,0x1f41);\n        uVar1 = 1;\n      }" else (if_statement "if (param_2 == 2) {\n        proxy_activate();\n        uVar1 = 1;\n      }\n      else {\n        (**(code **)(**(int **)(param_1 + 0xc) + 4))\n                  (*(int **)(param_1 + 0xc),PTR_s_1_0_000be3a8 + -0x5014,0x1f41);\n        uVar1 = 1;\n      }" if (parenthesized_expression "(param_2 == 2)" ( (binary_expression "param_2 == 2" identifier == number_literal) )) (compound_statement "{\n        proxy_activate();\n        uVar1 = 1;\n      }" { (expression_statement "proxy_activate();" (call_expression "proxy_activate()" identifier (argument_list "()" ( ))) ;) (expression_statement "uVar1 = 1;" (assignment_expression "uVar1 = 1" identifier = number_literal) ;) }) (else_clause "else {\n        (**(code **)(**(int **)(param_1 + 0xc) + 4))\n                  (*(int **)(param_1 + 0xc),PTR_s_1_0_000be3a8 + -0x5014,0x1f41);\n        uVar1 = 1;\n      }" else (compound_statement "{\n        (**(code **)(**(int **)(param_1 + 0xc) + 4))\n                  (*(int **)(param_1 + 0xc),PTR_s_1_0_000be3a8 + -0x5014,0x1f41);\n        uVar1 = 1;\n      }" { (expression_statement "(**(code **)(**(int **)(param_1 + 0xc) + 4))\n                  (*(int **)(param_1 + 0xc),PTR_s_1_0_000be3a8 + -0x5014,0x1f41);" (call_expression "(**(code **)(**(int **)(param_1 + 0xc) + 4))\n                  (*(int **)(param_1 + 0xc),PTR_s_1_0_000be3a8 + -0x5014,0x1f41)" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 0xc) + 4))" ( (pointer_expression "**(code **)(**(int **)(param_1 + 0xc) + 4)" * (pointer_expression "*(code **)(**(int **)(param_1 + 0xc) + 4)" * (cast_expression "(code **)(**(int **)(param_1 + 0xc) + 4)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(param_1 + 0xc) + 4)" ( (binary_expression "**(int **)(param_1 + 0xc) + 4" (pointer_expression "**(int **)(param_1 + 0xc)" * (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "(*(int **)(param_1 + 0xc),PTR_s_1_0_000be3a8 + -0x5014,0x1f41)" ( (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) , (binary_expression "PTR_s_1_0_000be3a8 + -0x5014" identifier + number_literal) , number_literal ))) ;) (expression_statement "uVar1 = 1;" (assignment_expression "uVar1 = 1" identifier = number_literal) ;) }))))) })) }))))) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression (binary_expression IDENT * LIT) + LIT) , LIT ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) - LIT) < LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , LIT , IDENT , (binary_expression IDENT & LIT) ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }))))))))))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , LIT , LIT , LIT , IDENT , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (binary_expression IDENT + LIT) , LIT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))))) })) }))))) (return_statement return IDENT ;) })))
(function_definition "undefined4 proxy_telnet_negotiate(int param_1,int param_2)\n\n{\n  undefined4 uVar1;\n  char *pcVar2;\n  int iVar3;\n  undefined1 *puVar4;\n  uint uVar5;\n  undefined1 *puVar6;\n  int *piVar7;\n  char *pcVar8;\n  undefined *puVar9;\n  \n  if (*(int *)(param_1 + 0x44) == -1) {\n    pcVar2 = (char *)format_telnet_command\n                               (*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                                *(undefined4 *)(param_1 + 0x74));\n    iVar3 = (*(code *)PTR_strlen_000bee74)(pcVar2);\n    puVar4 = (undefined1 *)safemalloc(iVar3 * 4 + 1,1);\n    uVar5 = (uint)*pcVar2;\n    puVar6 = puVar4;\n    if (uVar5 != 0) {\n      puVar9 = PTR_s_1_0_000be3a8 + -0x4e98;\n      pcVar8 = pcVar2;\n      do {\n        if (uVar5 == 10) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x6e;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0xd) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x72;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 9) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x74;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0x5c) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x5c;\n          puVar6 = puVar6 + 2;\n        }\n        else if ((uVar5 & 0xff) - 0x20 < 0x5f) {\n          *puVar6 = (char)uVar5;\n          puVar6 = puVar6 + 1;\n        }\n        else {\n          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);\n          puVar6 = puVar6 + 4;\n        }\n        pcVar8 = pcVar8 + 1;\n        uVar5 = (uint)*pcVar8;\n      } while (uVar5 != 0);\n    }\n    *puVar6 = 0;\n    uVar1 = dupprintf(PTR_s_1_0_000be3a8 + -0x4e90,puVar4);\n    (**(code **)**(undefined4 **)(param_1 + 0xc))(*(undefined4 **)(param_1 + 0xc),2,0,0,uVar1,0);\n    safefree(uVar1);\n    safefree(puVar4);\n    piVar7 = *(int **)(param_1 + 8);\n    uVar1 = (*(code *)PTR_strlen_000bee74)(pcVar2);\n    (**(code **)(*piVar7 + 8))(piVar7,pcVar2,uVar1);\n    safefree(pcVar2);\n    *(undefined4 *)(param_1 + 0x44) = 1;\n    uVar1 = 0;\n  }\n  else if (param_2 == 0) {\n    (**(code **)(**(int **)(param_1 + 0xc) + 4))\n              (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x50),\n               *(undefined4 *)(param_1 + 0x54),*(undefined4 *)(param_1 + 0x58));\n    uVar1 = 0;\n  }\n  else {\n    uVar1 = 0;\n    if (param_2 != 1) {\n      if (param_2 == 3) {\n        uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 0x10))\n                          (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x6c),\n                           *(undefined4 *)(param_1 + 0x70));\n      }\n      else if (param_2 == 2) {\n        proxy_activate();\n        uVar1 = 1;\n      }\n      else {\n        (**(code **)(**(int **)(param_1 + 0xc) + 4))\n                  (*(int **)(param_1 + 0xc),PTR_s_1_0_000be3a8 + -0x5014,0x1f41);\n        uVar1 = 1;\n      }\n    }\n  }\n  return uVar1;\n}" (type_identifier "undefined4") (function_declarator "proxy_telnet_negotiate(int param_1,int param_2)" (identifier "proxy_telnet_negotiate") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  char *pcVar2;\n  int iVar3;\n  undefined1 *puVar4;\n  uint uVar5;\n  undefined1 *puVar6;\n  int *piVar7;\n  char *pcVar8;\n  undefined *puVar9;\n  \n  if (*(int *)(param_1 + 0x44) == -1) {\n    pcVar2 = (char *)format_telnet_command\n                               (*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                                *(undefined4 *)(param_1 + 0x74));\n    iVar3 = (*(code *)PTR_strlen_000bee74)(pcVar2);\n    puVar4 = (undefined1 *)safemalloc(iVar3 * 4 + 1,1);\n    uVar5 = (uint)*pcVar2;\n    puVar6 = puVar4;\n    if (uVar5 != 0) {\n      puVar9 = PTR_s_1_0_000be3a8 + -0x4e98;\n      pcVar8 = pcVar2;\n      do {\n        if (uVar5 == 10) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x6e;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0xd) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x72;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 9) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x74;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0x5c) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x5c;\n          puVar6 = puVar6 + 2;\n        }\n        else if ((uVar5 & 0xff) - 0x20 < 0x5f) {\n          *puVar6 = (char)uVar5;\n          puVar6 = puVar6 + 1;\n        }\n        else {\n          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);\n          puVar6 = puVar6 + 4;\n        }\n        pcVar8 = pcVar8 + 1;\n        uVar5 = (uint)*pcVar8;\n      } while (uVar5 != 0);\n    }\n    *puVar6 = 0;\n    uVar1 = dupprintf(PTR_s_1_0_000be3a8 + -0x4e90,puVar4);\n    (**(code **)**(undefined4 **)(param_1 + 0xc))(*(undefined4 **)(param_1 + 0xc),2,0,0,uVar1,0);\n    safefree(uVar1);\n    safefree(puVar4);\n    piVar7 = *(int **)(param_1 + 8);\n    uVar1 = (*(code *)PTR_strlen_000bee74)(pcVar2);\n    (**(code **)(*piVar7 + 8))(piVar7,pcVar2,uVar1);\n    safefree(pcVar2);\n    *(undefined4 *)(param_1 + 0x44) = 1;\n    uVar1 = 0;\n  }\n  else if (param_2 == 0) {\n    (**(code **)(**(int **)(param_1 + 0xc) + 4))\n              (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x50),\n               *(undefined4 *)(param_1 + 0x54),*(undefined4 *)(param_1 + 0x58));\n    uVar1 = 0;\n  }\n  else {\n    uVar1 = 0;\n    if (param_2 != 1) {\n      if (param_2 == 3) {\n        uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 0x10))\n                          (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x6c),\n                           *(undefined4 *)(param_1 + 0x70));\n      }\n      else if (param_2 == 2) {\n        proxy_activate();\n        uVar1 = 1;\n      }\n      else {\n        (**(code **)(**(int **)(param_1 + 0xc) + 4))\n                  (*(int **)(param_1 + 0xc),PTR_s_1_0_000be3a8 + -0x5014,0x1f41);\n        uVar1 = 1;\n      }\n    }\n  }\n  return uVar1;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined1 *puVar4;" (type_identifier "undefined1") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "undefined1 *puVar6;" (type_identifier "undefined1") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "int *piVar7;" (primitive_type "int") (pointer_declarator "*piVar7" (* "*") (identifier "piVar7")) (; ";")) (declaration "char *pcVar8;" (primitive_type "char") (pointer_declarator "*pcVar8" (* "*") (identifier "pcVar8")) (; ";")) (declaration "undefined *puVar9;" (type_identifier "undefined") (pointer_declarator "*puVar9" (* "*") (identifier "puVar9")) (; ";")) (if_statement "if (*(int *)(param_1 + 0x44) == -1) {\n    pcVar2 = (char *)format_telnet_command\n                               (*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                                *(undefined4 *)(param_1 + 0x74));\n    iVar3 = (*(code *)PTR_strlen_000bee74)(pcVar2);\n    puVar4 = (undefined1 *)safemalloc(iVar3 * 4 + 1,1);\n    uVar5 = (uint)*pcVar2;\n    puVar6 = puVar4;\n    if (uVar5 != 0) {\n      puVar9 = PTR_s_1_0_000be3a8 + -0x4e98;\n      pcVar8 = pcVar2;\n      do {\n        if (uVar5 == 10) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x6e;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0xd) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x72;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 9) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x74;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0x5c) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x5c;\n          puVar6 = puVar6 + 2;\n        }\n        else if ((uVar5 & 0xff) - 0x20 < 0x5f) {\n          *puVar6 = (char)uVar5;\n          puVar6 = puVar6 + 1;\n        }\n        else {\n          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);\n          puVar6 = puVar6 + 4;\n        }\n        pcVar8 = pcVar8 + 1;\n        uVar5 = (uint)*pcVar8;\n      } while (uVar5 != 0);\n    }\n    *puVar6 = 0;\n    uVar1 = dupprintf(PTR_s_1_0_000be3a8 + -0x4e90,puVar4);\n    (**(code **)**(undefined4 **)(param_1 + 0xc))(*(undefined4 **)(param_1 + 0xc),2,0,0,uVar1,0);\n    safefree(uVar1);\n    safefree(puVar4);\n    piVar7 = *(int **)(param_1 + 8);\n    uVar1 = (*(code *)PTR_strlen_000bee74)(pcVar2);\n    (**(code **)(*piVar7 + 8))(piVar7,pcVar2,uVar1);\n    safefree(pcVar2);\n    *(undefined4 *)(param_1 + 0x44) = 1;\n    uVar1 = 0;\n  }\n  else if (param_2 == 0) {\n    (**(code **)(**(int **)(param_1 + 0xc) + 4))\n              (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x50),\n               *(undefined4 *)(param_1 + 0x54),*(undefined4 *)(param_1 + 0x58));\n    uVar1 = 0;\n  }\n  else {\n    uVar1 = 0;\n    if (param_2 != 1) {\n      if (param_2 == 3) {\n        uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 0x10))\n                          (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x6c),\n                           *(undefined4 *)(param_1 + 0x70));\n      }\n      else if (param_2 == 2) {\n        proxy_activate();\n        uVar1 = 1;\n      }\n      else {\n        (**(code **)(**(int **)(param_1 + 0xc) + 4))\n                  (*(int **)(param_1 + 0xc),PTR_s_1_0_000be3a8 + -0x5014,0x1f41);\n        uVar1 = 1;\n      }\n    }\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x44) == -1)" (( "(") (binary_expression "*(int *)(param_1 + 0x44) == -1" (pointer_expression "*(int *)(param_1 + 0x44)" (* "*") (cast_expression "(int *)(param_1 + 0x44)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x44)" (( "(") (binary_expression "param_1 + 0x44" (identifier "param_1") (+ "+") (number_literal "0x44")) () ")")))) (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n    pcVar2 = (char *)format_telnet_command\n                               (*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                                *(undefined4 *)(param_1 + 0x74));\n    iVar3 = (*(code *)PTR_strlen_000bee74)(pcVar2);\n    puVar4 = (undefined1 *)safemalloc(iVar3 * 4 + 1,1);\n    uVar5 = (uint)*pcVar2;\n    puVar6 = puVar4;\n    if (uVar5 != 0) {\n      puVar9 = PTR_s_1_0_000be3a8 + -0x4e98;\n      pcVar8 = pcVar2;\n      do {\n        if (uVar5 == 10) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x6e;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0xd) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x72;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 9) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x74;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0x5c) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x5c;\n          puVar6 = puVar6 + 2;\n        }\n        else if ((uVar5 & 0xff) - 0x20 < 0x5f) {\n          *puVar6 = (char)uVar5;\n          puVar6 = puVar6 + 1;\n        }\n        else {\n          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);\n          puVar6 = puVar6 + 4;\n        }\n        pcVar8 = pcVar8 + 1;\n        uVar5 = (uint)*pcVar8;\n      } while (uVar5 != 0);\n    }\n    *puVar6 = 0;\n    uVar1 = dupprintf(PTR_s_1_0_000be3a8 + -0x4e90,puVar4);\n    (**(code **)**(undefined4 **)(param_1 + 0xc))(*(undefined4 **)(param_1 + 0xc),2,0,0,uVar1,0);\n    safefree(uVar1);\n    safefree(puVar4);\n    piVar7 = *(int **)(param_1 + 8);\n    uVar1 = (*(code *)PTR_strlen_000bee74)(pcVar2);\n    (**(code **)(*piVar7 + 8))(piVar7,pcVar2,uVar1);\n    safefree(pcVar2);\n    *(undefined4 *)(param_1 + 0x44) = 1;\n    uVar1 = 0;\n  }" ({ "{") (expression_statement "pcVar2 = (char *)format_telnet_command\n                               (*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                                *(undefined4 *)(param_1 + 0x74));" (assignment_expression "pcVar2 = (char *)format_telnet_command\n                               (*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                                *(undefined4 *)(param_1 + 0x74))" (identifier "pcVar2") (= "=") (cast_expression "(char *)format_telnet_command\n                               (*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                                *(undefined4 *)(param_1 + 0x74))" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "format_telnet_command\n                               (*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                                *(undefined4 *)(param_1 + 0x74))" (identifier "format_telnet_command") (argument_list "(*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),\n                                *(undefined4 *)(param_1 + 0x74))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x74)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x74)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x74)" (( "(") (binary_expression "param_1 + 0x74" (identifier "param_1") (+ "+") (number_literal "0x74")) () ")")))) () ")"))))) (; ";")) (expression_statement "iVar3 = (*(code *)PTR_strlen_000bee74)(pcVar2);" (assignment_expression "iVar3 = (*(code *)PTR_strlen_000bee74)(pcVar2)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_strlen_000bee74)(pcVar2)" (parenthesized_expression "(*(code *)PTR_strlen_000bee74)" (( "(") (pointer_expression "*(code *)PTR_strlen_000bee74" (* "*") (cast_expression "(code *)PTR_strlen_000bee74" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_000bee74"))) () ")")) (argument_list "(pcVar2)" (( "(") (identifier "pcVar2") () ")")))) (; ";")) (expression_statement "puVar4 = (undefined1 *)safemalloc(iVar3 * 4 + 1,1);" (assignment_expression "puVar4 = (undefined1 *)safemalloc(iVar3 * 4 + 1,1)" (identifier "puVar4") (= "=") (cast_expression "(undefined1 *)safemalloc(iVar3 * 4 + 1,1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "safemalloc(iVar3 * 4 + 1,1)" (identifier "safemalloc") (argument_list "(iVar3 * 4 + 1,1)" (( "(") (binary_expression "iVar3 * 4 + 1" (binary_expression "iVar3 * 4" (identifier "iVar3") (* "*") (number_literal "4")) (+ "+") (number_literal "1")) (, ",") (number_literal "1") () ")"))))) (; ";")) (expression_statement "uVar5 = (uint)*pcVar2;" (assignment_expression "uVar5 = (uint)*pcVar2" (identifier "uVar5") (= "=") (binary_expression "(uint)*pcVar2" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pcVar2"))) (; ";")) (expression_statement "puVar6 = puVar4;" (assignment_expression "puVar6 = puVar4" (identifier "puVar6") (= "=") (identifier "puVar4")) (; ";")) (if_statement "if (uVar5 != 0) {\n      puVar9 = PTR_s_1_0_000be3a8 + -0x4e98;\n      pcVar8 = pcVar2;\n      do {\n        if (uVar5 == 10) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x6e;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0xd) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x72;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 9) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x74;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0x5c) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x5c;\n          puVar6 = puVar6 + 2;\n        }\n        else if ((uVar5 & 0xff) - 0x20 < 0x5f) {\n          *puVar6 = (char)uVar5;\n          puVar6 = puVar6 + 1;\n        }\n        else {\n          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);\n          puVar6 = puVar6 + 4;\n        }\n        pcVar8 = pcVar8 + 1;\n        uVar5 = (uint)*pcVar8;\n      } while (uVar5 != 0);\n    }" (if "if") (parenthesized_expression "(uVar5 != 0)" (( "(") (binary_expression "uVar5 != 0" (identifier "uVar5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      puVar9 = PTR_s_1_0_000be3a8 + -0x4e98;\n      pcVar8 = pcVar2;\n      do {\n        if (uVar5 == 10) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x6e;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0xd) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x72;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 9) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x74;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0x5c) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x5c;\n          puVar6 = puVar6 + 2;\n        }\n        else if ((uVar5 & 0xff) - 0x20 < 0x5f) {\n          *puVar6 = (char)uVar5;\n          puVar6 = puVar6 + 1;\n        }\n        else {\n          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);\n          puVar6 = puVar6 + 4;\n        }\n        pcVar8 = pcVar8 + 1;\n        uVar5 = (uint)*pcVar8;\n      } while (uVar5 != 0);\n    }" ({ "{") (expression_statement "puVar9 = PTR_s_1_0_000be3a8 + -0x4e98;" (assignment_expression "puVar9 = PTR_s_1_0_000be3a8 + -0x4e98" (identifier "puVar9") (= "=") (binary_expression "PTR_s_1_0_000be3a8 + -0x4e98" (identifier "PTR_s_1_0_000be3a8") (+ "+") (number_literal "-0x4e98"))) (; ";")) (expression_statement "pcVar8 = pcVar2;" (assignment_expression "pcVar8 = pcVar2" (identifier "pcVar8") (= "=") (identifier "pcVar2")) (; ";")) (do_statement "do {\n        if (uVar5 == 10) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x6e;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0xd) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x72;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 9) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x74;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0x5c) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x5c;\n          puVar6 = puVar6 + 2;\n        }\n        else if ((uVar5 & 0xff) - 0x20 < 0x5f) {\n          *puVar6 = (char)uVar5;\n          puVar6 = puVar6 + 1;\n        }\n        else {\n          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);\n          puVar6 = puVar6 + 4;\n        }\n        pcVar8 = pcVar8 + 1;\n        uVar5 = (uint)*pcVar8;\n      } while (uVar5 != 0);" (do "do") (compound_statement "{\n        if (uVar5 == 10) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x6e;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0xd) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x72;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 9) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x74;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0x5c) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x5c;\n          puVar6 = puVar6 + 2;\n        }\n        else if ((uVar5 & 0xff) - 0x20 < 0x5f) {\n          *puVar6 = (char)uVar5;\n          puVar6 = puVar6 + 1;\n        }\n        else {\n          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);\n          puVar6 = puVar6 + 4;\n        }\n        pcVar8 = pcVar8 + 1;\n        uVar5 = (uint)*pcVar8;\n      }" ({ "{") (if_statement "if (uVar5 == 10) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x6e;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0xd) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x72;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 9) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x74;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0x5c) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x5c;\n          puVar6 = puVar6 + 2;\n        }\n        else if ((uVar5 & 0xff) - 0x20 < 0x5f) {\n          *puVar6 = (char)uVar5;\n          puVar6 = puVar6 + 1;\n        }\n        else {\n          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);\n          puVar6 = puVar6 + 4;\n        }" (if "if") (parenthesized_expression "(uVar5 == 10)" (( "(") (binary_expression "uVar5 == 10" (identifier "uVar5") (== "==") (number_literal "10")) () ")")) (compound_statement "{\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x6e;\n          puVar6 = puVar6 + 2;\n        }" ({ "{") (expression_statement "*puVar6 = 0x5c;" (assignment_expression "*puVar6 = 0x5c" (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) (= "=") (number_literal "0x5c")) (; ";")) (expression_statement "puVar6[1] = 0x6e;" (assignment_expression "puVar6[1] = 0x6e" (subscript_expression "puVar6[1]" (identifier "puVar6") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0x6e")) (; ";")) (expression_statement "puVar6 = puVar6 + 2;" (assignment_expression "puVar6 = puVar6 + 2" (identifier "puVar6") (= "=") (binary_expression "puVar6 + 2" (identifier "puVar6") (+ "+") (number_literal "2"))) (; ";")) (} "}")) (else_clause "else if (uVar5 == 0xd) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x72;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 9) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x74;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0x5c) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x5c;\n          puVar6 = puVar6 + 2;\n        }\n        else if ((uVar5 & 0xff) - 0x20 < 0x5f) {\n          *puVar6 = (char)uVar5;\n          puVar6 = puVar6 + 1;\n        }\n        else {\n          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);\n          puVar6 = puVar6 + 4;\n        }" (else "else") (if_statement "if (uVar5 == 0xd) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x72;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 9) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x74;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0x5c) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x5c;\n          puVar6 = puVar6 + 2;\n        }\n        else if ((uVar5 & 0xff) - 0x20 < 0x5f) {\n          *puVar6 = (char)uVar5;\n          puVar6 = puVar6 + 1;\n        }\n        else {\n          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);\n          puVar6 = puVar6 + 4;\n        }" (if "if") (parenthesized_expression "(uVar5 == 0xd)" (( "(") (binary_expression "uVar5 == 0xd" (identifier "uVar5") (== "==") (number_literal "0xd")) () ")")) (compound_statement "{\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x72;\n          puVar6 = puVar6 + 2;\n        }" ({ "{") (expression_statement "*puVar6 = 0x5c;" (assignment_expression "*puVar6 = 0x5c" (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) (= "=") (number_literal "0x5c")) (; ";")) (expression_statement "puVar6[1] = 0x72;" (assignment_expression "puVar6[1] = 0x72" (subscript_expression "puVar6[1]" (identifier "puVar6") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0x72")) (; ";")) (expression_statement "puVar6 = puVar6 + 2;" (assignment_expression "puVar6 = puVar6 + 2" (identifier "puVar6") (= "=") (binary_expression "puVar6 + 2" (identifier "puVar6") (+ "+") (number_literal "2"))) (; ";")) (} "}")) (else_clause "else if (uVar5 == 9) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x74;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0x5c) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x5c;\n          puVar6 = puVar6 + 2;\n        }\n        else if ((uVar5 & 0xff) - 0x20 < 0x5f) {\n          *puVar6 = (char)uVar5;\n          puVar6 = puVar6 + 1;\n        }\n        else {\n          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);\n          puVar6 = puVar6 + 4;\n        }" (else "else") (if_statement "if (uVar5 == 9) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x74;\n          puVar6 = puVar6 + 2;\n        }\n        else if (uVar5 == 0x5c) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x5c;\n          puVar6 = puVar6 + 2;\n        }\n        else if ((uVar5 & 0xff) - 0x20 < 0x5f) {\n          *puVar6 = (char)uVar5;\n          puVar6 = puVar6 + 1;\n        }\n        else {\n          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);\n          puVar6 = puVar6 + 4;\n        }" (if "if") (parenthesized_expression "(uVar5 == 9)" (( "(") (binary_expression "uVar5 == 9" (identifier "uVar5") (== "==") (number_literal "9")) () ")")) (compound_statement "{\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x74;\n          puVar6 = puVar6 + 2;\n        }" ({ "{") (expression_statement "*puVar6 = 0x5c;" (assignment_expression "*puVar6 = 0x5c" (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) (= "=") (number_literal "0x5c")) (; ";")) (expression_statement "puVar6[1] = 0x74;" (assignment_expression "puVar6[1] = 0x74" (subscript_expression "puVar6[1]" (identifier "puVar6") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0x74")) (; ";")) (expression_statement "puVar6 = puVar6 + 2;" (assignment_expression "puVar6 = puVar6 + 2" (identifier "puVar6") (= "=") (binary_expression "puVar6 + 2" (identifier "puVar6") (+ "+") (number_literal "2"))) (; ";")) (} "}")) (else_clause "else if (uVar5 == 0x5c) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x5c;\n          puVar6 = puVar6 + 2;\n        }\n        else if ((uVar5 & 0xff) - 0x20 < 0x5f) {\n          *puVar6 = (char)uVar5;\n          puVar6 = puVar6 + 1;\n        }\n        else {\n          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);\n          puVar6 = puVar6 + 4;\n        }" (else "else") (if_statement "if (uVar5 == 0x5c) {\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x5c;\n          puVar6 = puVar6 + 2;\n        }\n        else if ((uVar5 & 0xff) - 0x20 < 0x5f) {\n          *puVar6 = (char)uVar5;\n          puVar6 = puVar6 + 1;\n        }\n        else {\n          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);\n          puVar6 = puVar6 + 4;\n        }" (if "if") (parenthesized_expression "(uVar5 == 0x5c)" (( "(") (binary_expression "uVar5 == 0x5c" (identifier "uVar5") (== "==") (number_literal "0x5c")) () ")")) (compound_statement "{\n          *puVar6 = 0x5c;\n          puVar6[1] = 0x5c;\n          puVar6 = puVar6 + 2;\n        }" ({ "{") (expression_statement "*puVar6 = 0x5c;" (assignment_expression "*puVar6 = 0x5c" (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) (= "=") (number_literal "0x5c")) (; ";")) (expression_statement "puVar6[1] = 0x5c;" (assignment_expression "puVar6[1] = 0x5c" (subscript_expression "puVar6[1]" (identifier "puVar6") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0x5c")) (; ";")) (expression_statement "puVar6 = puVar6 + 2;" (assignment_expression "puVar6 = puVar6 + 2" (identifier "puVar6") (= "=") (binary_expression "puVar6 + 2" (identifier "puVar6") (+ "+") (number_literal "2"))) (; ";")) (} "}")) (else_clause "else if ((uVar5 & 0xff) - 0x20 < 0x5f) {\n          *puVar6 = (char)uVar5;\n          puVar6 = puVar6 + 1;\n        }\n        else {\n          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);\n          puVar6 = puVar6 + 4;\n        }" (else "else") (if_statement "if ((uVar5 & 0xff) - 0x20 < 0x5f) {\n          *puVar6 = (char)uVar5;\n          puVar6 = puVar6 + 1;\n        }\n        else {\n          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);\n          puVar6 = puVar6 + 4;\n        }" (if "if") (parenthesized_expression "((uVar5 & 0xff) - 0x20 < 0x5f)" (( "(") (binary_expression "(uVar5 & 0xff) - 0x20 < 0x5f" (binary_expression "(uVar5 & 0xff) - 0x20" (parenthesized_expression "(uVar5 & 0xff)" (( "(") (binary_expression "uVar5 & 0xff" (identifier "uVar5") (& "&") (number_literal "0xff")) () ")")) (- "-") (number_literal "0x20")) (< "<") (number_literal "0x5f")) () ")")) (compound_statement "{\n          *puVar6 = (char)uVar5;\n          puVar6 = puVar6 + 1;\n        }" ({ "{") (expression_statement "*puVar6 = (char)uVar5;" (assignment_expression "*puVar6 = (char)uVar5" (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) (= "=") (cast_expression "(char)uVar5" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "uVar5"))) (; ";")) (expression_statement "puVar6 = puVar6 + 1;" (assignment_expression "puVar6 = puVar6 + 1" (identifier "puVar6") (= "=") (binary_expression "puVar6 + 1" (identifier "puVar6") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (else_clause "else {\n          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);\n          puVar6 = puVar6 + 4;\n        }" (else "else") (compound_statement "{\n          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);\n          puVar6 = puVar6 + 4;\n        }" ({ "{") (expression_statement "(*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);" (call_expression "(*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff)" (parenthesized_expression "(*(code *)PTR___sprintf_chk_000bed48)" (( "(") (pointer_expression "*(code *)PTR___sprintf_chk_000bed48" (* "*") (cast_expression "(code *)PTR___sprintf_chk_000bed48" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___sprintf_chk_000bed48"))) () ")")) (argument_list "(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff)" (( "(") (identifier "puVar6") (, ",") (number_literal "1") (, ",") (number_literal "0xffffffff") (, ",") (identifier "puVar9") (, ",") (binary_expression "uVar5 & 0xff" (identifier "uVar5") (& "&") (number_literal "0xff")) () ")"))) (; ";")) (expression_statement "puVar6 = puVar6 + 4;" (assignment_expression "puVar6 = puVar6 + 4" (identifier "puVar6") (= "=") (binary_expression "puVar6 + 4" (identifier "puVar6") (+ "+") (number_literal "4"))) (; ";")) (} "}")))))))))))) (expression_statement "pcVar8 = pcVar8 + 1;" (assignment_expression "pcVar8 = pcVar8 + 1" (identifier "pcVar8") (= "=") (binary_expression "pcVar8 + 1" (identifier "pcVar8") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar5 = (uint)*pcVar8;" (assignment_expression "uVar5 = (uint)*pcVar8" (identifier "uVar5") (= "=") (binary_expression "(uint)*pcVar8" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pcVar8"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar5 != 0)" (( "(") (binary_expression "uVar5 != 0" (identifier "uVar5") (!= "!=") (number_literal "0")) () ")")) (; ";")) (} "}"))) (expression_statement "*puVar6 = 0;" (assignment_expression "*puVar6 = 0" (pointer_expression "*puVar6" (* "*") (identifier "puVar6")) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar1 = dupprintf(PTR_s_1_0_000be3a8 + -0x4e90,puVar4);" (assignment_expression "uVar1 = dupprintf(PTR_s_1_0_000be3a8 + -0x4e90,puVar4)" (identifier "uVar1") (= "=") (call_expression "dupprintf(PTR_s_1_0_000be3a8 + -0x4e90,puVar4)" (identifier "dupprintf") (argument_list "(PTR_s_1_0_000be3a8 + -0x4e90,puVar4)" (( "(") (binary_expression "PTR_s_1_0_000be3a8 + -0x4e90" (identifier "PTR_s_1_0_000be3a8") (+ "+") (number_literal "-0x4e90")) (, ",") (identifier "puVar4") () ")")))) (; ";")) (expression_statement "(**(code **)**(undefined4 **)(param_1 + 0xc))(*(undefined4 **)(param_1 + 0xc),2,0,0,uVar1,0);" (call_expression "(**(code **)**(undefined4 **)(param_1 + 0xc))(*(undefined4 **)(param_1 + 0xc),2,0,0,uVar1,0)" (parenthesized_expression "(**(code **)**(undefined4 **)(param_1 + 0xc))" (( "(") (pointer_expression "**(code **)**(undefined4 **)(param_1 + 0xc)" (* "*") (pointer_expression "*(code **)**(undefined4 **)(param_1 + 0xc)" (* "*") (cast_expression "(code **)**(undefined4 **)(param_1 + 0xc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (pointer_expression "**(undefined4 **)(param_1 + 0xc)" (* "*") (pointer_expression "*(undefined4 **)(param_1 + 0xc)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))))))) () ")")) (argument_list "(*(undefined4 **)(param_1 + 0xc),2,0,0,uVar1,0)" (( "(") (pointer_expression "*(undefined4 **)(param_1 + 0xc)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (, ",") (number_literal "2") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (identifier "uVar1") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "safefree(uVar1);" (call_expression "safefree(uVar1)" (identifier "safefree") (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")"))) (; ";")) (expression_statement "safefree(puVar4);" (call_expression "safefree(puVar4)" (identifier "safefree") (argument_list "(puVar4)" (( "(") (identifier "puVar4") () ")"))) (; ";")) (expression_statement "piVar7 = *(int **)(param_1 + 8);" (assignment_expression "piVar7 = *(int **)(param_1 + 8)" (identifier "piVar7") (= "=") (pointer_expression "*(int **)(param_1 + 8)" (* "*") (cast_expression "(int **)(param_1 + 8)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "uVar1 = (*(code *)PTR_strlen_000bee74)(pcVar2);" (assignment_expression "uVar1 = (*(code *)PTR_strlen_000bee74)(pcVar2)" (identifier "uVar1") (= "=") (call_expression "(*(code *)PTR_strlen_000bee74)(pcVar2)" (parenthesized_expression "(*(code *)PTR_strlen_000bee74)" (( "(") (pointer_expression "*(code *)PTR_strlen_000bee74" (* "*") (cast_expression "(code *)PTR_strlen_000bee74" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_000bee74"))) () ")")) (argument_list "(pcVar2)" (( "(") (identifier "pcVar2") () ")")))) (; ";")) (expression_statement "(**(code **)(*piVar7 + 8))(piVar7,pcVar2,uVar1);" (call_expression "(**(code **)(*piVar7 + 8))(piVar7,pcVar2,uVar1)" (parenthesized_expression "(**(code **)(*piVar7 + 8))" (( "(") (pointer_expression "**(code **)(*piVar7 + 8)" (* "*") (pointer_expression "*(code **)(*piVar7 + 8)" (* "*") (cast_expression "(code **)(*piVar7 + 8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar7 + 8)" (( "(") (binary_expression "*piVar7 + 8" (pointer_expression "*piVar7" (* "*") (identifier "piVar7")) (+ "+") (number_literal "8")) () ")"))))) () ")")) (argument_list "(piVar7,pcVar2,uVar1)" (( "(") (identifier "piVar7") (, ",") (identifier "pcVar2") (, ",") (identifier "uVar1") () ")"))) (; ";")) (expression_statement "safefree(pcVar2);" (call_expression "safefree(pcVar2)" (identifier "safefree") (argument_list "(pcVar2)" (( "(") (identifier "pcVar2") () ")"))) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 0x44) = 1;" (assignment_expression "*(undefined4 *)(param_1 + 0x44) = 1" (pointer_expression "*(undefined4 *)(param_1 + 0x44)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x44)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x44)" (( "(") (binary_expression "param_1 + 0x44" (identifier "param_1") (+ "+") (number_literal "0x44")) () ")")))) (= "=") (number_literal "1")) (; ";")) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" (identifier "uVar1") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else if (param_2 == 0) {\n    (**(code **)(**(int **)(param_1 + 0xc) + 4))\n              (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x50),\n               *(undefined4 *)(param_1 + 0x54),*(undefined4 *)(param_1 + 0x58));\n    uVar1 = 0;\n  }\n  else {\n    uVar1 = 0;\n    if (param_2 != 1) {\n      if (param_2 == 3) {\n        uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 0x10))\n                          (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x6c),\n                           *(undefined4 *)(param_1 + 0x70));\n      }\n      else if (param_2 == 2) {\n        proxy_activate();\n        uVar1 = 1;\n      }\n      else {\n        (**(code **)(**(int **)(param_1 + 0xc) + 4))\n                  (*(int **)(param_1 + 0xc),PTR_s_1_0_000be3a8 + -0x5014,0x1f41);\n        uVar1 = 1;\n      }\n    }\n  }" (else "else") (if_statement "if (param_2 == 0) {\n    (**(code **)(**(int **)(param_1 + 0xc) + 4))\n              (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x50),\n               *(undefined4 *)(param_1 + 0x54),*(undefined4 *)(param_1 + 0x58));\n    uVar1 = 0;\n  }\n  else {\n    uVar1 = 0;\n    if (param_2 != 1) {\n      if (param_2 == 3) {\n        uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 0x10))\n                          (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x6c),\n                           *(undefined4 *)(param_1 + 0x70));\n      }\n      else if (param_2 == 2) {\n        proxy_activate();\n        uVar1 = 1;\n      }\n      else {\n        (**(code **)(**(int **)(param_1 + 0xc) + 4))\n                  (*(int **)(param_1 + 0xc),PTR_s_1_0_000be3a8 + -0x5014,0x1f41);\n        uVar1 = 1;\n      }\n    }\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    (**(code **)(**(int **)(param_1 + 0xc) + 4))\n              (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x50),\n               *(undefined4 *)(param_1 + 0x54),*(undefined4 *)(param_1 + 0x58));\n    uVar1 = 0;\n  }" ({ "{") (expression_statement "(**(code **)(**(int **)(param_1 + 0xc) + 4))\n              (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x50),\n               *(undefined4 *)(param_1 + 0x54),*(undefined4 *)(param_1 + 0x58));" (call_expression "(**(code **)(**(int **)(param_1 + 0xc) + 4))\n              (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x50),\n               *(undefined4 *)(param_1 + 0x54),*(undefined4 *)(param_1 + 0x58))" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 0xc) + 4))" (( "(") (pointer_expression "**(code **)(**(int **)(param_1 + 0xc) + 4)" (* "*") (pointer_expression "*(code **)(**(int **)(param_1 + 0xc) + 4)" (* "*") (cast_expression "(code **)(**(int **)(param_1 + 0xc) + 4)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(**(int **)(param_1 + 0xc) + 4)" (( "(") (binary_expression "**(int **)(param_1 + 0xc) + 4" (pointer_expression "**(int **)(param_1 + 0xc)" (* "*") (pointer_expression "*(int **)(param_1 + 0xc)" (* "*") (cast_expression "(int **)(param_1 + 0xc)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (+ "+") (number_literal "4")) () ")"))))) () ")")) (argument_list "(*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x50),\n               *(undefined4 *)(param_1 + 0x54),*(undefined4 *)(param_1 + 0x58))" (( "(") (pointer_expression "*(int **)(param_1 + 0xc)" (* "*") (cast_expression "(int **)(param_1 + 0xc)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x50)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x50)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x50)" (( "(") (binary_expression "param_1 + 0x50" (identifier "param_1") (+ "+") (number_literal "0x50")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x54)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x54)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x54)" (( "(") (binary_expression "param_1 + 0x54" (identifier "param_1") (+ "+") (number_literal "0x54")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x58)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x58)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x58)" (( "(") (binary_expression "param_1 + 0x58" (identifier "param_1") (+ "+") (number_literal "0x58")) () ")")))) () ")"))) (; ";")) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" (identifier "uVar1") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    uVar1 = 0;\n    if (param_2 != 1) {\n      if (param_2 == 3) {\n        uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 0x10))\n                          (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x6c),\n                           *(undefined4 *)(param_1 + 0x70));\n      }\n      else if (param_2 == 2) {\n        proxy_activate();\n        uVar1 = 1;\n      }\n      else {\n        (**(code **)(**(int **)(param_1 + 0xc) + 4))\n                  (*(int **)(param_1 + 0xc),PTR_s_1_0_000be3a8 + -0x5014,0x1f41);\n        uVar1 = 1;\n      }\n    }\n  }" (else "else") (compound_statement "{\n    uVar1 = 0;\n    if (param_2 != 1) {\n      if (param_2 == 3) {\n        uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 0x10))\n                          (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x6c),\n                           *(undefined4 *)(param_1 + 0x70));\n      }\n      else if (param_2 == 2) {\n        proxy_activate();\n        uVar1 = 1;\n      }\n      else {\n        (**(code **)(**(int **)(param_1 + 0xc) + 4))\n                  (*(int **)(param_1 + 0xc),PTR_s_1_0_000be3a8 + -0x5014,0x1f41);\n        uVar1 = 1;\n      }\n    }\n  }" ({ "{") (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" (identifier "uVar1") (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_2 != 1) {\n      if (param_2 == 3) {\n        uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 0x10))\n                          (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x6c),\n                           *(undefined4 *)(param_1 + 0x70));\n      }\n      else if (param_2 == 2) {\n        proxy_activate();\n        uVar1 = 1;\n      }\n      else {\n        (**(code **)(**(int **)(param_1 + 0xc) + 4))\n                  (*(int **)(param_1 + 0xc),PTR_s_1_0_000be3a8 + -0x5014,0x1f41);\n        uVar1 = 1;\n      }\n    }" (if "if") (parenthesized_expression "(param_2 != 1)" (( "(") (binary_expression "param_2 != 1" (identifier "param_2") (!= "!=") (number_literal "1")) () ")")) (compound_statement "{\n      if (param_2 == 3) {\n        uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 0x10))\n                          (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x6c),\n                           *(undefined4 *)(param_1 + 0x70));\n      }\n      else if (param_2 == 2) {\n        proxy_activate();\n        uVar1 = 1;\n      }\n      else {\n        (**(code **)(**(int **)(param_1 + 0xc) + 4))\n                  (*(int **)(param_1 + 0xc),PTR_s_1_0_000be3a8 + -0x5014,0x1f41);\n        uVar1 = 1;\n      }\n    }" ({ "{") (if_statement "if (param_2 == 3) {\n        uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 0x10))\n                          (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x6c),\n                           *(undefined4 *)(param_1 + 0x70));\n      }\n      else if (param_2 == 2) {\n        proxy_activate();\n        uVar1 = 1;\n      }\n      else {\n        (**(code **)(**(int **)(param_1 + 0xc) + 4))\n                  (*(int **)(param_1 + 0xc),PTR_s_1_0_000be3a8 + -0x5014,0x1f41);\n        uVar1 = 1;\n      }" (if "if") (parenthesized_expression "(param_2 == 3)" (( "(") (binary_expression "param_2 == 3" (identifier "param_2") (== "==") (number_literal "3")) () ")")) (compound_statement "{\n        uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 0x10))\n                          (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x6c),\n                           *(undefined4 *)(param_1 + 0x70));\n      }" ({ "{") (expression_statement "uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 0x10))\n                          (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x6c),\n                           *(undefined4 *)(param_1 + 0x70));" (assignment_expression "uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 0x10))\n                          (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x6c),\n                           *(undefined4 *)(param_1 + 0x70))" (identifier "uVar1") (= "=") (call_expression "(**(code **)(**(int **)(param_1 + 0xc) + 0x10))\n                          (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x6c),\n                           *(undefined4 *)(param_1 + 0x70))" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 0xc) + 0x10))" (( "(") (pointer_expression "**(code **)(**(int **)(param_1 + 0xc) + 0x10)" (* "*") (pointer_expression "*(code **)(**(int **)(param_1 + 0xc) + 0x10)" (* "*") (cast_expression "(code **)(**(int **)(param_1 + 0xc) + 0x10)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(**(int **)(param_1 + 0xc) + 0x10)" (( "(") (binary_expression "**(int **)(param_1 + 0xc) + 0x10" (pointer_expression "**(int **)(param_1 + 0xc)" (* "*") (pointer_expression "*(int **)(param_1 + 0xc)" (* "*") (cast_expression "(int **)(param_1 + 0xc)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (+ "+") (number_literal "0x10")) () ")"))))) () ")")) (argument_list "(*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x6c),\n                           *(undefined4 *)(param_1 + 0x70))" (( "(") (pointer_expression "*(int **)(param_1 + 0xc)" (* "*") (cast_expression "(int **)(param_1 + 0xc)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x6c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x6c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x6c)" (( "(") (binary_expression "param_1 + 0x6c" (identifier "param_1") (+ "+") (number_literal "0x6c")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x70)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x70)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x70)" (( "(") (binary_expression "param_1 + 0x70" (identifier "param_1") (+ "+") (number_literal "0x70")) () ")")))) () ")")))) (; ";")) (} "}")) (else_clause "else if (param_2 == 2) {\n        proxy_activate();\n        uVar1 = 1;\n      }\n      else {\n        (**(code **)(**(int **)(param_1 + 0xc) + 4))\n                  (*(int **)(param_1 + 0xc),PTR_s_1_0_000be3a8 + -0x5014,0x1f41);\n        uVar1 = 1;\n      }" (else "else") (if_statement "if (param_2 == 2) {\n        proxy_activate();\n        uVar1 = 1;\n      }\n      else {\n        (**(code **)(**(int **)(param_1 + 0xc) + 4))\n                  (*(int **)(param_1 + 0xc),PTR_s_1_0_000be3a8 + -0x5014,0x1f41);\n        uVar1 = 1;\n      }" (if "if") (parenthesized_expression "(param_2 == 2)" (( "(") (binary_expression "param_2 == 2" (identifier "param_2") (== "==") (number_literal "2")) () ")")) (compound_statement "{\n        proxy_activate();\n        uVar1 = 1;\n      }" ({ "{") (expression_statement "proxy_activate();" (call_expression "proxy_activate()" (identifier "proxy_activate") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "uVar1 = 1;" (assignment_expression "uVar1 = 1" (identifier "uVar1") (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else {\n        (**(code **)(**(int **)(param_1 + 0xc) + 4))\n                  (*(int **)(param_1 + 0xc),PTR_s_1_0_000be3a8 + -0x5014,0x1f41);\n        uVar1 = 1;\n      }" (else "else") (compound_statement "{\n        (**(code **)(**(int **)(param_1 + 0xc) + 4))\n                  (*(int **)(param_1 + 0xc),PTR_s_1_0_000be3a8 + -0x5014,0x1f41);\n        uVar1 = 1;\n      }" ({ "{") (expression_statement "(**(code **)(**(int **)(param_1 + 0xc) + 4))\n                  (*(int **)(param_1 + 0xc),PTR_s_1_0_000be3a8 + -0x5014,0x1f41);" (call_expression "(**(code **)(**(int **)(param_1 + 0xc) + 4))\n                  (*(int **)(param_1 + 0xc),PTR_s_1_0_000be3a8 + -0x5014,0x1f41)" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 0xc) + 4))" (( "(") (pointer_expression "**(code **)(**(int **)(param_1 + 0xc) + 4)" (* "*") (pointer_expression "*(code **)(**(int **)(param_1 + 0xc) + 4)" (* "*") (cast_expression "(code **)(**(int **)(param_1 + 0xc) + 4)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(**(int **)(param_1 + 0xc) + 4)" (( "(") (binary_expression "**(int **)(param_1 + 0xc) + 4" (pointer_expression "**(int **)(param_1 + 0xc)" (* "*") (pointer_expression "*(int **)(param_1 + 0xc)" (* "*") (cast_expression "(int **)(param_1 + 0xc)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (+ "+") (number_literal "4")) () ")"))))) () ")")) (argument_list "(*(int **)(param_1 + 0xc),PTR_s_1_0_000be3a8 + -0x5014,0x1f41)" (( "(") (pointer_expression "*(int **)(param_1 + 0xc)" (* "*") (cast_expression "(int **)(param_1 + 0xc)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (, ",") (binary_expression "PTR_s_1_0_000be3a8 + -0x5014" (identifier "PTR_s_1_0_000be3a8") (+ "+") (number_literal "-0x5014")) (, ",") (number_literal "0x1f41") () ")"))) (; ";")) (expression_statement "uVar1 = 1;" (assignment_expression "uVar1 = 1" (identifier "uVar1") (= "=") (number_literal "1")) (; ";")) (} "}")))))) (} "}"))) (} "}")))))) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier))))) (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 (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal)) (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (identifier)) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier) (number_literal) (number_literal) (identifier) (binary_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))))))))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (identifier)) right: (identifier))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (identifier))))) (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: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))))) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (number_literal) (number_literal) (number_literal) (identifier) (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))))) arguments: (argument_list (identifier) (identifier) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) right: (number_literal))))))) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) right: (number_literal))))))) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) right: (number_literal))))))) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (binary_expression left: (identifier) right: (number_literal)) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))))))))))))))) (return_statement (identifier)))))

undefined4 MASKED(int param_1,int param_2)

{
  undefined4 uVar1;
  char *pcVar2;
  int iVar3;
  undefined1 *puVar4;
  uint uVar5;
  undefined1 *puVar6;
  int *piVar7;
  char *pcVar8;
  undefined *puVar9;
  
  if (*(int *)(param_1 + 0x44) == -1) {
    pcVar2 = (char *)format_telnet_command
                               (*(undefined4 *)(param_1 + 0x10),*(undefined4 *)(param_1 + 0x14),
                                *(undefined4 *)(param_1 + 0x74));
    iVar3 = (*(code *)PTR_strlen_000bee74)(pcVar2);
    puVar4 = (undefined1 *)safemalloc(iVar3 * 4 + 1,1);
    uVar5 = (uint)*pcVar2;
    puVar6 = puVar4;
    if (uVar5 != 0) {
      puVar9 = PTR_s_1_0_000be3a8 + -0x4e98;
      pcVar8 = pcVar2;
      do {
        if (uVar5 == 10) {
          *puVar6 = 0x5c;
          puVar6[1] = 0x6e;
          puVar6 = puVar6 + 2;
        }
        else if (uVar5 == 0xd) {
          *puVar6 = 0x5c;
          puVar6[1] = 0x72;
          puVar6 = puVar6 + 2;
        }
        else if (uVar5 == 9) {
          *puVar6 = 0x5c;
          puVar6[1] = 0x74;
          puVar6 = puVar6 + 2;
        }
        else if (uVar5 == 0x5c) {
          *puVar6 = 0x5c;
          puVar6[1] = 0x5c;
          puVar6 = puVar6 + 2;
        }
        else if ((uVar5 & 0xff) - 0x20 < 0x5f) {
          *puVar6 = (char)uVar5;
          puVar6 = puVar6 + 1;
        }
        else {
          (*(code *)PTR___sprintf_chk_000bed48)(puVar6,1,0xffffffff,puVar9,uVar5 & 0xff);
          puVar6 = puVar6 + 4;
        }
        pcVar8 = pcVar8 + 1;
        uVar5 = (uint)*pcVar8;
      } while (uVar5 != 0);
    }
    *puVar6 = 0;
    uVar1 = dupprintf(PTR_s_1_0_000be3a8 + -0x4e90,puVar4);
    (**(code **)**(undefined4 **)(param_1 + 0xc))(*(undefined4 **)(param_1 + 0xc),2,0,0,uVar1,0);
    safefree(uVar1);
    safefree(puVar4);
    piVar7 = *(int **)(param_1 + 8);
    uVar1 = (*(code *)PTR_strlen_000bee74)(pcVar2);
    (**(code **)(*piVar7 + 8))(piVar7,pcVar2,uVar1);
    safefree(pcVar2);
    *(undefined4 *)(param_1 + 0x44) = 1;
    uVar1 = 0;
  }
  else if (param_2 == 0) {
    (**(code **)(**(int **)(param_1 + 0xc) + 4))
              (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x50),
               *(undefined4 *)(param_1 + 0x54),*(undefined4 *)(param_1 + 0x58));
    uVar1 = 0;
  }
  else {
    uVar1 = 0;
    if (param_2 != 1) {
      if (param_2 == 3) {
        uVar1 = (**(code **)(**(int **)(param_1 + 0xc) + 0x10))
                          (*(int **)(param_1 + 0xc),*(undefined4 *)(param_1 + 0x6c),
                           *(undefined4 *)(param_1 + 0x70));
      }
      else if (param_2 == 2) {
        proxy_activate();
        uVar1 = 1;
      }
      else {
        (**(code **)(**(int **)(param_1 + 0xc) + 4))
                  (*(int **)(param_1 + 0xc),PTR_s_1_0_000be3a8 + -0x5014,0x1f41);
        uVar1 = 1;
      }
    }
  }
  return uVar1;
}

