
int loadrsakey_main(FILE *fp,RSAKey *key,int pub_only,char **commentptr,char *passphrase,
                   char **error)

{
  undefined *puVar1;
  undefined *puVar2;
  int iVar3;
  uint uVar4;
  int iVar5;
  int iVar6;
  char *pcVar7;
  char *pcVar8;
  uint uVar9;
  MD5Context md5c;
  uchar keybuf [16];
  uchar buf [16384];
  
  puVar2 = PTR___stack_chk_guard_000b2f04;
  puVar1 = PTR_fread_000b2ea8;
  iVar3 = *(int *)PTR___stack_chk_guard_000b2f04;
  *error = (char *)0x0;
  uVar4 = (*(code *)puVar1)(buf,1,0x4000,fp);
  (*(code *)PTR_fclose_000b2dac)(fp);
  if (((int)uVar4 < 0) || (uVar4 == 0x4000)) {
    uVar9 = 0;
    *error = PTR_s_entropy_source_000b23f0 + -0x2fc4;
  }
  else {
    *error = PTR_s_entropy_source_000b23f0 + -0x2fb0;
    if (uVar4 < 2) goto LAB_0006abf8;
    if (buf[0] != '\0') goto LAB_0006abf8;
    if ((buf[1] != '\0') && (buf[1] != '\x03')) goto LAB_0006abf8;
    if ((int)uVar4 < 6) goto LAB_0006abf8;
    if (((buf[2] != '\0' || buf[3] != '\0') || buf[4] != '\0') || buf[5] != '\0') goto LAB_0006abf8;
    iVar5 = makekey(buf + 6,uVar4 - 6,key,(uchar **)0x0,1);
    if (iVar5 < 0) goto LAB_0006abf8;
    iVar6 = (*(code *)PTR_toint_000b24f4)
                      ((uint)buf[iVar5 + 6] << 0x18 | (uint)buf[iVar5 + 7] << 0x10 |
                       (uint)buf[iVar5 + 9] | (uint)buf[iVar5 + 8] << 8);
    if (iVar6 < 0) goto LAB_0006abf8;
    iVar5 = iVar5 + 10;
    if ((int)(uVar4 - iVar5) < iVar6) goto LAB_0006abf8;
    pcVar7 = (char *)(*(code *)PTR_safemalloc_000b2408)(iVar6 + 1,1);
    if (pcVar7 != (char *)0x0) {
      pcVar7 = (char *)(*(code *)PTR_memcpy_000b2f08)(pcVar7,buf + iVar5,iVar6);
      pcVar7[iVar6] = '\0';
    }
    if (commentptr != (char **)0x0) {
      pcVar8 = (char *)(*(code *)PTR_dupstr_000b2410)(pcVar7);
      *commentptr = pcVar8;
    }
    if (key == (RSAKey *)0x0) {
      (*(code *)PTR_safefree_000b23d0)(pcVar7);
      if (pub_only != 0) goto LAB_0006ac64;
      uVar9 = (uint)(buf[1] != '\0');
      *error = (char *)0x0;
    }
    else {
      key->comment = pcVar7;
      if (pub_only != 0) goto LAB_0006ac64;
      commentptr = (char **)(iVar6 + iVar5);
      if (buf[1] != '\0') {
        MD5Init(&md5c);
        uVar9 = (*(code *)PTR_strlen_000b2e48)(passphrase);
        MD5Update(&md5c,(uchar *)passphrase,uVar9);
        MD5Final(keybuf,&md5c);
        des3_decrypt_pubkey(keybuf,buf + (int)commentptr,(uVar4 - (int)commentptr) + 7 & 0xfffffff8)
        ;
        (*(code *)PTR_smemclr_000b2460)(keybuf,0x10);
      }
      if ((int)(uVar4 - (int)commentptr) < 4) goto LAB_0006abf8;
      if ((buf[(int)commentptr] == (buf + 2)[(int)commentptr]) &&
         ((buf + 1)[(int)commentptr] == (buf + 3)[(int)commentptr])) goto LAB_0006ad20;
      uVar9 = 0xffffffff;
      *error = PTR_s_entropy_source_000b23f0 + -0x2f9c;
    }
  }
  do {
    while( true ) {
      (*(code *)PTR_smemclr_000b2460)(buf,0x4000);
      if (iVar3 == *(int *)puVar2) {
        return uVar9;
      }
      (*(code *)PTR___stack_chk_fail_000b2ed8)();
LAB_0006ad20:
      commentptr = commentptr + 1;
      iVar5 = makeprivate(buf + (int)commentptr,uVar4 - (int)commentptr,key);
      if (-1 < iVar5) break;
LAB_0006abf8:
      uVar9 = 0;
    }
    commentptr = (char **)((int)commentptr + iVar5);
    iVar5 = ssh1_read_bignum(buf + (int)commentptr,uVar4 - (int)commentptr,
                             (Bignum_conflict *)&key->iqmp);
    if (iVar5 < 0) goto LAB_0006abf8;
    commentptr = (char **)((int)commentptr + iVar5);
    iVar5 = ssh1_read_bignum(buf + (int)commentptr,uVar4 - (int)commentptr,
                             (Bignum_conflict *)&key->q);
    if ((iVar5 < 0) ||
       (iVar5 = ssh1_read_bignum(buf + (int)commentptr + iVar5,uVar4 - ((int)commentptr + iVar5),
                                 (Bignum_conflict *)&key->p), iVar5 < 0)) goto LAB_0006abf8;
    iVar5 = rsa_verify(key);
    if (iVar5 == 0) {
      *error = PTR_s_entropy_source_000b23f0 + -0x2f88;
      freersakey(key);
      uVar9 = 0;
    }
    else {
LAB_0006ac64:
      uVar9 = 1;
    }
  } while( true );
}



uint FUN_0006a980(undefined4 param_1,int param_2,int param_3,undefined4 *param_4,undefined4 param_5,
                 undefined4 *param_6)

{
  undefined *puVar1;
  undefined *puVar2;
  uint uVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  undefined4 uVar7;
  uint uVar8;
  undefined1 auStack_4098 [92];
  undefined1 auStack_403c [16];
  char local_402c [4];
  char local_4028 [16380];
  int local_2c;
  
  puVar2 = PTR___stack_chk_guard_000b2f04;
  puVar1 = PTR_fread_000b2ea8;
  local_2c = *(int *)PTR___stack_chk_guard_000b2f04;
  *param_6 = 0;
  uVar3 = (*(code *)puVar1)(local_402c,1,0x4000,param_1);
  (*(code *)PTR_fclose_000b2dac)(param_1);
  if (((int)uVar3 < 0) || (uVar3 == 0x4000)) {
    uVar8 = 0;
    *param_6 = PTR_s_entropy_source_000b23f0 + -0x2fc4;
  }
  else {
    *param_6 = PTR_s_entropy_source_000b23f0 + -0x2fb0;
    if (uVar3 < 2) goto LAB_0006abf8;
    if (local_402c[0] != '\0') goto LAB_0006abf8;
    if ((local_402c[1] != '\0') && (local_402c[1] != '\x03')) goto LAB_0006abf8;
    if ((int)uVar3 < 6) goto LAB_0006abf8;
    if (((local_402c[2] != '\0' || local_402c[3] != '\0') || local_4028[0] != '\0') ||
        local_4028[1] != '\0') goto LAB_0006abf8;
    iVar4 = makekey(local_4028 + 2,uVar3 - 6,param_2,0,1);
    if (iVar4 < 0) goto LAB_0006abf8;
    iVar5 = (*(code *)PTR_toint_000b24f4)
                      ((uint)(byte)local_4028[iVar4 + 2] << 0x18 |
                       (uint)(byte)local_4028[iVar4 + 3] << 0x10 | (uint)(byte)local_4028[iVar4 + 5]
                       | (uint)(byte)local_4028[iVar4 + 4] << 8);
    if (iVar5 < 0) goto LAB_0006abf8;
    iVar4 = iVar4 + 10;
    if ((int)(uVar3 - iVar4) < iVar5) goto LAB_0006abf8;
    iVar6 = (*(code *)PTR_safemalloc_000b2408)(iVar5 + 1,1);
    if (iVar6 != 0) {
      iVar6 = (*(code *)PTR_memcpy_000b2f08)(iVar6,local_402c + iVar4,iVar5);
      *(undefined1 *)(iVar6 + iVar5) = 0;
    }
    if (param_4 != (undefined4 *)0x0) {
      uVar7 = (*(code *)PTR_dupstr_000b2410)(iVar6);
      *param_4 = uVar7;
    }
    if (param_2 == 0) {
      (*(code *)PTR_safefree_000b23d0)(iVar6);
      if (param_3 != 0) goto LAB_0006ac64;
      uVar8 = (uint)(local_402c[1] != '\0');
      *param_6 = 0;
    }
    else {
      *(int *)(param_2 + 0x20) = iVar6;
      if (param_3 != 0) goto LAB_0006ac64;
      param_4 = (undefined4 *)(iVar5 + iVar4);
      if (local_402c[1] != '\0') {
        MD5Init(auStack_4098);
        uVar7 = (*(code *)PTR_strlen_000b2e48)(param_5);
        MD5Update(auStack_4098,param_5,uVar7);
        MD5Final(auStack_403c,auStack_4098);
        des3_decrypt_pubkey(auStack_403c,local_402c + (int)param_4,
                            (uVar3 - (int)param_4) + 7 & 0xfffffff8);
        (*(code *)PTR_smemclr_000b2460)(auStack_403c,0x10);
      }
      if ((int)(uVar3 - (int)param_4) < 4) goto LAB_0006abf8;
      if ((local_402c[(int)param_4] == (local_402c + 2)[(int)param_4]) &&
         ((local_402c + 1)[(int)param_4] == (local_402c + 3)[(int)param_4])) goto LAB_0006ad20;
      uVar8 = 0xffffffff;
      *param_6 = PTR_s_entropy_source_000b23f0 + -0x2f9c;
    }
  }
  do {
    while( true ) {
      (*(code *)PTR_smemclr_000b2460)(local_402c,0x4000);
      if (local_2c == *(int *)puVar2) {
        return uVar8;
      }
      (*(code *)PTR___stack_chk_fail_000b2ed8)();
LAB_0006ad20:
      param_4 = param_4 + 1;
      iVar4 = makeprivate(local_402c + (int)param_4,uVar3 - (int)param_4,param_2);
      if (-1 < iVar4) break;
LAB_0006abf8:
      uVar8 = 0;
    }
    param_4 = (undefined4 *)((int)param_4 + iVar4);
    iVar4 = ssh1_read_bignum(local_402c + (int)param_4,uVar3 - (int)param_4,param_2 + 0x1c);
    if (iVar4 < 0) goto LAB_0006abf8;
    param_4 = (undefined4 *)((int)param_4 + iVar4);
    iVar4 = ssh1_read_bignum(local_402c + (int)param_4,uVar3 - (int)param_4,param_2 + 0x18);
    if ((iVar4 < 0) ||
       (iVar4 = ssh1_read_bignum(local_402c + (int)param_4 + iVar4,uVar3 - ((int)param_4 + iVar4),
                                 param_2 + 0x14), iVar4 < 0)) goto LAB_0006abf8;
    iVar4 = rsa_verify(param_2);
    if (iVar4 == 0) {
      *param_6 = PTR_s_entropy_source_000b23f0 + -0x2f88;
      freersakey(param_2);
      uVar8 = 0;
    }
    else {
LAB_0006ac64:
      uVar8 = 1;
    }
  } while( true );
}


