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

void ssh_send_verstring(Ssh_conflict ssh,char *protoname,char *svers)

{
  char cVar1;
  undefined *puVar2;
  int iVar3;
  char *ptr;
  char *pcVar4;
  Ssh_conflict ssh_1;
  
  if (ssh->version == 2) {
    ptr = dupprintf(PTR_E1_202__001112f8 + -0x5448,protoname,PTR_sshver_001117cc);
  }
  else {
    iVar3 = (*(code *)PTR_strcmp_00112498)(protoname,PTR_E1_202__001112f8 + -0x543c);
    puVar2 = PTR_data_CS_ISO8859_4_sbcs2ucs_142__00111314;
    if (iVar3 != 0) {
      (*(code *)PTR___assert_fail_00111f50)
                (PTR_E1_202__001112f8 + -0x5434,PTR_E1_202__001112f8 + -0x6580,0xbff,
                 PTR_E1_202__001112f8 + -0x1f04);
      return;
    }
    iVar3 = ssh_versioncmp(svers,PTR_data_CS_ISO8859_4_sbcs2ucs_142__00111314 + 0x1620);
    if (0 < iVar3) {
      svers = puVar2 + 0x1620;
    }
    ptr = dupprintf(PTR_E1_202__001112f8 + -0x5418,svers,PTR_sshver_001117cc);
  }
  iVar3 = (*(code *)PTR_strlen_00112534)(protoname);
  cVar1 = ptr[iVar3];
  pcVar4 = ptr + iVar3;
  while( true ) {
    if (cVar1 == '\0') {
      (*(code *)PTR___assert_fail_00111f50)
                (PTR_E1_202__001112f8 + -0x53f4,PTR_E1_202__001112f8 + -0x6580,0xbe4,
                 PTR_E1_202__001112f8 + -0x1f18);
      return;
    }
    if (cVar1 == '-') break;
    cVar1 = pcVar4[1];
    pcVar4 = pcVar4 + 1;
  }
  cVar1 = pcVar4[1];
  while (cVar1 != '\0') {
    pcVar4 = pcVar4 + 1;
    if ((cVar1 == '-') || (cVar1 == ' ')) {
      *pcVar4 = '_';
      cVar1 = pcVar4[1];
    }
    else {
      cVar1 = pcVar4[1];
    }
  }
  iVar3 = (*(code *)PTR_strcspn_001121cc)(ptr,PTR_E1_202__001112f8 + -0x4e40);
  if (ssh->version == 2) {
                    /* WARNING: Subroutine does not return */
    safemalloc(iVar3 + 1,1);
  }
  logeventf(ssh,PTR_E1_202__001112f8 + -0x540c,iVar3,ptr);
  ssh_1 = (Ssh_conflict)(*(code *)PTR_strlen_00112534)(ptr);
  s_write((Ssh_conflict)&ssh->s,ssh->logctx,(int)ptr,ssh_1);
                    /* WARNING: Subroutine does not return */
  safefree(ptr);
}



void FUN_0004ce8c(int param_1,undefined4 param_2,undefined *param_3)

{
  char cVar1;
  undefined *puVar2;
  undefined *puVar3;
  int iVar4;
  int iVar5;
  char *pcVar6;
  undefined4 uVar7;
  
  if (*(int *)(param_1 + 0x198) == 2) {
    iVar4 = dupprintf(PTR_DAT_001112f8 + -0x5448,param_2,PTR_sshver_001117cc);
  }
  else {
    iVar4 = (*(code *)PTR_strcmp_00112498)(param_2,PTR_DAT_001112f8 + -0x543c);
    puVar2 = PTR_DAT_00111314;
    if (iVar4 != 0) {
      (*(code *)PTR___assert_fail_00111f50)
                (PTR_DAT_001112f8 + -0x5434,PTR_DAT_001112f8 + -0x6580,0xbff,
                 PTR_DAT_001112f8 + -0x1f04);
      return;
    }
    iVar4 = FUN_0004997c(param_3,PTR_DAT_00111314 + 0x1620);
    if (0 < iVar4) {
      param_3 = puVar2 + 0x1620;
    }
    iVar4 = dupprintf(PTR_DAT_001112f8 + -0x5418,param_3,PTR_sshver_001117cc);
  }
  iVar5 = (*(code *)PTR_strlen_00112534)(param_2);
  cVar1 = *(char *)(iVar4 + iVar5);
  pcVar6 = (char *)(iVar4 + iVar5);
  while( true ) {
    if (cVar1 == '\0') {
      (*(code *)PTR___assert_fail_00111f50)
                (PTR_DAT_001112f8 + -0x53f4,PTR_DAT_001112f8 + -0x6580,0xbe4,
                 PTR_DAT_001112f8 + -0x1f18);
      return;
    }
    if (cVar1 == '-') break;
    cVar1 = pcVar6[1];
    pcVar6 = pcVar6 + 1;
  }
  cVar1 = pcVar6[1];
  puVar2 = PTR_DAT_001112f8;
  while (PTR_DAT_001112f8 = puVar2, cVar1 != '\0') {
    pcVar6 = pcVar6 + 1;
    if ((cVar1 == '-') || (cVar1 == ' ')) {
      *pcVar6 = '_';
      cVar1 = pcVar6[1];
      puVar2 = PTR_DAT_001112f8;
    }
    else {
      cVar1 = pcVar6[1];
    }
  }
  iVar5 = (*(code *)PTR_strcspn_001121cc)(iVar4,puVar2 + -0x4e40);
  if (*(int *)(param_1 + 0x198) == 2) {
    uVar7 = safemalloc(iVar5 + 1,1);
    puVar3 = PTR_memcpy_0011256c;
    *(undefined4 *)(param_1 + 4) = uVar7;
    (*(code *)puVar3)(uVar7,iVar4,iVar5);
    puVar3 = PTR_strcspn_001121cc;
    *(undefined1 *)(*(int *)(param_1 + 4) + iVar5) = 0;
    iVar5 = (*(code *)puVar3)(iVar4,puVar2 + -0x4e40);
  }
  FUN_00047158(param_1,PTR_DAT_001112f8 + -0x540c,iVar5,iVar4);
  uVar7 = (*(code *)PTR_strlen_00112534)(iVar4);
  FUN_0004cdd0(param_1 + 0x10,*(undefined4 *)(param_1 + 0x18),iVar4,uVar7);
  safefree(iVar4);
  return;
}