lui gp,0x5
addiu gp,gp,-0x610
addu gp,gp,t9
addiu sp,sp,-0x40c8
lw t9,-0x74c8(gp)
sw s3,0x40ac(sp)
sw s2,0x40a8(sp)
lw s3,-0x746c(gp)
lw s2,0x40dc(sp)
sw s1,0x40a4(sp)
addiu s1,sp,0x9c
sw gp,0x18(sp)
sw s6,0x40b8(sp)
or s6,a2,zero
sw s4,0x40b0(sp)
li a2,0x4000
sw s0,0x40a0(sp)
or s4,a1,zero
sw ra,0x40c4(sp)
or s0,a0,zero
sw s7,0x40bc(sp)
li a1,0x1
sw s5,0x40b4(sp)
or a0,s1,zero
sw s8,0x40c0(sp)
or s5,a3,zero
lw v0,0x0(s3)
or a3,s0,zero
lw s7,0x40d8(sp)
sw zero,0x0(s2)
sw v0,0x409c(sp)
jalr t9
_nop
or a0,s0,zero
lw gp,0x18(sp)
lw t9,-0x75c4(gp)
jalr t9
_or s0,v0,zero
bltz s0,0x0006ac50
_lw gp,0x18(sp)
li v0,0x4000
beq s0,v0,0x0006ac50
_lw v1,-0x7f80(gp)
sltiu v0,s0,0x2
addiu v1,v1,-0x2fb0
bne v0,zero,0x0006abf8
_sw v1,0x0(s2)
lbu v0,0x9c(sp)
bne v0,zero,0x0006abf8
_lbu s8,0x9d(sp)
bne s8,zero,0x0006abf0
_li v0,0x3
slti v0,s0,0x6
bne v0,zero,0x0006abf8
_lbu v0,0x9e(sp)
lbu a1,0x9f(sp)
lbu a0,0xa0(sp)
lbu v1,0xa1(sp)
or v0,v0,a1
or v0,v0,a0
or v0,v0,v1
bne v0,zero,0x0006abf8
_lw t9,-0x7a6c(gp)
li v0,0x1
or a3,zero,zero
addiu a1,s0,-0x6
sw v0,0x10(sp)
addiu a0,sp,0xa2
bal 0x00070f7c
_or a2,s4,zero
lw gp,0x18(sp)
bltz v0,0x0006abf8
_or v1,v0,zero
addiu v0,sp,0x40a0
lw t9,-0x7e7c(gp)
sw v1,0x24(sp)
addu a0,v0,v1
lbu v0,-0x3ffe(a0)
lbu a2,-0x3ffd(a0)
lbu a1,-0x3ffc(a0)
lbu a3,-0x3ffb(a0)
sll v0,v0,0x18
sll a2,a2,0x10
sll a0,a1,0x8
or v0,v0,a2
or v0,v0,a3
jalr t9
_or a0,v0,a0
lw gp,0x18(sp)
bltz v0,0x0006abf8
_or a3,v0,zero
lw v1,0x24(sp)
addiu v1,v1,0xa
subu v0,s0,v1
slt v0,v0,a3
bne v0,zero,0x0006abf8
_sw v1,0x24(sp)
lw t9,-0x7f68(gp)
addiu a0,a3,0x1
li a1,0x1
jalr t9
_sw a3,0x28(sp)
lw gp,0x18(sp)
or t0,v0,zero
lw a3,0x28(sp)
beq v0,zero,0x0006ab60
_lw v1,0x24(sp)
lw t9,-0x7468(gp)
addu a1,s1,v1
sw v1,0x28(sp)
or a2,a3,zero
sw a3,0x24(sp)
jalr t9
_or a0,v0,zero
lw a3,0x24(sp)
or t0,v0,zero
lw v1,0x28(sp)
lw gp,0x18(sp)
addu v0,v0,a3
sb zero,0x0(v0)
beq s5,zero,0x0006ab90
_lw t9,-0x7f60(gp)
or a0,t0,zero
sw v1,0x2c(sp)
sw a3,0x28(sp)
jalr t9
_sw t0,0x24(sp)
lw v1,0x2c(sp)
lw a3,0x28(sp)
lw t0,0x24(sp)
lw gp,0x18(sp)
sw v0,0x0(s5)
beq s4,zero,0x0006acf8
_lw t9,-0x7fa0(gp)
bne s6,zero,0x0006ac64
_sw t0,0x20(s4)
addu s5,a3,v1
bne s8,zero,0x0006ac6c
_subu s6,s0,s5
slti s6,s6,0x4
bne s6,zero,0x0006abf8
_addiu v0,sp,0x40a0
addu v0,v0,s5
lbu a0,-0x4004(v0)
lbu v1,-0x4002(v0)
bne a0,v1,0x0006abdc
_nop
lbu v1,-0x4003(v0)
lbu v0,-0x4001(v0)
beq v1,v0,0x0006ad20
_lw t9,-0x7814(gp)
lw v0,-0x7f80(gp)
li s8,-0x1
addiu v0,v0,-0x2f9c
b 0x0006abfc
_sw v0,0x0(s2)
beq s8,v0,0x0006aa54
_slti v0,s0,0x6
or s8,zero,zero
lw t9,-0x7f10(gp)
li a1,0x4000
jalr t9
_or a0,s1,zero
or v0,s8,zero
lw a0,0x409c(sp)
lw v1,0x0(s3)
bne a0,v1,0x0006ad14
_lw gp,0x18(sp)
lw ra,0x40c4(sp)
lw s8,0x40c0(sp)
lw s7,0x40bc(sp)
lw s6,0x40b8(sp)
lw s5,0x40b4(sp)
lw s4,0x40b0(sp)
lw s3,0x40ac(sp)
lw s2,0x40a8(sp)
lw s1,0x40a4(sp)
lw s0,0x40a0(sp)
jr ra
_addiu sp,sp,0x40c8
lw v0,-0x7f80(gp)
or s8,zero,zero
addiu v0,v0,-0x2fc4
b 0x0006abfc
_sw v0,0x0(s2)
b 0x0006abfc
_li s8,0x1
lw t9,-0x791c(gp)
addiu s8,sp,0x30
bal 0x000692e4
_or a0,s8,zero
lw gp,0x18(sp)
lw t9,-0x7528(gp)
jalr t9
_or a0,s7,zero
or a1,s7,zero
lw gp,0x18(sp)
or a2,v0,zero
or a0,s8,zero
lw t9,-0x7918(gp)
bal 0x00069324
_addiu s7,sp,0x8c
or a1,s8,zero
lw gp,0x18(sp)
lw t9,-0x7914(gp)
bal 0x00069f80
_or a0,s7,zero
addiu v0,s6,0x7
lw gp,0x18(sp)
li a2,-0x8
addu a1,s1,s5
or a0,s7,zero
lw t9,-0x7810(gp)
bal 0x0005f5e0
_and a2,v0,a2
li a1,0x10
lw gp,0x18(sp)
lw t9,-0x7f10(gp)
jalr t9
_or a0,s7,zero
b 0x0006abac
_lw gp,0x18(sp)
jalr t9
_or a0,t0,zero
bne s6,zero,0x0006ac64
_lw gp,0x18(sp)
sltu s8,zero,s8
b 0x0006abfc
_sw zero,0x0(s2)
lw t9,-0x7498(gp)
jalr t9
_nop
addiu s5,s5,0x4
or a2,s4,zero
subu a1,s0,s5
bal 0x0007113c
_addu a0,s1,s5
bltz v0,0x0006abf8
_lw gp,0x18(sp)
addu s5,s5,v0
lw t9,-0x7b00(gp)
addiu a2,s4,0x1c
subu a1,s0,s5
bal 0x00057d6c
_addu a0,s1,s5
bltz v0,0x0006abf8
_lw gp,0x18(sp)
addu s5,s5,v0
lw t9,-0x7b00(gp)
addiu a2,s4,0x18
subu a1,s0,s5
bal 0x00057d6c
_addu a0,s1,s5
bltz v0,0x0006abf8
_lw gp,0x18(sp)
addu a0,s5,v0
lw t9,-0x7b00(gp)
addiu a2,s4,0x14
subu a1,s0,a0
bal 0x00057d6c
_addu a0,s1,a0
bltz v0,0x0006abf8
_lw gp,0x18(sp)
lw t9,-0x780c(gp)
bal 0x00072184
_or a0,s4,zero
lw gp,0x18(sp)
bne v0,zero,0x0006ac64
_or s8,v0,zero
lw v0,-0x7f80(gp)
or a0,s4,zero
lw t9,-0x7808(gp)
addiu v0,v0,-0x2f88
bal 0x00072588
_sw v0,0x0(s2)
b 0x0006abfc
_lw gp,0x18(sp)
(translation_unit "uint FUN_0006a980(undefined4 param_1,int param_2,int param_3,undefined4 *param_4,undefined4 param_5,\n                 undefined4 *param_6)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 uVar7;\n  uint uVar8;\n  undefined1 auStack_4098 [92];\n  undefined1 auStack_403c [16];\n  char local_402c [4];\n  char local_4028 [16380];\n  int local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_000b2f04;\n  puVar1 = PTR_fread_000b2ea8;\n  local_2c = *(int *)PTR___stack_chk_guard_000b2f04;\n  *param_6 = 0;\n  uVar3 = (*(code *)puVar1)(local_402c,1,0x4000,param_1);\n  (*(code *)PTR_fclose_000b2dac)(param_1);\n  if (((int)uVar3 < 0) || (uVar3 == 0x4000)) {\n    uVar8 = 0;\n    *param_6 = PTR_s_entropy_source_000b23f0 + -0x2fc4;\n  }\n  else {\n    *param_6 = PTR_s_entropy_source_000b23f0 + -0x2fb0;\n    if (uVar3 < 2) goto LAB_0006abf8;\n    if (local_402c[0] != '\0') goto LAB_0006abf8;\n    if ((local_402c[1] != '\0') && (local_402c[1] != '\x03')) goto LAB_0006abf8;\n    if ((int)uVar3 < 6) goto LAB_0006abf8;\n    if (((local_402c[2] != '\0' || local_402c[3] != '\0') || local_4028[0] != '\0') ||\n        local_4028[1] != '\0') goto LAB_0006abf8;\n    iVar4 = makekey(local_4028 + 2,uVar3 - 6,param_2,0,1);\n    if (iVar4 < 0) goto LAB_0006abf8;\n    iVar5 = (*(code *)PTR_toint_000b24f4)\n                      ((uint)(byte)local_4028[iVar4 + 2] << 0x18 |\n                       (uint)(byte)local_4028[iVar4 + 3] << 0x10 | (uint)(byte)local_4028[iVar4 + 5]\n                       | (uint)(byte)local_4028[iVar4 + 4] << 8);\n    if (iVar5 < 0) goto LAB_0006abf8;\n    iVar4 = iVar4 + 10;\n    if ((int)(uVar3 - iVar4) < iVar5) goto LAB_0006abf8;\n    iVar6 = (*(code *)PTR_safemalloc_000b2408)(iVar5 + 1,1);\n    if (iVar6 != 0) {\n      iVar6 = (*(code *)PTR_memcpy_000b2f08)(iVar6,local_402c + iVar4,iVar5);\n      *(undefined1 *)(iVar6 + iVar5) = 0;\n    }\n    if (param_4 != (undefined4 *)0x0) {\n      uVar7 = (*(code *)PTR_dupstr_000b2410)(iVar6);\n      *param_4 = uVar7;\n    }\n    if (param_2 == 0) {\n      (*(code *)PTR_safefree_000b23d0)(iVar6);\n      if (param_3 != 0) goto LAB_0006ac64;\n      uVar8 = (uint)(local_402c[1] != '\0');\n      *param_6 = 0;\n    }\n    else {\n      *(int *)(param_2 + 0x20) = iVar6;\n      if (param_3 != 0) goto LAB_0006ac64;\n      param_4 = (undefined4 *)(iVar5 + iVar4);\n      if (local_402c[1] != '\0') {\n        MD5Init(auStack_4098);\n        uVar7 = (*(code *)PTR_strlen_000b2e48)(param_5);\n        MD5Update(auStack_4098,param_5,uVar7);\n        MD5Final(auStack_403c,auStack_4098);\n        des3_decrypt_pubkey(auStack_403c,local_402c + (int)param_4,\n                            (uVar3 - (int)param_4) + 7 & 0xfffffff8);\n        (*(code *)PTR_smemclr_000b2460)(auStack_403c,0x10);\n      }\n      if ((int)(uVar3 - (int)param_4) < 4) goto LAB_0006abf8;\n      if ((local_402c[(int)param_4] == (local_402c + 2)[(int)param_4]) &&\n         ((local_402c + 1)[(int)param_4] == (local_402c + 3)[(int)param_4])) goto LAB_0006ad20;\n      uVar8 = 0xffffffff;\n      *param_6 = PTR_s_entropy_source_000b23f0 + -0x2f9c;\n    }\n  }\n  do {\n    while( true ) {\n      (*(code *)PTR_smemclr_000b2460)(local_402c,0x4000);\n      if (local_2c == *(int *)puVar2) {\n        return uVar8;\n      }\n      (*(code *)PTR___stack_chk_fail_000b2ed8)();\nLAB_0006ad20:\n      param_4 = param_4 + 1;\n      iVar4 = makeprivate(local_402c + (int)param_4,uVar3 - (int)param_4,param_2);\n      if (-1 < iVar4) break;\nLAB_0006abf8:\n      uVar8 = 0;\n    }\n    param_4 = (undefined4 *)((int)param_4 + iVar4);\n    iVar4 = ssh1_read_bignum(local_402c + (int)param_4,uVar3 - (int)param_4,param_2 + 0x1c);\n    if (iVar4 < 0) goto LAB_0006abf8;\n    param_4 = (undefined4 *)((int)param_4 + iVar4);\n    iVar4 = ssh1_read_bignum(local_402c + (int)param_4,uVar3 - (int)param_4,param_2 + 0x18);\n    if ((iVar4 < 0) ||\n       (iVar4 = ssh1_read_bignum(local_402c + (int)param_4 + iVar4,uVar3 - ((int)param_4 + iVar4),\n                                 param_2 + 0x14), iVar4 < 0)) goto LAB_0006abf8;\n    iVar4 = rsa_verify(param_2);\n    if (iVar4 == 0) {\n      *param_6 = PTR_s_entropy_source_000b23f0 + -0x2f88;\n      freersakey(param_2);\n      uVar8 = 0;\n    }\n    else {\nLAB_0006ac64:\n      uVar8 = 1;\n    }\n  } while( true );\n}\n\n" (function_definition "uint FUN_0006a980(undefined4 param_1,int param_2,int param_3,undefined4 *param_4,undefined4 param_5,\n                 undefined4 *param_6)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 uVar7;\n  uint uVar8;\n  undefined1 auStack_4098 [92];\n  undefined1 auStack_403c [16];\n  char local_402c [4];\n  char local_4028 [16380];\n  int local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_000b2f04;\n  puVar1 = PTR_fread_000b2ea8;\n  local_2c = *(int *)PTR___stack_chk_guard_000b2f04;\n  *param_6 = 0;\n  uVar3 = (*(code *)puVar1)(local_402c,1,0x4000,param_1);\n  (*(code *)PTR_fclose_000b2dac)(param_1);\n  if (((int)uVar3 < 0) || (uVar3 == 0x4000)) {\n    uVar8 = 0;\n    *param_6 = PTR_s_entropy_source_000b23f0 + -0x2fc4;\n  }\n  else {\n    *param_6 = PTR_s_entropy_source_000b23f0 + -0x2fb0;\n    if (uVar3 < 2) goto LAB_0006abf8;\n    if (local_402c[0] != '\0') goto LAB_0006abf8;\n    if ((local_402c[1] != '\0') && (local_402c[1] != '\x03')) goto LAB_0006abf8;\n    if ((int)uVar3 < 6) goto LAB_0006abf8;\n    if (((local_402c[2] != '\0' || local_402c[3] != '\0') || local_4028[0] != '\0') ||\n        local_4028[1] != '\0') goto LAB_0006abf8;\n    iVar4 = makekey(local_4028 + 2,uVar3 - 6,param_2,0,1);\n    if (iVar4 < 0) goto LAB_0006abf8;\n    iVar5 = (*(code *)PTR_toint_000b24f4)\n                      ((uint)(byte)local_4028[iVar4 + 2] << 0x18 |\n                       (uint)(byte)local_4028[iVar4 + 3] << 0x10 | (uint)(byte)local_4028[iVar4 + 5]\n                       | (uint)(byte)local_4028[iVar4 + 4] << 8);\n    if (iVar5 < 0) goto LAB_0006abf8;\n    iVar4 = iVar4 + 10;\n    if ((int)(uVar3 - iVar4) < iVar5) goto LAB_0006abf8;\n    iVar6 = (*(code *)PTR_safemalloc_000b2408)(iVar5 + 1,1);\n    if (iVar6 != 0) {\n      iVar6 = (*(code *)PTR_memcpy_000b2f08)(iVar6,local_402c + iVar4,iVar5);\n      *(undefined1 *)(iVar6 + iVar5) = 0;\n    }\n    if (param_4 != (undefined4 *)0x0) {\n      uVar7 = (*(code *)PTR_dupstr_000b2410)(iVar6);\n      *param_4 = uVar7;\n    }\n    if (param_2 == 0) {\n      (*(code *)PTR_safefree_000b23d0)(iVar6);\n      if (param_3 != 0) goto LAB_0006ac64;\n      uVar8 = (uint)(local_402c[1] != '\0');\n      *param_6 = 0;\n    }\n    else {\n      *(int *)(param_2 + 0x20) = iVar6;\n      if (param_3 != 0) goto LAB_0006ac64;\n      param_4 = (undefined4 *)(iVar5 + iVar4);\n      if (local_402c[1] != '\0') {\n        MD5Init(auStack_4098);\n        uVar7 = (*(code *)PTR_strlen_000b2e48)(param_5);\n        MD5Update(auStack_4098,param_5,uVar7);\n        MD5Final(auStack_403c,auStack_4098);\n        des3_decrypt_pubkey(auStack_403c,local_402c + (int)param_4,\n                            (uVar3 - (int)param_4) + 7 & 0xfffffff8);\n        (*(code *)PTR_smemclr_000b2460)(auStack_403c,0x10);\n      }\n      if ((int)(uVar3 - (int)param_4) < 4) goto LAB_0006abf8;\n      if ((local_402c[(int)param_4] == (local_402c + 2)[(int)param_4]) &&\n         ((local_402c + 1)[(int)param_4] == (local_402c + 3)[(int)param_4])) goto LAB_0006ad20;\n      uVar8 = 0xffffffff;\n      *param_6 = PTR_s_entropy_source_000b23f0 + -0x2f9c;\n    }\n  }\n  do {\n    while( true ) {\n      (*(code *)PTR_smemclr_000b2460)(local_402c,0x4000);\n      if (local_2c == *(int *)puVar2) {\n        return uVar8;\n      }\n      (*(code *)PTR___stack_chk_fail_000b2ed8)();\nLAB_0006ad20:\n      param_4 = param_4 + 1;\n      iVar4 = makeprivate(local_402c + (int)param_4,uVar3 - (int)param_4,param_2);\n      if (-1 < iVar4) break;\nLAB_0006abf8:\n      uVar8 = 0;\n    }\n    param_4 = (undefined4 *)((int)param_4 + iVar4);\n    iVar4 = ssh1_read_bignum(local_402c + (int)param_4,uVar3 - (int)param_4,param_2 + 0x1c);\n    if (iVar4 < 0) goto LAB_0006abf8;\n    param_4 = (undefined4 *)((int)param_4 + iVar4);\n    iVar4 = ssh1_read_bignum(local_402c + (int)param_4,uVar3 - (int)param_4,param_2 + 0x18);\n    if ((iVar4 < 0) ||\n       (iVar4 = ssh1_read_bignum(local_402c + (int)param_4 + iVar4,uVar3 - ((int)param_4 + iVar4),\n                                 param_2 + 0x14), iVar4 < 0)) goto LAB_0006abf8;\n    iVar4 = rsa_verify(param_2);\n    if (iVar4 == 0) {\n      *param_6 = PTR_s_entropy_source_000b23f0 + -0x2f88;\n      freersakey(param_2);\n      uVar8 = 0;\n    }\n    else {\nLAB_0006ac64:\n      uVar8 = 1;\n    }\n  } while( true );\n}" type_identifier (function_declarator "FUN_0006a980(undefined4 param_1,int param_2,int param_3,undefined4 *param_4,undefined4 param_5,\n                 undefined4 *param_6)" identifier (parameter_list "(undefined4 param_1,int param_2,int param_3,undefined4 *param_4,undefined4 param_5,\n                 undefined4 *param_6)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "undefined4 *param_6" type_identifier (pointer_declarator "*param_6" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 uVar7;\n  uint uVar8;\n  undefined1 auStack_4098 [92];\n  undefined1 auStack_403c [16];\n  char local_402c [4];\n  char local_4028 [16380];\n  int local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_000b2f04;\n  puVar1 = PTR_fread_000b2ea8;\n  local_2c = *(int *)PTR___stack_chk_guard_000b2f04;\n  *param_6 = 0;\n  uVar3 = (*(code *)puVar1)(local_402c,1,0x4000,param_1);\n  (*(code *)PTR_fclose_000b2dac)(param_1);\n  if (((int)uVar3 < 0) || (uVar3 == 0x4000)) {\n    uVar8 = 0;\n    *param_6 = PTR_s_entropy_source_000b23f0 + -0x2fc4;\n  }\n  else {\n    *param_6 = PTR_s_entropy_source_000b23f0 + -0x2fb0;\n    if (uVar3 < 2) goto LAB_0006abf8;\n    if (local_402c[0] != '\0') goto LAB_0006abf8;\n    if ((local_402c[1] != '\0') && (local_402c[1] != '\x03')) goto LAB_0006abf8;\n    if ((int)uVar3 < 6) goto LAB_0006abf8;\n    if (((local_402c[2] != '\0' || local_402c[3] != '\0') || local_4028[0] != '\0') ||\n        local_4028[1] != '\0') goto LAB_0006abf8;\n    iVar4 = makekey(local_4028 + 2,uVar3 - 6,param_2,0,1);\n    if (iVar4 < 0) goto LAB_0006abf8;\n    iVar5 = (*(code *)PTR_toint_000b24f4)\n                      ((uint)(byte)local_4028[iVar4 + 2] << 0x18 |\n                       (uint)(byte)local_4028[iVar4 + 3] << 0x10 | (uint)(byte)local_4028[iVar4 + 5]\n                       | (uint)(byte)local_4028[iVar4 + 4] << 8);\n    if (iVar5 < 0) goto LAB_0006abf8;\n    iVar4 = iVar4 + 10;\n    if ((int)(uVar3 - iVar4) < iVar5) goto LAB_0006abf8;\n    iVar6 = (*(code *)PTR_safemalloc_000b2408)(iVar5 + 1,1);\n    if (iVar6 != 0) {\n      iVar6 = (*(code *)PTR_memcpy_000b2f08)(iVar6,local_402c + iVar4,iVar5);\n      *(undefined1 *)(iVar6 + iVar5) = 0;\n    }\n    if (param_4 != (undefined4 *)0x0) {\n      uVar7 = (*(code *)PTR_dupstr_000b2410)(iVar6);\n      *param_4 = uVar7;\n    }\n    if (param_2 == 0) {\n      (*(code *)PTR_safefree_000b23d0)(iVar6);\n      if (param_3 != 0) goto LAB_0006ac64;\n      uVar8 = (uint)(local_402c[1] != '\0');\n      *param_6 = 0;\n    }\n    else {\n      *(int *)(param_2 + 0x20) = iVar6;\n      if (param_3 != 0) goto LAB_0006ac64;\n      param_4 = (undefined4 *)(iVar5 + iVar4);\n      if (local_402c[1] != '\0') {\n        MD5Init(auStack_4098);\n        uVar7 = (*(code *)PTR_strlen_000b2e48)(param_5);\n        MD5Update(auStack_4098,param_5,uVar7);\n        MD5Final(auStack_403c,auStack_4098);\n        des3_decrypt_pubkey(auStack_403c,local_402c + (int)param_4,\n                            (uVar3 - (int)param_4) + 7 & 0xfffffff8);\n        (*(code *)PTR_smemclr_000b2460)(auStack_403c,0x10);\n      }\n      if ((int)(uVar3 - (int)param_4) < 4) goto LAB_0006abf8;\n      if ((local_402c[(int)param_4] == (local_402c + 2)[(int)param_4]) &&\n         ((local_402c + 1)[(int)param_4] == (local_402c + 3)[(int)param_4])) goto LAB_0006ad20;\n      uVar8 = 0xffffffff;\n      *param_6 = PTR_s_entropy_source_000b23f0 + -0x2f9c;\n    }\n  }\n  do {\n    while( true ) {\n      (*(code *)PTR_smemclr_000b2460)(local_402c,0x4000);\n      if (local_2c == *(int *)puVar2) {\n        return uVar8;\n      }\n      (*(code *)PTR___stack_chk_fail_000b2ed8)();\nLAB_0006ad20:\n      param_4 = param_4 + 1;\n      iVar4 = makeprivate(local_402c + (int)param_4,uVar3 - (int)param_4,param_2);\n      if (-1 < iVar4) break;\nLAB_0006abf8:\n      uVar8 = 0;\n    }\n    param_4 = (undefined4 *)((int)param_4 + iVar4);\n    iVar4 = ssh1_read_bignum(local_402c + (int)param_4,uVar3 - (int)param_4,param_2 + 0x1c);\n    if (iVar4 < 0) goto LAB_0006abf8;\n    param_4 = (undefined4 *)((int)param_4 + iVar4);\n    iVar4 = ssh1_read_bignum(local_402c + (int)param_4,uVar3 - (int)param_4,param_2 + 0x18);\n    if ((iVar4 < 0) ||\n       (iVar4 = ssh1_read_bignum(local_402c + (int)param_4 + iVar4,uVar3 - ((int)param_4 + iVar4),\n                                 param_2 + 0x14), iVar4 < 0)) goto LAB_0006abf8;\n    iVar4 = rsa_verify(param_2);\n    if (iVar4 == 0) {\n      *param_6 = PTR_s_entropy_source_000b23f0 + -0x2f88;\n      freersakey(param_2);\n      uVar8 = 0;\n    }\n    else {\nLAB_0006ac64:\n      uVar8 = 1;\n    }\n  } while( true );\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "undefined1 auStack_4098 [92];" type_identifier (array_declarator "auStack_4098 [92]" identifier [ number_literal ]) ;) (declaration "undefined1 auStack_403c [16];" type_identifier (array_declarator "auStack_403c [16]" identifier [ number_literal ]) ;) (declaration "char local_402c [4];" primitive_type (array_declarator "local_402c [4]" identifier [ number_literal ]) ;) (declaration "char local_4028 [16380];" primitive_type (array_declarator "local_4028 [16380]" identifier [ number_literal ]) ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "puVar2 = PTR___stack_chk_guard_000b2f04;" (assignment_expression "puVar2 = PTR___stack_chk_guard_000b2f04" identifier = identifier) ;) (expression_statement "puVar1 = PTR_fread_000b2ea8;" (assignment_expression "puVar1 = PTR_fread_000b2ea8" identifier = identifier) ;) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_000b2f04;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_000b2f04" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000b2f04" * (cast_expression "(int *)PTR___stack_chk_guard_000b2f04" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*param_6 = 0;" (assignment_expression "*param_6 = 0" (pointer_expression "*param_6" * identifier) = number_literal) ;) (expression_statement "uVar3 = (*(code *)puVar1)(local_402c,1,0x4000,param_1);" (assignment_expression "uVar3 = (*(code *)puVar1)(local_402c,1,0x4000,param_1)" identifier = (call_expression "(*(code *)puVar1)(local_402c,1,0x4000,param_1)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_402c,1,0x4000,param_1)" ( identifier , number_literal , number_literal , identifier )))) ;) (expression_statement "(*(code *)PTR_fclose_000b2dac)(param_1);" (call_expression "(*(code *)PTR_fclose_000b2dac)(param_1)" (parenthesized_expression "(*(code *)PTR_fclose_000b2dac)" ( (pointer_expression "*(code *)PTR_fclose_000b2dac" * (cast_expression "(code *)PTR_fclose_000b2dac" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier ))) ;) (if_statement "if (((int)uVar3 < 0) || (uVar3 == 0x4000)) {\n    uVar8 = 0;\n    *param_6 = PTR_s_entropy_source_000b23f0 + -0x2fc4;\n  }\n  else {\n    *param_6 = PTR_s_entropy_source_000b23f0 + -0x2fb0;\n    if (uVar3 < 2) goto LAB_0006abf8;\n    if (local_402c[0] != '\0') goto LAB_0006abf8;\n    if ((local_402c[1] != '\0') && (local_402c[1] != '\x03')) goto LAB_0006abf8;\n    if ((int)uVar3 < 6) goto LAB_0006abf8;\n    if (((local_402c[2] != '\0' || local_402c[3] != '\0') || local_4028[0] != '\0') ||\n        local_4028[1] != '\0') goto LAB_0006abf8;\n    iVar4 = makekey(local_4028 + 2,uVar3 - 6,param_2,0,1);\n    if (iVar4 < 0) goto LAB_0006abf8;\n    iVar5 = (*(code *)PTR_toint_000b24f4)\n                      ((uint)(byte)local_4028[iVar4 + 2] << 0x18 |\n                       (uint)(byte)local_4028[iVar4 + 3] << 0x10 | (uint)(byte)local_4028[iVar4 + 5]\n                       | (uint)(byte)local_4028[iVar4 + 4] << 8);\n    if (iVar5 < 0) goto LAB_0006abf8;\n    iVar4 = iVar4 + 10;\n    if ((int)(uVar3 - iVar4) < iVar5) goto LAB_0006abf8;\n    iVar6 = (*(code *)PTR_safemalloc_000b2408)(iVar5 + 1,1);\n    if (iVar6 != 0) {\n      iVar6 = (*(code *)PTR_memcpy_000b2f08)(iVar6,local_402c + iVar4,iVar5);\n      *(undefined1 *)(iVar6 + iVar5) = 0;\n    }\n    if (param_4 != (undefined4 *)0x0) {\n      uVar7 = (*(code *)PTR_dupstr_000b2410)(iVar6);\n      *param_4 = uVar7;\n    }\n    if (param_2 == 0) {\n      (*(code *)PTR_safefree_000b23d0)(iVar6);\n      if (param_3 != 0) goto LAB_0006ac64;\n      uVar8 = (uint)(local_402c[1] != '\0');\n      *param_6 = 0;\n    }\n    else {\n      *(int *)(param_2 + 0x20) = iVar6;\n      if (param_3 != 0) goto LAB_0006ac64;\n      param_4 = (undefined4 *)(iVar5 + iVar4);\n      if (local_402c[1] != '\0') {\n        MD5Init(auStack_4098);\n        uVar7 = (*(code *)PTR_strlen_000b2e48)(param_5);\n        MD5Update(auStack_4098,param_5,uVar7);\n        MD5Final(auStack_403c,auStack_4098);\n        des3_decrypt_pubkey(auStack_403c,local_402c + (int)param_4,\n                            (uVar3 - (int)param_4) + 7 & 0xfffffff8);\n        (*(code *)PTR_smemclr_000b2460)(auStack_403c,0x10);\n      }\n      if ((int)(uVar3 - (int)param_4) < 4) goto LAB_0006abf8;\n      if ((local_402c[(int)param_4] == (local_402c + 2)[(int)param_4]) &&\n         ((local_402c + 1)[(int)param_4] == (local_402c + 3)[(int)param_4])) goto LAB_0006ad20;\n      uVar8 = 0xffffffff;\n      *param_6 = PTR_s_entropy_source_000b23f0 + -0x2f9c;\n    }\n  }" if (parenthesized_expression "(((int)uVar3 < 0) || (uVar3 == 0x4000))" ( (binary_expression "((int)uVar3 < 0) || (uVar3 == 0x4000)" (parenthesized_expression "((int)uVar3 < 0)" ( (binary_expression "(int)uVar3 < 0" (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) || (parenthesized_expression "(uVar3 == 0x4000)" ( (binary_expression "uVar3 == 0x4000" identifier == number_literal) ))) )) (compound_statement "{\n    uVar8 = 0;\n    *param_6 = PTR_s_entropy_source_000b23f0 + -0x2fc4;\n  }" { (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) (expression_statement "*param_6 = PTR_s_entropy_source_000b23f0 + -0x2fc4;" (assignment_expression "*param_6 = PTR_s_entropy_source_000b23f0 + -0x2fc4" (pointer_expression "*param_6" * identifier) = (binary_expression "PTR_s_entropy_source_000b23f0 + -0x2fc4" identifier + number_literal)) ;) }) (else_clause "else {\n    *param_6 = PTR_s_entropy_source_000b23f0 + -0x2fb0;\n    if (uVar3 < 2) goto LAB_0006abf8;\n    if (local_402c[0] != '\0') goto LAB_0006abf8;\n    if ((local_402c[1] != '\0') && (local_402c[1] != '\x03')) goto LAB_0006abf8;\n    if ((int)uVar3 < 6) goto LAB_0006abf8;\n    if (((local_402c[2] != '\0' || local_402c[3] != '\0') || local_4028[0] != '\0') ||\n        local_4028[1] != '\0') goto LAB_0006abf8;\n    iVar4 = makekey(local_4028 + 2,uVar3 - 6,param_2,0,1);\n    if (iVar4 < 0) goto LAB_0006abf8;\n    iVar5 = (*(code *)PTR_toint_000b24f4)\n                      ((uint)(byte)local_4028[iVar4 + 2] << 0x18 |\n                       (uint)(byte)local_4028[iVar4 + 3] << 0x10 | (uint)(byte)local_4028[iVar4 + 5]\n                       | (uint)(byte)local_4028[iVar4 + 4] << 8);\n    if (iVar5 < 0) goto LAB_0006abf8;\n    iVar4 = iVar4 + 10;\n    if ((int)(uVar3 - iVar4) < iVar5) goto LAB_0006abf8;\n    iVar6 = (*(code *)PTR_safemalloc_000b2408)(iVar5 + 1,1);\n    if (iVar6 != 0) {\n      iVar6 = (*(code *)PTR_memcpy_000b2f08)(iVar6,local_402c + iVar4,iVar5);\n      *(undefined1 *)(iVar6 + iVar5) = 0;\n    }\n    if (param_4 != (undefined4 *)0x0) {\n      uVar7 = (*(code *)PTR_dupstr_000b2410)(iVar6);\n      *param_4 = uVar7;\n    }\n    if (param_2 == 0) {\n      (*(code *)PTR_safefree_000b23d0)(iVar6);\n      if (param_3 != 0) goto LAB_0006ac64;\n      uVar8 = (uint)(local_402c[1] != '\0');\n      *param_6 = 0;\n    }\n    else {\n      *(int *)(param_2 + 0x20) = iVar6;\n      if (param_3 != 0) goto LAB_0006ac64;\n      param_4 = (undefined4 *)(iVar5 + iVar4);\n      if (local_402c[1] != '\0') {\n        MD5Init(auStack_4098);\n        uVar7 = (*(code *)PTR_strlen_000b2e48)(param_5);\n        MD5Update(auStack_4098,param_5,uVar7);\n        MD5Final(auStack_403c,auStack_4098);\n        des3_decrypt_pubkey(auStack_403c,local_402c + (int)param_4,\n                            (uVar3 - (int)param_4) + 7 & 0xfffffff8);\n        (*(code *)PTR_smemclr_000b2460)(auStack_403c,0x10);\n      }\n      if ((int)(uVar3 - (int)param_4) < 4) goto LAB_0006abf8;\n      if ((local_402c[(int)param_4] == (local_402c + 2)[(int)param_4]) &&\n         ((local_402c + 1)[(int)param_4] == (local_402c + 3)[(int)param_4])) goto LAB_0006ad20;\n      uVar8 = 0xffffffff;\n      *param_6 = PTR_s_entropy_source_000b23f0 + -0x2f9c;\n    }\n  }" else (compound_statement "{\n    *param_6 = PTR_s_entropy_source_000b23f0 + -0x2fb0;\n    if (uVar3 < 2) goto LAB_0006abf8;\n    if (local_402c[0] != '\0') goto LAB_0006abf8;\n    if ((local_402c[1] != '\0') && (local_402c[1] != '\x03')) goto LAB_0006abf8;\n    if ((int)uVar3 < 6) goto LAB_0006abf8;\n    if (((local_402c[2] != '\0' || local_402c[3] != '\0') || local_4028[0] != '\0') ||\n        local_4028[1] != '\0') goto LAB_0006abf8;\n    iVar4 = makekey(local_4028 + 2,uVar3 - 6,param_2,0,1);\n    if (iVar4 < 0) goto LAB_0006abf8;\n    iVar5 = (*(code *)PTR_toint_000b24f4)\n                      ((uint)(byte)local_4028[iVar4 + 2] << 0x18 |\n                       (uint)(byte)local_4028[iVar4 + 3] << 0x10 | (uint)(byte)local_4028[iVar4 + 5]\n                       | (uint)(byte)local_4028[iVar4 + 4] << 8);\n    if (iVar5 < 0) goto LAB_0006abf8;\n    iVar4 = iVar4 + 10;\n    if ((int)(uVar3 - iVar4) < iVar5) goto LAB_0006abf8;\n    iVar6 = (*(code *)PTR_safemalloc_000b2408)(iVar5 + 1,1);\n    if (iVar6 != 0) {\n      iVar6 = (*(code *)PTR_memcpy_000b2f08)(iVar6,local_402c + iVar4,iVar5);\n      *(undefined1 *)(iVar6 + iVar5) = 0;\n    }\n    if (param_4 != (undefined4 *)0x0) {\n      uVar7 = (*(code *)PTR_dupstr_000b2410)(iVar6);\n      *param_4 = uVar7;\n    }\n    if (param_2 == 0) {\n      (*(code *)PTR_safefree_000b23d0)(iVar6);\n      if (param_3 != 0) goto LAB_0006ac64;\n      uVar8 = (uint)(local_402c[1] != '\0');\n      *param_6 = 0;\n    }\n    else {\n      *(int *)(param_2 + 0x20) = iVar6;\n      if (param_3 != 0) goto LAB_0006ac64;\n      param_4 = (undefined4 *)(iVar5 + iVar4);\n      if (local_402c[1] != '\0') {\n        MD5Init(auStack_4098);\n        uVar7 = (*(code *)PTR_strlen_000b2e48)(param_5);\n        MD5Update(auStack_4098,param_5,uVar7);\n        MD5Final(auStack_403c,auStack_4098);\n        des3_decrypt_pubkey(auStack_403c,local_402c + (int)param_4,\n                            (uVar3 - (int)param_4) + 7 & 0xfffffff8);\n        (*(code *)PTR_smemclr_000b2460)(auStack_403c,0x10);\n      }\n      if ((int)(uVar3 - (int)param_4) < 4) goto LAB_0006abf8;\n      if ((local_402c[(int)param_4] == (local_402c + 2)[(int)param_4]) &&\n         ((local_402c + 1)[(int)param_4] == (local_402c + 3)[(int)param_4])) goto LAB_0006ad20;\n      uVar8 = 0xffffffff;\n      *param_6 = PTR_s_entropy_source_000b23f0 + -0x2f9c;\n    }\n  }" { (expression_statement "*param_6 = PTR_s_entropy_source_000b23f0 + -0x2fb0;" (assignment_expression "*param_6 = PTR_s_entropy_source_000b23f0 + -0x2fb0" (pointer_expression "*param_6" * identifier) = (binary_expression "PTR_s_entropy_source_000b23f0 + -0x2fb0" identifier + number_literal)) ;) (if_statement "if (uVar3 < 2) goto LAB_0006abf8;" if (parenthesized_expression "(uVar3 < 2)" ( (binary_expression "uVar3 < 2" identifier < number_literal) )) (goto_statement "goto LAB_0006abf8;" goto statement_identifier ;)) (if_statement "if (local_402c[0] != '\0') goto LAB_0006abf8;" if (parenthesized_expression "(local_402c[0] != '\0')" ( (binary_expression "local_402c[0] != '\0'" (subscript_expression "local_402c[0]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_0006abf8;" goto statement_identifier ;)) (if_statement "if ((local_402c[1] != '\0') && (local_402c[1] != '\x03')) goto LAB_0006abf8;" if (parenthesized_expression "((local_402c[1] != '\0') && (local_402c[1] != '\x03'))" ( (binary_expression "(local_402c[1] != '\0') && (local_402c[1] != '\x03')" (parenthesized_expression "(local_402c[1] != '\0')" ( (binary_expression "local_402c[1] != '\0'" (subscript_expression "local_402c[1]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(local_402c[1] != '\x03')" ( (binary_expression "local_402c[1] != '\x03'" (subscript_expression "local_402c[1]" identifier [ number_literal ]) != (char_literal "'\x03'" ' escape_sequence ')) ))) )) (goto_statement "goto LAB_0006abf8;" goto statement_identifier ;)) (if_statement "if ((int)uVar3 < 6) goto LAB_0006abf8;" if (parenthesized_expression "((int)uVar3 < 6)" ( (binary_expression "(int)uVar3 < 6" (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (goto_statement "goto LAB_0006abf8;" goto statement_identifier ;)) (if_statement "if (((local_402c[2] != '\0' || local_402c[3] != '\0') || local_4028[0] != '\0') ||\n        local_4028[1] != '\0') goto LAB_0006abf8;" if (parenthesized_expression "(((local_402c[2] != '\0' || local_402c[3] != '\0') || local_4028[0] != '\0') ||\n        local_4028[1] != '\0')" ( (binary_expression "((local_402c[2] != '\0' || local_402c[3] != '\0') || local_4028[0] != '\0') ||\n        local_4028[1] != '\0'" (parenthesized_expression "((local_402c[2] != '\0' || local_402c[3] != '\0') || local_4028[0] != '\0')" ( (binary_expression "(local_402c[2] != '\0' || local_402c[3] != '\0') || local_4028[0] != '\0'" (parenthesized_expression "(local_402c[2] != '\0' || local_402c[3] != '\0')" ( (binary_expression "local_402c[2] != '\0' || local_402c[3] != '\0'" (binary_expression "local_402c[2] != '\0'" (subscript_expression "local_402c[2]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) || (binary_expression "local_402c[3] != '\0'" (subscript_expression "local_402c[3]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence '))) )) || (binary_expression "local_4028[0] != '\0'" (subscript_expression "local_4028[0]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence '))) )) || (binary_expression "local_4028[1] != '\0'" (subscript_expression "local_4028[1]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence '))) )) (goto_statement "goto LAB_0006abf8;" goto statement_identifier ;)) (expression_statement "iVar4 = makekey(local_4028 + 2,uVar3 - 6,param_2,0,1);" (assignment_expression "iVar4 = makekey(local_4028 + 2,uVar3 - 6,param_2,0,1)" identifier = (call_expression "makekey(local_4028 + 2,uVar3 - 6,param_2,0,1)" identifier (argument_list "(local_4028 + 2,uVar3 - 6,param_2,0,1)" ( (binary_expression "local_4028 + 2" identifier + number_literal) , (binary_expression "uVar3 - 6" identifier - number_literal) , identifier , number_literal , number_literal )))) ;) (if_statement "if (iVar4 < 0) goto LAB_0006abf8;" if (parenthesized_expression "(iVar4 < 0)" ( (binary_expression "iVar4 < 0" identifier < number_literal) )) (goto_statement "goto LAB_0006abf8;" goto statement_identifier ;)) (expression_statement "iVar5 = (*(code *)PTR_toint_000b24f4)\n                      ((uint)(byte)local_4028[iVar4 + 2] << 0x18 |\n                       (uint)(byte)local_4028[iVar4 + 3] << 0x10 | (uint)(byte)local_4028[iVar4 + 5]\n                       | (uint)(byte)local_4028[iVar4 + 4] << 8);" (assignment_expression "iVar5 = (*(code *)PTR_toint_000b24f4)\n                      ((uint)(byte)local_4028[iVar4 + 2] << 0x18 |\n                       (uint)(byte)local_4028[iVar4 + 3] << 0x10 | (uint)(byte)local_4028[iVar4 + 5]\n                       | (uint)(byte)local_4028[iVar4 + 4] << 8)" identifier = (call_expression "(*(code *)PTR_toint_000b24f4)\n                      ((uint)(byte)local_4028[iVar4 + 2] << 0x18 |\n                       (uint)(byte)local_4028[iVar4 + 3] << 0x10 | (uint)(byte)local_4028[iVar4 + 5]\n                       | (uint)(byte)local_4028[iVar4 + 4] << 8)" (parenthesized_expression "(*(code *)PTR_toint_000b24f4)" ( (pointer_expression "*(code *)PTR_toint_000b24f4" * (cast_expression "(code *)PTR_toint_000b24f4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "((uint)(byte)local_4028[iVar4 + 2] << 0x18 |\n                       (uint)(byte)local_4028[iVar4 + 3] << 0x10 | (uint)(byte)local_4028[iVar4 + 5]\n                       | (uint)(byte)local_4028[iVar4 + 4] << 8)" ( (binary_expression "(uint)(byte)local_4028[iVar4 + 2] << 0x18 |\n                       (uint)(byte)local_4028[iVar4 + 3] << 0x10 | (uint)(byte)local_4028[iVar4 + 5]\n                       | (uint)(byte)local_4028[iVar4 + 4] << 8" (binary_expression "(uint)(byte)local_4028[iVar4 + 2] << 0x18 |\n                       (uint)(byte)local_4028[iVar4 + 3] << 0x10 | (uint)(byte)local_4028[iVar4 + 5]" (binary_expression "(uint)(byte)local_4028[iVar4 + 2] << 0x18 |\n                       (uint)(byte)local_4028[iVar4 + 3] << 0x10" (binary_expression "(uint)(byte)local_4028[iVar4 + 2] << 0x18" (cast_expression "(uint)(byte)local_4028[iVar4 + 2]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)local_4028[iVar4 + 2]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "local_4028[iVar4 + 2]" identifier [ (binary_expression "iVar4 + 2" identifier + number_literal) ]))) << number_literal) | (binary_expression "(uint)(byte)local_4028[iVar4 + 3] << 0x10" (cast_expression "(uint)(byte)local_4028[iVar4 + 3]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)local_4028[iVar4 + 3]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "local_4028[iVar4 + 3]" identifier [ (binary_expression "iVar4 + 3" identifier + number_literal) ]))) << number_literal)) | (cast_expression "(uint)(byte)local_4028[iVar4 + 5]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)local_4028[iVar4 + 5]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "local_4028[iVar4 + 5]" identifier [ (binary_expression "iVar4 + 5" identifier + number_literal) ])))) | (binary_expression "(uint)(byte)local_4028[iVar4 + 4] << 8" (cast_expression "(uint)(byte)local_4028[iVar4 + 4]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)local_4028[iVar4 + 4]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "local_4028[iVar4 + 4]" identifier [ (binary_expression "iVar4 + 4" identifier + number_literal) ]))) << number_literal)) )))) ;) (if_statement "if (iVar5 < 0) goto LAB_0006abf8;" if (parenthesized_expression "(iVar5 < 0)" ( (binary_expression "iVar5 < 0" identifier < number_literal) )) (goto_statement "goto LAB_0006abf8;" goto statement_identifier ;)) (expression_statement "iVar4 = iVar4 + 10;" (assignment_expression "iVar4 = iVar4 + 10" identifier = (binary_expression "iVar4 + 10" identifier + number_literal)) ;) (if_statement "if ((int)(uVar3 - iVar4) < iVar5) goto LAB_0006abf8;" if (parenthesized_expression "((int)(uVar3 - iVar4) < iVar5)" ( (binary_expression "(int)(uVar3 - iVar4) < iVar5" (cast_expression "(int)(uVar3 - iVar4)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar3 - iVar4)" ( (binary_expression "uVar3 - iVar4" identifier - identifier) ))) < identifier) )) (goto_statement "goto LAB_0006abf8;" goto statement_identifier ;)) (expression_statement "iVar6 = (*(code *)PTR_safemalloc_000b2408)(iVar5 + 1,1);" (assignment_expression "iVar6 = (*(code *)PTR_safemalloc_000b2408)(iVar5 + 1,1)" identifier = (call_expression "(*(code *)PTR_safemalloc_000b2408)(iVar5 + 1,1)" (parenthesized_expression "(*(code *)PTR_safemalloc_000b2408)" ( (pointer_expression "*(code *)PTR_safemalloc_000b2408" * (cast_expression "(code *)PTR_safemalloc_000b2408" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar5 + 1,1)" ( (binary_expression "iVar5 + 1" identifier + number_literal) , number_literal )))) ;) (if_statement "if (iVar6 != 0) {\n      iVar6 = (*(code *)PTR_memcpy_000b2f08)(iVar6,local_402c + iVar4,iVar5);\n      *(undefined1 *)(iVar6 + iVar5) = 0;\n    }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar6 = (*(code *)PTR_memcpy_000b2f08)(iVar6,local_402c + iVar4,iVar5);\n      *(undefined1 *)(iVar6 + iVar5) = 0;\n    }" { (expression_statement "iVar6 = (*(code *)PTR_memcpy_000b2f08)(iVar6,local_402c + iVar4,iVar5);" (assignment_expression "iVar6 = (*(code *)PTR_memcpy_000b2f08)(iVar6,local_402c + iVar4,iVar5)" identifier = (call_expression "(*(code *)PTR_memcpy_000b2f08)(iVar6,local_402c + iVar4,iVar5)" (parenthesized_expression "(*(code *)PTR_memcpy_000b2f08)" ( (pointer_expression "*(code *)PTR_memcpy_000b2f08" * (cast_expression "(code *)PTR_memcpy_000b2f08" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar6,local_402c + iVar4,iVar5)" ( identifier , (binary_expression "local_402c + iVar4" identifier + identifier) , identifier )))) ;) (expression_statement "*(undefined1 *)(iVar6 + iVar5) = 0;" (assignment_expression "*(undefined1 *)(iVar6 + iVar5) = 0" (pointer_expression "*(undefined1 *)(iVar6 + iVar5)" * (cast_expression "(undefined1 *)(iVar6 + iVar5)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + iVar5)" ( (binary_expression "iVar6 + iVar5" identifier + identifier) )))) = number_literal) ;) })) (if_statement "if (param_4 != (undefined4 *)0x0) {\n      uVar7 = (*(code *)PTR_dupstr_000b2410)(iVar6);\n      *param_4 = uVar7;\n    }" if (parenthesized_expression "(param_4 != (undefined4 *)0x0)" ( (binary_expression "param_4 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar7 = (*(code *)PTR_dupstr_000b2410)(iVar6);\n      *param_4 = uVar7;\n    }" { (expression_statement "uVar7 = (*(code *)PTR_dupstr_000b2410)(iVar6);" (assignment_expression "uVar7 = (*(code *)PTR_dupstr_000b2410)(iVar6)" identifier = (call_expression "(*(code *)PTR_dupstr_000b2410)(iVar6)" (parenthesized_expression "(*(code *)PTR_dupstr_000b2410)" ( (pointer_expression "*(code *)PTR_dupstr_000b2410" * (cast_expression "(code *)PTR_dupstr_000b2410" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar6)" ( identifier )))) ;) (expression_statement "*param_4 = uVar7;" (assignment_expression "*param_4 = uVar7" (pointer_expression "*param_4" * identifier) = identifier) ;) })) (if_statement "if (param_2 == 0) {\n      (*(code *)PTR_safefree_000b23d0)(iVar6);\n      if (param_3 != 0) goto LAB_0006ac64;\n      uVar8 = (uint)(local_402c[1] != '\0');\n      *param_6 = 0;\n    }\n    else {\n      *(int *)(param_2 + 0x20) = iVar6;\n      if (param_3 != 0) goto LAB_0006ac64;\n      param_4 = (undefined4 *)(iVar5 + iVar4);\n      if (local_402c[1] != '\0') {\n        MD5Init(auStack_4098);\n        uVar7 = (*(code *)PTR_strlen_000b2e48)(param_5);\n        MD5Update(auStack_4098,param_5,uVar7);\n        MD5Final(auStack_403c,auStack_4098);\n        des3_decrypt_pubkey(auStack_403c,local_402c + (int)param_4,\n                            (uVar3 - (int)param_4) + 7 & 0xfffffff8);\n        (*(code *)PTR_smemclr_000b2460)(auStack_403c,0x10);\n      }\n      if ((int)(uVar3 - (int)param_4) < 4) goto LAB_0006abf8;\n      if ((local_402c[(int)param_4] == (local_402c + 2)[(int)param_4]) &&\n         ((local_402c + 1)[(int)param_4] == (local_402c + 3)[(int)param_4])) goto LAB_0006ad20;\n      uVar8 = 0xffffffff;\n      *param_6 = PTR_s_entropy_source_000b23f0 + -0x2f9c;\n    }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n      (*(code *)PTR_safefree_000b23d0)(iVar6);\n      if (param_3 != 0) goto LAB_0006ac64;\n      uVar8 = (uint)(local_402c[1] != '\0');\n      *param_6 = 0;\n    }" { (expression_statement "(*(code *)PTR_safefree_000b23d0)(iVar6);" (call_expression "(*(code *)PTR_safefree_000b23d0)(iVar6)" (parenthesized_expression "(*(code *)PTR_safefree_000b23d0)" ( (pointer_expression "*(code *)PTR_safefree_000b23d0" * (cast_expression "(code *)PTR_safefree_000b23d0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar6)" ( identifier ))) ;) (if_statement "if (param_3 != 0) goto LAB_0006ac64;" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0006ac64;" goto statement_identifier ;)) (expression_statement "uVar8 = (uint)(local_402c[1] != '\0');" (assignment_expression "uVar8 = (uint)(local_402c[1] != '\0')" identifier = (call_expression "(uint)(local_402c[1] != '\0')" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(local_402c[1] != '\0')" ( (binary_expression "local_402c[1] != '\0'" (subscript_expression "local_402c[1]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )))) ;) (expression_statement "*param_6 = 0;" (assignment_expression "*param_6 = 0" (pointer_expression "*param_6" * identifier) = number_literal) ;) }) (else_clause "else {\n      *(int *)(param_2 + 0x20) = iVar6;\n      if (param_3 != 0) goto LAB_0006ac64;\n      param_4 = (undefined4 *)(iVar5 + iVar4);\n      if (local_402c[1] != '\0') {\n        MD5Init(auStack_4098);\n        uVar7 = (*(code *)PTR_strlen_000b2e48)(param_5);\n        MD5Update(auStack_4098,param_5,uVar7);\n        MD5Final(auStack_403c,auStack_4098);\n        des3_decrypt_pubkey(auStack_403c,local_402c + (int)param_4,\n                            (uVar3 - (int)param_4) + 7 & 0xfffffff8);\n        (*(code *)PTR_smemclr_000b2460)(auStack_403c,0x10);\n      }\n      if ((int)(uVar3 - (int)param_4) < 4) goto LAB_0006abf8;\n      if ((local_402c[(int)param_4] == (local_402c + 2)[(int)param_4]) &&\n         ((local_402c + 1)[(int)param_4] == (local_402c + 3)[(int)param_4])) goto LAB_0006ad20;\n      uVar8 = 0xffffffff;\n      *param_6 = PTR_s_entropy_source_000b23f0 + -0x2f9c;\n    }" else (compound_statement "{\n      *(int *)(param_2 + 0x20) = iVar6;\n      if (param_3 != 0) goto LAB_0006ac64;\n      param_4 = (undefined4 *)(iVar5 + iVar4);\n      if (local_402c[1] != '\0') {\n        MD5Init(auStack_4098);\n        uVar7 = (*(code *)PTR_strlen_000b2e48)(param_5);\n        MD5Update(auStack_4098,param_5,uVar7);\n        MD5Final(auStack_403c,auStack_4098);\n        des3_decrypt_pubkey(auStack_403c,local_402c + (int)param_4,\n                            (uVar3 - (int)param_4) + 7 & 0xfffffff8);\n        (*(code *)PTR_smemclr_000b2460)(auStack_403c,0x10);\n      }\n      if ((int)(uVar3 - (int)param_4) < 4) goto LAB_0006abf8;\n      if ((local_402c[(int)param_4] == (local_402c + 2)[(int)param_4]) &&\n         ((local_402c + 1)[(int)param_4] == (local_402c + 3)[(int)param_4])) goto LAB_0006ad20;\n      uVar8 = 0xffffffff;\n      *param_6 = PTR_s_entropy_source_000b23f0 + -0x2f9c;\n    }" { (expression_statement "*(int *)(param_2 + 0x20) = iVar6;" (assignment_expression "*(int *)(param_2 + 0x20) = iVar6" (pointer_expression "*(int *)(param_2 + 0x20)" * (cast_expression "(int *)(param_2 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) )))) = identifier) ;) (if_statement "if (param_3 != 0) goto LAB_0006ac64;" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0006ac64;" goto statement_identifier ;)) (expression_statement "param_4 = (undefined4 *)(iVar5 + iVar4);" (assignment_expression "param_4 = (undefined4 *)(iVar5 + iVar4)" identifier = (cast_expression "(undefined4 *)(iVar5 + iVar4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + iVar4)" ( (binary_expression "iVar5 + iVar4" identifier + identifier) )))) ;) (if_statement "if (local_402c[1] != '\0') {\n        MD5Init(auStack_4098);\n        uVar7 = (*(code *)PTR_strlen_000b2e48)(param_5);\n        MD5Update(auStack_4098,param_5,uVar7);\n        MD5Final(auStack_403c,auStack_4098);\n        des3_decrypt_pubkey(auStack_403c,local_402c + (int)param_4,\n                            (uVar3 - (int)param_4) + 7 & 0xfffffff8);\n        (*(code *)PTR_smemclr_000b2460)(auStack_403c,0x10);\n      }" if (parenthesized_expression "(local_402c[1] != '\0')" ( (binary_expression "local_402c[1] != '\0'" (subscript_expression "local_402c[1]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        MD5Init(auStack_4098);\n        uVar7 = (*(code *)PTR_strlen_000b2e48)(param_5);\n        MD5Update(auStack_4098,param_5,uVar7);\n        MD5Final(auStack_403c,auStack_4098);\n        des3_decrypt_pubkey(auStack_403c,local_402c + (int)param_4,\n                            (uVar3 - (int)param_4) + 7 & 0xfffffff8);\n        (*(code *)PTR_smemclr_000b2460)(auStack_403c,0x10);\n      }" { (expression_statement "MD5Init(auStack_4098);" (call_expression "MD5Init(auStack_4098)" identifier (argument_list "(auStack_4098)" ( identifier ))) ;) (expression_statement "uVar7 = (*(code *)PTR_strlen_000b2e48)(param_5);" (assignment_expression "uVar7 = (*(code *)PTR_strlen_000b2e48)(param_5)" identifier = (call_expression "(*(code *)PTR_strlen_000b2e48)(param_5)" (parenthesized_expression "(*(code *)PTR_strlen_000b2e48)" ( (pointer_expression "*(code *)PTR_strlen_000b2e48" * (cast_expression "(code *)PTR_strlen_000b2e48" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_5)" ( identifier )))) ;) (expression_statement "MD5Update(auStack_4098,param_5,uVar7);" (call_expression "MD5Update(auStack_4098,param_5,uVar7)" identifier (argument_list "(auStack_4098,param_5,uVar7)" ( identifier , identifier , identifier ))) ;) (expression_statement "MD5Final(auStack_403c,auStack_4098);" (call_expression "MD5Final(auStack_403c,auStack_4098)" identifier (argument_list "(auStack_403c,auStack_4098)" ( identifier , identifier ))) ;) (expression_statement "des3_decrypt_pubkey(auStack_403c,local_402c + (int)param_4,\n                            (uVar3 - (int)param_4) + 7 & 0xfffffff8);" (call_expression "des3_decrypt_pubkey(auStack_403c,local_402c + (int)param_4,\n                            (uVar3 - (int)param_4) + 7 & 0xfffffff8)" identifier (argument_list "(auStack_403c,local_402c + (int)param_4,\n                            (uVar3 - (int)param_4) + 7 & 0xfffffff8)" ( identifier , (binary_expression "local_402c + (int)param_4" identifier + (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier)) , (binary_expression "(uVar3 - (int)param_4) + 7 & 0xfffffff8" (binary_expression "(uVar3 - (int)param_4) + 7" (parenthesized_expression "(uVar3 - (int)param_4)" ( (binary_expression "uVar3 - (int)param_4" identifier - (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier)) )) + number_literal) & number_literal) ))) ;) (expression_statement "(*(code *)PTR_smemclr_000b2460)(auStack_403c,0x10);" (call_expression "(*(code *)PTR_smemclr_000b2460)(auStack_403c,0x10)" (parenthesized_expression "(*(code *)PTR_smemclr_000b2460)" ( (pointer_expression "*(code *)PTR_smemclr_000b2460" * (cast_expression "(code *)PTR_smemclr_000b2460" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(auStack_403c,0x10)" ( identifier , number_literal ))) ;) })) (if_statement "if ((int)(uVar3 - (int)param_4) < 4) goto LAB_0006abf8;" if (parenthesized_expression "((int)(uVar3 - (int)param_4) < 4)" ( (binary_expression "(int)(uVar3 - (int)param_4) < 4" (cast_expression "(int)(uVar3 - (int)param_4)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar3 - (int)param_4)" ( (binary_expression "uVar3 - (int)param_4" identifier - (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier)) ))) < number_literal) )) (goto_statement "goto LAB_0006abf8;" goto statement_identifier ;)) (if_statement "if ((local_402c[(int)param_4] == (local_402c + 2)[(int)param_4]) &&\n         ((local_402c + 1)[(int)param_4] == (local_402c + 3)[(int)param_4])) goto LAB_0006ad20;" if (parenthesized_expression "((local_402c[(int)param_4] == (local_402c + 2)[(int)param_4]) &&\n         ((local_402c + 1)[(int)param_4] == (local_402c + 3)[(int)param_4]))" ( (binary_expression "(local_402c[(int)param_4] == (local_402c + 2)[(int)param_4]) &&\n         ((local_402c + 1)[(int)param_4] == (local_402c + 3)[(int)param_4])" (parenthesized_expression "(local_402c[(int)param_4] == (local_402c + 2)[(int)param_4])" ( (binary_expression "local_402c[(int)param_4] == (local_402c + 2)[(int)param_4]" (subscript_expression "local_402c[(int)param_4]" identifier [ (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) ]) == (subscript_expression "(local_402c + 2)[(int)param_4]" (parenthesized_expression "(local_402c + 2)" ( (binary_expression "local_402c + 2" identifier + number_literal) )) [ (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) ])) )) && (parenthesized_expression "((local_402c + 1)[(int)param_4] == (local_402c + 3)[(int)param_4])" ( (binary_expression "(local_402c + 1)[(int)param_4] == (local_402c + 3)[(int)param_4]" (subscript_expression "(local_402c + 1)[(int)param_4]" (parenthesized_expression "(local_402c + 1)" ( (binary_expression "local_402c + 1" identifier + number_literal) )) [ (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) ]) == (subscript_expression "(local_402c + 3)[(int)param_4]" (parenthesized_expression "(local_402c + 3)" ( (binary_expression "local_402c + 3" identifier + number_literal) )) [ (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) ])) ))) )) (goto_statement "goto LAB_0006ad20;" goto statement_identifier ;)) (expression_statement "uVar8 = 0xffffffff;" (assignment_expression "uVar8 = 0xffffffff" identifier = number_literal) ;) (expression_statement "*param_6 = PTR_s_entropy_source_000b23f0 + -0x2f9c;" (assignment_expression "*param_6 = PTR_s_entropy_source_000b23f0 + -0x2f9c" (pointer_expression "*param_6" * identifier) = (binary_expression "PTR_s_entropy_source_000b23f0 + -0x2f9c" identifier + number_literal)) ;) }))) }))) (do_statement "do {\n    while( true ) {\n      (*(code *)PTR_smemclr_000b2460)(local_402c,0x4000);\n      if (local_2c == *(int *)puVar2) {\n        return uVar8;\n      }\n      (*(code *)PTR___stack_chk_fail_000b2ed8)();\nLAB_0006ad20:\n      param_4 = param_4 + 1;\n      iVar4 = makeprivate(local_402c + (int)param_4,uVar3 - (int)param_4,param_2);\n      if (-1 < iVar4) break;\nLAB_0006abf8:\n      uVar8 = 0;\n    }\n    param_4 = (undefined4 *)((int)param_4 + iVar4);\n    iVar4 = ssh1_read_bignum(local_402c + (int)param_4,uVar3 - (int)param_4,param_2 + 0x1c);\n    if (iVar4 < 0) goto LAB_0006abf8;\n    param_4 = (undefined4 *)((int)param_4 + iVar4);\n    iVar4 = ssh1_read_bignum(local_402c + (int)param_4,uVar3 - (int)param_4,param_2 + 0x18);\n    if ((iVar4 < 0) ||\n       (iVar4 = ssh1_read_bignum(local_402c + (int)param_4 + iVar4,uVar3 - ((int)param_4 + iVar4),\n                                 param_2 + 0x14), iVar4 < 0)) goto LAB_0006abf8;\n    iVar4 = rsa_verify(param_2);\n    if (iVar4 == 0) {\n      *param_6 = PTR_s_entropy_source_000b23f0 + -0x2f88;\n      freersakey(param_2);\n      uVar8 = 0;\n    }\n    else {\nLAB_0006ac64:\n      uVar8 = 1;\n    }\n  } while( true );" do (compound_statement "{\n    while( true ) {\n      (*(code *)PTR_smemclr_000b2460)(local_402c,0x4000);\n      if (local_2c == *(int *)puVar2) {\n        return uVar8;\n      }\n      (*(code *)PTR___stack_chk_fail_000b2ed8)();\nLAB_0006ad20:\n      param_4 = param_4 + 1;\n      iVar4 = makeprivate(local_402c + (int)param_4,uVar3 - (int)param_4,param_2);\n      if (-1 < iVar4) break;\nLAB_0006abf8:\n      uVar8 = 0;\n    }\n    param_4 = (undefined4 *)((int)param_4 + iVar4);\n    iVar4 = ssh1_read_bignum(local_402c + (int)param_4,uVar3 - (int)param_4,param_2 + 0x1c);\n    if (iVar4 < 0) goto LAB_0006abf8;\n    param_4 = (undefined4 *)((int)param_4 + iVar4);\n    iVar4 = ssh1_read_bignum(local_402c + (int)param_4,uVar3 - (int)param_4,param_2 + 0x18);\n    if ((iVar4 < 0) ||\n       (iVar4 = ssh1_read_bignum(local_402c + (int)param_4 + iVar4,uVar3 - ((int)param_4 + iVar4),\n                                 param_2 + 0x14), iVar4 < 0)) goto LAB_0006abf8;\n    iVar4 = rsa_verify(param_2);\n    if (iVar4 == 0) {\n      *param_6 = PTR_s_entropy_source_000b23f0 + -0x2f88;\n      freersakey(param_2);\n      uVar8 = 0;\n    }\n    else {\nLAB_0006ac64:\n      uVar8 = 1;\n    }\n  }" { (while_statement "while( true ) {\n      (*(code *)PTR_smemclr_000b2460)(local_402c,0x4000);\n      if (local_2c == *(int *)puVar2) {\n        return uVar8;\n      }\n      (*(code *)PTR___stack_chk_fail_000b2ed8)();\nLAB_0006ad20:\n      param_4 = param_4 + 1;\n      iVar4 = makeprivate(local_402c + (int)param_4,uVar3 - (int)param_4,param_2);\n      if (-1 < iVar4) break;\nLAB_0006abf8:\n      uVar8 = 0;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      (*(code *)PTR_smemclr_000b2460)(local_402c,0x4000);\n      if (local_2c == *(int *)puVar2) {\n        return uVar8;\n      }\n      (*(code *)PTR___stack_chk_fail_000b2ed8)();\nLAB_0006ad20:\n      param_4 = param_4 + 1;\n      iVar4 = makeprivate(local_402c + (int)param_4,uVar3 - (int)param_4,param_2);\n      if (-1 < iVar4) break;\nLAB_0006abf8:\n      uVar8 = 0;\n    }" { (expression_statement "(*(code *)PTR_smemclr_000b2460)(local_402c,0x4000);" (call_expression "(*(code *)PTR_smemclr_000b2460)(local_402c,0x4000)" (parenthesized_expression "(*(code *)PTR_smemclr_000b2460)" ( (pointer_expression "*(code *)PTR_smemclr_000b2460" * (cast_expression "(code *)PTR_smemclr_000b2460" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_402c,0x4000)" ( identifier , number_literal ))) ;) (if_statement "if (local_2c == *(int *)puVar2) {\n        return uVar8;\n      }" if (parenthesized_expression "(local_2c == *(int *)puVar2)" ( (binary_expression "local_2c == *(int *)puVar2" identifier == (pointer_expression "*(int *)puVar2" * (cast_expression "(int *)puVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n        return uVar8;\n      }" { (return_statement "return uVar8;" return identifier ;) })) (expression_statement "(*(code *)PTR___stack_chk_fail_000b2ed8)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b2ed8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b2ed8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000b2ed8" * (cast_expression "(code *)PTR___stack_chk_fail_000b2ed8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (labeled_statement "LAB_0006ad20:\n      param_4 = param_4 + 1;" statement_identifier : (expression_statement "param_4 = param_4 + 1;" (assignment_expression "param_4 = param_4 + 1" identifier = (binary_expression "param_4 + 1" identifier + number_literal)) ;)) (expression_statement "iVar4 = makeprivate(local_402c + (int)param_4,uVar3 - (int)param_4,param_2);" (assignment_expression "iVar4 = makeprivate(local_402c + (int)param_4,uVar3 - (int)param_4,param_2)" identifier = (call_expression "makeprivate(local_402c + (int)param_4,uVar3 - (int)param_4,param_2)" identifier (argument_list "(local_402c + (int)param_4,uVar3 - (int)param_4,param_2)" ( (binary_expression "local_402c + (int)param_4" identifier + (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier)) , (binary_expression "uVar3 - (int)param_4" identifier - (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier)) , identifier )))) ;) (if_statement "if (-1 < iVar4) break;" if (parenthesized_expression "(-1 < iVar4)" ( (binary_expression "-1 < iVar4" number_literal < identifier) )) (break_statement "break;" break ;)) (labeled_statement "LAB_0006abf8:\n      uVar8 = 0;" statement_identifier : (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;)) })) (expression_statement "param_4 = (undefined4 *)((int)param_4 + iVar4);" (assignment_expression "param_4 = (undefined4 *)((int)param_4 + iVar4)" identifier = (cast_expression "(undefined4 *)((int)param_4 + iVar4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_4 + iVar4)" ( (binary_expression "(int)param_4 + iVar4" (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) ;) (expression_statement "iVar4 = ssh1_read_bignum(local_402c + (int)param_4,uVar3 - (int)param_4,param_2 + 0x1c);" (assignment_expression "iVar4 = ssh1_read_bignum(local_402c + (int)param_4,uVar3 - (int)param_4,param_2 + 0x1c)" identifier = (call_expression "ssh1_read_bignum(local_402c + (int)param_4,uVar3 - (int)param_4,param_2 + 0x1c)" identifier (argument_list "(local_402c + (int)param_4,uVar3 - (int)param_4,param_2 + 0x1c)" ( (binary_expression "local_402c + (int)param_4" identifier + (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier)) , (binary_expression "uVar3 - (int)param_4" identifier - (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier)) , (binary_expression "param_2 + 0x1c" identifier + number_literal) )))) ;) (if_statement "if (iVar4 < 0) goto LAB_0006abf8;" if (parenthesized_expression "(iVar4 < 0)" ( (binary_expression "iVar4 < 0" identifier < number_literal) )) (goto_statement "goto LAB_0006abf8;" goto statement_identifier ;)) (expression_statement "param_4 = (undefined4 *)((int)param_4 + iVar4);" (assignment_expression "param_4 = (undefined4 *)((int)param_4 + iVar4)" identifier = (cast_expression "(undefined4 *)((int)param_4 + iVar4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_4 + iVar4)" ( (binary_expression "(int)param_4 + iVar4" (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) ;) (expression_statement "iVar4 = ssh1_read_bignum(local_402c + (int)param_4,uVar3 - (int)param_4,param_2 + 0x18);" (assignment_expression "iVar4 = ssh1_read_bignum(local_402c + (int)param_4,uVar3 - (int)param_4,param_2 + 0x18)" identifier = (call_expression "ssh1_read_bignum(local_402c + (int)param_4,uVar3 - (int)param_4,param_2 + 0x18)" identifier (argument_list "(local_402c + (int)param_4,uVar3 - (int)param_4,param_2 + 0x18)" ( (binary_expression "local_402c + (int)param_4" identifier + (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier)) , (binary_expression "uVar3 - (int)param_4" identifier - (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier)) , (binary_expression "param_2 + 0x18" identifier + number_literal) )))) ;) (if_statement "if ((iVar4 < 0) ||\n       (iVar4 = ssh1_read_bignum(local_402c + (int)param_4 + iVar4,uVar3 - ((int)param_4 + iVar4),\n                                 param_2 + 0x14), iVar4 < 0)) goto LAB_0006abf8;" if (parenthesized_expression "((iVar4 < 0) ||\n       (iVar4 = ssh1_read_bignum(local_402c + (int)param_4 + iVar4,uVar3 - ((int)param_4 + iVar4),\n                                 param_2 + 0x14), iVar4 < 0))" ( (binary_expression "(iVar4 < 0) ||\n       (iVar4 = ssh1_read_bignum(local_402c + (int)param_4 + iVar4,uVar3 - ((int)param_4 + iVar4),\n                                 param_2 + 0x14), iVar4 < 0)" (parenthesized_expression "(iVar4 < 0)" ( (binary_expression "iVar4 < 0" identifier < number_literal) )) || (parenthesized_expression "(iVar4 = ssh1_read_bignum(local_402c + (int)param_4 + iVar4,uVar3 - ((int)param_4 + iVar4),\n                                 param_2 + 0x14), iVar4 < 0)" ( (comma_expression "iVar4 = ssh1_read_bignum(local_402c + (int)param_4 + iVar4,uVar3 - ((int)param_4 + iVar4),\n                                 param_2 + 0x14), iVar4 < 0" (assignment_expression "iVar4 = ssh1_read_bignum(local_402c + (int)param_4 + iVar4,uVar3 - ((int)param_4 + iVar4),\n                                 param_2 + 0x14)" identifier = (call_expression "ssh1_read_bignum(local_402c + (int)param_4 + iVar4,uVar3 - ((int)param_4 + iVar4),\n                                 param_2 + 0x14)" identifier (argument_list "(local_402c + (int)param_4 + iVar4,uVar3 - ((int)param_4 + iVar4),\n                                 param_2 + 0x14)" ( (binary_expression "local_402c + (int)param_4 + iVar4" (binary_expression "local_402c + (int)param_4" identifier + (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier)) + identifier) , (binary_expression "uVar3 - ((int)param_4 + iVar4)" identifier - (parenthesized_expression "((int)param_4 + iVar4)" ( (binary_expression "(int)param_4 + iVar4" (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) ))) , (binary_expression "param_2 + 0x14" identifier + number_literal) )))) , (binary_expression "iVar4 < 0" identifier < number_literal)) ))) )) (goto_statement "goto LAB_0006abf8;" goto statement_identifier ;)) (expression_statement "iVar4 = rsa_verify(param_2);" (assignment_expression "iVar4 = rsa_verify(param_2)" identifier = (call_expression "rsa_verify(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (iVar4 == 0) {\n      *param_6 = PTR_s_entropy_source_000b23f0 + -0x2f88;\n      freersakey(param_2);\n      uVar8 = 0;\n    }\n    else {\nLAB_0006ac64:\n      uVar8 = 1;\n    }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      *param_6 = PTR_s_entropy_source_000b23f0 + -0x2f88;\n      freersakey(param_2);\n      uVar8 = 0;\n    }" { (expression_statement "*param_6 = PTR_s_entropy_source_000b23f0 + -0x2f88;" (assignment_expression "*param_6 = PTR_s_entropy_source_000b23f0 + -0x2f88" (pointer_expression "*param_6" * identifier) = (binary_expression "PTR_s_entropy_source_000b23f0 + -0x2f88" identifier + number_literal)) ;) (expression_statement "freersakey(param_2);" (call_expression "freersakey(param_2)" identifier (argument_list "(param_2)" ( identifier ))) ;) (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) }) (else_clause "else {\nLAB_0006ac64:\n      uVar8 = 1;\n    }" else (compound_statement "{\nLAB_0006ac64:\n      uVar8 = 1;\n    }" { (labeled_statement "LAB_0006ac64:\n      uVar8 = 1;" statement_identifier : (expression_statement "uVar8 = 1;" (assignment_expression "uVar8 = 1" identifier = number_literal) ;)) }))) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "int loadrsakey_main(FILE *fp,RSAKey *key,int pub_only,char **commentptr,char *passphrase,\n                   char **error)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  int iVar6;\n  char *pcVar7;\n  char *pcVar8;\n  uint uVar9;\n  MD5Context md5c;\n  uchar keybuf [16];\n  uchar buf [16384];\n  \n  puVar2 = PTR___stack_chk_guard_000b2f04;\n  puVar1 = PTR_fread_000b2ea8;\n  iVar3 = *(int *)PTR___stack_chk_guard_000b2f04;\n  *error = (char *)0x0;\n  uVar4 = (*(code *)puVar1)(buf,1,0x4000,fp);\n  (*(code *)PTR_fclose_000b2dac)(fp);\n  if (((int)uVar4 < 0) || (uVar4 == 0x4000)) {\n    uVar9 = 0;\n    *error = PTR_s_entropy_source_000b23f0 + -0x2fc4;\n  }\n  else {\n    *error = PTR_s_entropy_source_000b23f0 + -0x2fb0;\n    if (uVar4 < 2) goto LAB_0006abf8;\n    if (buf[0] != '\0') goto LAB_0006abf8;\n    if ((buf[1] != '\0') && (buf[1] != '\x03')) goto LAB_0006abf8;\n    if ((int)uVar4 < 6) goto LAB_0006abf8;\n    if (((buf[2] != '\0' || buf[3] != '\0') || buf[4] != '\0') || buf[5] != '\0') goto LAB_0006abf8;\n    iVar5 = makekey(buf + 6,uVar4 - 6,key,(uchar **)0x0,1);\n    if (iVar5 < 0) goto LAB_0006abf8;\n    iVar6 = (*(code *)PTR_toint_000b24f4)\n                      ((uint)buf[iVar5 + 6] << 0x18 | (uint)buf[iVar5 + 7] << 0x10 |\n                       (uint)buf[iVar5 + 9] | (uint)buf[iVar5 + 8] << 8);\n    if (iVar6 < 0) goto LAB_0006abf8;\n    iVar5 = iVar5 + 10;\n    if ((int)(uVar4 - iVar5) < iVar6) goto LAB_0006abf8;\n    pcVar7 = (char *)(*(code *)PTR_safemalloc_000b2408)(iVar6 + 1,1);\n    if (pcVar7 != (char *)0x0) {\n      pcVar7 = (char *)(*(code *)PTR_memcpy_000b2f08)(pcVar7,buf + iVar5,iVar6);\n      pcVar7[iVar6] = '\0';\n    }\n    if (commentptr != (char **)0x0) {\n      pcVar8 = (char *)(*(code *)PTR_dupstr_000b2410)(pcVar7);\n      *commentptr = pcVar8;\n    }\n    if (key == (RSAKey *)0x0) {\n      (*(code *)PTR_safefree_000b23d0)(pcVar7);\n      if (pub_only != 0) goto LAB_0006ac64;\n      uVar9 = (uint)(buf[1] != '\0');\n      *error = (char *)0x0;\n    }\n    else {\n      key->comment = pcVar7;\n      if (pub_only != 0) goto LAB_0006ac64;\n      commentptr = (char **)(iVar6 + iVar5);\n      if (buf[1] != '\0') {\n        MD5Init(&md5c);\n        uVar9 = (*(code *)PTR_strlen_000b2e48)(passphrase);\n        MD5Update(&md5c,(uchar *)passphrase,uVar9);\n        MD5Final(keybuf,&md5c);\n        des3_decrypt_pubkey(keybuf,buf + (int)commentptr,(uVar4 - (int)commentptr) + 7 & 0xfffffff8)\n        ;\n        (*(code *)PTR_smemclr_000b2460)(keybuf,0x10);\n      }\n      if ((int)(uVar4 - (int)commentptr) < 4) goto LAB_0006abf8;\n      if ((buf[(int)commentptr] == (buf + 2)[(int)commentptr]) &&\n         ((buf + 1)[(int)commentptr] == (buf + 3)[(int)commentptr])) goto LAB_0006ad20;\n      uVar9 = 0xffffffff;\n      *error = PTR_s_entropy_source_000b23f0 + -0x2f9c;\n    }\n  }\n  do {\n    while( true ) {\n      (*(code *)PTR_smemclr_000b2460)(buf,0x4000);\n      if (iVar3 == *(int *)puVar2) {\n        return uVar9;\n      }\n      (*(code *)PTR___stack_chk_fail_000b2ed8)();\nLAB_0006ad20:\n      commentptr = commentptr + 1;\n      iVar5 = makeprivate(buf + (int)commentptr,uVar4 - (int)commentptr,key);\n      if (-1 < iVar5) break;\nLAB_0006abf8:\n      uVar9 = 0;\n    }\n    commentptr = (char **)((int)commentptr + iVar5);\n    iVar5 = ssh1_read_bignum(buf + (int)commentptr,uVar4 - (int)commentptr,\n                             (Bignum_conflict *)&key->iqmp);\n    if (iVar5 < 0) goto LAB_0006abf8;\n    commentptr = (char **)((int)commentptr + iVar5);\n    iVar5 = ssh1_read_bignum(buf + (int)commentptr,uVar4 - (int)commentptr,\n                             (Bignum_conflict *)&key->q);\n    if ((iVar5 < 0) ||\n       (iVar5 = ssh1_read_bignum(buf + (int)commentptr + iVar5,uVar4 - ((int)commentptr + iVar5),\n                                 (Bignum_conflict *)&key->p), iVar5 < 0)) goto LAB_0006abf8;\n    iVar5 = rsa_verify(key);\n    if (iVar5 == 0) {\n      *error = PTR_s_entropy_source_000b23f0 + -0x2f88;\n      freersakey(key);\n      uVar9 = 0;\n    }\n    else {\nLAB_0006ac64:\n      uVar9 = 1;\n    }\n  } while( true );\n}\n\n" (function_definition "int loadrsakey_main(FILE *fp,RSAKey *key,int pub_only,char **commentptr,char *passphrase,\n                   char **error)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  int iVar6;\n  char *pcVar7;\n  char *pcVar8;\n  uint uVar9;\n  MD5Context md5c;\n  uchar keybuf [16];\n  uchar buf [16384];\n  \n  puVar2 = PTR___stack_chk_guard_000b2f04;\n  puVar1 = PTR_fread_000b2ea8;\n  iVar3 = *(int *)PTR___stack_chk_guard_000b2f04;\n  *error = (char *)0x0;\n  uVar4 = (*(code *)puVar1)(buf,1,0x4000,fp);\n  (*(code *)PTR_fclose_000b2dac)(fp);\n  if (((int)uVar4 < 0) || (uVar4 == 0x4000)) {\n    uVar9 = 0;\n    *error = PTR_s_entropy_source_000b23f0 + -0x2fc4;\n  }\n  else {\n    *error = PTR_s_entropy_source_000b23f0 + -0x2fb0;\n    if (uVar4 < 2) goto LAB_0006abf8;\n    if (buf[0] != '\0') goto LAB_0006abf8;\n    if ((buf[1] != '\0') && (buf[1] != '\x03')) goto LAB_0006abf8;\n    if ((int)uVar4 < 6) goto LAB_0006abf8;\n    if (((buf[2] != '\0' || buf[3] != '\0') || buf[4] != '\0') || buf[5] != '\0') goto LAB_0006abf8;\n    iVar5 = makekey(buf + 6,uVar4 - 6,key,(uchar **)0x0,1);\n    if (iVar5 < 0) goto LAB_0006abf8;\n    iVar6 = (*(code *)PTR_toint_000b24f4)\n                      ((uint)buf[iVar5 + 6] << 0x18 | (uint)buf[iVar5 + 7] << 0x10 |\n                       (uint)buf[iVar5 + 9] | (uint)buf[iVar5 + 8] << 8);\n    if (iVar6 < 0) goto LAB_0006abf8;\n    iVar5 = iVar5 + 10;\n    if ((int)(uVar4 - iVar5) < iVar6) goto LAB_0006abf8;\n    pcVar7 = (char *)(*(code *)PTR_safemalloc_000b2408)(iVar6 + 1,1);\n    if (pcVar7 != (char *)0x0) {\n      pcVar7 = (char *)(*(code *)PTR_memcpy_000b2f08)(pcVar7,buf + iVar5,iVar6);\n      pcVar7[iVar6] = '\0';\n    }\n    if (commentptr != (char **)0x0) {\n      pcVar8 = (char *)(*(code *)PTR_dupstr_000b2410)(pcVar7);\n      *commentptr = pcVar8;\n    }\n    if (key == (RSAKey *)0x0) {\n      (*(code *)PTR_safefree_000b23d0)(pcVar7);\n      if (pub_only != 0) goto LAB_0006ac64;\n      uVar9 = (uint)(buf[1] != '\0');\n      *error = (char *)0x0;\n    }\n    else {\n      key->comment = pcVar7;\n      if (pub_only != 0) goto LAB_0006ac64;\n      commentptr = (char **)(iVar6 + iVar5);\n      if (buf[1] != '\0') {\n        MD5Init(&md5c);\n        uVar9 = (*(code *)PTR_strlen_000b2e48)(passphrase);\n        MD5Update(&md5c,(uchar *)passphrase,uVar9);\n        MD5Final(keybuf,&md5c);\n        des3_decrypt_pubkey(keybuf,buf + (int)commentptr,(uVar4 - (int)commentptr) + 7 & 0xfffffff8)\n        ;\n        (*(code *)PTR_smemclr_000b2460)(keybuf,0x10);\n      }\n      if ((int)(uVar4 - (int)commentptr) < 4) goto LAB_0006abf8;\n      if ((buf[(int)commentptr] == (buf + 2)[(int)commentptr]) &&\n         ((buf + 1)[(int)commentptr] == (buf + 3)[(int)commentptr])) goto LAB_0006ad20;\n      uVar9 = 0xffffffff;\n      *error = PTR_s_entropy_source_000b23f0 + -0x2f9c;\n    }\n  }\n  do {\n    while( true ) {\n      (*(code *)PTR_smemclr_000b2460)(buf,0x4000);\n      if (iVar3 == *(int *)puVar2) {\n        return uVar9;\n      }\n      (*(code *)PTR___stack_chk_fail_000b2ed8)();\nLAB_0006ad20:\n      commentptr = commentptr + 1;\n      iVar5 = makeprivate(buf + (int)commentptr,uVar4 - (int)commentptr,key);\n      if (-1 < iVar5) break;\nLAB_0006abf8:\n      uVar9 = 0;\n    }\n    commentptr = (char **)((int)commentptr + iVar5);\n    iVar5 = ssh1_read_bignum(buf + (int)commentptr,uVar4 - (int)commentptr,\n                             (Bignum_conflict *)&key->iqmp);\n    if (iVar5 < 0) goto LAB_0006abf8;\n    commentptr = (char **)((int)commentptr + iVar5);\n    iVar5 = ssh1_read_bignum(buf + (int)commentptr,uVar4 - (int)commentptr,\n                             (Bignum_conflict *)&key->q);\n    if ((iVar5 < 0) ||\n       (iVar5 = ssh1_read_bignum(buf + (int)commentptr + iVar5,uVar4 - ((int)commentptr + iVar5),\n                                 (Bignum_conflict *)&key->p), iVar5 < 0)) goto LAB_0006abf8;\n    iVar5 = rsa_verify(key);\n    if (iVar5 == 0) {\n      *error = PTR_s_entropy_source_000b23f0 + -0x2f88;\n      freersakey(key);\n      uVar9 = 0;\n    }\n    else {\nLAB_0006ac64:\n      uVar9 = 1;\n    }\n  } while( true );\n}" primitive_type (function_declarator "loadrsakey_main(FILE *fp,RSAKey *key,int pub_only,char **commentptr,char *passphrase,\n                   char **error)" identifier (parameter_list "(FILE *fp,RSAKey *key,int pub_only,char **commentptr,char *passphrase,\n                   char **error)" ( (parameter_declaration "FILE *fp" type_identifier (pointer_declarator "*fp" * identifier)) , (parameter_declaration "RSAKey *key" type_identifier (pointer_declarator "*key" * identifier)) , (parameter_declaration "int pub_only" primitive_type identifier) , (parameter_declaration "char **commentptr" primitive_type (pointer_declarator "**commentptr" * (pointer_declarator "*commentptr" * identifier))) , (parameter_declaration "char *passphrase" primitive_type (pointer_declarator "*passphrase" * identifier)) , (parameter_declaration "char **error" primitive_type (pointer_declarator "**error" * (pointer_declarator "*error" * identifier))) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  uint uVar4;\n  int iVar5;\n  int iVar6;\n  char *pcVar7;\n  char *pcVar8;\n  uint uVar9;\n  MD5Context md5c;\n  uchar keybuf [16];\n  uchar buf [16384];\n  \n  puVar2 = PTR___stack_chk_guard_000b2f04;\n  puVar1 = PTR_fread_000b2ea8;\n  iVar3 = *(int *)PTR___stack_chk_guard_000b2f04;\n  *error = (char *)0x0;\n  uVar4 = (*(code *)puVar1)(buf,1,0x4000,fp);\n  (*(code *)PTR_fclose_000b2dac)(fp);\n  if (((int)uVar4 < 0) || (uVar4 == 0x4000)) {\n    uVar9 = 0;\n    *error = PTR_s_entropy_source_000b23f0 + -0x2fc4;\n  }\n  else {\n    *error = PTR_s_entropy_source_000b23f0 + -0x2fb0;\n    if (uVar4 < 2) goto LAB_0006abf8;\n    if (buf[0] != '\0') goto LAB_0006abf8;\n    if ((buf[1] != '\0') && (buf[1] != '\x03')) goto LAB_0006abf8;\n    if ((int)uVar4 < 6) goto LAB_0006abf8;\n    if (((buf[2] != '\0' || buf[3] != '\0') || buf[4] != '\0') || buf[5] != '\0') goto LAB_0006abf8;\n    iVar5 = makekey(buf + 6,uVar4 - 6,key,(uchar **)0x0,1);\n    if (iVar5 < 0) goto LAB_0006abf8;\n    iVar6 = (*(code *)PTR_toint_000b24f4)\n                      ((uint)buf[iVar5 + 6] << 0x18 | (uint)buf[iVar5 + 7] << 0x10 |\n                       (uint)buf[iVar5 + 9] | (uint)buf[iVar5 + 8] << 8);\n    if (iVar6 < 0) goto LAB_0006abf8;\n    iVar5 = iVar5 + 10;\n    if ((int)(uVar4 - iVar5) < iVar6) goto LAB_0006abf8;\n    pcVar7 = (char *)(*(code *)PTR_safemalloc_000b2408)(iVar6 + 1,1);\n    if (pcVar7 != (char *)0x0) {\n      pcVar7 = (char *)(*(code *)PTR_memcpy_000b2f08)(pcVar7,buf + iVar5,iVar6);\n      pcVar7[iVar6] = '\0';\n    }\n    if (commentptr != (char **)0x0) {\n      pcVar8 = (char *)(*(code *)PTR_dupstr_000b2410)(pcVar7);\n      *commentptr = pcVar8;\n    }\n    if (key == (RSAKey *)0x0) {\n      (*(code *)PTR_safefree_000b23d0)(pcVar7);\n      if (pub_only != 0) goto LAB_0006ac64;\n      uVar9 = (uint)(buf[1] != '\0');\n      *error = (char *)0x0;\n    }\n    else {\n      key->comment = pcVar7;\n      if (pub_only != 0) goto LAB_0006ac64;\n      commentptr = (char **)(iVar6 + iVar5);\n      if (buf[1] != '\0') {\n        MD5Init(&md5c);\n        uVar9 = (*(code *)PTR_strlen_000b2e48)(passphrase);\n        MD5Update(&md5c,(uchar *)passphrase,uVar9);\n        MD5Final(keybuf,&md5c);\n        des3_decrypt_pubkey(keybuf,buf + (int)commentptr,(uVar4 - (int)commentptr) + 7 & 0xfffffff8)\n        ;\n        (*(code *)PTR_smemclr_000b2460)(keybuf,0x10);\n      }\n      if ((int)(uVar4 - (int)commentptr) < 4) goto LAB_0006abf8;\n      if ((buf[(int)commentptr] == (buf + 2)[(int)commentptr]) &&\n         ((buf + 1)[(int)commentptr] == (buf + 3)[(int)commentptr])) goto LAB_0006ad20;\n      uVar9 = 0xffffffff;\n      *error = PTR_s_entropy_source_000b23f0 + -0x2f9c;\n    }\n  }\n  do {\n    while( true ) {\n      (*(code *)PTR_smemclr_000b2460)(buf,0x4000);\n      if (iVar3 == *(int *)puVar2) {\n        return uVar9;\n      }\n      (*(code *)PTR___stack_chk_fail_000b2ed8)();\nLAB_0006ad20:\n      commentptr = commentptr + 1;\n      iVar5 = makeprivate(buf + (int)commentptr,uVar4 - (int)commentptr,key);\n      if (-1 < iVar5) break;\nLAB_0006abf8:\n      uVar9 = 0;\n    }\n    commentptr = (char **)((int)commentptr + iVar5);\n    iVar5 = ssh1_read_bignum(buf + (int)commentptr,uVar4 - (int)commentptr,\n                             (Bignum_conflict *)&key->iqmp);\n    if (iVar5 < 0) goto LAB_0006abf8;\n    commentptr = (char **)((int)commentptr + iVar5);\n    iVar5 = ssh1_read_bignum(buf + (int)commentptr,uVar4 - (int)commentptr,\n                             (Bignum_conflict *)&key->q);\n    if ((iVar5 < 0) ||\n       (iVar5 = ssh1_read_bignum(buf + (int)commentptr + iVar5,uVar4 - ((int)commentptr + iVar5),\n                                 (Bignum_conflict *)&key->p), iVar5 < 0)) goto LAB_0006abf8;\n    iVar5 = rsa_verify(key);\n    if (iVar5 == 0) {\n      *error = PTR_s_entropy_source_000b23f0 + -0x2f88;\n      freersakey(key);\n      uVar9 = 0;\n    }\n    else {\nLAB_0006ac64:\n      uVar9 = 1;\n    }\n  } while( true );\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "MD5Context md5c;" type_identifier identifier ;) (declaration "uchar keybuf [16];" type_identifier (array_declarator "keybuf [16]" identifier [ number_literal ]) ;) (declaration "uchar buf [16384];" type_identifier (array_declarator "buf [16384]" identifier [ number_literal ]) ;) (expression_statement "puVar2 = PTR___stack_chk_guard_000b2f04;" (assignment_expression "puVar2 = PTR___stack_chk_guard_000b2f04" identifier = identifier) ;) (expression_statement "puVar1 = PTR_fread_000b2ea8;" (assignment_expression "puVar1 = PTR_fread_000b2ea8" identifier = identifier) ;) (expression_statement "iVar3 = *(int *)PTR___stack_chk_guard_000b2f04;" (assignment_expression "iVar3 = *(int *)PTR___stack_chk_guard_000b2f04" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000b2f04" * (cast_expression "(int *)PTR___stack_chk_guard_000b2f04" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*error = (char *)0x0;" (assignment_expression "*error = (char *)0x0" (pointer_expression "*error" * identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "uVar4 = (*(code *)puVar1)(buf,1,0x4000,fp);" (assignment_expression "uVar4 = (*(code *)puVar1)(buf,1,0x4000,fp)" identifier = (call_expression "(*(code *)puVar1)(buf,1,0x4000,fp)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(buf,1,0x4000,fp)" ( identifier , number_literal , number_literal , identifier )))) ;) (expression_statement "(*(code *)PTR_fclose_000b2dac)(fp);" (call_expression "(*(code *)PTR_fclose_000b2dac)(fp)" (parenthesized_expression "(*(code *)PTR_fclose_000b2dac)" ( (pointer_expression "*(code *)PTR_fclose_000b2dac" * (cast_expression "(code *)PTR_fclose_000b2dac" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(fp)" ( identifier ))) ;) (if_statement "if (((int)uVar4 < 0) || (uVar4 == 0x4000)) {\n    uVar9 = 0;\n    *error = PTR_s_entropy_source_000b23f0 + -0x2fc4;\n  }\n  else {\n    *error = PTR_s_entropy_source_000b23f0 + -0x2fb0;\n    if (uVar4 < 2) goto LAB_0006abf8;\n    if (buf[0] != '\0') goto LAB_0006abf8;\n    if ((buf[1] != '\0') && (buf[1] != '\x03')) goto LAB_0006abf8;\n    if ((int)uVar4 < 6) goto LAB_0006abf8;\n    if (((buf[2] != '\0' || buf[3] != '\0') || buf[4] != '\0') || buf[5] != '\0') goto LAB_0006abf8;\n    iVar5 = makekey(buf + 6,uVar4 - 6,key,(uchar **)0x0,1);\n    if (iVar5 < 0) goto LAB_0006abf8;\n    iVar6 = (*(code *)PTR_toint_000b24f4)\n                      ((uint)buf[iVar5 + 6] << 0x18 | (uint)buf[iVar5 + 7] << 0x10 |\n                       (uint)buf[iVar5 + 9] | (uint)buf[iVar5 + 8] << 8);\n    if (iVar6 < 0) goto LAB_0006abf8;\n    iVar5 = iVar5 + 10;\n    if ((int)(uVar4 - iVar5) < iVar6) goto LAB_0006abf8;\n    pcVar7 = (char *)(*(code *)PTR_safemalloc_000b2408)(iVar6 + 1,1);\n    if (pcVar7 != (char *)0x0) {\n      pcVar7 = (char *)(*(code *)PTR_memcpy_000b2f08)(pcVar7,buf + iVar5,iVar6);\n      pcVar7[iVar6] = '\0';\n    }\n    if (commentptr != (char **)0x0) {\n      pcVar8 = (char *)(*(code *)PTR_dupstr_000b2410)(pcVar7);\n      *commentptr = pcVar8;\n    }\n    if (key == (RSAKey *)0x0) {\n      (*(code *)PTR_safefree_000b23d0)(pcVar7);\n      if (pub_only != 0) goto LAB_0006ac64;\n      uVar9 = (uint)(buf[1] != '\0');\n      *error = (char *)0x0;\n    }\n    else {\n      key->comment = pcVar7;\n      if (pub_only != 0) goto LAB_0006ac64;\n      commentptr = (char **)(iVar6 + iVar5);\n      if (buf[1] != '\0') {\n        MD5Init(&md5c);\n        uVar9 = (*(code *)PTR_strlen_000b2e48)(passphrase);\n        MD5Update(&md5c,(uchar *)passphrase,uVar9);\n        MD5Final(keybuf,&md5c);\n        des3_decrypt_pubkey(keybuf,buf + (int)commentptr,(uVar4 - (int)commentptr) + 7 & 0xfffffff8)\n        ;\n        (*(code *)PTR_smemclr_000b2460)(keybuf,0x10);\n      }\n      if ((int)(uVar4 - (int)commentptr) < 4) goto LAB_0006abf8;\n      if ((buf[(int)commentptr] == (buf + 2)[(int)commentptr]) &&\n         ((buf + 1)[(int)commentptr] == (buf + 3)[(int)commentptr])) goto LAB_0006ad20;\n      uVar9 = 0xffffffff;\n      *error = PTR_s_entropy_source_000b23f0 + -0x2f9c;\n    }\n  }" if (parenthesized_expression "(((int)uVar4 < 0) || (uVar4 == 0x4000))" ( (binary_expression "((int)uVar4 < 0) || (uVar4 == 0x4000)" (parenthesized_expression "((int)uVar4 < 0)" ( (binary_expression "(int)uVar4 < 0" (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) || (parenthesized_expression "(uVar4 == 0x4000)" ( (binary_expression "uVar4 == 0x4000" identifier == number_literal) ))) )) (compound_statement "{\n    uVar9 = 0;\n    *error = PTR_s_entropy_source_000b23f0 + -0x2fc4;\n  }" { (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;) (expression_statement "*error = PTR_s_entropy_source_000b23f0 + -0x2fc4;" (assignment_expression "*error = PTR_s_entropy_source_000b23f0 + -0x2fc4" (pointer_expression "*error" * identifier) = (binary_expression "PTR_s_entropy_source_000b23f0 + -0x2fc4" identifier + number_literal)) ;) }) (else_clause "else {\n    *error = PTR_s_entropy_source_000b23f0 + -0x2fb0;\n    if (uVar4 < 2) goto LAB_0006abf8;\n    if (buf[0] != '\0') goto LAB_0006abf8;\n    if ((buf[1] != '\0') && (buf[1] != '\x03')) goto LAB_0006abf8;\n    if ((int)uVar4 < 6) goto LAB_0006abf8;\n    if (((buf[2] != '\0' || buf[3] != '\0') || buf[4] != '\0') || buf[5] != '\0') goto LAB_0006abf8;\n    iVar5 = makekey(buf + 6,uVar4 - 6,key,(uchar **)0x0,1);\n    if (iVar5 < 0) goto LAB_0006abf8;\n    iVar6 = (*(code *)PTR_toint_000b24f4)\n                      ((uint)buf[iVar5 + 6] << 0x18 | (uint)buf[iVar5 + 7] << 0x10 |\n                       (uint)buf[iVar5 + 9] | (uint)buf[iVar5 + 8] << 8);\n    if (iVar6 < 0) goto LAB_0006abf8;\n    iVar5 = iVar5 + 10;\n    if ((int)(uVar4 - iVar5) < iVar6) goto LAB_0006abf8;\n    pcVar7 = (char *)(*(code *)PTR_safemalloc_000b2408)(iVar6 + 1,1);\n    if (pcVar7 != (char *)0x0) {\n      pcVar7 = (char *)(*(code *)PTR_memcpy_000b2f08)(pcVar7,buf + iVar5,iVar6);\n      pcVar7[iVar6] = '\0';\n    }\n    if (commentptr != (char **)0x0) {\n      pcVar8 = (char *)(*(code *)PTR_dupstr_000b2410)(pcVar7);\n      *commentptr = pcVar8;\n    }\n    if (key == (RSAKey *)0x0) {\n      (*(code *)PTR_safefree_000b23d0)(pcVar7);\n      if (pub_only != 0) goto LAB_0006ac64;\n      uVar9 = (uint)(buf[1] != '\0');\n      *error = (char *)0x0;\n    }\n    else {\n      key->comment = pcVar7;\n      if (pub_only != 0) goto LAB_0006ac64;\n      commentptr = (char **)(iVar6 + iVar5);\n      if (buf[1] != '\0') {\n        MD5Init(&md5c);\n        uVar9 = (*(code *)PTR_strlen_000b2e48)(passphrase);\n        MD5Update(&md5c,(uchar *)passphrase,uVar9);\n        MD5Final(keybuf,&md5c);\n        des3_decrypt_pubkey(keybuf,buf + (int)commentptr,(uVar4 - (int)commentptr) + 7 & 0xfffffff8)\n        ;\n        (*(code *)PTR_smemclr_000b2460)(keybuf,0x10);\n      }\n      if ((int)(uVar4 - (int)commentptr) < 4) goto LAB_0006abf8;\n      if ((buf[(int)commentptr] == (buf + 2)[(int)commentptr]) &&\n         ((buf + 1)[(int)commentptr] == (buf + 3)[(int)commentptr])) goto LAB_0006ad20;\n      uVar9 = 0xffffffff;\n      *error = PTR_s_entropy_source_000b23f0 + -0x2f9c;\n    }\n  }" else (compound_statement "{\n    *error = PTR_s_entropy_source_000b23f0 + -0x2fb0;\n    if (uVar4 < 2) goto LAB_0006abf8;\n    if (buf[0] != '\0') goto LAB_0006abf8;\n    if ((buf[1] != '\0') && (buf[1] != '\x03')) goto LAB_0006abf8;\n    if ((int)uVar4 < 6) goto LAB_0006abf8;\n    if (((buf[2] != '\0' || buf[3] != '\0') || buf[4] != '\0') || buf[5] != '\0') goto LAB_0006abf8;\n    iVar5 = makekey(buf + 6,uVar4 - 6,key,(uchar **)0x0,1);\n    if (iVar5 < 0) goto LAB_0006abf8;\n    iVar6 = (*(code *)PTR_toint_000b24f4)\n                      ((uint)buf[iVar5 + 6] << 0x18 | (uint)buf[iVar5 + 7] << 0x10 |\n                       (uint)buf[iVar5 + 9] | (uint)buf[iVar5 + 8] << 8);\n    if (iVar6 < 0) goto LAB_0006abf8;\n    iVar5 = iVar5 + 10;\n    if ((int)(uVar4 - iVar5) < iVar6) goto LAB_0006abf8;\n    pcVar7 = (char *)(*(code *)PTR_safemalloc_000b2408)(iVar6 + 1,1);\n    if (pcVar7 != (char *)0x0) {\n      pcVar7 = (char *)(*(code *)PTR_memcpy_000b2f08)(pcVar7,buf + iVar5,iVar6);\n      pcVar7[iVar6] = '\0';\n    }\n    if (commentptr != (char **)0x0) {\n      pcVar8 = (char *)(*(code *)PTR_dupstr_000b2410)(pcVar7);\n      *commentptr = pcVar8;\n    }\n    if (key == (RSAKey *)0x0) {\n      (*(code *)PTR_safefree_000b23d0)(pcVar7);\n      if (pub_only != 0) goto LAB_0006ac64;\n      uVar9 = (uint)(buf[1] != '\0');\n      *error = (char *)0x0;\n    }\n    else {\n      key->comment = pcVar7;\n      if (pub_only != 0) goto LAB_0006ac64;\n      commentptr = (char **)(iVar6 + iVar5);\n      if (buf[1] != '\0') {\n        MD5Init(&md5c);\n        uVar9 = (*(code *)PTR_strlen_000b2e48)(passphrase);\n        MD5Update(&md5c,(uchar *)passphrase,uVar9);\n        MD5Final(keybuf,&md5c);\n        des3_decrypt_pubkey(keybuf,buf + (int)commentptr,(uVar4 - (int)commentptr) + 7 & 0xfffffff8)\n        ;\n        (*(code *)PTR_smemclr_000b2460)(keybuf,0x10);\n      }\n      if ((int)(uVar4 - (int)commentptr) < 4) goto LAB_0006abf8;\n      if ((buf[(int)commentptr] == (buf + 2)[(int)commentptr]) &&\n         ((buf + 1)[(int)commentptr] == (buf + 3)[(int)commentptr])) goto LAB_0006ad20;\n      uVar9 = 0xffffffff;\n      *error = PTR_s_entropy_source_000b23f0 + -0x2f9c;\n    }\n  }" { (expression_statement "*error = PTR_s_entropy_source_000b23f0 + -0x2fb0;" (assignment_expression "*error = PTR_s_entropy_source_000b23f0 + -0x2fb0" (pointer_expression "*error" * identifier) = (binary_expression "PTR_s_entropy_source_000b23f0 + -0x2fb0" identifier + number_literal)) ;) (if_statement "if (uVar4 < 2) goto LAB_0006abf8;" if (parenthesized_expression "(uVar4 < 2)" ( (binary_expression "uVar4 < 2" identifier < number_literal) )) (goto_statement "goto LAB_0006abf8;" goto statement_identifier ;)) (if_statement "if (buf[0] != '\0') goto LAB_0006abf8;" if (parenthesized_expression "(buf[0] != '\0')" ( (binary_expression "buf[0] != '\0'" (subscript_expression "buf[0]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_0006abf8;" goto statement_identifier ;)) (if_statement "if ((buf[1] != '\0') && (buf[1] != '\x03')) goto LAB_0006abf8;" if (parenthesized_expression "((buf[1] != '\0') && (buf[1] != '\x03'))" ( (binary_expression "(buf[1] != '\0') && (buf[1] != '\x03')" (parenthesized_expression "(buf[1] != '\0')" ( (binary_expression "buf[1] != '\0'" (subscript_expression "buf[1]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(buf[1] != '\x03')" ( (binary_expression "buf[1] != '\x03'" (subscript_expression "buf[1]" identifier [ number_literal ]) != (char_literal "'\x03'" ' escape_sequence ')) ))) )) (goto_statement "goto LAB_0006abf8;" goto statement_identifier ;)) (if_statement "if ((int)uVar4 < 6) goto LAB_0006abf8;" if (parenthesized_expression "((int)uVar4 < 6)" ( (binary_expression "(int)uVar4 < 6" (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (goto_statement "goto LAB_0006abf8;" goto statement_identifier ;)) (if_statement "if (((buf[2] != '\0' || buf[3] != '\0') || buf[4] != '\0') || buf[5] != '\0') goto LAB_0006abf8;" if (parenthesized_expression "(((buf[2] != '\0' || buf[3] != '\0') || buf[4] != '\0') || buf[5] != '\0')" ( (binary_expression "((buf[2] != '\0' || buf[3] != '\0') || buf[4] != '\0') || buf[5] != '\0'" (parenthesized_expression "((buf[2] != '\0' || buf[3] != '\0') || buf[4] != '\0')" ( (binary_expression "(buf[2] != '\0' || buf[3] != '\0') || buf[4] != '\0'" (parenthesized_expression "(buf[2] != '\0' || buf[3] != '\0')" ( (binary_expression "buf[2] != '\0' || buf[3] != '\0'" (binary_expression "buf[2] != '\0'" (subscript_expression "buf[2]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) || (binary_expression "buf[3] != '\0'" (subscript_expression "buf[3]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence '))) )) || (binary_expression "buf[4] != '\0'" (subscript_expression "buf[4]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence '))) )) || (binary_expression "buf[5] != '\0'" (subscript_expression "buf[5]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence '))) )) (goto_statement "goto LAB_0006abf8;" goto statement_identifier ;)) (expression_statement "iVar5 = makekey(buf + 6,uVar4 - 6,key,(uchar **)0x0,1);" (assignment_expression "iVar5 = makekey(buf + 6,uVar4 - 6,key,(uchar **)0x0,1)" identifier = (call_expression "makekey(buf + 6,uVar4 - 6,key,(uchar **)0x0,1)" identifier (argument_list "(buf + 6,uVar4 - 6,key,(uchar **)0x0,1)" ( (binary_expression "buf + 6" identifier + number_literal) , (binary_expression "uVar4 - 6" identifier - number_literal) , identifier , (cast_expression "(uchar **)0x0" ( (type_descriptor "uchar **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal) , number_literal )))) ;) (if_statement "if (iVar5 < 0) goto LAB_0006abf8;" if (parenthesized_expression "(iVar5 < 0)" ( (binary_expression "iVar5 < 0" identifier < number_literal) )) (goto_statement "goto LAB_0006abf8;" goto statement_identifier ;)) (expression_statement "iVar6 = (*(code *)PTR_toint_000b24f4)\n                      ((uint)buf[iVar5 + 6] << 0x18 | (uint)buf[iVar5 + 7] << 0x10 |\n                       (uint)buf[iVar5 + 9] | (uint)buf[iVar5 + 8] << 8);" (assignment_expression "iVar6 = (*(code *)PTR_toint_000b24f4)\n                      ((uint)buf[iVar5 + 6] << 0x18 | (uint)buf[iVar5 + 7] << 0x10 |\n                       (uint)buf[iVar5 + 9] | (uint)buf[iVar5 + 8] << 8)" identifier = (call_expression "(*(code *)PTR_toint_000b24f4)\n                      ((uint)buf[iVar5 + 6] << 0x18 | (uint)buf[iVar5 + 7] << 0x10 |\n                       (uint)buf[iVar5 + 9] | (uint)buf[iVar5 + 8] << 8)" (parenthesized_expression "(*(code *)PTR_toint_000b24f4)" ( (pointer_expression "*(code *)PTR_toint_000b24f4" * (cast_expression "(code *)PTR_toint_000b24f4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "((uint)buf[iVar5 + 6] << 0x18 | (uint)buf[iVar5 + 7] << 0x10 |\n                       (uint)buf[iVar5 + 9] | (uint)buf[iVar5 + 8] << 8)" ( (binary_expression "(uint)buf[iVar5 + 6] << 0x18 | (uint)buf[iVar5 + 7] << 0x10 |\n                       (uint)buf[iVar5 + 9] | (uint)buf[iVar5 + 8] << 8" (binary_expression "(uint)buf[iVar5 + 6] << 0x18 | (uint)buf[iVar5 + 7] << 0x10 |\n                       (uint)buf[iVar5 + 9]" (binary_expression "(uint)buf[iVar5 + 6] << 0x18 | (uint)buf[iVar5 + 7] << 0x10" (binary_expression "(uint)buf[iVar5 + 6] << 0x18" (cast_expression "(uint)buf[iVar5 + 6]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "buf[iVar5 + 6]" identifier [ (binary_expression "iVar5 + 6" identifier + number_literal) ])) << number_literal) | (binary_expression "(uint)buf[iVar5 + 7] << 0x10" (cast_expression "(uint)buf[iVar5 + 7]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "buf[iVar5 + 7]" identifier [ (binary_expression "iVar5 + 7" identifier + number_literal) ])) << number_literal)) | (cast_expression "(uint)buf[iVar5 + 9]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "buf[iVar5 + 9]" identifier [ (binary_expression "iVar5 + 9" identifier + number_literal) ]))) | (binary_expression "(uint)buf[iVar5 + 8] << 8" (cast_expression "(uint)buf[iVar5 + 8]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "buf[iVar5 + 8]" identifier [ (binary_expression "iVar5 + 8" identifier + number_literal) ])) << number_literal)) )))) ;) (if_statement "if (iVar6 < 0) goto LAB_0006abf8;" if (parenthesized_expression "(iVar6 < 0)" ( (binary_expression "iVar6 < 0" identifier < number_literal) )) (goto_statement "goto LAB_0006abf8;" goto statement_identifier ;)) (expression_statement "iVar5 = iVar5 + 10;" (assignment_expression "iVar5 = iVar5 + 10" identifier = (binary_expression "iVar5 + 10" identifier + number_literal)) ;) (if_statement "if ((int)(uVar4 - iVar5) < iVar6) goto LAB_0006abf8;" if (parenthesized_expression "((int)(uVar4 - iVar5) < iVar6)" ( (binary_expression "(int)(uVar4 - iVar5) < iVar6" (cast_expression "(int)(uVar4 - iVar5)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar4 - iVar5)" ( (binary_expression "uVar4 - iVar5" identifier - identifier) ))) < identifier) )) (goto_statement "goto LAB_0006abf8;" goto statement_identifier ;)) (expression_statement "pcVar7 = (char *)(*(code *)PTR_safemalloc_000b2408)(iVar6 + 1,1);" (assignment_expression "pcVar7 = (char *)(*(code *)PTR_safemalloc_000b2408)(iVar6 + 1,1)" identifier = (cast_expression "(char *)(*(code *)PTR_safemalloc_000b2408)(iVar6 + 1,1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_safemalloc_000b2408)(iVar6 + 1,1)" (parenthesized_expression "(*(code *)PTR_safemalloc_000b2408)" ( (pointer_expression "*(code *)PTR_safemalloc_000b2408" * (cast_expression "(code *)PTR_safemalloc_000b2408" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar6 + 1,1)" ( (binary_expression "iVar6 + 1" identifier + number_literal) , number_literal ))))) ;) (if_statement "if (pcVar7 != (char *)0x0) {\n      pcVar7 = (char *)(*(code *)PTR_memcpy_000b2f08)(pcVar7,buf + iVar5,iVar6);\n      pcVar7[iVar6] = '\0';\n    }" if (parenthesized_expression "(pcVar7 != (char *)0x0)" ( (binary_expression "pcVar7 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pcVar7 = (char *)(*(code *)PTR_memcpy_000b2f08)(pcVar7,buf + iVar5,iVar6);\n      pcVar7[iVar6] = '\0';\n    }" { (expression_statement "pcVar7 = (char *)(*(code *)PTR_memcpy_000b2f08)(pcVar7,buf + iVar5,iVar6);" (assignment_expression "pcVar7 = (char *)(*(code *)PTR_memcpy_000b2f08)(pcVar7,buf + iVar5,iVar6)" identifier = (cast_expression "(char *)(*(code *)PTR_memcpy_000b2f08)(pcVar7,buf + iVar5,iVar6)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_memcpy_000b2f08)(pcVar7,buf + iVar5,iVar6)" (parenthesized_expression "(*(code *)PTR_memcpy_000b2f08)" ( (pointer_expression "*(code *)PTR_memcpy_000b2f08" * (cast_expression "(code *)PTR_memcpy_000b2f08" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar7,buf + iVar5,iVar6)" ( identifier , (binary_expression "buf + iVar5" identifier + identifier) , identifier ))))) ;) (expression_statement "pcVar7[iVar6] = '\0';" (assignment_expression "pcVar7[iVar6] = '\0'" (subscript_expression "pcVar7[iVar6]" identifier [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) })) (if_statement "if (commentptr != (char **)0x0) {\n      pcVar8 = (char *)(*(code *)PTR_dupstr_000b2410)(pcVar7);\n      *commentptr = pcVar8;\n    }" if (parenthesized_expression "(commentptr != (char **)0x0)" ( (binary_expression "commentptr != (char **)0x0" identifier != (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\n      pcVar8 = (char *)(*(code *)PTR_dupstr_000b2410)(pcVar7);\n      *commentptr = pcVar8;\n    }" { (expression_statement "pcVar8 = (char *)(*(code *)PTR_dupstr_000b2410)(pcVar7);" (assignment_expression "pcVar8 = (char *)(*(code *)PTR_dupstr_000b2410)(pcVar7)" identifier = (cast_expression "(char *)(*(code *)PTR_dupstr_000b2410)(pcVar7)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_dupstr_000b2410)(pcVar7)" (parenthesized_expression "(*(code *)PTR_dupstr_000b2410)" ( (pointer_expression "*(code *)PTR_dupstr_000b2410" * (cast_expression "(code *)PTR_dupstr_000b2410" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar7)" ( identifier ))))) ;) (expression_statement "*commentptr = pcVar8;" (assignment_expression "*commentptr = pcVar8" (pointer_expression "*commentptr" * identifier) = identifier) ;) })) (if_statement "if (key == (RSAKey *)0x0) {\n      (*(code *)PTR_safefree_000b23d0)(pcVar7);\n      if (pub_only != 0) goto LAB_0006ac64;\n      uVar9 = (uint)(buf[1] != '\0');\n      *error = (char *)0x0;\n    }\n    else {\n      key->comment = pcVar7;\n      if (pub_only != 0) goto LAB_0006ac64;\n      commentptr = (char **)(iVar6 + iVar5);\n      if (buf[1] != '\0') {\n        MD5Init(&md5c);\n        uVar9 = (*(code *)PTR_strlen_000b2e48)(passphrase);\n        MD5Update(&md5c,(uchar *)passphrase,uVar9);\n        MD5Final(keybuf,&md5c);\n        des3_decrypt_pubkey(keybuf,buf + (int)commentptr,(uVar4 - (int)commentptr) + 7 & 0xfffffff8)\n        ;\n        (*(code *)PTR_smemclr_000b2460)(keybuf,0x10);\n      }\n      if ((int)(uVar4 - (int)commentptr) < 4) goto LAB_0006abf8;\n      if ((buf[(int)commentptr] == (buf + 2)[(int)commentptr]) &&\n         ((buf + 1)[(int)commentptr] == (buf + 3)[(int)commentptr])) goto LAB_0006ad20;\n      uVar9 = 0xffffffff;\n      *error = PTR_s_entropy_source_000b23f0 + -0x2f9c;\n    }" if (parenthesized_expression "(key == (RSAKey *)0x0)" ( (binary_expression "key == (RSAKey *)0x0" identifier == (cast_expression "(RSAKey *)0x0" ( (type_descriptor "RSAKey *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      (*(code *)PTR_safefree_000b23d0)(pcVar7);\n      if (pub_only != 0) goto LAB_0006ac64;\n      uVar9 = (uint)(buf[1] != '\0');\n      *error = (char *)0x0;\n    }" { (expression_statement "(*(code *)PTR_safefree_000b23d0)(pcVar7);" (call_expression "(*(code *)PTR_safefree_000b23d0)(pcVar7)" (parenthesized_expression "(*(code *)PTR_safefree_000b23d0)" ( (pointer_expression "*(code *)PTR_safefree_000b23d0" * (cast_expression "(code *)PTR_safefree_000b23d0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar7)" ( identifier ))) ;) (if_statement "if (pub_only != 0) goto LAB_0006ac64;" if (parenthesized_expression "(pub_only != 0)" ( (binary_expression "pub_only != 0" identifier != number_literal) )) (goto_statement "goto LAB_0006ac64;" goto statement_identifier ;)) (expression_statement "uVar9 = (uint)(buf[1] != '\0');" (assignment_expression "uVar9 = (uint)(buf[1] != '\0')" identifier = (call_expression "(uint)(buf[1] != '\0')" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(buf[1] != '\0')" ( (binary_expression "buf[1] != '\0'" (subscript_expression "buf[1]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )))) ;) (expression_statement "*error = (char *)0x0;" (assignment_expression "*error = (char *)0x0" (pointer_expression "*error" * identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n      key->comment = pcVar7;\n      if (pub_only != 0) goto LAB_0006ac64;\n      commentptr = (char **)(iVar6 + iVar5);\n      if (buf[1] != '\0') {\n        MD5Init(&md5c);\n        uVar9 = (*(code *)PTR_strlen_000b2e48)(passphrase);\n        MD5Update(&md5c,(uchar *)passphrase,uVar9);\n        MD5Final(keybuf,&md5c);\n        des3_decrypt_pubkey(keybuf,buf + (int)commentptr,(uVar4 - (int)commentptr) + 7 & 0xfffffff8)\n        ;\n        (*(code *)PTR_smemclr_000b2460)(keybuf,0x10);\n      }\n      if ((int)(uVar4 - (int)commentptr) < 4) goto LAB_0006abf8;\n      if ((buf[(int)commentptr] == (buf + 2)[(int)commentptr]) &&\n         ((buf + 1)[(int)commentptr] == (buf + 3)[(int)commentptr])) goto LAB_0006ad20;\n      uVar9 = 0xffffffff;\n      *error = PTR_s_entropy_source_000b23f0 + -0x2f9c;\n    }" else (compound_statement "{\n      key->comment = pcVar7;\n      if (pub_only != 0) goto LAB_0006ac64;\n      commentptr = (char **)(iVar6 + iVar5);\n      if (buf[1] != '\0') {\n        MD5Init(&md5c);\n        uVar9 = (*(code *)PTR_strlen_000b2e48)(passphrase);\n        MD5Update(&md5c,(uchar *)passphrase,uVar9);\n        MD5Final(keybuf,&md5c);\n        des3_decrypt_pubkey(keybuf,buf + (int)commentptr,(uVar4 - (int)commentptr) + 7 & 0xfffffff8)\n        ;\n        (*(code *)PTR_smemclr_000b2460)(keybuf,0x10);\n      }\n      if ((int)(uVar4 - (int)commentptr) < 4) goto LAB_0006abf8;\n      if ((buf[(int)commentptr] == (buf + 2)[(int)commentptr]) &&\n         ((buf + 1)[(int)commentptr] == (buf + 3)[(int)commentptr])) goto LAB_0006ad20;\n      uVar9 = 0xffffffff;\n      *error = PTR_s_entropy_source_000b23f0 + -0x2f9c;\n    }" { (expression_statement "key->comment = pcVar7;" (assignment_expression "key->comment = pcVar7" (field_expression "key->comment" identifier -> field_identifier) = identifier) ;) (if_statement "if (pub_only != 0) goto LAB_0006ac64;" if (parenthesized_expression "(pub_only != 0)" ( (binary_expression "pub_only != 0" identifier != number_literal) )) (goto_statement "goto LAB_0006ac64;" goto statement_identifier ;)) (expression_statement "commentptr = (char **)(iVar6 + iVar5);" (assignment_expression "commentptr = (char **)(iVar6 + iVar5)" identifier = (cast_expression "(char **)(iVar6 + iVar5)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar6 + iVar5)" ( (binary_expression "iVar6 + iVar5" identifier + identifier) )))) ;) (if_statement "if (buf[1] != '\0') {\n        MD5Init(&md5c);\n        uVar9 = (*(code *)PTR_strlen_000b2e48)(passphrase);\n        MD5Update(&md5c,(uchar *)passphrase,uVar9);\n        MD5Final(keybuf,&md5c);\n        des3_decrypt_pubkey(keybuf,buf + (int)commentptr,(uVar4 - (int)commentptr) + 7 & 0xfffffff8)\n        ;\n        (*(code *)PTR_smemclr_000b2460)(keybuf,0x10);\n      }" if (parenthesized_expression "(buf[1] != '\0')" ( (binary_expression "buf[1] != '\0'" (subscript_expression "buf[1]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        MD5Init(&md5c);\n        uVar9 = (*(code *)PTR_strlen_000b2e48)(passphrase);\n        MD5Update(&md5c,(uchar *)passphrase,uVar9);\n        MD5Final(keybuf,&md5c);\n        des3_decrypt_pubkey(keybuf,buf + (int)commentptr,(uVar4 - (int)commentptr) + 7 & 0xfffffff8)\n        ;\n        (*(code *)PTR_smemclr_000b2460)(keybuf,0x10);\n      }" { (expression_statement "MD5Init(&md5c);" (call_expression "MD5Init(&md5c)" identifier (argument_list "(&md5c)" ( (pointer_expression "&md5c" & identifier) ))) ;) (expression_statement "uVar9 = (*(code *)PTR_strlen_000b2e48)(passphrase);" (assignment_expression "uVar9 = (*(code *)PTR_strlen_000b2e48)(passphrase)" identifier = (call_expression "(*(code *)PTR_strlen_000b2e48)(passphrase)" (parenthesized_expression "(*(code *)PTR_strlen_000b2e48)" ( (pointer_expression "*(code *)PTR_strlen_000b2e48" * (cast_expression "(code *)PTR_strlen_000b2e48" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(passphrase)" ( identifier )))) ;) (expression_statement "MD5Update(&md5c,(uchar *)passphrase,uVar9);" (call_expression "MD5Update(&md5c,(uchar *)passphrase,uVar9)" identifier (argument_list "(&md5c,(uchar *)passphrase,uVar9)" ( (pointer_expression "&md5c" & identifier) , (cast_expression "(uchar *)passphrase" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier ))) ;) (expression_statement "MD5Final(keybuf,&md5c);" (call_expression "MD5Final(keybuf,&md5c)" identifier (argument_list "(keybuf,&md5c)" ( identifier , (pointer_expression "&md5c" & identifier) ))) ;) (expression_statement "des3_decrypt_pubkey(keybuf,buf + (int)commentptr,(uVar4 - (int)commentptr) + 7 & 0xfffffff8)\n        ;" (call_expression "des3_decrypt_pubkey(keybuf,buf + (int)commentptr,(uVar4 - (int)commentptr) + 7 & 0xfffffff8)" identifier (argument_list "(keybuf,buf + (int)commentptr,(uVar4 - (int)commentptr) + 7 & 0xfffffff8)" ( identifier , (binary_expression "buf + (int)commentptr" identifier + (cast_expression "(int)commentptr" ( (type_descriptor "int" primitive_type) ) identifier)) , (binary_expression "(uVar4 - (int)commentptr) + 7 & 0xfffffff8" (binary_expression "(uVar4 - (int)commentptr) + 7" (parenthesized_expression "(uVar4 - (int)commentptr)" ( (binary_expression "uVar4 - (int)commentptr" identifier - (cast_expression "(int)commentptr" ( (type_descriptor "int" primitive_type) ) identifier)) )) + number_literal) & number_literal) ))) ;) (expression_statement "(*(code *)PTR_smemclr_000b2460)(keybuf,0x10);" (call_expression "(*(code *)PTR_smemclr_000b2460)(keybuf,0x10)" (parenthesized_expression "(*(code *)PTR_smemclr_000b2460)" ( (pointer_expression "*(code *)PTR_smemclr_000b2460" * (cast_expression "(code *)PTR_smemclr_000b2460" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(keybuf,0x10)" ( identifier , number_literal ))) ;) })) (if_statement "if ((int)(uVar4 - (int)commentptr) < 4) goto LAB_0006abf8;" if (parenthesized_expression "((int)(uVar4 - (int)commentptr) < 4)" ( (binary_expression "(int)(uVar4 - (int)commentptr) < 4" (cast_expression "(int)(uVar4 - (int)commentptr)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar4 - (int)commentptr)" ( (binary_expression "uVar4 - (int)commentptr" identifier - (cast_expression "(int)commentptr" ( (type_descriptor "int" primitive_type) ) identifier)) ))) < number_literal) )) (goto_statement "goto LAB_0006abf8;" goto statement_identifier ;)) (if_statement "if ((buf[(int)commentptr] == (buf + 2)[(int)commentptr]) &&\n         ((buf + 1)[(int)commentptr] == (buf + 3)[(int)commentptr])) goto LAB_0006ad20;" if (parenthesized_expression "((buf[(int)commentptr] == (buf + 2)[(int)commentptr]) &&\n         ((buf + 1)[(int)commentptr] == (buf + 3)[(int)commentptr]))" ( (binary_expression "(buf[(int)commentptr] == (buf + 2)[(int)commentptr]) &&\n         ((buf + 1)[(int)commentptr] == (buf + 3)[(int)commentptr])" (parenthesized_expression "(buf[(int)commentptr] == (buf + 2)[(int)commentptr])" ( (binary_expression "buf[(int)commentptr] == (buf + 2)[(int)commentptr]" (subscript_expression "buf[(int)commentptr]" identifier [ (cast_expression "(int)commentptr" ( (type_descriptor "int" primitive_type) ) identifier) ]) == (subscript_expression "(buf + 2)[(int)commentptr]" (parenthesized_expression "(buf + 2)" ( (binary_expression "buf + 2" identifier + number_literal) )) [ (cast_expression "(int)commentptr" ( (type_descriptor "int" primitive_type) ) identifier) ])) )) && (parenthesized_expression "((buf + 1)[(int)commentptr] == (buf + 3)[(int)commentptr])" ( (binary_expression "(buf + 1)[(int)commentptr] == (buf + 3)[(int)commentptr]" (subscript_expression "(buf + 1)[(int)commentptr]" (parenthesized_expression "(buf + 1)" ( (binary_expression "buf + 1" identifier + number_literal) )) [ (cast_expression "(int)commentptr" ( (type_descriptor "int" primitive_type) ) identifier) ]) == (subscript_expression "(buf + 3)[(int)commentptr]" (parenthesized_expression "(buf + 3)" ( (binary_expression "buf + 3" identifier + number_literal) )) [ (cast_expression "(int)commentptr" ( (type_descriptor "int" primitive_type) ) identifier) ])) ))) )) (goto_statement "goto LAB_0006ad20;" goto statement_identifier ;)) (expression_statement "uVar9 = 0xffffffff;" (assignment_expression "uVar9 = 0xffffffff" identifier = number_literal) ;) (expression_statement "*error = PTR_s_entropy_source_000b23f0 + -0x2f9c;" (assignment_expression "*error = PTR_s_entropy_source_000b23f0 + -0x2f9c" (pointer_expression "*error" * identifier) = (binary_expression "PTR_s_entropy_source_000b23f0 + -0x2f9c" identifier + number_literal)) ;) }))) }))) (do_statement "do {\n    while( true ) {\n      (*(code *)PTR_smemclr_000b2460)(buf,0x4000);\n      if (iVar3 == *(int *)puVar2) {\n        return uVar9;\n      }\n      (*(code *)PTR___stack_chk_fail_000b2ed8)();\nLAB_0006ad20:\n      commentptr = commentptr + 1;\n      iVar5 = makeprivate(buf + (int)commentptr,uVar4 - (int)commentptr,key);\n      if (-1 < iVar5) break;\nLAB_0006abf8:\n      uVar9 = 0;\n    }\n    commentptr = (char **)((int)commentptr + iVar5);\n    iVar5 = ssh1_read_bignum(buf + (int)commentptr,uVar4 - (int)commentptr,\n                             (Bignum_conflict *)&key->iqmp);\n    if (iVar5 < 0) goto LAB_0006abf8;\n    commentptr = (char **)((int)commentptr + iVar5);\n    iVar5 = ssh1_read_bignum(buf + (int)commentptr,uVar4 - (int)commentptr,\n                             (Bignum_conflict *)&key->q);\n    if ((iVar5 < 0) ||\n       (iVar5 = ssh1_read_bignum(buf + (int)commentptr + iVar5,uVar4 - ((int)commentptr + iVar5),\n                                 (Bignum_conflict *)&key->p), iVar5 < 0)) goto LAB_0006abf8;\n    iVar5 = rsa_verify(key);\n    if (iVar5 == 0) {\n      *error = PTR_s_entropy_source_000b23f0 + -0x2f88;\n      freersakey(key);\n      uVar9 = 0;\n    }\n    else {\nLAB_0006ac64:\n      uVar9 = 1;\n    }\n  } while( true );" do (compound_statement "{\n    while( true ) {\n      (*(code *)PTR_smemclr_000b2460)(buf,0x4000);\n      if (iVar3 == *(int *)puVar2) {\n        return uVar9;\n      }\n      (*(code *)PTR___stack_chk_fail_000b2ed8)();\nLAB_0006ad20:\n      commentptr = commentptr + 1;\n      iVar5 = makeprivate(buf + (int)commentptr,uVar4 - (int)commentptr,key);\n      if (-1 < iVar5) break;\nLAB_0006abf8:\n      uVar9 = 0;\n    }\n    commentptr = (char **)((int)commentptr + iVar5);\n    iVar5 = ssh1_read_bignum(buf + (int)commentptr,uVar4 - (int)commentptr,\n                             (Bignum_conflict *)&key->iqmp);\n    if (iVar5 < 0) goto LAB_0006abf8;\n    commentptr = (char **)((int)commentptr + iVar5);\n    iVar5 = ssh1_read_bignum(buf + (int)commentptr,uVar4 - (int)commentptr,\n                             (Bignum_conflict *)&key->q);\n    if ((iVar5 < 0) ||\n       (iVar5 = ssh1_read_bignum(buf + (int)commentptr + iVar5,uVar4 - ((int)commentptr + iVar5),\n                                 (Bignum_conflict *)&key->p), iVar5 < 0)) goto LAB_0006abf8;\n    iVar5 = rsa_verify(key);\n    if (iVar5 == 0) {\n      *error = PTR_s_entropy_source_000b23f0 + -0x2f88;\n      freersakey(key);\n      uVar9 = 0;\n    }\n    else {\nLAB_0006ac64:\n      uVar9 = 1;\n    }\n  }" { (while_statement "while( true ) {\n      (*(code *)PTR_smemclr_000b2460)(buf,0x4000);\n      if (iVar3 == *(int *)puVar2) {\n        return uVar9;\n      }\n      (*(code *)PTR___stack_chk_fail_000b2ed8)();\nLAB_0006ad20:\n      commentptr = commentptr + 1;\n      iVar5 = makeprivate(buf + (int)commentptr,uVar4 - (int)commentptr,key);\n      if (-1 < iVar5) break;\nLAB_0006abf8:\n      uVar9 = 0;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      (*(code *)PTR_smemclr_000b2460)(buf,0x4000);\n      if (iVar3 == *(int *)puVar2) {\n        return uVar9;\n      }\n      (*(code *)PTR___stack_chk_fail_000b2ed8)();\nLAB_0006ad20:\n      commentptr = commentptr + 1;\n      iVar5 = makeprivate(buf + (int)commentptr,uVar4 - (int)commentptr,key);\n      if (-1 < iVar5) break;\nLAB_0006abf8:\n      uVar9 = 0;\n    }" { (expression_statement "(*(code *)PTR_smemclr_000b2460)(buf,0x4000);" (call_expression "(*(code *)PTR_smemclr_000b2460)(buf,0x4000)" (parenthesized_expression "(*(code *)PTR_smemclr_000b2460)" ( (pointer_expression "*(code *)PTR_smemclr_000b2460" * (cast_expression "(code *)PTR_smemclr_000b2460" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(buf,0x4000)" ( identifier , number_literal ))) ;) (if_statement "if (iVar3 == *(int *)puVar2) {\n        return uVar9;\n      }" if (parenthesized_expression "(iVar3 == *(int *)puVar2)" ( (binary_expression "iVar3 == *(int *)puVar2" identifier == (pointer_expression "*(int *)puVar2" * (cast_expression "(int *)puVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n        return uVar9;\n      }" { (return_statement "return uVar9;" return identifier ;) })) (expression_statement "(*(code *)PTR___stack_chk_fail_000b2ed8)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b2ed8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b2ed8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000b2ed8" * (cast_expression "(code *)PTR___stack_chk_fail_000b2ed8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (labeled_statement "LAB_0006ad20:\n      commentptr = commentptr + 1;" statement_identifier : (expression_statement "commentptr = commentptr + 1;" (assignment_expression "commentptr = commentptr + 1" identifier = (binary_expression "commentptr + 1" identifier + number_literal)) ;)) (expression_statement "iVar5 = makeprivate(buf + (int)commentptr,uVar4 - (int)commentptr,key);" (assignment_expression "iVar5 = makeprivate(buf + (int)commentptr,uVar4 - (int)commentptr,key)" identifier = (call_expression "makeprivate(buf + (int)commentptr,uVar4 - (int)commentptr,key)" identifier (argument_list "(buf + (int)commentptr,uVar4 - (int)commentptr,key)" ( (binary_expression "buf + (int)commentptr" identifier + (cast_expression "(int)commentptr" ( (type_descriptor "int" primitive_type) ) identifier)) , (binary_expression "uVar4 - (int)commentptr" identifier - (cast_expression "(int)commentptr" ( (type_descriptor "int" primitive_type) ) identifier)) , identifier )))) ;) (if_statement "if (-1 < iVar5) break;" if (parenthesized_expression "(-1 < iVar5)" ( (binary_expression "-1 < iVar5" number_literal < identifier) )) (break_statement "break;" break ;)) (labeled_statement "LAB_0006abf8:\n      uVar9 = 0;" statement_identifier : (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;)) })) (expression_statement "commentptr = (char **)((int)commentptr + iVar5);" (assignment_expression "commentptr = (char **)((int)commentptr + iVar5)" identifier = (cast_expression "(char **)((int)commentptr + iVar5)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)commentptr + iVar5)" ( (binary_expression "(int)commentptr + iVar5" (cast_expression "(int)commentptr" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) ;) (expression_statement "iVar5 = ssh1_read_bignum(buf + (int)commentptr,uVar4 - (int)commentptr,\n                             (Bignum_conflict *)&key->iqmp);" (assignment_expression "iVar5 = ssh1_read_bignum(buf + (int)commentptr,uVar4 - (int)commentptr,\n                             (Bignum_conflict *)&key->iqmp)" identifier = (call_expression "ssh1_read_bignum(buf + (int)commentptr,uVar4 - (int)commentptr,\n                             (Bignum_conflict *)&key->iqmp)" identifier (argument_list "(buf + (int)commentptr,uVar4 - (int)commentptr,\n                             (Bignum_conflict *)&key->iqmp)" ( (binary_expression "buf + (int)commentptr" identifier + (cast_expression "(int)commentptr" ( (type_descriptor "int" primitive_type) ) identifier)) , (binary_expression "uVar4 - (int)commentptr" identifier - (cast_expression "(int)commentptr" ( (type_descriptor "int" primitive_type) ) identifier)) , (cast_expression "(Bignum_conflict *)&key->iqmp" ( (type_descriptor "Bignum_conflict *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&key->iqmp" & (field_expression "key->iqmp" identifier -> field_identifier))) )))) ;) (if_statement "if (iVar5 < 0) goto LAB_0006abf8;" if (parenthesized_expression "(iVar5 < 0)" ( (binary_expression "iVar5 < 0" identifier < number_literal) )) (goto_statement "goto LAB_0006abf8;" goto statement_identifier ;)) (expression_statement "commentptr = (char **)((int)commentptr + iVar5);" (assignment_expression "commentptr = (char **)((int)commentptr + iVar5)" identifier = (cast_expression "(char **)((int)commentptr + iVar5)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)commentptr + iVar5)" ( (binary_expression "(int)commentptr + iVar5" (cast_expression "(int)commentptr" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) ;) (expression_statement "iVar5 = ssh1_read_bignum(buf + (int)commentptr,uVar4 - (int)commentptr,\n                             (Bignum_conflict *)&key->q);" (assignment_expression "iVar5 = ssh1_read_bignum(buf + (int)commentptr,uVar4 - (int)commentptr,\n                             (Bignum_conflict *)&key->q)" identifier = (call_expression "ssh1_read_bignum(buf + (int)commentptr,uVar4 - (int)commentptr,\n                             (Bignum_conflict *)&key->q)" identifier (argument_list "(buf + (int)commentptr,uVar4 - (int)commentptr,\n                             (Bignum_conflict *)&key->q)" ( (binary_expression "buf + (int)commentptr" identifier + (cast_expression "(int)commentptr" ( (type_descriptor "int" primitive_type) ) identifier)) , (binary_expression "uVar4 - (int)commentptr" identifier - (cast_expression "(int)commentptr" ( (type_descriptor "int" primitive_type) ) identifier)) , (cast_expression "(Bignum_conflict *)&key->q" ( (type_descriptor "Bignum_conflict *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&key->q" & (field_expression "key->q" identifier -> field_identifier))) )))) ;) (if_statement "if ((iVar5 < 0) ||\n       (iVar5 = ssh1_read_bignum(buf + (int)commentptr + iVar5,uVar4 - ((int)commentptr + iVar5),\n                                 (Bignum_conflict *)&key->p), iVar5 < 0)) goto LAB_0006abf8;" if (parenthesized_expression "((iVar5 < 0) ||\n       (iVar5 = ssh1_read_bignum(buf + (int)commentptr + iVar5,uVar4 - ((int)commentptr + iVar5),\n                                 (Bignum_conflict *)&key->p), iVar5 < 0))" ( (binary_expression "(iVar5 < 0) ||\n       (iVar5 = ssh1_read_bignum(buf + (int)commentptr + iVar5,uVar4 - ((int)commentptr + iVar5),\n                                 (Bignum_conflict *)&key->p), iVar5 < 0)" (parenthesized_expression "(iVar5 < 0)" ( (binary_expression "iVar5 < 0" identifier < number_literal) )) || (parenthesized_expression "(iVar5 = ssh1_read_bignum(buf + (int)commentptr + iVar5,uVar4 - ((int)commentptr + iVar5),\n                                 (Bignum_conflict *)&key->p), iVar5 < 0)" ( (comma_expression "iVar5 = ssh1_read_bignum(buf + (int)commentptr + iVar5,uVar4 - ((int)commentptr + iVar5),\n                                 (Bignum_conflict *)&key->p), iVar5 < 0" (assignment_expression "iVar5 = ssh1_read_bignum(buf + (int)commentptr + iVar5,uVar4 - ((int)commentptr + iVar5),\n                                 (Bignum_conflict *)&key->p)" identifier = (call_expression "ssh1_read_bignum(buf + (int)commentptr + iVar5,uVar4 - ((int)commentptr + iVar5),\n                                 (Bignum_conflict *)&key->p)" identifier (argument_list "(buf + (int)commentptr + iVar5,uVar4 - ((int)commentptr + iVar5),\n                                 (Bignum_conflict *)&key->p)" ( (binary_expression "buf + (int)commentptr + iVar5" (binary_expression "buf + (int)commentptr" identifier + (cast_expression "(int)commentptr" ( (type_descriptor "int" primitive_type) ) identifier)) + identifier) , (binary_expression "uVar4 - ((int)commentptr + iVar5)" identifier - (parenthesized_expression "((int)commentptr + iVar5)" ( (binary_expression "(int)commentptr + iVar5" (cast_expression "(int)commentptr" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) ))) , (cast_expression "(Bignum_conflict *)&key->p" ( (type_descriptor "Bignum_conflict *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&key->p" & (field_expression "key->p" identifier -> field_identifier))) )))) , (binary_expression "iVar5 < 0" identifier < number_literal)) ))) )) (goto_statement "goto LAB_0006abf8;" goto statement_identifier ;)) (expression_statement "iVar5 = rsa_verify(key);" (assignment_expression "iVar5 = rsa_verify(key)" identifier = (call_expression "rsa_verify(key)" identifier (argument_list "(key)" ( identifier )))) ;) (if_statement "if (iVar5 == 0) {\n      *error = PTR_s_entropy_source_000b23f0 + -0x2f88;\n      freersakey(key);\n      uVar9 = 0;\n    }\n    else {\nLAB_0006ac64:\n      uVar9 = 1;\n    }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n      *error = PTR_s_entropy_source_000b23f0 + -0x2f88;\n      freersakey(key);\n      uVar9 = 0;\n    }" { (expression_statement "*error = PTR_s_entropy_source_000b23f0 + -0x2f88;" (assignment_expression "*error = PTR_s_entropy_source_000b23f0 + -0x2f88" (pointer_expression "*error" * identifier) = (binary_expression "PTR_s_entropy_source_000b23f0 + -0x2f88" identifier + number_literal)) ;) (expression_statement "freersakey(key);" (call_expression "freersakey(key)" identifier (argument_list "(key)" ( identifier ))) ;) (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;) }) (else_clause "else {\nLAB_0006ac64:\n      uVar9 = 1;\n    }" else (compound_statement "{\nLAB_0006ac64:\n      uVar9 = 1;\n    }" { (labeled_statement "LAB_0006ac64:\n      uVar9 = 1;" statement_identifier : (expression_statement "uVar9 = 1;" (assignment_expression "uVar9 = 1" identifier = number_literal) ;)) }))) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "uint FUN_0006a980(undefined4 param_1,int param_2,int param_3,undefined4 *param_4,undefined4 param_5,\n                 undefined4 *param_6)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 uVar7;\n  uint uVar8;\n  undefined1 auStack_4098 [92];\n  undefined1 auStack_403c [16];\n  char local_402c [4];\n  char local_4028 [16380];\n  int local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_000b2f04;\n  puVar1 = PTR_fread_000b2ea8;\n  local_2c = *(int *)PTR___stack_chk_guard_000b2f04;\n  *param_6 = 0;\n  uVar3 = (*(code *)puVar1)(local_402c,1,0x4000,param_1);\n  (*(code *)PTR_fclose_000b2dac)(param_1);\n  if (((int)uVar3 < 0) || (uVar3 == 0x4000)) {\n    uVar8 = 0;\n    *param_6 = PTR_s_entropy_source_000b23f0 + -0x2fc4;\n  }\n  else {\n    *param_6 = PTR_s_entropy_source_000b23f0 + -0x2fb0;\n    if (uVar3 < 2) goto LAB_0006abf8;\n    if (local_402c[0] != '\0') goto LAB_0006abf8;\n    if ((local_402c[1] != '\0') && (local_402c[1] != '\x03')) goto LAB_0006abf8;\n    if ((int)uVar3 < 6) goto LAB_0006abf8;\n    if (((local_402c[2] != '\0' || local_402c[3] != '\0') || local_4028[0] != '\0') ||\n        local_4028[1] != '\0') goto LAB_0006abf8;\n    iVar4 = makekey(local_4028 + 2,uVar3 - 6,param_2,0,1);\n    if (iVar4 < 0) goto LAB_0006abf8;\n    iVar5 = (*(code *)PTR_toint_000b24f4)\n                      ((uint)(byte)local_4028[iVar4 + 2] << 0x18 |\n                       (uint)(byte)local_4028[iVar4 + 3] << 0x10 | (uint)(byte)local_4028[iVar4 + 5]\n                       | (uint)(byte)local_4028[iVar4 + 4] << 8);\n    if (iVar5 < 0) goto LAB_0006abf8;\n    iVar4 = iVar4 + 10;\n    if ((int)(uVar3 - iVar4) < iVar5) goto LAB_0006abf8;\n    iVar6 = (*(code *)PTR_safemalloc_000b2408)(iVar5 + 1,1);\n    if (iVar6 != 0) {\n      iVar6 = (*(code *)PTR_memcpy_000b2f08)(iVar6,local_402c + iVar4,iVar5);\n      *(undefined1 *)(iVar6 + iVar5) = 0;\n    }\n    if (param_4 != (undefined4 *)0x0) {\n      uVar7 = (*(code *)PTR_dupstr_000b2410)(iVar6);\n      *param_4 = uVar7;\n    }\n    if (param_2 == 0) {\n      (*(code *)PTR_safefree_000b23d0)(iVar6);\n      if (param_3 != 0) goto LAB_0006ac64;\n      uVar8 = (uint)(local_402c[1] != '\0');\n      *param_6 = 0;\n    }\n    else {\n      *(int *)(param_2 + 0x20) = iVar6;\n      if (param_3 != 0) goto LAB_0006ac64;\n      param_4 = (undefined4 *)(iVar5 + iVar4);\n      if (local_402c[1] != '\0') {\n        MD5Init(auStack_4098);\n        uVar7 = (*(code *)PTR_strlen_000b2e48)(param_5);\n        MD5Update(auStack_4098,param_5,uVar7);\n        MD5Final(auStack_403c,auStack_4098);\n        des3_decrypt_pubkey(auStack_403c,local_402c + (int)param_4,\n                            (uVar3 - (int)param_4) + 7 & 0xfffffff8);\n        (*(code *)PTR_smemclr_000b2460)(auStack_403c,0x10);\n      }\n      if ((int)(uVar3 - (int)param_4) < 4) goto LAB_0006abf8;\n      if ((local_402c[(int)param_4] == (local_402c + 2)[(int)param_4]) &&\n         ((local_402c + 1)[(int)param_4] == (local_402c + 3)[(int)param_4])) goto LAB_0006ad20;\n      uVar8 = 0xffffffff;\n      *param_6 = PTR_s_entropy_source_000b23f0 + -0x2f9c;\n    }\n  }\n  do {\n    while( true ) {\n      (*(code *)PTR_smemclr_000b2460)(local_402c,0x4000);\n      if (local_2c == *(int *)puVar2) {\n        return uVar8;\n      }\n      (*(code *)PTR___stack_chk_fail_000b2ed8)();\nLAB_0006ad20:\n      param_4 = param_4 + 1;\n      iVar4 = makeprivate(local_402c + (int)param_4,uVar3 - (int)param_4,param_2);\n      if (-1 < iVar4) break;\nLAB_0006abf8:\n      uVar8 = 0;\n    }\n    param_4 = (undefined4 *)((int)param_4 + iVar4);\n    iVar4 = ssh1_read_bignum(local_402c + (int)param_4,uVar3 - (int)param_4,param_2 + 0x1c);\n    if (iVar4 < 0) goto LAB_0006abf8;\n    param_4 = (undefined4 *)((int)param_4 + iVar4);\n    iVar4 = ssh1_read_bignum(local_402c + (int)param_4,uVar3 - (int)param_4,param_2 + 0x18);\n    if ((iVar4 < 0) ||\n       (iVar4 = ssh1_read_bignum(local_402c + (int)param_4 + iVar4,uVar3 - ((int)param_4 + iVar4),\n                                 param_2 + 0x14), iVar4 < 0)) goto LAB_0006abf8;\n    iVar4 = rsa_verify(param_2);\n    if (iVar4 == 0) {\n      *param_6 = PTR_s_entropy_source_000b23f0 + -0x2f88;\n      freersakey(param_2);\n      uVar8 = 0;\n    }\n    else {\nLAB_0006ac64:\n      uVar8 = 1;\n    }\n  } while( true );\n}\n\n" (function_definition "uint FUN_0006a980(undefined4 param_1,int param_2,int param_3,undefined4 *param_4,undefined4 param_5,\n                 undefined4 *param_6)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 uVar7;\n  uint uVar8;\n  undefined1 auStack_4098 [92];\n  undefined1 auStack_403c [16];\n  char local_402c [4];\n  char local_4028 [16380];\n  int local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_000b2f04;\n  puVar1 = PTR_fread_000b2ea8;\n  local_2c = *(int *)PTR___stack_chk_guard_000b2f04;\n  *param_6 = 0;\n  uVar3 = (*(code *)puVar1)(local_402c,1,0x4000,param_1);\n  (*(code *)PTR_fclose_000b2dac)(param_1);\n  if (((int)uVar3 < 0) || (uVar3 == 0x4000)) {\n    uVar8 = 0;\n    *param_6 = PTR_s_entropy_source_000b23f0 + -0x2fc4;\n  }\n  else {\n    *param_6 = PTR_s_entropy_source_000b23f0 + -0x2fb0;\n    if (uVar3 < 2) goto LAB_0006abf8;\n    if (local_402c[0] != '\0') goto LAB_0006abf8;\n    if ((local_402c[1] != '\0') && (local_402c[1] != '\x03')) goto LAB_0006abf8;\n    if ((int)uVar3 < 6) goto LAB_0006abf8;\n    if (((local_402c[2] != '\0' || local_402c[3] != '\0') || local_4028[0] != '\0') ||\n        local_4028[1] != '\0') goto LAB_0006abf8;\n    iVar4 = makekey(local_4028 + 2,uVar3 - 6,param_2,0,1);\n    if (iVar4 < 0) goto LAB_0006abf8;\n    iVar5 = (*(code *)PTR_toint_000b24f4)\n                      ((uint)(byte)local_4028[iVar4 + 2] << 0x18 |\n                       (uint)(byte)local_4028[iVar4 + 3] << 0x10 | (uint)(byte)local_4028[iVar4 + 5]\n                       | (uint)(byte)local_4028[iVar4 + 4] << 8);\n    if (iVar5 < 0) goto LAB_0006abf8;\n    iVar4 = iVar4 + 10;\n    if ((int)(uVar3 - iVar4) < iVar5) goto LAB_0006abf8;\n    iVar6 = (*(code *)PTR_safemalloc_000b2408)(iVar5 + 1,1);\n    if (iVar6 != 0) {\n      iVar6 = (*(code *)PTR_memcpy_000b2f08)(iVar6,local_402c + iVar4,iVar5);\n      *(undefined1 *)(iVar6 + iVar5) = 0;\n    }\n    if (param_4 != (undefined4 *)0x0) {\n      uVar7 = (*(code *)PTR_dupstr_000b2410)(iVar6);\n      *param_4 = uVar7;\n    }\n    if (param_2 == 0) {\n      (*(code *)PTR_safefree_000b23d0)(iVar6);\n      if (param_3 != 0) goto LAB_0006ac64;\n      uVar8 = (uint)(local_402c[1] != '\0');\n      *param_6 = 0;\n    }\n    else {\n      *(int *)(param_2 + 0x20) = iVar6;\n      if (param_3 != 0) goto LAB_0006ac64;\n      param_4 = (undefined4 *)(iVar5 + iVar4);\n      if (local_402c[1] != '\0') {\n        MD5Init(auStack_4098);\n        uVar7 = (*(code *)PTR_strlen_000b2e48)(param_5);\n        MD5Update(auStack_4098,param_5,uVar7);\n        MD5Final(auStack_403c,auStack_4098);\n        des3_decrypt_pubkey(auStack_403c,local_402c + (int)param_4,\n                            (uVar3 - (int)param_4) + 7 & 0xfffffff8);\n        (*(code *)PTR_smemclr_000b2460)(auStack_403c,0x10);\n      }\n      if ((int)(uVar3 - (int)param_4) < 4) goto LAB_0006abf8;\n      if ((local_402c[(int)param_4] == (local_402c + 2)[(int)param_4]) &&\n         ((local_402c + 1)[(int)param_4] == (local_402c + 3)[(int)param_4])) goto LAB_0006ad20;\n      uVar8 = 0xffffffff;\n      *param_6 = PTR_s_entropy_source_000b23f0 + -0x2f9c;\n    }\n  }\n  do {\n    while( true ) {\n      (*(code *)PTR_smemclr_000b2460)(local_402c,0x4000);\n      if (local_2c == *(int *)puVar2) {\n        return uVar8;\n      }\n      (*(code *)PTR___stack_chk_fail_000b2ed8)();\nLAB_0006ad20:\n      param_4 = param_4 + 1;\n      iVar4 = makeprivate(local_402c + (int)param_4,uVar3 - (int)param_4,param_2);\n      if (-1 < iVar4) break;\nLAB_0006abf8:\n      uVar8 = 0;\n    }\n    param_4 = (undefined4 *)((int)param_4 + iVar4);\n    iVar4 = ssh1_read_bignum(local_402c + (int)param_4,uVar3 - (int)param_4,param_2 + 0x1c);\n    if (iVar4 < 0) goto LAB_0006abf8;\n    param_4 = (undefined4 *)((int)param_4 + iVar4);\n    iVar4 = ssh1_read_bignum(local_402c + (int)param_4,uVar3 - (int)param_4,param_2 + 0x18);\n    if ((iVar4 < 0) ||\n       (iVar4 = ssh1_read_bignum(local_402c + (int)param_4 + iVar4,uVar3 - ((int)param_4 + iVar4),\n                                 param_2 + 0x14), iVar4 < 0)) goto LAB_0006abf8;\n    iVar4 = rsa_verify(param_2);\n    if (iVar4 == 0) {\n      *param_6 = PTR_s_entropy_source_000b23f0 + -0x2f88;\n      freersakey(param_2);\n      uVar8 = 0;\n    }\n    else {\nLAB_0006ac64:\n      uVar8 = 1;\n    }\n  } while( true );\n}" type_identifier (function_declarator "FUN_0006a980(undefined4 param_1,int param_2,int param_3,undefined4 *param_4,undefined4 param_5,\n                 undefined4 *param_6)" identifier (parameter_list "(undefined4 param_1,int param_2,int param_3,undefined4 *param_4,undefined4 param_5,\n                 undefined4 *param_6)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "undefined4 *param_6" type_identifier (pointer_declarator "*param_6" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 uVar7;\n  uint uVar8;\n  undefined1 auStack_4098 [92];\n  undefined1 auStack_403c [16];\n  char local_402c [4];\n  char local_4028 [16380];\n  int local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_000b2f04;\n  puVar1 = PTR_fread_000b2ea8;\n  local_2c = *(int *)PTR___stack_chk_guard_000b2f04;\n  *param_6 = 0;\n  uVar3 = (*(code *)puVar1)(local_402c,1,0x4000,param_1);\n  (*(code *)PTR_fclose_000b2dac)(param_1);\n  if (((int)uVar3 < 0) || (uVar3 == 0x4000)) {\n    uVar8 = 0;\n    *param_6 = PTR_s_entropy_source_000b23f0 + -0x2fc4;\n  }\n  else {\n    *param_6 = PTR_s_entropy_source_000b23f0 + -0x2fb0;\n    if (uVar3 < 2) goto LAB_0006abf8;\n    if (local_402c[0] != '\0') goto LAB_0006abf8;\n    if ((local_402c[1] != '\0') && (local_402c[1] != '\x03')) goto LAB_0006abf8;\n    if ((int)uVar3 < 6) goto LAB_0006abf8;\n    if (((local_402c[2] != '\0' || local_402c[3] != '\0') || local_4028[0] != '\0') ||\n        local_4028[1] != '\0') goto LAB_0006abf8;\n    iVar4 = makekey(local_4028 + 2,uVar3 - 6,param_2,0,1);\n    if (iVar4 < 0) goto LAB_0006abf8;\n    iVar5 = (*(code *)PTR_toint_000b24f4)\n                      ((uint)(byte)local_4028[iVar4 + 2] << 0x18 |\n                       (uint)(byte)local_4028[iVar4 + 3] << 0x10 | (uint)(byte)local_4028[iVar4 + 5]\n                       | (uint)(byte)local_4028[iVar4 + 4] << 8);\n    if (iVar5 < 0) goto LAB_0006abf8;\n    iVar4 = iVar4 + 10;\n    if ((int)(uVar3 - iVar4) < iVar5) goto LAB_0006abf8;\n    iVar6 = (*(code *)PTR_safemalloc_000b2408)(iVar5 + 1,1);\n    if (iVar6 != 0) {\n      iVar6 = (*(code *)PTR_memcpy_000b2f08)(iVar6,local_402c + iVar4,iVar5);\n      *(undefined1 *)(iVar6 + iVar5) = 0;\n    }\n    if (param_4 != (undefined4 *)0x0) {\n      uVar7 = (*(code *)PTR_dupstr_000b2410)(iVar6);\n      *param_4 = uVar7;\n    }\n    if (param_2 == 0) {\n      (*(code *)PTR_safefree_000b23d0)(iVar6);\n      if (param_3 != 0) goto LAB_0006ac64;\n      uVar8 = (uint)(local_402c[1] != '\0');\n      *param_6 = 0;\n    }\n    else {\n      *(int *)(param_2 + 0x20) = iVar6;\n      if (param_3 != 0) goto LAB_0006ac64;\n      param_4 = (undefined4 *)(iVar5 + iVar4);\n      if (local_402c[1] != '\0') {\n        MD5Init(auStack_4098);\n        uVar7 = (*(code *)PTR_strlen_000b2e48)(param_5);\n        MD5Update(auStack_4098,param_5,uVar7);\n        MD5Final(auStack_403c,auStack_4098);\n        des3_decrypt_pubkey(auStack_403c,local_402c + (int)param_4,\n                            (uVar3 - (int)param_4) + 7 & 0xfffffff8);\n        (*(code *)PTR_smemclr_000b2460)(auStack_403c,0x10);\n      }\n      if ((int)(uVar3 - (int)param_4) < 4) goto LAB_0006abf8;\n      if ((local_402c[(int)param_4] == (local_402c + 2)[(int)param_4]) &&\n         ((local_402c + 1)[(int)param_4] == (local_402c + 3)[(int)param_4])) goto LAB_0006ad20;\n      uVar8 = 0xffffffff;\n      *param_6 = PTR_s_entropy_source_000b23f0 + -0x2f9c;\n    }\n  }\n  do {\n    while( true ) {\n      (*(code *)PTR_smemclr_000b2460)(local_402c,0x4000);\n      if (local_2c == *(int *)puVar2) {\n        return uVar8;\n      }\n      (*(code *)PTR___stack_chk_fail_000b2ed8)();\nLAB_0006ad20:\n      param_4 = param_4 + 1;\n      iVar4 = makeprivate(local_402c + (int)param_4,uVar3 - (int)param_4,param_2);\n      if (-1 < iVar4) break;\nLAB_0006abf8:\n      uVar8 = 0;\n    }\n    param_4 = (undefined4 *)((int)param_4 + iVar4);\n    iVar4 = ssh1_read_bignum(local_402c + (int)param_4,uVar3 - (int)param_4,param_2 + 0x1c);\n    if (iVar4 < 0) goto LAB_0006abf8;\n    param_4 = (undefined4 *)((int)param_4 + iVar4);\n    iVar4 = ssh1_read_bignum(local_402c + (int)param_4,uVar3 - (int)param_4,param_2 + 0x18);\n    if ((iVar4 < 0) ||\n       (iVar4 = ssh1_read_bignum(local_402c + (int)param_4 + iVar4,uVar3 - ((int)param_4 + iVar4),\n                                 param_2 + 0x14), iVar4 < 0)) goto LAB_0006abf8;\n    iVar4 = rsa_verify(param_2);\n    if (iVar4 == 0) {\n      *param_6 = PTR_s_entropy_source_000b23f0 + -0x2f88;\n      freersakey(param_2);\n      uVar8 = 0;\n    }\n    else {\nLAB_0006ac64:\n      uVar8 = 1;\n    }\n  } while( true );\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "undefined1 auStack_4098 [92];" type_identifier (array_declarator "auStack_4098 [92]" identifier [ number_literal ]) ;) (declaration "undefined1 auStack_403c [16];" type_identifier (array_declarator "auStack_403c [16]" identifier [ number_literal ]) ;) (declaration "char local_402c [4];" primitive_type (array_declarator "local_402c [4]" identifier [ number_literal ]) ;) (declaration "char local_4028 [16380];" primitive_type (array_declarator "local_4028 [16380]" identifier [ number_literal ]) ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "puVar2 = PTR___stack_chk_guard_000b2f04;" (assignment_expression "puVar2 = PTR___stack_chk_guard_000b2f04" identifier = identifier) ;) (expression_statement "puVar1 = PTR_fread_000b2ea8;" (assignment_expression "puVar1 = PTR_fread_000b2ea8" identifier = identifier) ;) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_000b2f04;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_000b2f04" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000b2f04" * (cast_expression "(int *)PTR___stack_chk_guard_000b2f04" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*param_6 = 0;" (assignment_expression "*param_6 = 0" (pointer_expression "*param_6" * identifier) = number_literal) ;) (expression_statement "uVar3 = (*(code *)puVar1)(local_402c,1,0x4000,param_1);" (assignment_expression "uVar3 = (*(code *)puVar1)(local_402c,1,0x4000,param_1)" identifier = (call_expression "(*(code *)puVar1)(local_402c,1,0x4000,param_1)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_402c,1,0x4000,param_1)" ( identifier , number_literal , number_literal , identifier )))) ;) (expression_statement "(*(code *)PTR_fclose_000b2dac)(param_1);" (call_expression "(*(code *)PTR_fclose_000b2dac)(param_1)" (parenthesized_expression "(*(code *)PTR_fclose_000b2dac)" ( (pointer_expression "*(code *)PTR_fclose_000b2dac" * (cast_expression "(code *)PTR_fclose_000b2dac" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1)" ( identifier ))) ;) (if_statement "if (((int)uVar3 < 0) || (uVar3 == 0x4000)) {\n    uVar8 = 0;\n    *param_6 = PTR_s_entropy_source_000b23f0 + -0x2fc4;\n  }\n  else {\n    *param_6 = PTR_s_entropy_source_000b23f0 + -0x2fb0;\n    if (uVar3 < 2) goto LAB_0006abf8;\n    if (local_402c[0] != '\0') goto LAB_0006abf8;\n    if ((local_402c[1] != '\0') && (local_402c[1] != '\x03')) goto LAB_0006abf8;\n    if ((int)uVar3 < 6) goto LAB_0006abf8;\n    if (((local_402c[2] != '\0' || local_402c[3] != '\0') || local_4028[0] != '\0') ||\n        local_4028[1] != '\0') goto LAB_0006abf8;\n    iVar4 = makekey(local_4028 + 2,uVar3 - 6,param_2,0,1);\n    if (iVar4 < 0) goto LAB_0006abf8;\n    iVar5 = (*(code *)PTR_toint_000b24f4)\n                      ((uint)(byte)local_4028[iVar4 + 2] << 0x18 |\n                       (uint)(byte)local_4028[iVar4 + 3] << 0x10 | (uint)(byte)local_4028[iVar4 + 5]\n                       | (uint)(byte)local_4028[iVar4 + 4] << 8);\n    if (iVar5 < 0) goto LAB_0006abf8;\n    iVar4 = iVar4 + 10;\n    if ((int)(uVar3 - iVar4) < iVar5) goto LAB_0006abf8;\n    iVar6 = (*(code *)PTR_safemalloc_000b2408)(iVar5 + 1,1);\n    if (iVar6 != 0) {\n      iVar6 = (*(code *)PTR_memcpy_000b2f08)(iVar6,local_402c + iVar4,iVar5);\n      *(undefined1 *)(iVar6 + iVar5) = 0;\n    }\n    if (param_4 != (undefined4 *)0x0) {\n      uVar7 = (*(code *)PTR_dupstr_000b2410)(iVar6);\n      *param_4 = uVar7;\n    }\n    if (param_2 == 0) {\n      (*(code *)PTR_safefree_000b23d0)(iVar6);\n      if (param_3 != 0) goto LAB_0006ac64;\n      uVar8 = (uint)(local_402c[1] != '\0');\n      *param_6 = 0;\n    }\n    else {\n      *(int *)(param_2 + 0x20) = iVar6;\n      if (param_3 != 0) goto LAB_0006ac64;\n      param_4 = (undefined4 *)(iVar5 + iVar4);\n      if (local_402c[1] != '\0') {\n        MD5Init(auStack_4098);\n        uVar7 = (*(code *)PTR_strlen_000b2e48)(param_5);\n        MD5Update(auStack_4098,param_5,uVar7);\n        MD5Final(auStack_403c,auStack_4098);\n        des3_decrypt_pubkey(auStack_403c,local_402c + (int)param_4,\n                            (uVar3 - (int)param_4) + 7 & 0xfffffff8);\n        (*(code *)PTR_smemclr_000b2460)(auStack_403c,0x10);\n      }\n      if ((int)(uVar3 - (int)param_4) < 4) goto LAB_0006abf8;\n      if ((local_402c[(int)param_4] == (local_402c + 2)[(int)param_4]) &&\n         ((local_402c + 1)[(int)param_4] == (local_402c + 3)[(int)param_4])) goto LAB_0006ad20;\n      uVar8 = 0xffffffff;\n      *param_6 = PTR_s_entropy_source_000b23f0 + -0x2f9c;\n    }\n  }" if (parenthesized_expression "(((int)uVar3 < 0) || (uVar3 == 0x4000))" ( (binary_expression "((int)uVar3 < 0) || (uVar3 == 0x4000)" (parenthesized_expression "((int)uVar3 < 0)" ( (binary_expression "(int)uVar3 < 0" (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) || (parenthesized_expression "(uVar3 == 0x4000)" ( (binary_expression "uVar3 == 0x4000" identifier == number_literal) ))) )) (compound_statement "{\n    uVar8 = 0;\n    *param_6 = PTR_s_entropy_source_000b23f0 + -0x2fc4;\n  }" { (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) (expression_statement "*param_6 = PTR_s_entropy_source_000b23f0 + -0x2fc4;" (assignment_expression "*param_6 = PTR_s_entropy_source_000b23f0 + -0x2fc4" (pointer_expression "*param_6" * identifier) = (binary_expression "PTR_s_entropy_source_000b23f0 + -0x2fc4" identifier + number_literal)) ;) }) (else_clause "else {\n    *param_6 = PTR_s_entropy_source_000b23f0 + -0x2fb0;\n    if (uVar3 < 2) goto LAB_0006abf8;\n    if (local_402c[0] != '\0') goto LAB_0006abf8;\n    if ((local_402c[1] != '\0') && (local_402c[1] != '\x03')) goto LAB_0006abf8;\n    if ((int)uVar3 < 6) goto LAB_0006abf8;\n    if (((local_402c[2] != '\0' || local_402c[3] != '\0') || local_4028[0] != '\0') ||\n        local_4028[1] != '\0') goto LAB_0006abf8;\n    iVar4 = makekey(local_4028 + 2,uVar3 - 6,param_2,0,1);\n    if (iVar4 < 0) goto LAB_0006abf8;\n    iVar5 = (*(code *)PTR_toint_000b24f4)\n                      ((uint)(byte)local_4028[iVar4 + 2] << 0x18 |\n                       (uint)(byte)local_4028[iVar4 + 3] << 0x10 | (uint)(byte)local_4028[iVar4 + 5]\n                       | (uint)(byte)local_4028[iVar4 + 4] << 8);\n    if (iVar5 < 0) goto LAB_0006abf8;\n    iVar4 = iVar4 + 10;\n    if ((int)(uVar3 - iVar4) < iVar5) goto LAB_0006abf8;\n    iVar6 = (*(code *)PTR_safemalloc_000b2408)(iVar5 + 1,1);\n    if (iVar6 != 0) {\n      iVar6 = (*(code *)PTR_memcpy_000b2f08)(iVar6,local_402c + iVar4,iVar5);\n      *(undefined1 *)(iVar6 + iVar5) = 0;\n    }\n    if (param_4 != (undefined4 *)0x0) {\n      uVar7 = (*(code *)PTR_dupstr_000b2410)(iVar6);\n      *param_4 = uVar7;\n    }\n    if (param_2 == 0) {\n      (*(code *)PTR_safefree_000b23d0)(iVar6);\n      if (param_3 != 0) goto LAB_0006ac64;\n      uVar8 = (uint)(local_402c[1] != '\0');\n      *param_6 = 0;\n    }\n    else {\n      *(int *)(param_2 + 0x20) = iVar6;\n      if (param_3 != 0) goto LAB_0006ac64;\n      param_4 = (undefined4 *)(iVar5 + iVar4);\n      if (local_402c[1] != '\0') {\n        MD5Init(auStack_4098);\n        uVar7 = (*(code *)PTR_strlen_000b2e48)(param_5);\n        MD5Update(auStack_4098,param_5,uVar7);\n        MD5Final(auStack_403c,auStack_4098);\n        des3_decrypt_pubkey(auStack_403c,local_402c + (int)param_4,\n                            (uVar3 - (int)param_4) + 7 & 0xfffffff8);\n        (*(code *)PTR_smemclr_000b2460)(auStack_403c,0x10);\n      }\n      if ((int)(uVar3 - (int)param_4) < 4) goto LAB_0006abf8;\n      if ((local_402c[(int)param_4] == (local_402c + 2)[(int)param_4]) &&\n         ((local_402c + 1)[(int)param_4] == (local_402c + 3)[(int)param_4])) goto LAB_0006ad20;\n      uVar8 = 0xffffffff;\n      *param_6 = PTR_s_entropy_source_000b23f0 + -0x2f9c;\n    }\n  }" else (compound_statement "{\n    *param_6 = PTR_s_entropy_source_000b23f0 + -0x2fb0;\n    if (uVar3 < 2) goto LAB_0006abf8;\n    if (local_402c[0] != '\0') goto LAB_0006abf8;\n    if ((local_402c[1] != '\0') && (local_402c[1] != '\x03')) goto LAB_0006abf8;\n    if ((int)uVar3 < 6) goto LAB_0006abf8;\n    if (((local_402c[2] != '\0' || local_402c[3] != '\0') || local_4028[0] != '\0') ||\n        local_4028[1] != '\0') goto LAB_0006abf8;\n    iVar4 = makekey(local_4028 + 2,uVar3 - 6,param_2,0,1);\n    if (iVar4 < 0) goto LAB_0006abf8;\n    iVar5 = (*(code *)PTR_toint_000b24f4)\n                      ((uint)(byte)local_4028[iVar4 + 2] << 0x18 |\n                       (uint)(byte)local_4028[iVar4 + 3] << 0x10 | (uint)(byte)local_4028[iVar4 + 5]\n                       | (uint)(byte)local_4028[iVar4 + 4] << 8);\n    if (iVar5 < 0) goto LAB_0006abf8;\n    iVar4 = iVar4 + 10;\n    if ((int)(uVar3 - iVar4) < iVar5) goto LAB_0006abf8;\n    iVar6 = (*(code *)PTR_safemalloc_000b2408)(iVar5 + 1,1);\n    if (iVar6 != 0) {\n      iVar6 = (*(code *)PTR_memcpy_000b2f08)(iVar6,local_402c + iVar4,iVar5);\n      *(undefined1 *)(iVar6 + iVar5) = 0;\n    }\n    if (param_4 != (undefined4 *)0x0) {\n      uVar7 = (*(code *)PTR_dupstr_000b2410)(iVar6);\n      *param_4 = uVar7;\n    }\n    if (param_2 == 0) {\n      (*(code *)PTR_safefree_000b23d0)(iVar6);\n      if (param_3 != 0) goto LAB_0006ac64;\n      uVar8 = (uint)(local_402c[1] != '\0');\n      *param_6 = 0;\n    }\n    else {\n      *(int *)(param_2 + 0x20) = iVar6;\n      if (param_3 != 0) goto LAB_0006ac64;\n      param_4 = (undefined4 *)(iVar5 + iVar4);\n      if (local_402c[1] != '\0') {\n        MD5Init(auStack_4098);\n        uVar7 = (*(code *)PTR_strlen_000b2e48)(param_5);\n        MD5Update(auStack_4098,param_5,uVar7);\n        MD5Final(auStack_403c,auStack_4098);\n        des3_decrypt_pubkey(auStack_403c,local_402c + (int)param_4,\n                            (uVar3 - (int)param_4) + 7 & 0xfffffff8);\n        (*(code *)PTR_smemclr_000b2460)(auStack_403c,0x10);\n      }\n      if ((int)(uVar3 - (int)param_4) < 4) goto LAB_0006abf8;\n      if ((local_402c[(int)param_4] == (local_402c + 2)[(int)param_4]) &&\n         ((local_402c + 1)[(int)param_4] == (local_402c + 3)[(int)param_4])) goto LAB_0006ad20;\n      uVar8 = 0xffffffff;\n      *param_6 = PTR_s_entropy_source_000b23f0 + -0x2f9c;\n    }\n  }" { (expression_statement "*param_6 = PTR_s_entropy_source_000b23f0 + -0x2fb0;" (assignment_expression "*param_6 = PTR_s_entropy_source_000b23f0 + -0x2fb0" (pointer_expression "*param_6" * identifier) = (binary_expression "PTR_s_entropy_source_000b23f0 + -0x2fb0" identifier + number_literal)) ;) (if_statement "if (uVar3 < 2) goto LAB_0006abf8;" if (parenthesized_expression "(uVar3 < 2)" ( (binary_expression "uVar3 < 2" identifier < number_literal) )) (goto_statement "goto LAB_0006abf8;" goto statement_identifier ;)) (if_statement "if (local_402c[0] != '\0') goto LAB_0006abf8;" if (parenthesized_expression "(local_402c[0] != '\0')" ( (binary_expression "local_402c[0] != '\0'" (subscript_expression "local_402c[0]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) (goto_statement "goto LAB_0006abf8;" goto statement_identifier ;)) (if_statement "if ((local_402c[1] != '\0') && (local_402c[1] != '\x03')) goto LAB_0006abf8;" if (parenthesized_expression "((local_402c[1] != '\0') && (local_402c[1] != '\x03'))" ( (binary_expression "(local_402c[1] != '\0') && (local_402c[1] != '\x03')" (parenthesized_expression "(local_402c[1] != '\0')" ( (binary_expression "local_402c[1] != '\0'" (subscript_expression "local_402c[1]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(local_402c[1] != '\x03')" ( (binary_expression "local_402c[1] != '\x03'" (subscript_expression "local_402c[1]" identifier [ number_literal ]) != (char_literal "'\x03'" ' escape_sequence ')) ))) )) (goto_statement "goto LAB_0006abf8;" goto statement_identifier ;)) (if_statement "if ((int)uVar3 < 6) goto LAB_0006abf8;" if (parenthesized_expression "((int)uVar3 < 6)" ( (binary_expression "(int)uVar3 < 6" (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (goto_statement "goto LAB_0006abf8;" goto statement_identifier ;)) (if_statement "if (((local_402c[2] != '\0' || local_402c[3] != '\0') || local_4028[0] != '\0') ||\n        local_4028[1] != '\0') goto LAB_0006abf8;" if (parenthesized_expression "(((local_402c[2] != '\0' || local_402c[3] != '\0') || local_4028[0] != '\0') ||\n        local_4028[1] != '\0')" ( (binary_expression "((local_402c[2] != '\0' || local_402c[3] != '\0') || local_4028[0] != '\0') ||\n        local_4028[1] != '\0'" (parenthesized_expression "((local_402c[2] != '\0' || local_402c[3] != '\0') || local_4028[0] != '\0')" ( (binary_expression "(local_402c[2] != '\0' || local_402c[3] != '\0') || local_4028[0] != '\0'" (parenthesized_expression "(local_402c[2] != '\0' || local_402c[3] != '\0')" ( (binary_expression "local_402c[2] != '\0' || local_402c[3] != '\0'" (binary_expression "local_402c[2] != '\0'" (subscript_expression "local_402c[2]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) || (binary_expression "local_402c[3] != '\0'" (subscript_expression "local_402c[3]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence '))) )) || (binary_expression "local_4028[0] != '\0'" (subscript_expression "local_4028[0]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence '))) )) || (binary_expression "local_4028[1] != '\0'" (subscript_expression "local_4028[1]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence '))) )) (goto_statement "goto LAB_0006abf8;" goto statement_identifier ;)) (expression_statement "iVar4 = makekey(local_4028 + 2,uVar3 - 6,param_2,0,1);" (assignment_expression "iVar4 = makekey(local_4028 + 2,uVar3 - 6,param_2,0,1)" identifier = (call_expression "makekey(local_4028 + 2,uVar3 - 6,param_2,0,1)" identifier (argument_list "(local_4028 + 2,uVar3 - 6,param_2,0,1)" ( (binary_expression "local_4028 + 2" identifier + number_literal) , (binary_expression "uVar3 - 6" identifier - number_literal) , identifier , number_literal , number_literal )))) ;) (if_statement "if (iVar4 < 0) goto LAB_0006abf8;" if (parenthesized_expression "(iVar4 < 0)" ( (binary_expression "iVar4 < 0" identifier < number_literal) )) (goto_statement "goto LAB_0006abf8;" goto statement_identifier ;)) (expression_statement "iVar5 = (*(code *)PTR_toint_000b24f4)\n                      ((uint)(byte)local_4028[iVar4 + 2] << 0x18 |\n                       (uint)(byte)local_4028[iVar4 + 3] << 0x10 | (uint)(byte)local_4028[iVar4 + 5]\n                       | (uint)(byte)local_4028[iVar4 + 4] << 8);" (assignment_expression "iVar5 = (*(code *)PTR_toint_000b24f4)\n                      ((uint)(byte)local_4028[iVar4 + 2] << 0x18 |\n                       (uint)(byte)local_4028[iVar4 + 3] << 0x10 | (uint)(byte)local_4028[iVar4 + 5]\n                       | (uint)(byte)local_4028[iVar4 + 4] << 8)" identifier = (call_expression "(*(code *)PTR_toint_000b24f4)\n                      ((uint)(byte)local_4028[iVar4 + 2] << 0x18 |\n                       (uint)(byte)local_4028[iVar4 + 3] << 0x10 | (uint)(byte)local_4028[iVar4 + 5]\n                       | (uint)(byte)local_4028[iVar4 + 4] << 8)" (parenthesized_expression "(*(code *)PTR_toint_000b24f4)" ( (pointer_expression "*(code *)PTR_toint_000b24f4" * (cast_expression "(code *)PTR_toint_000b24f4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "((uint)(byte)local_4028[iVar4 + 2] << 0x18 |\n                       (uint)(byte)local_4028[iVar4 + 3] << 0x10 | (uint)(byte)local_4028[iVar4 + 5]\n                       | (uint)(byte)local_4028[iVar4 + 4] << 8)" ( (binary_expression "(uint)(byte)local_4028[iVar4 + 2] << 0x18 |\n                       (uint)(byte)local_4028[iVar4 + 3] << 0x10 | (uint)(byte)local_4028[iVar4 + 5]\n                       | (uint)(byte)local_4028[iVar4 + 4] << 8" (binary_expression "(uint)(byte)local_4028[iVar4 + 2] << 0x18 |\n                       (uint)(byte)local_4028[iVar4 + 3] << 0x10 | (uint)(byte)local_4028[iVar4 + 5]" (binary_expression "(uint)(byte)local_4028[iVar4 + 2] << 0x18 |\n                       (uint)(byte)local_4028[iVar4 + 3] << 0x10" (binary_expression "(uint)(byte)local_4028[iVar4 + 2] << 0x18" (cast_expression "(uint)(byte)local_4028[iVar4 + 2]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)local_4028[iVar4 + 2]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "local_4028[iVar4 + 2]" identifier [ (binary_expression "iVar4 + 2" identifier + number_literal) ]))) << number_literal) | (binary_expression "(uint)(byte)local_4028[iVar4 + 3] << 0x10" (cast_expression "(uint)(byte)local_4028[iVar4 + 3]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)local_4028[iVar4 + 3]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "local_4028[iVar4 + 3]" identifier [ (binary_expression "iVar4 + 3" identifier + number_literal) ]))) << number_literal)) | (cast_expression "(uint)(byte)local_4028[iVar4 + 5]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)local_4028[iVar4 + 5]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "local_4028[iVar4 + 5]" identifier [ (binary_expression "iVar4 + 5" identifier + number_literal) ])))) | (binary_expression "(uint)(byte)local_4028[iVar4 + 4] << 8" (cast_expression "(uint)(byte)local_4028[iVar4 + 4]" ( (type_descriptor "uint" type_identifier) ) (cast_expression "(byte)local_4028[iVar4 + 4]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "local_4028[iVar4 + 4]" identifier [ (binary_expression "iVar4 + 4" identifier + number_literal) ]))) << number_literal)) )))) ;) (if_statement "if (iVar5 < 0) goto LAB_0006abf8;" if (parenthesized_expression "(iVar5 < 0)" ( (binary_expression "iVar5 < 0" identifier < number_literal) )) (goto_statement "goto LAB_0006abf8;" goto statement_identifier ;)) (expression_statement "iVar4 = iVar4 + 10;" (assignment_expression "iVar4 = iVar4 + 10" identifier = (binary_expression "iVar4 + 10" identifier + number_literal)) ;) (if_statement "if ((int)(uVar3 - iVar4) < iVar5) goto LAB_0006abf8;" if (parenthesized_expression "((int)(uVar3 - iVar4) < iVar5)" ( (binary_expression "(int)(uVar3 - iVar4) < iVar5" (cast_expression "(int)(uVar3 - iVar4)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar3 - iVar4)" ( (binary_expression "uVar3 - iVar4" identifier - identifier) ))) < identifier) )) (goto_statement "goto LAB_0006abf8;" goto statement_identifier ;)) (expression_statement "iVar6 = (*(code *)PTR_safemalloc_000b2408)(iVar5 + 1,1);" (assignment_expression "iVar6 = (*(code *)PTR_safemalloc_000b2408)(iVar5 + 1,1)" identifier = (call_expression "(*(code *)PTR_safemalloc_000b2408)(iVar5 + 1,1)" (parenthesized_expression "(*(code *)PTR_safemalloc_000b2408)" ( (pointer_expression "*(code *)PTR_safemalloc_000b2408" * (cast_expression "(code *)PTR_safemalloc_000b2408" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar5 + 1,1)" ( (binary_expression "iVar5 + 1" identifier + number_literal) , number_literal )))) ;) (if_statement "if (iVar6 != 0) {\n      iVar6 = (*(code *)PTR_memcpy_000b2f08)(iVar6,local_402c + iVar4,iVar5);\n      *(undefined1 *)(iVar6 + iVar5) = 0;\n    }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar6 = (*(code *)PTR_memcpy_000b2f08)(iVar6,local_402c + iVar4,iVar5);\n      *(undefined1 *)(iVar6 + iVar5) = 0;\n    }" { (expression_statement "iVar6 = (*(code *)PTR_memcpy_000b2f08)(iVar6,local_402c + iVar4,iVar5);" (assignment_expression "iVar6 = (*(code *)PTR_memcpy_000b2f08)(iVar6,local_402c + iVar4,iVar5)" identifier = (call_expression "(*(code *)PTR_memcpy_000b2f08)(iVar6,local_402c + iVar4,iVar5)" (parenthesized_expression "(*(code *)PTR_memcpy_000b2f08)" ( (pointer_expression "*(code *)PTR_memcpy_000b2f08" * (cast_expression "(code *)PTR_memcpy_000b2f08" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar6,local_402c + iVar4,iVar5)" ( identifier , (binary_expression "local_402c + iVar4" identifier + identifier) , identifier )))) ;) (expression_statement "*(undefined1 *)(iVar6 + iVar5) = 0;" (assignment_expression "*(undefined1 *)(iVar6 + iVar5) = 0" (pointer_expression "*(undefined1 *)(iVar6 + iVar5)" * (cast_expression "(undefined1 *)(iVar6 + iVar5)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + iVar5)" ( (binary_expression "iVar6 + iVar5" identifier + identifier) )))) = number_literal) ;) })) (if_statement "if (param_4 != (undefined4 *)0x0) {\n      uVar7 = (*(code *)PTR_dupstr_000b2410)(iVar6);\n      *param_4 = uVar7;\n    }" if (parenthesized_expression "(param_4 != (undefined4 *)0x0)" ( (binary_expression "param_4 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar7 = (*(code *)PTR_dupstr_000b2410)(iVar6);\n      *param_4 = uVar7;\n    }" { (expression_statement "uVar7 = (*(code *)PTR_dupstr_000b2410)(iVar6);" (assignment_expression "uVar7 = (*(code *)PTR_dupstr_000b2410)(iVar6)" identifier = (call_expression "(*(code *)PTR_dupstr_000b2410)(iVar6)" (parenthesized_expression "(*(code *)PTR_dupstr_000b2410)" ( (pointer_expression "*(code *)PTR_dupstr_000b2410" * (cast_expression "(code *)PTR_dupstr_000b2410" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar6)" ( identifier )))) ;) (expression_statement "*param_4 = uVar7;" (assignment_expression "*param_4 = uVar7" (pointer_expression "*param_4" * identifier) = identifier) ;) })) (if_statement "if (param_2 == 0) {\n      (*(code *)PTR_safefree_000b23d0)(iVar6);\n      if (param_3 != 0) goto LAB_0006ac64;\n      uVar8 = (uint)(local_402c[1] != '\0');\n      *param_6 = 0;\n    }\n    else {\n      *(int *)(param_2 + 0x20) = iVar6;\n      if (param_3 != 0) goto LAB_0006ac64;\n      param_4 = (undefined4 *)(iVar5 + iVar4);\n      if (local_402c[1] != '\0') {\n        MD5Init(auStack_4098);\n        uVar7 = (*(code *)PTR_strlen_000b2e48)(param_5);\n        MD5Update(auStack_4098,param_5,uVar7);\n        MD5Final(auStack_403c,auStack_4098);\n        des3_decrypt_pubkey(auStack_403c,local_402c + (int)param_4,\n                            (uVar3 - (int)param_4) + 7 & 0xfffffff8);\n        (*(code *)PTR_smemclr_000b2460)(auStack_403c,0x10);\n      }\n      if ((int)(uVar3 - (int)param_4) < 4) goto LAB_0006abf8;\n      if ((local_402c[(int)param_4] == (local_402c + 2)[(int)param_4]) &&\n         ((local_402c + 1)[(int)param_4] == (local_402c + 3)[(int)param_4])) goto LAB_0006ad20;\n      uVar8 = 0xffffffff;\n      *param_6 = PTR_s_entropy_source_000b23f0 + -0x2f9c;\n    }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n      (*(code *)PTR_safefree_000b23d0)(iVar6);\n      if (param_3 != 0) goto LAB_0006ac64;\n      uVar8 = (uint)(local_402c[1] != '\0');\n      *param_6 = 0;\n    }" { (expression_statement "(*(code *)PTR_safefree_000b23d0)(iVar6);" (call_expression "(*(code *)PTR_safefree_000b23d0)(iVar6)" (parenthesized_expression "(*(code *)PTR_safefree_000b23d0)" ( (pointer_expression "*(code *)PTR_safefree_000b23d0" * (cast_expression "(code *)PTR_safefree_000b23d0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar6)" ( identifier ))) ;) (if_statement "if (param_3 != 0) goto LAB_0006ac64;" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0006ac64;" goto statement_identifier ;)) (expression_statement "uVar8 = (uint)(local_402c[1] != '\0');" (assignment_expression "uVar8 = (uint)(local_402c[1] != '\0')" identifier = (call_expression "(uint)(local_402c[1] != '\0')" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(local_402c[1] != '\0')" ( (binary_expression "local_402c[1] != '\0'" (subscript_expression "local_402c[1]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )))) ;) (expression_statement "*param_6 = 0;" (assignment_expression "*param_6 = 0" (pointer_expression "*param_6" * identifier) = number_literal) ;) }) (else_clause "else {\n      *(int *)(param_2 + 0x20) = iVar6;\n      if (param_3 != 0) goto LAB_0006ac64;\n      param_4 = (undefined4 *)(iVar5 + iVar4);\n      if (local_402c[1] != '\0') {\n        MD5Init(auStack_4098);\n        uVar7 = (*(code *)PTR_strlen_000b2e48)(param_5);\n        MD5Update(auStack_4098,param_5,uVar7);\n        MD5Final(auStack_403c,auStack_4098);\n        des3_decrypt_pubkey(auStack_403c,local_402c + (int)param_4,\n                            (uVar3 - (int)param_4) + 7 & 0xfffffff8);\n        (*(code *)PTR_smemclr_000b2460)(auStack_403c,0x10);\n      }\n      if ((int)(uVar3 - (int)param_4) < 4) goto LAB_0006abf8;\n      if ((local_402c[(int)param_4] == (local_402c + 2)[(int)param_4]) &&\n         ((local_402c + 1)[(int)param_4] == (local_402c + 3)[(int)param_4])) goto LAB_0006ad20;\n      uVar8 = 0xffffffff;\n      *param_6 = PTR_s_entropy_source_000b23f0 + -0x2f9c;\n    }" else (compound_statement "{\n      *(int *)(param_2 + 0x20) = iVar6;\n      if (param_3 != 0) goto LAB_0006ac64;\n      param_4 = (undefined4 *)(iVar5 + iVar4);\n      if (local_402c[1] != '\0') {\n        MD5Init(auStack_4098);\n        uVar7 = (*(code *)PTR_strlen_000b2e48)(param_5);\n        MD5Update(auStack_4098,param_5,uVar7);\n        MD5Final(auStack_403c,auStack_4098);\n        des3_decrypt_pubkey(auStack_403c,local_402c + (int)param_4,\n                            (uVar3 - (int)param_4) + 7 & 0xfffffff8);\n        (*(code *)PTR_smemclr_000b2460)(auStack_403c,0x10);\n      }\n      if ((int)(uVar3 - (int)param_4) < 4) goto LAB_0006abf8;\n      if ((local_402c[(int)param_4] == (local_402c + 2)[(int)param_4]) &&\n         ((local_402c + 1)[(int)param_4] == (local_402c + 3)[(int)param_4])) goto LAB_0006ad20;\n      uVar8 = 0xffffffff;\n      *param_6 = PTR_s_entropy_source_000b23f0 + -0x2f9c;\n    }" { (expression_statement "*(int *)(param_2 + 0x20) = iVar6;" (assignment_expression "*(int *)(param_2 + 0x20) = iVar6" (pointer_expression "*(int *)(param_2 + 0x20)" * (cast_expression "(int *)(param_2 + 0x20)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x20)" ( (binary_expression "param_2 + 0x20" identifier + number_literal) )))) = identifier) ;) (if_statement "if (param_3 != 0) goto LAB_0006ac64;" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0006ac64;" goto statement_identifier ;)) (expression_statement "param_4 = (undefined4 *)(iVar5 + iVar4);" (assignment_expression "param_4 = (undefined4 *)(iVar5 + iVar4)" identifier = (cast_expression "(undefined4 *)(iVar5 + iVar4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + iVar4)" ( (binary_expression "iVar5 + iVar4" identifier + identifier) )))) ;) (if_statement "if (local_402c[1] != '\0') {\n        MD5Init(auStack_4098);\n        uVar7 = (*(code *)PTR_strlen_000b2e48)(param_5);\n        MD5Update(auStack_4098,param_5,uVar7);\n        MD5Final(auStack_403c,auStack_4098);\n        des3_decrypt_pubkey(auStack_403c,local_402c + (int)param_4,\n                            (uVar3 - (int)param_4) + 7 & 0xfffffff8);\n        (*(code *)PTR_smemclr_000b2460)(auStack_403c,0x10);\n      }" if (parenthesized_expression "(local_402c[1] != '\0')" ( (binary_expression "local_402c[1] != '\0'" (subscript_expression "local_402c[1]" identifier [ number_literal ]) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        MD5Init(auStack_4098);\n        uVar7 = (*(code *)PTR_strlen_000b2e48)(param_5);\n        MD5Update(auStack_4098,param_5,uVar7);\n        MD5Final(auStack_403c,auStack_4098);\n        des3_decrypt_pubkey(auStack_403c,local_402c + (int)param_4,\n                            (uVar3 - (int)param_4) + 7 & 0xfffffff8);\n        (*(code *)PTR_smemclr_000b2460)(auStack_403c,0x10);\n      }" { (expression_statement "MD5Init(auStack_4098);" (call_expression "MD5Init(auStack_4098)" identifier (argument_list "(auStack_4098)" ( identifier ))) ;) (expression_statement "uVar7 = (*(code *)PTR_strlen_000b2e48)(param_5);" (assignment_expression "uVar7 = (*(code *)PTR_strlen_000b2e48)(param_5)" identifier = (call_expression "(*(code *)PTR_strlen_000b2e48)(param_5)" (parenthesized_expression "(*(code *)PTR_strlen_000b2e48)" ( (pointer_expression "*(code *)PTR_strlen_000b2e48" * (cast_expression "(code *)PTR_strlen_000b2e48" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_5)" ( identifier )))) ;) (expression_statement "MD5Update(auStack_4098,param_5,uVar7);" (call_expression "MD5Update(auStack_4098,param_5,uVar7)" identifier (argument_list "(auStack_4098,param_5,uVar7)" ( identifier , identifier , identifier ))) ;) (expression_statement "MD5Final(auStack_403c,auStack_4098);" (call_expression "MD5Final(auStack_403c,auStack_4098)" identifier (argument_list "(auStack_403c,auStack_4098)" ( identifier , identifier ))) ;) (expression_statement "des3_decrypt_pubkey(auStack_403c,local_402c + (int)param_4,\n                            (uVar3 - (int)param_4) + 7 & 0xfffffff8);" (call_expression "des3_decrypt_pubkey(auStack_403c,local_402c + (int)param_4,\n                            (uVar3 - (int)param_4) + 7 & 0xfffffff8)" identifier (argument_list "(auStack_403c,local_402c + (int)param_4,\n                            (uVar3 - (int)param_4) + 7 & 0xfffffff8)" ( identifier , (binary_expression "local_402c + (int)param_4" identifier + (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier)) , (binary_expression "(uVar3 - (int)param_4) + 7 & 0xfffffff8" (binary_expression "(uVar3 - (int)param_4) + 7" (parenthesized_expression "(uVar3 - (int)param_4)" ( (binary_expression "uVar3 - (int)param_4" identifier - (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier)) )) + number_literal) & number_literal) ))) ;) (expression_statement "(*(code *)PTR_smemclr_000b2460)(auStack_403c,0x10);" (call_expression "(*(code *)PTR_smemclr_000b2460)(auStack_403c,0x10)" (parenthesized_expression "(*(code *)PTR_smemclr_000b2460)" ( (pointer_expression "*(code *)PTR_smemclr_000b2460" * (cast_expression "(code *)PTR_smemclr_000b2460" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(auStack_403c,0x10)" ( identifier , number_literal ))) ;) })) (if_statement "if ((int)(uVar3 - (int)param_4) < 4) goto LAB_0006abf8;" if (parenthesized_expression "((int)(uVar3 - (int)param_4) < 4)" ( (binary_expression "(int)(uVar3 - (int)param_4) < 4" (cast_expression "(int)(uVar3 - (int)param_4)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar3 - (int)param_4)" ( (binary_expression "uVar3 - (int)param_4" identifier - (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier)) ))) < number_literal) )) (goto_statement "goto LAB_0006abf8;" goto statement_identifier ;)) (if_statement "if ((local_402c[(int)param_4] == (local_402c + 2)[(int)param_4]) &&\n         ((local_402c + 1)[(int)param_4] == (local_402c + 3)[(int)param_4])) goto LAB_0006ad20;" if (parenthesized_expression "((local_402c[(int)param_4] == (local_402c + 2)[(int)param_4]) &&\n         ((local_402c + 1)[(int)param_4] == (local_402c + 3)[(int)param_4]))" ( (binary_expression "(local_402c[(int)param_4] == (local_402c + 2)[(int)param_4]) &&\n         ((local_402c + 1)[(int)param_4] == (local_402c + 3)[(int)param_4])" (parenthesized_expression "(local_402c[(int)param_4] == (local_402c + 2)[(int)param_4])" ( (binary_expression "local_402c[(int)param_4] == (local_402c + 2)[(int)param_4]" (subscript_expression "local_402c[(int)param_4]" identifier [ (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) ]) == (subscript_expression "(local_402c + 2)[(int)param_4]" (parenthesized_expression "(local_402c + 2)" ( (binary_expression "local_402c + 2" identifier + number_literal) )) [ (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) ])) )) && (parenthesized_expression "((local_402c + 1)[(int)param_4] == (local_402c + 3)[(int)param_4])" ( (binary_expression "(local_402c + 1)[(int)param_4] == (local_402c + 3)[(int)param_4]" (subscript_expression "(local_402c + 1)[(int)param_4]" (parenthesized_expression "(local_402c + 1)" ( (binary_expression "local_402c + 1" identifier + number_literal) )) [ (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) ]) == (subscript_expression "(local_402c + 3)[(int)param_4]" (parenthesized_expression "(local_402c + 3)" ( (binary_expression "local_402c + 3" identifier + number_literal) )) [ (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) ])) ))) )) (goto_statement "goto LAB_0006ad20;" goto statement_identifier ;)) (expression_statement "uVar8 = 0xffffffff;" (assignment_expression "uVar8 = 0xffffffff" identifier = number_literal) ;) (expression_statement "*param_6 = PTR_s_entropy_source_000b23f0 + -0x2f9c;" (assignment_expression "*param_6 = PTR_s_entropy_source_000b23f0 + -0x2f9c" (pointer_expression "*param_6" * identifier) = (binary_expression "PTR_s_entropy_source_000b23f0 + -0x2f9c" identifier + number_literal)) ;) }))) }))) (do_statement "do {\n    while( true ) {\n      (*(code *)PTR_smemclr_000b2460)(local_402c,0x4000);\n      if (local_2c == *(int *)puVar2) {\n        return uVar8;\n      }\n      (*(code *)PTR___stack_chk_fail_000b2ed8)();\nLAB_0006ad20:\n      param_4 = param_4 + 1;\n      iVar4 = makeprivate(local_402c + (int)param_4,uVar3 - (int)param_4,param_2);\n      if (-1 < iVar4) break;\nLAB_0006abf8:\n      uVar8 = 0;\n    }\n    param_4 = (undefined4 *)((int)param_4 + iVar4);\n    iVar4 = ssh1_read_bignum(local_402c + (int)param_4,uVar3 - (int)param_4,param_2 + 0x1c);\n    if (iVar4 < 0) goto LAB_0006abf8;\n    param_4 = (undefined4 *)((int)param_4 + iVar4);\n    iVar4 = ssh1_read_bignum(local_402c + (int)param_4,uVar3 - (int)param_4,param_2 + 0x18);\n    if ((iVar4 < 0) ||\n       (iVar4 = ssh1_read_bignum(local_402c + (int)param_4 + iVar4,uVar3 - ((int)param_4 + iVar4),\n                                 param_2 + 0x14), iVar4 < 0)) goto LAB_0006abf8;\n    iVar4 = rsa_verify(param_2);\n    if (iVar4 == 0) {\n      *param_6 = PTR_s_entropy_source_000b23f0 + -0x2f88;\n      freersakey(param_2);\n      uVar8 = 0;\n    }\n    else {\nLAB_0006ac64:\n      uVar8 = 1;\n    }\n  } while( true );" do (compound_statement "{\n    while( true ) {\n      (*(code *)PTR_smemclr_000b2460)(local_402c,0x4000);\n      if (local_2c == *(int *)puVar2) {\n        return uVar8;\n      }\n      (*(code *)PTR___stack_chk_fail_000b2ed8)();\nLAB_0006ad20:\n      param_4 = param_4 + 1;\n      iVar4 = makeprivate(local_402c + (int)param_4,uVar3 - (int)param_4,param_2);\n      if (-1 < iVar4) break;\nLAB_0006abf8:\n      uVar8 = 0;\n    }\n    param_4 = (undefined4 *)((int)param_4 + iVar4);\n    iVar4 = ssh1_read_bignum(local_402c + (int)param_4,uVar3 - (int)param_4,param_2 + 0x1c);\n    if (iVar4 < 0) goto LAB_0006abf8;\n    param_4 = (undefined4 *)((int)param_4 + iVar4);\n    iVar4 = ssh1_read_bignum(local_402c + (int)param_4,uVar3 - (int)param_4,param_2 + 0x18);\n    if ((iVar4 < 0) ||\n       (iVar4 = ssh1_read_bignum(local_402c + (int)param_4 + iVar4,uVar3 - ((int)param_4 + iVar4),\n                                 param_2 + 0x14), iVar4 < 0)) goto LAB_0006abf8;\n    iVar4 = rsa_verify(param_2);\n    if (iVar4 == 0) {\n      *param_6 = PTR_s_entropy_source_000b23f0 + -0x2f88;\n      freersakey(param_2);\n      uVar8 = 0;\n    }\n    else {\nLAB_0006ac64:\n      uVar8 = 1;\n    }\n  }" { (while_statement "while( true ) {\n      (*(code *)PTR_smemclr_000b2460)(local_402c,0x4000);\n      if (local_2c == *(int *)puVar2) {\n        return uVar8;\n      }\n      (*(code *)PTR___stack_chk_fail_000b2ed8)();\nLAB_0006ad20:\n      param_4 = param_4 + 1;\n      iVar4 = makeprivate(local_402c + (int)param_4,uVar3 - (int)param_4,param_2);\n      if (-1 < iVar4) break;\nLAB_0006abf8:\n      uVar8 = 0;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      (*(code *)PTR_smemclr_000b2460)(local_402c,0x4000);\n      if (local_2c == *(int *)puVar2) {\n        return uVar8;\n      }\n      (*(code *)PTR___stack_chk_fail_000b2ed8)();\nLAB_0006ad20:\n      param_4 = param_4 + 1;\n      iVar4 = makeprivate(local_402c + (int)param_4,uVar3 - (int)param_4,param_2);\n      if (-1 < iVar4) break;\nLAB_0006abf8:\n      uVar8 = 0;\n    }" { (expression_statement "(*(code *)PTR_smemclr_000b2460)(local_402c,0x4000);" (call_expression "(*(code *)PTR_smemclr_000b2460)(local_402c,0x4000)" (parenthesized_expression "(*(code *)PTR_smemclr_000b2460)" ( (pointer_expression "*(code *)PTR_smemclr_000b2460" * (cast_expression "(code *)PTR_smemclr_000b2460" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(local_402c,0x4000)" ( identifier , number_literal ))) ;) (if_statement "if (local_2c == *(int *)puVar2) {\n        return uVar8;\n      }" if (parenthesized_expression "(local_2c == *(int *)puVar2)" ( (binary_expression "local_2c == *(int *)puVar2" identifier == (pointer_expression "*(int *)puVar2" * (cast_expression "(int *)puVar2" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n        return uVar8;\n      }" { (return_statement "return uVar8;" return identifier ;) })) (expression_statement "(*(code *)PTR___stack_chk_fail_000b2ed8)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b2ed8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b2ed8)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000b2ed8" * (cast_expression "(code *)PTR___stack_chk_fail_000b2ed8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (labeled_statement "LAB_0006ad20:\n      param_4 = param_4 + 1;" statement_identifier : (expression_statement "param_4 = param_4 + 1;" (assignment_expression "param_4 = param_4 + 1" identifier = (binary_expression "param_4 + 1" identifier + number_literal)) ;)) (expression_statement "iVar4 = makeprivate(local_402c + (int)param_4,uVar3 - (int)param_4,param_2);" (assignment_expression "iVar4 = makeprivate(local_402c + (int)param_4,uVar3 - (int)param_4,param_2)" identifier = (call_expression "makeprivate(local_402c + (int)param_4,uVar3 - (int)param_4,param_2)" identifier (argument_list "(local_402c + (int)param_4,uVar3 - (int)param_4,param_2)" ( (binary_expression "local_402c + (int)param_4" identifier + (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier)) , (binary_expression "uVar3 - (int)param_4" identifier - (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier)) , identifier )))) ;) (if_statement "if (-1 < iVar4) break;" if (parenthesized_expression "(-1 < iVar4)" ( (binary_expression "-1 < iVar4" number_literal < identifier) )) (break_statement "break;" break ;)) (labeled_statement "LAB_0006abf8:\n      uVar8 = 0;" statement_identifier : (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;)) })) (expression_statement "param_4 = (undefined4 *)((int)param_4 + iVar4);" (assignment_expression "param_4 = (undefined4 *)((int)param_4 + iVar4)" identifier = (cast_expression "(undefined4 *)((int)param_4 + iVar4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_4 + iVar4)" ( (binary_expression "(int)param_4 + iVar4" (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) ;) (expression_statement "iVar4 = ssh1_read_bignum(local_402c + (int)param_4,uVar3 - (int)param_4,param_2 + 0x1c);" (assignment_expression "iVar4 = ssh1_read_bignum(local_402c + (int)param_4,uVar3 - (int)param_4,param_2 + 0x1c)" identifier = (call_expression "ssh1_read_bignum(local_402c + (int)param_4,uVar3 - (int)param_4,param_2 + 0x1c)" identifier (argument_list "(local_402c + (int)param_4,uVar3 - (int)param_4,param_2 + 0x1c)" ( (binary_expression "local_402c + (int)param_4" identifier + (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier)) , (binary_expression "uVar3 - (int)param_4" identifier - (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier)) , (binary_expression "param_2 + 0x1c" identifier + number_literal) )))) ;) (if_statement "if (iVar4 < 0) goto LAB_0006abf8;" if (parenthesized_expression "(iVar4 < 0)" ( (binary_expression "iVar4 < 0" identifier < number_literal) )) (goto_statement "goto LAB_0006abf8;" goto statement_identifier ;)) (expression_statement "param_4 = (undefined4 *)((int)param_4 + iVar4);" (assignment_expression "param_4 = (undefined4 *)((int)param_4 + iVar4)" identifier = (cast_expression "(undefined4 *)((int)param_4 + iVar4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_4 + iVar4)" ( (binary_expression "(int)param_4 + iVar4" (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) ;) (expression_statement "iVar4 = ssh1_read_bignum(local_402c + (int)param_4,uVar3 - (int)param_4,param_2 + 0x18);" (assignment_expression "iVar4 = ssh1_read_bignum(local_402c + (int)param_4,uVar3 - (int)param_4,param_2 + 0x18)" identifier = (call_expression "ssh1_read_bignum(local_402c + (int)param_4,uVar3 - (int)param_4,param_2 + 0x18)" identifier (argument_list "(local_402c + (int)param_4,uVar3 - (int)param_4,param_2 + 0x18)" ( (binary_expression "local_402c + (int)param_4" identifier + (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier)) , (binary_expression "uVar3 - (int)param_4" identifier - (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier)) , (binary_expression "param_2 + 0x18" identifier + number_literal) )))) ;) (if_statement "if ((iVar4 < 0) ||\n       (iVar4 = ssh1_read_bignum(local_402c + (int)param_4 + iVar4,uVar3 - ((int)param_4 + iVar4),\n                                 param_2 + 0x14), iVar4 < 0)) goto LAB_0006abf8;" if (parenthesized_expression "((iVar4 < 0) ||\n       (iVar4 = ssh1_read_bignum(local_402c + (int)param_4 + iVar4,uVar3 - ((int)param_4 + iVar4),\n                                 param_2 + 0x14), iVar4 < 0))" ( (binary_expression "(iVar4 < 0) ||\n       (iVar4 = ssh1_read_bignum(local_402c + (int)param_4 + iVar4,uVar3 - ((int)param_4 + iVar4),\n                                 param_2 + 0x14), iVar4 < 0)" (parenthesized_expression "(iVar4 < 0)" ( (binary_expression "iVar4 < 0" identifier < number_literal) )) || (parenthesized_expression "(iVar4 = ssh1_read_bignum(local_402c + (int)param_4 + iVar4,uVar3 - ((int)param_4 + iVar4),\n                                 param_2 + 0x14), iVar4 < 0)" ( (comma_expression "iVar4 = ssh1_read_bignum(local_402c + (int)param_4 + iVar4,uVar3 - ((int)param_4 + iVar4),\n                                 param_2 + 0x14), iVar4 < 0" (assignment_expression "iVar4 = ssh1_read_bignum(local_402c + (int)param_4 + iVar4,uVar3 - ((int)param_4 + iVar4),\n                                 param_2 + 0x14)" identifier = (call_expression "ssh1_read_bignum(local_402c + (int)param_4 + iVar4,uVar3 - ((int)param_4 + iVar4),\n                                 param_2 + 0x14)" identifier (argument_list "(local_402c + (int)param_4 + iVar4,uVar3 - ((int)param_4 + iVar4),\n                                 param_2 + 0x14)" ( (binary_expression "local_402c + (int)param_4 + iVar4" (binary_expression "local_402c + (int)param_4" identifier + (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier)) + identifier) , (binary_expression "uVar3 - ((int)param_4 + iVar4)" identifier - (parenthesized_expression "((int)param_4 + iVar4)" ( (binary_expression "(int)param_4 + iVar4" (cast_expression "(int)param_4" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) ))) , (binary_expression "param_2 + 0x14" identifier + number_literal) )))) , (binary_expression "iVar4 < 0" identifier < number_literal)) ))) )) (goto_statement "goto LAB_0006abf8;" goto statement_identifier ;)) (expression_statement "iVar4 = rsa_verify(param_2);" (assignment_expression "iVar4 = rsa_verify(param_2)" identifier = (call_expression "rsa_verify(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) (if_statement "if (iVar4 == 0) {\n      *param_6 = PTR_s_entropy_source_000b23f0 + -0x2f88;\n      freersakey(param_2);\n      uVar8 = 0;\n    }\n    else {\nLAB_0006ac64:\n      uVar8 = 1;\n    }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n      *param_6 = PTR_s_entropy_source_000b23f0 + -0x2f88;\n      freersakey(param_2);\n      uVar8 = 0;\n    }" { (expression_statement "*param_6 = PTR_s_entropy_source_000b23f0 + -0x2f88;" (assignment_expression "*param_6 = PTR_s_entropy_source_000b23f0 + -0x2f88" (pointer_expression "*param_6" * identifier) = (binary_expression "PTR_s_entropy_source_000b23f0 + -0x2f88" identifier + number_literal)) ;) (expression_statement "freersakey(param_2);" (call_expression "freersakey(param_2)" identifier (argument_list "(param_2)" ( identifier ))) ;) (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) }) (else_clause "else {\nLAB_0006ac64:\n      uVar8 = 1;\n    }" else (compound_statement "{\nLAB_0006ac64:\n      uVar8 = 1;\n    }" { (labeled_statement "LAB_0006ac64:\n      uVar8 = 1;" statement_identifier : (expression_statement "uVar8 = 1;" (assignment_expression "uVar8 = 1" identifier = number_literal) ;)) }))) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression (pointer_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 , LIT , LIT , IDENT )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) || (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != (char_literal ' escape_sequence ')) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != (char_literal ' escape_sequence ')) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != (char_literal ' escape_sequence ')) ))) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) != (char_literal ' escape_sequence ')) || (binary_expression (subscript_expression IDENT [ LIT ]) != (char_literal ' escape_sequence '))) )) || (binary_expression (subscript_expression IDENT [ LIT ]) != (char_literal ' escape_sequence '))) )) || (binary_expression (subscript_expression IDENT [ LIT ]) != (char_literal ' escape_sequence '))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT - LIT) , IDENT , LIT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression (binary_expression (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]))) << LIT) | (binary_expression (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]))) << LIT)) | (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ (binary_expression IDENT + LIT) ])))) | (binary_expression (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]))) << LIT)) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT - IDENT) ))) < IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (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 + IDENT) , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) = LIT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (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 )))) ;) (expression_statement (assignment_expression (pointer_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 ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (subscript_expression IDENT [ LIT ]) != (char_literal ' escape_sequence ')) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( 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 ( IDENT , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + (cast_expression ( (type_descriptor TYPE) ) IDENT)) , (binary_expression (binary_expression (parenthesized_expression ( (binary_expression IDENT - (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) + LIT) & LIT) ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT - (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) < LIT) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (cast_expression ( (type_descriptor TYPE) ) IDENT) ]) == (subscript_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) [ (cast_expression ( (type_descriptor TYPE) ) IDENT) ])) )) && (parenthesized_expression ( (binary_expression (subscript_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) [ (cast_expression ( (type_descriptor TYPE) ) IDENT) ]) == (subscript_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) [ (cast_expression ( (type_descriptor TYPE) ) IDENT) ])) ))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + LIT)) ;) }))) }))) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + (cast_expression ( (type_descriptor TYPE) ) IDENT)) , (binary_expression IDENT - (cast_expression ( (type_descriptor TYPE) ) IDENT)) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (break_statement break ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + (cast_expression ( (type_descriptor TYPE) ) IDENT)) , (binary_expression IDENT - (cast_expression ( (type_descriptor TYPE) ) IDENT)) , (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + (cast_expression ( (type_descriptor TYPE) ) IDENT)) , (binary_expression IDENT - (cast_expression ( (type_descriptor TYPE) ) IDENT)) , (binary_expression IDENT + LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression (binary_expression IDENT + (cast_expression ( (type_descriptor TYPE) ) IDENT)) + IDENT) , (binary_expression IDENT - (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) ))) , (binary_expression IDENT + LIT) )))) , (binary_expression IDENT < LIT)) ))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) }))) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "uint FUN_0006a980(undefined4 param_1,int param_2,int param_3,undefined4 *param_4,undefined4 param_5,\n                 undefined4 *param_6)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 uVar7;\n  uint uVar8;\n  undefined1 auStack_4098 [92];\n  undefined1 auStack_403c [16];\n  char local_402c [4];\n  char local_4028 [16380];\n  int local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_000b2f04;\n  puVar1 = PTR_fread_000b2ea8;\n  local_2c = *(int *)PTR___stack_chk_guard_000b2f04;\n  *param_6 = 0;\n  uVar3 = (*(code *)puVar1)(local_402c,1,0x4000,param_1);\n  (*(code *)PTR_fclose_000b2dac)(param_1);\n  if (((int)uVar3 < 0) || (uVar3 == 0x4000)) {\n    uVar8 = 0;\n    *param_6 = PTR_s_entropy_source_000b23f0 + -0x2fc4;\n  }\n  else {\n    *param_6 = PTR_s_entropy_source_000b23f0 + -0x2fb0;\n    if (uVar3 < 2) goto LAB_0006abf8;\n    if (local_402c[0] != '\0') goto LAB_0006abf8;\n    if ((local_402c[1] != '\0') && (local_402c[1] != '\x03')) goto LAB_0006abf8;\n    if ((int)uVar3 < 6) goto LAB_0006abf8;\n    if (((local_402c[2] != '\0' || local_402c[3] != '\0') || local_4028[0] != '\0') ||\n        local_4028[1] != '\0') goto LAB_0006abf8;\n    iVar4 = makekey(local_4028 + 2,uVar3 - 6,param_2,0,1);\n    if (iVar4 < 0) goto LAB_0006abf8;\n    iVar5 = (*(code *)PTR_toint_000b24f4)\n                      ((uint)(byte)local_4028[iVar4 + 2] << 0x18 |\n                       (uint)(byte)local_4028[iVar4 + 3] << 0x10 | (uint)(byte)local_4028[iVar4 + 5]\n                       | (uint)(byte)local_4028[iVar4 + 4] << 8);\n    if (iVar5 < 0) goto LAB_0006abf8;\n    iVar4 = iVar4 + 10;\n    if ((int)(uVar3 - iVar4) < iVar5) goto LAB_0006abf8;\n    iVar6 = (*(code *)PTR_safemalloc_000b2408)(iVar5 + 1,1);\n    if (iVar6 != 0) {\n      iVar6 = (*(code *)PTR_memcpy_000b2f08)(iVar6,local_402c + iVar4,iVar5);\n      *(undefined1 *)(iVar6 + iVar5) = 0;\n    }\n    if (param_4 != (undefined4 *)0x0) {\n      uVar7 = (*(code *)PTR_dupstr_000b2410)(iVar6);\n      *param_4 = uVar7;\n    }\n    if (param_2 == 0) {\n      (*(code *)PTR_safefree_000b23d0)(iVar6);\n      if (param_3 != 0) goto LAB_0006ac64;\n      uVar8 = (uint)(local_402c[1] != '\0');\n      *param_6 = 0;\n    }\n    else {\n      *(int *)(param_2 + 0x20) = iVar6;\n      if (param_3 != 0) goto LAB_0006ac64;\n      param_4 = (undefined4 *)(iVar5 + iVar4);\n      if (local_402c[1] != '\0') {\n        MD5Init(auStack_4098);\n        uVar7 = (*(code *)PTR_strlen_000b2e48)(param_5);\n        MD5Update(auStack_4098,param_5,uVar7);\n        MD5Final(auStack_403c,auStack_4098);\n        des3_decrypt_pubkey(auStack_403c,local_402c + (int)param_4,\n                            (uVar3 - (int)param_4) + 7 & 0xfffffff8);\n        (*(code *)PTR_smemclr_000b2460)(auStack_403c,0x10);\n      }\n      if ((int)(uVar3 - (int)param_4) < 4) goto LAB_0006abf8;\n      if ((local_402c[(int)param_4] == (local_402c + 2)[(int)param_4]) &&\n         ((local_402c + 1)[(int)param_4] == (local_402c + 3)[(int)param_4])) goto LAB_0006ad20;\n      uVar8 = 0xffffffff;\n      *param_6 = PTR_s_entropy_source_000b23f0 + -0x2f9c;\n    }\n  }\n  do {\n    while( true ) {\n      (*(code *)PTR_smemclr_000b2460)(local_402c,0x4000);\n      if (local_2c == *(int *)puVar2) {\n        return uVar8;\n      }\n      (*(code *)PTR___stack_chk_fail_000b2ed8)();\nLAB_0006ad20:\n      param_4 = param_4 + 1;\n      iVar4 = makeprivate(local_402c + (int)param_4,uVar3 - (int)param_4,param_2);\n      if (-1 < iVar4) break;\nLAB_0006abf8:\n      uVar8 = 0;\n    }\n    param_4 = (undefined4 *)((int)param_4 + iVar4);\n    iVar4 = ssh1_read_bignum(local_402c + (int)param_4,uVar3 - (int)param_4,param_2 + 0x1c);\n    if (iVar4 < 0) goto LAB_0006abf8;\n    param_4 = (undefined4 *)((int)param_4 + iVar4);\n    iVar4 = ssh1_read_bignum(local_402c + (int)param_4,uVar3 - (int)param_4,param_2 + 0x18);\n    if ((iVar4 < 0) ||\n       (iVar4 = ssh1_read_bignum(local_402c + (int)param_4 + iVar4,uVar3 - ((int)param_4 + iVar4),\n                                 param_2 + 0x14), iVar4 < 0)) goto LAB_0006abf8;\n    iVar4 = rsa_verify(param_2);\n    if (iVar4 == 0) {\n      *param_6 = PTR_s_entropy_source_000b23f0 + -0x2f88;\n      freersakey(param_2);\n      uVar8 = 0;\n    }\n    else {\nLAB_0006ac64:\n      uVar8 = 1;\n    }\n  } while( true );\n}" (type_identifier "uint") (function_declarator "FUN_0006a980(undefined4 param_1,int param_2,int param_3,undefined4 *param_4,undefined4 param_5,\n                 undefined4 *param_6)" (identifier "FUN_0006a980") (parameter_list "(undefined4 param_1,int param_2,int param_3,undefined4 *param_4,undefined4 param_5,\n                 undefined4 *param_6)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 *param_4" (type_identifier "undefined4") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) (, ",") (parameter_declaration "undefined4 param_5" (type_identifier "undefined4") (identifier "param_5")) (, ",") (parameter_declaration "undefined4 *param_6" (type_identifier "undefined4") (pointer_declarator "*param_6" (* "*") (identifier "param_6"))) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  undefined4 uVar7;\n  uint uVar8;\n  undefined1 auStack_4098 [92];\n  undefined1 auStack_403c [16];\n  char local_402c [4];\n  char local_4028 [16380];\n  int local_2c;\n  \n  puVar2 = PTR___stack_chk_guard_000b2f04;\n  puVar1 = PTR_fread_000b2ea8;\n  local_2c = *(int *)PTR___stack_chk_guard_000b2f04;\n  *param_6 = 0;\n  uVar3 = (*(code *)puVar1)(local_402c,1,0x4000,param_1);\n  (*(code *)PTR_fclose_000b2dac)(param_1);\n  if (((int)uVar3 < 0) || (uVar3 == 0x4000)) {\n    uVar8 = 0;\n    *param_6 = PTR_s_entropy_source_000b23f0 + -0x2fc4;\n  }\n  else {\n    *param_6 = PTR_s_entropy_source_000b23f0 + -0x2fb0;\n    if (uVar3 < 2) goto LAB_0006abf8;\n    if (local_402c[0] != '\0') goto LAB_0006abf8;\n    if ((local_402c[1] != '\0') && (local_402c[1] != '\x03')) goto LAB_0006abf8;\n    if ((int)uVar3 < 6) goto LAB_0006abf8;\n    if (((local_402c[2] != '\0' || local_402c[3] != '\0') || local_4028[0] != '\0') ||\n        local_4028[1] != '\0') goto LAB_0006abf8;\n    iVar4 = makekey(local_4028 + 2,uVar3 - 6,param_2,0,1);\n    if (iVar4 < 0) goto LAB_0006abf8;\n    iVar5 = (*(code *)PTR_toint_000b24f4)\n                      ((uint)(byte)local_4028[iVar4 + 2] << 0x18 |\n                       (uint)(byte)local_4028[iVar4 + 3] << 0x10 | (uint)(byte)local_4028[iVar4 + 5]\n                       | (uint)(byte)local_4028[iVar4 + 4] << 8);\n    if (iVar5 < 0) goto LAB_0006abf8;\n    iVar4 = iVar4 + 10;\n    if ((int)(uVar3 - iVar4) < iVar5) goto LAB_0006abf8;\n    iVar6 = (*(code *)PTR_safemalloc_000b2408)(iVar5 + 1,1);\n    if (iVar6 != 0) {\n      iVar6 = (*(code *)PTR_memcpy_000b2f08)(iVar6,local_402c + iVar4,iVar5);\n      *(undefined1 *)(iVar6 + iVar5) = 0;\n    }\n    if (param_4 != (undefined4 *)0x0) {\n      uVar7 = (*(code *)PTR_dupstr_000b2410)(iVar6);\n      *param_4 = uVar7;\n    }\n    if (param_2 == 0) {\n      (*(code *)PTR_safefree_000b23d0)(iVar6);\n      if (param_3 != 0) goto LAB_0006ac64;\n      uVar8 = (uint)(local_402c[1] != '\0');\n      *param_6 = 0;\n    }\n    else {\n      *(int *)(param_2 + 0x20) = iVar6;\n      if (param_3 != 0) goto LAB_0006ac64;\n      param_4 = (undefined4 *)(iVar5 + iVar4);\n      if (local_402c[1] != '\0') {\n        MD5Init(auStack_4098);\n        uVar7 = (*(code *)PTR_strlen_000b2e48)(param_5);\n        MD5Update(auStack_4098,param_5,uVar7);\n        MD5Final(auStack_403c,auStack_4098);\n        des3_decrypt_pubkey(auStack_403c,local_402c + (int)param_4,\n                            (uVar3 - (int)param_4) + 7 & 0xfffffff8);\n        (*(code *)PTR_smemclr_000b2460)(auStack_403c,0x10);\n      }\n      if ((int)(uVar3 - (int)param_4) < 4) goto LAB_0006abf8;\n      if ((local_402c[(int)param_4] == (local_402c + 2)[(int)param_4]) &&\n         ((local_402c + 1)[(int)param_4] == (local_402c + 3)[(int)param_4])) goto LAB_0006ad20;\n      uVar8 = 0xffffffff;\n      *param_6 = PTR_s_entropy_source_000b23f0 + -0x2f9c;\n    }\n  }\n  do {\n    while( true ) {\n      (*(code *)PTR_smemclr_000b2460)(local_402c,0x4000);\n      if (local_2c == *(int *)puVar2) {\n        return uVar8;\n      }\n      (*(code *)PTR___stack_chk_fail_000b2ed8)();\nLAB_0006ad20:\n      param_4 = param_4 + 1;\n      iVar4 = makeprivate(local_402c + (int)param_4,uVar3 - (int)param_4,param_2);\n      if (-1 < iVar4) break;\nLAB_0006abf8:\n      uVar8 = 0;\n    }\n    param_4 = (undefined4 *)((int)param_4 + iVar4);\n    iVar4 = ssh1_read_bignum(local_402c + (int)param_4,uVar3 - (int)param_4,param_2 + 0x1c);\n    if (iVar4 < 0) goto LAB_0006abf8;\n    param_4 = (undefined4 *)((int)param_4 + iVar4);\n    iVar4 = ssh1_read_bignum(local_402c + (int)param_4,uVar3 - (int)param_4,param_2 + 0x18);\n    if ((iVar4 < 0) ||\n       (iVar4 = ssh1_read_bignum(local_402c + (int)param_4 + iVar4,uVar3 - ((int)param_4 + iVar4),\n                                 param_2 + 0x14), iVar4 < 0)) goto LAB_0006abf8;\n    iVar4 = rsa_verify(param_2);\n    if (iVar4 == 0) {\n      *param_6 = PTR_s_entropy_source_000b23f0 + -0x2f88;\n      freersakey(param_2);\n      uVar8 = 0;\n    }\n    else {\nLAB_0006ac64:\n      uVar8 = 1;\n    }\n  } while( true );\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "undefined4 uVar7;" (type_identifier "undefined4") (identifier "uVar7") (; ";")) (declaration "uint uVar8;" (type_identifier "uint") (identifier "uVar8") (; ";")) (declaration "undefined1 auStack_4098 [92];" (type_identifier "undefined1") (array_declarator "auStack_4098 [92]" (identifier "auStack_4098") ([ "[") (number_literal "92") (] "]")) (; ";")) (declaration "undefined1 auStack_403c [16];" (type_identifier "undefined1") (array_declarator "auStack_403c [16]" (identifier "auStack_403c") ([ "[") (number_literal "16") (] "]")) (; ";")) (declaration "char local_402c [4];" (primitive_type "char") (array_declarator "local_402c [4]" (identifier "local_402c") ([ "[") (number_literal "4") (] "]")) (; ";")) (declaration "char local_4028 [16380];" (primitive_type "char") (array_declarator "local_4028 [16380]" (identifier "local_4028") ([ "[") (number_literal "16380") (] "]")) (; ";")) (declaration "int local_2c;" (primitive_type "int") (identifier "local_2c") (; ";")) (expression_statement "puVar2 = PTR___stack_chk_guard_000b2f04;" (assignment_expression "puVar2 = PTR___stack_chk_guard_000b2f04" (identifier "puVar2") (= "=") (identifier "PTR___stack_chk_guard_000b2f04")) (; ";")) (expression_statement "puVar1 = PTR_fread_000b2ea8;" (assignment_expression "puVar1 = PTR_fread_000b2ea8" (identifier "puVar1") (= "=") (identifier "PTR_fread_000b2ea8")) (; ";")) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_000b2f04;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_000b2f04" (identifier "local_2c") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_000b2f04" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_000b2f04" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_000b2f04")))) (; ";")) (expression_statement "*param_6 = 0;" (assignment_expression "*param_6 = 0" (pointer_expression "*param_6" (* "*") (identifier "param_6")) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar3 = (*(code *)puVar1)(local_402c,1,0x4000,param_1);" (assignment_expression "uVar3 = (*(code *)puVar1)(local_402c,1,0x4000,param_1)" (identifier "uVar3") (= "=") (call_expression "(*(code *)puVar1)(local_402c,1,0x4000,param_1)" (parenthesized_expression "(*(code *)puVar1)" (( "(") (pointer_expression "*(code *)puVar1" (* "*") (cast_expression "(code *)puVar1" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) () ")")) (argument_list "(local_402c,1,0x4000,param_1)" (( "(") (identifier "local_402c") (, ",") (number_literal "1") (, ",") (number_literal "0x4000") (, ",") (identifier "param_1") () ")")))) (; ";")) (expression_statement "(*(code *)PTR_fclose_000b2dac)(param_1);" (call_expression "(*(code *)PTR_fclose_000b2dac)(param_1)" (parenthesized_expression "(*(code *)PTR_fclose_000b2dac)" (( "(") (pointer_expression "*(code *)PTR_fclose_000b2dac" (* "*") (cast_expression "(code *)PTR_fclose_000b2dac" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_fclose_000b2dac"))) () ")")) (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (if_statement "if (((int)uVar3 < 0) || (uVar3 == 0x4000)) {\n    uVar8 = 0;\n    *param_6 = PTR_s_entropy_source_000b23f0 + -0x2fc4;\n  }\n  else {\n    *param_6 = PTR_s_entropy_source_000b23f0 + -0x2fb0;\n    if (uVar3 < 2) goto LAB_0006abf8;\n    if (local_402c[0] != '\0') goto LAB_0006abf8;\n    if ((local_402c[1] != '\0') && (local_402c[1] != '\x03')) goto LAB_0006abf8;\n    if ((int)uVar3 < 6) goto LAB_0006abf8;\n    if (((local_402c[2] != '\0' || local_402c[3] != '\0') || local_4028[0] != '\0') ||\n        local_4028[1] != '\0') goto LAB_0006abf8;\n    iVar4 = makekey(local_4028 + 2,uVar3 - 6,param_2,0,1);\n    if (iVar4 < 0) goto LAB_0006abf8;\n    iVar5 = (*(code *)PTR_toint_000b24f4)\n                      ((uint)(byte)local_4028[iVar4 + 2] << 0x18 |\n                       (uint)(byte)local_4028[iVar4 + 3] << 0x10 | (uint)(byte)local_4028[iVar4 + 5]\n                       | (uint)(byte)local_4028[iVar4 + 4] << 8);\n    if (iVar5 < 0) goto LAB_0006abf8;\n    iVar4 = iVar4 + 10;\n    if ((int)(uVar3 - iVar4) < iVar5) goto LAB_0006abf8;\n    iVar6 = (*(code *)PTR_safemalloc_000b2408)(iVar5 + 1,1);\n    if (iVar6 != 0) {\n      iVar6 = (*(code *)PTR_memcpy_000b2f08)(iVar6,local_402c + iVar4,iVar5);\n      *(undefined1 *)(iVar6 + iVar5) = 0;\n    }\n    if (param_4 != (undefined4 *)0x0) {\n      uVar7 = (*(code *)PTR_dupstr_000b2410)(iVar6);\n      *param_4 = uVar7;\n    }\n    if (param_2 == 0) {\n      (*(code *)PTR_safefree_000b23d0)(iVar6);\n      if (param_3 != 0) goto LAB_0006ac64;\n      uVar8 = (uint)(local_402c[1] != '\0');\n      *param_6 = 0;\n    }\n    else {\n      *(int *)(param_2 + 0x20) = iVar6;\n      if (param_3 != 0) goto LAB_0006ac64;\n      param_4 = (undefined4 *)(iVar5 + iVar4);\n      if (local_402c[1] != '\0') {\n        MD5Init(auStack_4098);\n        uVar7 = (*(code *)PTR_strlen_000b2e48)(param_5);\n        MD5Update(auStack_4098,param_5,uVar7);\n        MD5Final(auStack_403c,auStack_4098);\n        des3_decrypt_pubkey(auStack_403c,local_402c + (int)param_4,\n                            (uVar3 - (int)param_4) + 7 & 0xfffffff8);\n        (*(code *)PTR_smemclr_000b2460)(auStack_403c,0x10);\n      }\n      if ((int)(uVar3 - (int)param_4) < 4) goto LAB_0006abf8;\n      if ((local_402c[(int)param_4] == (local_402c + 2)[(int)param_4]) &&\n         ((local_402c + 1)[(int)param_4] == (local_402c + 3)[(int)param_4])) goto LAB_0006ad20;\n      uVar8 = 0xffffffff;\n      *param_6 = PTR_s_entropy_source_000b23f0 + -0x2f9c;\n    }\n  }" (if "if") (parenthesized_expression "(((int)uVar3 < 0) || (uVar3 == 0x4000))" (( "(") (binary_expression "((int)uVar3 < 0) || (uVar3 == 0x4000)" (parenthesized_expression "((int)uVar3 < 0)" (( "(") (binary_expression "(int)uVar3 < 0" (cast_expression "(int)uVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar3")) (< "<") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(uVar3 == 0x4000)" (( "(") (binary_expression "uVar3 == 0x4000" (identifier "uVar3") (== "==") (number_literal "0x4000")) () ")"))) () ")")) (compound_statement "{\n    uVar8 = 0;\n    *param_6 = PTR_s_entropy_source_000b23f0 + -0x2fc4;\n  }" ({ "{") (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" (identifier "uVar8") (= "=") (number_literal "0")) (; ";")) (expression_statement "*param_6 = PTR_s_entropy_source_000b23f0 + -0x2fc4;" (assignment_expression "*param_6 = PTR_s_entropy_source_000b23f0 + -0x2fc4" (pointer_expression "*param_6" (* "*") (identifier "param_6")) (= "=") (binary_expression "PTR_s_entropy_source_000b23f0 + -0x2fc4" (identifier "PTR_s_entropy_source_000b23f0") (+ "+") (number_literal "-0x2fc4"))) (; ";")) (} "}")) (else_clause "else {\n    *param_6 = PTR_s_entropy_source_000b23f0 + -0x2fb0;\n    if (uVar3 < 2) goto LAB_0006abf8;\n    if (local_402c[0] != '\0') goto LAB_0006abf8;\n    if ((local_402c[1] != '\0') && (local_402c[1] != '\x03')) goto LAB_0006abf8;\n    if ((int)uVar3 < 6) goto LAB_0006abf8;\n    if (((local_402c[2] != '\0' || local_402c[3] != '\0') || local_4028[0] != '\0') ||\n        local_4028[1] != '\0') goto LAB_0006abf8;\n    iVar4 = makekey(local_4028 + 2,uVar3 - 6,param_2,0,1);\n    if (iVar4 < 0) goto LAB_0006abf8;\n    iVar5 = (*(code *)PTR_toint_000b24f4)\n                      ((uint)(byte)local_4028[iVar4 + 2] << 0x18 |\n                       (uint)(byte)local_4028[iVar4 + 3] << 0x10 | (uint)(byte)local_4028[iVar4 + 5]\n                       | (uint)(byte)local_4028[iVar4 + 4] << 8);\n    if (iVar5 < 0) goto LAB_0006abf8;\n    iVar4 = iVar4 + 10;\n    if ((int)(uVar3 - iVar4) < iVar5) goto LAB_0006abf8;\n    iVar6 = (*(code *)PTR_safemalloc_000b2408)(iVar5 + 1,1);\n    if (iVar6 != 0) {\n      iVar6 = (*(code *)PTR_memcpy_000b2f08)(iVar6,local_402c + iVar4,iVar5);\n      *(undefined1 *)(iVar6 + iVar5) = 0;\n    }\n    if (param_4 != (undefined4 *)0x0) {\n      uVar7 = (*(code *)PTR_dupstr_000b2410)(iVar6);\n      *param_4 = uVar7;\n    }\n    if (param_2 == 0) {\n      (*(code *)PTR_safefree_000b23d0)(iVar6);\n      if (param_3 != 0) goto LAB_0006ac64;\n      uVar8 = (uint)(local_402c[1] != '\0');\n      *param_6 = 0;\n    }\n    else {\n      *(int *)(param_2 + 0x20) = iVar6;\n      if (param_3 != 0) goto LAB_0006ac64;\n      param_4 = (undefined4 *)(iVar5 + iVar4);\n      if (local_402c[1] != '\0') {\n        MD5Init(auStack_4098);\n        uVar7 = (*(code *)PTR_strlen_000b2e48)(param_5);\n        MD5Update(auStack_4098,param_5,uVar7);\n        MD5Final(auStack_403c,auStack_4098);\n        des3_decrypt_pubkey(auStack_403c,local_402c + (int)param_4,\n                            (uVar3 - (int)param_4) + 7 & 0xfffffff8);\n        (*(code *)PTR_smemclr_000b2460)(auStack_403c,0x10);\n      }\n      if ((int)(uVar3 - (int)param_4) < 4) goto LAB_0006abf8;\n      if ((local_402c[(int)param_4] == (local_402c + 2)[(int)param_4]) &&\n         ((local_402c + 1)[(int)param_4] == (local_402c + 3)[(int)param_4])) goto LAB_0006ad20;\n      uVar8 = 0xffffffff;\n      *param_6 = PTR_s_entropy_source_000b23f0 + -0x2f9c;\n    }\n  }" (else "else") (compound_statement "{\n    *param_6 = PTR_s_entropy_source_000b23f0 + -0x2fb0;\n    if (uVar3 < 2) goto LAB_0006abf8;\n    if (local_402c[0] != '\0') goto LAB_0006abf8;\n    if ((local_402c[1] != '\0') && (local_402c[1] != '\x03')) goto LAB_0006abf8;\n    if ((int)uVar3 < 6) goto LAB_0006abf8;\n    if (((local_402c[2] != '\0' || local_402c[3] != '\0') || local_4028[0] != '\0') ||\n        local_4028[1] != '\0') goto LAB_0006abf8;\n    iVar4 = makekey(local_4028 + 2,uVar3 - 6,param_2,0,1);\n    if (iVar4 < 0) goto LAB_0006abf8;\n    iVar5 = (*(code *)PTR_toint_000b24f4)\n                      ((uint)(byte)local_4028[iVar4 + 2] << 0x18 |\n                       (uint)(byte)local_4028[iVar4 + 3] << 0x10 | (uint)(byte)local_4028[iVar4 + 5]\n                       | (uint)(byte)local_4028[iVar4 + 4] << 8);\n    if (iVar5 < 0) goto LAB_0006abf8;\n    iVar4 = iVar4 + 10;\n    if ((int)(uVar3 - iVar4) < iVar5) goto LAB_0006abf8;\n    iVar6 = (*(code *)PTR_safemalloc_000b2408)(iVar5 + 1,1);\n    if (iVar6 != 0) {\n      iVar6 = (*(code *)PTR_memcpy_000b2f08)(iVar6,local_402c + iVar4,iVar5);\n      *(undefined1 *)(iVar6 + iVar5) = 0;\n    }\n    if (param_4 != (undefined4 *)0x0) {\n      uVar7 = (*(code *)PTR_dupstr_000b2410)(iVar6);\n      *param_4 = uVar7;\n    }\n    if (param_2 == 0) {\n      (*(code *)PTR_safefree_000b23d0)(iVar6);\n      if (param_3 != 0) goto LAB_0006ac64;\n      uVar8 = (uint)(local_402c[1] != '\0');\n      *param_6 = 0;\n    }\n    else {\n      *(int *)(param_2 + 0x20) = iVar6;\n      if (param_3 != 0) goto LAB_0006ac64;\n      param_4 = (undefined4 *)(iVar5 + iVar4);\n      if (local_402c[1] != '\0') {\n        MD5Init(auStack_4098);\n        uVar7 = (*(code *)PTR_strlen_000b2e48)(param_5);\n        MD5Update(auStack_4098,param_5,uVar7);\n        MD5Final(auStack_403c,auStack_4098);\n        des3_decrypt_pubkey(auStack_403c,local_402c + (int)param_4,\n                            (uVar3 - (int)param_4) + 7 & 0xfffffff8);\n        (*(code *)PTR_smemclr_000b2460)(auStack_403c,0x10);\n      }\n      if ((int)(uVar3 - (int)param_4) < 4) goto LAB_0006abf8;\n      if ((local_402c[(int)param_4] == (local_402c + 2)[(int)param_4]) &&\n         ((local_402c + 1)[(int)param_4] == (local_402c + 3)[(int)param_4])) goto LAB_0006ad20;\n      uVar8 = 0xffffffff;\n      *param_6 = PTR_s_entropy_source_000b23f0 + -0x2f9c;\n    }\n  }" ({ "{") (expression_statement "*param_6 = PTR_s_entropy_source_000b23f0 + -0x2fb0;" (assignment_expression "*param_6 = PTR_s_entropy_source_000b23f0 + -0x2fb0" (pointer_expression "*param_6" (* "*") (identifier "param_6")) (= "=") (binary_expression "PTR_s_entropy_source_000b23f0 + -0x2fb0" (identifier "PTR_s_entropy_source_000b23f0") (+ "+") (number_literal "-0x2fb0"))) (; ";")) (if_statement "if (uVar3 < 2) goto LAB_0006abf8;" (if "if") (parenthesized_expression "(uVar3 < 2)" (( "(") (binary_expression "uVar3 < 2" (identifier "uVar3") (< "<") (number_literal "2")) () ")")) (goto_statement "goto LAB_0006abf8;" (goto "goto") (statement_identifier "LAB_0006abf8") (; ";"))) (if_statement "if (local_402c[0] != '\0') goto LAB_0006abf8;" (if "if") (parenthesized_expression "(local_402c[0] != '\0')" (( "(") (binary_expression "local_402c[0] != '\0'" (subscript_expression "local_402c[0]" (identifier "local_402c") ([ "[") (number_literal "0") (] "]")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (goto_statement "goto LAB_0006abf8;" (goto "goto") (statement_identifier "LAB_0006abf8") (; ";"))) (if_statement "if ((local_402c[1] != '\0') && (local_402c[1] != '\x03')) goto LAB_0006abf8;" (if "if") (parenthesized_expression "((local_402c[1] != '\0') && (local_402c[1] != '\x03'))" (( "(") (binary_expression "(local_402c[1] != '\0') && (local_402c[1] != '\x03')" (parenthesized_expression "(local_402c[1] != '\0')" (( "(") (binary_expression "local_402c[1] != '\0'" (subscript_expression "local_402c[1]" (identifier "local_402c") ([ "[") (number_literal "1") (] "]")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(local_402c[1] != '\x03')" (( "(") (binary_expression "local_402c[1] != '\x03'" (subscript_expression "local_402c[1]" (identifier "local_402c") ([ "[") (number_literal "1") (] "]")) (!= "!=") (char_literal "'\x03'" (' "'") (escape_sequence "\x03") (' "'"))) () ")"))) () ")")) (goto_statement "goto LAB_0006abf8;" (goto "goto") (statement_identifier "LAB_0006abf8") (; ";"))) (if_statement "if ((int)uVar3 < 6) goto LAB_0006abf8;" (if "if") (parenthesized_expression "((int)uVar3 < 6)" (( "(") (binary_expression "(int)uVar3 < 6" (cast_expression "(int)uVar3" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar3")) (< "<") (number_literal "6")) () ")")) (goto_statement "goto LAB_0006abf8;" (goto "goto") (statement_identifier "LAB_0006abf8") (; ";"))) (if_statement "if (((local_402c[2] != '\0' || local_402c[3] != '\0') || local_4028[0] != '\0') ||\n        local_4028[1] != '\0') goto LAB_0006abf8;" (if "if") (parenthesized_expression "(((local_402c[2] != '\0' || local_402c[3] != '\0') || local_4028[0] != '\0') ||\n        local_4028[1] != '\0')" (( "(") (binary_expression "((local_402c[2] != '\0' || local_402c[3] != '\0') || local_4028[0] != '\0') ||\n        local_4028[1] != '\0'" (parenthesized_expression "((local_402c[2] != '\0' || local_402c[3] != '\0') || local_4028[0] != '\0')" (( "(") (binary_expression "(local_402c[2] != '\0' || local_402c[3] != '\0') || local_4028[0] != '\0'" (parenthesized_expression "(local_402c[2] != '\0' || local_402c[3] != '\0')" (( "(") (binary_expression "local_402c[2] != '\0' || local_402c[3] != '\0'" (binary_expression "local_402c[2] != '\0'" (subscript_expression "local_402c[2]" (identifier "local_402c") ([ "[") (number_literal "2") (] "]")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (|| "||") (binary_expression "local_402c[3] != '\0'" (subscript_expression "local_402c[3]" (identifier "local_402c") ([ "[") (number_literal "3") (] "]")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'")))) () ")")) (|| "||") (binary_expression "local_4028[0] != '\0'" (subscript_expression "local_4028[0]" (identifier "local_4028") ([ "[") (number_literal "0") (] "]")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'")))) () ")")) (|| "||") (binary_expression "local_4028[1] != '\0'" (subscript_expression "local_4028[1]" (identifier "local_4028") ([ "[") (number_literal "1") (] "]")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'")))) () ")")) (goto_statement "goto LAB_0006abf8;" (goto "goto") (statement_identifier "LAB_0006abf8") (; ";"))) (expression_statement "iVar4 = makekey(local_4028 + 2,uVar3 - 6,param_2,0,1);" (assignment_expression "iVar4 = makekey(local_4028 + 2,uVar3 - 6,param_2,0,1)" (identifier "iVar4") (= "=") (call_expression "makekey(local_4028 + 2,uVar3 - 6,param_2,0,1)" (identifier "makekey") (argument_list "(local_4028 + 2,uVar3 - 6,param_2,0,1)" (( "(") (binary_expression "local_4028 + 2" (identifier "local_4028") (+ "+") (number_literal "2")) (, ",") (binary_expression "uVar3 - 6" (identifier "uVar3") (- "-") (number_literal "6")) (, ",") (identifier "param_2") (, ",") (number_literal "0") (, ",") (number_literal "1") () ")")))) (; ";")) (if_statement "if (iVar4 < 0) goto LAB_0006abf8;" (if "if") (parenthesized_expression "(iVar4 < 0)" (( "(") (binary_expression "iVar4 < 0" (identifier "iVar4") (< "<") (number_literal "0")) () ")")) (goto_statement "goto LAB_0006abf8;" (goto "goto") (statement_identifier "LAB_0006abf8") (; ";"))) (expression_statement "iVar5 = (*(code *)PTR_toint_000b24f4)\n                      ((uint)(byte)local_4028[iVar4 + 2] << 0x18 |\n                       (uint)(byte)local_4028[iVar4 + 3] << 0x10 | (uint)(byte)local_4028[iVar4 + 5]\n                       | (uint)(byte)local_4028[iVar4 + 4] << 8);" (assignment_expression "iVar5 = (*(code *)PTR_toint_000b24f4)\n                      ((uint)(byte)local_4028[iVar4 + 2] << 0x18 |\n                       (uint)(byte)local_4028[iVar4 + 3] << 0x10 | (uint)(byte)local_4028[iVar4 + 5]\n                       | (uint)(byte)local_4028[iVar4 + 4] << 8)" (identifier "iVar5") (= "=") (call_expression "(*(code *)PTR_toint_000b24f4)\n                      ((uint)(byte)local_4028[iVar4 + 2] << 0x18 |\n                       (uint)(byte)local_4028[iVar4 + 3] << 0x10 | (uint)(byte)local_4028[iVar4 + 5]\n                       | (uint)(byte)local_4028[iVar4 + 4] << 8)" (parenthesized_expression "(*(code *)PTR_toint_000b24f4)" (( "(") (pointer_expression "*(code *)PTR_toint_000b24f4" (* "*") (cast_expression "(code *)PTR_toint_000b24f4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_toint_000b24f4"))) () ")")) (argument_list "((uint)(byte)local_4028[iVar4 + 2] << 0x18 |\n                       (uint)(byte)local_4028[iVar4 + 3] << 0x10 | (uint)(byte)local_4028[iVar4 + 5]\n                       | (uint)(byte)local_4028[iVar4 + 4] << 8)" (( "(") (binary_expression "(uint)(byte)local_4028[iVar4 + 2] << 0x18 |\n                       (uint)(byte)local_4028[iVar4 + 3] << 0x10 | (uint)(byte)local_4028[iVar4 + 5]\n                       | (uint)(byte)local_4028[iVar4 + 4] << 8" (binary_expression "(uint)(byte)local_4028[iVar4 + 2] << 0x18 |\n                       (uint)(byte)local_4028[iVar4 + 3] << 0x10 | (uint)(byte)local_4028[iVar4 + 5]" (binary_expression "(uint)(byte)local_4028[iVar4 + 2] << 0x18 |\n                       (uint)(byte)local_4028[iVar4 + 3] << 0x10" (binary_expression "(uint)(byte)local_4028[iVar4 + 2] << 0x18" (cast_expression "(uint)(byte)local_4028[iVar4 + 2]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (cast_expression "(byte)local_4028[iVar4 + 2]" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (subscript_expression "local_4028[iVar4 + 2]" (identifier "local_4028") ([ "[") (binary_expression "iVar4 + 2" (identifier "iVar4") (+ "+") (number_literal "2")) (] "]")))) (<< "<<") (number_literal "0x18")) (| "|") (binary_expression "(uint)(byte)local_4028[iVar4 + 3] << 0x10" (cast_expression "(uint)(byte)local_4028[iVar4 + 3]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (cast_expression "(byte)local_4028[iVar4 + 3]" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (subscript_expression "local_4028[iVar4 + 3]" (identifier "local_4028") ([ "[") (binary_expression "iVar4 + 3" (identifier "iVar4") (+ "+") (number_literal "3")) (] "]")))) (<< "<<") (number_literal "0x10"))) (| "|") (cast_expression "(uint)(byte)local_4028[iVar4 + 5]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (cast_expression "(byte)local_4028[iVar4 + 5]" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (subscript_expression "local_4028[iVar4 + 5]" (identifier "local_4028") ([ "[") (binary_expression "iVar4 + 5" (identifier "iVar4") (+ "+") (number_literal "5")) (] "]"))))) (| "|") (binary_expression "(uint)(byte)local_4028[iVar4 + 4] << 8" (cast_expression "(uint)(byte)local_4028[iVar4 + 4]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (cast_expression "(byte)local_4028[iVar4 + 4]" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (subscript_expression "local_4028[iVar4 + 4]" (identifier "local_4028") ([ "[") (binary_expression "iVar4 + 4" (identifier "iVar4") (+ "+") (number_literal "4")) (] "]")))) (<< "<<") (number_literal "8"))) () ")")))) (; ";")) (if_statement "if (iVar5 < 0) goto LAB_0006abf8;" (if "if") (parenthesized_expression "(iVar5 < 0)" (( "(") (binary_expression "iVar5 < 0" (identifier "iVar5") (< "<") (number_literal "0")) () ")")) (goto_statement "goto LAB_0006abf8;" (goto "goto") (statement_identifier "LAB_0006abf8") (; ";"))) (expression_statement "iVar4 = iVar4 + 10;" (assignment_expression "iVar4 = iVar4 + 10" (identifier "iVar4") (= "=") (binary_expression "iVar4 + 10" (identifier "iVar4") (+ "+") (number_literal "10"))) (; ";")) (if_statement "if ((int)(uVar3 - iVar4) < iVar5) goto LAB_0006abf8;" (if "if") (parenthesized_expression "((int)(uVar3 - iVar4) < iVar5)" (( "(") (binary_expression "(int)(uVar3 - iVar4) < iVar5" (cast_expression "(int)(uVar3 - iVar4)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(uVar3 - iVar4)" (( "(") (binary_expression "uVar3 - iVar4" (identifier "uVar3") (- "-") (identifier "iVar4")) () ")"))) (< "<") (identifier "iVar5")) () ")")) (goto_statement "goto LAB_0006abf8;" (goto "goto") (statement_identifier "LAB_0006abf8") (; ";"))) (expression_statement "iVar6 = (*(code *)PTR_safemalloc_000b2408)(iVar5 + 1,1);" (assignment_expression "iVar6 = (*(code *)PTR_safemalloc_000b2408)(iVar5 + 1,1)" (identifier "iVar6") (= "=") (call_expression "(*(code *)PTR_safemalloc_000b2408)(iVar5 + 1,1)" (parenthesized_expression "(*(code *)PTR_safemalloc_000b2408)" (( "(") (pointer_expression "*(code *)PTR_safemalloc_000b2408" (* "*") (cast_expression "(code *)PTR_safemalloc_000b2408" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safemalloc_000b2408"))) () ")")) (argument_list "(iVar5 + 1,1)" (( "(") (binary_expression "iVar5 + 1" (identifier "iVar5") (+ "+") (number_literal "1")) (, ",") (number_literal "1") () ")")))) (; ";")) (if_statement "if (iVar6 != 0) {\n      iVar6 = (*(code *)PTR_memcpy_000b2f08)(iVar6,local_402c + iVar4,iVar5);\n      *(undefined1 *)(iVar6 + iVar5) = 0;\n    }" (if "if") (parenthesized_expression "(iVar6 != 0)" (( "(") (binary_expression "iVar6 != 0" (identifier "iVar6") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      iVar6 = (*(code *)PTR_memcpy_000b2f08)(iVar6,local_402c + iVar4,iVar5);\n      *(undefined1 *)(iVar6 + iVar5) = 0;\n    }" ({ "{") (expression_statement "iVar6 = (*(code *)PTR_memcpy_000b2f08)(iVar6,local_402c + iVar4,iVar5);" (assignment_expression "iVar6 = (*(code *)PTR_memcpy_000b2f08)(iVar6,local_402c + iVar4,iVar5)" (identifier "iVar6") (= "=") (call_expression "(*(code *)PTR_memcpy_000b2f08)(iVar6,local_402c + iVar4,iVar5)" (parenthesized_expression "(*(code *)PTR_memcpy_000b2f08)" (( "(") (pointer_expression "*(code *)PTR_memcpy_000b2f08" (* "*") (cast_expression "(code *)PTR_memcpy_000b2f08" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcpy_000b2f08"))) () ")")) (argument_list "(iVar6,local_402c + iVar4,iVar5)" (( "(") (identifier "iVar6") (, ",") (binary_expression "local_402c + iVar4" (identifier "local_402c") (+ "+") (identifier "iVar4")) (, ",") (identifier "iVar5") () ")")))) (; ";")) (expression_statement "*(undefined1 *)(iVar6 + iVar5) = 0;" (assignment_expression "*(undefined1 *)(iVar6 + iVar5) = 0" (pointer_expression "*(undefined1 *)(iVar6 + iVar5)" (* "*") (cast_expression "(undefined1 *)(iVar6 + iVar5)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + iVar5)" (( "(") (binary_expression "iVar6 + iVar5" (identifier "iVar6") (+ "+") (identifier "iVar5")) () ")")))) (= "=") (number_literal "0")) (; ";")) (} "}"))) (if_statement "if (param_4 != (undefined4 *)0x0) {\n      uVar7 = (*(code *)PTR_dupstr_000b2410)(iVar6);\n      *param_4 = uVar7;\n    }" (if "if") (parenthesized_expression "(param_4 != (undefined4 *)0x0)" (( "(") (binary_expression "param_4 != (undefined4 *)0x0" (identifier "param_4") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      uVar7 = (*(code *)PTR_dupstr_000b2410)(iVar6);\n      *param_4 = uVar7;\n    }" ({ "{") (expression_statement "uVar7 = (*(code *)PTR_dupstr_000b2410)(iVar6);" (assignment_expression "uVar7 = (*(code *)PTR_dupstr_000b2410)(iVar6)" (identifier "uVar7") (= "=") (call_expression "(*(code *)PTR_dupstr_000b2410)(iVar6)" (parenthesized_expression "(*(code *)PTR_dupstr_000b2410)" (( "(") (pointer_expression "*(code *)PTR_dupstr_000b2410" (* "*") (cast_expression "(code *)PTR_dupstr_000b2410" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_dupstr_000b2410"))) () ")")) (argument_list "(iVar6)" (( "(") (identifier "iVar6") () ")")))) (; ";")) (expression_statement "*param_4 = uVar7;" (assignment_expression "*param_4 = uVar7" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (identifier "uVar7")) (; ";")) (} "}"))) (if_statement "if (param_2 == 0) {\n      (*(code *)PTR_safefree_000b23d0)(iVar6);\n      if (param_3 != 0) goto LAB_0006ac64;\n      uVar8 = (uint)(local_402c[1] != '\0');\n      *param_6 = 0;\n    }\n    else {\n      *(int *)(param_2 + 0x20) = iVar6;\n      if (param_3 != 0) goto LAB_0006ac64;\n      param_4 = (undefined4 *)(iVar5 + iVar4);\n      if (local_402c[1] != '\0') {\n        MD5Init(auStack_4098);\n        uVar7 = (*(code *)PTR_strlen_000b2e48)(param_5);\n        MD5Update(auStack_4098,param_5,uVar7);\n        MD5Final(auStack_403c,auStack_4098);\n        des3_decrypt_pubkey(auStack_403c,local_402c + (int)param_4,\n                            (uVar3 - (int)param_4) + 7 & 0xfffffff8);\n        (*(code *)PTR_smemclr_000b2460)(auStack_403c,0x10);\n      }\n      if ((int)(uVar3 - (int)param_4) < 4) goto LAB_0006abf8;\n      if ((local_402c[(int)param_4] == (local_402c + 2)[(int)param_4]) &&\n         ((local_402c + 1)[(int)param_4] == (local_402c + 3)[(int)param_4])) goto LAB_0006ad20;\n      uVar8 = 0xffffffff;\n      *param_6 = PTR_s_entropy_source_000b23f0 + -0x2f9c;\n    }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      (*(code *)PTR_safefree_000b23d0)(iVar6);\n      if (param_3 != 0) goto LAB_0006ac64;\n      uVar8 = (uint)(local_402c[1] != '\0');\n      *param_6 = 0;\n    }" ({ "{") (expression_statement "(*(code *)PTR_safefree_000b23d0)(iVar6);" (call_expression "(*(code *)PTR_safefree_000b23d0)(iVar6)" (parenthesized_expression "(*(code *)PTR_safefree_000b23d0)" (( "(") (pointer_expression "*(code *)PTR_safefree_000b23d0" (* "*") (cast_expression "(code *)PTR_safefree_000b23d0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safefree_000b23d0"))) () ")")) (argument_list "(iVar6)" (( "(") (identifier "iVar6") () ")"))) (; ";")) (if_statement "if (param_3 != 0) goto LAB_0006ac64;" (if "if") (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_0006ac64;" (goto "goto") (statement_identifier "LAB_0006ac64") (; ";"))) (expression_statement "uVar8 = (uint)(local_402c[1] != '\0');" (assignment_expression "uVar8 = (uint)(local_402c[1] != '\0')" (identifier "uVar8") (= "=") (call_expression "(uint)(local_402c[1] != '\0')" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(local_402c[1] != '\0')" (( "(") (binary_expression "local_402c[1] != '\0'" (subscript_expression "local_402c[1]" (identifier "local_402c") ([ "[") (number_literal "1") (] "]")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")))) (; ";")) (expression_statement "*param_6 = 0;" (assignment_expression "*param_6 = 0" (pointer_expression "*param_6" (* "*") (identifier "param_6")) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n      *(int *)(param_2 + 0x20) = iVar6;\n      if (param_3 != 0) goto LAB_0006ac64;\n      param_4 = (undefined4 *)(iVar5 + iVar4);\n      if (local_402c[1] != '\0') {\n        MD5Init(auStack_4098);\n        uVar7 = (*(code *)PTR_strlen_000b2e48)(param_5);\n        MD5Update(auStack_4098,param_5,uVar7);\n        MD5Final(auStack_403c,auStack_4098);\n        des3_decrypt_pubkey(auStack_403c,local_402c + (int)param_4,\n                            (uVar3 - (int)param_4) + 7 & 0xfffffff8);\n        (*(code *)PTR_smemclr_000b2460)(auStack_403c,0x10);\n      }\n      if ((int)(uVar3 - (int)param_4) < 4) goto LAB_0006abf8;\n      if ((local_402c[(int)param_4] == (local_402c + 2)[(int)param_4]) &&\n         ((local_402c + 1)[(int)param_4] == (local_402c + 3)[(int)param_4])) goto LAB_0006ad20;\n      uVar8 = 0xffffffff;\n      *param_6 = PTR_s_entropy_source_000b23f0 + -0x2f9c;\n    }" (else "else") (compound_statement "{\n      *(int *)(param_2 + 0x20) = iVar6;\n      if (param_3 != 0) goto LAB_0006ac64;\n      param_4 = (undefined4 *)(iVar5 + iVar4);\n      if (local_402c[1] != '\0') {\n        MD5Init(auStack_4098);\n        uVar7 = (*(code *)PTR_strlen_000b2e48)(param_5);\n        MD5Update(auStack_4098,param_5,uVar7);\n        MD5Final(auStack_403c,auStack_4098);\n        des3_decrypt_pubkey(auStack_403c,local_402c + (int)param_4,\n                            (uVar3 - (int)param_4) + 7 & 0xfffffff8);\n        (*(code *)PTR_smemclr_000b2460)(auStack_403c,0x10);\n      }\n      if ((int)(uVar3 - (int)param_4) < 4) goto LAB_0006abf8;\n      if ((local_402c[(int)param_4] == (local_402c + 2)[(int)param_4]) &&\n         ((local_402c + 1)[(int)param_4] == (local_402c + 3)[(int)param_4])) goto LAB_0006ad20;\n      uVar8 = 0xffffffff;\n      *param_6 = PTR_s_entropy_source_000b23f0 + -0x2f9c;\n    }" ({ "{") (expression_statement "*(int *)(param_2 + 0x20) = iVar6;" (assignment_expression "*(int *)(param_2 + 0x20) = iVar6" (pointer_expression "*(int *)(param_2 + 0x20)" (* "*") (cast_expression "(int *)(param_2 + 0x20)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x20)" (( "(") (binary_expression "param_2 + 0x20" (identifier "param_2") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (identifier "iVar6")) (; ";")) (if_statement "if (param_3 != 0) goto LAB_0006ac64;" (if "if") (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_0006ac64;" (goto "goto") (statement_identifier "LAB_0006ac64") (; ";"))) (expression_statement "param_4 = (undefined4 *)(iVar5 + iVar4);" (assignment_expression "param_4 = (undefined4 *)(iVar5 + iVar4)" (identifier "param_4") (= "=") (cast_expression "(undefined4 *)(iVar5 + iVar4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + iVar4)" (( "(") (binary_expression "iVar5 + iVar4" (identifier "iVar5") (+ "+") (identifier "iVar4")) () ")")))) (; ";")) (if_statement "if (local_402c[1] != '\0') {\n        MD5Init(auStack_4098);\n        uVar7 = (*(code *)PTR_strlen_000b2e48)(param_5);\n        MD5Update(auStack_4098,param_5,uVar7);\n        MD5Final(auStack_403c,auStack_4098);\n        des3_decrypt_pubkey(auStack_403c,local_402c + (int)param_4,\n                            (uVar3 - (int)param_4) + 7 & 0xfffffff8);\n        (*(code *)PTR_smemclr_000b2460)(auStack_403c,0x10);\n      }" (if "if") (parenthesized_expression "(local_402c[1] != '\0')" (( "(") (binary_expression "local_402c[1] != '\0'" (subscript_expression "local_402c[1]" (identifier "local_402c") ([ "[") (number_literal "1") (] "]")) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        MD5Init(auStack_4098);\n        uVar7 = (*(code *)PTR_strlen_000b2e48)(param_5);\n        MD5Update(auStack_4098,param_5,uVar7);\n        MD5Final(auStack_403c,auStack_4098);\n        des3_decrypt_pubkey(auStack_403c,local_402c + (int)param_4,\n                            (uVar3 - (int)param_4) + 7 & 0xfffffff8);\n        (*(code *)PTR_smemclr_000b2460)(auStack_403c,0x10);\n      }" ({ "{") (expression_statement "MD5Init(auStack_4098);" (call_expression "MD5Init(auStack_4098)" (identifier "MD5Init") (argument_list "(auStack_4098)" (( "(") (identifier "auStack_4098") () ")"))) (; ";")) (expression_statement "uVar7 = (*(code *)PTR_strlen_000b2e48)(param_5);" (assignment_expression "uVar7 = (*(code *)PTR_strlen_000b2e48)(param_5)" (identifier "uVar7") (= "=") (call_expression "(*(code *)PTR_strlen_000b2e48)(param_5)" (parenthesized_expression "(*(code *)PTR_strlen_000b2e48)" (( "(") (pointer_expression "*(code *)PTR_strlen_000b2e48" (* "*") (cast_expression "(code *)PTR_strlen_000b2e48" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_000b2e48"))) () ")")) (argument_list "(param_5)" (( "(") (identifier "param_5") () ")")))) (; ";")) (expression_statement "MD5Update(auStack_4098,param_5,uVar7);" (call_expression "MD5Update(auStack_4098,param_5,uVar7)" (identifier "MD5Update") (argument_list "(auStack_4098,param_5,uVar7)" (( "(") (identifier "auStack_4098") (, ",") (identifier "param_5") (, ",") (identifier "uVar7") () ")"))) (; ";")) (expression_statement "MD5Final(auStack_403c,auStack_4098);" (call_expression "MD5Final(auStack_403c,auStack_4098)" (identifier "MD5Final") (argument_list "(auStack_403c,auStack_4098)" (( "(") (identifier "auStack_403c") (, ",") (identifier "auStack_4098") () ")"))) (; ";")) (expression_statement "des3_decrypt_pubkey(auStack_403c,local_402c + (int)param_4,\n                            (uVar3 - (int)param_4) + 7 & 0xfffffff8);" (call_expression "des3_decrypt_pubkey(auStack_403c,local_402c + (int)param_4,\n                            (uVar3 - (int)param_4) + 7 & 0xfffffff8)" (identifier "des3_decrypt_pubkey") (argument_list "(auStack_403c,local_402c + (int)param_4,\n                            (uVar3 - (int)param_4) + 7 & 0xfffffff8)" (( "(") (identifier "auStack_403c") (, ",") (binary_expression "local_402c + (int)param_4" (identifier "local_402c") (+ "+") (cast_expression "(int)param_4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_4"))) (, ",") (binary_expression "(uVar3 - (int)param_4) + 7 & 0xfffffff8" (binary_expression "(uVar3 - (int)param_4) + 7" (parenthesized_expression "(uVar3 - (int)param_4)" (( "(") (binary_expression "uVar3 - (int)param_4" (identifier "uVar3") (- "-") (cast_expression "(int)param_4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_4"))) () ")")) (+ "+") (number_literal "7")) (& "&") (number_literal "0xfffffff8")) () ")"))) (; ";")) (expression_statement "(*(code *)PTR_smemclr_000b2460)(auStack_403c,0x10);" (call_expression "(*(code *)PTR_smemclr_000b2460)(auStack_403c,0x10)" (parenthesized_expression "(*(code *)PTR_smemclr_000b2460)" (( "(") (pointer_expression "*(code *)PTR_smemclr_000b2460" (* "*") (cast_expression "(code *)PTR_smemclr_000b2460" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_smemclr_000b2460"))) () ")")) (argument_list "(auStack_403c,0x10)" (( "(") (identifier "auStack_403c") (, ",") (number_literal "0x10") () ")"))) (; ";")) (} "}"))) (if_statement "if ((int)(uVar3 - (int)param_4) < 4) goto LAB_0006abf8;" (if "if") (parenthesized_expression "((int)(uVar3 - (int)param_4) < 4)" (( "(") (binary_expression "(int)(uVar3 - (int)param_4) < 4" (cast_expression "(int)(uVar3 - (int)param_4)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(uVar3 - (int)param_4)" (( "(") (binary_expression "uVar3 - (int)param_4" (identifier "uVar3") (- "-") (cast_expression "(int)param_4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_4"))) () ")"))) (< "<") (number_literal "4")) () ")")) (goto_statement "goto LAB_0006abf8;" (goto "goto") (statement_identifier "LAB_0006abf8") (; ";"))) (if_statement "if ((local_402c[(int)param_4] == (local_402c + 2)[(int)param_4]) &&\n         ((local_402c + 1)[(int)param_4] == (local_402c + 3)[(int)param_4])) goto LAB_0006ad20;" (if "if") (parenthesized_expression "((local_402c[(int)param_4] == (local_402c + 2)[(int)param_4]) &&\n         ((local_402c + 1)[(int)param_4] == (local_402c + 3)[(int)param_4]))" (( "(") (binary_expression "(local_402c[(int)param_4] == (local_402c + 2)[(int)param_4]) &&\n         ((local_402c + 1)[(int)param_4] == (local_402c + 3)[(int)param_4])" (parenthesized_expression "(local_402c[(int)param_4] == (local_402c + 2)[(int)param_4])" (( "(") (binary_expression "local_402c[(int)param_4] == (local_402c + 2)[(int)param_4]" (subscript_expression "local_402c[(int)param_4]" (identifier "local_402c") ([ "[") (cast_expression "(int)param_4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_4")) (] "]")) (== "==") (subscript_expression "(local_402c + 2)[(int)param_4]" (parenthesized_expression "(local_402c + 2)" (( "(") (binary_expression "local_402c + 2" (identifier "local_402c") (+ "+") (number_literal "2")) () ")")) ([ "[") (cast_expression "(int)param_4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_4")) (] "]"))) () ")")) (&& "&&") (parenthesized_expression "((local_402c + 1)[(int)param_4] == (local_402c + 3)[(int)param_4])" (( "(") (binary_expression "(local_402c + 1)[(int)param_4] == (local_402c + 3)[(int)param_4]" (subscript_expression "(local_402c + 1)[(int)param_4]" (parenthesized_expression "(local_402c + 1)" (( "(") (binary_expression "local_402c + 1" (identifier "local_402c") (+ "+") (number_literal "1")) () ")")) ([ "[") (cast_expression "(int)param_4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_4")) (] "]")) (== "==") (subscript_expression "(local_402c + 3)[(int)param_4]" (parenthesized_expression "(local_402c + 3)" (( "(") (binary_expression "local_402c + 3" (identifier "local_402c") (+ "+") (number_literal "3")) () ")")) ([ "[") (cast_expression "(int)param_4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_4")) (] "]"))) () ")"))) () ")")) (goto_statement "goto LAB_0006ad20;" (goto "goto") (statement_identifier "LAB_0006ad20") (; ";"))) (expression_statement "uVar8 = 0xffffffff;" (assignment_expression "uVar8 = 0xffffffff" (identifier "uVar8") (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "*param_6 = PTR_s_entropy_source_000b23f0 + -0x2f9c;" (assignment_expression "*param_6 = PTR_s_entropy_source_000b23f0 + -0x2f9c" (pointer_expression "*param_6" (* "*") (identifier "param_6")) (= "=") (binary_expression "PTR_s_entropy_source_000b23f0 + -0x2f9c" (identifier "PTR_s_entropy_source_000b23f0") (+ "+") (number_literal "-0x2f9c"))) (; ";")) (} "}")))) (} "}")))) (do_statement "do {\n    while( true ) {\n      (*(code *)PTR_smemclr_000b2460)(local_402c,0x4000);\n      if (local_2c == *(int *)puVar2) {\n        return uVar8;\n      }\n      (*(code *)PTR___stack_chk_fail_000b2ed8)();\nLAB_0006ad20:\n      param_4 = param_4 + 1;\n      iVar4 = makeprivate(local_402c + (int)param_4,uVar3 - (int)param_4,param_2);\n      if (-1 < iVar4) break;\nLAB_0006abf8:\n      uVar8 = 0;\n    }\n    param_4 = (undefined4 *)((int)param_4 + iVar4);\n    iVar4 = ssh1_read_bignum(local_402c + (int)param_4,uVar3 - (int)param_4,param_2 + 0x1c);\n    if (iVar4 < 0) goto LAB_0006abf8;\n    param_4 = (undefined4 *)((int)param_4 + iVar4);\n    iVar4 = ssh1_read_bignum(local_402c + (int)param_4,uVar3 - (int)param_4,param_2 + 0x18);\n    if ((iVar4 < 0) ||\n       (iVar4 = ssh1_read_bignum(local_402c + (int)param_4 + iVar4,uVar3 - ((int)param_4 + iVar4),\n                                 param_2 + 0x14), iVar4 < 0)) goto LAB_0006abf8;\n    iVar4 = rsa_verify(param_2);\n    if (iVar4 == 0) {\n      *param_6 = PTR_s_entropy_source_000b23f0 + -0x2f88;\n      freersakey(param_2);\n      uVar8 = 0;\n    }\n    else {\nLAB_0006ac64:\n      uVar8 = 1;\n    }\n  } while( true );" (do "do") (compound_statement "{\n    while( true ) {\n      (*(code *)PTR_smemclr_000b2460)(local_402c,0x4000);\n      if (local_2c == *(int *)puVar2) {\n        return uVar8;\n      }\n      (*(code *)PTR___stack_chk_fail_000b2ed8)();\nLAB_0006ad20:\n      param_4 = param_4 + 1;\n      iVar4 = makeprivate(local_402c + (int)param_4,uVar3 - (int)param_4,param_2);\n      if (-1 < iVar4) break;\nLAB_0006abf8:\n      uVar8 = 0;\n    }\n    param_4 = (undefined4 *)((int)param_4 + iVar4);\n    iVar4 = ssh1_read_bignum(local_402c + (int)param_4,uVar3 - (int)param_4,param_2 + 0x1c);\n    if (iVar4 < 0) goto LAB_0006abf8;\n    param_4 = (undefined4 *)((int)param_4 + iVar4);\n    iVar4 = ssh1_read_bignum(local_402c + (int)param_4,uVar3 - (int)param_4,param_2 + 0x18);\n    if ((iVar4 < 0) ||\n       (iVar4 = ssh1_read_bignum(local_402c + (int)param_4 + iVar4,uVar3 - ((int)param_4 + iVar4),\n                                 param_2 + 0x14), iVar4 < 0)) goto LAB_0006abf8;\n    iVar4 = rsa_verify(param_2);\n    if (iVar4 == 0) {\n      *param_6 = PTR_s_entropy_source_000b23f0 + -0x2f88;\n      freersakey(param_2);\n      uVar8 = 0;\n    }\n    else {\nLAB_0006ac64:\n      uVar8 = 1;\n    }\n  }" ({ "{") (while_statement "while( true ) {\n      (*(code *)PTR_smemclr_000b2460)(local_402c,0x4000);\n      if (local_2c == *(int *)puVar2) {\n        return uVar8;\n      }\n      (*(code *)PTR___stack_chk_fail_000b2ed8)();\nLAB_0006ad20:\n      param_4 = param_4 + 1;\n      iVar4 = makeprivate(local_402c + (int)param_4,uVar3 - (int)param_4,param_2);\n      if (-1 < iVar4) break;\nLAB_0006abf8:\n      uVar8 = 0;\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      (*(code *)PTR_smemclr_000b2460)(local_402c,0x4000);\n      if (local_2c == *(int *)puVar2) {\n        return uVar8;\n      }\n      (*(code *)PTR___stack_chk_fail_000b2ed8)();\nLAB_0006ad20:\n      param_4 = param_4 + 1;\n      iVar4 = makeprivate(local_402c + (int)param_4,uVar3 - (int)param_4,param_2);\n      if (-1 < iVar4) break;\nLAB_0006abf8:\n      uVar8 = 0;\n    }" ({ "{") (expression_statement "(*(code *)PTR_smemclr_000b2460)(local_402c,0x4000);" (call_expression "(*(code *)PTR_smemclr_000b2460)(local_402c,0x4000)" (parenthesized_expression "(*(code *)PTR_smemclr_000b2460)" (( "(") (pointer_expression "*(code *)PTR_smemclr_000b2460" (* "*") (cast_expression "(code *)PTR_smemclr_000b2460" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_smemclr_000b2460"))) () ")")) (argument_list "(local_402c,0x4000)" (( "(") (identifier "local_402c") (, ",") (number_literal "0x4000") () ")"))) (; ";")) (if_statement "if (local_2c == *(int *)puVar2) {\n        return uVar8;\n      }" (if "if") (parenthesized_expression "(local_2c == *(int *)puVar2)" (( "(") (binary_expression "local_2c == *(int *)puVar2" (identifier "local_2c") (== "==") (pointer_expression "*(int *)puVar2" (* "*") (cast_expression "(int *)puVar2" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2")))) () ")")) (compound_statement "{\n        return uVar8;\n      }" ({ "{") (return_statement "return uVar8;" (return "return") (identifier "uVar8") (; ";")) (} "}"))) (expression_statement "(*(code *)PTR___stack_chk_fail_000b2ed8)();" (call_expression "(*(code *)PTR___stack_chk_fail_000b2ed8)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000b2ed8)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_000b2ed8" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_000b2ed8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_000b2ed8"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (labeled_statement "LAB_0006ad20:\n      param_4 = param_4 + 1;" (statement_identifier "LAB_0006ad20") (: ":") (expression_statement "param_4 = param_4 + 1;" (assignment_expression "param_4 = param_4 + 1" (identifier "param_4") (= "=") (binary_expression "param_4 + 1" (identifier "param_4") (+ "+") (number_literal "1"))) (; ";"))) (expression_statement "iVar4 = makeprivate(local_402c + (int)param_4,uVar3 - (int)param_4,param_2);" (assignment_expression "iVar4 = makeprivate(local_402c + (int)param_4,uVar3 - (int)param_4,param_2)" (identifier "iVar4") (= "=") (call_expression "makeprivate(local_402c + (int)param_4,uVar3 - (int)param_4,param_2)" (identifier "makeprivate") (argument_list "(local_402c + (int)param_4,uVar3 - (int)param_4,param_2)" (( "(") (binary_expression "local_402c + (int)param_4" (identifier "local_402c") (+ "+") (cast_expression "(int)param_4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_4"))) (, ",") (binary_expression "uVar3 - (int)param_4" (identifier "uVar3") (- "-") (cast_expression "(int)param_4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_4"))) (, ",") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (-1 < iVar4) break;" (if "if") (parenthesized_expression "(-1 < iVar4)" (( "(") (binary_expression "-1 < iVar4" (number_literal "-1") (< "<") (identifier "iVar4")) () ")")) (break_statement "break;" (break "break") (; ";"))) (labeled_statement "LAB_0006abf8:\n      uVar8 = 0;" (statement_identifier "LAB_0006abf8") (: ":") (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" (identifier "uVar8") (= "=") (number_literal "0")) (; ";"))) (} "}"))) (expression_statement "param_4 = (undefined4 *)((int)param_4 + iVar4);" (assignment_expression "param_4 = (undefined4 *)((int)param_4 + iVar4)" (identifier "param_4") (= "=") (cast_expression "(undefined4 *)((int)param_4 + iVar4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_4 + iVar4)" (( "(") (binary_expression "(int)param_4 + iVar4" (cast_expression "(int)param_4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_4")) (+ "+") (identifier "iVar4")) () ")")))) (; ";")) (expression_statement "iVar4 = ssh1_read_bignum(local_402c + (int)param_4,uVar3 - (int)param_4,param_2 + 0x1c);" (assignment_expression "iVar4 = ssh1_read_bignum(local_402c + (int)param_4,uVar3 - (int)param_4,param_2 + 0x1c)" (identifier "iVar4") (= "=") (call_expression "ssh1_read_bignum(local_402c + (int)param_4,uVar3 - (int)param_4,param_2 + 0x1c)" (identifier "ssh1_read_bignum") (argument_list "(local_402c + (int)param_4,uVar3 - (int)param_4,param_2 + 0x1c)" (( "(") (binary_expression "local_402c + (int)param_4" (identifier "local_402c") (+ "+") (cast_expression "(int)param_4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_4"))) (, ",") (binary_expression "uVar3 - (int)param_4" (identifier "uVar3") (- "-") (cast_expression "(int)param_4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_4"))) (, ",") (binary_expression "param_2 + 0x1c" (identifier "param_2") (+ "+") (number_literal "0x1c")) () ")")))) (; ";")) (if_statement "if (iVar4 < 0) goto LAB_0006abf8;" (if "if") (parenthesized_expression "(iVar4 < 0)" (( "(") (binary_expression "iVar4 < 0" (identifier "iVar4") (< "<") (number_literal "0")) () ")")) (goto_statement "goto LAB_0006abf8;" (goto "goto") (statement_identifier "LAB_0006abf8") (; ";"))) (expression_statement "param_4 = (undefined4 *)((int)param_4 + iVar4);" (assignment_expression "param_4 = (undefined4 *)((int)param_4 + iVar4)" (identifier "param_4") (= "=") (cast_expression "(undefined4 *)((int)param_4 + iVar4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_4 + iVar4)" (( "(") (binary_expression "(int)param_4 + iVar4" (cast_expression "(int)param_4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_4")) (+ "+") (identifier "iVar4")) () ")")))) (; ";")) (expression_statement "iVar4 = ssh1_read_bignum(local_402c + (int)param_4,uVar3 - (int)param_4,param_2 + 0x18);" (assignment_expression "iVar4 = ssh1_read_bignum(local_402c + (int)param_4,uVar3 - (int)param_4,param_2 + 0x18)" (identifier "iVar4") (= "=") (call_expression "ssh1_read_bignum(local_402c + (int)param_4,uVar3 - (int)param_4,param_2 + 0x18)" (identifier "ssh1_read_bignum") (argument_list "(local_402c + (int)param_4,uVar3 - (int)param_4,param_2 + 0x18)" (( "(") (binary_expression "local_402c + (int)param_4" (identifier "local_402c") (+ "+") (cast_expression "(int)param_4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_4"))) (, ",") (binary_expression "uVar3 - (int)param_4" (identifier "uVar3") (- "-") (cast_expression "(int)param_4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_4"))) (, ",") (binary_expression "param_2 + 0x18" (identifier "param_2") (+ "+") (number_literal "0x18")) () ")")))) (; ";")) (if_statement "if ((iVar4 < 0) ||\n       (iVar4 = ssh1_read_bignum(local_402c + (int)param_4 + iVar4,uVar3 - ((int)param_4 + iVar4),\n                                 param_2 + 0x14), iVar4 < 0)) goto LAB_0006abf8;" (if "if") (parenthesized_expression "((iVar4 < 0) ||\n       (iVar4 = ssh1_read_bignum(local_402c + (int)param_4 + iVar4,uVar3 - ((int)param_4 + iVar4),\n                                 param_2 + 0x14), iVar4 < 0))" (( "(") (binary_expression "(iVar4 < 0) ||\n       (iVar4 = ssh1_read_bignum(local_402c + (int)param_4 + iVar4,uVar3 - ((int)param_4 + iVar4),\n                                 param_2 + 0x14), iVar4 < 0)" (parenthesized_expression "(iVar4 < 0)" (( "(") (binary_expression "iVar4 < 0" (identifier "iVar4") (< "<") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(iVar4 = ssh1_read_bignum(local_402c + (int)param_4 + iVar4,uVar3 - ((int)param_4 + iVar4),\n                                 param_2 + 0x14), iVar4 < 0)" (( "(") (comma_expression "iVar4 = ssh1_read_bignum(local_402c + (int)param_4 + iVar4,uVar3 - ((int)param_4 + iVar4),\n                                 param_2 + 0x14), iVar4 < 0" (assignment_expression "iVar4 = ssh1_read_bignum(local_402c + (int)param_4 + iVar4,uVar3 - ((int)param_4 + iVar4),\n                                 param_2 + 0x14)" (identifier "iVar4") (= "=") (call_expression "ssh1_read_bignum(local_402c + (int)param_4 + iVar4,uVar3 - ((int)param_4 + iVar4),\n                                 param_2 + 0x14)" (identifier "ssh1_read_bignum") (argument_list "(local_402c + (int)param_4 + iVar4,uVar3 - ((int)param_4 + iVar4),\n                                 param_2 + 0x14)" (( "(") (binary_expression "local_402c + (int)param_4 + iVar4" (binary_expression "local_402c + (int)param_4" (identifier "local_402c") (+ "+") (cast_expression "(int)param_4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_4"))) (+ "+") (identifier "iVar4")) (, ",") (binary_expression "uVar3 - ((int)param_4 + iVar4)" (identifier "uVar3") (- "-") (parenthesized_expression "((int)param_4 + iVar4)" (( "(") (binary_expression "(int)param_4 + iVar4" (cast_expression "(int)param_4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_4")) (+ "+") (identifier "iVar4")) () ")"))) (, ",") (binary_expression "param_2 + 0x14" (identifier "param_2") (+ "+") (number_literal "0x14")) () ")")))) (, ",") (binary_expression "iVar4 < 0" (identifier "iVar4") (< "<") (number_literal "0"))) () ")"))) () ")")) (goto_statement "goto LAB_0006abf8;" (goto "goto") (statement_identifier "LAB_0006abf8") (; ";"))) (expression_statement "iVar4 = rsa_verify(param_2);" (assignment_expression "iVar4 = rsa_verify(param_2)" (identifier "iVar4") (= "=") (call_expression "rsa_verify(param_2)" (identifier "rsa_verify") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (if_statement "if (iVar4 == 0) {\n      *param_6 = PTR_s_entropy_source_000b23f0 + -0x2f88;\n      freersakey(param_2);\n      uVar8 = 0;\n    }\n    else {\nLAB_0006ac64:\n      uVar8 = 1;\n    }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      *param_6 = PTR_s_entropy_source_000b23f0 + -0x2f88;\n      freersakey(param_2);\n      uVar8 = 0;\n    }" ({ "{") (expression_statement "*param_6 = PTR_s_entropy_source_000b23f0 + -0x2f88;" (assignment_expression "*param_6 = PTR_s_entropy_source_000b23f0 + -0x2f88" (pointer_expression "*param_6" (* "*") (identifier "param_6")) (= "=") (binary_expression "PTR_s_entropy_source_000b23f0 + -0x2f88" (identifier "PTR_s_entropy_source_000b23f0") (+ "+") (number_literal "-0x2f88"))) (; ";")) (expression_statement "freersakey(param_2);" (call_expression "freersakey(param_2)" (identifier "freersakey") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")"))) (; ";")) (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" (identifier "uVar8") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\nLAB_0006ac64:\n      uVar8 = 1;\n    }" (else "else") (compound_statement "{\nLAB_0006ac64:\n      uVar8 = 1;\n    }" ({ "{") (labeled_statement "LAB_0006ac64:\n      uVar8 = 1;" (statement_identifier "LAB_0006ac64") (: ":") (expression_statement "uVar8 = 1;" (assignment_expression "uVar8 = 1" (identifier "uVar8") (= "=") (number_literal "1")) (; ";"))) (} "}")))) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

int function_1(type_1 *fp,type_2 *var_9,int var_10,char **var_8,char *passphrase,
                   char **error)

{
  type_3 *puVar1;
  type_3 *puVar2;
  int var_15;
  type_4 var_1;
  int var_5;
  int var_6;
  char *var_7;
  char *pcVar8;
  type_4 uVar9;
  type_5 md5c;
  type_6 keybuf [16];
  type_6 var_4 [16384];
  
  puVar2 = PTR___stack_chk_guard_000b2f04;
  puVar1 = PTR_fread_000b2ea8;
  var_15 = *(int *)PTR___stack_chk_guard_000b2f04;
  *error = (char *)0x0;
  var_1 = (*(type_7 *)puVar1)(var_4,1,0x4000,fp);
  (*(type_7 *)PTR_fclose_000b2dac)(fp);
  if (((int)var_1 < 0) || (var_1 == 0x4000)) {
    uVar9 = 0;
    *error = var_2 + -0x2fc4;
  }
  else {
    *error = var_2 + -0x2fb0;
    if (var_1 < 2) goto LAB_0006abf8;
    if (var_4[0] != '\0') goto LAB_0006abf8;
    if ((var_4[1] != '\0') && (var_4[1] != '\x03')) goto LAB_0006abf8;
    if ((int)var_1 < 6) goto LAB_0006abf8;
    if (((var_4[2] != '\0' || var_4[3] != '\0') || var_4[4] != '\0') || var_4[5] != '\0') goto LAB_0006abf8;
    var_5 = var_3(var_4 + 6,var_1 - 6,var_9,(type_6 **)0x0,1);
    if (var_5 < 0) goto LAB_0006abf8;
    var_6 = (*(type_7 *)PTR_toint_000b24f4)
                      ((type_4)var_4[var_5 + 6] << 0x18 | (type_4)var_4[var_5 + 7] << 0x10 |
                       (type_4)var_4[var_5 + 9] | (type_4)var_4[var_5 + 8] << 8);
    if (var_6 < 0) goto LAB_0006abf8;
    var_5 = var_5 + 10;
    if ((int)(var_1 - var_5) < var_6) goto LAB_0006abf8;
    var_7 = (char *)(*(type_7 *)PTR_safemalloc_000b2408)(var_6 + 1,1);
    if (var_7 != (char *)0x0) {
      var_7 = (char *)(*(type_7 *)PTR_memcpy_000b2f08)(var_7,var_4 + var_5,var_6);
      var_7[var_6] = '\0';
    }
    if (var_8 != (char **)0x0) {
      pcVar8 = (char *)(*(type_7 *)PTR_dupstr_000b2410)(var_7);
      *var_8 = pcVar8;
    }
    if (var_9 == (type_2 *)0x0) {
      (*(type_7 *)PTR_safefree_000b23d0)(var_7);
      if (var_10 != 0) goto LAB_0006ac64;
      uVar9 = (type_4)(var_4[1] != '\0');
      *error = (char *)0x0;
    }
    else {
      var_9->comment = var_7;
      if (var_10 != 0) goto LAB_0006ac64;
      var_8 = (char **)(var_6 + var_5);
      if (var_4[1] != '\0') {
        var_11(&md5c);
        uVar9 = (*(type_7 *)PTR_strlen_000b2e48)(passphrase);
        var_12(&md5c,(type_6 *)passphrase,uVar9);
        var_13(keybuf,&md5c);
        var_14(keybuf,var_4 + (int)var_8,(var_1 - (int)var_8) + 7 & 0xfffffff8)
        ;
        (*(type_7 *)PTR_smemclr_000b2460)(keybuf,0x10);
      }
      if ((int)(var_1 - (int)var_8) < 4) goto LAB_0006abf8;
      if ((var_4[(int)var_8] == (var_4 + 2)[(int)var_8]) &&
         ((var_4 + 1)[(int)var_8] == (var_4 + 3)[(int)var_8])) goto LAB_0006ad20;
      uVar9 = 0xffffffff;
      *error = var_2 + -0x2f9c;
    }
  }
  do {
    while( true ) {
      (*(type_7 *)PTR_smemclr_000b2460)(var_4,0x4000);
      if (var_15 == *(int *)puVar2) {
        return uVar9;
      }
      (*(type_7 *)PTR___stack_chk_fail_000b2ed8)();
LAB_0006ad20:
      var_8 = var_8 + 1;
      var_5 = var_16(var_4 + (int)var_8,var_1 - (int)var_8,var_9);
      if (-1 < var_5) break;
LAB_0006abf8:
      uVar9 = 0;
    }
    var_8 = (char **)((int)var_8 + var_5);
    var_5 = var_17(var_4 + (int)var_8,var_1 - (int)var_8,
                             (type_8 *)&var_9->iqmp);
    if (var_5 < 0) goto LAB_0006abf8;
    var_8 = (char **)((int)var_8 + var_5);
    var_5 = var_17(var_4 + (int)var_8,var_1 - (int)var_8,
                             (type_8 *)&var_9->q);
    if ((var_5 < 0) ||
       (var_5 = var_17(var_4 + (int)var_8 + var_5,var_1 - ((int)var_8 + var_5),
                                 (type_8 *)&var_9->p), var_5 < 0)) goto LAB_0006abf8;
    var_5 = var_18(var_9);
    if (var_5 == 0) {
      *error = var_2 + -0x2f88;
      var_19(var_9);
      uVar9 = 0;
    }
    else {
LAB_0006ac64:
      uVar9 = 1;
    }
  } while( true );
}


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

uint MASKED(undefined4 param_1,int param_2,int param_3,undefined4 *param_4,undefined4 param_5,
                 undefined4 *param_6)

{
  undefined *puVar1;
  undefined *puVar2;
  uint uVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  undefined4 uVar7;
  uint uVar8;
  undefined1 auStack_4098 [92];
  undefined1 auStack_403c [16];
  char local_402c [4];
  char local_4028 [16380];
  int local_2c;
  
  puVar2 = PTR___stack_chk_guard_000b2f04;
  puVar1 = PTR_fread_000b2ea8;
  local_2c = *(int *)PTR___stack_chk_guard_000b2f04;
  *param_6 = 0;
  uVar3 = (*(code *)puVar1)(local_402c,1,0x4000,param_1);
  (*(code *)PTR_fclose_000b2dac)(param_1);
  if (((int)uVar3 < 0) || (uVar3 == 0x4000)) {
    uVar8 = 0;
    *param_6 = PTR_s_entropy_source_000b23f0 + -0x2fc4;
  }
  else {
    *param_6 = PTR_s_entropy_source_000b23f0 + -0x2fb0;
    if (uVar3 < 2) goto LAB_0006abf8;
    if (local_402c[0] != '\0') goto LAB_0006abf8;
    if ((local_402c[1] != '\0') && (local_402c[1] != '\x03')) goto LAB_0006abf8;
    if ((int)uVar3 < 6) goto LAB_0006abf8;
    if (((local_402c[2] != '\0' || local_402c[3] != '\0') || local_4028[0] != '\0') ||
        local_4028[1] != '\0') goto LAB_0006abf8;
    iVar4 = makekey(local_4028 + 2,uVar3 - 6,param_2,0,1);
    if (iVar4 < 0) goto LAB_0006abf8;
    iVar5 = (*(code *)PTR_toint_000b24f4)
                      ((uint)(byte)local_4028[iVar4 + 2] << 0x18 |
                       (uint)(byte)local_4028[iVar4 + 3] << 0x10 | (uint)(byte)local_4028[iVar4 + 5]
                       | (uint)(byte)local_4028[iVar4 + 4] << 8);
    if (iVar5 < 0) goto LAB_0006abf8;
    iVar4 = iVar4 + 10;
    if ((int)(uVar3 - iVar4) < iVar5) goto LAB_0006abf8;
    iVar6 = (*(code *)PTR_safemalloc_000b2408)(iVar5 + 1,1);
    if (iVar6 != 0) {
      iVar6 = (*(code *)PTR_memcpy_000b2f08)(iVar6,local_402c + iVar4,iVar5);
      *(undefined1 *)(iVar6 + iVar5) = 0;
    }
    if (param_4 != (undefined4 *)0x0) {
      uVar7 = (*(code *)PTR_dupstr_000b2410)(iVar6);
      *param_4 = uVar7;
    }
    if (param_2 == 0) {
      (*(code *)PTR_safefree_000b23d0)(iVar6);
      if (param_3 != 0) goto LAB_0006ac64;
      uVar8 = (uint)(local_402c[1] != '\0');
      *param_6 = 0;
    }
    else {
      *(int *)(param_2 + 0x20) = iVar6;
      if (param_3 != 0) goto LAB_0006ac64;
      param_4 = (undefined4 *)(iVar5 + iVar4);
      if (local_402c[1] != '\0') {
        MD5Init(auStack_4098);
        uVar7 = (*(code *)PTR_strlen_000b2e48)(param_5);
        MD5Update(auStack_4098,param_5,uVar7);
        MD5Final(auStack_403c,auStack_4098);
        des3_decrypt_pubkey(auStack_403c,local_402c + (int)param_4,
                            (uVar3 - (int)param_4) + 7 & 0xfffffff8);
        (*(code *)PTR_smemclr_000b2460)(auStack_403c,0x10);
      }
      if ((int)(uVar3 - (int)param_4) < 4) goto LAB_0006abf8;
      if ((local_402c[(int)param_4] == (local_402c + 2)[(int)param_4]) &&
         ((local_402c + 1)[(int)param_4] == (local_402c + 3)[(int)param_4])) goto LAB_0006ad20;
      uVar8 = 0xffffffff;
      *param_6 = PTR_s_entropy_source_000b23f0 + -0x2f9c;
    }
  }
  do {
    while( true ) {
      (*(code *)PTR_smemclr_000b2460)(local_402c,0x4000);
      if (local_2c == *(int *)puVar2) {
        return uVar8;
      }
      (*(code *)PTR___stack_chk_fail_000b2ed8)();
LAB_0006ad20:
      param_4 = param_4 + 1;
      iVar4 = makeprivate(local_402c + (int)param_4,uVar3 - (int)param_4,param_2);
      if (-1 < iVar4) break;
LAB_0006abf8:
      uVar8 = 0;
    }
    param_4 = (undefined4 *)((int)param_4 + iVar4);
    iVar4 = ssh1_read_bignum(local_402c + (int)param_4,uVar3 - (int)param_4,param_2 + 0x1c);
    if (iVar4 < 0) goto LAB_0006abf8;
    param_4 = (undefined4 *)((int)param_4 + iVar4);
    iVar4 = ssh1_read_bignum(local_402c + (int)param_4,uVar3 - (int)param_4,param_2 + 0x18);
    if ((iVar4 < 0) ||
       (iVar4 = ssh1_read_bignum(local_402c + (int)param_4 + iVar4,uVar3 - ((int)param_4 + iVar4),
                                 param_2 + 0x14), iVar4 < 0)) goto LAB_0006abf8;
    iVar4 = rsa_verify(param_2);
    if (iVar4 == 0) {
      *param_6 = PTR_s_entropy_source_000b23f0 + -0x2f88;
      freersakey(param_2);
      uVar8 = 0;
    }
    else {
LAB_0006ac64:
      uVar8 = 1;
    }
  } while( true );
}