lui gp,0xd
addiu gp,gp,-0x3bdc
addu gp,gp,t9
addiu sp,sp,-0x30
lw v1,0x198(a0)
li v0,0x2
sw gp,0x10(sp)
sw s2,0x24(sp)
or s2,a1,zero
sw s1,0x20(sp)
or s1,a0,zero
sw ra,0x2c(sp)
sw s3,0x28(sp)
beq v1,v0,0x0004d058
_sw s0,0x1c(sp)
or a0,a1,zero
lw a1,-0x7fb8(gp)
lw t9,-0x6e18(gp)
or s0,a2,zero
jalr t9
_addiu a1,a1,-0x543c
bne v0,zero,0x0004d0f4
_lw gp,0x10(sp)
lw s3,-0x7f9c(gp)
or a0,s0,zero
lw t9,-0x7b3c(gp)
addiu t9,t9,-0x6684
bal 0x0004997c
_addiu a1,s3,0x1620
blez v0,0x0004cf0c
_lw gp,0x10(sp)
addiu s0,s3,0x1620
lw a0,-0x7fb8(gp)
or a1,s0,zero
lw t9,-0x7f08(gp)
lw a2,-0x7ae4(gp)
bal 0x00039eb8
_addiu a0,a0,-0x5418
lw gp,0x10(sp)
or s0,v0,zero
lw t9,-0x6d7c(gp)
jalr t9
_or a0,s2,zero
addu v0,s0,v0
lb v1,0x0(v0)
beq v1,zero,0x0004d0d0
_lw gp,0x10(sp)
b 0x0004cf5c
_li a0,0x2d
lb v1,0x0(v0)
beq v1,zero,0x0004d0d4
_lw a3,-0x7fb8(gp)
bne v1,a0,0x0004cf50
_addiu v0,v0,0x1
addiu v0,v0,-0x1
lb v1,0x1(v0)
beq v1,zero,0x0004cfb8
_addiu v0,v0,0x1
li a2,0x2d
li a1,0x5f
b 0x0004cf9c
_li a0,0x20
beq v1,a0,0x0004cfa4
_nop
addiu v0,v0,0x1
lb v1,0x0(v0)
beq v1,zero,0x0004cfbc
_lw s3,-0x7fb8(gp)
bne v1,a2,0x0004cf84
_nop
sb a1,0x0(v0)
addiu v0,v0,0x1
lb v1,0x0(v0)
bne v1,zero,0x0004cf9c
_nop
lw s3,-0x7fb8(gp)
or a0,s0,zero
lw t9,-0x70e4(gp)
jalr t9
_addiu a1,s3,-0x4e40
li v1,0x2
lw a0,0x198(s1)
or s2,v0,zero
beq a0,v1,0x0004d078
_lw gp,0x10(sp)
lw a1,-0x7fb8(gp)
or a3,s0,zero
lw t9,-0x7ca0(gp)
or a2,s2,zero
or a0,s1,zero
addiu t9,t9,0x7158
bal 0x00047158
_addiu a1,a1,-0x540c
lw gp,0x10(sp)
lw t9,-0x6d7c(gp)
jalr t9
_or a0,s0,zero
addiu a0,s1,0x10
lw gp,0x10(sp)
or a2,s0,zero
lw a1,0x18(s1)
lw t9,-0x7b3c(gp)
addiu t9,t9,-0x3230
bal 0x0004cdd0
_or a3,v0,zero
or a0,s0,zero
lw gp,0x10(sp)
lw ra,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
lw t9,-0x7fc0(gp)
b 0x0003a244
_addiu sp,sp,0x30
lw a0,-0x7fb8(gp)
lw t9,-0x7f08(gp)
lw a2,-0x7ae4(gp)
bal 0x00039eb8
_addiu a0,a0,-0x5448
lw gp,0x10(sp)
b 0x0004cf2c
_or s0,v0,zero
lw t9,-0x7fc4(gp)
addiu a0,v0,0x1
bal 0x00039514
_li a1,0x1
or a2,s2,zero
lw gp,0x10(sp)
or a1,s0,zero
or a0,v0,zero
lw t9,-0x6d44(gp)
jalr t9
_sw v0,0x4(s1)
addiu a1,s3,-0x4e40
lw gp,0x10(sp)
or a0,s0,zero
lw v0,0x4(s1)
addu s2,v0,s2
lw t9,-0x70e4(gp)
jalr t9
_sb zero,0x0(s2)
lw gp,0x10(sp)
b 0x0004cfe0
_or s2,v0,zero
lw a3,-0x7fb8(gp)
li a2,0xbe4
lw a1,-0x7fb8(gp)
lw a0,-0x7fb8(gp)
lw t9,-0x7360(gp)
addiu a3,a3,-0x1f18
addiu a1,a1,-0x6580
jalr t9
_addiu a0,a0,-0x53f4
lw a3,-0x7fb8(gp)
li a2,0xbff
lw a1,-0x7fb8(gp)
lw a0,-0x7fb8(gp)
lw t9,-0x7360(gp)
addiu a3,a3,-0x1f04
addiu a1,a1,-0x6580
jalr t9
_addiu a0,a0,-0x5434
(translation_unit "void FUN_0004ce8c(int param_1,undefined4 param_2,undefined *param_3)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  int iVar5;\n  char *pcVar6;\n  undefined4 uVar7;\n  \n  if (*(int *)(param_1 + 0x198) == 2) {\n    iVar4 = dupprintf(PTR_DAT_001112f8 + -0x5448,param_2,PTR_sshver_001117cc);\n  }\n  else {\n    iVar4 = (*(code *)PTR_strcmp_00112498)(param_2,PTR_DAT_001112f8 + -0x543c);\n    puVar2 = PTR_DAT_00111314;\n    if (iVar4 != 0) {\n      (*(code *)PTR___assert_fail_00111f50)\n                (PTR_DAT_001112f8 + -0x5434,PTR_DAT_001112f8 + -0x6580,0xbff,\n                 PTR_DAT_001112f8 + -0x1f04);\n      return;\n    }\n    iVar4 = FUN_0004997c(param_3,PTR_DAT_00111314 + 0x1620);\n    if (0 < iVar4) {\n      param_3 = puVar2 + 0x1620;\n    }\n    iVar4 = dupprintf(PTR_DAT_001112f8 + -0x5418,param_3,PTR_sshver_001117cc);\n  }\n  iVar5 = (*(code *)PTR_strlen_00112534)(param_2);\n  cVar1 = *(char *)(iVar4 + iVar5);\n  pcVar6 = (char *)(iVar4 + iVar5);\n  while( true ) {\n    if (cVar1 == '\0') {\n      (*(code *)PTR___assert_fail_00111f50)\n                (PTR_DAT_001112f8 + -0x53f4,PTR_DAT_001112f8 + -0x6580,0xbe4,\n                 PTR_DAT_001112f8 + -0x1f18);\n      return;\n    }\n    if (cVar1 == '-') break;\n    cVar1 = pcVar6[1];\n    pcVar6 = pcVar6 + 1;\n  }\n  cVar1 = pcVar6[1];\n  puVar2 = PTR_DAT_001112f8;\n  while (PTR_DAT_001112f8 = puVar2, cVar1 != '\0') {\n    pcVar6 = pcVar6 + 1;\n    if ((cVar1 == '-') || (cVar1 == ' ')) {\n      *pcVar6 = '_';\n      cVar1 = pcVar6[1];\n      puVar2 = PTR_DAT_001112f8;\n    }\n    else {\n      cVar1 = pcVar6[1];\n    }\n  }\n  iVar5 = (*(code *)PTR_strcspn_001121cc)(iVar4,puVar2 + -0x4e40);\n  if (*(int *)(param_1 + 0x198) == 2) {\n    uVar7 = safemalloc(iVar5 + 1,1);\n    puVar3 = PTR_memcpy_0011256c;\n    *(undefined4 *)(param_1 + 4) = uVar7;\n    (*(code *)puVar3)(uVar7,iVar4,iVar5);\n    puVar3 = PTR_strcspn_001121cc;\n    *(undefined1 *)(*(int *)(param_1 + 4) + iVar5) = 0;\n    iVar5 = (*(code *)puVar3)(iVar4,puVar2 + -0x4e40);\n  }\n  FUN_00047158(param_1,PTR_DAT_001112f8 + -0x540c,iVar5,iVar4);\n  uVar7 = (*(code *)PTR_strlen_00112534)(iVar4);\n  FUN_0004cdd0(param_1 + 0x10,*(undefined4 *)(param_1 + 0x18),iVar4,uVar7);\n  safefree(iVar4);\n  return;\n}\n\n" (function_definition "void FUN_0004ce8c(int param_1,undefined4 param_2,undefined *param_3)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  int iVar5;\n  char *pcVar6;\n  undefined4 uVar7;\n  \n  if (*(int *)(param_1 + 0x198) == 2) {\n    iVar4 = dupprintf(PTR_DAT_001112f8 + -0x5448,param_2,PTR_sshver_001117cc);\n  }\n  else {\n    iVar4 = (*(code *)PTR_strcmp_00112498)(param_2,PTR_DAT_001112f8 + -0x543c);\n    puVar2 = PTR_DAT_00111314;\n    if (iVar4 != 0) {\n      (*(code *)PTR___assert_fail_00111f50)\n                (PTR_DAT_001112f8 + -0x5434,PTR_DAT_001112f8 + -0x6580,0xbff,\n                 PTR_DAT_001112f8 + -0x1f04);\n      return;\n    }\n    iVar4 = FUN_0004997c(param_3,PTR_DAT_00111314 + 0x1620);\n    if (0 < iVar4) {\n      param_3 = puVar2 + 0x1620;\n    }\n    iVar4 = dupprintf(PTR_DAT_001112f8 + -0x5418,param_3,PTR_sshver_001117cc);\n  }\n  iVar5 = (*(code *)PTR_strlen_00112534)(param_2);\n  cVar1 = *(char *)(iVar4 + iVar5);\n  pcVar6 = (char *)(iVar4 + iVar5);\n  while( true ) {\n    if (cVar1 == '\0') {\n      (*(code *)PTR___assert_fail_00111f50)\n                (PTR_DAT_001112f8 + -0x53f4,PTR_DAT_001112f8 + -0x6580,0xbe4,\n                 PTR_DAT_001112f8 + -0x1f18);\n      return;\n    }\n    if (cVar1 == '-') break;\n    cVar1 = pcVar6[1];\n    pcVar6 = pcVar6 + 1;\n  }\n  cVar1 = pcVar6[1];\n  puVar2 = PTR_DAT_001112f8;\n  while (PTR_DAT_001112f8 = puVar2, cVar1 != '\0') {\n    pcVar6 = pcVar6 + 1;\n    if ((cVar1 == '-') || (cVar1 == ' ')) {\n      *pcVar6 = '_';\n      cVar1 = pcVar6[1];\n      puVar2 = PTR_DAT_001112f8;\n    }\n    else {\n      cVar1 = pcVar6[1];\n    }\n  }\n  iVar5 = (*(code *)PTR_strcspn_001121cc)(iVar4,puVar2 + -0x4e40);\n  if (*(int *)(param_1 + 0x198) == 2) {\n    uVar7 = safemalloc(iVar5 + 1,1);\n    puVar3 = PTR_memcpy_0011256c;\n    *(undefined4 *)(param_1 + 4) = uVar7;\n    (*(code *)puVar3)(uVar7,iVar4,iVar5);\n    puVar3 = PTR_strcspn_001121cc;\n    *(undefined1 *)(*(int *)(param_1 + 4) + iVar5) = 0;\n    iVar5 = (*(code *)puVar3)(iVar4,puVar2 + -0x4e40);\n  }\n  FUN_00047158(param_1,PTR_DAT_001112f8 + -0x540c,iVar5,iVar4);\n  uVar7 = (*(code *)PTR_strlen_00112534)(iVar4);\n  FUN_0004cdd0(param_1 + 0x10,*(undefined4 *)(param_1 + 0x18),iVar4,uVar7);\n  safefree(iVar4);\n  return;\n}" primitive_type (function_declarator "FUN_0004ce8c(int param_1,undefined4 param_2,undefined *param_3)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined *param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  int iVar5;\n  char *pcVar6;\n  undefined4 uVar7;\n  \n  if (*(int *)(param_1 + 0x198) == 2) {\n    iVar4 = dupprintf(PTR_DAT_001112f8 + -0x5448,param_2,PTR_sshver_001117cc);\n  }\n  else {\n    iVar4 = (*(code *)PTR_strcmp_00112498)(param_2,PTR_DAT_001112f8 + -0x543c);\n    puVar2 = PTR_DAT_00111314;\n    if (iVar4 != 0) {\n      (*(code *)PTR___assert_fail_00111f50)\n                (PTR_DAT_001112f8 + -0x5434,PTR_DAT_001112f8 + -0x6580,0xbff,\n                 PTR_DAT_001112f8 + -0x1f04);\n      return;\n    }\n    iVar4 = FUN_0004997c(param_3,PTR_DAT_00111314 + 0x1620);\n    if (0 < iVar4) {\n      param_3 = puVar2 + 0x1620;\n    }\n    iVar4 = dupprintf(PTR_DAT_001112f8 + -0x5418,param_3,PTR_sshver_001117cc);\n  }\n  iVar5 = (*(code *)PTR_strlen_00112534)(param_2);\n  cVar1 = *(char *)(iVar4 + iVar5);\n  pcVar6 = (char *)(iVar4 + iVar5);\n  while( true ) {\n    if (cVar1 == '\0') {\n      (*(code *)PTR___assert_fail_00111f50)\n                (PTR_DAT_001112f8 + -0x53f4,PTR_DAT_001112f8 + -0x6580,0xbe4,\n                 PTR_DAT_001112f8 + -0x1f18);\n      return;\n    }\n    if (cVar1 == '-') break;\n    cVar1 = pcVar6[1];\n    pcVar6 = pcVar6 + 1;\n  }\n  cVar1 = pcVar6[1];\n  puVar2 = PTR_DAT_001112f8;\n  while (PTR_DAT_001112f8 = puVar2, cVar1 != '\0') {\n    pcVar6 = pcVar6 + 1;\n    if ((cVar1 == '-') || (cVar1 == ' ')) {\n      *pcVar6 = '_';\n      cVar1 = pcVar6[1];\n      puVar2 = PTR_DAT_001112f8;\n    }\n    else {\n      cVar1 = pcVar6[1];\n    }\n  }\n  iVar5 = (*(code *)PTR_strcspn_001121cc)(iVar4,puVar2 + -0x4e40);\n  if (*(int *)(param_1 + 0x198) == 2) {\n    uVar7 = safemalloc(iVar5 + 1,1);\n    puVar3 = PTR_memcpy_0011256c;\n    *(undefined4 *)(param_1 + 4) = uVar7;\n    (*(code *)puVar3)(uVar7,iVar4,iVar5);\n    puVar3 = PTR_strcspn_001121cc;\n    *(undefined1 *)(*(int *)(param_1 + 4) + iVar5) = 0;\n    iVar5 = (*(code *)puVar3)(iVar4,puVar2 + -0x4e40);\n  }\n  FUN_00047158(param_1,PTR_DAT_001112f8 + -0x540c,iVar5,iVar4);\n  uVar7 = (*(code *)PTR_strlen_00112534)(iVar4);\n  FUN_0004cdd0(param_1 + 0x10,*(undefined4 *)(param_1 + 0x18),iVar4,uVar7);\n  safefree(iVar4);\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (if_statement "if (*(int *)(param_1 + 0x198) == 2) {\n    iVar4 = dupprintf(PTR_DAT_001112f8 + -0x5448,param_2,PTR_sshver_001117cc);\n  }\n  else {\n    iVar4 = (*(code *)PTR_strcmp_00112498)(param_2,PTR_DAT_001112f8 + -0x543c);\n    puVar2 = PTR_DAT_00111314;\n    if (iVar4 != 0) {\n      (*(code *)PTR___assert_fail_00111f50)\n                (PTR_DAT_001112f8 + -0x5434,PTR_DAT_001112f8 + -0x6580,0xbff,\n                 PTR_DAT_001112f8 + -0x1f04);\n      return;\n    }\n    iVar4 = FUN_0004997c(param_3,PTR_DAT_00111314 + 0x1620);\n    if (0 < iVar4) {\n      param_3 = puVar2 + 0x1620;\n    }\n    iVar4 = dupprintf(PTR_DAT_001112f8 + -0x5418,param_3,PTR_sshver_001117cc);\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x198) == 2)" ( (binary_expression "*(int *)(param_1 + 0x198) == 2" (pointer_expression "*(int *)(param_1 + 0x198)" * (cast_expression "(int *)(param_1 + 0x198)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x198)" ( (binary_expression "param_1 + 0x198" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    iVar4 = dupprintf(PTR_DAT_001112f8 + -0x5448,param_2,PTR_sshver_001117cc);\n  }" { (expression_statement "iVar4 = dupprintf(PTR_DAT_001112f8 + -0x5448,param_2,PTR_sshver_001117cc);" (assignment_expression "iVar4 = dupprintf(PTR_DAT_001112f8 + -0x5448,param_2,PTR_sshver_001117cc)" identifier = (call_expression "dupprintf(PTR_DAT_001112f8 + -0x5448,param_2,PTR_sshver_001117cc)" identifier (argument_list "(PTR_DAT_001112f8 + -0x5448,param_2,PTR_sshver_001117cc)" ( (binary_expression "PTR_DAT_001112f8 + -0x5448" identifier + number_literal) , identifier , identifier )))) ;) }) (else_clause "else {\n    iVar4 = (*(code *)PTR_strcmp_00112498)(param_2,PTR_DAT_001112f8 + -0x543c);\n    puVar2 = PTR_DAT_00111314;\n    if (iVar4 != 0) {\n      (*(code *)PTR___assert_fail_00111f50)\n                (PTR_DAT_001112f8 + -0x5434,PTR_DAT_001112f8 + -0x6580,0xbff,\n                 PTR_DAT_001112f8 + -0x1f04);\n      return;\n    }\n    iVar4 = FUN_0004997c(param_3,PTR_DAT_00111314 + 0x1620);\n    if (0 < iVar4) {\n      param_3 = puVar2 + 0x1620;\n    }\n    iVar4 = dupprintf(PTR_DAT_001112f8 + -0x5418,param_3,PTR_sshver_001117cc);\n  }" else (compound_statement "{\n    iVar4 = (*(code *)PTR_strcmp_00112498)(param_2,PTR_DAT_001112f8 + -0x543c);\n    puVar2 = PTR_DAT_00111314;\n    if (iVar4 != 0) {\n      (*(code *)PTR___assert_fail_00111f50)\n                (PTR_DAT_001112f8 + -0x5434,PTR_DAT_001112f8 + -0x6580,0xbff,\n                 PTR_DAT_001112f8 + -0x1f04);\n      return;\n    }\n    iVar4 = FUN_0004997c(param_3,PTR_DAT_00111314 + 0x1620);\n    if (0 < iVar4) {\n      param_3 = puVar2 + 0x1620;\n    }\n    iVar4 = dupprintf(PTR_DAT_001112f8 + -0x5418,param_3,PTR_sshver_001117cc);\n  }" { (expression_statement "iVar4 = (*(code *)PTR_strcmp_00112498)(param_2,PTR_DAT_001112f8 + -0x543c);" (assignment_expression "iVar4 = (*(code *)PTR_strcmp_00112498)(param_2,PTR_DAT_001112f8 + -0x543c)" identifier = (call_expression "(*(code *)PTR_strcmp_00112498)(param_2,PTR_DAT_001112f8 + -0x543c)" (parenthesized_expression "(*(code *)PTR_strcmp_00112498)" ( (pointer_expression "*(code *)PTR_strcmp_00112498" * (cast_expression "(code *)PTR_strcmp_00112498" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2,PTR_DAT_001112f8 + -0x543c)" ( identifier , (binary_expression "PTR_DAT_001112f8 + -0x543c" identifier + number_literal) )))) ;) (expression_statement "puVar2 = PTR_DAT_00111314;" (assignment_expression "puVar2 = PTR_DAT_00111314" identifier = identifier) ;) (if_statement "if (iVar4 != 0) {\n      (*(code *)PTR___assert_fail_00111f50)\n                (PTR_DAT_001112f8 + -0x5434,PTR_DAT_001112f8 + -0x6580,0xbff,\n                 PTR_DAT_001112f8 + -0x1f04);\n      return;\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      (*(code *)PTR___assert_fail_00111f50)\n                (PTR_DAT_001112f8 + -0x5434,PTR_DAT_001112f8 + -0x6580,0xbff,\n                 PTR_DAT_001112f8 + -0x1f04);\n      return;\n    }" { (expression_statement "(*(code *)PTR___assert_fail_00111f50)\n                (PTR_DAT_001112f8 + -0x5434,PTR_DAT_001112f8 + -0x6580,0xbff,\n                 PTR_DAT_001112f8 + -0x1f04);" (call_expression "(*(code *)PTR___assert_fail_00111f50)\n                (PTR_DAT_001112f8 + -0x5434,PTR_DAT_001112f8 + -0x6580,0xbff,\n                 PTR_DAT_001112f8 + -0x1f04)" (parenthesized_expression "(*(code *)PTR___assert_fail_00111f50)" ( (pointer_expression "*(code *)PTR___assert_fail_00111f50" * (cast_expression "(code *)PTR___assert_fail_00111f50" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_001112f8 + -0x5434,PTR_DAT_001112f8 + -0x6580,0xbff,\n                 PTR_DAT_001112f8 + -0x1f04)" ( (binary_expression "PTR_DAT_001112f8 + -0x5434" identifier + number_literal) , (binary_expression "PTR_DAT_001112f8 + -0x6580" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_001112f8 + -0x1f04" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar4 = FUN_0004997c(param_3,PTR_DAT_00111314 + 0x1620);" (assignment_expression "iVar4 = FUN_0004997c(param_3,PTR_DAT_00111314 + 0x1620)" identifier = (call_expression "FUN_0004997c(param_3,PTR_DAT_00111314 + 0x1620)" identifier (argument_list "(param_3,PTR_DAT_00111314 + 0x1620)" ( identifier , (binary_expression "PTR_DAT_00111314 + 0x1620" identifier + number_literal) )))) ;) (if_statement "if (0 < iVar4) {\n      param_3 = puVar2 + 0x1620;\n    }" if (parenthesized_expression "(0 < iVar4)" ( (binary_expression "0 < iVar4" number_literal < identifier) )) (compound_statement "{\n      param_3 = puVar2 + 0x1620;\n    }" { (expression_statement "param_3 = puVar2 + 0x1620;" (assignment_expression "param_3 = puVar2 + 0x1620" identifier = (binary_expression "puVar2 + 0x1620" identifier + number_literal)) ;) })) (expression_statement "iVar4 = dupprintf(PTR_DAT_001112f8 + -0x5418,param_3,PTR_sshver_001117cc);" (assignment_expression "iVar4 = dupprintf(PTR_DAT_001112f8 + -0x5418,param_3,PTR_sshver_001117cc)" identifier = (call_expression "dupprintf(PTR_DAT_001112f8 + -0x5418,param_3,PTR_sshver_001117cc)" identifier (argument_list "(PTR_DAT_001112f8 + -0x5418,param_3,PTR_sshver_001117cc)" ( (binary_expression "PTR_DAT_001112f8 + -0x5418" identifier + number_literal) , identifier , identifier )))) ;) }))) (expression_statement "iVar5 = (*(code *)PTR_strlen_00112534)(param_2);" (assignment_expression "iVar5 = (*(code *)PTR_strlen_00112534)(param_2)" identifier = (call_expression "(*(code *)PTR_strlen_00112534)(param_2)" (parenthesized_expression "(*(code *)PTR_strlen_00112534)" ( (pointer_expression "*(code *)PTR_strlen_00112534" * (cast_expression "(code *)PTR_strlen_00112534" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "cVar1 = *(char *)(iVar4 + iVar5);" (assignment_expression "cVar1 = *(char *)(iVar4 + iVar5)" identifier = (pointer_expression "*(char *)(iVar4 + iVar5)" * (cast_expression "(char *)(iVar4 + iVar5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + iVar5)" ( (binary_expression "iVar4 + iVar5" identifier + identifier) ))))) ;) (expression_statement "pcVar6 = (char *)(iVar4 + iVar5);" (assignment_expression "pcVar6 = (char *)(iVar4 + iVar5)" identifier = (cast_expression "(char *)(iVar4 + iVar5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + iVar5)" ( (binary_expression "iVar4 + iVar5" identifier + identifier) )))) ;) (while_statement "while( true ) {\n    if (cVar1 == '\0') {\n      (*(code *)PTR___assert_fail_00111f50)\n                (PTR_DAT_001112f8 + -0x53f4,PTR_DAT_001112f8 + -0x6580,0xbe4,\n                 PTR_DAT_001112f8 + -0x1f18);\n      return;\n    }\n    if (cVar1 == '-') break;\n    cVar1 = pcVar6[1];\n    pcVar6 = pcVar6 + 1;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (cVar1 == '\0') {\n      (*(code *)PTR___assert_fail_00111f50)\n                (PTR_DAT_001112f8 + -0x53f4,PTR_DAT_001112f8 + -0x6580,0xbe4,\n                 PTR_DAT_001112f8 + -0x1f18);\n      return;\n    }\n    if (cVar1 == '-') break;\n    cVar1 = pcVar6[1];\n    pcVar6 = pcVar6 + 1;\n  }" { (if_statement "if (cVar1 == '\0') {\n      (*(code *)PTR___assert_fail_00111f50)\n                (PTR_DAT_001112f8 + -0x53f4,PTR_DAT_001112f8 + -0x6580,0xbe4,\n                 PTR_DAT_001112f8 + -0x1f18);\n      return;\n    }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      (*(code *)PTR___assert_fail_00111f50)\n                (PTR_DAT_001112f8 + -0x53f4,PTR_DAT_001112f8 + -0x6580,0xbe4,\n                 PTR_DAT_001112f8 + -0x1f18);\n      return;\n    }" { (expression_statement "(*(code *)PTR___assert_fail_00111f50)\n                (PTR_DAT_001112f8 + -0x53f4,PTR_DAT_001112f8 + -0x6580,0xbe4,\n                 PTR_DAT_001112f8 + -0x1f18);" (call_expression "(*(code *)PTR___assert_fail_00111f50)\n                (PTR_DAT_001112f8 + -0x53f4,PTR_DAT_001112f8 + -0x6580,0xbe4,\n                 PTR_DAT_001112f8 + -0x1f18)" (parenthesized_expression "(*(code *)PTR___assert_fail_00111f50)" ( (pointer_expression "*(code *)PTR___assert_fail_00111f50" * (cast_expression "(code *)PTR___assert_fail_00111f50" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_001112f8 + -0x53f4,PTR_DAT_001112f8 + -0x6580,0xbe4,\n                 PTR_DAT_001112f8 + -0x1f18)" ( (binary_expression "PTR_DAT_001112f8 + -0x53f4" identifier + number_literal) , (binary_expression "PTR_DAT_001112f8 + -0x6580" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_001112f8 + -0x1f18" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })) (if_statement "if (cVar1 == '-') break;" if (parenthesized_expression "(cVar1 == '-')" ( (binary_expression "cVar1 == '-'" identifier == (char_literal "'-'" ' character ')) )) (break_statement "break;" break ;)) (expression_statement "cVar1 = pcVar6[1];" (assignment_expression "cVar1 = pcVar6[1]" identifier = (subscript_expression "pcVar6[1]" identifier [ number_literal ])) ;) (expression_statement "pcVar6 = pcVar6 + 1;" (assignment_expression "pcVar6 = pcVar6 + 1" identifier = (binary_expression "pcVar6 + 1" identifier + number_literal)) ;) })) (expression_statement "cVar1 = pcVar6[1];" (assignment_expression "cVar1 = pcVar6[1]" identifier = (subscript_expression "pcVar6[1]" identifier [ number_literal ])) ;) (expression_statement "puVar2 = PTR_DAT_001112f8;" (assignment_expression "puVar2 = PTR_DAT_001112f8" identifier = identifier) ;) (while_statement "while (PTR_DAT_001112f8 = puVar2, cVar1 != '\0') {\n    pcVar6 = pcVar6 + 1;\n    if ((cVar1 == '-') || (cVar1 == ' ')) {\n      *pcVar6 = '_';\n      cVar1 = pcVar6[1];\n      puVar2 = PTR_DAT_001112f8;\n    }\n    else {\n      cVar1 = pcVar6[1];\n    }\n  }" while (parenthesized_expression "(PTR_DAT_001112f8 = puVar2, cVar1 != '\0')" ( (comma_expression "PTR_DAT_001112f8 = puVar2, cVar1 != '\0'" (assignment_expression "PTR_DAT_001112f8 = puVar2" identifier = identifier) , (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence '))) )) (compound_statement "{\n    pcVar6 = pcVar6 + 1;\n    if ((cVar1 == '-') || (cVar1 == ' ')) {\n      *pcVar6 = '_';\n      cVar1 = pcVar6[1];\n      puVar2 = PTR_DAT_001112f8;\n    }\n    else {\n      cVar1 = pcVar6[1];\n    }\n  }" { (expression_statement "pcVar6 = pcVar6 + 1;" (assignment_expression "pcVar6 = pcVar6 + 1" identifier = (binary_expression "pcVar6 + 1" identifier + number_literal)) ;) (if_statement "if ((cVar1 == '-') || (cVar1 == ' ')) {\n      *pcVar6 = '_';\n      cVar1 = pcVar6[1];\n      puVar2 = PTR_DAT_001112f8;\n    }\n    else {\n      cVar1 = pcVar6[1];\n    }" if (parenthesized_expression "((cVar1 == '-') || (cVar1 == ' '))" ( (binary_expression "(cVar1 == '-') || (cVar1 == ' ')" (parenthesized_expression "(cVar1 == '-')" ( (binary_expression "cVar1 == '-'" identifier == (char_literal "'-'" ' character ')) )) || (parenthesized_expression "(cVar1 == ' ')" ( (binary_expression "cVar1 == ' '" identifier == (char_literal "' '" ' character ')) ))) )) (compound_statement "{\n      *pcVar6 = '_';\n      cVar1 = pcVar6[1];\n      puVar2 = PTR_DAT_001112f8;\n    }" { (expression_statement "*pcVar6 = '_';" (assignment_expression "*pcVar6 = '_'" (pointer_expression "*pcVar6" * identifier) = (char_literal "'_'" ' character ')) ;) (expression_statement "cVar1 = pcVar6[1];" (assignment_expression "cVar1 = pcVar6[1]" identifier = (subscript_expression "pcVar6[1]" identifier [ number_literal ])) ;) (expression_statement "puVar2 = PTR_DAT_001112f8;" (assignment_expression "puVar2 = PTR_DAT_001112f8" identifier = identifier) ;) }) (else_clause "else {\n      cVar1 = pcVar6[1];\n    }" else (compound_statement "{\n      cVar1 = pcVar6[1];\n    }" { (expression_statement "cVar1 = pcVar6[1];" (assignment_expression "cVar1 = pcVar6[1]" identifier = (subscript_expression "pcVar6[1]" identifier [ number_literal ])) ;) }))) })) (expression_statement "iVar5 = (*(code *)PTR_strcspn_001121cc)(iVar4,puVar2 + -0x4e40);" (assignment_expression "iVar5 = (*(code *)PTR_strcspn_001121cc)(iVar4,puVar2 + -0x4e40)" identifier = (call_expression "(*(code *)PTR_strcspn_001121cc)(iVar4,puVar2 + -0x4e40)" (parenthesized_expression "(*(code *)PTR_strcspn_001121cc)" ( (pointer_expression "*(code *)PTR_strcspn_001121cc" * (cast_expression "(code *)PTR_strcspn_001121cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4,puVar2 + -0x4e40)" ( identifier , (binary_expression "puVar2 + -0x4e40" identifier + number_literal) )))) ;) (if_statement "if (*(int *)(param_1 + 0x198) == 2) {\n    uVar7 = safemalloc(iVar5 + 1,1);\n    puVar3 = PTR_memcpy_0011256c;\n    *(undefined4 *)(param_1 + 4) = uVar7;\n    (*(code *)puVar3)(uVar7,iVar4,iVar5);\n    puVar3 = PTR_strcspn_001121cc;\n    *(undefined1 *)(*(int *)(param_1 + 4) + iVar5) = 0;\n    iVar5 = (*(code *)puVar3)(iVar4,puVar2 + -0x4e40);\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x198) == 2)" ( (binary_expression "*(int *)(param_1 + 0x198) == 2" (pointer_expression "*(int *)(param_1 + 0x198)" * (cast_expression "(int *)(param_1 + 0x198)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x198)" ( (binary_expression "param_1 + 0x198" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    uVar7 = safemalloc(iVar5 + 1,1);\n    puVar3 = PTR_memcpy_0011256c;\n    *(undefined4 *)(param_1 + 4) = uVar7;\n    (*(code *)puVar3)(uVar7,iVar4,iVar5);\n    puVar3 = PTR_strcspn_001121cc;\n    *(undefined1 *)(*(int *)(param_1 + 4) + iVar5) = 0;\n    iVar5 = (*(code *)puVar3)(iVar4,puVar2 + -0x4e40);\n  }" { (expression_statement "uVar7 = safemalloc(iVar5 + 1,1);" (assignment_expression "uVar7 = safemalloc(iVar5 + 1,1)" identifier = (call_expression "safemalloc(iVar5 + 1,1)" identifier (argument_list "(iVar5 + 1,1)" ( (binary_expression "iVar5 + 1" identifier + number_literal) , number_literal )))) ;) (expression_statement "puVar3 = PTR_memcpy_0011256c;" (assignment_expression "puVar3 = PTR_memcpy_0011256c" identifier = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 4) = uVar7;" (assignment_expression "*(undefined4 *)(param_1 + 4) = uVar7" (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "(*(code *)puVar3)(uVar7,iVar4,iVar5);" (call_expression "(*(code *)puVar3)(uVar7,iVar4,iVar5)" (parenthesized_expression "(*(code *)puVar3)" ( (pointer_expression "*(code *)puVar3" * (cast_expression "(code *)puVar3" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar7,iVar4,iVar5)" ( identifier , identifier , identifier ))) ;) (expression_statement "puVar3 = PTR_strcspn_001121cc;" (assignment_expression "puVar3 = PTR_strcspn_001121cc" identifier = identifier) ;) (expression_statement "*(undefined1 *)(*(int *)(param_1 + 4) + iVar5) = 0;" (assignment_expression "*(undefined1 *)(*(int *)(param_1 + 4) + iVar5) = 0" (pointer_expression "*(undefined1 *)(*(int *)(param_1 + 4) + iVar5)" * (cast_expression "(undefined1 *)(*(int *)(param_1 + 4) + iVar5)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 4) + iVar5)" ( (binary_expression "*(int *)(param_1 + 4) + iVar5" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) + identifier) )))) = number_literal) ;) (expression_statement "iVar5 = (*(code *)puVar3)(iVar4,puVar2 + -0x4e40);" (assignment_expression "iVar5 = (*(code *)puVar3)(iVar4,puVar2 + -0x4e40)" identifier = (call_expression "(*(code *)puVar3)(iVar4,puVar2 + -0x4e40)" (parenthesized_expression "(*(code *)puVar3)" ( (pointer_expression "*(code *)puVar3" * (cast_expression "(code *)puVar3" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4,puVar2 + -0x4e40)" ( identifier , (binary_expression "puVar2 + -0x4e40" identifier + number_literal) )))) ;) })) (expression_statement "FUN_00047158(param_1,PTR_DAT_001112f8 + -0x540c,iVar5,iVar4);" (call_expression "FUN_00047158(param_1,PTR_DAT_001112f8 + -0x540c,iVar5,iVar4)" identifier (argument_list "(param_1,PTR_DAT_001112f8 + -0x540c,iVar5,iVar4)" ( identifier , (binary_expression "PTR_DAT_001112f8 + -0x540c" identifier + number_literal) , identifier , identifier ))) ;) (expression_statement "uVar7 = (*(code *)PTR_strlen_00112534)(iVar4);" (assignment_expression "uVar7 = (*(code *)PTR_strlen_00112534)(iVar4)" identifier = (call_expression "(*(code *)PTR_strlen_00112534)(iVar4)" (parenthesized_expression "(*(code *)PTR_strlen_00112534)" ( (pointer_expression "*(code *)PTR_strlen_00112534" * (cast_expression "(code *)PTR_strlen_00112534" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4)" ( identifier )))) ;) (expression_statement "FUN_0004cdd0(param_1 + 0x10,*(undefined4 *)(param_1 + 0x18),iVar4,uVar7);" (call_expression "FUN_0004cdd0(param_1 + 0x10,*(undefined4 *)(param_1 + 0x18),iVar4,uVar7)" identifier (argument_list "(param_1 + 0x10,*(undefined4 *)(param_1 + 0x18),iVar4,uVar7)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) , (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) , identifier , identifier ))) ;) (expression_statement "safefree(iVar4);" (call_expression "safefree(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nvoid ssh_send_verstring(Ssh_conflict ssh,char *protoname,char *svers)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  int iVar3;\n  char *ptr;\n  char *pcVar4;\n  Ssh_conflict ssh_1;\n  \n  if (ssh->version == 2) {\n    ptr = dupprintf(PTR_E1_202__001112f8 + -0x5448,protoname,PTR_sshver_001117cc);\n  }\n  else {\n    iVar3 = (*(code *)PTR_strcmp_00112498)(protoname,PTR_E1_202__001112f8 + -0x543c);\n    puVar2 = PTR_data_CS_ISO8859_4_sbcs2ucs_142__00111314;\n    if (iVar3 != 0) {\n      (*(code *)PTR___assert_fail_00111f50)\n                (PTR_E1_202__001112f8 + -0x5434,PTR_E1_202__001112f8 + -0x6580,0xbff,\n                 PTR_E1_202__001112f8 + -0x1f04);\n      return;\n    }\n    iVar3 = ssh_versioncmp(svers,PTR_data_CS_ISO8859_4_sbcs2ucs_142__00111314 + 0x1620);\n    if (0 < iVar3) {\n      svers = puVar2 + 0x1620;\n    }\n    ptr = dupprintf(PTR_E1_202__001112f8 + -0x5418,svers,PTR_sshver_001117cc);\n  }\n  iVar3 = (*(code *)PTR_strlen_00112534)(protoname);\n  cVar1 = ptr[iVar3];\n  pcVar4 = ptr + iVar3;\n  while( true ) {\n    if (cVar1 == '\0') {\n      (*(code *)PTR___assert_fail_00111f50)\n                (PTR_E1_202__001112f8 + -0x53f4,PTR_E1_202__001112f8 + -0x6580,0xbe4,\n                 PTR_E1_202__001112f8 + -0x1f18);\n      return;\n    }\n    if (cVar1 == '-') break;\n    cVar1 = pcVar4[1];\n    pcVar4 = pcVar4 + 1;\n  }\n  cVar1 = pcVar4[1];\n  while (cVar1 != '\0') {\n    pcVar4 = pcVar4 + 1;\n    if ((cVar1 == '-') || (cVar1 == ' ')) {\n      *pcVar4 = '_';\n      cVar1 = pcVar4[1];\n    }\n    else {\n      cVar1 = pcVar4[1];\n    }\n  }\n  iVar3 = (*(code *)PTR_strcspn_001121cc)(ptr,PTR_E1_202__001112f8 + -0x4e40);\n  if (ssh->version == 2) {\n                    /* WARNING: Subroutine does not return */\n    safemalloc(iVar3 + 1,1);\n  }\n  logeventf(ssh,PTR_E1_202__001112f8 + -0x540c,iVar3,ptr);\n  ssh_1 = (Ssh_conflict)(*(code *)PTR_strlen_00112534)(ptr);\n  s_write((Ssh_conflict)&ssh->s,ssh->logctx,(int)ptr,ssh_1);\n                    /* WARNING: Subroutine does not return */\n  safefree(ptr);\n}\n\n" comment (function_definition "void ssh_send_verstring(Ssh_conflict ssh,char *protoname,char *svers)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  int iVar3;\n  char *ptr;\n  char *pcVar4;\n  Ssh_conflict ssh_1;\n  \n  if (ssh->version == 2) {\n    ptr = dupprintf(PTR_E1_202__001112f8 + -0x5448,protoname,PTR_sshver_001117cc);\n  }\n  else {\n    iVar3 = (*(code *)PTR_strcmp_00112498)(protoname,PTR_E1_202__001112f8 + -0x543c);\n    puVar2 = PTR_data_CS_ISO8859_4_sbcs2ucs_142__00111314;\n    if (iVar3 != 0) {\n      (*(code *)PTR___assert_fail_00111f50)\n                (PTR_E1_202__001112f8 + -0x5434,PTR_E1_202__001112f8 + -0x6580,0xbff,\n                 PTR_E1_202__001112f8 + -0x1f04);\n      return;\n    }\n    iVar3 = ssh_versioncmp(svers,PTR_data_CS_ISO8859_4_sbcs2ucs_142__00111314 + 0x1620);\n    if (0 < iVar3) {\n      svers = puVar2 + 0x1620;\n    }\n    ptr = dupprintf(PTR_E1_202__001112f8 + -0x5418,svers,PTR_sshver_001117cc);\n  }\n  iVar3 = (*(code *)PTR_strlen_00112534)(protoname);\n  cVar1 = ptr[iVar3];\n  pcVar4 = ptr + iVar3;\n  while( true ) {\n    if (cVar1 == '\0') {\n      (*(code *)PTR___assert_fail_00111f50)\n                (PTR_E1_202__001112f8 + -0x53f4,PTR_E1_202__001112f8 + -0x6580,0xbe4,\n                 PTR_E1_202__001112f8 + -0x1f18);\n      return;\n    }\n    if (cVar1 == '-') break;\n    cVar1 = pcVar4[1];\n    pcVar4 = pcVar4 + 1;\n  }\n  cVar1 = pcVar4[1];\n  while (cVar1 != '\0') {\n    pcVar4 = pcVar4 + 1;\n    if ((cVar1 == '-') || (cVar1 == ' ')) {\n      *pcVar4 = '_';\n      cVar1 = pcVar4[1];\n    }\n    else {\n      cVar1 = pcVar4[1];\n    }\n  }\n  iVar3 = (*(code *)PTR_strcspn_001121cc)(ptr,PTR_E1_202__001112f8 + -0x4e40);\n  if (ssh->version == 2) {\n                    /* WARNING: Subroutine does not return */\n    safemalloc(iVar3 + 1,1);\n  }\n  logeventf(ssh,PTR_E1_202__001112f8 + -0x540c,iVar3,ptr);\n  ssh_1 = (Ssh_conflict)(*(code *)PTR_strlen_00112534)(ptr);\n  s_write((Ssh_conflict)&ssh->s,ssh->logctx,(int)ptr,ssh_1);\n                    /* WARNING: Subroutine does not return */\n  safefree(ptr);\n}" primitive_type (function_declarator "ssh_send_verstring(Ssh_conflict ssh,char *protoname,char *svers)" identifier (parameter_list "(Ssh_conflict ssh,char *protoname,char *svers)" ( (parameter_declaration "Ssh_conflict ssh" type_identifier identifier) , (parameter_declaration "char *protoname" primitive_type (pointer_declarator "*protoname" * identifier)) , (parameter_declaration "char *svers" primitive_type (pointer_declarator "*svers" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  undefined *puVar2;\n  int iVar3;\n  char *ptr;\n  char *pcVar4;\n  Ssh_conflict ssh_1;\n  \n  if (ssh->version == 2) {\n    ptr = dupprintf(PTR_E1_202__001112f8 + -0x5448,protoname,PTR_sshver_001117cc);\n  }\n  else {\n    iVar3 = (*(code *)PTR_strcmp_00112498)(protoname,PTR_E1_202__001112f8 + -0x543c);\n    puVar2 = PTR_data_CS_ISO8859_4_sbcs2ucs_142__00111314;\n    if (iVar3 != 0) {\n      (*(code *)PTR___assert_fail_00111f50)\n                (PTR_E1_202__001112f8 + -0x5434,PTR_E1_202__001112f8 + -0x6580,0xbff,\n                 PTR_E1_202__001112f8 + -0x1f04);\n      return;\n    }\n    iVar3 = ssh_versioncmp(svers,PTR_data_CS_ISO8859_4_sbcs2ucs_142__00111314 + 0x1620);\n    if (0 < iVar3) {\n      svers = puVar2 + 0x1620;\n    }\n    ptr = dupprintf(PTR_E1_202__001112f8 + -0x5418,svers,PTR_sshver_001117cc);\n  }\n  iVar3 = (*(code *)PTR_strlen_00112534)(protoname);\n  cVar1 = ptr[iVar3];\n  pcVar4 = ptr + iVar3;\n  while( true ) {\n    if (cVar1 == '\0') {\n      (*(code *)PTR___assert_fail_00111f50)\n                (PTR_E1_202__001112f8 + -0x53f4,PTR_E1_202__001112f8 + -0x6580,0xbe4,\n                 PTR_E1_202__001112f8 + -0x1f18);\n      return;\n    }\n    if (cVar1 == '-') break;\n    cVar1 = pcVar4[1];\n    pcVar4 = pcVar4 + 1;\n  }\n  cVar1 = pcVar4[1];\n  while (cVar1 != '\0') {\n    pcVar4 = pcVar4 + 1;\n    if ((cVar1 == '-') || (cVar1 == ' ')) {\n      *pcVar4 = '_';\n      cVar1 = pcVar4[1];\n    }\n    else {\n      cVar1 = pcVar4[1];\n    }\n  }\n  iVar3 = (*(code *)PTR_strcspn_001121cc)(ptr,PTR_E1_202__001112f8 + -0x4e40);\n  if (ssh->version == 2) {\n                    /* WARNING: Subroutine does not return */\n    safemalloc(iVar3 + 1,1);\n  }\n  logeventf(ssh,PTR_E1_202__001112f8 + -0x540c,iVar3,ptr);\n  ssh_1 = (Ssh_conflict)(*(code *)PTR_strlen_00112534)(ptr);\n  s_write((Ssh_conflict)&ssh->s,ssh->logctx,(int)ptr,ssh_1);\n                    /* WARNING: Subroutine does not return */\n  safefree(ptr);\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char *ptr;" primitive_type (pointer_declarator "*ptr" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "Ssh_conflict ssh_1;" type_identifier identifier ;) (if_statement "if (ssh->version == 2) {\n    ptr = dupprintf(PTR_E1_202__001112f8 + -0x5448,protoname,PTR_sshver_001117cc);\n  }\n  else {\n    iVar3 = (*(code *)PTR_strcmp_00112498)(protoname,PTR_E1_202__001112f8 + -0x543c);\n    puVar2 = PTR_data_CS_ISO8859_4_sbcs2ucs_142__00111314;\n    if (iVar3 != 0) {\n      (*(code *)PTR___assert_fail_00111f50)\n                (PTR_E1_202__001112f8 + -0x5434,PTR_E1_202__001112f8 + -0x6580,0xbff,\n                 PTR_E1_202__001112f8 + -0x1f04);\n      return;\n    }\n    iVar3 = ssh_versioncmp(svers,PTR_data_CS_ISO8859_4_sbcs2ucs_142__00111314 + 0x1620);\n    if (0 < iVar3) {\n      svers = puVar2 + 0x1620;\n    }\n    ptr = dupprintf(PTR_E1_202__001112f8 + -0x5418,svers,PTR_sshver_001117cc);\n  }" if (parenthesized_expression "(ssh->version == 2)" ( (binary_expression "ssh->version == 2" (field_expression "ssh->version" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n    ptr = dupprintf(PTR_E1_202__001112f8 + -0x5448,protoname,PTR_sshver_001117cc);\n  }" { (expression_statement "ptr = dupprintf(PTR_E1_202__001112f8 + -0x5448,protoname,PTR_sshver_001117cc);" (assignment_expression "ptr = dupprintf(PTR_E1_202__001112f8 + -0x5448,protoname,PTR_sshver_001117cc)" identifier = (call_expression "dupprintf(PTR_E1_202__001112f8 + -0x5448,protoname,PTR_sshver_001117cc)" identifier (argument_list "(PTR_E1_202__001112f8 + -0x5448,protoname,PTR_sshver_001117cc)" ( (binary_expression "PTR_E1_202__001112f8 + -0x5448" identifier + number_literal) , identifier , identifier )))) ;) }) (else_clause "else {\n    iVar3 = (*(code *)PTR_strcmp_00112498)(protoname,PTR_E1_202__001112f8 + -0x543c);\n    puVar2 = PTR_data_CS_ISO8859_4_sbcs2ucs_142__00111314;\n    if (iVar3 != 0) {\n      (*(code *)PTR___assert_fail_00111f50)\n                (PTR_E1_202__001112f8 + -0x5434,PTR_E1_202__001112f8 + -0x6580,0xbff,\n                 PTR_E1_202__001112f8 + -0x1f04);\n      return;\n    }\n    iVar3 = ssh_versioncmp(svers,PTR_data_CS_ISO8859_4_sbcs2ucs_142__00111314 + 0x1620);\n    if (0 < iVar3) {\n      svers = puVar2 + 0x1620;\n    }\n    ptr = dupprintf(PTR_E1_202__001112f8 + -0x5418,svers,PTR_sshver_001117cc);\n  }" else (compound_statement "{\n    iVar3 = (*(code *)PTR_strcmp_00112498)(protoname,PTR_E1_202__001112f8 + -0x543c);\n    puVar2 = PTR_data_CS_ISO8859_4_sbcs2ucs_142__00111314;\n    if (iVar3 != 0) {\n      (*(code *)PTR___assert_fail_00111f50)\n                (PTR_E1_202__001112f8 + -0x5434,PTR_E1_202__001112f8 + -0x6580,0xbff,\n                 PTR_E1_202__001112f8 + -0x1f04);\n      return;\n    }\n    iVar3 = ssh_versioncmp(svers,PTR_data_CS_ISO8859_4_sbcs2ucs_142__00111314 + 0x1620);\n    if (0 < iVar3) {\n      svers = puVar2 + 0x1620;\n    }\n    ptr = dupprintf(PTR_E1_202__001112f8 + -0x5418,svers,PTR_sshver_001117cc);\n  }" { (expression_statement "iVar3 = (*(code *)PTR_strcmp_00112498)(protoname,PTR_E1_202__001112f8 + -0x543c);" (assignment_expression "iVar3 = (*(code *)PTR_strcmp_00112498)(protoname,PTR_E1_202__001112f8 + -0x543c)" identifier = (call_expression "(*(code *)PTR_strcmp_00112498)(protoname,PTR_E1_202__001112f8 + -0x543c)" (parenthesized_expression "(*(code *)PTR_strcmp_00112498)" ( (pointer_expression "*(code *)PTR_strcmp_00112498" * (cast_expression "(code *)PTR_strcmp_00112498" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(protoname,PTR_E1_202__001112f8 + -0x543c)" ( identifier , (binary_expression "PTR_E1_202__001112f8 + -0x543c" identifier + number_literal) )))) ;) (expression_statement "puVar2 = PTR_data_CS_ISO8859_4_sbcs2ucs_142__00111314;" (assignment_expression "puVar2 = PTR_data_CS_ISO8859_4_sbcs2ucs_142__00111314" identifier = identifier) ;) (if_statement "if (iVar3 != 0) {\n      (*(code *)PTR___assert_fail_00111f50)\n                (PTR_E1_202__001112f8 + -0x5434,PTR_E1_202__001112f8 + -0x6580,0xbff,\n                 PTR_E1_202__001112f8 + -0x1f04);\n      return;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      (*(code *)PTR___assert_fail_00111f50)\n                (PTR_E1_202__001112f8 + -0x5434,PTR_E1_202__001112f8 + -0x6580,0xbff,\n                 PTR_E1_202__001112f8 + -0x1f04);\n      return;\n    }" { (expression_statement "(*(code *)PTR___assert_fail_00111f50)\n                (PTR_E1_202__001112f8 + -0x5434,PTR_E1_202__001112f8 + -0x6580,0xbff,\n                 PTR_E1_202__001112f8 + -0x1f04);" (call_expression "(*(code *)PTR___assert_fail_00111f50)\n                (PTR_E1_202__001112f8 + -0x5434,PTR_E1_202__001112f8 + -0x6580,0xbff,\n                 PTR_E1_202__001112f8 + -0x1f04)" (parenthesized_expression "(*(code *)PTR___assert_fail_00111f50)" ( (pointer_expression "*(code *)PTR___assert_fail_00111f50" * (cast_expression "(code *)PTR___assert_fail_00111f50" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_E1_202__001112f8 + -0x5434,PTR_E1_202__001112f8 + -0x6580,0xbff,\n                 PTR_E1_202__001112f8 + -0x1f04)" ( (binary_expression "PTR_E1_202__001112f8 + -0x5434" identifier + number_literal) , (binary_expression "PTR_E1_202__001112f8 + -0x6580" identifier + number_literal) , number_literal , (binary_expression "PTR_E1_202__001112f8 + -0x1f04" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar3 = ssh_versioncmp(svers,PTR_data_CS_ISO8859_4_sbcs2ucs_142__00111314 + 0x1620);" (assignment_expression "iVar3 = ssh_versioncmp(svers,PTR_data_CS_ISO8859_4_sbcs2ucs_142__00111314 + 0x1620)" identifier = (call_expression "ssh_versioncmp(svers,PTR_data_CS_ISO8859_4_sbcs2ucs_142__00111314 + 0x1620)" identifier (argument_list "(svers,PTR_data_CS_ISO8859_4_sbcs2ucs_142__00111314 + 0x1620)" ( identifier , (binary_expression "PTR_data_CS_ISO8859_4_sbcs2ucs_142__00111314 + 0x1620" identifier + number_literal) )))) ;) (if_statement "if (0 < iVar3) {\n      svers = puVar2 + 0x1620;\n    }" if (parenthesized_expression "(0 < iVar3)" ( (binary_expression "0 < iVar3" number_literal < identifier) )) (compound_statement "{\n      svers = puVar2 + 0x1620;\n    }" { (expression_statement "svers = puVar2 + 0x1620;" (assignment_expression "svers = puVar2 + 0x1620" identifier = (binary_expression "puVar2 + 0x1620" identifier + number_literal)) ;) })) (expression_statement "ptr = dupprintf(PTR_E1_202__001112f8 + -0x5418,svers,PTR_sshver_001117cc);" (assignment_expression "ptr = dupprintf(PTR_E1_202__001112f8 + -0x5418,svers,PTR_sshver_001117cc)" identifier = (call_expression "dupprintf(PTR_E1_202__001112f8 + -0x5418,svers,PTR_sshver_001117cc)" identifier (argument_list "(PTR_E1_202__001112f8 + -0x5418,svers,PTR_sshver_001117cc)" ( (binary_expression "PTR_E1_202__001112f8 + -0x5418" identifier + number_literal) , identifier , identifier )))) ;) }))) (expression_statement "iVar3 = (*(code *)PTR_strlen_00112534)(protoname);" (assignment_expression "iVar3 = (*(code *)PTR_strlen_00112534)(protoname)" identifier = (call_expression "(*(code *)PTR_strlen_00112534)(protoname)" (parenthesized_expression "(*(code *)PTR_strlen_00112534)" ( (pointer_expression "*(code *)PTR_strlen_00112534" * (cast_expression "(code *)PTR_strlen_00112534" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(protoname)" ( identifier )))) ;) (expression_statement "cVar1 = ptr[iVar3];" (assignment_expression "cVar1 = ptr[iVar3]" identifier = (subscript_expression "ptr[iVar3]" identifier [ identifier ])) ;) (expression_statement "pcVar4 = ptr + iVar3;" (assignment_expression "pcVar4 = ptr + iVar3" identifier = (binary_expression "ptr + iVar3" identifier + identifier)) ;) (while_statement "while( true ) {\n    if (cVar1 == '\0') {\n      (*(code *)PTR___assert_fail_00111f50)\n                (PTR_E1_202__001112f8 + -0x53f4,PTR_E1_202__001112f8 + -0x6580,0xbe4,\n                 PTR_E1_202__001112f8 + -0x1f18);\n      return;\n    }\n    if (cVar1 == '-') break;\n    cVar1 = pcVar4[1];\n    pcVar4 = pcVar4 + 1;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (cVar1 == '\0') {\n      (*(code *)PTR___assert_fail_00111f50)\n                (PTR_E1_202__001112f8 + -0x53f4,PTR_E1_202__001112f8 + -0x6580,0xbe4,\n                 PTR_E1_202__001112f8 + -0x1f18);\n      return;\n    }\n    if (cVar1 == '-') break;\n    cVar1 = pcVar4[1];\n    pcVar4 = pcVar4 + 1;\n  }" { (if_statement "if (cVar1 == '\0') {\n      (*(code *)PTR___assert_fail_00111f50)\n                (PTR_E1_202__001112f8 + -0x53f4,PTR_E1_202__001112f8 + -0x6580,0xbe4,\n                 PTR_E1_202__001112f8 + -0x1f18);\n      return;\n    }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      (*(code *)PTR___assert_fail_00111f50)\n                (PTR_E1_202__001112f8 + -0x53f4,PTR_E1_202__001112f8 + -0x6580,0xbe4,\n                 PTR_E1_202__001112f8 + -0x1f18);\n      return;\n    }" { (expression_statement "(*(code *)PTR___assert_fail_00111f50)\n                (PTR_E1_202__001112f8 + -0x53f4,PTR_E1_202__001112f8 + -0x6580,0xbe4,\n                 PTR_E1_202__001112f8 + -0x1f18);" (call_expression "(*(code *)PTR___assert_fail_00111f50)\n                (PTR_E1_202__001112f8 + -0x53f4,PTR_E1_202__001112f8 + -0x6580,0xbe4,\n                 PTR_E1_202__001112f8 + -0x1f18)" (parenthesized_expression "(*(code *)PTR___assert_fail_00111f50)" ( (pointer_expression "*(code *)PTR___assert_fail_00111f50" * (cast_expression "(code *)PTR___assert_fail_00111f50" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_E1_202__001112f8 + -0x53f4,PTR_E1_202__001112f8 + -0x6580,0xbe4,\n                 PTR_E1_202__001112f8 + -0x1f18)" ( (binary_expression "PTR_E1_202__001112f8 + -0x53f4" identifier + number_literal) , (binary_expression "PTR_E1_202__001112f8 + -0x6580" identifier + number_literal) , number_literal , (binary_expression "PTR_E1_202__001112f8 + -0x1f18" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })) (if_statement "if (cVar1 == '-') break;" if (parenthesized_expression "(cVar1 == '-')" ( (binary_expression "cVar1 == '-'" identifier == (char_literal "'-'" ' character ')) )) (break_statement "break;" break ;)) (expression_statement "cVar1 = pcVar4[1];" (assignment_expression "cVar1 = pcVar4[1]" identifier = (subscript_expression "pcVar4[1]" identifier [ number_literal ])) ;) (expression_statement "pcVar4 = pcVar4 + 1;" (assignment_expression "pcVar4 = pcVar4 + 1" identifier = (binary_expression "pcVar4 + 1" identifier + number_literal)) ;) })) (expression_statement "cVar1 = pcVar4[1];" (assignment_expression "cVar1 = pcVar4[1]" identifier = (subscript_expression "pcVar4[1]" identifier [ number_literal ])) ;) (while_statement "while (cVar1 != '\0') {\n    pcVar4 = pcVar4 + 1;\n    if ((cVar1 == '-') || (cVar1 == ' ')) {\n      *pcVar4 = '_';\n      cVar1 = pcVar4[1];\n    }\n    else {\n      cVar1 = pcVar4[1];\n    }\n  }" while (parenthesized_expression "(cVar1 != '\0')" ( (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    pcVar4 = pcVar4 + 1;\n    if ((cVar1 == '-') || (cVar1 == ' ')) {\n      *pcVar4 = '_';\n      cVar1 = pcVar4[1];\n    }\n    else {\n      cVar1 = pcVar4[1];\n    }\n  }" { (expression_statement "pcVar4 = pcVar4 + 1;" (assignment_expression "pcVar4 = pcVar4 + 1" identifier = (binary_expression "pcVar4 + 1" identifier + number_literal)) ;) (if_statement "if ((cVar1 == '-') || (cVar1 == ' ')) {\n      *pcVar4 = '_';\n      cVar1 = pcVar4[1];\n    }\n    else {\n      cVar1 = pcVar4[1];\n    }" if (parenthesized_expression "((cVar1 == '-') || (cVar1 == ' '))" ( (binary_expression "(cVar1 == '-') || (cVar1 == ' ')" (parenthesized_expression "(cVar1 == '-')" ( (binary_expression "cVar1 == '-'" identifier == (char_literal "'-'" ' character ')) )) || (parenthesized_expression "(cVar1 == ' ')" ( (binary_expression "cVar1 == ' '" identifier == (char_literal "' '" ' character ')) ))) )) (compound_statement "{\n      *pcVar4 = '_';\n      cVar1 = pcVar4[1];\n    }" { (expression_statement "*pcVar4 = '_';" (assignment_expression "*pcVar4 = '_'" (pointer_expression "*pcVar4" * identifier) = (char_literal "'_'" ' character ')) ;) (expression_statement "cVar1 = pcVar4[1];" (assignment_expression "cVar1 = pcVar4[1]" identifier = (subscript_expression "pcVar4[1]" identifier [ number_literal ])) ;) }) (else_clause "else {\n      cVar1 = pcVar4[1];\n    }" else (compound_statement "{\n      cVar1 = pcVar4[1];\n    }" { (expression_statement "cVar1 = pcVar4[1];" (assignment_expression "cVar1 = pcVar4[1]" identifier = (subscript_expression "pcVar4[1]" identifier [ number_literal ])) ;) }))) })) (expression_statement "iVar3 = (*(code *)PTR_strcspn_001121cc)(ptr,PTR_E1_202__001112f8 + -0x4e40);" (assignment_expression "iVar3 = (*(code *)PTR_strcspn_001121cc)(ptr,PTR_E1_202__001112f8 + -0x4e40)" identifier = (call_expression "(*(code *)PTR_strcspn_001121cc)(ptr,PTR_E1_202__001112f8 + -0x4e40)" (parenthesized_expression "(*(code *)PTR_strcspn_001121cc)" ( (pointer_expression "*(code *)PTR_strcspn_001121cc" * (cast_expression "(code *)PTR_strcspn_001121cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(ptr,PTR_E1_202__001112f8 + -0x4e40)" ( identifier , (binary_expression "PTR_E1_202__001112f8 + -0x4e40" identifier + number_literal) )))) ;) (if_statement "if (ssh->version == 2) {\n                    /* WARNING: Subroutine does not return */\n    safemalloc(iVar3 + 1,1);\n  }" if (parenthesized_expression "(ssh->version == 2)" ( (binary_expression "ssh->version == 2" (field_expression "ssh->version" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    safemalloc(iVar3 + 1,1);\n  }" { comment (expression_statement "safemalloc(iVar3 + 1,1);" (call_expression "safemalloc(iVar3 + 1,1)" identifier (argument_list "(iVar3 + 1,1)" ( (binary_expression "iVar3 + 1" identifier + number_literal) , number_literal ))) ;) })) (expression_statement "logeventf(ssh,PTR_E1_202__001112f8 + -0x540c,iVar3,ptr);" (call_expression "logeventf(ssh,PTR_E1_202__001112f8 + -0x540c,iVar3,ptr)" identifier (argument_list "(ssh,PTR_E1_202__001112f8 + -0x540c,iVar3,ptr)" ( identifier , (binary_expression "PTR_E1_202__001112f8 + -0x540c" identifier + number_literal) , identifier , identifier ))) ;) (expression_statement "ssh_1 = (Ssh_conflict)(*(code *)PTR_strlen_00112534)(ptr);" (assignment_expression "ssh_1 = (Ssh_conflict)(*(code *)PTR_strlen_00112534)(ptr)" identifier = (call_expression "(Ssh_conflict)(*(code *)PTR_strlen_00112534)(ptr)" (call_expression "(Ssh_conflict)(*(code *)PTR_strlen_00112534)" (parenthesized_expression "(Ssh_conflict)" ( identifier )) (argument_list "(*(code *)PTR_strlen_00112534)" ( (pointer_expression "*(code *)PTR_strlen_00112534" * (cast_expression "(code *)PTR_strlen_00112534" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ))) (argument_list "(ptr)" ( identifier )))) ;) (expression_statement "s_write((Ssh_conflict)&ssh->s,ssh->logctx,(int)ptr,ssh_1);" (call_expression "s_write((Ssh_conflict)&ssh->s,ssh->logctx,(int)ptr,ssh_1)" identifier (argument_list "((Ssh_conflict)&ssh->s,ssh->logctx,(int)ptr,ssh_1)" ( (binary_expression "(Ssh_conflict)&ssh->s" (parenthesized_expression "(Ssh_conflict)" ( identifier )) & (field_expression "ssh->s" identifier -> field_identifier)) , (field_expression "ssh->logctx" identifier -> field_identifier) , (cast_expression "(int)ptr" ( (type_descriptor "int" primitive_type) ) identifier) , identifier ))) ;) comment (expression_statement "safefree(ptr);" (call_expression "safefree(ptr)" identifier (argument_list "(ptr)" ( identifier ))) ;) })))
(translation_unit "void FUN_0004ce8c(int param_1,undefined4 param_2,undefined *param_3)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  int iVar5;\n  char *pcVar6;\n  undefined4 uVar7;\n  \n  if (*(int *)(param_1 + 0x198) == 2) {\n    iVar4 = dupprintf(PTR_DAT_001112f8 + -0x5448,param_2,PTR_sshver_001117cc);\n  }\n  else {\n    iVar4 = (*(code *)PTR_strcmp_00112498)(param_2,PTR_DAT_001112f8 + -0x543c);\n    puVar2 = PTR_DAT_00111314;\n    if (iVar4 != 0) {\n      (*(code *)PTR___assert_fail_00111f50)\n                (PTR_DAT_001112f8 + -0x5434,PTR_DAT_001112f8 + -0x6580,0xbff,\n                 PTR_DAT_001112f8 + -0x1f04);\n      return;\n    }\n    iVar4 = FUN_0004997c(param_3,PTR_DAT_00111314 + 0x1620);\n    if (0 < iVar4) {\n      param_3 = puVar2 + 0x1620;\n    }\n    iVar4 = dupprintf(PTR_DAT_001112f8 + -0x5418,param_3,PTR_sshver_001117cc);\n  }\n  iVar5 = (*(code *)PTR_strlen_00112534)(param_2);\n  cVar1 = *(char *)(iVar4 + iVar5);\n  pcVar6 = (char *)(iVar4 + iVar5);\n  while( true ) {\n    if (cVar1 == '\0') {\n      (*(code *)PTR___assert_fail_00111f50)\n                (PTR_DAT_001112f8 + -0x53f4,PTR_DAT_001112f8 + -0x6580,0xbe4,\n                 PTR_DAT_001112f8 + -0x1f18);\n      return;\n    }\n    if (cVar1 == '-') break;\n    cVar1 = pcVar6[1];\n    pcVar6 = pcVar6 + 1;\n  }\n  cVar1 = pcVar6[1];\n  puVar2 = PTR_DAT_001112f8;\n  while (PTR_DAT_001112f8 = puVar2, cVar1 != '\0') {\n    pcVar6 = pcVar6 + 1;\n    if ((cVar1 == '-') || (cVar1 == ' ')) {\n      *pcVar6 = '_';\n      cVar1 = pcVar6[1];\n      puVar2 = PTR_DAT_001112f8;\n    }\n    else {\n      cVar1 = pcVar6[1];\n    }\n  }\n  iVar5 = (*(code *)PTR_strcspn_001121cc)(iVar4,puVar2 + -0x4e40);\n  if (*(int *)(param_1 + 0x198) == 2) {\n    uVar7 = safemalloc(iVar5 + 1,1);\n    puVar3 = PTR_memcpy_0011256c;\n    *(undefined4 *)(param_1 + 4) = uVar7;\n    (*(code *)puVar3)(uVar7,iVar4,iVar5);\n    puVar3 = PTR_strcspn_001121cc;\n    *(undefined1 *)(*(int *)(param_1 + 4) + iVar5) = 0;\n    iVar5 = (*(code *)puVar3)(iVar4,puVar2 + -0x4e40);\n  }\n  FUN_00047158(param_1,PTR_DAT_001112f8 + -0x540c,iVar5,iVar4);\n  uVar7 = (*(code *)PTR_strlen_00112534)(iVar4);\n  FUN_0004cdd0(param_1 + 0x10,*(undefined4 *)(param_1 + 0x18),iVar4,uVar7);\n  safefree(iVar4);\n  return;\n}\n\n" (function_definition "void FUN_0004ce8c(int param_1,undefined4 param_2,undefined *param_3)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  int iVar5;\n  char *pcVar6;\n  undefined4 uVar7;\n  \n  if (*(int *)(param_1 + 0x198) == 2) {\n    iVar4 = dupprintf(PTR_DAT_001112f8 + -0x5448,param_2,PTR_sshver_001117cc);\n  }\n  else {\n    iVar4 = (*(code *)PTR_strcmp_00112498)(param_2,PTR_DAT_001112f8 + -0x543c);\n    puVar2 = PTR_DAT_00111314;\n    if (iVar4 != 0) {\n      (*(code *)PTR___assert_fail_00111f50)\n                (PTR_DAT_001112f8 + -0x5434,PTR_DAT_001112f8 + -0x6580,0xbff,\n                 PTR_DAT_001112f8 + -0x1f04);\n      return;\n    }\n    iVar4 = FUN_0004997c(param_3,PTR_DAT_00111314 + 0x1620);\n    if (0 < iVar4) {\n      param_3 = puVar2 + 0x1620;\n    }\n    iVar4 = dupprintf(PTR_DAT_001112f8 + -0x5418,param_3,PTR_sshver_001117cc);\n  }\n  iVar5 = (*(code *)PTR_strlen_00112534)(param_2);\n  cVar1 = *(char *)(iVar4 + iVar5);\n  pcVar6 = (char *)(iVar4 + iVar5);\n  while( true ) {\n    if (cVar1 == '\0') {\n      (*(code *)PTR___assert_fail_00111f50)\n                (PTR_DAT_001112f8 + -0x53f4,PTR_DAT_001112f8 + -0x6580,0xbe4,\n                 PTR_DAT_001112f8 + -0x1f18);\n      return;\n    }\n    if (cVar1 == '-') break;\n    cVar1 = pcVar6[1];\n    pcVar6 = pcVar6 + 1;\n  }\n  cVar1 = pcVar6[1];\n  puVar2 = PTR_DAT_001112f8;\n  while (PTR_DAT_001112f8 = puVar2, cVar1 != '\0') {\n    pcVar6 = pcVar6 + 1;\n    if ((cVar1 == '-') || (cVar1 == ' ')) {\n      *pcVar6 = '_';\n      cVar1 = pcVar6[1];\n      puVar2 = PTR_DAT_001112f8;\n    }\n    else {\n      cVar1 = pcVar6[1];\n    }\n  }\n  iVar5 = (*(code *)PTR_strcspn_001121cc)(iVar4,puVar2 + -0x4e40);\n  if (*(int *)(param_1 + 0x198) == 2) {\n    uVar7 = safemalloc(iVar5 + 1,1);\n    puVar3 = PTR_memcpy_0011256c;\n    *(undefined4 *)(param_1 + 4) = uVar7;\n    (*(code *)puVar3)(uVar7,iVar4,iVar5);\n    puVar3 = PTR_strcspn_001121cc;\n    *(undefined1 *)(*(int *)(param_1 + 4) + iVar5) = 0;\n    iVar5 = (*(code *)puVar3)(iVar4,puVar2 + -0x4e40);\n  }\n  FUN_00047158(param_1,PTR_DAT_001112f8 + -0x540c,iVar5,iVar4);\n  uVar7 = (*(code *)PTR_strlen_00112534)(iVar4);\n  FUN_0004cdd0(param_1 + 0x10,*(undefined4 *)(param_1 + 0x18),iVar4,uVar7);\n  safefree(iVar4);\n  return;\n}" primitive_type (function_declarator "FUN_0004ce8c(int param_1,undefined4 param_2,undefined *param_3)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined *param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  char cVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  int iVar5;\n  char *pcVar6;\n  undefined4 uVar7;\n  \n  if (*(int *)(param_1 + 0x198) == 2) {\n    iVar4 = dupprintf(PTR_DAT_001112f8 + -0x5448,param_2,PTR_sshver_001117cc);\n  }\n  else {\n    iVar4 = (*(code *)PTR_strcmp_00112498)(param_2,PTR_DAT_001112f8 + -0x543c);\n    puVar2 = PTR_DAT_00111314;\n    if (iVar4 != 0) {\n      (*(code *)PTR___assert_fail_00111f50)\n                (PTR_DAT_001112f8 + -0x5434,PTR_DAT_001112f8 + -0x6580,0xbff,\n                 PTR_DAT_001112f8 + -0x1f04);\n      return;\n    }\n    iVar4 = FUN_0004997c(param_3,PTR_DAT_00111314 + 0x1620);\n    if (0 < iVar4) {\n      param_3 = puVar2 + 0x1620;\n    }\n    iVar4 = dupprintf(PTR_DAT_001112f8 + -0x5418,param_3,PTR_sshver_001117cc);\n  }\n  iVar5 = (*(code *)PTR_strlen_00112534)(param_2);\n  cVar1 = *(char *)(iVar4 + iVar5);\n  pcVar6 = (char *)(iVar4 + iVar5);\n  while( true ) {\n    if (cVar1 == '\0') {\n      (*(code *)PTR___assert_fail_00111f50)\n                (PTR_DAT_001112f8 + -0x53f4,PTR_DAT_001112f8 + -0x6580,0xbe4,\n                 PTR_DAT_001112f8 + -0x1f18);\n      return;\n    }\n    if (cVar1 == '-') break;\n    cVar1 = pcVar6[1];\n    pcVar6 = pcVar6 + 1;\n  }\n  cVar1 = pcVar6[1];\n  puVar2 = PTR_DAT_001112f8;\n  while (PTR_DAT_001112f8 = puVar2, cVar1 != '\0') {\n    pcVar6 = pcVar6 + 1;\n    if ((cVar1 == '-') || (cVar1 == ' ')) {\n      *pcVar6 = '_';\n      cVar1 = pcVar6[1];\n      puVar2 = PTR_DAT_001112f8;\n    }\n    else {\n      cVar1 = pcVar6[1];\n    }\n  }\n  iVar5 = (*(code *)PTR_strcspn_001121cc)(iVar4,puVar2 + -0x4e40);\n  if (*(int *)(param_1 + 0x198) == 2) {\n    uVar7 = safemalloc(iVar5 + 1,1);\n    puVar3 = PTR_memcpy_0011256c;\n    *(undefined4 *)(param_1 + 4) = uVar7;\n    (*(code *)puVar3)(uVar7,iVar4,iVar5);\n    puVar3 = PTR_strcspn_001121cc;\n    *(undefined1 *)(*(int *)(param_1 + 4) + iVar5) = 0;\n    iVar5 = (*(code *)puVar3)(iVar4,puVar2 + -0x4e40);\n  }\n  FUN_00047158(param_1,PTR_DAT_001112f8 + -0x540c,iVar5,iVar4);\n  uVar7 = (*(code *)PTR_strlen_00112534)(iVar4);\n  FUN_0004cdd0(param_1 + 0x10,*(undefined4 *)(param_1 + 0x18),iVar4,uVar7);\n  safefree(iVar4);\n  return;\n}" { (declaration "char cVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "char *pcVar6;" primitive_type (pointer_declarator "*pcVar6" * identifier) ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (if_statement "if (*(int *)(param_1 + 0x198) == 2) {\n    iVar4 = dupprintf(PTR_DAT_001112f8 + -0x5448,param_2,PTR_sshver_001117cc);\n  }\n  else {\n    iVar4 = (*(code *)PTR_strcmp_00112498)(param_2,PTR_DAT_001112f8 + -0x543c);\n    puVar2 = PTR_DAT_00111314;\n    if (iVar4 != 0) {\n      (*(code *)PTR___assert_fail_00111f50)\n                (PTR_DAT_001112f8 + -0x5434,PTR_DAT_001112f8 + -0x6580,0xbff,\n                 PTR_DAT_001112f8 + -0x1f04);\n      return;\n    }\n    iVar4 = FUN_0004997c(param_3,PTR_DAT_00111314 + 0x1620);\n    if (0 < iVar4) {\n      param_3 = puVar2 + 0x1620;\n    }\n    iVar4 = dupprintf(PTR_DAT_001112f8 + -0x5418,param_3,PTR_sshver_001117cc);\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x198) == 2)" ( (binary_expression "*(int *)(param_1 + 0x198) == 2" (pointer_expression "*(int *)(param_1 + 0x198)" * (cast_expression "(int *)(param_1 + 0x198)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x198)" ( (binary_expression "param_1 + 0x198" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    iVar4 = dupprintf(PTR_DAT_001112f8 + -0x5448,param_2,PTR_sshver_001117cc);\n  }" { (expression_statement "iVar4 = dupprintf(PTR_DAT_001112f8 + -0x5448,param_2,PTR_sshver_001117cc);" (assignment_expression "iVar4 = dupprintf(PTR_DAT_001112f8 + -0x5448,param_2,PTR_sshver_001117cc)" identifier = (call_expression "dupprintf(PTR_DAT_001112f8 + -0x5448,param_2,PTR_sshver_001117cc)" identifier (argument_list "(PTR_DAT_001112f8 + -0x5448,param_2,PTR_sshver_001117cc)" ( (binary_expression "PTR_DAT_001112f8 + -0x5448" identifier + number_literal) , identifier , identifier )))) ;) }) (else_clause "else {\n    iVar4 = (*(code *)PTR_strcmp_00112498)(param_2,PTR_DAT_001112f8 + -0x543c);\n    puVar2 = PTR_DAT_00111314;\n    if (iVar4 != 0) {\n      (*(code *)PTR___assert_fail_00111f50)\n                (PTR_DAT_001112f8 + -0x5434,PTR_DAT_001112f8 + -0x6580,0xbff,\n                 PTR_DAT_001112f8 + -0x1f04);\n      return;\n    }\n    iVar4 = FUN_0004997c(param_3,PTR_DAT_00111314 + 0x1620);\n    if (0 < iVar4) {\n      param_3 = puVar2 + 0x1620;\n    }\n    iVar4 = dupprintf(PTR_DAT_001112f8 + -0x5418,param_3,PTR_sshver_001117cc);\n  }" else (compound_statement "{\n    iVar4 = (*(code *)PTR_strcmp_00112498)(param_2,PTR_DAT_001112f8 + -0x543c);\n    puVar2 = PTR_DAT_00111314;\n    if (iVar4 != 0) {\n      (*(code *)PTR___assert_fail_00111f50)\n                (PTR_DAT_001112f8 + -0x5434,PTR_DAT_001112f8 + -0x6580,0xbff,\n                 PTR_DAT_001112f8 + -0x1f04);\n      return;\n    }\n    iVar4 = FUN_0004997c(param_3,PTR_DAT_00111314 + 0x1620);\n    if (0 < iVar4) {\n      param_3 = puVar2 + 0x1620;\n    }\n    iVar4 = dupprintf(PTR_DAT_001112f8 + -0x5418,param_3,PTR_sshver_001117cc);\n  }" { (expression_statement "iVar4 = (*(code *)PTR_strcmp_00112498)(param_2,PTR_DAT_001112f8 + -0x543c);" (assignment_expression "iVar4 = (*(code *)PTR_strcmp_00112498)(param_2,PTR_DAT_001112f8 + -0x543c)" identifier = (call_expression "(*(code *)PTR_strcmp_00112498)(param_2,PTR_DAT_001112f8 + -0x543c)" (parenthesized_expression "(*(code *)PTR_strcmp_00112498)" ( (pointer_expression "*(code *)PTR_strcmp_00112498" * (cast_expression "(code *)PTR_strcmp_00112498" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2,PTR_DAT_001112f8 + -0x543c)" ( identifier , (binary_expression "PTR_DAT_001112f8 + -0x543c" identifier + number_literal) )))) ;) (expression_statement "puVar2 = PTR_DAT_00111314;" (assignment_expression "puVar2 = PTR_DAT_00111314" identifier = identifier) ;) (if_statement "if (iVar4 != 0) {\n      (*(code *)PTR___assert_fail_00111f50)\n                (PTR_DAT_001112f8 + -0x5434,PTR_DAT_001112f8 + -0x6580,0xbff,\n                 PTR_DAT_001112f8 + -0x1f04);\n      return;\n    }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n      (*(code *)PTR___assert_fail_00111f50)\n                (PTR_DAT_001112f8 + -0x5434,PTR_DAT_001112f8 + -0x6580,0xbff,\n                 PTR_DAT_001112f8 + -0x1f04);\n      return;\n    }" { (expression_statement "(*(code *)PTR___assert_fail_00111f50)\n                (PTR_DAT_001112f8 + -0x5434,PTR_DAT_001112f8 + -0x6580,0xbff,\n                 PTR_DAT_001112f8 + -0x1f04);" (call_expression "(*(code *)PTR___assert_fail_00111f50)\n                (PTR_DAT_001112f8 + -0x5434,PTR_DAT_001112f8 + -0x6580,0xbff,\n                 PTR_DAT_001112f8 + -0x1f04)" (parenthesized_expression "(*(code *)PTR___assert_fail_00111f50)" ( (pointer_expression "*(code *)PTR___assert_fail_00111f50" * (cast_expression "(code *)PTR___assert_fail_00111f50" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_001112f8 + -0x5434,PTR_DAT_001112f8 + -0x6580,0xbff,\n                 PTR_DAT_001112f8 + -0x1f04)" ( (binary_expression "PTR_DAT_001112f8 + -0x5434" identifier + number_literal) , (binary_expression "PTR_DAT_001112f8 + -0x6580" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_001112f8 + -0x1f04" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })) (expression_statement "iVar4 = FUN_0004997c(param_3,PTR_DAT_00111314 + 0x1620);" (assignment_expression "iVar4 = FUN_0004997c(param_3,PTR_DAT_00111314 + 0x1620)" identifier = (call_expression "FUN_0004997c(param_3,PTR_DAT_00111314 + 0x1620)" identifier (argument_list "(param_3,PTR_DAT_00111314 + 0x1620)" ( identifier , (binary_expression "PTR_DAT_00111314 + 0x1620" identifier + number_literal) )))) ;) (if_statement "if (0 < iVar4) {\n      param_3 = puVar2 + 0x1620;\n    }" if (parenthesized_expression "(0 < iVar4)" ( (binary_expression "0 < iVar4" number_literal < identifier) )) (compound_statement "{\n      param_3 = puVar2 + 0x1620;\n    }" { (expression_statement "param_3 = puVar2 + 0x1620;" (assignment_expression "param_3 = puVar2 + 0x1620" identifier = (binary_expression "puVar2 + 0x1620" identifier + number_literal)) ;) })) (expression_statement "iVar4 = dupprintf(PTR_DAT_001112f8 + -0x5418,param_3,PTR_sshver_001117cc);" (assignment_expression "iVar4 = dupprintf(PTR_DAT_001112f8 + -0x5418,param_3,PTR_sshver_001117cc)" identifier = (call_expression "dupprintf(PTR_DAT_001112f8 + -0x5418,param_3,PTR_sshver_001117cc)" identifier (argument_list "(PTR_DAT_001112f8 + -0x5418,param_3,PTR_sshver_001117cc)" ( (binary_expression "PTR_DAT_001112f8 + -0x5418" identifier + number_literal) , identifier , identifier )))) ;) }))) (expression_statement "iVar5 = (*(code *)PTR_strlen_00112534)(param_2);" (assignment_expression "iVar5 = (*(code *)PTR_strlen_00112534)(param_2)" identifier = (call_expression "(*(code *)PTR_strlen_00112534)(param_2)" (parenthesized_expression "(*(code *)PTR_strlen_00112534)" ( (pointer_expression "*(code *)PTR_strlen_00112534" * (cast_expression "(code *)PTR_strlen_00112534" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_2)" ( identifier )))) ;) (expression_statement "cVar1 = *(char *)(iVar4 + iVar5);" (assignment_expression "cVar1 = *(char *)(iVar4 + iVar5)" identifier = (pointer_expression "*(char *)(iVar4 + iVar5)" * (cast_expression "(char *)(iVar4 + iVar5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + iVar5)" ( (binary_expression "iVar4 + iVar5" identifier + identifier) ))))) ;) (expression_statement "pcVar6 = (char *)(iVar4 + iVar5);" (assignment_expression "pcVar6 = (char *)(iVar4 + iVar5)" identifier = (cast_expression "(char *)(iVar4 + iVar5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + iVar5)" ( (binary_expression "iVar4 + iVar5" identifier + identifier) )))) ;) (while_statement "while( true ) {\n    if (cVar1 == '\0') {\n      (*(code *)PTR___assert_fail_00111f50)\n                (PTR_DAT_001112f8 + -0x53f4,PTR_DAT_001112f8 + -0x6580,0xbe4,\n                 PTR_DAT_001112f8 + -0x1f18);\n      return;\n    }\n    if (cVar1 == '-') break;\n    cVar1 = pcVar6[1];\n    pcVar6 = pcVar6 + 1;\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    if (cVar1 == '\0') {\n      (*(code *)PTR___assert_fail_00111f50)\n                (PTR_DAT_001112f8 + -0x53f4,PTR_DAT_001112f8 + -0x6580,0xbe4,\n                 PTR_DAT_001112f8 + -0x1f18);\n      return;\n    }\n    if (cVar1 == '-') break;\n    cVar1 = pcVar6[1];\n    pcVar6 = pcVar6 + 1;\n  }" { (if_statement "if (cVar1 == '\0') {\n      (*(code *)PTR___assert_fail_00111f50)\n                (PTR_DAT_001112f8 + -0x53f4,PTR_DAT_001112f8 + -0x6580,0xbe4,\n                 PTR_DAT_001112f8 + -0x1f18);\n      return;\n    }" if (parenthesized_expression "(cVar1 == '\0')" ( (binary_expression "cVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      (*(code *)PTR___assert_fail_00111f50)\n                (PTR_DAT_001112f8 + -0x53f4,PTR_DAT_001112f8 + -0x6580,0xbe4,\n                 PTR_DAT_001112f8 + -0x1f18);\n      return;\n    }" { (expression_statement "(*(code *)PTR___assert_fail_00111f50)\n                (PTR_DAT_001112f8 + -0x53f4,PTR_DAT_001112f8 + -0x6580,0xbe4,\n                 PTR_DAT_001112f8 + -0x1f18);" (call_expression "(*(code *)PTR___assert_fail_00111f50)\n                (PTR_DAT_001112f8 + -0x53f4,PTR_DAT_001112f8 + -0x6580,0xbe4,\n                 PTR_DAT_001112f8 + -0x1f18)" (parenthesized_expression "(*(code *)PTR___assert_fail_00111f50)" ( (pointer_expression "*(code *)PTR___assert_fail_00111f50" * (cast_expression "(code *)PTR___assert_fail_00111f50" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(PTR_DAT_001112f8 + -0x53f4,PTR_DAT_001112f8 + -0x6580,0xbe4,\n                 PTR_DAT_001112f8 + -0x1f18)" ( (binary_expression "PTR_DAT_001112f8 + -0x53f4" identifier + number_literal) , (binary_expression "PTR_DAT_001112f8 + -0x6580" identifier + number_literal) , number_literal , (binary_expression "PTR_DAT_001112f8 + -0x1f18" identifier + number_literal) ))) ;) (return_statement "return;" return ;) })) (if_statement "if (cVar1 == '-') break;" if (parenthesized_expression "(cVar1 == '-')" ( (binary_expression "cVar1 == '-'" identifier == (char_literal "'-'" ' character ')) )) (break_statement "break;" break ;)) (expression_statement "cVar1 = pcVar6[1];" (assignment_expression "cVar1 = pcVar6[1]" identifier = (subscript_expression "pcVar6[1]" identifier [ number_literal ])) ;) (expression_statement "pcVar6 = pcVar6 + 1;" (assignment_expression "pcVar6 = pcVar6 + 1" identifier = (binary_expression "pcVar6 + 1" identifier + number_literal)) ;) })) (expression_statement "cVar1 = pcVar6[1];" (assignment_expression "cVar1 = pcVar6[1]" identifier = (subscript_expression "pcVar6[1]" identifier [ number_literal ])) ;) (expression_statement "puVar2 = PTR_DAT_001112f8;" (assignment_expression "puVar2 = PTR_DAT_001112f8" identifier = identifier) ;) (while_statement "while (PTR_DAT_001112f8 = puVar2, cVar1 != '\0') {\n    pcVar6 = pcVar6 + 1;\n    if ((cVar1 == '-') || (cVar1 == ' ')) {\n      *pcVar6 = '_';\n      cVar1 = pcVar6[1];\n      puVar2 = PTR_DAT_001112f8;\n    }\n    else {\n      cVar1 = pcVar6[1];\n    }\n  }" while (parenthesized_expression "(PTR_DAT_001112f8 = puVar2, cVar1 != '\0')" ( (comma_expression "PTR_DAT_001112f8 = puVar2, cVar1 != '\0'" (assignment_expression "PTR_DAT_001112f8 = puVar2" identifier = identifier) , (binary_expression "cVar1 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence '))) )) (compound_statement "{\n    pcVar6 = pcVar6 + 1;\n    if ((cVar1 == '-') || (cVar1 == ' ')) {\n      *pcVar6 = '_';\n      cVar1 = pcVar6[1];\n      puVar2 = PTR_DAT_001112f8;\n    }\n    else {\n      cVar1 = pcVar6[1];\n    }\n  }" { (expression_statement "pcVar6 = pcVar6 + 1;" (assignment_expression "pcVar6 = pcVar6 + 1" identifier = (binary_expression "pcVar6 + 1" identifier + number_literal)) ;) (if_statement "if ((cVar1 == '-') || (cVar1 == ' ')) {\n      *pcVar6 = '_';\n      cVar1 = pcVar6[1];\n      puVar2 = PTR_DAT_001112f8;\n    }\n    else {\n      cVar1 = pcVar6[1];\n    }" if (parenthesized_expression "((cVar1 == '-') || (cVar1 == ' '))" ( (binary_expression "(cVar1 == '-') || (cVar1 == ' ')" (parenthesized_expression "(cVar1 == '-')" ( (binary_expression "cVar1 == '-'" identifier == (char_literal "'-'" ' character ')) )) || (parenthesized_expression "(cVar1 == ' ')" ( (binary_expression "cVar1 == ' '" identifier == (char_literal "' '" ' character ')) ))) )) (compound_statement "{\n      *pcVar6 = '_';\n      cVar1 = pcVar6[1];\n      puVar2 = PTR_DAT_001112f8;\n    }" { (expression_statement "*pcVar6 = '_';" (assignment_expression "*pcVar6 = '_'" (pointer_expression "*pcVar6" * identifier) = (char_literal "'_'" ' character ')) ;) (expression_statement "cVar1 = pcVar6[1];" (assignment_expression "cVar1 = pcVar6[1]" identifier = (subscript_expression "pcVar6[1]" identifier [ number_literal ])) ;) (expression_statement "puVar2 = PTR_DAT_001112f8;" (assignment_expression "puVar2 = PTR_DAT_001112f8" identifier = identifier) ;) }) (else_clause "else {\n      cVar1 = pcVar6[1];\n    }" else (compound_statement "{\n      cVar1 = pcVar6[1];\n    }" { (expression_statement "cVar1 = pcVar6[1];" (assignment_expression "cVar1 = pcVar6[1]" identifier = (subscript_expression "pcVar6[1]" identifier [ number_literal ])) ;) }))) })) (expression_statement "iVar5 = (*(code *)PTR_strcspn_001121cc)(iVar4,puVar2 + -0x4e40);" (assignment_expression "iVar5 = (*(code *)PTR_strcspn_001121cc)(iVar4,puVar2 + -0x4e40)" identifier = (call_expression "(*(code *)PTR_strcspn_001121cc)(iVar4,puVar2 + -0x4e40)" (parenthesized_expression "(*(code *)PTR_strcspn_001121cc)" ( (pointer_expression "*(code *)PTR_strcspn_001121cc" * (cast_expression "(code *)PTR_strcspn_001121cc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4,puVar2 + -0x4e40)" ( identifier , (binary_expression "puVar2 + -0x4e40" identifier + number_literal) )))) ;) (if_statement "if (*(int *)(param_1 + 0x198) == 2) {\n    uVar7 = safemalloc(iVar5 + 1,1);\n    puVar3 = PTR_memcpy_0011256c;\n    *(undefined4 *)(param_1 + 4) = uVar7;\n    (*(code *)puVar3)(uVar7,iVar4,iVar5);\n    puVar3 = PTR_strcspn_001121cc;\n    *(undefined1 *)(*(int *)(param_1 + 4) + iVar5) = 0;\n    iVar5 = (*(code *)puVar3)(iVar4,puVar2 + -0x4e40);\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x198) == 2)" ( (binary_expression "*(int *)(param_1 + 0x198) == 2" (pointer_expression "*(int *)(param_1 + 0x198)" * (cast_expression "(int *)(param_1 + 0x198)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x198)" ( (binary_expression "param_1 + 0x198" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    uVar7 = safemalloc(iVar5 + 1,1);\n    puVar3 = PTR_memcpy_0011256c;\n    *(undefined4 *)(param_1 + 4) = uVar7;\n    (*(code *)puVar3)(uVar7,iVar4,iVar5);\n    puVar3 = PTR_strcspn_001121cc;\n    *(undefined1 *)(*(int *)(param_1 + 4) + iVar5) = 0;\n    iVar5 = (*(code *)puVar3)(iVar4,puVar2 + -0x4e40);\n  }" { (expression_statement "uVar7 = safemalloc(iVar5 + 1,1);" (assignment_expression "uVar7 = safemalloc(iVar5 + 1,1)" identifier = (call_expression "safemalloc(iVar5 + 1,1)" identifier (argument_list "(iVar5 + 1,1)" ( (binary_expression "iVar5 + 1" identifier + number_literal) , number_literal )))) ;) (expression_statement "puVar3 = PTR_memcpy_0011256c;" (assignment_expression "puVar3 = PTR_memcpy_0011256c" identifier = identifier) ;) (expression_statement "*(undefined4 *)(param_1 + 4) = uVar7;" (assignment_expression "*(undefined4 *)(param_1 + 4) = uVar7" (pointer_expression "*(undefined4 *)(param_1 + 4)" * (cast_expression "(undefined4 *)(param_1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "(*(code *)puVar3)(uVar7,iVar4,iVar5);" (call_expression "(*(code *)puVar3)(uVar7,iVar4,iVar5)" (parenthesized_expression "(*(code *)puVar3)" ( (pointer_expression "*(code *)puVar3" * (cast_expression "(code *)puVar3" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(uVar7,iVar4,iVar5)" ( identifier , identifier , identifier ))) ;) (expression_statement "puVar3 = PTR_strcspn_001121cc;" (assignment_expression "puVar3 = PTR_strcspn_001121cc" identifier = identifier) ;) (expression_statement "*(undefined1 *)(*(int *)(param_1 + 4) + iVar5) = 0;" (assignment_expression "*(undefined1 *)(*(int *)(param_1 + 4) + iVar5) = 0" (pointer_expression "*(undefined1 *)(*(int *)(param_1 + 4) + iVar5)" * (cast_expression "(undefined1 *)(*(int *)(param_1 + 4) + iVar5)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 4) + iVar5)" ( (binary_expression "*(int *)(param_1 + 4) + iVar5" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) + identifier) )))) = number_literal) ;) (expression_statement "iVar5 = (*(code *)puVar3)(iVar4,puVar2 + -0x4e40);" (assignment_expression "iVar5 = (*(code *)puVar3)(iVar4,puVar2 + -0x4e40)" identifier = (call_expression "(*(code *)puVar3)(iVar4,puVar2 + -0x4e40)" (parenthesized_expression "(*(code *)puVar3)" ( (pointer_expression "*(code *)puVar3" * (cast_expression "(code *)puVar3" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4,puVar2 + -0x4e40)" ( identifier , (binary_expression "puVar2 + -0x4e40" identifier + number_literal) )))) ;) })) (expression_statement "FUN_00047158(param_1,PTR_DAT_001112f8 + -0x540c,iVar5,iVar4);" (call_expression "FUN_00047158(param_1,PTR_DAT_001112f8 + -0x540c,iVar5,iVar4)" identifier (argument_list "(param_1,PTR_DAT_001112f8 + -0x540c,iVar5,iVar4)" ( identifier , (binary_expression "PTR_DAT_001112f8 + -0x540c" identifier + number_literal) , identifier , identifier ))) ;) (expression_statement "uVar7 = (*(code *)PTR_strlen_00112534)(iVar4);" (assignment_expression "uVar7 = (*(code *)PTR_strlen_00112534)(iVar4)" identifier = (call_expression "(*(code *)PTR_strlen_00112534)(iVar4)" (parenthesized_expression "(*(code *)PTR_strlen_00112534)" ( (pointer_expression "*(code *)PTR_strlen_00112534" * (cast_expression "(code *)PTR_strlen_00112534" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar4)" ( identifier )))) ;) (expression_statement "FUN_0004cdd0(param_1 + 0x10,*(undefined4 *)(param_1 + 0x18),iVar4,uVar7);" (call_expression "FUN_0004cdd0(param_1 + 0x10,*(undefined4 *)(param_1 + 0x18),iVar4,uVar7)" identifier (argument_list "(param_1 + 0x10,*(undefined4 *)(param_1 + 0x18),iVar4,uVar7)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) , (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) , identifier , identifier ))) ;) (expression_statement "safefree(iVar4);" (call_expression "safefree(iVar4)" identifier (argument_list "(iVar4)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE 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 = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) ))) ;) (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT )))) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , LIT , (binary_expression IDENT + LIT) ))) ;) (return_statement return ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression IDENT != (char_literal ' escape_sequence '))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) )) || (parenthesized_expression ( (binary_expression IDENT == (char_literal ' character ')) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (char_literal ' character ')) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_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 , (binary_expression IDENT + LIT) )))) ;) (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 = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , LIT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + 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 , (binary_expression IDENT + LIT) )))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_0004ce8c(int param_1,undefined4 param_2,undefined *param_3)\n\n{\n  char cVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  int iVar5;\n  char *pcVar6;\n  undefined4 uVar7;\n  \n  if (*(int *)(param_1 + 0x198) == 2) {\n    iVar4 = dupprintf(PTR_DAT_001112f8 + -0x5448,param_2,PTR_sshver_001117cc);\n  }\n  else {\n    iVar4 = (*(code *)PTR_strcmp_00112498)(param_2,PTR_DAT_001112f8 + -0x543c);\n    puVar2 = PTR_DAT_00111314;\n    if (iVar4 != 0) {\n      (*(code *)PTR___assert_fail_00111f50)\n                (PTR_DAT_001112f8 + -0x5434,PTR_DAT_001112f8 + -0x6580,0xbff,\n                 PTR_DAT_001112f8 + -0x1f04);\n      return;\n    }\n    iVar4 = FUN_0004997c(param_3,PTR_DAT_00111314 + 0x1620);\n    if (0 < iVar4) {\n      param_3 = puVar2 + 0x1620;\n    }\n    iVar4 = dupprintf(PTR_DAT_001112f8 + -0x5418,param_3,PTR_sshver_001117cc);\n  }\n  iVar5 = (*(code *)PTR_strlen_00112534)(param_2);\n  cVar1 = *(char *)(iVar4 + iVar5);\n  pcVar6 = (char *)(iVar4 + iVar5);\n  while( true ) {\n    if (cVar1 == '\0') {\n      (*(code *)PTR___assert_fail_00111f50)\n                (PTR_DAT_001112f8 + -0x53f4,PTR_DAT_001112f8 + -0x6580,0xbe4,\n                 PTR_DAT_001112f8 + -0x1f18);\n      return;\n    }\n    if (cVar1 == '-') break;\n    cVar1 = pcVar6[1];\n    pcVar6 = pcVar6 + 1;\n  }\n  cVar1 = pcVar6[1];\n  puVar2 = PTR_DAT_001112f8;\n  while (PTR_DAT_001112f8 = puVar2, cVar1 != '\0') {\n    pcVar6 = pcVar6 + 1;\n    if ((cVar1 == '-') || (cVar1 == ' ')) {\n      *pcVar6 = '_';\n      cVar1 = pcVar6[1];\n      puVar2 = PTR_DAT_001112f8;\n    }\n    else {\n      cVar1 = pcVar6[1];\n    }\n  }\n  iVar5 = (*(code *)PTR_strcspn_001121cc)(iVar4,puVar2 + -0x4e40);\n  if (*(int *)(param_1 + 0x198) == 2) {\n    uVar7 = safemalloc(iVar5 + 1,1);\n    puVar3 = PTR_memcpy_0011256c;\n    *(undefined4 *)(param_1 + 4) = uVar7;\n    (*(code *)puVar3)(uVar7,iVar4,iVar5);\n    puVar3 = PTR_strcspn_001121cc;\n    *(undefined1 *)(*(int *)(param_1 + 4) + iVar5) = 0;\n    iVar5 = (*(code *)puVar3)(iVar4,puVar2 + -0x4e40);\n  }\n  FUN_00047158(param_1,PTR_DAT_001112f8 + -0x540c,iVar5,iVar4);\n  uVar7 = (*(code *)PTR_strlen_00112534)(iVar4);\n  FUN_0004cdd0(param_1 + 0x10,*(undefined4 *)(param_1 + 0x18),iVar4,uVar7);\n  safefree(iVar4);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0004ce8c(int param_1,undefined4 param_2,undefined *param_3)" (identifier "FUN_0004ce8c") (parameter_list "(int param_1,undefined4 param_2,undefined *param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined *param_3" (type_identifier "undefined") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  char cVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  int iVar4;\n  int iVar5;\n  char *pcVar6;\n  undefined4 uVar7;\n  \n  if (*(int *)(param_1 + 0x198) == 2) {\n    iVar4 = dupprintf(PTR_DAT_001112f8 + -0x5448,param_2,PTR_sshver_001117cc);\n  }\n  else {\n    iVar4 = (*(code *)PTR_strcmp_00112498)(param_2,PTR_DAT_001112f8 + -0x543c);\n    puVar2 = PTR_DAT_00111314;\n    if (iVar4 != 0) {\n      (*(code *)PTR___assert_fail_00111f50)\n                (PTR_DAT_001112f8 + -0x5434,PTR_DAT_001112f8 + -0x6580,0xbff,\n                 PTR_DAT_001112f8 + -0x1f04);\n      return;\n    }\n    iVar4 = FUN_0004997c(param_3,PTR_DAT_00111314 + 0x1620);\n    if (0 < iVar4) {\n      param_3 = puVar2 + 0x1620;\n    }\n    iVar4 = dupprintf(PTR_DAT_001112f8 + -0x5418,param_3,PTR_sshver_001117cc);\n  }\n  iVar5 = (*(code *)PTR_strlen_00112534)(param_2);\n  cVar1 = *(char *)(iVar4 + iVar5);\n  pcVar6 = (char *)(iVar4 + iVar5);\n  while( true ) {\n    if (cVar1 == '\0') {\n      (*(code *)PTR___assert_fail_00111f50)\n                (PTR_DAT_001112f8 + -0x53f4,PTR_DAT_001112f8 + -0x6580,0xbe4,\n                 PTR_DAT_001112f8 + -0x1f18);\n      return;\n    }\n    if (cVar1 == '-') break;\n    cVar1 = pcVar6[1];\n    pcVar6 = pcVar6 + 1;\n  }\n  cVar1 = pcVar6[1];\n  puVar2 = PTR_DAT_001112f8;\n  while (PTR_DAT_001112f8 = puVar2, cVar1 != '\0') {\n    pcVar6 = pcVar6 + 1;\n    if ((cVar1 == '-') || (cVar1 == ' ')) {\n      *pcVar6 = '_';\n      cVar1 = pcVar6[1];\n      puVar2 = PTR_DAT_001112f8;\n    }\n    else {\n      cVar1 = pcVar6[1];\n    }\n  }\n  iVar5 = (*(code *)PTR_strcspn_001121cc)(iVar4,puVar2 + -0x4e40);\n  if (*(int *)(param_1 + 0x198) == 2) {\n    uVar7 = safemalloc(iVar5 + 1,1);\n    puVar3 = PTR_memcpy_0011256c;\n    *(undefined4 *)(param_1 + 4) = uVar7;\n    (*(code *)puVar3)(uVar7,iVar4,iVar5);\n    puVar3 = PTR_strcspn_001121cc;\n    *(undefined1 *)(*(int *)(param_1 + 4) + iVar5) = 0;\n    iVar5 = (*(code *)puVar3)(iVar4,puVar2 + -0x4e40);\n  }\n  FUN_00047158(param_1,PTR_DAT_001112f8 + -0x540c,iVar5,iVar4);\n  uVar7 = (*(code *)PTR_strlen_00112534)(iVar4);\n  FUN_0004cdd0(param_1 + 0x10,*(undefined4 *)(param_1 + 0x18),iVar4,uVar7);\n  safefree(iVar4);\n  return;\n}" ({ "{") (declaration "char cVar1;" (primitive_type "char") (identifier "cVar1") (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined *puVar3;" (type_identifier "undefined") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "char *pcVar6;" (primitive_type "char") (pointer_declarator "*pcVar6" (* "*") (identifier "pcVar6")) (; ";")) (declaration "undefined4 uVar7;" (type_identifier "undefined4") (identifier "uVar7") (; ";")) (if_statement "if (*(int *)(param_1 + 0x198) == 2) {\n    iVar4 = dupprintf(PTR_DAT_001112f8 + -0x5448,param_2,PTR_sshver_001117cc);\n  }\n  else {\n    iVar4 = (*(code *)PTR_strcmp_00112498)(param_2,PTR_DAT_001112f8 + -0x543c);\n    puVar2 = PTR_DAT_00111314;\n    if (iVar4 != 0) {\n      (*(code *)PTR___assert_fail_00111f50)\n                (PTR_DAT_001112f8 + -0x5434,PTR_DAT_001112f8 + -0x6580,0xbff,\n                 PTR_DAT_001112f8 + -0x1f04);\n      return;\n    }\n    iVar4 = FUN_0004997c(param_3,PTR_DAT_00111314 + 0x1620);\n    if (0 < iVar4) {\n      param_3 = puVar2 + 0x1620;\n    }\n    iVar4 = dupprintf(PTR_DAT_001112f8 + -0x5418,param_3,PTR_sshver_001117cc);\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x198) == 2)" (( "(") (binary_expression "*(int *)(param_1 + 0x198) == 2" (pointer_expression "*(int *)(param_1 + 0x198)" (* "*") (cast_expression "(int *)(param_1 + 0x198)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x198)" (( "(") (binary_expression "param_1 + 0x198" (identifier "param_1") (+ "+") (number_literal "0x198")) () ")")))) (== "==") (number_literal "2")) () ")")) (compound_statement "{\n    iVar4 = dupprintf(PTR_DAT_001112f8 + -0x5448,param_2,PTR_sshver_001117cc);\n  }" ({ "{") (expression_statement "iVar4 = dupprintf(PTR_DAT_001112f8 + -0x5448,param_2,PTR_sshver_001117cc);" (assignment_expression "iVar4 = dupprintf(PTR_DAT_001112f8 + -0x5448,param_2,PTR_sshver_001117cc)" (identifier "iVar4") (= "=") (call_expression "dupprintf(PTR_DAT_001112f8 + -0x5448,param_2,PTR_sshver_001117cc)" (identifier "dupprintf") (argument_list "(PTR_DAT_001112f8 + -0x5448,param_2,PTR_sshver_001117cc)" (( "(") (binary_expression "PTR_DAT_001112f8 + -0x5448" (identifier "PTR_DAT_001112f8") (+ "+") (number_literal "-0x5448")) (, ",") (identifier "param_2") (, ",") (identifier "PTR_sshver_001117cc") () ")")))) (; ";")) (} "}")) (else_clause "else {\n    iVar4 = (*(code *)PTR_strcmp_00112498)(param_2,PTR_DAT_001112f8 + -0x543c);\n    puVar2 = PTR_DAT_00111314;\n    if (iVar4 != 0) {\n      (*(code *)PTR___assert_fail_00111f50)\n                (PTR_DAT_001112f8 + -0x5434,PTR_DAT_001112f8 + -0x6580,0xbff,\n                 PTR_DAT_001112f8 + -0x1f04);\n      return;\n    }\n    iVar4 = FUN_0004997c(param_3,PTR_DAT_00111314 + 0x1620);\n    if (0 < iVar4) {\n      param_3 = puVar2 + 0x1620;\n    }\n    iVar4 = dupprintf(PTR_DAT_001112f8 + -0x5418,param_3,PTR_sshver_001117cc);\n  }" (else "else") (compound_statement "{\n    iVar4 = (*(code *)PTR_strcmp_00112498)(param_2,PTR_DAT_001112f8 + -0x543c);\n    puVar2 = PTR_DAT_00111314;\n    if (iVar4 != 0) {\n      (*(code *)PTR___assert_fail_00111f50)\n                (PTR_DAT_001112f8 + -0x5434,PTR_DAT_001112f8 + -0x6580,0xbff,\n                 PTR_DAT_001112f8 + -0x1f04);\n      return;\n    }\n    iVar4 = FUN_0004997c(param_3,PTR_DAT_00111314 + 0x1620);\n    if (0 < iVar4) {\n      param_3 = puVar2 + 0x1620;\n    }\n    iVar4 = dupprintf(PTR_DAT_001112f8 + -0x5418,param_3,PTR_sshver_001117cc);\n  }" ({ "{") (expression_statement "iVar4 = (*(code *)PTR_strcmp_00112498)(param_2,PTR_DAT_001112f8 + -0x543c);" (assignment_expression "iVar4 = (*(code *)PTR_strcmp_00112498)(param_2,PTR_DAT_001112f8 + -0x543c)" (identifier "iVar4") (= "=") (call_expression "(*(code *)PTR_strcmp_00112498)(param_2,PTR_DAT_001112f8 + -0x543c)" (parenthesized_expression "(*(code *)PTR_strcmp_00112498)" (( "(") (pointer_expression "*(code *)PTR_strcmp_00112498" (* "*") (cast_expression "(code *)PTR_strcmp_00112498" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strcmp_00112498"))) () ")")) (argument_list "(param_2,PTR_DAT_001112f8 + -0x543c)" (( "(") (identifier "param_2") (, ",") (binary_expression "PTR_DAT_001112f8 + -0x543c" (identifier "PTR_DAT_001112f8") (+ "+") (number_literal "-0x543c")) () ")")))) (; ";")) (expression_statement "puVar2 = PTR_DAT_00111314;" (assignment_expression "puVar2 = PTR_DAT_00111314" (identifier "puVar2") (= "=") (identifier "PTR_DAT_00111314")) (; ";")) (if_statement "if (iVar4 != 0) {\n      (*(code *)PTR___assert_fail_00111f50)\n                (PTR_DAT_001112f8 + -0x5434,PTR_DAT_001112f8 + -0x6580,0xbff,\n                 PTR_DAT_001112f8 + -0x1f04);\n      return;\n    }" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      (*(code *)PTR___assert_fail_00111f50)\n                (PTR_DAT_001112f8 + -0x5434,PTR_DAT_001112f8 + -0x6580,0xbff,\n                 PTR_DAT_001112f8 + -0x1f04);\n      return;\n    }" ({ "{") (expression_statement "(*(code *)PTR___assert_fail_00111f50)\n                (PTR_DAT_001112f8 + -0x5434,PTR_DAT_001112f8 + -0x6580,0xbff,\n                 PTR_DAT_001112f8 + -0x1f04);" (call_expression "(*(code *)PTR___assert_fail_00111f50)\n                (PTR_DAT_001112f8 + -0x5434,PTR_DAT_001112f8 + -0x6580,0xbff,\n                 PTR_DAT_001112f8 + -0x1f04)" (parenthesized_expression "(*(code *)PTR___assert_fail_00111f50)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_00111f50" (* "*") (cast_expression "(code *)PTR___assert_fail_00111f50" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_00111f50"))) () ")")) (argument_list "(PTR_DAT_001112f8 + -0x5434,PTR_DAT_001112f8 + -0x6580,0xbff,\n                 PTR_DAT_001112f8 + -0x1f04)" (( "(") (binary_expression "PTR_DAT_001112f8 + -0x5434" (identifier "PTR_DAT_001112f8") (+ "+") (number_literal "-0x5434")) (, ",") (binary_expression "PTR_DAT_001112f8 + -0x6580" (identifier "PTR_DAT_001112f8") (+ "+") (number_literal "-0x6580")) (, ",") (number_literal "0xbff") (, ",") (binary_expression "PTR_DAT_001112f8 + -0x1f04" (identifier "PTR_DAT_001112f8") (+ "+") (number_literal "-0x1f04")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar4 = FUN_0004997c(param_3,PTR_DAT_00111314 + 0x1620);" (assignment_expression "iVar4 = FUN_0004997c(param_3,PTR_DAT_00111314 + 0x1620)" (identifier "iVar4") (= "=") (call_expression "FUN_0004997c(param_3,PTR_DAT_00111314 + 0x1620)" (identifier "FUN_0004997c") (argument_list "(param_3,PTR_DAT_00111314 + 0x1620)" (( "(") (identifier "param_3") (, ",") (binary_expression "PTR_DAT_00111314 + 0x1620" (identifier "PTR_DAT_00111314") (+ "+") (number_literal "0x1620")) () ")")))) (; ";")) (if_statement "if (0 < iVar4) {\n      param_3 = puVar2 + 0x1620;\n    }" (if "if") (parenthesized_expression "(0 < iVar4)" (( "(") (binary_expression "0 < iVar4" (number_literal "0") (< "<") (identifier "iVar4")) () ")")) (compound_statement "{\n      param_3 = puVar2 + 0x1620;\n    }" ({ "{") (expression_statement "param_3 = puVar2 + 0x1620;" (assignment_expression "param_3 = puVar2 + 0x1620" (identifier "param_3") (= "=") (binary_expression "puVar2 + 0x1620" (identifier "puVar2") (+ "+") (number_literal "0x1620"))) (; ";")) (} "}"))) (expression_statement "iVar4 = dupprintf(PTR_DAT_001112f8 + -0x5418,param_3,PTR_sshver_001117cc);" (assignment_expression "iVar4 = dupprintf(PTR_DAT_001112f8 + -0x5418,param_3,PTR_sshver_001117cc)" (identifier "iVar4") (= "=") (call_expression "dupprintf(PTR_DAT_001112f8 + -0x5418,param_3,PTR_sshver_001117cc)" (identifier "dupprintf") (argument_list "(PTR_DAT_001112f8 + -0x5418,param_3,PTR_sshver_001117cc)" (( "(") (binary_expression "PTR_DAT_001112f8 + -0x5418" (identifier "PTR_DAT_001112f8") (+ "+") (number_literal "-0x5418")) (, ",") (identifier "param_3") (, ",") (identifier "PTR_sshver_001117cc") () ")")))) (; ";")) (} "}")))) (expression_statement "iVar5 = (*(code *)PTR_strlen_00112534)(param_2);" (assignment_expression "iVar5 = (*(code *)PTR_strlen_00112534)(param_2)" (identifier "iVar5") (= "=") (call_expression "(*(code *)PTR_strlen_00112534)(param_2)" (parenthesized_expression "(*(code *)PTR_strlen_00112534)" (( "(") (pointer_expression "*(code *)PTR_strlen_00112534" (* "*") (cast_expression "(code *)PTR_strlen_00112534" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_00112534"))) () ")")) (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (expression_statement "cVar1 = *(char *)(iVar4 + iVar5);" (assignment_expression "cVar1 = *(char *)(iVar4 + iVar5)" (identifier "cVar1") (= "=") (pointer_expression "*(char *)(iVar4 + iVar5)" (* "*") (cast_expression "(char *)(iVar4 + iVar5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + iVar5)" (( "(") (binary_expression "iVar4 + iVar5" (identifier "iVar4") (+ "+") (identifier "iVar5")) () ")"))))) (; ";")) (expression_statement "pcVar6 = (char *)(iVar4 + iVar5);" (assignment_expression "pcVar6 = (char *)(iVar4 + iVar5)" (identifier "pcVar6") (= "=") (cast_expression "(char *)(iVar4 + iVar5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar4 + iVar5)" (( "(") (binary_expression "iVar4 + iVar5" (identifier "iVar4") (+ "+") (identifier "iVar5")) () ")")))) (; ";")) (while_statement "while( true ) {\n    if (cVar1 == '\0') {\n      (*(code *)PTR___assert_fail_00111f50)\n                (PTR_DAT_001112f8 + -0x53f4,PTR_DAT_001112f8 + -0x6580,0xbe4,\n                 PTR_DAT_001112f8 + -0x1f18);\n      return;\n    }\n    if (cVar1 == '-') break;\n    cVar1 = pcVar6[1];\n    pcVar6 = pcVar6 + 1;\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    if (cVar1 == '\0') {\n      (*(code *)PTR___assert_fail_00111f50)\n                (PTR_DAT_001112f8 + -0x53f4,PTR_DAT_001112f8 + -0x6580,0xbe4,\n                 PTR_DAT_001112f8 + -0x1f18);\n      return;\n    }\n    if (cVar1 == '-') break;\n    cVar1 = pcVar6[1];\n    pcVar6 = pcVar6 + 1;\n  }" ({ "{") (if_statement "if (cVar1 == '\0') {\n      (*(code *)PTR___assert_fail_00111f50)\n                (PTR_DAT_001112f8 + -0x53f4,PTR_DAT_001112f8 + -0x6580,0xbe4,\n                 PTR_DAT_001112f8 + -0x1f18);\n      return;\n    }" (if "if") (parenthesized_expression "(cVar1 == '\0')" (( "(") (binary_expression "cVar1 == '\0'" (identifier "cVar1") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      (*(code *)PTR___assert_fail_00111f50)\n                (PTR_DAT_001112f8 + -0x53f4,PTR_DAT_001112f8 + -0x6580,0xbe4,\n                 PTR_DAT_001112f8 + -0x1f18);\n      return;\n    }" ({ "{") (expression_statement "(*(code *)PTR___assert_fail_00111f50)\n                (PTR_DAT_001112f8 + -0x53f4,PTR_DAT_001112f8 + -0x6580,0xbe4,\n                 PTR_DAT_001112f8 + -0x1f18);" (call_expression "(*(code *)PTR___assert_fail_00111f50)\n                (PTR_DAT_001112f8 + -0x53f4,PTR_DAT_001112f8 + -0x6580,0xbe4,\n                 PTR_DAT_001112f8 + -0x1f18)" (parenthesized_expression "(*(code *)PTR___assert_fail_00111f50)" (( "(") (pointer_expression "*(code *)PTR___assert_fail_00111f50" (* "*") (cast_expression "(code *)PTR___assert_fail_00111f50" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___assert_fail_00111f50"))) () ")")) (argument_list "(PTR_DAT_001112f8 + -0x53f4,PTR_DAT_001112f8 + -0x6580,0xbe4,\n                 PTR_DAT_001112f8 + -0x1f18)" (( "(") (binary_expression "PTR_DAT_001112f8 + -0x53f4" (identifier "PTR_DAT_001112f8") (+ "+") (number_literal "-0x53f4")) (, ",") (binary_expression "PTR_DAT_001112f8 + -0x6580" (identifier "PTR_DAT_001112f8") (+ "+") (number_literal "-0x6580")) (, ",") (number_literal "0xbe4") (, ",") (binary_expression "PTR_DAT_001112f8 + -0x1f18" (identifier "PTR_DAT_001112f8") (+ "+") (number_literal "-0x1f18")) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (if_statement "if (cVar1 == '-') break;" (if "if") (parenthesized_expression "(cVar1 == '-')" (( "(") (binary_expression "cVar1 == '-'" (identifier "cVar1") (== "==") (char_literal "'-'" (' "'") (character "-") (' "'"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "cVar1 = pcVar6[1];" (assignment_expression "cVar1 = pcVar6[1]" (identifier "cVar1") (= "=") (subscript_expression "pcVar6[1]" (identifier "pcVar6") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "pcVar6 = pcVar6 + 1;" (assignment_expression "pcVar6 = pcVar6 + 1" (identifier "pcVar6") (= "=") (binary_expression "pcVar6 + 1" (identifier "pcVar6") (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "cVar1 = pcVar6[1];" (assignment_expression "cVar1 = pcVar6[1]" (identifier "cVar1") (= "=") (subscript_expression "pcVar6[1]" (identifier "pcVar6") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "puVar2 = PTR_DAT_001112f8;" (assignment_expression "puVar2 = PTR_DAT_001112f8" (identifier "puVar2") (= "=") (identifier "PTR_DAT_001112f8")) (; ";")) (while_statement "while (PTR_DAT_001112f8 = puVar2, cVar1 != '\0') {\n    pcVar6 = pcVar6 + 1;\n    if ((cVar1 == '-') || (cVar1 == ' ')) {\n      *pcVar6 = '_';\n      cVar1 = pcVar6[1];\n      puVar2 = PTR_DAT_001112f8;\n    }\n    else {\n      cVar1 = pcVar6[1];\n    }\n  }" (while "while") (parenthesized_expression "(PTR_DAT_001112f8 = puVar2, cVar1 != '\0')" (( "(") (comma_expression "PTR_DAT_001112f8 = puVar2, cVar1 != '\0'" (assignment_expression "PTR_DAT_001112f8 = puVar2" (identifier "PTR_DAT_001112f8") (= "=") (identifier "puVar2")) (, ",") (binary_expression "cVar1 != '\0'" (identifier "cVar1") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'")))) () ")")) (compound_statement "{\n    pcVar6 = pcVar6 + 1;\n    if ((cVar1 == '-') || (cVar1 == ' ')) {\n      *pcVar6 = '_';\n      cVar1 = pcVar6[1];\n      puVar2 = PTR_DAT_001112f8;\n    }\n    else {\n      cVar1 = pcVar6[1];\n    }\n  }" ({ "{") (expression_statement "pcVar6 = pcVar6 + 1;" (assignment_expression "pcVar6 = pcVar6 + 1" (identifier "pcVar6") (= "=") (binary_expression "pcVar6 + 1" (identifier "pcVar6") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if ((cVar1 == '-') || (cVar1 == ' ')) {\n      *pcVar6 = '_';\n      cVar1 = pcVar6[1];\n      puVar2 = PTR_DAT_001112f8;\n    }\n    else {\n      cVar1 = pcVar6[1];\n    }" (if "if") (parenthesized_expression "((cVar1 == '-') || (cVar1 == ' '))" (( "(") (binary_expression "(cVar1 == '-') || (cVar1 == ' ')" (parenthesized_expression "(cVar1 == '-')" (( "(") (binary_expression "cVar1 == '-'" (identifier "cVar1") (== "==") (char_literal "'-'" (' "'") (character "-") (' "'"))) () ")")) (|| "||") (parenthesized_expression "(cVar1 == ' ')" (( "(") (binary_expression "cVar1 == ' '" (identifier "cVar1") (== "==") (char_literal "' '" (' "'") (character " ") (' "'"))) () ")"))) () ")")) (compound_statement "{\n      *pcVar6 = '_';\n      cVar1 = pcVar6[1];\n      puVar2 = PTR_DAT_001112f8;\n    }" ({ "{") (expression_statement "*pcVar6 = '_';" (assignment_expression "*pcVar6 = '_'" (pointer_expression "*pcVar6" (* "*") (identifier "pcVar6")) (= "=") (char_literal "'_'" (' "'") (character "_") (' "'"))) (; ";")) (expression_statement "cVar1 = pcVar6[1];" (assignment_expression "cVar1 = pcVar6[1]" (identifier "cVar1") (= "=") (subscript_expression "pcVar6[1]" (identifier "pcVar6") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "puVar2 = PTR_DAT_001112f8;" (assignment_expression "puVar2 = PTR_DAT_001112f8" (identifier "puVar2") (= "=") (identifier "PTR_DAT_001112f8")) (; ";")) (} "}")) (else_clause "else {\n      cVar1 = pcVar6[1];\n    }" (else "else") (compound_statement "{\n      cVar1 = pcVar6[1];\n    }" ({ "{") (expression_statement "cVar1 = pcVar6[1];" (assignment_expression "cVar1 = pcVar6[1]" (identifier "cVar1") (= "=") (subscript_expression "pcVar6[1]" (identifier "pcVar6") ([ "[") (number_literal "1") (] "]"))) (; ";")) (} "}")))) (} "}"))) (expression_statement "iVar5 = (*(code *)PTR_strcspn_001121cc)(iVar4,puVar2 + -0x4e40);" (assignment_expression "iVar5 = (*(code *)PTR_strcspn_001121cc)(iVar4,puVar2 + -0x4e40)" (identifier "iVar5") (= "=") (call_expression "(*(code *)PTR_strcspn_001121cc)(iVar4,puVar2 + -0x4e40)" (parenthesized_expression "(*(code *)PTR_strcspn_001121cc)" (( "(") (pointer_expression "*(code *)PTR_strcspn_001121cc" (* "*") (cast_expression "(code *)PTR_strcspn_001121cc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strcspn_001121cc"))) () ")")) (argument_list "(iVar4,puVar2 + -0x4e40)" (( "(") (identifier "iVar4") (, ",") (binary_expression "puVar2 + -0x4e40" (identifier "puVar2") (+ "+") (number_literal "-0x4e40")) () ")")))) (; ";")) (if_statement "if (*(int *)(param_1 + 0x198) == 2) {\n    uVar7 = safemalloc(iVar5 + 1,1);\n    puVar3 = PTR_memcpy_0011256c;\n    *(undefined4 *)(param_1 + 4) = uVar7;\n    (*(code *)puVar3)(uVar7,iVar4,iVar5);\n    puVar3 = PTR_strcspn_001121cc;\n    *(undefined1 *)(*(int *)(param_1 + 4) + iVar5) = 0;\n    iVar5 = (*(code *)puVar3)(iVar4,puVar2 + -0x4e40);\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x198) == 2)" (( "(") (binary_expression "*(int *)(param_1 + 0x198) == 2" (pointer_expression "*(int *)(param_1 + 0x198)" (* "*") (cast_expression "(int *)(param_1 + 0x198)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x198)" (( "(") (binary_expression "param_1 + 0x198" (identifier "param_1") (+ "+") (number_literal "0x198")) () ")")))) (== "==") (number_literal "2")) () ")")) (compound_statement "{\n    uVar7 = safemalloc(iVar5 + 1,1);\n    puVar3 = PTR_memcpy_0011256c;\n    *(undefined4 *)(param_1 + 4) = uVar7;\n    (*(code *)puVar3)(uVar7,iVar4,iVar5);\n    puVar3 = PTR_strcspn_001121cc;\n    *(undefined1 *)(*(int *)(param_1 + 4) + iVar5) = 0;\n    iVar5 = (*(code *)puVar3)(iVar4,puVar2 + -0x4e40);\n  }" ({ "{") (expression_statement "uVar7 = safemalloc(iVar5 + 1,1);" (assignment_expression "uVar7 = safemalloc(iVar5 + 1,1)" (identifier "uVar7") (= "=") (call_expression "safemalloc(iVar5 + 1,1)" (identifier "safemalloc") (argument_list "(iVar5 + 1,1)" (( "(") (binary_expression "iVar5 + 1" (identifier "iVar5") (+ "+") (number_literal "1")) (, ",") (number_literal "1") () ")")))) (; ";")) (expression_statement "puVar3 = PTR_memcpy_0011256c;" (assignment_expression "puVar3 = PTR_memcpy_0011256c" (identifier "puVar3") (= "=") (identifier "PTR_memcpy_0011256c")) (; ";")) (expression_statement "*(undefined4 *)(param_1 + 4) = uVar7;" (assignment_expression "*(undefined4 *)(param_1 + 4) = uVar7" (pointer_expression "*(undefined4 *)(param_1 + 4)" (* "*") (cast_expression "(undefined4 *)(param_1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "uVar7")) (; ";")) (expression_statement "(*(code *)puVar3)(uVar7,iVar4,iVar5);" (call_expression "(*(code *)puVar3)(uVar7,iVar4,iVar5)" (parenthesized_expression "(*(code *)puVar3)" (( "(") (pointer_expression "*(code *)puVar3" (* "*") (cast_expression "(code *)puVar3" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar3"))) () ")")) (argument_list "(uVar7,iVar4,iVar5)" (( "(") (identifier "uVar7") (, ",") (identifier "iVar4") (, ",") (identifier "iVar5") () ")"))) (; ";")) (expression_statement "puVar3 = PTR_strcspn_001121cc;" (assignment_expression "puVar3 = PTR_strcspn_001121cc" (identifier "puVar3") (= "=") (identifier "PTR_strcspn_001121cc")) (; ";")) (expression_statement "*(undefined1 *)(*(int *)(param_1 + 4) + iVar5) = 0;" (assignment_expression "*(undefined1 *)(*(int *)(param_1 + 4) + iVar5) = 0" (pointer_expression "*(undefined1 *)(*(int *)(param_1 + 4) + iVar5)" (* "*") (cast_expression "(undefined1 *)(*(int *)(param_1 + 4) + iVar5)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 4) + iVar5)" (( "(") (binary_expression "*(int *)(param_1 + 4) + iVar5" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (+ "+") (identifier "iVar5")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar5 = (*(code *)puVar3)(iVar4,puVar2 + -0x4e40);" (assignment_expression "iVar5 = (*(code *)puVar3)(iVar4,puVar2 + -0x4e40)" (identifier "iVar5") (= "=") (call_expression "(*(code *)puVar3)(iVar4,puVar2 + -0x4e40)" (parenthesized_expression "(*(code *)puVar3)" (( "(") (pointer_expression "*(code *)puVar3" (* "*") (cast_expression "(code *)puVar3" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar3"))) () ")")) (argument_list "(iVar4,puVar2 + -0x4e40)" (( "(") (identifier "iVar4") (, ",") (binary_expression "puVar2 + -0x4e40" (identifier "puVar2") (+ "+") (number_literal "-0x4e40")) () ")")))) (; ";")) (} "}"))) (expression_statement "FUN_00047158(param_1,PTR_DAT_001112f8 + -0x540c,iVar5,iVar4);" (call_expression "FUN_00047158(param_1,PTR_DAT_001112f8 + -0x540c,iVar5,iVar4)" (identifier "FUN_00047158") (argument_list "(param_1,PTR_DAT_001112f8 + -0x540c,iVar5,iVar4)" (( "(") (identifier "param_1") (, ",") (binary_expression "PTR_DAT_001112f8 + -0x540c" (identifier "PTR_DAT_001112f8") (+ "+") (number_literal "-0x540c")) (, ",") (identifier "iVar5") (, ",") (identifier "iVar4") () ")"))) (; ";")) (expression_statement "uVar7 = (*(code *)PTR_strlen_00112534)(iVar4);" (assignment_expression "uVar7 = (*(code *)PTR_strlen_00112534)(iVar4)" (identifier "uVar7") (= "=") (call_expression "(*(code *)PTR_strlen_00112534)(iVar4)" (parenthesized_expression "(*(code *)PTR_strlen_00112534)" (( "(") (pointer_expression "*(code *)PTR_strlen_00112534" (* "*") (cast_expression "(code *)PTR_strlen_00112534" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_00112534"))) () ")")) (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")")))) (; ";")) (expression_statement "FUN_0004cdd0(param_1 + 0x10,*(undefined4 *)(param_1 + 0x18),iVar4,uVar7);" (call_expression "FUN_0004cdd0(param_1 + 0x10,*(undefined4 *)(param_1 + 0x18),iVar4,uVar7)" (identifier "FUN_0004cdd0") (argument_list "(param_1 + 0x10,*(undefined4 *)(param_1 + 0x18),iVar4,uVar7)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) (, ",") (pointer_expression "*(undefined4 *)(param_1 + 0x18)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (, ",") (identifier "iVar4") (, ",") (identifier "uVar7") () ")"))) (; ";")) (expression_statement "safefree(iVar4);" (call_expression "safefree(iVar4)" (identifier "safefree") (argument_list "(iVar4)" (( "(") (identifier "iVar4") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

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

void function_1(type_1 ssh,char *protoname,char *svers)

{
  char var_8;
  type_2 *var_6;
  int var_3;
  char *var_7;
  char *var_9;
  type_1 ssh_1;
  
  if (ssh->version == 2) {
    var_7 = var_1(var_2 + -0x5448,protoname,PTR_sshver_001117cc);
  }
  else {
    var_3 = (*(type_3 *)PTR_strcmp_00112498)(protoname,var_2 + -0x543c);
    var_6 = var_5;
    if (var_3 != 0) {
      (*(type_3 *)PTR___assert_fail_00111f50)
                (var_2 + -0x5434,var_2 + -0x6580,0xbff,
                 var_2 + -0x1f04);
      return;
    }
    var_3 = var_4(svers,var_5 + 0x1620);
    if (0 < var_3) {
      svers = var_6 + 0x1620;
    }
    var_7 = var_1(var_2 + -0x5418,svers,PTR_sshver_001117cc);
  }
  var_3 = (*(type_3 *)PTR_strlen_00112534)(protoname);
  var_8 = var_7[var_3];
  var_9 = var_7 + var_3;
  while( true ) {
    if (var_8 == '\0') {
      (*(type_3 *)PTR___assert_fail_00111f50)
                (var_2 + -0x53f4,var_2 + -0x6580,0xbe4,
                 var_2 + -0x1f18);
      return;
    }
    if (var_8 == '-') break;
    var_8 = var_9[1];
    var_9 = var_9 + 1;
  }
  var_8 = var_9[1];
  while (var_8 != '\0') {
    var_9 = var_9 + 1;
    if ((var_8 == '-') || (var_8 == ' ')) {
      *var_9 = '_';
      var_8 = var_9[1];
    }
    else {
      var_8 = var_9[1];
    }
  }
  var_3 = (*(type_3 *)PTR_strcspn_001121cc)(var_7,var_2 + -0x4e40);
  if (ssh->version == 2) {
                    /* WARNING: Subroutine does not return */
    var_10(var_3 + 1,1);
  }
  var_11(ssh,var_2 + -0x540c,var_3,var_7);
  ssh_1 = (type_1)(*(type_3 *)PTR_strlen_00112534)(var_7);
  var_12((type_1)&ssh->s,ssh->logctx,(int)var_7,ssh_1);
                    /* WARNING: Subroutine does not return */
  var_13(var_7);
}


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

void MASKED(int param_1,undefined4 param_2,undefined *param_3)

{
  char cVar1;
  undefined *puVar2;
  undefined *puVar3;
  int iVar4;
  int iVar5;
  char *pcVar6;
  undefined4 uVar7;
  
  if (*(int *)(param_1 + 0x198) == 2) {
    iVar4 = dupprintf(PTR_DAT_001112f8 + -0x5448,param_2,PTR_sshver_001117cc);
  }
  else {
    iVar4 = (*(code *)PTR_strcmp_00112498)(param_2,PTR_DAT_001112f8 + -0x543c);
    puVar2 = PTR_DAT_00111314;
    if (iVar4 != 0) {
      (*(code *)PTR___assert_fail_00111f50)
                (PTR_DAT_001112f8 + -0x5434,PTR_DAT_001112f8 + -0x6580,0xbff,
                 PTR_DAT_001112f8 + -0x1f04);
      return;
    }
    iVar4 = FUN_0004997c(param_3,PTR_DAT_00111314 + 0x1620);
    if (0 < iVar4) {
      param_3 = puVar2 + 0x1620;
    }
    iVar4 = dupprintf(PTR_DAT_001112f8 + -0x5418,param_3,PTR_sshver_001117cc);
  }
  iVar5 = (*(code *)PTR_strlen_00112534)(param_2);
  cVar1 = *(char *)(iVar4 + iVar5);
  pcVar6 = (char *)(iVar4 + iVar5);
  while( true ) {
    if (cVar1 == '\0') {
      (*(code *)PTR___assert_fail_00111f50)
                (PTR_DAT_001112f8 + -0x53f4,PTR_DAT_001112f8 + -0x6580,0xbe4,
                 PTR_DAT_001112f8 + -0x1f18);
      return;
    }
    if (cVar1 == '-') break;
    cVar1 = pcVar6[1];
    pcVar6 = pcVar6 + 1;
  }
  cVar1 = pcVar6[1];
  puVar2 = PTR_DAT_001112f8;
  while (PTR_DAT_001112f8 = puVar2, cVar1 != '\0') {
    pcVar6 = pcVar6 + 1;
    if ((cVar1 == '-') || (cVar1 == ' ')) {
      *pcVar6 = '_';
      cVar1 = pcVar6[1];
      puVar2 = PTR_DAT_001112f8;
    }
    else {
      cVar1 = pcVar6[1];
    }
  }
  iVar5 = (*(code *)PTR_strcspn_001121cc)(iVar4,puVar2 + -0x4e40);
  if (*(int *)(param_1 + 0x198) == 2) {
    uVar7 = safemalloc(iVar5 + 1,1);
    puVar3 = PTR_memcpy_0011256c;
    *(undefined4 *)(param_1 + 4) = uVar7;
    (*(code *)puVar3)(uVar7,iVar4,iVar5);
    puVar3 = PTR_strcspn_001121cc;
    *(undefined1 *)(*(int *)(param_1 + 4) + iVar5) = 0;
    iVar5 = (*(code *)puVar3)(iVar4,puVar2 + -0x4e40);
  }
  FUN_00047158(param_1,PTR_DAT_001112f8 + -0x540c,iVar5,iVar4);
  uVar7 = (*(code *)PTR_strlen_00112534)(iVar4);
  FUN_0004cdd0(param_1 + 0x10,*(undefined4 *)(param_1 + 0x18),iVar4,uVar7);
  safefree(iVar4);
  return;
}

