
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

ssh2_userkey * ssh2_load_userkey(Filename *filename,char *passphrase,char **errorstr)

{
  uint __n;
  uint __n_00;
  uint *puVar1;
  undefined1 *puVar2;
  char cVar3;
  int iVar4;
  int iVar5;
  byte bVar6;
  FILE *__stream;
  int iVar7;
  char *pcVar8;
  size_t namelen;
  ssh_signkey *psVar9;
  byte *pbVar10;
  char *pcVar11;
  SHA_CTX *c;
  void *pvVar12;
  uint uVar13;
  uint uVar14;
  uint uVar15;
  ssh2_userkey *ptr;
  byte *pbVar16;
  uchar *puVar17;
  SHA_CTX *c_00;
  byte *pbVar18;
  uchar *puVar19;
  uint __n_01;
  int in_GS_OFFSET;
  bool bVar20;
  bool bVar21;
  bool bVar22;
  byte bVar23;
  size_t sVar24;
  size_t local_14c;
  char *local_144;
  SHA_CTX *local_140;
  uchar *local_13c;
  SHA_CTX *local_134;
  size_t local_124;
  int public_blob_len;
  int private_blob_len;
  SHA_State s;
  uchar binary [20];
  uchar mackey [20];
  char header [40];
  uchar key [40];
  
  bVar23 = 0;
  iVar4 = *(int *)(in_GS_OFFSET + 0x14);
  local_14c = 0;
  if (passphrase != (char *)0x0) {
    local_14c = strlen(passphrase);
  }
  __stream = (FILE *)f_open(filename,"rb",0);
  if (__stream == (FILE *)0x0) {
    pcVar11 = "can\'t open file";
    ptr = (ssh2_userkey *)0x0;
  }
  else {
    iVar7 = read_header((FILE *)__stream,header);
    bVar20 = false;
    bVar22 = iVar7 == 0;
    if (bVar22) {
      pcVar11 = (char *)0x0;
      ptr = (ssh2_userkey *)0x0;
      fclose(__stream);
    }
    else {
      iVar7 = 0x16;
      pbVar10 = (byte *)header;
      pbVar16 = (byte *)"PuTTY-User-Key-File-2";
      do {
        if (iVar7 == 0) break;
        iVar7 = iVar7 + -1;
        bVar20 = *pbVar10 < *pbVar16;
        bVar22 = *pbVar10 == *pbVar16;
        pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1;
        pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;
      } while (bVar22);
      bVar6 = (!bVar20 && !bVar22) - bVar20;
      bVar20 = false;
      bVar22 = bVar6 == 0;
      if (!bVar22) {
        iVar7 = 0x16;
        pbVar10 = (byte *)header;
        pbVar16 = (byte *)"PuTTY-User-Key-File-1";
        do {
          if (iVar7 == 0) break;
          iVar7 = iVar7 + -1;
          bVar20 = *pbVar10 < *pbVar16;
          bVar22 = *pbVar10 == *pbVar16;
          pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1;
          pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;
        } while (bVar22);
        bVar21 = false;
        bVar20 = (!bVar20 && !bVar22) == bVar20;
        if (!bVar20) {
          iVar7 = 0x14;
          pbVar10 = (byte *)header;
          pbVar16 = (byte *)"PuTTY-User-Key-File-";
          do {
            if (iVar7 == 0) break;
            iVar7 = iVar7 + -1;
            bVar21 = *pbVar10 < *pbVar16;
            bVar20 = *pbVar10 == *pbVar16;
            pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1;
            pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;
          } while (bVar20);
          if ((!bVar21 && !bVar20) == bVar21) {
            pcVar11 = "PuTTY key format too new";
            ptr = (ssh2_userkey *)0x0;
            fclose(__stream);
          }
          else {
            pcVar11 = "not a PuTTY SSH-2 private key";
            ptr = (ssh2_userkey *)0x0;
            fclose(__stream);
          }
          goto LAB_00055070;
        }
        old_keyfile_warning();
        bVar6 = 1;
      }
      pcVar8 = read_body((FILE *)__stream);
      if (pcVar8 == (char *)0x0) goto LAB_0005510e;
      namelen = strlen(pcVar8);
      psVar9 = find_pubkey_alg_len(namelen,pcVar8);
      if (psVar9 == (ssh_signkey *)0x0) {
        pcVar11 = "file format error";
        safefree(pcVar8);
        ptr = (ssh2_userkey *)0x0;
        fclose(__stream);
        goto LAB_00055070;
      }
      safefree(pcVar8);
      iVar7 = read_header((FILE *)__stream,header);
      bVar20 = false;
      bVar22 = iVar7 == 0;
      if (!bVar22) {
        iVar7 = 0xb;
        pbVar10 = (byte *)header;
        pbVar16 = (byte *)"Encryption";
        do {
          if (iVar7 == 0) break;
          iVar7 = iVar7 + -1;
          bVar20 = *pbVar10 < *pbVar16;
          bVar22 = *pbVar10 == *pbVar16;
          pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1;
          pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;
        } while (bVar22);
        if ((!bVar20 && !bVar22) == bVar20) {
          pbVar10 = (byte *)read_body((FILE *)__stream);
          bVar20 = false;
          bVar22 = pbVar10 == (byte *)0x0;
          if (!bVar22) {
            iVar7 = 0xb;
            pbVar16 = pbVar10;
            pbVar18 = (byte *)"aes256-cbc";
            do {
              if (iVar7 == 0) break;
              iVar7 = iVar7 + -1;
              bVar20 = *pbVar16 < *pbVar18;
              bVar22 = *pbVar16 == *pbVar18;
              pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;
              pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;
            } while (bVar22);
            bVar21 = false;
            bVar20 = (!bVar20 && !bVar22) == bVar20;
            if (bVar20) {
              local_124 = 0x10;
              bVar20 = true;
LAB_000551a8:
              iVar7 = read_header((FILE *)__stream,header);
              bVar22 = false;
              bVar21 = iVar7 == 0;
              if (!bVar21) {
                iVar7 = 8;
                pbVar16 = (byte *)header;
                pbVar18 = (byte *)"Comment";
                do {
                  if (iVar7 == 0) break;
                  iVar7 = iVar7 + -1;
                  bVar22 = *pbVar16 < *pbVar18;
                  bVar21 = *pbVar16 == *pbVar18;
                  pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;
                  pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;
                } while (bVar21);
                if ((!bVar22 && !bVar21) == bVar22) {
                  pcVar8 = read_body((FILE *)__stream);
                  if (pcVar8 == (char *)0x0) {
                    pcVar11 = "file format error";
                    ptr = (ssh2_userkey *)0x0;
                    fclose(__stream);
                    safefree(pbVar10);
                    goto LAB_00055070;
                  }
                  iVar7 = read_header((FILE *)__stream,header);
                  bVar22 = false;
                  bVar21 = iVar7 == 0;
                  if (bVar21) {
LAB_000555ad:
                    local_140 = (SHA_CTX *)0x0;
                    local_13c = (uchar *)0x0;
LAB_0005553d:
                    pcVar11 = "file format error";
                    fclose(__stream);
LAB_0005554f:
                    ptr = (ssh2_userkey *)0x0;
                    safefree(pcVar8);
                    safefree(pbVar10);
                  }
                  else {
                    iVar7 = 0xd;
                    pbVar16 = (byte *)header;
                    pbVar18 = (byte *)"Public-Lines";
                    do {
                      if (iVar7 == 0) break;
                      iVar7 = iVar7 + -1;
                      bVar22 = *pbVar16 < *pbVar18;
                      bVar21 = *pbVar16 == *pbVar18;
                      pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;
                      pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;
                    } while (bVar21);
                    if ((!bVar22 && !bVar21) != bVar22) goto LAB_000555ad;
                    pcVar11 = read_body((FILE *)__stream);
                    if (pcVar11 == (char *)0x0) goto LAB_000555ad;
                    iVar7 = userkey_parse_line_counter(pcVar11);
                    safefree(pcVar11);
                    if (iVar7 < 0) goto LAB_000555ad;
                    local_13c = read_blob((FILE *)__stream,iVar7,&public_blob_len);
                    if (local_13c == (uchar *)0x0) goto LAB_000555ad;
                    iVar7 = read_header((FILE *)__stream,header);
                    if (iVar7 == 0) {
LAB_00055535:
                      local_140 = (SHA_CTX *)0x0;
                      goto LAB_0005553d;
                    }
                    iVar7 = strcmp(header,"Private-Lines");
                    local_140 = (SHA_CTX *)0x0;
                    if (iVar7 != 0) goto LAB_0005553d;
                    c = (SHA_CTX *)read_body((FILE *)__stream);
                    local_140 = c;
                    if (c == (SHA_CTX *)0x0) goto LAB_0005553d;
                    iVar7 = userkey_parse_line_counter((char *)c);
                    safefree(c);
                    if (iVar7 < 0) goto LAB_00055535;
                    local_140 = (SHA_CTX *)read_blob((FILE *)__stream,iVar7,&private_blob_len);
                    if (local_140 == (SHA_CTX *)0x0) goto LAB_0005553d;
                    iVar7 = read_header((FILE *)__stream,header);
                    if (iVar7 == 0) goto LAB_0005553d;
                    iVar7 = strcmp(header,"Private-MAC");
                    if (iVar7 != 0) {
                      iVar7 = strcmp(header,"Private-Hash");
                      if ((iVar7 != 0) || ((bVar6 & 1) == 0)) goto LAB_0005553d;
                      local_144 = read_body((FILE *)__stream);
                      if (local_144 == (char *)0x0) goto LAB_0005553d;
                      bVar22 = false;
                      fclose(__stream);
                      if (bVar20) goto LAB_000556cb;
LAB_00055378:
                      bVar21 = false;
                      local_124 = private_blob_len;
                      local_134 = local_140;
LAB_00055390:
                      if (bVar22) {
                        puVar17 = (uchar *)"putty-private-key-file-mac-key";
                        puVar19 = key;
                        for (iVar7 = 0x1f; iVar7 != 0; iVar7 = iVar7 + -1) {
                          *puVar19 = *puVar17;
                          puVar17 = puVar17 + (uint)bVar23 * -2 + 1;
                          puVar19 = puVar19 + (uint)bVar23 * -2 + 1;
                        }
                        c_00 = (SHA_CTX *)&s;
                        SHA_Init(c_00);
                        SHA_Bytes((SHA_State *)c_00,key,0x1e);
                        if ((passphrase != (char *)0x0) && (bVar20)) {
                          SHA_Bytes((SHA_State *)c_00,passphrase,local_14c);
                        }
                        c = (SHA_CTX *)passphrase;
                        SHA_Final((SHA_State *)c_00,mackey);
                        hmac_sha1_simple(mackey,0x14,local_134,local_124,binary);
                        smemclr(mackey,0x14);
                        sVar24 = 0x60;
                        smemclr(c_00,0x60);
                      }
                      else {
                        passphrase = (char *)binary;
                        sVar24 = local_124;
                        SHA_Simple(local_134,local_124,(uchar *)passphrase);
                        c_00 = (SHA_CTX *)0x0;
                      }
                      if (bVar21) {
                        c = c_00;
                        smemclr(local_134,local_124);
                        safefree(local_134);
                        sVar24 = local_124;
                        passphrase = (char *)c_00;
                      }
                      iVar7 = 0;
                      do {
                        puVar17 = binary + iVar7;
                        iVar5 = iVar7 * 2;
                        iVar7 = iVar7 + 1;
                        __sprintf_chk(key + iVar5,1,0xffffffff,&DAT_0007dc2b,*puVar17,sVar24,
                                      passphrase,c);
                      } while (iVar7 != 0x14);
                      iVar7 = strcmp(local_144,(char *)key);
                      if (iVar7 != 0) {
                        if (bVar20) {
                          pcVar11 = "wrong passphrase";
                          ptr = &ssh2_wrong_passphrase;
                        }
                        else {
                          pcVar11 = "MAC failed";
                          ptr = (ssh2_userkey *)0x0;
                        }
                        goto LAB_000554a5;
                      }
                      safefree(local_144);
                      ptr = (ssh2_userkey *)safemalloc(1,0xc);
                      ptr->comment = pcVar8;
                      ptr->alg = psVar9;
                      pvVar12 = (*psVar9->createkey)
                                          (psVar9,local_13c,public_blob_len,(uchar *)local_140,
                                           private_blob_len);
                      ptr->data = pvVar12;
                      if (pvVar12 != (void *)0x0) {
                        safefree(local_13c);
                        smemclr(local_140,private_blob_len);
                        safefree(local_140);
                        safefree(pbVar10);
                        if (errorstr != (char **)0x0) {
                          *errorstr = (char *)0x0;
                        }
                        goto LAB_0005507a;
                      }
                      pcVar11 = "createkey failed";
                      safefree(ptr);
                      goto LAB_0005554f;
                    }
                    local_144 = read_body((FILE *)__stream);
                    if (local_144 == (char *)0x0) goto LAB_0005553d;
                    fclose(__stream);
                    bVar22 = bVar20;
                    if (!bVar20) {
                      bVar22 = true;
LAB_00055778:
                      if (bVar6 != 0) goto LAB_00055378;
                      uVar13 = 0xffffffff;
                      pcVar11 = psVar9->name;
                      do {
                        if (uVar13 == 0) break;
                        uVar13 = uVar13 - 1;
                        cVar3 = *pcVar11;
                        pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1;
                      } while (cVar3 != '\0');
                      uVar13 = ~uVar13;
                      __n = uVar13 - 1;
                      uVar14 = 0xffffffff;
                      pbVar16 = pbVar10;
                      do {
                        if (uVar14 == 0) break;
                        uVar14 = uVar14 - 1;
                        bVar6 = *pbVar16;
                        pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;
                      } while (bVar6 != 0);
                      uVar15 = 0xffffffff;
                      uVar14 = ~uVar14;
                      __n_01 = uVar14 - 1;
                      pcVar11 = pcVar8;
                      do {
                        if (uVar15 == 0) break;
                        uVar15 = uVar15 - 1;
                        cVar3 = *pcVar11;
                        pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1;
                      } while (cVar3 != '\0');
                      uVar15 = ~uVar15;
                      __n_00 = uVar15 - 1;
                      local_124 = uVar15 + uVar14 + uVar13 + public_blob_len + 0x11 +
                                  private_blob_len;
                      local_134 = (SHA_CTX *)safemalloc(local_124,1);
                      local_134->h0 =
                           __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |
                           __n * 0x1000000;
                      memcpy(&local_134->h1,psVar9->name,__n);
                      puVar1 = (uint *)((int)local_134->data + (uVar13 - 0x19));
                      *puVar1 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8 |
                                __n_01 * 0x1000000;
                      memcpy(puVar1 + 1,pbVar10,__n_01);
                      puVar1 = (uint *)((int)puVar1 + uVar14 + 3);
                      *puVar1 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8 |
                                __n_00 * 0x1000000;
                      memcpy(puVar1 + 1,pcVar8,__n_00);
                      iVar7 = public_blob_len;
                      c = (SHA_CTX *)((int)puVar1 + uVar15 + 3);
                      *(undefined1 *)&c->h0 = public_blob_len._3_1_;
                      *(char *)((int)&c->h0 + 1) = (char)((uint)public_blob_len >> 0x10);
                      *(char *)((int)&c->h0 + 2) = (char)((uint)public_blob_len >> 8);
                      *(char *)((int)&c->h0 + 3) = (char)public_blob_len;
                      memcpy(&c->h1,local_13c,public_blob_len);
                      puVar2 = (undefined1 *)((int)c->data + iVar7 + -0x18);
                      *puVar2 = private_blob_len._3_1_;
                      puVar2[1] = (char)((uint)private_blob_len >> 0x10);
                      puVar2[2] = (char)((uint)private_blob_len >> 8);
                      puVar2[3] = (char)private_blob_len;
                      memcpy(puVar2 + 4,local_140,private_blob_len);
                      bVar21 = true;
                      goto LAB_00055390;
                    }
LAB_000556cb:
                    if ((passphrase != (char *)0x0) && (private_blob_len % (int)local_124 == 0)) {
                      c = (SHA_CTX *)&s;
                      SHA_Init(c);
                      SHA_Bytes((SHA_State *)c,&DAT_0007db1c,4);
                      SHA_Bytes((SHA_State *)c,passphrase,local_14c);
                      SHA_Final((SHA_State *)c,key);
                      SHA_Init(c);
                      SHA_Bytes((SHA_State *)c,&DAT_0007db21,4);
                      SHA_Bytes((SHA_State *)c,passphrase,local_14c);
                      SHA_Final((SHA_State *)c,key + 0x14);
                      aes256_decrypt_pubkey(key,(uchar *)local_140,private_blob_len);
                      goto LAB_00055778;
                    }
                    pcVar11 = "file format error";
                    ptr = (ssh2_userkey *)0x0;
LAB_000554a5:
                    safefree(pcVar8);
                    safefree(pbVar10);
                    safefree(local_144);
                  }
                  if (local_13c != (uchar *)0x0) {
                    safefree(local_13c);
                  }
                  if (local_140 != (SHA_CTX *)0x0) {
                    smemclr(local_140,private_blob_len);
                    safefree(local_140);
                  }
                  goto LAB_00055070;
                }
              }
            }
            else {
              iVar7 = 5;
              pbVar16 = pbVar10;
              pbVar18 = &DAT_0007471c;
              do {
                if (iVar7 == 0) break;
                iVar7 = iVar7 + -1;
                bVar21 = *pbVar16 < *pbVar18;
                bVar20 = *pbVar16 == *pbVar18;
                pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;
                pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;
              } while (bVar20);
              if ((!bVar21 && !bVar20) == bVar21) {
                local_124 = 1;
                bVar20 = false;
                goto LAB_000551a8;
              }
            }
            ptr = (ssh2_userkey *)0x0;
            fclose(__stream);
            pcVar11 = "file format error";
            safefree(pbVar10);
            goto LAB_00055070;
          }
        }
      }
LAB_0005510e:
      pcVar11 = "file format error";
      ptr = (ssh2_userkey *)0x0;
      fclose(__stream);
    }
  }
LAB_00055070:
  if (errorstr != (char **)0x0) {
    *errorstr = pcVar11;
  }
LAB_0005507a:
  if (iVar4 == *(int *)(in_GS_OFFSET + 0x14)) {
    return ptr;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

int * FUN_00054f40(undefined4 param_1,char *param_2,undefined4 *param_3)

{
  uint __n;
  uint __n_00;
  undefined1 *puVar1;
  char cVar2;
  byte bVar3;
  FILE *__stream;
  int iVar4;
  char *pcVar5;
  size_t sVar6;
  int iVar7;
  byte *pbVar8;
  int iVar9;
  uint *puVar10;
  undefined4 extraout_ECX;
  int extraout_ECX_00;
  uint uVar11;
  uint uVar12;
  uint uVar13;
  int *piVar14;
  char *pcVar15;
  byte *pbVar16;
  byte *pbVar17;
  uint __n_01;
  int in_GS_OFFSET;
  bool bVar18;
  bool bVar19;
  bool bVar20;
  byte bVar21;
  char *pcVar22;
  int iVar23;
  size_t local_14c;
  char *local_144;
  uint *local_140;
  void *local_13c;
  uint *local_134;
  size_t local_124;
  undefined4 local_104;
  undefined4 local_100;
  uint local_fc [24];
  undefined1 local_99 [20];
  undefined1 local_85 [20];
  byte local_71 [40];
  char local_49 [20];
  undefined1 local_35 [21];
  int local_20;
  undefined4 uStack_14;
  
  bVar21 = 0;
  uStack_14 = 0x54f49;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  local_14c = 0;
  if (param_2 != (char *)0x0) {
    local_14c = strlen(param_2);
  }
  iVar23 = 0;
  __stream = (FILE *)FUN_00065d60(param_1,&DAT_0007d4f7,0);
  if (__stream == (FILE *)0x0) {
    pcVar15 = "can\'t open file";
    piVar14 = (int *)0x0;
  }
  else {
    iVar4 = FUN_00053dd0();
    bVar18 = false;
    bVar20 = iVar4 == 0;
    if (bVar20) {
      pcVar15 = (char *)0x0;
      piVar14 = (int *)0x0;
      fclose(__stream);
    }
    else {
      iVar4 = 0x16;
      pbVar8 = local_71;
      pbVar16 = (byte *)"PuTTY-User-Key-File-2";
      do {
        if (iVar4 == 0) break;
        iVar4 = iVar4 + -1;
        bVar18 = *pbVar8 < *pbVar16;
        bVar20 = *pbVar8 == *pbVar16;
        pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;
        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;
      } while (bVar20);
      bVar3 = (!bVar18 && !bVar20) - bVar18;
      bVar18 = false;
      bVar20 = bVar3 == 0;
      if (!bVar20) {
        iVar4 = 0x16;
        pbVar8 = local_71;
        pbVar16 = (byte *)"PuTTY-User-Key-File-1";
        do {
          if (iVar4 == 0) break;
          iVar4 = iVar4 + -1;
          bVar18 = *pbVar8 < *pbVar16;
          bVar20 = *pbVar8 == *pbVar16;
          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;
          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;
        } while (bVar20);
        bVar19 = false;
        bVar18 = (!bVar18 && !bVar20) == bVar18;
        if (!bVar18) {
          iVar23 = 0x14;
          pbVar8 = local_71;
          pbVar16 = (byte *)"PuTTY-User-Key-File-";
          do {
            if (iVar23 == 0) break;
            iVar23 = iVar23 + -1;
            bVar19 = *pbVar8 < *pbVar16;
            bVar18 = *pbVar8 == *pbVar16;
            pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;
            pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;
          } while (bVar18);
          if ((!bVar19 && !bVar18) == bVar19) {
            pcVar15 = "PuTTY key format too new";
            piVar14 = (int *)0x0;
            fclose(__stream);
          }
          else {
            pcVar15 = "not a PuTTY SSH-2 private key";
            piVar14 = (int *)0x0;
            fclose(__stream);
          }
          goto LAB_00055070;
        }
        FUN_00065000();
        bVar3 = 1;
      }
      pcVar5 = (char *)FUN_00053e50();
      if (pcVar5 == (char *)0x0) goto LAB_0005510e;
      sVar6 = strlen(pcVar5);
      pcVar22 = pcVar5;
      iVar4 = FUN_00054a80(sVar6,pcVar5);
      if (iVar4 == 0) {
        pcVar15 = "file format error";
        FUN_0001b250(pcVar5);
        piVar14 = (int *)0x0;
        fclose(__stream);
        goto LAB_00055070;
      }
      FUN_0001b250(pcVar5);
      iVar7 = FUN_00053dd0();
      bVar18 = false;
      bVar20 = iVar7 == 0;
      if (!bVar20) {
        iVar7 = 0xb;
        pbVar8 = local_71;
        pbVar16 = (byte *)"Encryption";
        do {
          if (iVar7 == 0) break;
          iVar7 = iVar7 + -1;
          bVar18 = *pbVar8 < *pbVar16;
          bVar20 = *pbVar8 == *pbVar16;
          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;
          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;
        } while (bVar20);
        if ((!bVar18 && !bVar20) == bVar18) {
          pbVar8 = (byte *)FUN_00053e50();
          bVar18 = false;
          bVar20 = pbVar8 == (byte *)0x0;
          if (!bVar20) {
            iVar7 = 0xb;
            pbVar16 = pbVar8;
            pbVar17 = (byte *)"aes256-cbc";
            do {
              if (iVar7 == 0) break;
              iVar7 = iVar7 + -1;
              bVar18 = *pbVar16 < *pbVar17;
              bVar20 = *pbVar16 == *pbVar17;
              pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;
              pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;
            } while (bVar20);
            bVar19 = false;
            bVar18 = (!bVar18 && !bVar20) == bVar18;
            if (bVar18) {
              local_124 = 0x10;
              bVar18 = true;
LAB_000551a8:
              iVar7 = FUN_00053dd0();
              bVar20 = false;
              bVar19 = iVar7 == 0;
              if (!bVar19) {
                iVar7 = 8;
                pbVar16 = local_71;
                pbVar17 = (byte *)"Comment";
                do {
                  if (iVar7 == 0) break;
                  iVar7 = iVar7 + -1;
                  bVar20 = *pbVar16 < *pbVar17;
                  bVar19 = *pbVar16 == *pbVar17;
                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;
                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;
                } while (bVar19);
                if ((!bVar20 && !bVar19) == bVar20) {
                  pcVar5 = (char *)FUN_00053e50();
                  if (pcVar5 == (char *)0x0) {
                    pcVar15 = "file format error";
                    piVar14 = (int *)0x0;
                    fclose(__stream);
                    FUN_0001b250(pbVar8);
                    goto LAB_00055070;
                  }
                  iVar7 = FUN_00053dd0();
                  bVar20 = false;
                  bVar19 = iVar7 == 0;
                  if (bVar19) {
LAB_000555ad:
                    local_140 = (uint *)0x0;
                    local_13c = (void *)0x0;
LAB_0005553d:
                    iVar9 = iVar23;
                    pcVar15 = "file format error";
                    fclose(__stream);
LAB_0005554f:
                    piVar14 = (int *)0x0;
                    FUN_0001b250(pcVar5,pcVar22,iVar9);
                    FUN_0001b250(pbVar8);
                  }
                  else {
                    iVar7 = 0xd;
                    pbVar16 = local_71;
                    pbVar17 = (byte *)"Public-Lines";
                    do {
                      if (iVar7 == 0) break;
                      iVar7 = iVar7 + -1;
                      bVar20 = *pbVar16 < *pbVar17;
                      bVar19 = *pbVar16 == *pbVar17;
                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;
                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;
                    } while (bVar19);
                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;
                    iVar7 = FUN_00053e50();
                    if (iVar7 == 0) goto LAB_000555ad;
                    iVar9 = FUN_00053d60();
                    FUN_0001b250(iVar7);
                    if (iVar9 < 0) goto LAB_000555ad;
                    local_13c = (void *)FUN_00053f30();
                    if (local_13c == (void *)0x0) goto LAB_000555ad;
                    iVar7 = FUN_00053dd0();
                    if (iVar7 == 0) {
LAB_00055535:
                      local_140 = (uint *)0x0;
                      goto LAB_0005553d;
                    }
                    pcVar22 = "Private-Lines";
                    iVar9 = strcmp((char *)local_71,"Private-Lines");
                    local_140 = (uint *)0x0;
                    iVar23 = iVar7;
                    if (iVar9 != 0) goto LAB_0005553d;
                    puVar10 = (uint *)FUN_00053e50();
                    iVar23 = iVar7;
                    local_140 = puVar10;
                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;
                    iVar9 = FUN_00053d60();
                    FUN_0001b250(puVar10,pcVar22,iVar7);
                    iVar23 = iVar7;
                    if (iVar9 < 0) goto LAB_00055535;
                    local_140 = (uint *)FUN_00053f30();
                    iVar23 = iVar7;
                    if (local_140 == (uint *)0x0) goto LAB_0005553d;
                    iVar9 = FUN_00053dd0();
                    iVar23 = iVar7;
                    if (iVar9 == 0) goto LAB_0005553d;
                    pcVar22 = "Private-MAC";
                    iVar23 = strcmp((char *)local_71,"Private-MAC");
                    if (iVar23 != 0) {
                      pcVar22 = "Private-Hash";
                      iVar7 = strcmp((char *)local_71,"Private-Hash");
                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;
                      local_144 = (char *)FUN_00053e50();
                      if (local_144 == (char *)0x0) goto LAB_0005553d;
                      bVar20 = false;
                      fclose(__stream);
                      iVar9 = iVar23;
                      if (bVar18) goto LAB_000556cb;
LAB_00055378:
                      bVar19 = false;
                      local_124 = local_100;
                      local_134 = local_140;
LAB_00055390:
                      if (bVar20) {
                        pcVar15 = "putty-private-key-file-mac-key";
                        pcVar22 = local_49;
                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {
                          *pcVar22 = *pcVar15;
                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;
                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;
                        }
                        puVar10 = local_fc;
                        FUN_0005ce60(puVar10);
                        FUN_0005cea0(puVar10,local_49,0x1e);
                        if ((param_2 != (char *)0x0) && (bVar18)) {
                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);
                        }
                        FUN_0005d370(puVar10,local_85,param_2,param_2);
                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);
                        FUN_0001b330(local_85,0x14);
                        FUN_0001b330(puVar10,0x60);
                      }
                      else {
                        FUN_0005d890(local_134,local_124,local_99,puVar10);
                        puVar10 = (uint *)0x0;
                      }
                      pcVar22 = local_49;
                      if (bVar19) {
                        FUN_0001b330(local_134,local_124,puVar10,puVar10);
                        FUN_0001b250(local_134);
                      }
                      iVar23 = 0;
                      do {
                        puVar1 = local_99 + iVar23;
                        iVar7 = iVar23 * 2;
                        iVar23 = iVar23 + 1;
                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);
                      } while (iVar23 != 0x14);
                      iVar9 = extraout_ECX_00;
                      iVar23 = extraout_ECX_00;
                      iVar7 = strcmp(local_144,pcVar22);
                      if (iVar7 != 0) {
                        if (bVar18) {
                          pcVar15 = "wrong passphrase";
                          piVar14 = (int *)&DAT_000a9378;
                        }
                        else {
                          pcVar15 = "MAC failed";
                          piVar14 = (int *)0x0;
                        }
                        goto LAB_000554a5;
                      }
                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);
                      pcVar22 = &DAT_0000000c;
                      piVar14 = (int *)FUN_0001a9c0(1,0xc);
                      piVar14[2] = (int)pcVar5;
                      *piVar14 = iVar4;
                      iVar4 = (**(code **)(iVar4 + 0x14))
                                        (iVar4,local_13c,local_104,local_140,local_100);
                      piVar14[1] = iVar4;
                      if (iVar4 != 0) {
                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);
                        FUN_0001b330(local_140,local_100);
                        FUN_0001b250(local_140);
                        FUN_0001b250(pbVar8);
                        if (param_3 != (undefined4 *)0x0) {
                          *param_3 = 0;
                        }
                        goto LAB_0005507a;
                      }
                      pcVar15 = "createkey failed";
                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);
                      goto LAB_0005554f;
                    }
                    local_144 = (char *)FUN_00053e50();
                    iVar23 = iVar9;
                    if (local_144 == (char *)0x0) goto LAB_0005553d;
                    fclose(__stream);
                    bVar20 = bVar18;
                    if (!bVar18) {
                      bVar20 = true;
LAB_00055778:
                      if (bVar3 != 0) goto LAB_00055378;
                      uVar11 = 0xffffffff;
                      pcVar15 = *(char **)(iVar4 + 0x30);
                      do {
                        if (uVar11 == 0) break;
                        uVar11 = uVar11 - 1;
                        cVar2 = *pcVar15;
                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;
                      } while (cVar2 != '\0');
                      uVar11 = ~uVar11;
                      __n = uVar11 - 1;
                      uVar12 = 0xffffffff;
                      pbVar16 = pbVar8;
                      do {
                        if (uVar12 == 0) break;
                        uVar12 = uVar12 - 1;
                        bVar3 = *pbVar16;
                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;
                      } while (bVar3 != 0);
                      uVar13 = 0xffffffff;
                      uVar12 = ~uVar12;
                      __n_01 = uVar12 - 1;
                      pcVar15 = pcVar5;
                      do {
                        if (uVar13 == 0) break;
                        uVar13 = uVar13 - 1;
                        cVar2 = *pcVar15;
                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;
                      } while (cVar2 != '\0');
                      uVar13 = ~uVar13;
                      __n_00 = uVar13 - 1;
                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;
                      local_124 = iVar23 + 4 + local_100;
                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);
                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |
                                   __n * 0x1000000;
                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);
                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);
                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8
                                 | __n_01 * 0x1000000;
                      memcpy(puVar10 + 1,pbVar8,__n_01);
                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);
                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8
                                 | __n_00 * 0x1000000;
                      memcpy(puVar10 + 1,pcVar5,__n_00);
                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);
                      *(undefined1 *)puVar10 = local_104._3_1_;
                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);
                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);
                      *(char *)((int)puVar10 + 3) = (char)local_104;
                      memcpy(puVar10 + 1,local_13c,local_104);
                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);
                      *puVar1 = local_100._3_1_;
                      puVar1[1] = (char)(local_100 >> 0x10);
                      puVar1[2] = (char)(local_100 >> 8);
                      puVar1[3] = (char)local_100;
                      memcpy(puVar1 + 4,local_140,local_100);
                      bVar19 = true;
                      goto LAB_00055390;
                    }
LAB_000556cb:
                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {
                      puVar10 = local_fc;
                      FUN_0005ce60(puVar10,pcVar22,iVar9);
                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);
                      FUN_0005cea0(puVar10,param_2,local_14c);
                      FUN_0005d370(puVar10,local_49);
                      FUN_0005ce60(puVar10);
                      FUN_0005cea0(puVar10,&DAT_0007db21,4);
                      FUN_0005cea0(puVar10,param_2,local_14c);
                      FUN_0005d370(puVar10,local_35);
                      FUN_00042f80(local_49,local_140,local_100);
                      goto LAB_00055778;
                    }
                    pcVar15 = "file format error";
                    piVar14 = (int *)0x0;
LAB_000554a5:
                    FUN_0001b250(pcVar5,pcVar22,iVar9);
                    FUN_0001b250(pbVar8);
                    FUN_0001b250(local_144);
                  }
                  if (local_13c != (void *)0x0) {
                    FUN_0001b250(local_13c);
                  }
                  if (local_140 != (uint *)0x0) {
                    FUN_0001b330(local_140,local_100);
                    FUN_0001b250(local_140);
                  }
                  goto LAB_00055070;
                }
              }
            }
            else {
              iVar7 = 5;
              pbVar16 = pbVar8;
              pbVar17 = &DAT_0007471c;
              do {
                if (iVar7 == 0) break;
                iVar7 = iVar7 + -1;
                bVar19 = *pbVar16 < *pbVar17;
                bVar18 = *pbVar16 == *pbVar17;
                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;
                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;
              } while (bVar18);
              if ((!bVar19 && !bVar18) == bVar19) {
                local_124 = 1;
                bVar18 = false;
                goto LAB_000551a8;
              }
            }
            piVar14 = (int *)0x0;
            fclose(__stream);
            pcVar15 = "file format error";
            FUN_0001b250(pbVar8);
            goto LAB_00055070;
          }
        }
      }
LAB_0005510e:
      pcVar15 = "file format error";
      piVar14 = (int *)0x0;
      fclose(__stream);
    }
  }
LAB_00055070:
  if (param_3 != (undefined4 *)0x0) {
    *param_3 = pcVar15;
  }
LAB_0005507a:
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return piVar14;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0006f2a0();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014980
ADD EBX,0x53e27
SUB ESP,0x14c
MOV EAX,dword ptr [ESP + 0x164]
MOV EDX,dword ptr [ESP + 0x168]
MOV ESI,dword ptr [ESP + 0x160]
MOV dword ptr [ESP + 0x14],EAX
MOV dword ptr [ESP + 0xc],EDX
MOV ECX,dword ptr GS:[0x14]
MOV dword ptr [ESP + 0x13c],ECX
XOR ECX,ECX
MOV dword ptr [ESP + 0x10],0x0
TEST EAX,EAX
JZ 0x00054f9e
SUB ESP,0xc
PUSH EAX
CALL 0x00014460
ADD ESP,0x10
MOV dword ptr [ESP + 0x10],EAX
SUB ESP,0x4
LEA EAX,[EBX + 0xfffd4787]
PUSH 0x0
PUSH EAX
PUSH ESI
CALL 0x00065d60
ADD ESP,0x10
MOV EBP,EAX
TEST EAX,EAX
JZ 0x00055068
LEA ESI,[ESP + 0xeb]
MOV EDX,ESI
CALL 0x00053dd0
TEST EAX,EAX
JZ 0x00055050
MOV ECX,0x16
LEA EDI,[EBX + 0xfffd4827]
MOV EDX,ESI
MOV dword ptr [ESP + 0x18],ESI
CMPSB.REPE ES:EDI,ESI
SETA AL
SBB AL,0x0
MOVSX EAX,AL
MOV dword ptr [ESP + 0x28],EAX
TEST EAX,EAX
JZ 0x000550ad
MOV ECX,0x16
LEA EDI,[EBX + 0xfffd483d]
MOV ESI,EDX
CMPSB.REPE ES:EDI,ESI
SETA AL
SBB AL,0x0
TEST AL,AL
JZ 0x000550a0
MOV ESI,dword ptr [ESP + 0x18]
MOV ECX,0x14
LEA EDI,[EBX + 0xfffd4853]
CMPSB.REPE ES:EDI,ESI
SETA AL
SBB AL,0x0
TEST AL,AL
JNZ 0x00055130
SUB ESP,0xc
LEA ESI,[EBX + 0xfffd47fd]
PUSH EBP
XOR EBP,EBP
CALL 0x00014160
ADD ESP,0x10
JMP 0x00055070
SUB ESP,0xc
XOR ESI,ESI
PUSH EBP
XOR EBP,EBP
CALL 0x00014160
ADD ESP,0x10
JMP 0x00055070
LEA ESI,[EBX + 0xfffd478a]
NOP
MOV EAX,dword ptr [ESP + 0xc]
TEST EAX,EAX
JZ 0x0005507a
MOV dword ptr [EAX],ESI
MOV EDX,dword ptr [ESP + 0x13c]
XOR EDX,dword ptr GS:[0x14]
MOV EAX,EBP
JNZ 0x000555e5
ADD ESP,0x14c
POP EBX
POP ESI
POP EDI
POP EBP
RET
CALL 0x00065000
MOV dword ptr [ESP + 0x28],0x1
MOV EAX,EBP
CALL 0x00053e50
MOV ESI,EAX
TEST EAX,EAX
JZ 0x0005510e
SUB ESP,0xc
PUSH EAX
CALL 0x00014460
POP EDX
POP ECX
PUSH ESI
PUSH EAX
CALL 0x00054a80
MOV dword ptr [ESP + 0x40],EAX
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000554d0
SUB ESP,0xc
PUSH ESI
CALL 0x0001b250
MOV ESI,dword ptr [ESP + 0x28]
MOV EAX,EBP
MOV EDX,ESI
CALL 0x00053dd0
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0005510e
MOV ECX,0xb
LEA EDI,[EBX + 0xfffd4868]
CMPSB.REPE ES:EDI,ESI
SETA AL
SBB AL,0x0
TEST AL,AL
JZ 0x00055150
SUB ESP,0xc
LEA ESI,[EBX + 0xfffd4714]
PUSH EBP
XOR EBP,EBP
CALL 0x00014160
ADD ESP,0x10
JMP 0x00055070
SUB ESP,0xc
LEA ESI,[EBX + 0xfffd47df]
PUSH EBP
XOR EBP,EBP
CALL 0x00014160
ADD ESP,0x10
JMP 0x00055070
MOV EAX,EBP
CALL 0x00053e50
MOV ESI,EAX
TEST EAX,EAX
JZ 0x0005510e
MOV ECX,0xb
LEA EDI,[EBX + 0xfffcf578]
MOV EDX,EAX
MOV dword ptr [ESP + 0x24],EAX
CMPSB.REPE ES:EDI,ESI
SETA AL
SBB AL,0x0
TEST AL,AL
JZ 0x00055520
MOV ECX,0x5
LEA EDI,[EBX + 0xfffcb9ac]
MOV ESI,EDX
CMPSB.REPE ES:EDI,ESI
SETA AL
SBB AL,0x0
MOVSX EAX,AL
MOV dword ptr [ESP + 0x34],EAX
TEST EAX,EAX
JNZ 0x000554f8
MOV dword ptr [ESP + 0x38],0x1
MOV ESI,dword ptr [ESP + 0x18]
MOV EAX,EBP
MOV EDX,ESI
CALL 0x00053dd0
TEST EAX,EAX
JZ 0x000554f8
MOV ECX,0x8
LEA EDI,[EBX + 0xfffd4873]
MOV dword ptr [ESP + 0x18],ESI
CMPSB.REPE ES:EDI,ESI
SETA AL
SBB AL,0x0
TEST AL,AL
JNZ 0x000554f8
MOV EAX,EBP
CALL 0x00053e50
MOV dword ptr [ESP + 0x2c],EAX
TEST EAX,EAX
JZ 0x000555c2
MOV ESI,dword ptr [ESP + 0x18]
MOV EAX,EBP
MOV EDX,ESI
CALL 0x00053dd0
TEST EAX,EAX
JZ 0x000555ad
MOV ECX,0xd
LEA EDI,[EBX + 0xfffd487b]
MOV dword ptr [ESP + 0x18],ESI
CMPSB.REPE ES:EDI,ESI
SETA AL
SBB AL,0x0
TEST AL,AL
JNZ 0x000555ad
MOV EAX,EBP
CALL 0x00053e50
MOV ESI,EAX
TEST EAX,EAX
JZ 0x000555ad
CALL 0x00053d60
SUB ESP,0xc
PUSH ESI
MOV EDI,EAX
CALL 0x0001b250
ADD ESP,0x10
TEST EDI,EDI
JS 0x000555ad
LEA ECX,[ESP + 0x58]
MOV EDX,EDI
MOV EAX,EBP
CALL 0x00053f30
MOV dword ptr [ESP + 0x20],EAX
TEST EAX,EAX
JZ 0x000555ad
MOV ESI,dword ptr [ESP + 0x18]
MOV EAX,EBP
MOV EDX,ESI
CALL 0x00053dd0
TEST EAX,EAX
JZ 0x00055535
PUSH EAX
PUSH EAX
LEA EAX,[EBX + 0xfffd4888]
PUSH EAX
MOV dword ptr [ESP + 0x24],ESI
PUSH ESI
CALL 0x00014090
ADD ESP,0x10
MOV dword ptr [ESP + 0x44],EAX
MOV dword ptr [ESP + 0x1c],0x0
TEST EAX,EAX
JNZ 0x0005553d
MOV EAX,EBP
CALL 0x00053e50
MOV EDI,EAX
MOV dword ptr [ESP + 0x1c],EAX
TEST EAX,EAX
JZ 0x0005553d
CALL 0x00053d60
SUB ESP,0xc
PUSH EDI
MOV ESI,EAX
CALL 0x0001b250
ADD ESP,0x10
TEST ESI,ESI
JS 0x00055535
LEA ECX,[ESP + 0x5c]
MOV EDX,ESI
MOV EAX,EBP
CALL 0x00053f30
MOV dword ptr [ESP + 0x1c],EAX
TEST EAX,EAX
JZ 0x0005553d
MOV ESI,dword ptr [ESP + 0x18]
MOV EAX,EBP
MOV EDX,ESI
CALL 0x00053dd0
TEST EAX,EAX
JZ 0x0005553d
PUSH EAX
PUSH EAX
LEA EAX,[EBX + 0xfffd4896]
PUSH EAX
PUSH ESI
CALL 0x00014090
ADD ESP,0x10
TEST EAX,EAX
JZ 0x000558f5
PUSH EAX
PUSH EAX
LEA EAX,[EBX + 0xfffd48a2]
PUSH EAX
PUSH dword ptr [ESP + 0x24]
CALL 0x00014090
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0005553d
TEST byte ptr [ESP + 0x28],0x1
JZ 0x0005553d
MOV EAX,EBP
CALL 0x00053e50
MOV dword ptr [ESP + 0x18],EAX
TEST EAX,EAX
JZ 0x0005553d
SUB ESP,0xc
XOR ESI,ESI
PUSH EBP
CALL 0x00014160
ADD ESP,0x10
CMP dword ptr [ESP + 0x34],0x0
LEA EBP,[ESP + 0x113]
JNZ 0x000556cb
MOV EAX,dword ptr [ESP + 0x5c]
MOV dword ptr [ESP + 0x3c],0x0
MOV dword ptr [ESP + 0x38],EAX
MOV EAX,dword ptr [ESP + 0x1c]
MOV dword ptr [ESP + 0x28],EAX
TEST ESI,ESI
JZ 0x000555ea
SUB ESP,0xc
MOV EDI,EBP
LEA ESI,[EBX + 0xfffd4a70]
MOV ECX,0x1f
MOVSB.REP ES:EDI,ESI
LEA ESI,[ESP + 0x6c]
PUSH ESI
CALL 0x0005ce60
ADD ESP,0xc
PUSH 0x1e
LEA EBP,[ESP + 0x11b]
PUSH EBP
PUSH ESI
CALL 0x0005cea0
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0x14]
TEST EAX,EAX
JZ 0x000553e8
TEST byte ptr [ESP + 0x34],0x1
JZ 0x000553e8
PUSH ECX
PUSH dword ptr [ESP + 0x14]
PUSH EAX
PUSH ESI
CALL 0x0005cea0
ADD ESP,0x10
PUSH EAX
PUSH EAX
LEA EAX,[ESP + 0xdf]
PUSH EAX
MOV dword ptr [ESP + 0x1c],EAX
PUSH ESI
CALL 0x0005d370
POP EAX
LEA EDI,[ESP + 0xcf]
PUSH EDI
PUSH dword ptr [ESP + 0x48]
PUSH dword ptr [ESP + 0x3c]
PUSH 0x14
MOV EAX,dword ptr [ESP + 0x2c]
PUSH EAX
MOV dword ptr [ESP + 0x30],EAX
CALL 0x0005d940
ADD ESP,0x18
PUSH 0x14
MOV EAX,dword ptr [ESP + 0x1c]
PUSH EAX
CALL 0x0001b330
POP EAX
POP EDX
PUSH 0x60
PUSH ESI
CALL 0x0001b330
ADD ESP,0x10
CMP dword ptr [ESP + 0x3c],0x0
JNZ 0x00055608
LEA ESI,[EBX + 0xfffd4ebb]
MOV EDX,ESI
MOV ESI,dword ptr [ESP + 0x44]
MOVZX EAX,byte ptr [EDI + ESI*0x1]
SUB ESP,0xc
PUSH EAX
LEA EAX,[ESI + ESI*0x1]
ADD ESI,0x1
PUSH EDX
ADD EAX,EBP
MOV dword ptr [ESP + 0x24],EDX
PUSH -0x1
PUSH 0x1
PUSH EAX
CALL 0x000148b0
ADD ESP,0x20
CMP ESI,0x14
MOV EDX,dword ptr [ESP + 0x10]
JNZ 0x00055450
PUSH ECX
PUSH ECX
PUSH EBP
PUSH dword ptr [ESP + 0x24]
CALL 0x00014090
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00055639
CMP dword ptr [ESP + 0x34],0x0
JNZ 0x00055628
LEA ESI,[EBX + 0xfffd47d4]
XOR EBP,EBP
SUB ESP,0xc
PUSH dword ptr [ESP + 0x38]
CALL 0x0001b250
POP EDX
PUSH dword ptr [ESP + 0x30]
CALL 0x0001b250
POP ECX
PUSH dword ptr [ESP + 0x24]
CALL 0x0001b250
ADD ESP,0x10
JMP 0x00055570
SUB ESP,0xc
PUSH ESI
LEA ESI,[EBX + 0xfffd4714]
CALL 0x0001b250
MOV dword ptr [ESP],EBP
XOR EBP,EBP
CALL 0x00014160
ADD ESP,0x10
JMP 0x00055070
SUB ESP,0xc
PUSH EBP
XOR EBP,EBP
CALL 0x00014160
POP ESI
PUSH dword ptr [ESP + 0x30]
LEA ESI,[EBX + 0xfffd4714]
CALL 0x0001b250
ADD ESP,0x10
JMP 0x00055070
MOV dword ptr [ESP + 0x38],0x10
MOV dword ptr [ESP + 0x34],0x1
JMP 0x000551a8
MOV dword ptr [ESP + 0x1c],0x0
SUB ESP,0xc
LEA ESI,[EBX + 0xfffd4714]
PUSH EBP
CALL 0x00014160
ADD ESP,0x10
SUB ESP,0xc
XOR EBP,EBP
PUSH dword ptr [ESP + 0x38]
CALL 0x0001b250
POP EAX
PUSH dword ptr [ESP + 0x30]
CALL 0x0001b250
ADD ESP,0x10
LEA ESI,[ESI]
MOV EAX,dword ptr [ESP + 0x20]
TEST EAX,EAX
JZ 0x00055584
SUB ESP,0xc
PUSH EAX
CALL 0x0001b250
ADD ESP,0x10
MOV EDI,dword ptr [ESP + 0x1c]
TEST EDI,EDI
JZ 0x00055070
SUB ESP,0x8
PUSH dword ptr [ESP + 0x64]
PUSH EDI
CALL 0x0001b330
MOV dword ptr [ESP],EDI
CALL 0x0001b250
ADD ESP,0x10
JMP 0x00055070
MOV dword ptr [ESP + 0x1c],0x0
MOV dword ptr [ESP + 0x20],0x0
JMP 0x0005553d
SUB ESP,0xc
LEA ESI,[EBX + 0xfffd4714]
PUSH EBP
XOR EBP,EBP
CALL 0x00014160
POP EDI
PUSH dword ptr [ESP + 0x30]
CALL 0x0001b250
ADD ESP,0x10
JMP 0x00055070
CALL 0x0006f2a0
PUSH EDI
LEA EDI,[ESP + 0xc7]
PUSH EDI
PUSH dword ptr [ESP + 0x40]
PUSH dword ptr [ESP + 0x34]
CALL 0x0005d890
ADD ESP,0x10
JMP 0x00055439
PUSH ESI
PUSH ESI
PUSH dword ptr [ESP + 0x40]
MOV ESI,dword ptr [ESP + 0x34]
PUSH ESI
CALL 0x0001b330
MOV dword ptr [ESP],ESI
CALL 0x0001b250
ADD ESP,0x10
JMP 0x00055444
LEA ESI,[EBX + 0xfffd4726]
LEA EBP,[EBX + 0x608]
JMP 0x000554a5
SUB ESP,0xc
PUSH dword ptr [ESP + 0x24]
CALL 0x0001b250
POP ESI
POP EDI
PUSH 0xc
PUSH 0x1
CALL 0x0001a9c0
MOV ECX,dword ptr [ESP + 0x3c]
MOV EBP,EAX
MOV EAX,dword ptr [ESP + 0x40]
MOV dword ptr [EBP + 0x8],ECX
MOV dword ptr [EBP],EAX
POP EDX
PUSH dword ptr [ESP + 0x68]
PUSH dword ptr [ESP + 0x2c]
PUSH dword ptr [ESP + 0x6c]
PUSH dword ptr [ESP + 0x38]
PUSH EAX
CALL dword ptr [EAX + 0x14]
MOV dword ptr [EBP + 0x4],EAX
ADD ESP,0x20
TEST EAX,EAX
JZ 0x00055931
SUB ESP,0xc
PUSH dword ptr [ESP + 0x2c]
CALL 0x0001b250
POP EAX
POP EDX
PUSH dword ptr [ESP + 0x64]
MOV EDI,dword ptr [ESP + 0x28]
PUSH EDI
CALL 0x0001b330
MOV dword ptr [ESP],EDI
CALL 0x0001b250
POP ECX
PUSH dword ptr [ESP + 0x30]
CALL 0x0001b250
ADD ESP,0x10
MOV EAX,dword ptr [ESP + 0xc]
TEST EAX,EAX
JZ 0x0005507a
MOV dword ptr [EAX],0x0
JMP 0x0005507a
MOV EBP,dword ptr [ESP + 0x14]
TEST EBP,EBP
JZ 0x00055948
MOV EAX,dword ptr [ESP + 0x5c]
CDQ
IDIV dword ptr [ESP + 0x38]
TEST EDX,EDX
JNZ 0x00055948
SUB ESP,0xc
LEA EDI,[ESP + 0x6c]
PUSH EDI
CALL 0x0005ce60
ADD ESP,0xc
LEA EAX,[EBX + 0xfffd4dac]
PUSH 0x4
PUSH EAX
PUSH EDI
CALL 0x0005cea0
ADD ESP,0xc
PUSH dword ptr [ESP + 0x14]
MOV dword ptr [ESP + 0x1c],EBP
PUSH EBP
PUSH EDI
CALL 0x0005cea0
POP EAX
POP EDX
LEA EBP,[ESP + 0x11b]
PUSH EBP
PUSH EDI
CALL 0x0005d370
MOV dword ptr [ESP],EDI
CALL 0x0005ce60
ADD ESP,0xc
LEA EAX,[EBX + 0xfffd4db1]
PUSH 0x4
PUSH EAX
PUSH EDI
CALL 0x0005cea0
ADD ESP,0xc
PUSH dword ptr [ESP + 0x14]
PUSH dword ptr [ESP + 0x1c]
PUSH EDI
CALL 0x0005cea0
POP ECX
POP EAX
LEA EAX,[ESP + 0x12f]
PUSH EAX
PUSH EDI
CALL 0x0005d370
ADD ESP,0xc
PUSH dword ptr [ESP + 0x60]
PUSH dword ptr [ESP + 0x24]
PUSH EBP
CALL 0x00042f80
ADD ESP,0x10
CMP dword ptr [ESP + 0x28],0x0
JNZ 0x00055378
MOV EAX,dword ptr [ESP + 0x30]
OR EDX,0xffffffff
MOV ECX,EDX
MOV EDI,dword ptr [EAX + 0x30]
XOR EAX,EAX
SCASB.REPNE ES:EDI
NOT ECX
LEA EDI,[ECX + -0x1]
MOV dword ptr [ESP + 0x40],ECX
MOV ECX,EDX
MOV dword ptr [ESP + 0x28],EDI
MOV EDI,dword ptr [ESP + 0x24]
SCASB.REPNE ES:EDI
MOV EDI,ECX
MOV ECX,EDX
MOV EDX,dword ptr [ESP + 0x5c]
NOT EDI
MOV dword ptr [ESP + 0x48],EDI
SUB EDI,0x1
MOV dword ptr [ESP + 0x3c],EDI
MOV EDI,dword ptr [ESP + 0x2c]
SCASB.REPNE ES:EDI
MOV EAX,dword ptr [ESP + 0x3c]
NOT ECX
MOV dword ptr [ESP + 0x4c],ECX
LEA EDI,[ECX + -0x1]
MOV ECX,dword ptr [ESP + 0x40]
LEA EAX,[EAX + ECX*0x1 + 0xb]
LEA EAX,[EDI + EAX*0x1 + 0x4]
ADD EAX,dword ptr [ESP + 0x58]
LEA EDX,[EAX + EDX*0x1 + 0x4]
MOV dword ptr [ESP + 0x38],EDX
PUSH EAX
PUSH EAX
PUSH 0x1
PUSH EDX
CALL 0x0001a9c0
MOV ECX,dword ptr [ESP + 0x38]
MOV EDX,EAX
MOV EAX,ECX
MOV dword ptr [ESP + 0x38],EDX
BSWAP EAX
MOV dword ptr [EDX],EAX
LEA EAX,[EDX + 0x4]
MOV EDX,dword ptr [ESP + 0x40]
ADD ESP,0xc
MOV EDX,dword ptr [EDX + 0x30]
PUSH ECX
PUSH EDX
PUSH EAX
CALL 0x00014130
MOV ECX,dword ptr [ESP + 0x50]
MOV EDX,dword ptr [ESP + 0x38]
LEA EDX,[EDX + ECX*0x1 + 0x3]
MOV ECX,dword ptr [ESP + 0x4c]
MOV dword ptr [ESP + 0x4c],EDX
ADD ESP,0xc
MOV EAX,ECX
BSWAP EAX
MOV dword ptr [EDX],EAX
LEA EAX,[EDX + 0x4]
PUSH ECX
PUSH dword ptr [ESP + 0x2c]
PUSH EAX
CALL 0x00014130
MOV EAX,dword ptr [ESP + 0x58]
MOV EDX,dword ptr [ESP + 0x4c]
LEA EDX,[EDX + EAX*0x1 + 0x3]
MOV EAX,EDI
MOV dword ptr [ESP + 0x4c],EDX
BSWAP EAX
ADD ESP,0xc
MOV dword ptr [EDX],EAX
LEA EAX,[EDX + 0x4]
PUSH EDI
PUSH dword ptr [ESP + 0x34]
PUSH EAX
CALL 0x00014130
MOV EDX,dword ptr [ESP + 0x4c]
MOV ECX,dword ptr [ESP + 0x5c]
MOVSX EAX,byte ptr [ESP + 0x6b]
LEA EDI,[EDX + ECX*0x1 + 0x3]
MOV byte ptr [EDI],AL
MOVSX EAX,word ptr [ESP + 0x6a]
MOV byte ptr [EDI + 0x1],AL
MOV EAX,dword ptr [ESP + 0x68]
MOV byte ptr [EDI + 0x2],AH
MOV EAX,dword ptr [ESP + 0x68]
MOV byte ptr [EDI + 0x3],AL
MOV EDX,dword ptr [ESP + 0x68]
ADD ESP,0xc
LEA EAX,[EDI + 0x4]
PUSH EDX
MOV dword ptr [ESP + 0x44],EDX
PUSH dword ptr [ESP + 0x28]
PUSH EAX
CALL 0x00014130
MOV EDX,dword ptr [ESP + 0x4c]
LEA EAX,[EDI + EDX*0x1 + 0x4]
MOVSX EDX,byte ptr [ESP + 0x6f]
ADD EAX,0x4
MOV byte ptr [EAX + -0x4],DL
MOVSX EDX,word ptr [ESP + 0x6e]
MOV byte ptr [EAX + -0x3],DL
MOV EDX,dword ptr [ESP + 0x6c]
MOV byte ptr [EAX + -0x2],DH
MOV EDX,dword ptr [ESP + 0x6c]
ADD ESP,0xc
MOV byte ptr [EAX + -0x1],DL
PUSH dword ptr [ESP + 0x60]
PUSH dword ptr [ESP + 0x24]
PUSH EAX
CALL 0x00014130
ADD ESP,0x10
MOV dword ptr [ESP + 0x3c],0x1
JMP 0x00055390
MOV EAX,EBP
CALL 0x00053e50
MOV dword ptr [ESP + 0x18],EAX
TEST EAX,EAX
JZ 0x0005553d
SUB ESP,0xc
PUSH EBP
CALL 0x00014160
ADD ESP,0x10
MOV ESI,dword ptr [ESP + 0x34]
TEST ESI,ESI
JNZ 0x000556cb
MOV ESI,0x1
LEA EBP,[ESP + 0x113]
JMP 0x00055778
SUB ESP,0xc
LEA ESI,[EBX + 0xfffd4816]
PUSH EBP
CALL 0x0001b250
ADD ESP,0x10
JMP 0x0005554f
LEA ESI,[EBX + 0xfffd4714]
XOR EBP,EBP
JMP 0x000554a5
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint * FUN_00054f40(undefined4 param_1,char *param_2,undefined4 *param_3)\n\n{\n  uint __n;\n  uint __n_00;\n  undefined1 *puVar1;\n  char cVar2;\n  byte bVar3;\n  FILE *__stream;\n  int iVar4;\n  char *pcVar5;\n  size_t sVar6;\n  int iVar7;\n  byte *pbVar8;\n  int iVar9;\n  uint *puVar10;\n  undefined4 extraout_ECX;\n  int extraout_ECX_00;\n  uint uVar11;\n  uint uVar12;\n  uint uVar13;\n  int *piVar14;\n  char *pcVar15;\n  byte *pbVar16;\n  byte *pbVar17;\n  uint __n_01;\n  int in_GS_OFFSET;\n  bool bVar18;\n  bool bVar19;\n  bool bVar20;\n  byte bVar21;\n  char *pcVar22;\n  int iVar23;\n  size_t local_14c;\n  char *local_144;\n  uint *local_140;\n  void *local_13c;\n  uint *local_134;\n  size_t local_124;\n  undefined4 local_104;\n  undefined4 local_100;\n  uint local_fc [24];\n  undefined1 local_99 [20];\n  undefined1 local_85 [20];\n  byte local_71 [40];\n  char local_49 [20];\n  undefined1 local_35 [21];\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar21 = 0;\n  uStack_14 = 0x54f49;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_14c = 0;\n  if (param_2 != (char *)0x0) {\n    local_14c = strlen(param_2);\n  }\n  iVar23 = 0;\n  __stream = (FILE *)FUN_00065d60(param_1,&DAT_0007d4f7,0);\n  if (__stream == (FILE *)0x0) {\n    pcVar15 = "can\'t open file";\n    piVar14 = (int *)0x0;\n  }\n  else {\n    iVar4 = FUN_00053dd0();\n    bVar18 = false;\n    bVar20 = iVar4 == 0;\n    if (bVar20) {\n      pcVar15 = (char *)0x0;\n      piVar14 = (int *)0x0;\n      fclose(__stream);\n    }\n    else {\n      iVar4 = 0x16;\n      pbVar8 = local_71;\n      pbVar16 = (byte *)"PuTTY-User-Key-File-2";\n      do {\n        if (iVar4 == 0) break;\n        iVar4 = iVar4 + -1;\n        bVar18 = *pbVar8 < *pbVar16;\n        bVar20 = *pbVar8 == *pbVar16;\n        pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n      } while (bVar20);\n      bVar3 = (!bVar18 && !bVar20) - bVar18;\n      bVar18 = false;\n      bVar20 = bVar3 == 0;\n      if (!bVar20) {\n        iVar4 = 0x16;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"PuTTY-User-Key-File-1";\n        do {\n          if (iVar4 == 0) break;\n          iVar4 = iVar4 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        bVar19 = false;\n        bVar18 = (!bVar18 && !bVar20) == bVar18;\n        if (!bVar18) {\n          iVar23 = 0x14;\n          pbVar8 = local_71;\n          pbVar16 = (byte *)"PuTTY-User-Key-File-";\n          do {\n            if (iVar23 == 0) break;\n            iVar23 = iVar23 + -1;\n            bVar19 = *pbVar8 < *pbVar16;\n            bVar18 = *pbVar8 == *pbVar16;\n            pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n            pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n          } while (bVar18);\n          if ((!bVar19 && !bVar18) == bVar19) {\n            pcVar15 = "PuTTY key format too new";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          else {\n            pcVar15 = "not a PuTTY SSH-2 private key";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          goto LAB_00055070;\n        }\n        FUN_00065000();\n        bVar3 = 1;\n      }\n      pcVar5 = (char *)FUN_00053e50();\n      if (pcVar5 == (char *)0x0) goto LAB_0005510e;\n      sVar6 = strlen(pcVar5);\n      pcVar22 = pcVar5;\n      iVar4 = FUN_00054a80(sVar6,pcVar5);\n      if (iVar4 == 0) {\n        pcVar15 = "file format error";\n        FUN_0001b250(pcVar5);\n        piVar14 = (int *)0x0;\n        fclose(__stream);\n        goto LAB_00055070;\n      }\n      FUN_0001b250(pcVar5);\n      iVar7 = FUN_00053dd0();\n      bVar18 = false;\n      bVar20 = iVar7 == 0;\n      if (!bVar20) {\n        iVar7 = 0xb;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"Encryption";\n        do {\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        if ((!bVar18 && !bVar20) == bVar18) {\n          pbVar8 = (byte *)FUN_00053e50();\n          bVar18 = false;\n          bVar20 = pbVar8 == (byte *)0x0;\n          if (!bVar20) {\n            iVar7 = 0xb;\n            pbVar16 = pbVar8;\n            pbVar17 = (byte *)"aes256-cbc";\n            do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar18 = *pbVar16 < *pbVar17;\n              bVar20 = *pbVar16 == *pbVar17;\n              pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n              pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n            } while (bVar20);\n            bVar19 = false;\n            bVar18 = (!bVar18 && !bVar20) == bVar18;\n            if (bVar18) {\n              local_124 = 0x10;\n              bVar18 = true;\nLAB_000551a8:\n              iVar7 = FUN_00053dd0();\n              bVar20 = false;\n              bVar19 = iVar7 == 0;\n              if (!bVar19) {\n                iVar7 = 8;\n                pbVar16 = local_71;\n                pbVar17 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                } while (bVar19);\n                if ((!bVar20 && !bVar19) == bVar20) {\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar8;\n              pbVar17 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar19 = *pbVar16 < *pbVar17;\n                bVar18 = *pbVar16 == *pbVar17;\n                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n              } while (bVar18);\n              if ((!bVar19 && !bVar18) == bVar19) {\n                local_124 = 1;\n                bVar18 = false;\n                goto LAB_000551a8;\n              }\n            }\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n            pcVar15 = "file format error";\n            FUN_0001b250(pbVar8);\n            goto LAB_00055070;\n          }\n        }\n      }\nLAB_0005510e:\n      pcVar15 = "file format error";\n      piVar14 = (int *)0x0;\n      fclose(__stream);\n    }\n  }\nLAB_00055070:\n  if (param_3 != (undefined4 *)0x0) {\n    *param_3 = pcVar15;\n  }\nLAB_0005507a:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return piVar14;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006f2a0();\n}\n\n" comment (function_definition "int * FUN_00054f40(undefined4 param_1,char *param_2,undefined4 *param_3)\n\n{\n  uint __n;\n  uint __n_00;\n  undefined1 *puVar1;\n  char cVar2;\n  byte bVar3;\n  FILE *__stream;\n  int iVar4;\n  char *pcVar5;\n  size_t sVar6;\n  int iVar7;\n  byte *pbVar8;\n  int iVar9;\n  uint *puVar10;\n  undefined4 extraout_ECX;\n  int extraout_ECX_00;\n  uint uVar11;\n  uint uVar12;\n  uint uVar13;\n  int *piVar14;\n  char *pcVar15;\n  byte *pbVar16;\n  byte *pbVar17;\n  uint __n_01;\n  int in_GS_OFFSET;\n  bool bVar18;\n  bool bVar19;\n  bool bVar20;\n  byte bVar21;\n  char *pcVar22;\n  int iVar23;\n  size_t local_14c;\n  char *local_144;\n  uint *local_140;\n  void *local_13c;\n  uint *local_134;\n  size_t local_124;\n  undefined4 local_104;\n  undefined4 local_100;\n  uint local_fc [24];\n  undefined1 local_99 [20];\n  undefined1 local_85 [20];\n  byte local_71 [40];\n  char local_49 [20];\n  undefined1 local_35 [21];\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar21 = 0;\n  uStack_14 = 0x54f49;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_14c = 0;\n  if (param_2 != (char *)0x0) {\n    local_14c = strlen(param_2);\n  }\n  iVar23 = 0;\n  __stream = (FILE *)FUN_00065d60(param_1,&DAT_0007d4f7,0);\n  if (__stream == (FILE *)0x0) {\n    pcVar15 = "can\'t open file";\n    piVar14 = (int *)0x0;\n  }\n  else {\n    iVar4 = FUN_00053dd0();\n    bVar18 = false;\n    bVar20 = iVar4 == 0;\n    if (bVar20) {\n      pcVar15 = (char *)0x0;\n      piVar14 = (int *)0x0;\n      fclose(__stream);\n    }\n    else {\n      iVar4 = 0x16;\n      pbVar8 = local_71;\n      pbVar16 = (byte *)"PuTTY-User-Key-File-2";\n      do {\n        if (iVar4 == 0) break;\n        iVar4 = iVar4 + -1;\n        bVar18 = *pbVar8 < *pbVar16;\n        bVar20 = *pbVar8 == *pbVar16;\n        pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n      } while (bVar20);\n      bVar3 = (!bVar18 && !bVar20) - bVar18;\n      bVar18 = false;\n      bVar20 = bVar3 == 0;\n      if (!bVar20) {\n        iVar4 = 0x16;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"PuTTY-User-Key-File-1";\n        do {\n          if (iVar4 == 0) break;\n          iVar4 = iVar4 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        bVar19 = false;\n        bVar18 = (!bVar18 && !bVar20) == bVar18;\n        if (!bVar18) {\n          iVar23 = 0x14;\n          pbVar8 = local_71;\n          pbVar16 = (byte *)"PuTTY-User-Key-File-";\n          do {\n            if (iVar23 == 0) break;\n            iVar23 = iVar23 + -1;\n            bVar19 = *pbVar8 < *pbVar16;\n            bVar18 = *pbVar8 == *pbVar16;\n            pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n            pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n          } while (bVar18);\n          if ((!bVar19 && !bVar18) == bVar19) {\n            pcVar15 = "PuTTY key format too new";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          else {\n            pcVar15 = "not a PuTTY SSH-2 private key";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          goto LAB_00055070;\n        }\n        FUN_00065000();\n        bVar3 = 1;\n      }\n      pcVar5 = (char *)FUN_00053e50();\n      if (pcVar5 == (char *)0x0) goto LAB_0005510e;\n      sVar6 = strlen(pcVar5);\n      pcVar22 = pcVar5;\n      iVar4 = FUN_00054a80(sVar6,pcVar5);\n      if (iVar4 == 0) {\n        pcVar15 = "file format error";\n        FUN_0001b250(pcVar5);\n        piVar14 = (int *)0x0;\n        fclose(__stream);\n        goto LAB_00055070;\n      }\n      FUN_0001b250(pcVar5);\n      iVar7 = FUN_00053dd0();\n      bVar18 = false;\n      bVar20 = iVar7 == 0;\n      if (!bVar20) {\n        iVar7 = 0xb;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"Encryption";\n        do {\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        if ((!bVar18 && !bVar20) == bVar18) {\n          pbVar8 = (byte *)FUN_00053e50();\n          bVar18 = false;\n          bVar20 = pbVar8 == (byte *)0x0;\n          if (!bVar20) {\n            iVar7 = 0xb;\n            pbVar16 = pbVar8;\n            pbVar17 = (byte *)"aes256-cbc";\n            do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar18 = *pbVar16 < *pbVar17;\n              bVar20 = *pbVar16 == *pbVar17;\n              pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n              pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n            } while (bVar20);\n            bVar19 = false;\n            bVar18 = (!bVar18 && !bVar20) == bVar18;\n            if (bVar18) {\n              local_124 = 0x10;\n              bVar18 = true;\nLAB_000551a8:\n              iVar7 = FUN_00053dd0();\n              bVar20 = false;\n              bVar19 = iVar7 == 0;\n              if (!bVar19) {\n                iVar7 = 8;\n                pbVar16 = local_71;\n                pbVar17 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                } while (bVar19);\n                if ((!bVar20 && !bVar19) == bVar20) {\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar8;\n              pbVar17 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar19 = *pbVar16 < *pbVar17;\n                bVar18 = *pbVar16 == *pbVar17;\n                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n              } while (bVar18);\n              if ((!bVar19 && !bVar18) == bVar19) {\n                local_124 = 1;\n                bVar18 = false;\n                goto LAB_000551a8;\n              }\n            }\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n            pcVar15 = "file format error";\n            FUN_0001b250(pbVar8);\n            goto LAB_00055070;\n          }\n        }\n      }\nLAB_0005510e:\n      pcVar15 = "file format error";\n      piVar14 = (int *)0x0;\n      fclose(__stream);\n    }\n  }\nLAB_00055070:\n  if (param_3 != (undefined4 *)0x0) {\n    *param_3 = pcVar15;\n  }\nLAB_0005507a:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return piVar14;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006f2a0();\n}" primitive_type (pointer_declarator "* FUN_00054f40(undefined4 param_1,char *param_2,undefined4 *param_3)" * (function_declarator "FUN_00054f40(undefined4 param_1,char *param_2,undefined4 *param_3)" identifier (parameter_list "(undefined4 param_1,char *param_2,undefined4 *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) )))) (compound_statement "{\n  uint __n;\n  uint __n_00;\n  undefined1 *puVar1;\n  char cVar2;\n  byte bVar3;\n  FILE *__stream;\n  int iVar4;\n  char *pcVar5;\n  size_t sVar6;\n  int iVar7;\n  byte *pbVar8;\n  int iVar9;\n  uint *puVar10;\n  undefined4 extraout_ECX;\n  int extraout_ECX_00;\n  uint uVar11;\n  uint uVar12;\n  uint uVar13;\n  int *piVar14;\n  char *pcVar15;\n  byte *pbVar16;\n  byte *pbVar17;\n  uint __n_01;\n  int in_GS_OFFSET;\n  bool bVar18;\n  bool bVar19;\n  bool bVar20;\n  byte bVar21;\n  char *pcVar22;\n  int iVar23;\n  size_t local_14c;\n  char *local_144;\n  uint *local_140;\n  void *local_13c;\n  uint *local_134;\n  size_t local_124;\n  undefined4 local_104;\n  undefined4 local_100;\n  uint local_fc [24];\n  undefined1 local_99 [20];\n  undefined1 local_85 [20];\n  byte local_71 [40];\n  char local_49 [20];\n  undefined1 local_35 [21];\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar21 = 0;\n  uStack_14 = 0x54f49;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_14c = 0;\n  if (param_2 != (char *)0x0) {\n    local_14c = strlen(param_2);\n  }\n  iVar23 = 0;\n  __stream = (FILE *)FUN_00065d60(param_1,&DAT_0007d4f7,0);\n  if (__stream == (FILE *)0x0) {\n    pcVar15 = "can\'t open file";\n    piVar14 = (int *)0x0;\n  }\n  else {\n    iVar4 = FUN_00053dd0();\n    bVar18 = false;\n    bVar20 = iVar4 == 0;\n    if (bVar20) {\n      pcVar15 = (char *)0x0;\n      piVar14 = (int *)0x0;\n      fclose(__stream);\n    }\n    else {\n      iVar4 = 0x16;\n      pbVar8 = local_71;\n      pbVar16 = (byte *)"PuTTY-User-Key-File-2";\n      do {\n        if (iVar4 == 0) break;\n        iVar4 = iVar4 + -1;\n        bVar18 = *pbVar8 < *pbVar16;\n        bVar20 = *pbVar8 == *pbVar16;\n        pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n      } while (bVar20);\n      bVar3 = (!bVar18 && !bVar20) - bVar18;\n      bVar18 = false;\n      bVar20 = bVar3 == 0;\n      if (!bVar20) {\n        iVar4 = 0x16;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"PuTTY-User-Key-File-1";\n        do {\n          if (iVar4 == 0) break;\n          iVar4 = iVar4 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        bVar19 = false;\n        bVar18 = (!bVar18 && !bVar20) == bVar18;\n        if (!bVar18) {\n          iVar23 = 0x14;\n          pbVar8 = local_71;\n          pbVar16 = (byte *)"PuTTY-User-Key-File-";\n          do {\n            if (iVar23 == 0) break;\n            iVar23 = iVar23 + -1;\n            bVar19 = *pbVar8 < *pbVar16;\n            bVar18 = *pbVar8 == *pbVar16;\n            pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n            pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n          } while (bVar18);\n          if ((!bVar19 && !bVar18) == bVar19) {\n            pcVar15 = "PuTTY key format too new";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          else {\n            pcVar15 = "not a PuTTY SSH-2 private key";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          goto LAB_00055070;\n        }\n        FUN_00065000();\n        bVar3 = 1;\n      }\n      pcVar5 = (char *)FUN_00053e50();\n      if (pcVar5 == (char *)0x0) goto LAB_0005510e;\n      sVar6 = strlen(pcVar5);\n      pcVar22 = pcVar5;\n      iVar4 = FUN_00054a80(sVar6,pcVar5);\n      if (iVar4 == 0) {\n        pcVar15 = "file format error";\n        FUN_0001b250(pcVar5);\n        piVar14 = (int *)0x0;\n        fclose(__stream);\n        goto LAB_00055070;\n      }\n      FUN_0001b250(pcVar5);\n      iVar7 = FUN_00053dd0();\n      bVar18 = false;\n      bVar20 = iVar7 == 0;\n      if (!bVar20) {\n        iVar7 = 0xb;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"Encryption";\n        do {\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        if ((!bVar18 && !bVar20) == bVar18) {\n          pbVar8 = (byte *)FUN_00053e50();\n          bVar18 = false;\n          bVar20 = pbVar8 == (byte *)0x0;\n          if (!bVar20) {\n            iVar7 = 0xb;\n            pbVar16 = pbVar8;\n            pbVar17 = (byte *)"aes256-cbc";\n            do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar18 = *pbVar16 < *pbVar17;\n              bVar20 = *pbVar16 == *pbVar17;\n              pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n              pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n            } while (bVar20);\n            bVar19 = false;\n            bVar18 = (!bVar18 && !bVar20) == bVar18;\n            if (bVar18) {\n              local_124 = 0x10;\n              bVar18 = true;\nLAB_000551a8:\n              iVar7 = FUN_00053dd0();\n              bVar20 = false;\n              bVar19 = iVar7 == 0;\n              if (!bVar19) {\n                iVar7 = 8;\n                pbVar16 = local_71;\n                pbVar17 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                } while (bVar19);\n                if ((!bVar20 && !bVar19) == bVar20) {\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar8;\n              pbVar17 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar19 = *pbVar16 < *pbVar17;\n                bVar18 = *pbVar16 == *pbVar17;\n                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n              } while (bVar18);\n              if ((!bVar19 && !bVar18) == bVar19) {\n                local_124 = 1;\n                bVar18 = false;\n                goto LAB_000551a8;\n              }\n            }\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n            pcVar15 = "file format error";\n            FUN_0001b250(pbVar8);\n            goto LAB_00055070;\n          }\n        }\n      }\nLAB_0005510e:\n      pcVar15 = "file format error";\n      piVar14 = (int *)0x0;\n      fclose(__stream);\n    }\n  }\nLAB_00055070:\n  if (param_3 != (undefined4 *)0x0) {\n    *param_3 = pcVar15;\n  }\nLAB_0005507a:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return piVar14;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006f2a0();\n}" { (declaration "uint __n;" type_identifier identifier ;) (declaration "uint __n_00;" type_identifier identifier ;) (declaration "undefined1 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "byte bVar3;" type_identifier identifier ;) (declaration "FILE *__stream;" type_identifier (pointer_declarator "*__stream" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "size_t sVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "byte *pbVar8;" type_identifier (pointer_declarator "*pbVar8" * identifier) ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "uint *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "undefined4 extraout_ECX;" type_identifier identifier ;) (declaration "int extraout_ECX_00;" primitive_type identifier ;) (declaration "uint uVar11;" type_identifier identifier ;) (declaration "uint uVar12;" type_identifier identifier ;) (declaration "uint uVar13;" type_identifier identifier ;) (declaration "int *piVar14;" primitive_type (pointer_declarator "*piVar14" * identifier) ;) (declaration "char *pcVar15;" primitive_type (pointer_declarator "*pcVar15" * identifier) ;) (declaration "byte *pbVar16;" type_identifier (pointer_declarator "*pbVar16" * identifier) ;) (declaration "byte *pbVar17;" type_identifier (pointer_declarator "*pbVar17" * identifier) ;) (declaration "uint __n_01;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "bool bVar18;" primitive_type identifier ;) (declaration "bool bVar19;" primitive_type identifier ;) (declaration "bool bVar20;" primitive_type identifier ;) (declaration "byte bVar21;" type_identifier identifier ;) (declaration "char *pcVar22;" primitive_type (pointer_declarator "*pcVar22" * identifier) ;) (declaration "int iVar23;" primitive_type identifier ;) (declaration "size_t local_14c;" primitive_type identifier ;) (declaration "char *local_144;" primitive_type (pointer_declarator "*local_144" * identifier) ;) (declaration "uint *local_140;" type_identifier (pointer_declarator "*local_140" * identifier) ;) (declaration "void *local_13c;" primitive_type (pointer_declarator "*local_13c" * identifier) ;) (declaration "uint *local_134;" type_identifier (pointer_declarator "*local_134" * identifier) ;) (declaration "size_t local_124;" primitive_type identifier ;) (declaration "undefined4 local_104;" type_identifier identifier ;) (declaration "undefined4 local_100;" type_identifier identifier ;) (declaration "uint local_fc [24];" type_identifier (array_declarator "local_fc [24]" identifier [ number_literal ]) ;) (declaration "undefined1 local_99 [20];" type_identifier (array_declarator "local_99 [20]" identifier [ number_literal ]) ;) (declaration "undefined1 local_85 [20];" type_identifier (array_declarator "local_85 [20]" identifier [ number_literal ]) ;) (declaration "byte local_71 [40];" type_identifier (array_declarator "local_71 [40]" identifier [ number_literal ]) ;) (declaration "char local_49 [20];" primitive_type (array_declarator "local_49 [20]" identifier [ number_literal ]) ;) (declaration "undefined1 local_35 [21];" type_identifier (array_declarator "local_35 [21]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "bVar21 = 0;" (assignment_expression "bVar21 = 0" identifier = number_literal) ;) (expression_statement "uStack_14 = 0x54f49;" (assignment_expression "uStack_14 = 0x54f49" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "local_14c = 0;" (assignment_expression "local_14c = 0" identifier = number_literal) ;) (if_statement "if (param_2 != (char *)0x0) {\n    local_14c = strlen(param_2);\n  }" if (parenthesized_expression "(param_2 != (char *)0x0)" ( (binary_expression "param_2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    local_14c = strlen(param_2);\n  }" { (expression_statement "local_14c = strlen(param_2);" (assignment_expression "local_14c = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) })) (expression_statement "iVar23 = 0;" (assignment_expression "iVar23 = 0" identifier = number_literal) ;) (expression_statement "__stream = (FILE *)FUN_00065d60(param_1,&DAT_0007d4f7,0);" (assignment_expression "__stream = (FILE *)FUN_00065d60(param_1,&DAT_0007d4f7,0)" identifier = (cast_expression "(FILE *)FUN_00065d60(param_1,&DAT_0007d4f7,0)" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00065d60(param_1,&DAT_0007d4f7,0)" identifier (argument_list "(param_1,&DAT_0007d4f7,0)" ( identifier , (pointer_expression "&DAT_0007d4f7" & identifier) , number_literal ))))) ;) (if_statement "if (__stream == (FILE *)0x0) {\n    pcVar15 = "can\'t open file";\n    piVar14 = (int *)0x0;\n  }\n  else {\n    iVar4 = FUN_00053dd0();\n    bVar18 = false;\n    bVar20 = iVar4 == 0;\n    if (bVar20) {\n      pcVar15 = (char *)0x0;\n      piVar14 = (int *)0x0;\n      fclose(__stream);\n    }\n    else {\n      iVar4 = 0x16;\n      pbVar8 = local_71;\n      pbVar16 = (byte *)"PuTTY-User-Key-File-2";\n      do {\n        if (iVar4 == 0) break;\n        iVar4 = iVar4 + -1;\n        bVar18 = *pbVar8 < *pbVar16;\n        bVar20 = *pbVar8 == *pbVar16;\n        pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n      } while (bVar20);\n      bVar3 = (!bVar18 && !bVar20) - bVar18;\n      bVar18 = false;\n      bVar20 = bVar3 == 0;\n      if (!bVar20) {\n        iVar4 = 0x16;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"PuTTY-User-Key-File-1";\n        do {\n          if (iVar4 == 0) break;\n          iVar4 = iVar4 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        bVar19 = false;\n        bVar18 = (!bVar18 && !bVar20) == bVar18;\n        if (!bVar18) {\n          iVar23 = 0x14;\n          pbVar8 = local_71;\n          pbVar16 = (byte *)"PuTTY-User-Key-File-";\n          do {\n            if (iVar23 == 0) break;\n            iVar23 = iVar23 + -1;\n            bVar19 = *pbVar8 < *pbVar16;\n            bVar18 = *pbVar8 == *pbVar16;\n            pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n            pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n          } while (bVar18);\n          if ((!bVar19 && !bVar18) == bVar19) {\n            pcVar15 = "PuTTY key format too new";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          else {\n            pcVar15 = "not a PuTTY SSH-2 private key";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          goto LAB_00055070;\n        }\n        FUN_00065000();\n        bVar3 = 1;\n      }\n      pcVar5 = (char *)FUN_00053e50();\n      if (pcVar5 == (char *)0x0) goto LAB_0005510e;\n      sVar6 = strlen(pcVar5);\n      pcVar22 = pcVar5;\n      iVar4 = FUN_00054a80(sVar6,pcVar5);\n      if (iVar4 == 0) {\n        pcVar15 = "file format error";\n        FUN_0001b250(pcVar5);\n        piVar14 = (int *)0x0;\n        fclose(__stream);\n        goto LAB_00055070;\n      }\n      FUN_0001b250(pcVar5);\n      iVar7 = FUN_00053dd0();\n      bVar18 = false;\n      bVar20 = iVar7 == 0;\n      if (!bVar20) {\n        iVar7 = 0xb;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"Encryption";\n        do {\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        if ((!bVar18 && !bVar20) == bVar18) {\n          pbVar8 = (byte *)FUN_00053e50();\n          bVar18 = false;\n          bVar20 = pbVar8 == (byte *)0x0;\n          if (!bVar20) {\n            iVar7 = 0xb;\n            pbVar16 = pbVar8;\n            pbVar17 = (byte *)"aes256-cbc";\n            do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar18 = *pbVar16 < *pbVar17;\n              bVar20 = *pbVar16 == *pbVar17;\n              pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n              pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n            } while (bVar20);\n            bVar19 = false;\n            bVar18 = (!bVar18 && !bVar20) == bVar18;\n            if (bVar18) {\n              local_124 = 0x10;\n              bVar18 = true;\nLAB_000551a8:\n              iVar7 = FUN_00053dd0();\n              bVar20 = false;\n              bVar19 = iVar7 == 0;\n              if (!bVar19) {\n                iVar7 = 8;\n                pbVar16 = local_71;\n                pbVar17 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                } while (bVar19);\n                if ((!bVar20 && !bVar19) == bVar20) {\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar8;\n              pbVar17 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar19 = *pbVar16 < *pbVar17;\n                bVar18 = *pbVar16 == *pbVar17;\n                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n              } while (bVar18);\n              if ((!bVar19 && !bVar18) == bVar19) {\n                local_124 = 1;\n                bVar18 = false;\n                goto LAB_000551a8;\n              }\n            }\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n            pcVar15 = "file format error";\n            FUN_0001b250(pbVar8);\n            goto LAB_00055070;\n          }\n        }\n      }\nLAB_0005510e:\n      pcVar15 = "file format error";\n      piVar14 = (int *)0x0;\n      fclose(__stream);\n    }\n  }" if (parenthesized_expression "(__stream == (FILE *)0x0)" ( (binary_expression "__stream == (FILE *)0x0" identifier == (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar15 = "can\'t open file";\n    piVar14 = (int *)0x0;\n  }" { (expression_statement "pcVar15 = "can\'t open file";" (assignment_expression "pcVar15 = "can\'t open file"" identifier = (string_literal ""can\'t open file"" " string_content escape_sequence string_content ")) ;) (expression_statement "piVar14 = (int *)0x0;" (assignment_expression "piVar14 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    iVar4 = FUN_00053dd0();\n    bVar18 = false;\n    bVar20 = iVar4 == 0;\n    if (bVar20) {\n      pcVar15 = (char *)0x0;\n      piVar14 = (int *)0x0;\n      fclose(__stream);\n    }\n    else {\n      iVar4 = 0x16;\n      pbVar8 = local_71;\n      pbVar16 = (byte *)"PuTTY-User-Key-File-2";\n      do {\n        if (iVar4 == 0) break;\n        iVar4 = iVar4 + -1;\n        bVar18 = *pbVar8 < *pbVar16;\n        bVar20 = *pbVar8 == *pbVar16;\n        pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n      } while (bVar20);\n      bVar3 = (!bVar18 && !bVar20) - bVar18;\n      bVar18 = false;\n      bVar20 = bVar3 == 0;\n      if (!bVar20) {\n        iVar4 = 0x16;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"PuTTY-User-Key-File-1";\n        do {\n          if (iVar4 == 0) break;\n          iVar4 = iVar4 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        bVar19 = false;\n        bVar18 = (!bVar18 && !bVar20) == bVar18;\n        if (!bVar18) {\n          iVar23 = 0x14;\n          pbVar8 = local_71;\n          pbVar16 = (byte *)"PuTTY-User-Key-File-";\n          do {\n            if (iVar23 == 0) break;\n            iVar23 = iVar23 + -1;\n            bVar19 = *pbVar8 < *pbVar16;\n            bVar18 = *pbVar8 == *pbVar16;\n            pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n            pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n          } while (bVar18);\n          if ((!bVar19 && !bVar18) == bVar19) {\n            pcVar15 = "PuTTY key format too new";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          else {\n            pcVar15 = "not a PuTTY SSH-2 private key";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          goto LAB_00055070;\n        }\n        FUN_00065000();\n        bVar3 = 1;\n      }\n      pcVar5 = (char *)FUN_00053e50();\n      if (pcVar5 == (char *)0x0) goto LAB_0005510e;\n      sVar6 = strlen(pcVar5);\n      pcVar22 = pcVar5;\n      iVar4 = FUN_00054a80(sVar6,pcVar5);\n      if (iVar4 == 0) {\n        pcVar15 = "file format error";\n        FUN_0001b250(pcVar5);\n        piVar14 = (int *)0x0;\n        fclose(__stream);\n        goto LAB_00055070;\n      }\n      FUN_0001b250(pcVar5);\n      iVar7 = FUN_00053dd0();\n      bVar18 = false;\n      bVar20 = iVar7 == 0;\n      if (!bVar20) {\n        iVar7 = 0xb;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"Encryption";\n        do {\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        if ((!bVar18 && !bVar20) == bVar18) {\n          pbVar8 = (byte *)FUN_00053e50();\n          bVar18 = false;\n          bVar20 = pbVar8 == (byte *)0x0;\n          if (!bVar20) {\n            iVar7 = 0xb;\n            pbVar16 = pbVar8;\n            pbVar17 = (byte *)"aes256-cbc";\n            do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar18 = *pbVar16 < *pbVar17;\n              bVar20 = *pbVar16 == *pbVar17;\n              pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n              pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n            } while (bVar20);\n            bVar19 = false;\n            bVar18 = (!bVar18 && !bVar20) == bVar18;\n            if (bVar18) {\n              local_124 = 0x10;\n              bVar18 = true;\nLAB_000551a8:\n              iVar7 = FUN_00053dd0();\n              bVar20 = false;\n              bVar19 = iVar7 == 0;\n              if (!bVar19) {\n                iVar7 = 8;\n                pbVar16 = local_71;\n                pbVar17 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                } while (bVar19);\n                if ((!bVar20 && !bVar19) == bVar20) {\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar8;\n              pbVar17 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar19 = *pbVar16 < *pbVar17;\n                bVar18 = *pbVar16 == *pbVar17;\n                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n              } while (bVar18);\n              if ((!bVar19 && !bVar18) == bVar19) {\n                local_124 = 1;\n                bVar18 = false;\n                goto LAB_000551a8;\n              }\n            }\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n            pcVar15 = "file format error";\n            FUN_0001b250(pbVar8);\n            goto LAB_00055070;\n          }\n        }\n      }\nLAB_0005510e:\n      pcVar15 = "file format error";\n      piVar14 = (int *)0x0;\n      fclose(__stream);\n    }\n  }" else (compound_statement "{\n    iVar4 = FUN_00053dd0();\n    bVar18 = false;\n    bVar20 = iVar4 == 0;\n    if (bVar20) {\n      pcVar15 = (char *)0x0;\n      piVar14 = (int *)0x0;\n      fclose(__stream);\n    }\n    else {\n      iVar4 = 0x16;\n      pbVar8 = local_71;\n      pbVar16 = (byte *)"PuTTY-User-Key-File-2";\n      do {\n        if (iVar4 == 0) break;\n        iVar4 = iVar4 + -1;\n        bVar18 = *pbVar8 < *pbVar16;\n        bVar20 = *pbVar8 == *pbVar16;\n        pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n      } while (bVar20);\n      bVar3 = (!bVar18 && !bVar20) - bVar18;\n      bVar18 = false;\n      bVar20 = bVar3 == 0;\n      if (!bVar20) {\n        iVar4 = 0x16;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"PuTTY-User-Key-File-1";\n        do {\n          if (iVar4 == 0) break;\n          iVar4 = iVar4 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        bVar19 = false;\n        bVar18 = (!bVar18 && !bVar20) == bVar18;\n        if (!bVar18) {\n          iVar23 = 0x14;\n          pbVar8 = local_71;\n          pbVar16 = (byte *)"PuTTY-User-Key-File-";\n          do {\n            if (iVar23 == 0) break;\n            iVar23 = iVar23 + -1;\n            bVar19 = *pbVar8 < *pbVar16;\n            bVar18 = *pbVar8 == *pbVar16;\n            pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n            pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n          } while (bVar18);\n          if ((!bVar19 && !bVar18) == bVar19) {\n            pcVar15 = "PuTTY key format too new";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          else {\n            pcVar15 = "not a PuTTY SSH-2 private key";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          goto LAB_00055070;\n        }\n        FUN_00065000();\n        bVar3 = 1;\n      }\n      pcVar5 = (char *)FUN_00053e50();\n      if (pcVar5 == (char *)0x0) goto LAB_0005510e;\n      sVar6 = strlen(pcVar5);\n      pcVar22 = pcVar5;\n      iVar4 = FUN_00054a80(sVar6,pcVar5);\n      if (iVar4 == 0) {\n        pcVar15 = "file format error";\n        FUN_0001b250(pcVar5);\n        piVar14 = (int *)0x0;\n        fclose(__stream);\n        goto LAB_00055070;\n      }\n      FUN_0001b250(pcVar5);\n      iVar7 = FUN_00053dd0();\n      bVar18 = false;\n      bVar20 = iVar7 == 0;\n      if (!bVar20) {\n        iVar7 = 0xb;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"Encryption";\n        do {\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        if ((!bVar18 && !bVar20) == bVar18) {\n          pbVar8 = (byte *)FUN_00053e50();\n          bVar18 = false;\n          bVar20 = pbVar8 == (byte *)0x0;\n          if (!bVar20) {\n            iVar7 = 0xb;\n            pbVar16 = pbVar8;\n            pbVar17 = (byte *)"aes256-cbc";\n            do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar18 = *pbVar16 < *pbVar17;\n              bVar20 = *pbVar16 == *pbVar17;\n              pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n              pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n            } while (bVar20);\n            bVar19 = false;\n            bVar18 = (!bVar18 && !bVar20) == bVar18;\n            if (bVar18) {\n              local_124 = 0x10;\n              bVar18 = true;\nLAB_000551a8:\n              iVar7 = FUN_00053dd0();\n              bVar20 = false;\n              bVar19 = iVar7 == 0;\n              if (!bVar19) {\n                iVar7 = 8;\n                pbVar16 = local_71;\n                pbVar17 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                } while (bVar19);\n                if ((!bVar20 && !bVar19) == bVar20) {\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar8;\n              pbVar17 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar19 = *pbVar16 < *pbVar17;\n                bVar18 = *pbVar16 == *pbVar17;\n                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n              } while (bVar18);\n              if ((!bVar19 && !bVar18) == bVar19) {\n                local_124 = 1;\n                bVar18 = false;\n                goto LAB_000551a8;\n              }\n            }\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n            pcVar15 = "file format error";\n            FUN_0001b250(pbVar8);\n            goto LAB_00055070;\n          }\n        }\n      }\nLAB_0005510e:\n      pcVar15 = "file format error";\n      piVar14 = (int *)0x0;\n      fclose(__stream);\n    }\n  }" { (expression_statement "iVar4 = FUN_00053dd0();" (assignment_expression "iVar4 = FUN_00053dd0()" identifier = (call_expression "FUN_00053dd0()" identifier (argument_list "()" ( )))) ;) (expression_statement "bVar18 = false;" (assignment_expression "bVar18 = false" identifier = false) ;) (expression_statement "bVar20 = iVar4 == 0;" (assignment_expression "bVar20 = iVar4 == 0" identifier = (binary_expression "iVar4 == 0" identifier == number_literal)) ;) (if_statement "if (bVar20) {\n      pcVar15 = (char *)0x0;\n      piVar14 = (int *)0x0;\n      fclose(__stream);\n    }\n    else {\n      iVar4 = 0x16;\n      pbVar8 = local_71;\n      pbVar16 = (byte *)"PuTTY-User-Key-File-2";\n      do {\n        if (iVar4 == 0) break;\n        iVar4 = iVar4 + -1;\n        bVar18 = *pbVar8 < *pbVar16;\n        bVar20 = *pbVar8 == *pbVar16;\n        pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n      } while (bVar20);\n      bVar3 = (!bVar18 && !bVar20) - bVar18;\n      bVar18 = false;\n      bVar20 = bVar3 == 0;\n      if (!bVar20) {\n        iVar4 = 0x16;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"PuTTY-User-Key-File-1";\n        do {\n          if (iVar4 == 0) break;\n          iVar4 = iVar4 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        bVar19 = false;\n        bVar18 = (!bVar18 && !bVar20) == bVar18;\n        if (!bVar18) {\n          iVar23 = 0x14;\n          pbVar8 = local_71;\n          pbVar16 = (byte *)"PuTTY-User-Key-File-";\n          do {\n            if (iVar23 == 0) break;\n            iVar23 = iVar23 + -1;\n            bVar19 = *pbVar8 < *pbVar16;\n            bVar18 = *pbVar8 == *pbVar16;\n            pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n            pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n          } while (bVar18);\n          if ((!bVar19 && !bVar18) == bVar19) {\n            pcVar15 = "PuTTY key format too new";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          else {\n            pcVar15 = "not a PuTTY SSH-2 private key";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          goto LAB_00055070;\n        }\n        FUN_00065000();\n        bVar3 = 1;\n      }\n      pcVar5 = (char *)FUN_00053e50();\n      if (pcVar5 == (char *)0x0) goto LAB_0005510e;\n      sVar6 = strlen(pcVar5);\n      pcVar22 = pcVar5;\n      iVar4 = FUN_00054a80(sVar6,pcVar5);\n      if (iVar4 == 0) {\n        pcVar15 = "file format error";\n        FUN_0001b250(pcVar5);\n        piVar14 = (int *)0x0;\n        fclose(__stream);\n        goto LAB_00055070;\n      }\n      FUN_0001b250(pcVar5);\n      iVar7 = FUN_00053dd0();\n      bVar18 = false;\n      bVar20 = iVar7 == 0;\n      if (!bVar20) {\n        iVar7 = 0xb;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"Encryption";\n        do {\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        if ((!bVar18 && !bVar20) == bVar18) {\n          pbVar8 = (byte *)FUN_00053e50();\n          bVar18 = false;\n          bVar20 = pbVar8 == (byte *)0x0;\n          if (!bVar20) {\n            iVar7 = 0xb;\n            pbVar16 = pbVar8;\n            pbVar17 = (byte *)"aes256-cbc";\n            do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar18 = *pbVar16 < *pbVar17;\n              bVar20 = *pbVar16 == *pbVar17;\n              pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n              pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n            } while (bVar20);\n            bVar19 = false;\n            bVar18 = (!bVar18 && !bVar20) == bVar18;\n            if (bVar18) {\n              local_124 = 0x10;\n              bVar18 = true;\nLAB_000551a8:\n              iVar7 = FUN_00053dd0();\n              bVar20 = false;\n              bVar19 = iVar7 == 0;\n              if (!bVar19) {\n                iVar7 = 8;\n                pbVar16 = local_71;\n                pbVar17 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                } while (bVar19);\n                if ((!bVar20 && !bVar19) == bVar20) {\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar8;\n              pbVar17 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar19 = *pbVar16 < *pbVar17;\n                bVar18 = *pbVar16 == *pbVar17;\n                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n              } while (bVar18);\n              if ((!bVar19 && !bVar18) == bVar19) {\n                local_124 = 1;\n                bVar18 = false;\n                goto LAB_000551a8;\n              }\n            }\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n            pcVar15 = "file format error";\n            FUN_0001b250(pbVar8);\n            goto LAB_00055070;\n          }\n        }\n      }\nLAB_0005510e:\n      pcVar15 = "file format error";\n      piVar14 = (int *)0x0;\n      fclose(__stream);\n    }" if (parenthesized_expression "(bVar20)" ( identifier )) (compound_statement "{\n      pcVar15 = (char *)0x0;\n      piVar14 = (int *)0x0;\n      fclose(__stream);\n    }" { (expression_statement "pcVar15 = (char *)0x0;" (assignment_expression "pcVar15 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "piVar14 = (int *)0x0;" (assignment_expression "piVar14 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "fclose(__stream);" (call_expression "fclose(__stream)" identifier (argument_list "(__stream)" ( identifier ))) ;) }) (else_clause "else {\n      iVar4 = 0x16;\n      pbVar8 = local_71;\n      pbVar16 = (byte *)"PuTTY-User-Key-File-2";\n      do {\n        if (iVar4 == 0) break;\n        iVar4 = iVar4 + -1;\n        bVar18 = *pbVar8 < *pbVar16;\n        bVar20 = *pbVar8 == *pbVar16;\n        pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n      } while (bVar20);\n      bVar3 = (!bVar18 && !bVar20) - bVar18;\n      bVar18 = false;\n      bVar20 = bVar3 == 0;\n      if (!bVar20) {\n        iVar4 = 0x16;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"PuTTY-User-Key-File-1";\n        do {\n          if (iVar4 == 0) break;\n          iVar4 = iVar4 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        bVar19 = false;\n        bVar18 = (!bVar18 && !bVar20) == bVar18;\n        if (!bVar18) {\n          iVar23 = 0x14;\n          pbVar8 = local_71;\n          pbVar16 = (byte *)"PuTTY-User-Key-File-";\n          do {\n            if (iVar23 == 0) break;\n            iVar23 = iVar23 + -1;\n            bVar19 = *pbVar8 < *pbVar16;\n            bVar18 = *pbVar8 == *pbVar16;\n            pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n            pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n          } while (bVar18);\n          if ((!bVar19 && !bVar18) == bVar19) {\n            pcVar15 = "PuTTY key format too new";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          else {\n            pcVar15 = "not a PuTTY SSH-2 private key";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          goto LAB_00055070;\n        }\n        FUN_00065000();\n        bVar3 = 1;\n      }\n      pcVar5 = (char *)FUN_00053e50();\n      if (pcVar5 == (char *)0x0) goto LAB_0005510e;\n      sVar6 = strlen(pcVar5);\n      pcVar22 = pcVar5;\n      iVar4 = FUN_00054a80(sVar6,pcVar5);\n      if (iVar4 == 0) {\n        pcVar15 = "file format error";\n        FUN_0001b250(pcVar5);\n        piVar14 = (int *)0x0;\n        fclose(__stream);\n        goto LAB_00055070;\n      }\n      FUN_0001b250(pcVar5);\n      iVar7 = FUN_00053dd0();\n      bVar18 = false;\n      bVar20 = iVar7 == 0;\n      if (!bVar20) {\n        iVar7 = 0xb;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"Encryption";\n        do {\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        if ((!bVar18 && !bVar20) == bVar18) {\n          pbVar8 = (byte *)FUN_00053e50();\n          bVar18 = false;\n          bVar20 = pbVar8 == (byte *)0x0;\n          if (!bVar20) {\n            iVar7 = 0xb;\n            pbVar16 = pbVar8;\n            pbVar17 = (byte *)"aes256-cbc";\n            do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar18 = *pbVar16 < *pbVar17;\n              bVar20 = *pbVar16 == *pbVar17;\n              pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n              pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n            } while (bVar20);\n            bVar19 = false;\n            bVar18 = (!bVar18 && !bVar20) == bVar18;\n            if (bVar18) {\n              local_124 = 0x10;\n              bVar18 = true;\nLAB_000551a8:\n              iVar7 = FUN_00053dd0();\n              bVar20 = false;\n              bVar19 = iVar7 == 0;\n              if (!bVar19) {\n                iVar7 = 8;\n                pbVar16 = local_71;\n                pbVar17 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                } while (bVar19);\n                if ((!bVar20 && !bVar19) == bVar20) {\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar8;\n              pbVar17 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar19 = *pbVar16 < *pbVar17;\n                bVar18 = *pbVar16 == *pbVar17;\n                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n              } while (bVar18);\n              if ((!bVar19 && !bVar18) == bVar19) {\n                local_124 = 1;\n                bVar18 = false;\n                goto LAB_000551a8;\n              }\n            }\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n            pcVar15 = "file format error";\n            FUN_0001b250(pbVar8);\n            goto LAB_00055070;\n          }\n        }\n      }\nLAB_0005510e:\n      pcVar15 = "file format error";\n      piVar14 = (int *)0x0;\n      fclose(__stream);\n    }" else (compound_statement "{\n      iVar4 = 0x16;\n      pbVar8 = local_71;\n      pbVar16 = (byte *)"PuTTY-User-Key-File-2";\n      do {\n        if (iVar4 == 0) break;\n        iVar4 = iVar4 + -1;\n        bVar18 = *pbVar8 < *pbVar16;\n        bVar20 = *pbVar8 == *pbVar16;\n        pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n      } while (bVar20);\n      bVar3 = (!bVar18 && !bVar20) - bVar18;\n      bVar18 = false;\n      bVar20 = bVar3 == 0;\n      if (!bVar20) {\n        iVar4 = 0x16;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"PuTTY-User-Key-File-1";\n        do {\n          if (iVar4 == 0) break;\n          iVar4 = iVar4 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        bVar19 = false;\n        bVar18 = (!bVar18 && !bVar20) == bVar18;\n        if (!bVar18) {\n          iVar23 = 0x14;\n          pbVar8 = local_71;\n          pbVar16 = (byte *)"PuTTY-User-Key-File-";\n          do {\n            if (iVar23 == 0) break;\n            iVar23 = iVar23 + -1;\n            bVar19 = *pbVar8 < *pbVar16;\n            bVar18 = *pbVar8 == *pbVar16;\n            pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n            pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n          } while (bVar18);\n          if ((!bVar19 && !bVar18) == bVar19) {\n            pcVar15 = "PuTTY key format too new";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          else {\n            pcVar15 = "not a PuTTY SSH-2 private key";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          goto LAB_00055070;\n        }\n        FUN_00065000();\n        bVar3 = 1;\n      }\n      pcVar5 = (char *)FUN_00053e50();\n      if (pcVar5 == (char *)0x0) goto LAB_0005510e;\n      sVar6 = strlen(pcVar5);\n      pcVar22 = pcVar5;\n      iVar4 = FUN_00054a80(sVar6,pcVar5);\n      if (iVar4 == 0) {\n        pcVar15 = "file format error";\n        FUN_0001b250(pcVar5);\n        piVar14 = (int *)0x0;\n        fclose(__stream);\n        goto LAB_00055070;\n      }\n      FUN_0001b250(pcVar5);\n      iVar7 = FUN_00053dd0();\n      bVar18 = false;\n      bVar20 = iVar7 == 0;\n      if (!bVar20) {\n        iVar7 = 0xb;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"Encryption";\n        do {\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        if ((!bVar18 && !bVar20) == bVar18) {\n          pbVar8 = (byte *)FUN_00053e50();\n          bVar18 = false;\n          bVar20 = pbVar8 == (byte *)0x0;\n          if (!bVar20) {\n            iVar7 = 0xb;\n            pbVar16 = pbVar8;\n            pbVar17 = (byte *)"aes256-cbc";\n            do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar18 = *pbVar16 < *pbVar17;\n              bVar20 = *pbVar16 == *pbVar17;\n              pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n              pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n            } while (bVar20);\n            bVar19 = false;\n            bVar18 = (!bVar18 && !bVar20) == bVar18;\n            if (bVar18) {\n              local_124 = 0x10;\n              bVar18 = true;\nLAB_000551a8:\n              iVar7 = FUN_00053dd0();\n              bVar20 = false;\n              bVar19 = iVar7 == 0;\n              if (!bVar19) {\n                iVar7 = 8;\n                pbVar16 = local_71;\n                pbVar17 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                } while (bVar19);\n                if ((!bVar20 && !bVar19) == bVar20) {\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar8;\n              pbVar17 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar19 = *pbVar16 < *pbVar17;\n                bVar18 = *pbVar16 == *pbVar17;\n                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n              } while (bVar18);\n              if ((!bVar19 && !bVar18) == bVar19) {\n                local_124 = 1;\n                bVar18 = false;\n                goto LAB_000551a8;\n              }\n            }\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n            pcVar15 = "file format error";\n            FUN_0001b250(pbVar8);\n            goto LAB_00055070;\n          }\n        }\n      }\nLAB_0005510e:\n      pcVar15 = "file format error";\n      piVar14 = (int *)0x0;\n      fclose(__stream);\n    }" { (expression_statement "iVar4 = 0x16;" (assignment_expression "iVar4 = 0x16" identifier = number_literal) ;) (expression_statement "pbVar8 = local_71;" (assignment_expression "pbVar8 = local_71" identifier = identifier) ;) (expression_statement "pbVar16 = (byte *)"PuTTY-User-Key-File-2";" (assignment_expression "pbVar16 = (byte *)"PuTTY-User-Key-File-2"" identifier = (cast_expression "(byte *)"PuTTY-User-Key-File-2"" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""PuTTY-User-Key-File-2"" " string_content "))) ;) (do_statement "do {\n        if (iVar4 == 0) break;\n        iVar4 = iVar4 + -1;\n        bVar18 = *pbVar8 < *pbVar16;\n        bVar20 = *pbVar8 == *pbVar16;\n        pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n      } while (bVar20);" do (compound_statement "{\n        if (iVar4 == 0) break;\n        iVar4 = iVar4 + -1;\n        bVar18 = *pbVar8 < *pbVar16;\n        bVar20 = *pbVar8 == *pbVar16;\n        pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n      }" { (if_statement "if (iVar4 == 0) break;" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar4 = iVar4 + -1;" (assignment_expression "iVar4 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) (expression_statement "bVar18 = *pbVar8 < *pbVar16;" (assignment_expression "bVar18 = *pbVar8 < *pbVar16" identifier = (binary_expression "*pbVar8 < *pbVar16" (pointer_expression "*pbVar8" * identifier) < (pointer_expression "*pbVar16" * identifier))) ;) (expression_statement "bVar20 = *pbVar8 == *pbVar16;" (assignment_expression "bVar20 = *pbVar8 == *pbVar16" identifier = (binary_expression "*pbVar8 == *pbVar16" (pointer_expression "*pbVar8" * identifier) == (pointer_expression "*pbVar16" * identifier))) ;) (expression_statement "pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;" (assignment_expression "pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1" identifier = (binary_expression "pbVar8 + (uint)bVar21 * -2 + 1" (binary_expression "pbVar8 + (uint)bVar21 * -2" identifier + (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;" (assignment_expression "pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1" identifier = (binary_expression "pbVar16 + (uint)bVar21 * -2 + 1" (binary_expression "pbVar16 + (uint)bVar21 * -2" identifier + (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar20)" ( identifier )) ;) (expression_statement "bVar3 = (!bVar18 && !bVar20) - bVar18;" (assignment_expression "bVar3 = (!bVar18 && !bVar20) - bVar18" identifier = (binary_expression "(!bVar18 && !bVar20) - bVar18" (parenthesized_expression "(!bVar18 && !bVar20)" ( (binary_expression "!bVar18 && !bVar20" (unary_expression "!bVar18" ! identifier) && (unary_expression "!bVar20" ! identifier)) )) - identifier)) ;) (expression_statement "bVar18 = false;" (assignment_expression "bVar18 = false" identifier = false) ;) (expression_statement "bVar20 = bVar3 == 0;" (assignment_expression "bVar20 = bVar3 == 0" identifier = (binary_expression "bVar3 == 0" identifier == number_literal)) ;) (if_statement "if (!bVar20) {\n        iVar4 = 0x16;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"PuTTY-User-Key-File-1";\n        do {\n          if (iVar4 == 0) break;\n          iVar4 = iVar4 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        bVar19 = false;\n        bVar18 = (!bVar18 && !bVar20) == bVar18;\n        if (!bVar18) {\n          iVar23 = 0x14;\n          pbVar8 = local_71;\n          pbVar16 = (byte *)"PuTTY-User-Key-File-";\n          do {\n            if (iVar23 == 0) break;\n            iVar23 = iVar23 + -1;\n            bVar19 = *pbVar8 < *pbVar16;\n            bVar18 = *pbVar8 == *pbVar16;\n            pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n            pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n          } while (bVar18);\n          if ((!bVar19 && !bVar18) == bVar19) {\n            pcVar15 = "PuTTY key format too new";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          else {\n            pcVar15 = "not a PuTTY SSH-2 private key";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          goto LAB_00055070;\n        }\n        FUN_00065000();\n        bVar3 = 1;\n      }" if (parenthesized_expression "(!bVar20)" ( (unary_expression "!bVar20" ! identifier) )) (compound_statement "{\n        iVar4 = 0x16;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"PuTTY-User-Key-File-1";\n        do {\n          if (iVar4 == 0) break;\n          iVar4 = iVar4 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        bVar19 = false;\n        bVar18 = (!bVar18 && !bVar20) == bVar18;\n        if (!bVar18) {\n          iVar23 = 0x14;\n          pbVar8 = local_71;\n          pbVar16 = (byte *)"PuTTY-User-Key-File-";\n          do {\n            if (iVar23 == 0) break;\n            iVar23 = iVar23 + -1;\n            bVar19 = *pbVar8 < *pbVar16;\n            bVar18 = *pbVar8 == *pbVar16;\n            pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n            pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n          } while (bVar18);\n          if ((!bVar19 && !bVar18) == bVar19) {\n            pcVar15 = "PuTTY key format too new";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          else {\n            pcVar15 = "not a PuTTY SSH-2 private key";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          goto LAB_00055070;\n        }\n        FUN_00065000();\n        bVar3 = 1;\n      }" { (expression_statement "iVar4 = 0x16;" (assignment_expression "iVar4 = 0x16" identifier = number_literal) ;) (expression_statement "pbVar8 = local_71;" (assignment_expression "pbVar8 = local_71" identifier = identifier) ;) (expression_statement "pbVar16 = (byte *)"PuTTY-User-Key-File-1";" (assignment_expression "pbVar16 = (byte *)"PuTTY-User-Key-File-1"" identifier = (cast_expression "(byte *)"PuTTY-User-Key-File-1"" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""PuTTY-User-Key-File-1"" " string_content "))) ;) (do_statement "do {\n          if (iVar4 == 0) break;\n          iVar4 = iVar4 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);" do (compound_statement "{\n          if (iVar4 == 0) break;\n          iVar4 = iVar4 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        }" { (if_statement "if (iVar4 == 0) break;" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar4 = iVar4 + -1;" (assignment_expression "iVar4 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) (expression_statement "bVar18 = *pbVar8 < *pbVar16;" (assignment_expression "bVar18 = *pbVar8 < *pbVar16" identifier = (binary_expression "*pbVar8 < *pbVar16" (pointer_expression "*pbVar8" * identifier) < (pointer_expression "*pbVar16" * identifier))) ;) (expression_statement "bVar20 = *pbVar8 == *pbVar16;" (assignment_expression "bVar20 = *pbVar8 == *pbVar16" identifier = (binary_expression "*pbVar8 == *pbVar16" (pointer_expression "*pbVar8" * identifier) == (pointer_expression "*pbVar16" * identifier))) ;) (expression_statement "pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;" (assignment_expression "pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1" identifier = (binary_expression "pbVar8 + (uint)bVar21 * -2 + 1" (binary_expression "pbVar8 + (uint)bVar21 * -2" identifier + (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;" (assignment_expression "pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1" identifier = (binary_expression "pbVar16 + (uint)bVar21 * -2 + 1" (binary_expression "pbVar16 + (uint)bVar21 * -2" identifier + (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar20)" ( identifier )) ;) (expression_statement "bVar19 = false;" (assignment_expression "bVar19 = false" identifier = false) ;) (expression_statement "bVar18 = (!bVar18 && !bVar20) == bVar18;" (assignment_expression "bVar18 = (!bVar18 && !bVar20) == bVar18" identifier = (binary_expression "(!bVar18 && !bVar20) == bVar18" (parenthesized_expression "(!bVar18 && !bVar20)" ( (binary_expression "!bVar18 && !bVar20" (unary_expression "!bVar18" ! identifier) && (unary_expression "!bVar20" ! identifier)) )) == identifier)) ;) (if_statement "if (!bVar18) {\n          iVar23 = 0x14;\n          pbVar8 = local_71;\n          pbVar16 = (byte *)"PuTTY-User-Key-File-";\n          do {\n            if (iVar23 == 0) break;\n            iVar23 = iVar23 + -1;\n            bVar19 = *pbVar8 < *pbVar16;\n            bVar18 = *pbVar8 == *pbVar16;\n            pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n            pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n          } while (bVar18);\n          if ((!bVar19 && !bVar18) == bVar19) {\n            pcVar15 = "PuTTY key format too new";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          else {\n            pcVar15 = "not a PuTTY SSH-2 private key";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          goto LAB_00055070;\n        }" if (parenthesized_expression "(!bVar18)" ( (unary_expression "!bVar18" ! identifier) )) (compound_statement "{\n          iVar23 = 0x14;\n          pbVar8 = local_71;\n          pbVar16 = (byte *)"PuTTY-User-Key-File-";\n          do {\n            if (iVar23 == 0) break;\n            iVar23 = iVar23 + -1;\n            bVar19 = *pbVar8 < *pbVar16;\n            bVar18 = *pbVar8 == *pbVar16;\n            pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n            pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n          } while (bVar18);\n          if ((!bVar19 && !bVar18) == bVar19) {\n            pcVar15 = "PuTTY key format too new";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          else {\n            pcVar15 = "not a PuTTY SSH-2 private key";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          goto LAB_00055070;\n        }" { (expression_statement "iVar23 = 0x14;" (assignment_expression "iVar23 = 0x14" identifier = number_literal) ;) (expression_statement "pbVar8 = local_71;" (assignment_expression "pbVar8 = local_71" identifier = identifier) ;) (expression_statement "pbVar16 = (byte *)"PuTTY-User-Key-File-";" (assignment_expression "pbVar16 = (byte *)"PuTTY-User-Key-File-"" identifier = (cast_expression "(byte *)"PuTTY-User-Key-File-"" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""PuTTY-User-Key-File-"" " string_content "))) ;) (do_statement "do {\n            if (iVar23 == 0) break;\n            iVar23 = iVar23 + -1;\n            bVar19 = *pbVar8 < *pbVar16;\n            bVar18 = *pbVar8 == *pbVar16;\n            pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n            pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n          } while (bVar18);" do (compound_statement "{\n            if (iVar23 == 0) break;\n            iVar23 = iVar23 + -1;\n            bVar19 = *pbVar8 < *pbVar16;\n            bVar18 = *pbVar8 == *pbVar16;\n            pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n            pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n          }" { (if_statement "if (iVar23 == 0) break;" if (parenthesized_expression "(iVar23 == 0)" ( (binary_expression "iVar23 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar23 = iVar23 + -1;" (assignment_expression "iVar23 = iVar23 + -1" identifier = (binary_expression "iVar23 + -1" identifier + number_literal)) ;) (expression_statement "bVar19 = *pbVar8 < *pbVar16;" (assignment_expression "bVar19 = *pbVar8 < *pbVar16" identifier = (binary_expression "*pbVar8 < *pbVar16" (pointer_expression "*pbVar8" * identifier) < (pointer_expression "*pbVar16" * identifier))) ;) (expression_statement "bVar18 = *pbVar8 == *pbVar16;" (assignment_expression "bVar18 = *pbVar8 == *pbVar16" identifier = (binary_expression "*pbVar8 == *pbVar16" (pointer_expression "*pbVar8" * identifier) == (pointer_expression "*pbVar16" * identifier))) ;) (expression_statement "pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;" (assignment_expression "pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1" identifier = (binary_expression "pbVar8 + (uint)bVar21 * -2 + 1" (binary_expression "pbVar8 + (uint)bVar21 * -2" identifier + (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;" (assignment_expression "pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1" identifier = (binary_expression "pbVar16 + (uint)bVar21 * -2 + 1" (binary_expression "pbVar16 + (uint)bVar21 * -2" identifier + (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar18)" ( identifier )) ;) (if_statement "if ((!bVar19 && !bVar18) == bVar19) {\n            pcVar15 = "PuTTY key format too new";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          else {\n            pcVar15 = "not a PuTTY SSH-2 private key";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }" if (parenthesized_expression "((!bVar19 && !bVar18) == bVar19)" ( (binary_expression "(!bVar19 && !bVar18) == bVar19" (parenthesized_expression "(!bVar19 && !bVar18)" ( (binary_expression "!bVar19 && !bVar18" (unary_expression "!bVar19" ! identifier) && (unary_expression "!bVar18" ! identifier)) )) == identifier) )) (compound_statement "{\n            pcVar15 = "PuTTY key format too new";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }" { (expression_statement "pcVar15 = "PuTTY key format too new";" (assignment_expression "pcVar15 = "PuTTY key format too new"" identifier = (string_literal ""PuTTY key format too new"" " string_content ")) ;) (expression_statement "piVar14 = (int *)0x0;" (assignment_expression "piVar14 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "fclose(__stream);" (call_expression "fclose(__stream)" identifier (argument_list "(__stream)" ( identifier ))) ;) }) (else_clause "else {\n            pcVar15 = "not a PuTTY SSH-2 private key";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }" else (compound_statement "{\n            pcVar15 = "not a PuTTY SSH-2 private key";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }" { (expression_statement "pcVar15 = "not a PuTTY SSH-2 private key";" (assignment_expression "pcVar15 = "not a PuTTY SSH-2 private key"" identifier = (string_literal ""not a PuTTY SSH-2 private key"" " string_content ")) ;) (expression_statement "piVar14 = (int *)0x0;" (assignment_expression "piVar14 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "fclose(__stream);" (call_expression "fclose(__stream)" identifier (argument_list "(__stream)" ( identifier ))) ;) }))) (goto_statement "goto LAB_00055070;" goto statement_identifier ;) })) (expression_statement "FUN_00065000();" (call_expression "FUN_00065000()" identifier (argument_list "()" ( ))) ;) (expression_statement "bVar3 = 1;" (assignment_expression "bVar3 = 1" identifier = number_literal) ;) })) (expression_statement "pcVar5 = (char *)FUN_00053e50();" (assignment_expression "pcVar5 = (char *)FUN_00053e50()" identifier = (cast_expression "(char *)FUN_00053e50()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00053e50()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (pcVar5 == (char *)0x0) goto LAB_0005510e;" if (parenthesized_expression "(pcVar5 == (char *)0x0)" ( (binary_expression "pcVar5 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0005510e;" goto statement_identifier ;)) (expression_statement "sVar6 = strlen(pcVar5);" (assignment_expression "sVar6 = strlen(pcVar5)" identifier = (call_expression "strlen(pcVar5)" identifier (argument_list "(pcVar5)" ( identifier )))) ;) (expression_statement "pcVar22 = pcVar5;" (assignment_expression "pcVar22 = pcVar5" identifier = identifier) ;) (expression_statement "iVar4 = FUN_00054a80(sVar6,pcVar5);" (assignment_expression "iVar4 = FUN_00054a80(sVar6,pcVar5)" identifier = (call_expression "FUN_00054a80(sVar6,pcVar5)" identifier (argument_list "(sVar6,pcVar5)" ( identifier , identifier )))) ;) (if_statement "if (iVar4 == 0) {\n        pcVar15 = "file format error";\n        FUN_0001b250(pcVar5);\n        piVar14 = (int *)0x0;\n        fclose(__stream);\n        goto LAB_00055070;\n      }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n        pcVar15 = "file format error";\n        FUN_0001b250(pcVar5);\n        piVar14 = (int *)0x0;\n        fclose(__stream);\n        goto LAB_00055070;\n      }" { (expression_statement "pcVar15 = "file format error";" (assignment_expression "pcVar15 = "file format error"" identifier = (string_literal ""file format error"" " string_content ")) ;) (expression_statement "FUN_0001b250(pcVar5);" (call_expression "FUN_0001b250(pcVar5)" identifier (argument_list "(pcVar5)" ( identifier ))) ;) (expression_statement "piVar14 = (int *)0x0;" (assignment_expression "piVar14 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "fclose(__stream);" (call_expression "fclose(__stream)" identifier (argument_list "(__stream)" ( identifier ))) ;) (goto_statement "goto LAB_00055070;" goto statement_identifier ;) })) (expression_statement "FUN_0001b250(pcVar5);" (call_expression "FUN_0001b250(pcVar5)" identifier (argument_list "(pcVar5)" ( identifier ))) ;) (expression_statement "iVar7 = FUN_00053dd0();" (assignment_expression "iVar7 = FUN_00053dd0()" identifier = (call_expression "FUN_00053dd0()" identifier (argument_list "()" ( )))) ;) (expression_statement "bVar18 = false;" (assignment_expression "bVar18 = false" identifier = false) ;) (expression_statement "bVar20 = iVar7 == 0;" (assignment_expression "bVar20 = iVar7 == 0" identifier = (binary_expression "iVar7 == 0" identifier == number_literal)) ;) (if_statement "if (!bVar20) {\n        iVar7 = 0xb;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"Encryption";\n        do {\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        if ((!bVar18 && !bVar20) == bVar18) {\n          pbVar8 = (byte *)FUN_00053e50();\n          bVar18 = false;\n          bVar20 = pbVar8 == (byte *)0x0;\n          if (!bVar20) {\n            iVar7 = 0xb;\n            pbVar16 = pbVar8;\n            pbVar17 = (byte *)"aes256-cbc";\n            do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar18 = *pbVar16 < *pbVar17;\n              bVar20 = *pbVar16 == *pbVar17;\n              pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n              pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n            } while (bVar20);\n            bVar19 = false;\n            bVar18 = (!bVar18 && !bVar20) == bVar18;\n            if (bVar18) {\n              local_124 = 0x10;\n              bVar18 = true;\nLAB_000551a8:\n              iVar7 = FUN_00053dd0();\n              bVar20 = false;\n              bVar19 = iVar7 == 0;\n              if (!bVar19) {\n                iVar7 = 8;\n                pbVar16 = local_71;\n                pbVar17 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                } while (bVar19);\n                if ((!bVar20 && !bVar19) == bVar20) {\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar8;\n              pbVar17 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar19 = *pbVar16 < *pbVar17;\n                bVar18 = *pbVar16 == *pbVar17;\n                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n              } while (bVar18);\n              if ((!bVar19 && !bVar18) == bVar19) {\n                local_124 = 1;\n                bVar18 = false;\n                goto LAB_000551a8;\n              }\n            }\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n            pcVar15 = "file format error";\n            FUN_0001b250(pbVar8);\n            goto LAB_00055070;\n          }\n        }\n      }" if (parenthesized_expression "(!bVar20)" ( (unary_expression "!bVar20" ! identifier) )) (compound_statement "{\n        iVar7 = 0xb;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"Encryption";\n        do {\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        if ((!bVar18 && !bVar20) == bVar18) {\n          pbVar8 = (byte *)FUN_00053e50();\n          bVar18 = false;\n          bVar20 = pbVar8 == (byte *)0x0;\n          if (!bVar20) {\n            iVar7 = 0xb;\n            pbVar16 = pbVar8;\n            pbVar17 = (byte *)"aes256-cbc";\n            do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar18 = *pbVar16 < *pbVar17;\n              bVar20 = *pbVar16 == *pbVar17;\n              pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n              pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n            } while (bVar20);\n            bVar19 = false;\n            bVar18 = (!bVar18 && !bVar20) == bVar18;\n            if (bVar18) {\n              local_124 = 0x10;\n              bVar18 = true;\nLAB_000551a8:\n              iVar7 = FUN_00053dd0();\n              bVar20 = false;\n              bVar19 = iVar7 == 0;\n              if (!bVar19) {\n                iVar7 = 8;\n                pbVar16 = local_71;\n                pbVar17 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                } while (bVar19);\n                if ((!bVar20 && !bVar19) == bVar20) {\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar8;\n              pbVar17 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar19 = *pbVar16 < *pbVar17;\n                bVar18 = *pbVar16 == *pbVar17;\n                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n              } while (bVar18);\n              if ((!bVar19 && !bVar18) == bVar19) {\n                local_124 = 1;\n                bVar18 = false;\n                goto LAB_000551a8;\n              }\n            }\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n            pcVar15 = "file format error";\n            FUN_0001b250(pbVar8);\n            goto LAB_00055070;\n          }\n        }\n      }" { (expression_statement "iVar7 = 0xb;" (assignment_expression "iVar7 = 0xb" identifier = number_literal) ;) (expression_statement "pbVar8 = local_71;" (assignment_expression "pbVar8 = local_71" identifier = identifier) ;) (expression_statement "pbVar16 = (byte *)"Encryption";" (assignment_expression "pbVar16 = (byte *)"Encryption"" identifier = (cast_expression "(byte *)"Encryption"" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""Encryption"" " string_content "))) ;) (do_statement "do {\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);" do (compound_statement "{\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        }" { (if_statement "if (iVar7 == 0) break;" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar7 = iVar7 + -1;" (assignment_expression "iVar7 = iVar7 + -1" identifier = (binary_expression "iVar7 + -1" identifier + number_literal)) ;) (expression_statement "bVar18 = *pbVar8 < *pbVar16;" (assignment_expression "bVar18 = *pbVar8 < *pbVar16" identifier = (binary_expression "*pbVar8 < *pbVar16" (pointer_expression "*pbVar8" * identifier) < (pointer_expression "*pbVar16" * identifier))) ;) (expression_statement "bVar20 = *pbVar8 == *pbVar16;" (assignment_expression "bVar20 = *pbVar8 == *pbVar16" identifier = (binary_expression "*pbVar8 == *pbVar16" (pointer_expression "*pbVar8" * identifier) == (pointer_expression "*pbVar16" * identifier))) ;) (expression_statement "pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;" (assignment_expression "pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1" identifier = (binary_expression "pbVar8 + (uint)bVar21 * -2 + 1" (binary_expression "pbVar8 + (uint)bVar21 * -2" identifier + (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;" (assignment_expression "pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1" identifier = (binary_expression "pbVar16 + (uint)bVar21 * -2 + 1" (binary_expression "pbVar16 + (uint)bVar21 * -2" identifier + (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar20)" ( identifier )) ;) (if_statement "if ((!bVar18 && !bVar20) == bVar18) {\n          pbVar8 = (byte *)FUN_00053e50();\n          bVar18 = false;\n          bVar20 = pbVar8 == (byte *)0x0;\n          if (!bVar20) {\n            iVar7 = 0xb;\n            pbVar16 = pbVar8;\n            pbVar17 = (byte *)"aes256-cbc";\n            do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar18 = *pbVar16 < *pbVar17;\n              bVar20 = *pbVar16 == *pbVar17;\n              pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n              pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n            } while (bVar20);\n            bVar19 = false;\n            bVar18 = (!bVar18 && !bVar20) == bVar18;\n            if (bVar18) {\n              local_124 = 0x10;\n              bVar18 = true;\nLAB_000551a8:\n              iVar7 = FUN_00053dd0();\n              bVar20 = false;\n              bVar19 = iVar7 == 0;\n              if (!bVar19) {\n                iVar7 = 8;\n                pbVar16 = local_71;\n                pbVar17 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                } while (bVar19);\n                if ((!bVar20 && !bVar19) == bVar20) {\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar8;\n              pbVar17 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar19 = *pbVar16 < *pbVar17;\n                bVar18 = *pbVar16 == *pbVar17;\n                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n              } while (bVar18);\n              if ((!bVar19 && !bVar18) == bVar19) {\n                local_124 = 1;\n                bVar18 = false;\n                goto LAB_000551a8;\n              }\n            }\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n            pcVar15 = "file format error";\n            FUN_0001b250(pbVar8);\n            goto LAB_00055070;\n          }\n        }" if (parenthesized_expression "((!bVar18 && !bVar20) == bVar18)" ( (binary_expression "(!bVar18 && !bVar20) == bVar18" (parenthesized_expression "(!bVar18 && !bVar20)" ( (binary_expression "!bVar18 && !bVar20" (unary_expression "!bVar18" ! identifier) && (unary_expression "!bVar20" ! identifier)) )) == identifier) )) (compound_statement "{\n          pbVar8 = (byte *)FUN_00053e50();\n          bVar18 = false;\n          bVar20 = pbVar8 == (byte *)0x0;\n          if (!bVar20) {\n            iVar7 = 0xb;\n            pbVar16 = pbVar8;\n            pbVar17 = (byte *)"aes256-cbc";\n            do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar18 = *pbVar16 < *pbVar17;\n              bVar20 = *pbVar16 == *pbVar17;\n              pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n              pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n            } while (bVar20);\n            bVar19 = false;\n            bVar18 = (!bVar18 && !bVar20) == bVar18;\n            if (bVar18) {\n              local_124 = 0x10;\n              bVar18 = true;\nLAB_000551a8:\n              iVar7 = FUN_00053dd0();\n              bVar20 = false;\n              bVar19 = iVar7 == 0;\n              if (!bVar19) {\n                iVar7 = 8;\n                pbVar16 = local_71;\n                pbVar17 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                } while (bVar19);\n                if ((!bVar20 && !bVar19) == bVar20) {\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar8;\n              pbVar17 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar19 = *pbVar16 < *pbVar17;\n                bVar18 = *pbVar16 == *pbVar17;\n                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n              } while (bVar18);\n              if ((!bVar19 && !bVar18) == bVar19) {\n                local_124 = 1;\n                bVar18 = false;\n                goto LAB_000551a8;\n              }\n            }\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n            pcVar15 = "file format error";\n            FUN_0001b250(pbVar8);\n            goto LAB_00055070;\n          }\n        }" { (expression_statement "pbVar8 = (byte *)FUN_00053e50();" (assignment_expression "pbVar8 = (byte *)FUN_00053e50()" identifier = (cast_expression "(byte *)FUN_00053e50()" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00053e50()" identifier (argument_list "()" ( ))))) ;) (expression_statement "bVar18 = false;" (assignment_expression "bVar18 = false" identifier = false) ;) (expression_statement "bVar20 = pbVar8 == (byte *)0x0;" (assignment_expression "bVar20 = pbVar8 == (byte *)0x0" identifier = (binary_expression "pbVar8 == (byte *)0x0" identifier == (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ;) (if_statement "if (!bVar20) {\n            iVar7 = 0xb;\n            pbVar16 = pbVar8;\n            pbVar17 = (byte *)"aes256-cbc";\n            do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar18 = *pbVar16 < *pbVar17;\n              bVar20 = *pbVar16 == *pbVar17;\n              pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n              pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n            } while (bVar20);\n            bVar19 = false;\n            bVar18 = (!bVar18 && !bVar20) == bVar18;\n            if (bVar18) {\n              local_124 = 0x10;\n              bVar18 = true;\nLAB_000551a8:\n              iVar7 = FUN_00053dd0();\n              bVar20 = false;\n              bVar19 = iVar7 == 0;\n              if (!bVar19) {\n                iVar7 = 8;\n                pbVar16 = local_71;\n                pbVar17 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                } while (bVar19);\n                if ((!bVar20 && !bVar19) == bVar20) {\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar8;\n              pbVar17 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar19 = *pbVar16 < *pbVar17;\n                bVar18 = *pbVar16 == *pbVar17;\n                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n              } while (bVar18);\n              if ((!bVar19 && !bVar18) == bVar19) {\n                local_124 = 1;\n                bVar18 = false;\n                goto LAB_000551a8;\n              }\n            }\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n            pcVar15 = "file format error";\n            FUN_0001b250(pbVar8);\n            goto LAB_00055070;\n          }" if (parenthesized_expression "(!bVar20)" ( (unary_expression "!bVar20" ! identifier) )) (compound_statement "{\n            iVar7 = 0xb;\n            pbVar16 = pbVar8;\n            pbVar17 = (byte *)"aes256-cbc";\n            do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar18 = *pbVar16 < *pbVar17;\n              bVar20 = *pbVar16 == *pbVar17;\n              pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n              pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n            } while (bVar20);\n            bVar19 = false;\n            bVar18 = (!bVar18 && !bVar20) == bVar18;\n            if (bVar18) {\n              local_124 = 0x10;\n              bVar18 = true;\nLAB_000551a8:\n              iVar7 = FUN_00053dd0();\n              bVar20 = false;\n              bVar19 = iVar7 == 0;\n              if (!bVar19) {\n                iVar7 = 8;\n                pbVar16 = local_71;\n                pbVar17 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                } while (bVar19);\n                if ((!bVar20 && !bVar19) == bVar20) {\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar8;\n              pbVar17 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar19 = *pbVar16 < *pbVar17;\n                bVar18 = *pbVar16 == *pbVar17;\n                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n              } while (bVar18);\n              if ((!bVar19 && !bVar18) == bVar19) {\n                local_124 = 1;\n                bVar18 = false;\n                goto LAB_000551a8;\n              }\n            }\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n            pcVar15 = "file format error";\n            FUN_0001b250(pbVar8);\n            goto LAB_00055070;\n          }" { (expression_statement "iVar7 = 0xb;" (assignment_expression "iVar7 = 0xb" identifier = number_literal) ;) (expression_statement "pbVar16 = pbVar8;" (assignment_expression "pbVar16 = pbVar8" identifier = identifier) ;) (expression_statement "pbVar17 = (byte *)"aes256-cbc";" (assignment_expression "pbVar17 = (byte *)"aes256-cbc"" identifier = (cast_expression "(byte *)"aes256-cbc"" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""aes256-cbc"" " string_content "))) ;) (do_statement "do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar18 = *pbVar16 < *pbVar17;\n              bVar20 = *pbVar16 == *pbVar17;\n              pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n              pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n            } while (bVar20);" do (compound_statement "{\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar18 = *pbVar16 < *pbVar17;\n              bVar20 = *pbVar16 == *pbVar17;\n              pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n              pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n            }" { (if_statement "if (iVar7 == 0) break;" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar7 = iVar7 + -1;" (assignment_expression "iVar7 = iVar7 + -1" identifier = (binary_expression "iVar7 + -1" identifier + number_literal)) ;) (expression_statement "bVar18 = *pbVar16 < *pbVar17;" (assignment_expression "bVar18 = *pbVar16 < *pbVar17" identifier = (binary_expression "*pbVar16 < *pbVar17" (pointer_expression "*pbVar16" * identifier) < (pointer_expression "*pbVar17" * identifier))) ;) (expression_statement "bVar20 = *pbVar16 == *pbVar17;" (assignment_expression "bVar20 = *pbVar16 == *pbVar17" identifier = (binary_expression "*pbVar16 == *pbVar17" (pointer_expression "*pbVar16" * identifier) == (pointer_expression "*pbVar17" * identifier))) ;) (expression_statement "pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;" (assignment_expression "pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1" identifier = (binary_expression "pbVar16 + (uint)bVar21 * -2 + 1" (binary_expression "pbVar16 + (uint)bVar21 * -2" identifier + (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;" (assignment_expression "pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1" identifier = (binary_expression "pbVar17 + (uint)bVar21 * -2 + 1" (binary_expression "pbVar17 + (uint)bVar21 * -2" identifier + (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar20)" ( identifier )) ;) (expression_statement "bVar19 = false;" (assignment_expression "bVar19 = false" identifier = false) ;) (expression_statement "bVar18 = (!bVar18 && !bVar20) == bVar18;" (assignment_expression "bVar18 = (!bVar18 && !bVar20) == bVar18" identifier = (binary_expression "(!bVar18 && !bVar20) == bVar18" (parenthesized_expression "(!bVar18 && !bVar20)" ( (binary_expression "!bVar18 && !bVar20" (unary_expression "!bVar18" ! identifier) && (unary_expression "!bVar20" ! identifier)) )) == identifier)) ;) (if_statement "if (bVar18) {\n              local_124 = 0x10;\n              bVar18 = true;\nLAB_000551a8:\n              iVar7 = FUN_00053dd0();\n              bVar20 = false;\n              bVar19 = iVar7 == 0;\n              if (!bVar19) {\n                iVar7 = 8;\n                pbVar16 = local_71;\n                pbVar17 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                } while (bVar19);\n                if ((!bVar20 && !bVar19) == bVar20) {\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar8;\n              pbVar17 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar19 = *pbVar16 < *pbVar17;\n                bVar18 = *pbVar16 == *pbVar17;\n                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n              } while (bVar18);\n              if ((!bVar19 && !bVar18) == bVar19) {\n                local_124 = 1;\n                bVar18 = false;\n                goto LAB_000551a8;\n              }\n            }" if (parenthesized_expression "(bVar18)" ( identifier )) (compound_statement "{\n              local_124 = 0x10;\n              bVar18 = true;\nLAB_000551a8:\n              iVar7 = FUN_00053dd0();\n              bVar20 = false;\n              bVar19 = iVar7 == 0;\n              if (!bVar19) {\n                iVar7 = 8;\n                pbVar16 = local_71;\n                pbVar17 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                } while (bVar19);\n                if ((!bVar20 && !bVar19) == bVar20) {\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }" { (expression_statement "local_124 = 0x10;" (assignment_expression "local_124 = 0x10" identifier = number_literal) ;) (expression_statement "bVar18 = true;" (assignment_expression "bVar18 = true" identifier = true) ;) (labeled_statement "LAB_000551a8:\n              iVar7 = FUN_00053dd0();" statement_identifier : (expression_statement "iVar7 = FUN_00053dd0();" (assignment_expression "iVar7 = FUN_00053dd0()" identifier = (call_expression "FUN_00053dd0()" identifier (argument_list "()" ( )))) ;)) (expression_statement "bVar20 = false;" (assignment_expression "bVar20 = false" identifier = false) ;) (expression_statement "bVar19 = iVar7 == 0;" (assignment_expression "bVar19 = iVar7 == 0" identifier = (binary_expression "iVar7 == 0" identifier == number_literal)) ;) (if_statement "if (!bVar19) {\n                iVar7 = 8;\n                pbVar16 = local_71;\n                pbVar17 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                } while (bVar19);\n                if ((!bVar20 && !bVar19) == bVar20) {\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }" if (parenthesized_expression "(!bVar19)" ( (unary_expression "!bVar19" ! identifier) )) (compound_statement "{\n                iVar7 = 8;\n                pbVar16 = local_71;\n                pbVar17 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                } while (bVar19);\n                if ((!bVar20 && !bVar19) == bVar20) {\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }" { (expression_statement "iVar7 = 8;" (assignment_expression "iVar7 = 8" identifier = number_literal) ;) (expression_statement "pbVar16 = local_71;" (assignment_expression "pbVar16 = local_71" identifier = identifier) ;) (expression_statement "pbVar17 = (byte *)"Comment";" (assignment_expression "pbVar17 = (byte *)"Comment"" identifier = (cast_expression "(byte *)"Comment"" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""Comment"" " string_content "))) ;) (do_statement "do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                } while (bVar19);" do (compound_statement "{\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                }" { (if_statement "if (iVar7 == 0) break;" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar7 = iVar7 + -1;" (assignment_expression "iVar7 = iVar7 + -1" identifier = (binary_expression "iVar7 + -1" identifier + number_literal)) ;) (expression_statement "bVar20 = *pbVar16 < *pbVar17;" (assignment_expression "bVar20 = *pbVar16 < *pbVar17" identifier = (binary_expression "*pbVar16 < *pbVar17" (pointer_expression "*pbVar16" * identifier) < (pointer_expression "*pbVar17" * identifier))) ;) (expression_statement "bVar19 = *pbVar16 == *pbVar17;" (assignment_expression "bVar19 = *pbVar16 == *pbVar17" identifier = (binary_expression "*pbVar16 == *pbVar17" (pointer_expression "*pbVar16" * identifier) == (pointer_expression "*pbVar17" * identifier))) ;) (expression_statement "pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;" (assignment_expression "pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1" identifier = (binary_expression "pbVar16 + (uint)bVar21 * -2 + 1" (binary_expression "pbVar16 + (uint)bVar21 * -2" identifier + (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;" (assignment_expression "pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1" identifier = (binary_expression "pbVar17 + (uint)bVar21 * -2 + 1" (binary_expression "pbVar17 + (uint)bVar21 * -2" identifier + (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar19)" ( identifier )) ;) (if_statement "if ((!bVar20 && !bVar19) == bVar20) {\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }" if (parenthesized_expression "((!bVar20 && !bVar19) == bVar20)" ( (binary_expression "(!bVar20 && !bVar19) == bVar20" (parenthesized_expression "(!bVar20 && !bVar19)" ( (binary_expression "!bVar20 && !bVar19" (unary_expression "!bVar20" ! identifier) && (unary_expression "!bVar19" ! identifier)) )) == identifier) )) (compound_statement "{\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }" { (expression_statement "pcVar5 = (char *)FUN_00053e50();" (assignment_expression "pcVar5 = (char *)FUN_00053e50()" identifier = (cast_expression "(char *)FUN_00053e50()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00053e50()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }" if (parenthesized_expression "(pcVar5 == (char *)0x0)" ( (binary_expression "pcVar5 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }" { (expression_statement "pcVar15 = "file format error";" (assignment_expression "pcVar15 = "file format error"" identifier = (string_literal ""file format error"" " string_content ")) ;) (expression_statement "piVar14 = (int *)0x0;" (assignment_expression "piVar14 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "fclose(__stream);" (call_expression "fclose(__stream)" identifier (argument_list "(__stream)" ( identifier ))) ;) (expression_statement "FUN_0001b250(pbVar8);" (call_expression "FUN_0001b250(pbVar8)" identifier (argument_list "(pbVar8)" ( identifier ))) ;) (goto_statement "goto LAB_00055070;" goto statement_identifier ;) })) (expression_statement "iVar7 = FUN_00053dd0();" (assignment_expression "iVar7 = FUN_00053dd0()" identifier = (call_expression "FUN_00053dd0()" identifier (argument_list "()" ( )))) ;) (expression_statement "bVar20 = false;" (assignment_expression "bVar20 = false" identifier = false) ;) (expression_statement "bVar19 = iVar7 == 0;" (assignment_expression "bVar19 = iVar7 == 0" identifier = (binary_expression "iVar7 == 0" identifier == number_literal)) ;) (if_statement "if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }" if (parenthesized_expression "(bVar19)" ( identifier )) (compound_statement "{\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }" { (labeled_statement "LAB_000555ad:\n                    local_140 = (uint *)0x0;" statement_identifier : (expression_statement "local_140 = (uint *)0x0;" (assignment_expression "local_140 = (uint *)0x0" identifier = (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;)) (expression_statement "local_13c = (void *)0x0;" (assignment_expression "local_13c = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (labeled_statement "LAB_0005553d:\n                    iVar9 = iVar23;" statement_identifier : (expression_statement "iVar9 = iVar23;" (assignment_expression "iVar9 = iVar23" identifier = identifier) ;)) (expression_statement "pcVar15 = "file format error";" (assignment_expression "pcVar15 = "file format error"" identifier = (string_literal ""file format error"" " string_content ")) ;) (expression_statement "fclose(__stream);" (call_expression "fclose(__stream)" identifier (argument_list "(__stream)" ( identifier ))) ;) (labeled_statement "LAB_0005554f:\n                    piVar14 = (int *)0x0;" statement_identifier : (expression_statement "piVar14 = (int *)0x0;" (assignment_expression "piVar14 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;)) (expression_statement "FUN_0001b250(pcVar5,pcVar22,iVar9);" (call_expression "FUN_0001b250(pcVar5,pcVar22,iVar9)" identifier (argument_list "(pcVar5,pcVar22,iVar9)" ( identifier , identifier , identifier ))) ;) (expression_statement "FUN_0001b250(pbVar8);" (call_expression "FUN_0001b250(pbVar8)" identifier (argument_list "(pbVar8)" ( identifier ))) ;) }) (else_clause "else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }" else (compound_statement "{\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }" { (expression_statement "iVar7 = 0xd;" (assignment_expression "iVar7 = 0xd" identifier = number_literal) ;) (expression_statement "pbVar16 = local_71;" (assignment_expression "pbVar16 = local_71" identifier = identifier) ;) (expression_statement "pbVar17 = (byte *)"Public-Lines";" (assignment_expression "pbVar17 = (byte *)"Public-Lines"" identifier = (cast_expression "(byte *)"Public-Lines"" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""Public-Lines"" " string_content "))) ;) (do_statement "do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);" do (compound_statement "{\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    }" { (if_statement "if (iVar7 == 0) break;" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar7 = iVar7 + -1;" (assignment_expression "iVar7 = iVar7 + -1" identifier = (binary_expression "iVar7 + -1" identifier + number_literal)) ;) (expression_statement "bVar20 = *pbVar16 < *pbVar17;" (assignment_expression "bVar20 = *pbVar16 < *pbVar17" identifier = (binary_expression "*pbVar16 < *pbVar17" (pointer_expression "*pbVar16" * identifier) < (pointer_expression "*pbVar17" * identifier))) ;) (expression_statement "bVar19 = *pbVar16 == *pbVar17;" (assignment_expression "bVar19 = *pbVar16 == *pbVar17" identifier = (binary_expression "*pbVar16 == *pbVar17" (pointer_expression "*pbVar16" * identifier) == (pointer_expression "*pbVar17" * identifier))) ;) (expression_statement "pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;" (assignment_expression "pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1" identifier = (binary_expression "pbVar16 + (uint)bVar21 * -2 + 1" (binary_expression "pbVar16 + (uint)bVar21 * -2" identifier + (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;" (assignment_expression "pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1" identifier = (binary_expression "pbVar17 + (uint)bVar21 * -2 + 1" (binary_expression "pbVar17 + (uint)bVar21 * -2" identifier + (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar19)" ( identifier )) ;) (if_statement "if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;" if (parenthesized_expression "((!bVar20 && !bVar19) != bVar20)" ( (binary_expression "(!bVar20 && !bVar19) != bVar20" (parenthesized_expression "(!bVar20 && !bVar19)" ( (binary_expression "!bVar20 && !bVar19" (unary_expression "!bVar20" ! identifier) && (unary_expression "!bVar19" ! identifier)) )) != identifier) )) (goto_statement "goto LAB_000555ad;" goto statement_identifier ;)) (expression_statement "iVar7 = FUN_00053e50();" (assignment_expression "iVar7 = FUN_00053e50()" identifier = (call_expression "FUN_00053e50()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar7 == 0) goto LAB_000555ad;" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000555ad;" goto statement_identifier ;)) (expression_statement "iVar9 = FUN_00053d60();" (assignment_expression "iVar9 = FUN_00053d60()" identifier = (call_expression "FUN_00053d60()" identifier (argument_list "()" ( )))) ;) (expression_statement "FUN_0001b250(iVar7);" (call_expression "FUN_0001b250(iVar7)" identifier (argument_list "(iVar7)" ( identifier ))) ;) (if_statement "if (iVar9 < 0) goto LAB_000555ad;" if (parenthesized_expression "(iVar9 < 0)" ( (binary_expression "iVar9 < 0" identifier < number_literal) )) (goto_statement "goto LAB_000555ad;" goto statement_identifier ;)) (expression_statement "local_13c = (void *)FUN_00053f30();" (assignment_expression "local_13c = (void *)FUN_00053f30()" identifier = (cast_expression "(void *)FUN_00053f30()" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00053f30()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (local_13c == (void *)0x0) goto LAB_000555ad;" if (parenthesized_expression "(local_13c == (void *)0x0)" ( (binary_expression "local_13c == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000555ad;" goto statement_identifier ;)) (expression_statement "iVar7 = FUN_00053dd0();" (assignment_expression "iVar7 = FUN_00053dd0()" identifier = (call_expression "FUN_00053dd0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }" { (labeled_statement "LAB_00055535:\n                      local_140 = (uint *)0x0;" statement_identifier : (expression_statement "local_140 = (uint *)0x0;" (assignment_expression "local_140 = (uint *)0x0" identifier = (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;)) (goto_statement "goto LAB_0005553d;" goto statement_identifier ;) })) (expression_statement "pcVar22 = "Private-Lines";" (assignment_expression "pcVar22 = "Private-Lines"" identifier = (string_literal ""Private-Lines"" " string_content ")) ;) (expression_statement "iVar9 = strcmp((char *)local_71,"Private-Lines");" (assignment_expression "iVar9 = strcmp((char *)local_71,"Private-Lines")" identifier = (call_expression "strcmp((char *)local_71,"Private-Lines")" identifier (argument_list "((char *)local_71,"Private-Lines")" ( (cast_expression "(char *)local_71" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (string_literal ""Private-Lines"" " string_content ") )))) ;) (expression_statement "local_140 = (uint *)0x0;" (assignment_expression "local_140 = (uint *)0x0" identifier = (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar23 = iVar7;" (assignment_expression "iVar23 = iVar7" identifier = identifier) ;) (if_statement "if (iVar9 != 0) goto LAB_0005553d;" if (parenthesized_expression "(iVar9 != 0)" ( (binary_expression "iVar9 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0005553d;" goto statement_identifier ;)) (expression_statement "puVar10 = (uint *)FUN_00053e50();" (assignment_expression "puVar10 = (uint *)FUN_00053e50()" identifier = (cast_expression "(uint *)FUN_00053e50()" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00053e50()" identifier (argument_list "()" ( ))))) ;) (expression_statement "iVar23 = iVar7;" (assignment_expression "iVar23 = iVar7" identifier = identifier) ;) (expression_statement "local_140 = puVar10;" (assignment_expression "local_140 = puVar10" identifier = identifier) ;) (if_statement "if (puVar10 == (uint *)0x0) goto LAB_0005553d;" if (parenthesized_expression "(puVar10 == (uint *)0x0)" ( (binary_expression "puVar10 == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0005553d;" goto statement_identifier ;)) (expression_statement "iVar9 = FUN_00053d60();" (assignment_expression "iVar9 = FUN_00053d60()" identifier = (call_expression "FUN_00053d60()" identifier (argument_list "()" ( )))) ;) (expression_statement "FUN_0001b250(puVar10,pcVar22,iVar7);" (call_expression "FUN_0001b250(puVar10,pcVar22,iVar7)" identifier (argument_list "(puVar10,pcVar22,iVar7)" ( identifier , identifier , identifier ))) ;) (expression_statement "iVar23 = iVar7;" (assignment_expression "iVar23 = iVar7" identifier = identifier) ;) (if_statement "if (iVar9 < 0) goto LAB_00055535;" if (parenthesized_expression "(iVar9 < 0)" ( (binary_expression "iVar9 < 0" identifier < number_literal) )) (goto_statement "goto LAB_00055535;" goto statement_identifier ;)) (expression_statement "local_140 = (uint *)FUN_00053f30();" (assignment_expression "local_140 = (uint *)FUN_00053f30()" identifier = (cast_expression "(uint *)FUN_00053f30()" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00053f30()" identifier (argument_list "()" ( ))))) ;) (expression_statement "iVar23 = iVar7;" (assignment_expression "iVar23 = iVar7" identifier = identifier) ;) (if_statement "if (local_140 == (uint *)0x0) goto LAB_0005553d;" if (parenthesized_expression "(local_140 == (uint *)0x0)" ( (binary_expression "local_140 == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0005553d;" goto statement_identifier ;)) (expression_statement "iVar9 = FUN_00053dd0();" (assignment_expression "iVar9 = FUN_00053dd0()" identifier = (call_expression "FUN_00053dd0()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar23 = iVar7;" (assignment_expression "iVar23 = iVar7" identifier = identifier) ;) (if_statement "if (iVar9 == 0) goto LAB_0005553d;" if (parenthesized_expression "(iVar9 == 0)" ( (binary_expression "iVar9 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0005553d;" goto statement_identifier ;)) (expression_statement "pcVar22 = "Private-MAC";" (assignment_expression "pcVar22 = "Private-MAC"" identifier = (string_literal ""Private-MAC"" " string_content ")) ;) (expression_statement "iVar23 = strcmp((char *)local_71,"Private-MAC");" (assignment_expression "iVar23 = strcmp((char *)local_71,"Private-MAC")" identifier = (call_expression "strcmp((char *)local_71,"Private-MAC")" identifier (argument_list "((char *)local_71,"Private-MAC")" ( (cast_expression "(char *)local_71" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (string_literal ""Private-MAC"" " string_content ") )))) ;) (if_statement "if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }" if (parenthesized_expression "(iVar23 != 0)" ( (binary_expression "iVar23 != 0" identifier != number_literal) )) (compound_statement "{\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }" { (expression_statement "pcVar22 = "Private-Hash";" (assignment_expression "pcVar22 = "Private-Hash"" identifier = (string_literal ""Private-Hash"" " string_content ")) ;) (expression_statement "iVar7 = strcmp((char *)local_71,"Private-Hash");" (assignment_expression "iVar7 = strcmp((char *)local_71,"Private-Hash")" identifier = (call_expression "strcmp((char *)local_71,"Private-Hash")" identifier (argument_list "((char *)local_71,"Private-Hash")" ( (cast_expression "(char *)local_71" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (string_literal ""Private-Hash"" " string_content ") )))) ;) (if_statement "if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;" if (parenthesized_expression "((iVar7 != 0) || ((bVar3 & 1) == 0))" ( (binary_expression "(iVar7 != 0) || ((bVar3 & 1) == 0)" (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) || (parenthesized_expression "((bVar3 & 1) == 0)" ( (binary_expression "(bVar3 & 1) == 0" (parenthesized_expression "(bVar3 & 1)" ( (binary_expression "bVar3 & 1" identifier & number_literal) )) == number_literal) ))) )) (goto_statement "goto LAB_0005553d;" goto statement_identifier ;)) (expression_statement "local_144 = (char *)FUN_00053e50();" (assignment_expression "local_144 = (char *)FUN_00053e50()" identifier = (cast_expression "(char *)FUN_00053e50()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00053e50()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (local_144 == (char *)0x0) goto LAB_0005553d;" if (parenthesized_expression "(local_144 == (char *)0x0)" ( (binary_expression "local_144 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0005553d;" goto statement_identifier ;)) (expression_statement "bVar20 = false;" (assignment_expression "bVar20 = false" identifier = false) ;) (expression_statement "fclose(__stream);" (call_expression "fclose(__stream)" identifier (argument_list "(__stream)" ( identifier ))) ;) (expression_statement "iVar9 = iVar23;" (assignment_expression "iVar9 = iVar23" identifier = identifier) ;) (if_statement "if (bVar18) goto LAB_000556cb;" if (parenthesized_expression "(bVar18)" ( identifier )) (goto_statement "goto LAB_000556cb;" goto statement_identifier ;)) (labeled_statement "LAB_00055378:\n                      bVar19 = false;" statement_identifier : (expression_statement "bVar19 = false;" (assignment_expression "bVar19 = false" identifier = false) ;)) (expression_statement "local_124 = local_100;" (assignment_expression "local_124 = local_100" identifier = identifier) ;) (expression_statement "local_134 = local_140;" (assignment_expression "local_134 = local_140" identifier = identifier) ;) (labeled_statement "LAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }" statement_identifier : (if_statement "if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }" if (parenthesized_expression "(bVar20)" ( identifier )) (compound_statement "{\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }" { (expression_statement "pcVar15 = "putty-private-key-file-mac-key";" (assignment_expression "pcVar15 = "putty-private-key-file-mac-key"" identifier = (string_literal ""putty-private-key-file-mac-key"" " string_content ")) ;) (expression_statement "pcVar22 = local_49;" (assignment_expression "pcVar22 = local_49" identifier = identifier) ;) (for_statement "for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }" for ( (assignment_expression "iVar23 = 0x1f" identifier = number_literal) ; (binary_expression "iVar23 != 0" identifier != number_literal) ; (assignment_expression "iVar23 = iVar23 + -1" identifier = (binary_expression "iVar23 + -1" identifier + number_literal)) ) (compound_statement "{\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }" { (expression_statement "*pcVar22 = *pcVar15;" (assignment_expression "*pcVar22 = *pcVar15" (pointer_expression "*pcVar22" * identifier) = (pointer_expression "*pcVar15" * identifier)) ;) (expression_statement "pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;" (assignment_expression "pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1" identifier = (binary_expression "pcVar15 + (uint)bVar21 * -2 + 1" (binary_expression "pcVar15 + (uint)bVar21 * -2" identifier + (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;" (assignment_expression "pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1" identifier = (binary_expression "pcVar22 + (uint)bVar21 * -2 + 1" (binary_expression "pcVar22 + (uint)bVar21 * -2" identifier + (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "puVar10 = local_fc;" (assignment_expression "puVar10 = local_fc" identifier = identifier) ;) (expression_statement "FUN_0005ce60(puVar10);" (call_expression "FUN_0005ce60(puVar10)" identifier (argument_list "(puVar10)" ( identifier ))) ;) (expression_statement "FUN_0005cea0(puVar10,local_49,0x1e);" (call_expression "FUN_0005cea0(puVar10,local_49,0x1e)" identifier (argument_list "(puVar10,local_49,0x1e)" ( identifier , identifier , number_literal ))) ;) (if_statement "if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }" if (parenthesized_expression "((param_2 != (char *)0x0) && (bVar18))" ( (binary_expression "(param_2 != (char *)0x0) && (bVar18)" (parenthesized_expression "(param_2 != (char *)0x0)" ( (binary_expression "param_2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(bVar18)" ( identifier ))) )) (compound_statement "{\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }" { (expression_statement "param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);" (assignment_expression "param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX)" identifier = (cast_expression "(char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX)" identifier (argument_list "(puVar10,param_2,local_14c,extraout_ECX)" ( identifier , identifier , identifier , identifier ))))) ;) })) (expression_statement "FUN_0005d370(puVar10,local_85,param_2,param_2);" (call_expression "FUN_0005d370(puVar10,local_85,param_2,param_2)" identifier (argument_list "(puVar10,local_85,param_2,param_2)" ( identifier , identifier , identifier , identifier ))) ;) (expression_statement "FUN_0005d940(local_85,0x14,local_134,local_124,local_99);" (call_expression "FUN_0005d940(local_85,0x14,local_134,local_124,local_99)" identifier (argument_list "(local_85,0x14,local_134,local_124,local_99)" ( identifier , number_literal , identifier , identifier , identifier ))) ;) (expression_statement "FUN_0001b330(local_85,0x14);" (call_expression "FUN_0001b330(local_85,0x14)" identifier (argument_list "(local_85,0x14)" ( identifier , number_literal ))) ;) (expression_statement "FUN_0001b330(puVar10,0x60);" (call_expression "FUN_0001b330(puVar10,0x60)" identifier (argument_list "(puVar10,0x60)" ( identifier , number_literal ))) ;) }) (else_clause "else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }" else (compound_statement "{\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }" { (expression_statement "FUN_0005d890(local_134,local_124,local_99,puVar10);" (call_expression "FUN_0005d890(local_134,local_124,local_99,puVar10)" identifier (argument_list "(local_134,local_124,local_99,puVar10)" ( identifier , identifier , identifier , identifier ))) ;) (expression_statement "puVar10 = (uint *)0x0;" (assignment_expression "puVar10 = (uint *)0x0" identifier = (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })))) (expression_statement "pcVar22 = local_49;" (assignment_expression "pcVar22 = local_49" identifier = identifier) ;) (if_statement "if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }" if (parenthesized_expression "(bVar19)" ( identifier )) (compound_statement "{\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }" { (expression_statement "FUN_0001b330(local_134,local_124,puVar10,puVar10);" (call_expression "FUN_0001b330(local_134,local_124,puVar10,puVar10)" identifier (argument_list "(local_134,local_124,puVar10,puVar10)" ( identifier , identifier , identifier , identifier ))) ;) (expression_statement "FUN_0001b250(local_134);" (call_expression "FUN_0001b250(local_134)" identifier (argument_list "(local_134)" ( identifier ))) ;) })) (expression_statement "iVar23 = 0;" (assignment_expression "iVar23 = 0" identifier = number_literal) ;) (do_statement "do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);" do (compound_statement "{\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      }" { (expression_statement "puVar1 = local_99 + iVar23;" (assignment_expression "puVar1 = local_99 + iVar23" identifier = (binary_expression "local_99 + iVar23" identifier + identifier)) ;) (expression_statement "iVar7 = iVar23 * 2;" (assignment_expression "iVar7 = iVar23 * 2" identifier = (binary_expression "iVar23 * 2" identifier * number_literal)) ;) (expression_statement "iVar23 = iVar23 + 1;" (assignment_expression "iVar23 = iVar23 + 1" identifier = (binary_expression "iVar23 + 1" identifier + number_literal)) ;) (expression_statement "__sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);" (call_expression "__sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1)" identifier (argument_list "(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1)" ( (binary_expression "pcVar22 + iVar7" identifier + identifier) , number_literal , number_literal , (pointer_expression "&DAT_0007dc2b" & identifier) , (pointer_expression "*puVar1" * identifier) ))) ;) }) while (parenthesized_expression "(iVar23 != 0x14)" ( (binary_expression "iVar23 != 0x14" identifier != number_literal) )) ;) (expression_statement "iVar9 = extraout_ECX_00;" (assignment_expression "iVar9 = extraout_ECX_00" identifier = identifier) ;) (expression_statement "iVar23 = extraout_ECX_00;" (assignment_expression "iVar23 = extraout_ECX_00" identifier = identifier) ;) (expression_statement "iVar7 = strcmp(local_144,pcVar22);" (assignment_expression "iVar7 = strcmp(local_144,pcVar22)" identifier = (call_expression "strcmp(local_144,pcVar22)" identifier (argument_list "(local_144,pcVar22)" ( identifier , identifier )))) ;) (if_statement "if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (compound_statement "{\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }" { (if_statement "if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }" if (parenthesized_expression "(bVar18)" ( identifier )) (compound_statement "{\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }" { (expression_statement "pcVar15 = "wrong passphrase";" (assignment_expression "pcVar15 = "wrong passphrase"" identifier = (string_literal ""wrong passphrase"" " string_content ")) ;) (expression_statement "piVar14 = (int *)&DAT_000a9378;" (assignment_expression "piVar14 = (int *)&DAT_000a9378" identifier = (cast_expression "(int *)&DAT_000a9378" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_000a9378" & identifier))) ;) }) (else_clause "else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }" else (compound_statement "{\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }" { (expression_statement "pcVar15 = "MAC failed";" (assignment_expression "pcVar15 = "MAC failed"" identifier = (string_literal ""MAC failed"" " string_content ")) ;) (expression_statement "piVar14 = (int *)0x0;" (assignment_expression "piVar14 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }))) (goto_statement "goto LAB_000554a5;" goto statement_identifier ;) })) (expression_statement "FUN_0001b250(local_144,pcVar22,iVar9,iVar23);" (call_expression "FUN_0001b250(local_144,pcVar22,iVar9,iVar23)" identifier (argument_list "(local_144,pcVar22,iVar9,iVar23)" ( identifier , identifier , identifier , identifier ))) ;) (expression_statement "pcVar22 = &DAT_0000000c;" (assignment_expression "pcVar22 = &DAT_0000000c" identifier = (pointer_expression "&DAT_0000000c" & identifier)) ;) (expression_statement "piVar14 = (int *)FUN_0001a9c0(1,0xc);" (assignment_expression "piVar14 = (int *)FUN_0001a9c0(1,0xc)" identifier = (cast_expression "(int *)FUN_0001a9c0(1,0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001a9c0(1,0xc)" identifier (argument_list "(1,0xc)" ( number_literal , number_literal ))))) ;) (expression_statement "piVar14[2] = (int)pcVar5;" (assignment_expression "piVar14[2] = (int)pcVar5" (subscript_expression "piVar14[2]" identifier [ number_literal ]) = (cast_expression "(int)pcVar5" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "*piVar14 = iVar4;" (assignment_expression "*piVar14 = iVar4" (pointer_expression "*piVar14" * identifier) = identifier) ;) (expression_statement "iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);" (assignment_expression "iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100)" identifier = (call_expression "(**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100)" (parenthesized_expression "(**(code **)(iVar4 + 0x14))" ( (pointer_expression "**(code **)(iVar4 + 0x14)" * (pointer_expression "*(code **)(iVar4 + 0x14)" * (cast_expression "(code **)(iVar4 + 0x14)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + 0x14)" ( (binary_expression "iVar4 + 0x14" identifier + number_literal) ))))) )) (argument_list "(iVar4,local_13c,local_104,local_140,local_100)" ( identifier , identifier , identifier , identifier , identifier )))) ;) (expression_statement "piVar14[1] = iVar4;" (assignment_expression "piVar14[1] = iVar4" (subscript_expression "piVar14[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }" { (expression_statement "FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);" (call_expression "FUN_0001b250(local_13c,pcVar22,iVar9,iVar23)" identifier (argument_list "(local_13c,pcVar22,iVar9,iVar23)" ( identifier , identifier , identifier , identifier ))) ;) (expression_statement "FUN_0001b330(local_140,local_100);" (call_expression "FUN_0001b330(local_140,local_100)" identifier (argument_list "(local_140,local_100)" ( identifier , identifier ))) ;) (expression_statement "FUN_0001b250(local_140);" (call_expression "FUN_0001b250(local_140)" identifier (argument_list "(local_140)" ( identifier ))) ;) (expression_statement "FUN_0001b250(pbVar8);" (call_expression "FUN_0001b250(pbVar8)" identifier (argument_list "(pbVar8)" ( identifier ))) ;) (if_statement "if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }" if (parenthesized_expression "(param_3 != (undefined4 *)0x0)" ( (binary_expression "param_3 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                          *param_3 = 0;\n                        }" { (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" * identifier) = number_literal) ;) })) (goto_statement "goto LAB_0005507a;" goto statement_identifier ;) })) (expression_statement "pcVar15 = "createkey failed";" (assignment_expression "pcVar15 = "createkey failed"" identifier = (string_literal ""createkey failed"" " string_content ")) ;) (expression_statement "FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);" (call_expression "FUN_0001b250(piVar14,pcVar22,iVar9,iVar23)" identifier (argument_list "(piVar14,pcVar22,iVar9,iVar23)" ( identifier , identifier , identifier , identifier ))) ;) (goto_statement "goto LAB_0005554f;" goto statement_identifier ;) })) (expression_statement "local_144 = (char *)FUN_00053e50();" (assignment_expression "local_144 = (char *)FUN_00053e50()" identifier = (cast_expression "(char *)FUN_00053e50()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00053e50()" identifier (argument_list "()" ( ))))) ;) (expression_statement "iVar23 = iVar9;" (assignment_expression "iVar23 = iVar9" identifier = identifier) ;) (if_statement "if (local_144 == (char *)0x0) goto LAB_0005553d;" if (parenthesized_expression "(local_144 == (char *)0x0)" ( (binary_expression "local_144 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0005553d;" goto statement_identifier ;)) (expression_statement "fclose(__stream);" (call_expression "fclose(__stream)" identifier (argument_list "(__stream)" ( identifier ))) ;) (expression_statement "bVar20 = bVar18;" (assignment_expression "bVar20 = bVar18" identifier = identifier) ;) (if_statement "if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }" if (parenthesized_expression "(!bVar18)" ( (unary_expression "!bVar18" ! identifier) )) (compound_statement "{\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }" { (expression_statement "bVar20 = true;" (assignment_expression "bVar20 = true" identifier = true) ;) (labeled_statement "LAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;" statement_identifier : (if_statement "if (bVar3 != 0) goto LAB_00055378;" if (parenthesized_expression "(bVar3 != 0)" ( (binary_expression "bVar3 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00055378;" goto statement_identifier ;))) (expression_statement "uVar11 = 0xffffffff;" (assignment_expression "uVar11 = 0xffffffff" identifier = number_literal) ;) (expression_statement "pcVar15 = *(char **)(iVar4 + 0x30);" (assignment_expression "pcVar15 = *(char **)(iVar4 + 0x30)" identifier = (pointer_expression "*(char **)(iVar4 + 0x30)" * (cast_expression "(char **)(iVar4 + 0x30)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + 0x30)" ( (binary_expression "iVar4 + 0x30" identifier + number_literal) ))))) ;) (do_statement "do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');" do (compound_statement "{\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      }" { (if_statement "if (uVar11 == 0) break;" if (parenthesized_expression "(uVar11 == 0)" ( (binary_expression "uVar11 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar11 = uVar11 - 1;" (assignment_expression "uVar11 = uVar11 - 1" identifier = (binary_expression "uVar11 - 1" identifier - number_literal)) ;) (expression_statement "cVar2 = *pcVar15;" (assignment_expression "cVar2 = *pcVar15" identifier = (pointer_expression "*pcVar15" * identifier)) ;) (expression_statement "pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;" (assignment_expression "pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1" identifier = (binary_expression "pcVar15 + (uint)bVar21 * -2 + 1" (binary_expression "pcVar15 + (uint)bVar21 * -2" identifier + (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "uVar11 = ~uVar11;" (assignment_expression "uVar11 = ~uVar11" identifier = (unary_expression "~uVar11" ~ identifier)) ;) (expression_statement "__n = uVar11 - 1;" (assignment_expression "__n = uVar11 - 1" identifier = (binary_expression "uVar11 - 1" identifier - number_literal)) ;) (expression_statement "uVar12 = 0xffffffff;" (assignment_expression "uVar12 = 0xffffffff" identifier = number_literal) ;) (expression_statement "pbVar16 = pbVar8;" (assignment_expression "pbVar16 = pbVar8" identifier = identifier) ;) (do_statement "do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);" do (compound_statement "{\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      }" { (if_statement "if (uVar12 == 0) break;" if (parenthesized_expression "(uVar12 == 0)" ( (binary_expression "uVar12 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar12 = uVar12 - 1;" (assignment_expression "uVar12 = uVar12 - 1" identifier = (binary_expression "uVar12 - 1" identifier - number_literal)) ;) (expression_statement "bVar3 = *pbVar16;" (assignment_expression "bVar3 = *pbVar16" identifier = (pointer_expression "*pbVar16" * identifier)) ;) (expression_statement "pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;" (assignment_expression "pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1" identifier = (binary_expression "pbVar16 + (uint)bVar21 * -2 + 1" (binary_expression "pbVar16 + (uint)bVar21 * -2" identifier + (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar3 != 0)" ( (binary_expression "bVar3 != 0" identifier != number_literal) )) ;) (expression_statement "uVar13 = 0xffffffff;" (assignment_expression "uVar13 = 0xffffffff" identifier = number_literal) ;) (expression_statement "uVar12 = ~uVar12;" (assignment_expression "uVar12 = ~uVar12" identifier = (unary_expression "~uVar12" ~ identifier)) ;) (expression_statement "__n_01 = uVar12 - 1;" (assignment_expression "__n_01 = uVar12 - 1" identifier = (binary_expression "uVar12 - 1" identifier - number_literal)) ;) (expression_statement "pcVar15 = pcVar5;" (assignment_expression "pcVar15 = pcVar5" identifier = identifier) ;) (do_statement "do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');" do (compound_statement "{\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      }" { (if_statement "if (uVar13 == 0) break;" if (parenthesized_expression "(uVar13 == 0)" ( (binary_expression "uVar13 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar13 = uVar13 - 1;" (assignment_expression "uVar13 = uVar13 - 1" identifier = (binary_expression "uVar13 - 1" identifier - number_literal)) ;) (expression_statement "cVar2 = *pcVar15;" (assignment_expression "cVar2 = *pcVar15" identifier = (pointer_expression "*pcVar15" * identifier)) ;) (expression_statement "pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;" (assignment_expression "pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1" identifier = (binary_expression "pcVar15 + (uint)bVar21 * -2 + 1" (binary_expression "pcVar15 + (uint)bVar21 * -2" identifier + (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "uVar13 = ~uVar13;" (assignment_expression "uVar13 = ~uVar13" identifier = (unary_expression "~uVar13" ~ identifier)) ;) (expression_statement "__n_00 = uVar13 - 1;" (assignment_expression "__n_00 = uVar13 - 1" identifier = (binary_expression "uVar13 - 1" identifier - number_literal)) ;) (expression_statement "iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;" (assignment_expression "iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104" identifier = (binary_expression "uVar13 + uVar12 + 0xd + uVar11 + local_104" (binary_expression "uVar13 + uVar12 + 0xd + uVar11" (binary_expression "uVar13 + uVar12 + 0xd" (binary_expression "uVar13 + uVar12" identifier + identifier) + number_literal) + identifier) + identifier)) ;) (expression_statement "local_124 = iVar23 + 4 + local_100;" (assignment_expression "local_124 = iVar23 + 4 + local_100" identifier = (binary_expression "iVar23 + 4 + local_100" (binary_expression "iVar23 + 4" identifier + number_literal) + identifier)) ;) (expression_statement "local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);" (assignment_expression "local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23)" identifier = (cast_expression "(uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001a9c0(local_124,1,iVar23,iVar23)" identifier (argument_list "(local_124,1,iVar23,iVar23)" ( identifier , number_literal , identifier , identifier ))))) ;) (expression_statement "*local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;" (assignment_expression "*local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000" (pointer_expression "*local_134" * identifier) = (binary_expression "__n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000" (binary_expression "__n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8" (binary_expression "__n >> 0x18 | (__n & 0xff0000) >> 8" (binary_expression "__n >> 0x18" identifier >> number_literal) | (binary_expression "(__n & 0xff0000) >> 8" (parenthesized_expression "(__n & 0xff0000)" ( (binary_expression "__n & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(__n & 0xff00) << 8" (parenthesized_expression "(__n & 0xff00)" ( (binary_expression "__n & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "__n * 0x1000000" identifier * number_literal))) ;) (expression_statement "memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);" (call_expression "memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n)" identifier (argument_list "(local_134 + 1,*(void **)(iVar4 + 0x30),__n)" ( (binary_expression "local_134 + 1" identifier + number_literal) , (pointer_expression "*(void **)(iVar4 + 0x30)" * (cast_expression "(void **)(iVar4 + 0x30)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + 0x30)" ( (binary_expression "iVar4 + 0x30" identifier + number_literal) )))) , identifier ))) ;) (expression_statement "puVar10 = (uint *)((int)local_134 + uVar11 + 3);" (assignment_expression "puVar10 = (uint *)((int)local_134 + uVar11 + 3)" identifier = (cast_expression "(uint *)((int)local_134 + uVar11 + 3)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_134 + uVar11 + 3)" ( (binary_expression "(int)local_134 + uVar11 + 3" (binary_expression "(int)local_134 + uVar11" (cast_expression "(int)local_134" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) ;) (expression_statement "*puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;" (assignment_expression "*puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000" (pointer_expression "*puVar10" * identifier) = (binary_expression "__n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000" (binary_expression "__n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8" (binary_expression "__n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8" (binary_expression "__n_01 >> 0x18" identifier >> number_literal) | (binary_expression "(__n_01 & 0xff0000) >> 8" (parenthesized_expression "(__n_01 & 0xff0000)" ( (binary_expression "__n_01 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(__n_01 & 0xff00) << 8" (parenthesized_expression "(__n_01 & 0xff00)" ( (binary_expression "__n_01 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "__n_01 * 0x1000000" identifier * number_literal))) ;) (expression_statement "memcpy(puVar10 + 1,pbVar8,__n_01);" (call_expression "memcpy(puVar10 + 1,pbVar8,__n_01)" identifier (argument_list "(puVar10 + 1,pbVar8,__n_01)" ( (binary_expression "puVar10 + 1" identifier + number_literal) , identifier , identifier ))) ;) (expression_statement "puVar10 = (uint *)((int)puVar10 + uVar12 + 3);" (assignment_expression "puVar10 = (uint *)((int)puVar10 + uVar12 + 3)" identifier = (cast_expression "(uint *)((int)puVar10 + uVar12 + 3)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar10 + uVar12 + 3)" ( (binary_expression "(int)puVar10 + uVar12 + 3" (binary_expression "(int)puVar10 + uVar12" (cast_expression "(int)puVar10" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) ;) (expression_statement "*puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;" (assignment_expression "*puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000" (pointer_expression "*puVar10" * identifier) = (binary_expression "__n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000" (binary_expression "__n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8" (binary_expression "__n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8" (binary_expression "__n_00 >> 0x18" identifier >> number_literal) | (binary_expression "(__n_00 & 0xff0000) >> 8" (parenthesized_expression "(__n_00 & 0xff0000)" ( (binary_expression "__n_00 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(__n_00 & 0xff00) << 8" (parenthesized_expression "(__n_00 & 0xff00)" ( (binary_expression "__n_00 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "__n_00 * 0x1000000" identifier * number_literal))) ;) (expression_statement "memcpy(puVar10 + 1,pcVar5,__n_00);" (call_expression "memcpy(puVar10 + 1,pcVar5,__n_00)" identifier (argument_list "(puVar10 + 1,pcVar5,__n_00)" ( (binary_expression "puVar10 + 1" identifier + number_literal) , identifier , identifier ))) ;) (expression_statement "puVar10 = (uint *)((int)puVar10 + uVar13 + 3);" (assignment_expression "puVar10 = (uint *)((int)puVar10 + uVar13 + 3)" identifier = (cast_expression "(uint *)((int)puVar10 + uVar13 + 3)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar10 + uVar13 + 3)" ( (binary_expression "(int)puVar10 + uVar13 + 3" (binary_expression "(int)puVar10 + uVar13" (cast_expression "(int)puVar10" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) ;) (expression_statement "*(undefined1 *)puVar10 = local_104._3_1_;" (assignment_expression "*(undefined1 *)puVar10 = local_104._3_1_" (pointer_expression "*(undefined1 *)puVar10" * (cast_expression "(undefined1 *)puVar10" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (field_expression "local_104._3_1_" identifier . field_identifier)) ;) (expression_statement "*(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);" (assignment_expression "*(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10)" (pointer_expression "*(char *)((int)puVar10 + 1)" * (cast_expression "(char *)((int)puVar10 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar10 + 1)" ( (binary_expression "(int)puVar10 + 1" (cast_expression "(int)puVar10" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (cast_expression "(char)(local_104 >> 0x10)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(local_104 >> 0x10)" ( (binary_expression "local_104 >> 0x10" identifier >> number_literal) )))) ;) (expression_statement "*(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);" (assignment_expression "*(char *)((int)puVar10 + 2) = (char)(local_104 >> 8)" (pointer_expression "*(char *)((int)puVar10 + 2)" * (cast_expression "(char *)((int)puVar10 + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar10 + 2)" ( (binary_expression "(int)puVar10 + 2" (cast_expression "(int)puVar10" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (cast_expression "(char)(local_104 >> 8)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(local_104 >> 8)" ( (binary_expression "local_104 >> 8" identifier >> number_literal) )))) ;) (expression_statement "*(char *)((int)puVar10 + 3) = (char)local_104;" (assignment_expression "*(char *)((int)puVar10 + 3) = (char)local_104" (pointer_expression "*(char *)((int)puVar10 + 3)" * (cast_expression "(char *)((int)puVar10 + 3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar10 + 3)" ( (binary_expression "(int)puVar10 + 3" (cast_expression "(int)puVar10" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (cast_expression "(char)local_104" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "memcpy(puVar10 + 1,local_13c,local_104);" (call_expression "memcpy(puVar10 + 1,local_13c,local_104)" identifier (argument_list "(puVar10 + 1,local_13c,local_104)" ( (binary_expression "puVar10 + 1" identifier + number_literal) , identifier , identifier ))) ;) (expression_statement "puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);" (assignment_expression "puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4)" identifier = (cast_expression "(undefined1 *)((int)puVar10 + local_104 + 4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar10 + local_104 + 4)" ( (binary_expression "(int)puVar10 + local_104 + 4" (binary_expression "(int)puVar10 + local_104" (cast_expression "(int)puVar10" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) ;) (expression_statement "*puVar1 = local_100._3_1_;" (assignment_expression "*puVar1 = local_100._3_1_" (pointer_expression "*puVar1" * identifier) = (field_expression "local_100._3_1_" identifier . field_identifier)) ;) (expression_statement "puVar1[1] = (char)(local_100 >> 0x10);" (assignment_expression "puVar1[1] = (char)(local_100 >> 0x10)" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = (cast_expression "(char)(local_100 >> 0x10)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(local_100 >> 0x10)" ( (binary_expression "local_100 >> 0x10" identifier >> number_literal) )))) ;) (expression_statement "puVar1[2] = (char)(local_100 >> 8);" (assignment_expression "puVar1[2] = (char)(local_100 >> 8)" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = (cast_expression "(char)(local_100 >> 8)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(local_100 >> 8)" ( (binary_expression "local_100 >> 8" identifier >> number_literal) )))) ;) (expression_statement "puVar1[3] = (char)local_100;" (assignment_expression "puVar1[3] = (char)local_100" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = (cast_expression "(char)local_100" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "memcpy(puVar1 + 4,local_140,local_100);" (call_expression "memcpy(puVar1 + 4,local_140,local_100)" identifier (argument_list "(puVar1 + 4,local_140,local_100)" ( (binary_expression "puVar1 + 4" identifier + number_literal) , identifier , identifier ))) ;) (expression_statement "bVar19 = true;" (assignment_expression "bVar19 = true" identifier = true) ;) (goto_statement "goto LAB_00055390;" goto statement_identifier ;) })) (labeled_statement "LAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }" statement_identifier : (if_statement "if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }" if (parenthesized_expression "((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0))" ( (binary_expression "(param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)" (parenthesized_expression "(param_2 != (char *)0x0)" ( (binary_expression "param_2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "((int)local_100 % (int)local_124 == 0)" ( (binary_expression "(int)local_100 % (int)local_124 == 0" (binary_expression "(int)local_100 % (int)local_124" (cast_expression "(int)local_100" ( (type_descriptor "int" primitive_type) ) identifier) % (cast_expression "(int)local_124" ( (type_descriptor "int" primitive_type) ) identifier)) == number_literal) ))) )) (compound_statement "{\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }" { (expression_statement "puVar10 = local_fc;" (assignment_expression "puVar10 = local_fc" identifier = identifier) ;) (expression_statement "FUN_0005ce60(puVar10,pcVar22,iVar9);" (call_expression "FUN_0005ce60(puVar10,pcVar22,iVar9)" identifier (argument_list "(puVar10,pcVar22,iVar9)" ( identifier , identifier , identifier ))) ;) (expression_statement "FUN_0005cea0(puVar10,&DAT_0007db1c,4);" (call_expression "FUN_0005cea0(puVar10,&DAT_0007db1c,4)" identifier (argument_list "(puVar10,&DAT_0007db1c,4)" ( identifier , (pointer_expression "&DAT_0007db1c" & identifier) , number_literal ))) ;) (expression_statement "FUN_0005cea0(puVar10,param_2,local_14c);" (call_expression "FUN_0005cea0(puVar10,param_2,local_14c)" identifier (argument_list "(puVar10,param_2,local_14c)" ( identifier , identifier , identifier ))) ;) (expression_statement "FUN_0005d370(puVar10,local_49);" (call_expression "FUN_0005d370(puVar10,local_49)" identifier (argument_list "(puVar10,local_49)" ( identifier , identifier ))) ;) (expression_statement "FUN_0005ce60(puVar10);" (call_expression "FUN_0005ce60(puVar10)" identifier (argument_list "(puVar10)" ( identifier ))) ;) (expression_statement "FUN_0005cea0(puVar10,&DAT_0007db21,4);" (call_expression "FUN_0005cea0(puVar10,&DAT_0007db21,4)" identifier (argument_list "(puVar10,&DAT_0007db21,4)" ( identifier , (pointer_expression "&DAT_0007db21" & identifier) , number_literal ))) ;) (expression_statement "FUN_0005cea0(puVar10,param_2,local_14c);" (call_expression "FUN_0005cea0(puVar10,param_2,local_14c)" identifier (argument_list "(puVar10,param_2,local_14c)" ( identifier , identifier , identifier ))) ;) (expression_statement "FUN_0005d370(puVar10,local_35);" (call_expression "FUN_0005d370(puVar10,local_35)" identifier (argument_list "(puVar10,local_35)" ( identifier , identifier ))) ;) (expression_statement "FUN_00042f80(local_49,local_140,local_100);" (call_expression "FUN_00042f80(local_49,local_140,local_100)" identifier (argument_list "(local_49,local_140,local_100)" ( identifier , identifier , identifier ))) ;) (goto_statement "goto LAB_00055778;" goto statement_identifier ;) }))) (expression_statement "pcVar15 = "file format error";" (assignment_expression "pcVar15 = "file format error"" identifier = (string_literal ""file format error"" " string_content ")) ;) (expression_statement "piVar14 = (int *)0x0;" (assignment_expression "piVar14 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (labeled_statement "LAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);" statement_identifier : (expression_statement "FUN_0001b250(pcVar5,pcVar22,iVar9);" (call_expression "FUN_0001b250(pcVar5,pcVar22,iVar9)" identifier (argument_list "(pcVar5,pcVar22,iVar9)" ( identifier , identifier , identifier ))) ;)) (expression_statement "FUN_0001b250(pbVar8);" (call_expression "FUN_0001b250(pbVar8)" identifier (argument_list "(pbVar8)" ( identifier ))) ;) (expression_statement "FUN_0001b250(local_144);" (call_expression "FUN_0001b250(local_144)" identifier (argument_list "(local_144)" ( identifier ))) ;) }))) (if_statement "if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }" if (parenthesized_expression "(local_13c != (void *)0x0)" ( (binary_expression "local_13c != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    FUN_0001b250(local_13c);\n                  }" { (expression_statement "FUN_0001b250(local_13c);" (call_expression "FUN_0001b250(local_13c)" identifier (argument_list "(local_13c)" ( identifier ))) ;) })) (if_statement "if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }" if (parenthesized_expression "(local_140 != (uint *)0x0)" ( (binary_expression "local_140 != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }" { (expression_statement "FUN_0001b330(local_140,local_100);" (call_expression "FUN_0001b330(local_140,local_100)" identifier (argument_list "(local_140,local_100)" ( identifier , identifier ))) ;) (expression_statement "FUN_0001b250(local_140);" (call_expression "FUN_0001b250(local_140)" identifier (argument_list "(local_140)" ( identifier ))) ;) })) (goto_statement "goto LAB_00055070;" goto statement_identifier ;) })) })) }) (else_clause "else {\n              iVar7 = 5;\n              pbVar16 = pbVar8;\n              pbVar17 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar19 = *pbVar16 < *pbVar17;\n                bVar18 = *pbVar16 == *pbVar17;\n                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n              } while (bVar18);\n              if ((!bVar19 && !bVar18) == bVar19) {\n                local_124 = 1;\n                bVar18 = false;\n                goto LAB_000551a8;\n              }\n            }" else (compound_statement "{\n              iVar7 = 5;\n              pbVar16 = pbVar8;\n              pbVar17 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar19 = *pbVar16 < *pbVar17;\n                bVar18 = *pbVar16 == *pbVar17;\n                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n              } while (bVar18);\n              if ((!bVar19 && !bVar18) == bVar19) {\n                local_124 = 1;\n                bVar18 = false;\n                goto LAB_000551a8;\n              }\n            }" { (expression_statement "iVar7 = 5;" (assignment_expression "iVar7 = 5" identifier = number_literal) ;) (expression_statement "pbVar16 = pbVar8;" (assignment_expression "pbVar16 = pbVar8" identifier = identifier) ;) (expression_statement "pbVar17 = &DAT_0007471c;" (assignment_expression "pbVar17 = &DAT_0007471c" identifier = (pointer_expression "&DAT_0007471c" & identifier)) ;) (do_statement "do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar19 = *pbVar16 < *pbVar17;\n                bVar18 = *pbVar16 == *pbVar17;\n                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n              } while (bVar18);" do (compound_statement "{\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar19 = *pbVar16 < *pbVar17;\n                bVar18 = *pbVar16 == *pbVar17;\n                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n              }" { (if_statement "if (iVar7 == 0) break;" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar7 = iVar7 + -1;" (assignment_expression "iVar7 = iVar7 + -1" identifier = (binary_expression "iVar7 + -1" identifier + number_literal)) ;) (expression_statement "bVar19 = *pbVar16 < *pbVar17;" (assignment_expression "bVar19 = *pbVar16 < *pbVar17" identifier = (binary_expression "*pbVar16 < *pbVar17" (pointer_expression "*pbVar16" * identifier) < (pointer_expression "*pbVar17" * identifier))) ;) (expression_statement "bVar18 = *pbVar16 == *pbVar17;" (assignment_expression "bVar18 = *pbVar16 == *pbVar17" identifier = (binary_expression "*pbVar16 == *pbVar17" (pointer_expression "*pbVar16" * identifier) == (pointer_expression "*pbVar17" * identifier))) ;) (expression_statement "pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;" (assignment_expression "pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1" identifier = (binary_expression "pbVar16 + (uint)bVar21 * -2 + 1" (binary_expression "pbVar16 + (uint)bVar21 * -2" identifier + (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;" (assignment_expression "pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1" identifier = (binary_expression "pbVar17 + (uint)bVar21 * -2 + 1" (binary_expression "pbVar17 + (uint)bVar21 * -2" identifier + (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar18)" ( identifier )) ;) (if_statement "if ((!bVar19 && !bVar18) == bVar19) {\n                local_124 = 1;\n                bVar18 = false;\n                goto LAB_000551a8;\n              }" if (parenthesized_expression "((!bVar19 && !bVar18) == bVar19)" ( (binary_expression "(!bVar19 && !bVar18) == bVar19" (parenthesized_expression "(!bVar19 && !bVar18)" ( (binary_expression "!bVar19 && !bVar18" (unary_expression "!bVar19" ! identifier) && (unary_expression "!bVar18" ! identifier)) )) == identifier) )) (compound_statement "{\n                local_124 = 1;\n                bVar18 = false;\n                goto LAB_000551a8;\n              }" { (expression_statement "local_124 = 1;" (assignment_expression "local_124 = 1" identifier = number_literal) ;) (expression_statement "bVar18 = false;" (assignment_expression "bVar18 = false" identifier = false) ;) (goto_statement "goto LAB_000551a8;" goto statement_identifier ;) })) }))) (expression_statement "piVar14 = (int *)0x0;" (assignment_expression "piVar14 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "fclose(__stream);" (call_expression "fclose(__stream)" identifier (argument_list "(__stream)" ( identifier ))) ;) (expression_statement "pcVar15 = "file format error";" (assignment_expression "pcVar15 = "file format error"" identifier = (string_literal ""file format error"" " string_content ")) ;) (expression_statement "FUN_0001b250(pbVar8);" (call_expression "FUN_0001b250(pbVar8)" identifier (argument_list "(pbVar8)" ( identifier ))) ;) (goto_statement "goto LAB_00055070;" goto statement_identifier ;) })) })) })) (labeled_statement "LAB_0005510e:\n      pcVar15 = "file format error";" statement_identifier : (expression_statement "pcVar15 = "file format error";" (assignment_expression "pcVar15 = "file format error"" identifier = (string_literal ""file format error"" " string_content ")) ;)) (expression_statement "piVar14 = (int *)0x0;" (assignment_expression "piVar14 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "fclose(__stream);" (call_expression "fclose(__stream)" identifier (argument_list "(__stream)" ( identifier ))) ;) }))) }))) (labeled_statement "LAB_00055070:\n  if (param_3 != (undefined4 *)0x0) {\n    *param_3 = pcVar15;\n  }" statement_identifier : (if_statement "if (param_3 != (undefined4 *)0x0) {\n    *param_3 = pcVar15;\n  }" if (parenthesized_expression "(param_3 != (undefined4 *)0x0)" ( (binary_expression "param_3 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *param_3 = pcVar15;\n  }" { (expression_statement "*param_3 = pcVar15;" (assignment_expression "*param_3 = pcVar15" (pointer_expression "*param_3" * identifier) = identifier) ;) }))) (labeled_statement "LAB_0005507a:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return piVar14;\n  }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return piVar14;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return piVar14;\n  }" { (return_statement "return piVar14;" return identifier ;) }))) comment (expression_statement "FUN_0006f2a0();" (call_expression "FUN_0006f2a0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nssh2_userkey * ssh2_load_userkey(Filename *filename,char *passphrase,char **errorstr)\n\n{\n  uint __n;\n  uint __n_00;\n  uint *puVar1;\n  undefined1 *puVar2;\n  char cVar3;\n  int iVar4;\n  int iVar5;\n  byte bVar6;\n  FILE *__stream;\n  int iVar7;\n  char *pcVar8;\n  size_t namelen;\n  ssh_signkey *psVar9;\n  byte *pbVar10;\n  char *pcVar11;\n  SHA_CTX *c;\n  void *pvVar12;\n  uint uVar13;\n  uint uVar14;\n  uint uVar15;\n  ssh2_userkey *ptr;\n  byte *pbVar16;\n  uchar *puVar17;\n  SHA_CTX *c_00;\n  byte *pbVar18;\n  uchar *puVar19;\n  uint __n_01;\n  int in_GS_OFFSET;\n  bool bVar20;\n  bool bVar21;\n  bool bVar22;\n  byte bVar23;\n  size_t sVar24;\n  size_t local_14c;\n  char *local_144;\n  SHA_CTX *local_140;\n  uchar *local_13c;\n  SHA_CTX *local_134;\n  size_t local_124;\n  int public_blob_len;\n  int private_blob_len;\n  SHA_State s;\n  uchar binary [20];\n  uchar mackey [20];\n  char header [40];\n  uchar key [40];\n  \n  bVar23 = 0;\n  iVar4 = *(int *)(in_GS_OFFSET + 0x14);\n  local_14c = 0;\n  if (passphrase != (char *)0x0) {\n    local_14c = strlen(passphrase);\n  }\n  __stream = (FILE *)f_open(filename,"rb",0);\n  if (__stream == (FILE *)0x0) {\n    pcVar11 = "can\'t open file";\n    ptr = (ssh2_userkey *)0x0;\n  }\n  else {\n    iVar7 = read_header((FILE *)__stream,header);\n    bVar20 = false;\n    bVar22 = iVar7 == 0;\n    if (bVar22) {\n      pcVar11 = (char *)0x0;\n      ptr = (ssh2_userkey *)0x0;\n      fclose(__stream);\n    }\n    else {\n      iVar7 = 0x16;\n      pbVar10 = (byte *)header;\n      pbVar16 = (byte *)"PuTTY-User-Key-File-2";\n      do {\n        if (iVar7 == 0) break;\n        iVar7 = iVar7 + -1;\n        bVar20 = *pbVar10 < *pbVar16;\n        bVar22 = *pbVar10 == *pbVar16;\n        pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1;\n        pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n      } while (bVar22);\n      bVar6 = (!bVar20 && !bVar22) - bVar20;\n      bVar20 = false;\n      bVar22 = bVar6 == 0;\n      if (!bVar22) {\n        iVar7 = 0x16;\n        pbVar10 = (byte *)header;\n        pbVar16 = (byte *)"PuTTY-User-Key-File-1";\n        do {\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar20 = *pbVar10 < *pbVar16;\n          bVar22 = *pbVar10 == *pbVar16;\n          pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n        } while (bVar22);\n        bVar21 = false;\n        bVar20 = (!bVar20 && !bVar22) == bVar20;\n        if (!bVar20) {\n          iVar7 = 0x14;\n          pbVar10 = (byte *)header;\n          pbVar16 = (byte *)"PuTTY-User-Key-File-";\n          do {\n            if (iVar7 == 0) break;\n            iVar7 = iVar7 + -1;\n            bVar21 = *pbVar10 < *pbVar16;\n            bVar20 = *pbVar10 == *pbVar16;\n            pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1;\n            pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n          } while (bVar20);\n          if ((!bVar21 && !bVar20) == bVar21) {\n            pcVar11 = "PuTTY key format too new";\n            ptr = (ssh2_userkey *)0x0;\n            fclose(__stream);\n          }\n          else {\n            pcVar11 = "not a PuTTY SSH-2 private key";\n            ptr = (ssh2_userkey *)0x0;\n            fclose(__stream);\n          }\n          goto LAB_00055070;\n        }\n        old_keyfile_warning();\n        bVar6 = 1;\n      }\n      pcVar8 = read_body((FILE *)__stream);\n      if (pcVar8 == (char *)0x0) goto LAB_0005510e;\n      namelen = strlen(pcVar8);\n      psVar9 = find_pubkey_alg_len(namelen,pcVar8);\n      if (psVar9 == (ssh_signkey *)0x0) {\n        pcVar11 = "file format error";\n        safefree(pcVar8);\n        ptr = (ssh2_userkey *)0x0;\n        fclose(__stream);\n        goto LAB_00055070;\n      }\n      safefree(pcVar8);\n      iVar7 = read_header((FILE *)__stream,header);\n      bVar20 = false;\n      bVar22 = iVar7 == 0;\n      if (!bVar22) {\n        iVar7 = 0xb;\n        pbVar10 = (byte *)header;\n        pbVar16 = (byte *)"Encryption";\n        do {\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar20 = *pbVar10 < *pbVar16;\n          bVar22 = *pbVar10 == *pbVar16;\n          pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n        } while (bVar22);\n        if ((!bVar20 && !bVar22) == bVar20) {\n          pbVar10 = (byte *)read_body((FILE *)__stream);\n          bVar20 = false;\n          bVar22 = pbVar10 == (byte *)0x0;\n          if (!bVar22) {\n            iVar7 = 0xb;\n            pbVar16 = pbVar10;\n            pbVar18 = (byte *)"aes256-cbc";\n            do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar20 = *pbVar16 < *pbVar18;\n              bVar22 = *pbVar16 == *pbVar18;\n              pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n              pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n            } while (bVar22);\n            bVar21 = false;\n            bVar20 = (!bVar20 && !bVar22) == bVar20;\n            if (bVar20) {\n              local_124 = 0x10;\n              bVar20 = true;\nLAB_000551a8:\n              iVar7 = read_header((FILE *)__stream,header);\n              bVar22 = false;\n              bVar21 = iVar7 == 0;\n              if (!bVar21) {\n                iVar7 = 8;\n                pbVar16 = (byte *)header;\n                pbVar18 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar22 = *pbVar16 < *pbVar18;\n                  bVar21 = *pbVar16 == *pbVar18;\n                  pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                  pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n                } while (bVar21);\n                if ((!bVar22 && !bVar21) == bVar22) {\n                  pcVar8 = read_body((FILE *)__stream);\n                  if (pcVar8 == (char *)0x0) {\n                    pcVar11 = "file format error";\n                    ptr = (ssh2_userkey *)0x0;\n                    fclose(__stream);\n                    safefree(pbVar10);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = read_header((FILE *)__stream,header);\n                  bVar22 = false;\n                  bVar21 = iVar7 == 0;\n                  if (bVar21) {\nLAB_000555ad:\n                    local_140 = (SHA_CTX *)0x0;\n                    local_13c = (uchar *)0x0;\nLAB_0005553d:\n                    pcVar11 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    ptr = (ssh2_userkey *)0x0;\n                    safefree(pcVar8);\n                    safefree(pbVar10);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = (byte *)header;\n                    pbVar18 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar22 = *pbVar16 < *pbVar18;\n                      bVar21 = *pbVar16 == *pbVar18;\n                      pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                      pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n                    } while (bVar21);\n                    if ((!bVar22 && !bVar21) != bVar22) goto LAB_000555ad;\n                    pcVar11 = read_body((FILE *)__stream);\n                    if (pcVar11 == (char *)0x0) goto LAB_000555ad;\n                    iVar7 = userkey_parse_line_counter(pcVar11);\n                    safefree(pcVar11);\n                    if (iVar7 < 0) goto LAB_000555ad;\n                    local_13c = read_blob((FILE *)__stream,iVar7,&public_blob_len);\n                    if (local_13c == (uchar *)0x0) goto LAB_000555ad;\n                    iVar7 = read_header((FILE *)__stream,header);\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (SHA_CTX *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    iVar7 = strcmp(header,"Private-Lines");\n                    local_140 = (SHA_CTX *)0x0;\n                    if (iVar7 != 0) goto LAB_0005553d;\n                    c = (SHA_CTX *)read_body((FILE *)__stream);\n                    local_140 = c;\n                    if (c == (SHA_CTX *)0x0) goto LAB_0005553d;\n                    iVar7 = userkey_parse_line_counter((char *)c);\n                    safefree(c);\n                    if (iVar7 < 0) goto LAB_00055535;\n                    local_140 = (SHA_CTX *)read_blob((FILE *)__stream,iVar7,&private_blob_len);\n                    if (local_140 == (SHA_CTX *)0x0) goto LAB_0005553d;\n                    iVar7 = read_header((FILE *)__stream,header);\n                    if (iVar7 == 0) goto LAB_0005553d;\n                    iVar7 = strcmp(header,"Private-MAC");\n                    if (iVar7 != 0) {\n                      iVar7 = strcmp(header,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar6 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = read_body((FILE *)__stream);\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar22 = false;\n                      fclose(__stream);\n                      if (bVar20) goto LAB_000556cb;\nLAB_00055378:\n                      bVar21 = false;\n                      local_124 = private_blob_len;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar22) {\n                        puVar17 = (uchar *)"putty-private-key-file-mac-key";\n                        puVar19 = key;\n                        for (iVar7 = 0x1f; iVar7 != 0; iVar7 = iVar7 + -1) {\n                          *puVar19 = *puVar17;\n                          puVar17 = puVar17 + (uint)bVar23 * -2 + 1;\n                          puVar19 = puVar19 + (uint)bVar23 * -2 + 1;\n                        }\n                        c_00 = (SHA_CTX *)&s;\n                        SHA_Init(c_00);\n                        SHA_Bytes((SHA_State *)c_00,key,0x1e);\n                        if ((passphrase != (char *)0x0) && (bVar20)) {\n                          SHA_Bytes((SHA_State *)c_00,passphrase,local_14c);\n                        }\n                        c = (SHA_CTX *)passphrase;\n                        SHA_Final((SHA_State *)c_00,mackey);\n                        hmac_sha1_simple(mackey,0x14,local_134,local_124,binary);\n                        smemclr(mackey,0x14);\n                        sVar24 = 0x60;\n                        smemclr(c_00,0x60);\n                      }\n                      else {\n                        passphrase = (char *)binary;\n                        sVar24 = local_124;\n                        SHA_Simple(local_134,local_124,(uchar *)passphrase);\n                        c_00 = (SHA_CTX *)0x0;\n                      }\n                      if (bVar21) {\n                        c = c_00;\n                        smemclr(local_134,local_124);\n                        safefree(local_134);\n                        sVar24 = local_124;\n                        passphrase = (char *)c_00;\n                      }\n                      iVar7 = 0;\n                      do {\n                        puVar17 = binary + iVar7;\n                        iVar5 = iVar7 * 2;\n                        iVar7 = iVar7 + 1;\n                        __sprintf_chk(key + iVar5,1,0xffffffff,&DAT_0007dc2b,*puVar17,sVar24,\n                                      passphrase,c);\n                      } while (iVar7 != 0x14);\n                      iVar7 = strcmp(local_144,(char *)key);\n                      if (iVar7 != 0) {\n                        if (bVar20) {\n                          pcVar11 = "wrong passphrase";\n                          ptr = &ssh2_wrong_passphrase;\n                        }\n                        else {\n                          pcVar11 = "MAC failed";\n                          ptr = (ssh2_userkey *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      safefree(local_144);\n                      ptr = (ssh2_userkey *)safemalloc(1,0xc);\n                      ptr->comment = pcVar8;\n                      ptr->alg = psVar9;\n                      pvVar12 = (*psVar9->createkey)\n                                          (psVar9,local_13c,public_blob_len,(uchar *)local_140,\n                                           private_blob_len);\n                      ptr->data = pvVar12;\n                      if (pvVar12 != (void *)0x0) {\n                        safefree(local_13c);\n                        smemclr(local_140,private_blob_len);\n                        safefree(local_140);\n                        safefree(pbVar10);\n                        if (errorstr != (char **)0x0) {\n                          *errorstr = (char *)0x0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar11 = "createkey failed";\n                      safefree(ptr);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = read_body((FILE *)__stream);\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar22 = bVar20;\n                    if (!bVar20) {\n                      bVar22 = true;\nLAB_00055778:\n                      if (bVar6 != 0) goto LAB_00055378;\n                      uVar13 = 0xffffffff;\n                      pcVar11 = psVar9->name;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar3 = *pcVar11;\n                        pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1;\n                      } while (cVar3 != '\0');\n                      uVar13 = ~uVar13;\n                      __n = uVar13 - 1;\n                      uVar14 = 0xffffffff;\n                      pbVar16 = pbVar10;\n                      do {\n                        if (uVar14 == 0) break;\n                        uVar14 = uVar14 - 1;\n                        bVar6 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                      } while (bVar6 != 0);\n                      uVar15 = 0xffffffff;\n                      uVar14 = ~uVar14;\n                      __n_01 = uVar14 - 1;\n                      pcVar11 = pcVar8;\n                      do {\n                        if (uVar15 == 0) break;\n                        uVar15 = uVar15 - 1;\n                        cVar3 = *pcVar11;\n                        pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1;\n                      } while (cVar3 != '\0');\n                      uVar15 = ~uVar15;\n                      __n_00 = uVar15 - 1;\n                      local_124 = uVar15 + uVar14 + uVar13 + public_blob_len + 0x11 +\n                                  private_blob_len;\n                      local_134 = (SHA_CTX *)safemalloc(local_124,1);\n                      local_134->h0 =\n                           __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                           __n * 0x1000000;\n                      memcpy(&local_134->h1,psVar9->name,__n);\n                      puVar1 = (uint *)((int)local_134->data + (uVar13 - 0x19));\n                      *puVar1 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8 |\n                                __n_01 * 0x1000000;\n                      memcpy(puVar1 + 1,pbVar10,__n_01);\n                      puVar1 = (uint *)((int)puVar1 + uVar14 + 3);\n                      *puVar1 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8 |\n                                __n_00 * 0x1000000;\n                      memcpy(puVar1 + 1,pcVar8,__n_00);\n                      iVar7 = public_blob_len;\n                      c = (SHA_CTX *)((int)puVar1 + uVar15 + 3);\n                      *(undefined1 *)&c->h0 = public_blob_len._3_1_;\n                      *(char *)((int)&c->h0 + 1) = (char)((uint)public_blob_len >> 0x10);\n                      *(char *)((int)&c->h0 + 2) = (char)((uint)public_blob_len >> 8);\n                      *(char *)((int)&c->h0 + 3) = (char)public_blob_len;\n                      memcpy(&c->h1,local_13c,public_blob_len);\n                      puVar2 = (undefined1 *)((int)c->data + iVar7 + -0x18);\n                      *puVar2 = private_blob_len._3_1_;\n                      puVar2[1] = (char)((uint)private_blob_len >> 0x10);\n                      puVar2[2] = (char)((uint)private_blob_len >> 8);\n                      puVar2[3] = (char)private_blob_len;\n                      memcpy(puVar2 + 4,local_140,private_blob_len);\n                      bVar21 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((passphrase != (char *)0x0) && (private_blob_len % (int)local_124 == 0)) {\n                      c = (SHA_CTX *)&s;\n                      SHA_Init(c);\n                      SHA_Bytes((SHA_State *)c,&DAT_0007db1c,4);\n                      SHA_Bytes((SHA_State *)c,passphrase,local_14c);\n                      SHA_Final((SHA_State *)c,key);\n                      SHA_Init(c);\n                      SHA_Bytes((SHA_State *)c,&DAT_0007db21,4);\n                      SHA_Bytes((SHA_State *)c,passphrase,local_14c);\n                      SHA_Final((SHA_State *)c,key + 0x14);\n                      aes256_decrypt_pubkey(key,(uchar *)local_140,private_blob_len);\n                      goto LAB_00055778;\n                    }\n                    pcVar11 = "file format error";\n                    ptr = (ssh2_userkey *)0x0;\nLAB_000554a5:\n                    safefree(pcVar8);\n                    safefree(pbVar10);\n                    safefree(local_144);\n                  }\n                  if (local_13c != (uchar *)0x0) {\n                    safefree(local_13c);\n                  }\n                  if (local_140 != (SHA_CTX *)0x0) {\n                    smemclr(local_140,private_blob_len);\n                    safefree(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar10;\n              pbVar18 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar21 = *pbVar16 < *pbVar18;\n                bVar20 = *pbVar16 == *pbVar18;\n                pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n              } while (bVar20);\n              if ((!bVar21 && !bVar20) == bVar21) {\n                local_124 = 1;\n                bVar20 = false;\n                goto LAB_000551a8;\n              }\n            }\n            ptr = (ssh2_userkey *)0x0;\n            fclose(__stream);\n            pcVar11 = "file format error";\n            safefree(pbVar10);\n            goto LAB_00055070;\n          }\n        }\n      }\nLAB_0005510e:\n      pcVar11 = "file format error";\n      ptr = (ssh2_userkey *)0x0;\n      fclose(__stream);\n    }\n  }\nLAB_00055070:\n  if (errorstr != (char **)0x0) {\n    *errorstr = pcVar11;\n  }\nLAB_0005507a:\n  if (iVar4 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return ptr;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment comment (function_definition "ssh2_userkey * ssh2_load_userkey(Filename *filename,char *passphrase,char **errorstr)\n\n{\n  uint __n;\n  uint __n_00;\n  uint *puVar1;\n  undefined1 *puVar2;\n  char cVar3;\n  int iVar4;\n  int iVar5;\n  byte bVar6;\n  FILE *__stream;\n  int iVar7;\n  char *pcVar8;\n  size_t namelen;\n  ssh_signkey *psVar9;\n  byte *pbVar10;\n  char *pcVar11;\n  SHA_CTX *c;\n  void *pvVar12;\n  uint uVar13;\n  uint uVar14;\n  uint uVar15;\n  ssh2_userkey *ptr;\n  byte *pbVar16;\n  uchar *puVar17;\n  SHA_CTX *c_00;\n  byte *pbVar18;\n  uchar *puVar19;\n  uint __n_01;\n  int in_GS_OFFSET;\n  bool bVar20;\n  bool bVar21;\n  bool bVar22;\n  byte bVar23;\n  size_t sVar24;\n  size_t local_14c;\n  char *local_144;\n  SHA_CTX *local_140;\n  uchar *local_13c;\n  SHA_CTX *local_134;\n  size_t local_124;\n  int public_blob_len;\n  int private_blob_len;\n  SHA_State s;\n  uchar binary [20];\n  uchar mackey [20];\n  char header [40];\n  uchar key [40];\n  \n  bVar23 = 0;\n  iVar4 = *(int *)(in_GS_OFFSET + 0x14);\n  local_14c = 0;\n  if (passphrase != (char *)0x0) {\n    local_14c = strlen(passphrase);\n  }\n  __stream = (FILE *)f_open(filename,"rb",0);\n  if (__stream == (FILE *)0x0) {\n    pcVar11 = "can\'t open file";\n    ptr = (ssh2_userkey *)0x0;\n  }\n  else {\n    iVar7 = read_header((FILE *)__stream,header);\n    bVar20 = false;\n    bVar22 = iVar7 == 0;\n    if (bVar22) {\n      pcVar11 = (char *)0x0;\n      ptr = (ssh2_userkey *)0x0;\n      fclose(__stream);\n    }\n    else {\n      iVar7 = 0x16;\n      pbVar10 = (byte *)header;\n      pbVar16 = (byte *)"PuTTY-User-Key-File-2";\n      do {\n        if (iVar7 == 0) break;\n        iVar7 = iVar7 + -1;\n        bVar20 = *pbVar10 < *pbVar16;\n        bVar22 = *pbVar10 == *pbVar16;\n        pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1;\n        pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n      } while (bVar22);\n      bVar6 = (!bVar20 && !bVar22) - bVar20;\n      bVar20 = false;\n      bVar22 = bVar6 == 0;\n      if (!bVar22) {\n        iVar7 = 0x16;\n        pbVar10 = (byte *)header;\n        pbVar16 = (byte *)"PuTTY-User-Key-File-1";\n        do {\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar20 = *pbVar10 < *pbVar16;\n          bVar22 = *pbVar10 == *pbVar16;\n          pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n        } while (bVar22);\n        bVar21 = false;\n        bVar20 = (!bVar20 && !bVar22) == bVar20;\n        if (!bVar20) {\n          iVar7 = 0x14;\n          pbVar10 = (byte *)header;\n          pbVar16 = (byte *)"PuTTY-User-Key-File-";\n          do {\n            if (iVar7 == 0) break;\n            iVar7 = iVar7 + -1;\n            bVar21 = *pbVar10 < *pbVar16;\n            bVar20 = *pbVar10 == *pbVar16;\n            pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1;\n            pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n          } while (bVar20);\n          if ((!bVar21 && !bVar20) == bVar21) {\n            pcVar11 = "PuTTY key format too new";\n            ptr = (ssh2_userkey *)0x0;\n            fclose(__stream);\n          }\n          else {\n            pcVar11 = "not a PuTTY SSH-2 private key";\n            ptr = (ssh2_userkey *)0x0;\n            fclose(__stream);\n          }\n          goto LAB_00055070;\n        }\n        old_keyfile_warning();\n        bVar6 = 1;\n      }\n      pcVar8 = read_body((FILE *)__stream);\n      if (pcVar8 == (char *)0x0) goto LAB_0005510e;\n      namelen = strlen(pcVar8);\n      psVar9 = find_pubkey_alg_len(namelen,pcVar8);\n      if (psVar9 == (ssh_signkey *)0x0) {\n        pcVar11 = "file format error";\n        safefree(pcVar8);\n        ptr = (ssh2_userkey *)0x0;\n        fclose(__stream);\n        goto LAB_00055070;\n      }\n      safefree(pcVar8);\n      iVar7 = read_header((FILE *)__stream,header);\n      bVar20 = false;\n      bVar22 = iVar7 == 0;\n      if (!bVar22) {\n        iVar7 = 0xb;\n        pbVar10 = (byte *)header;\n        pbVar16 = (byte *)"Encryption";\n        do {\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar20 = *pbVar10 < *pbVar16;\n          bVar22 = *pbVar10 == *pbVar16;\n          pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n        } while (bVar22);\n        if ((!bVar20 && !bVar22) == bVar20) {\n          pbVar10 = (byte *)read_body((FILE *)__stream);\n          bVar20 = false;\n          bVar22 = pbVar10 == (byte *)0x0;\n          if (!bVar22) {\n            iVar7 = 0xb;\n            pbVar16 = pbVar10;\n            pbVar18 = (byte *)"aes256-cbc";\n            do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar20 = *pbVar16 < *pbVar18;\n              bVar22 = *pbVar16 == *pbVar18;\n              pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n              pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n            } while (bVar22);\n            bVar21 = false;\n            bVar20 = (!bVar20 && !bVar22) == bVar20;\n            if (bVar20) {\n              local_124 = 0x10;\n              bVar20 = true;\nLAB_000551a8:\n              iVar7 = read_header((FILE *)__stream,header);\n              bVar22 = false;\n              bVar21 = iVar7 == 0;\n              if (!bVar21) {\n                iVar7 = 8;\n                pbVar16 = (byte *)header;\n                pbVar18 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar22 = *pbVar16 < *pbVar18;\n                  bVar21 = *pbVar16 == *pbVar18;\n                  pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                  pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n                } while (bVar21);\n                if ((!bVar22 && !bVar21) == bVar22) {\n                  pcVar8 = read_body((FILE *)__stream);\n                  if (pcVar8 == (char *)0x0) {\n                    pcVar11 = "file format error";\n                    ptr = (ssh2_userkey *)0x0;\n                    fclose(__stream);\n                    safefree(pbVar10);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = read_header((FILE *)__stream,header);\n                  bVar22 = false;\n                  bVar21 = iVar7 == 0;\n                  if (bVar21) {\nLAB_000555ad:\n                    local_140 = (SHA_CTX *)0x0;\n                    local_13c = (uchar *)0x0;\nLAB_0005553d:\n                    pcVar11 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    ptr = (ssh2_userkey *)0x0;\n                    safefree(pcVar8);\n                    safefree(pbVar10);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = (byte *)header;\n                    pbVar18 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar22 = *pbVar16 < *pbVar18;\n                      bVar21 = *pbVar16 == *pbVar18;\n                      pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                      pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n                    } while (bVar21);\n                    if ((!bVar22 && !bVar21) != bVar22) goto LAB_000555ad;\n                    pcVar11 = read_body((FILE *)__stream);\n                    if (pcVar11 == (char *)0x0) goto LAB_000555ad;\n                    iVar7 = userkey_parse_line_counter(pcVar11);\n                    safefree(pcVar11);\n                    if (iVar7 < 0) goto LAB_000555ad;\n                    local_13c = read_blob((FILE *)__stream,iVar7,&public_blob_len);\n                    if (local_13c == (uchar *)0x0) goto LAB_000555ad;\n                    iVar7 = read_header((FILE *)__stream,header);\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (SHA_CTX *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    iVar7 = strcmp(header,"Private-Lines");\n                    local_140 = (SHA_CTX *)0x0;\n                    if (iVar7 != 0) goto LAB_0005553d;\n                    c = (SHA_CTX *)read_body((FILE *)__stream);\n                    local_140 = c;\n                    if (c == (SHA_CTX *)0x0) goto LAB_0005553d;\n                    iVar7 = userkey_parse_line_counter((char *)c);\n                    safefree(c);\n                    if (iVar7 < 0) goto LAB_00055535;\n                    local_140 = (SHA_CTX *)read_blob((FILE *)__stream,iVar7,&private_blob_len);\n                    if (local_140 == (SHA_CTX *)0x0) goto LAB_0005553d;\n                    iVar7 = read_header((FILE *)__stream,header);\n                    if (iVar7 == 0) goto LAB_0005553d;\n                    iVar7 = strcmp(header,"Private-MAC");\n                    if (iVar7 != 0) {\n                      iVar7 = strcmp(header,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar6 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = read_body((FILE *)__stream);\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar22 = false;\n                      fclose(__stream);\n                      if (bVar20) goto LAB_000556cb;\nLAB_00055378:\n                      bVar21 = false;\n                      local_124 = private_blob_len;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar22) {\n                        puVar17 = (uchar *)"putty-private-key-file-mac-key";\n                        puVar19 = key;\n                        for (iVar7 = 0x1f; iVar7 != 0; iVar7 = iVar7 + -1) {\n                          *puVar19 = *puVar17;\n                          puVar17 = puVar17 + (uint)bVar23 * -2 + 1;\n                          puVar19 = puVar19 + (uint)bVar23 * -2 + 1;\n                        }\n                        c_00 = (SHA_CTX *)&s;\n                        SHA_Init(c_00);\n                        SHA_Bytes((SHA_State *)c_00,key,0x1e);\n                        if ((passphrase != (char *)0x0) && (bVar20)) {\n                          SHA_Bytes((SHA_State *)c_00,passphrase,local_14c);\n                        }\n                        c = (SHA_CTX *)passphrase;\n                        SHA_Final((SHA_State *)c_00,mackey);\n                        hmac_sha1_simple(mackey,0x14,local_134,local_124,binary);\n                        smemclr(mackey,0x14);\n                        sVar24 = 0x60;\n                        smemclr(c_00,0x60);\n                      }\n                      else {\n                        passphrase = (char *)binary;\n                        sVar24 = local_124;\n                        SHA_Simple(local_134,local_124,(uchar *)passphrase);\n                        c_00 = (SHA_CTX *)0x0;\n                      }\n                      if (bVar21) {\n                        c = c_00;\n                        smemclr(local_134,local_124);\n                        safefree(local_134);\n                        sVar24 = local_124;\n                        passphrase = (char *)c_00;\n                      }\n                      iVar7 = 0;\n                      do {\n                        puVar17 = binary + iVar7;\n                        iVar5 = iVar7 * 2;\n                        iVar7 = iVar7 + 1;\n                        __sprintf_chk(key + iVar5,1,0xffffffff,&DAT_0007dc2b,*puVar17,sVar24,\n                                      passphrase,c);\n                      } while (iVar7 != 0x14);\n                      iVar7 = strcmp(local_144,(char *)key);\n                      if (iVar7 != 0) {\n                        if (bVar20) {\n                          pcVar11 = "wrong passphrase";\n                          ptr = &ssh2_wrong_passphrase;\n                        }\n                        else {\n                          pcVar11 = "MAC failed";\n                          ptr = (ssh2_userkey *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      safefree(local_144);\n                      ptr = (ssh2_userkey *)safemalloc(1,0xc);\n                      ptr->comment = pcVar8;\n                      ptr->alg = psVar9;\n                      pvVar12 = (*psVar9->createkey)\n                                          (psVar9,local_13c,public_blob_len,(uchar *)local_140,\n                                           private_blob_len);\n                      ptr->data = pvVar12;\n                      if (pvVar12 != (void *)0x0) {\n                        safefree(local_13c);\n                        smemclr(local_140,private_blob_len);\n                        safefree(local_140);\n                        safefree(pbVar10);\n                        if (errorstr != (char **)0x0) {\n                          *errorstr = (char *)0x0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar11 = "createkey failed";\n                      safefree(ptr);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = read_body((FILE *)__stream);\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar22 = bVar20;\n                    if (!bVar20) {\n                      bVar22 = true;\nLAB_00055778:\n                      if (bVar6 != 0) goto LAB_00055378;\n                      uVar13 = 0xffffffff;\n                      pcVar11 = psVar9->name;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar3 = *pcVar11;\n                        pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1;\n                      } while (cVar3 != '\0');\n                      uVar13 = ~uVar13;\n                      __n = uVar13 - 1;\n                      uVar14 = 0xffffffff;\n                      pbVar16 = pbVar10;\n                      do {\n                        if (uVar14 == 0) break;\n                        uVar14 = uVar14 - 1;\n                        bVar6 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                      } while (bVar6 != 0);\n                      uVar15 = 0xffffffff;\n                      uVar14 = ~uVar14;\n                      __n_01 = uVar14 - 1;\n                      pcVar11 = pcVar8;\n                      do {\n                        if (uVar15 == 0) break;\n                        uVar15 = uVar15 - 1;\n                        cVar3 = *pcVar11;\n                        pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1;\n                      } while (cVar3 != '\0');\n                      uVar15 = ~uVar15;\n                      __n_00 = uVar15 - 1;\n                      local_124 = uVar15 + uVar14 + uVar13 + public_blob_len + 0x11 +\n                                  private_blob_len;\n                      local_134 = (SHA_CTX *)safemalloc(local_124,1);\n                      local_134->h0 =\n                           __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                           __n * 0x1000000;\n                      memcpy(&local_134->h1,psVar9->name,__n);\n                      puVar1 = (uint *)((int)local_134->data + (uVar13 - 0x19));\n                      *puVar1 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8 |\n                                __n_01 * 0x1000000;\n                      memcpy(puVar1 + 1,pbVar10,__n_01);\n                      puVar1 = (uint *)((int)puVar1 + uVar14 + 3);\n                      *puVar1 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8 |\n                                __n_00 * 0x1000000;\n                      memcpy(puVar1 + 1,pcVar8,__n_00);\n                      iVar7 = public_blob_len;\n                      c = (SHA_CTX *)((int)puVar1 + uVar15 + 3);\n                      *(undefined1 *)&c->h0 = public_blob_len._3_1_;\n                      *(char *)((int)&c->h0 + 1) = (char)((uint)public_blob_len >> 0x10);\n                      *(char *)((int)&c->h0 + 2) = (char)((uint)public_blob_len >> 8);\n                      *(char *)((int)&c->h0 + 3) = (char)public_blob_len;\n                      memcpy(&c->h1,local_13c,public_blob_len);\n                      puVar2 = (undefined1 *)((int)c->data + iVar7 + -0x18);\n                      *puVar2 = private_blob_len._3_1_;\n                      puVar2[1] = (char)((uint)private_blob_len >> 0x10);\n                      puVar2[2] = (char)((uint)private_blob_len >> 8);\n                      puVar2[3] = (char)private_blob_len;\n                      memcpy(puVar2 + 4,local_140,private_blob_len);\n                      bVar21 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((passphrase != (char *)0x0) && (private_blob_len % (int)local_124 == 0)) {\n                      c = (SHA_CTX *)&s;\n                      SHA_Init(c);\n                      SHA_Bytes((SHA_State *)c,&DAT_0007db1c,4);\n                      SHA_Bytes((SHA_State *)c,passphrase,local_14c);\n                      SHA_Final((SHA_State *)c,key);\n                      SHA_Init(c);\n                      SHA_Bytes((SHA_State *)c,&DAT_0007db21,4);\n                      SHA_Bytes((SHA_State *)c,passphrase,local_14c);\n                      SHA_Final((SHA_State *)c,key + 0x14);\n                      aes256_decrypt_pubkey(key,(uchar *)local_140,private_blob_len);\n                      goto LAB_00055778;\n                    }\n                    pcVar11 = "file format error";\n                    ptr = (ssh2_userkey *)0x0;\nLAB_000554a5:\n                    safefree(pcVar8);\n                    safefree(pbVar10);\n                    safefree(local_144);\n                  }\n                  if (local_13c != (uchar *)0x0) {\n                    safefree(local_13c);\n                  }\n                  if (local_140 != (SHA_CTX *)0x0) {\n                    smemclr(local_140,private_blob_len);\n                    safefree(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar10;\n              pbVar18 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar21 = *pbVar16 < *pbVar18;\n                bVar20 = *pbVar16 == *pbVar18;\n                pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n              } while (bVar20);\n              if ((!bVar21 && !bVar20) == bVar21) {\n                local_124 = 1;\n                bVar20 = false;\n                goto LAB_000551a8;\n              }\n            }\n            ptr = (ssh2_userkey *)0x0;\n            fclose(__stream);\n            pcVar11 = "file format error";\n            safefree(pbVar10);\n            goto LAB_00055070;\n          }\n        }\n      }\nLAB_0005510e:\n      pcVar11 = "file format error";\n      ptr = (ssh2_userkey *)0x0;\n      fclose(__stream);\n    }\n  }\nLAB_00055070:\n  if (errorstr != (char **)0x0) {\n    *errorstr = pcVar11;\n  }\nLAB_0005507a:\n  if (iVar4 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return ptr;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" type_identifier (pointer_declarator "* ssh2_load_userkey(Filename *filename,char *passphrase,char **errorstr)" * (function_declarator "ssh2_load_userkey(Filename *filename,char *passphrase,char **errorstr)" identifier (parameter_list "(Filename *filename,char *passphrase,char **errorstr)" ( (parameter_declaration "Filename *filename" type_identifier (pointer_declarator "*filename" * identifier)) , (parameter_declaration "char *passphrase" primitive_type (pointer_declarator "*passphrase" * identifier)) , (parameter_declaration "char **errorstr" primitive_type (pointer_declarator "**errorstr" * (pointer_declarator "*errorstr" * identifier))) )))) (compound_statement "{\n  uint __n;\n  uint __n_00;\n  uint *puVar1;\n  undefined1 *puVar2;\n  char cVar3;\n  int iVar4;\n  int iVar5;\n  byte bVar6;\n  FILE *__stream;\n  int iVar7;\n  char *pcVar8;\n  size_t namelen;\n  ssh_signkey *psVar9;\n  byte *pbVar10;\n  char *pcVar11;\n  SHA_CTX *c;\n  void *pvVar12;\n  uint uVar13;\n  uint uVar14;\n  uint uVar15;\n  ssh2_userkey *ptr;\n  byte *pbVar16;\n  uchar *puVar17;\n  SHA_CTX *c_00;\n  byte *pbVar18;\n  uchar *puVar19;\n  uint __n_01;\n  int in_GS_OFFSET;\n  bool bVar20;\n  bool bVar21;\n  bool bVar22;\n  byte bVar23;\n  size_t sVar24;\n  size_t local_14c;\n  char *local_144;\n  SHA_CTX *local_140;\n  uchar *local_13c;\n  SHA_CTX *local_134;\n  size_t local_124;\n  int public_blob_len;\n  int private_blob_len;\n  SHA_State s;\n  uchar binary [20];\n  uchar mackey [20];\n  char header [40];\n  uchar key [40];\n  \n  bVar23 = 0;\n  iVar4 = *(int *)(in_GS_OFFSET + 0x14);\n  local_14c = 0;\n  if (passphrase != (char *)0x0) {\n    local_14c = strlen(passphrase);\n  }\n  __stream = (FILE *)f_open(filename,"rb",0);\n  if (__stream == (FILE *)0x0) {\n    pcVar11 = "can\'t open file";\n    ptr = (ssh2_userkey *)0x0;\n  }\n  else {\n    iVar7 = read_header((FILE *)__stream,header);\n    bVar20 = false;\n    bVar22 = iVar7 == 0;\n    if (bVar22) {\n      pcVar11 = (char *)0x0;\n      ptr = (ssh2_userkey *)0x0;\n      fclose(__stream);\n    }\n    else {\n      iVar7 = 0x16;\n      pbVar10 = (byte *)header;\n      pbVar16 = (byte *)"PuTTY-User-Key-File-2";\n      do {\n        if (iVar7 == 0) break;\n        iVar7 = iVar7 + -1;\n        bVar20 = *pbVar10 < *pbVar16;\n        bVar22 = *pbVar10 == *pbVar16;\n        pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1;\n        pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n      } while (bVar22);\n      bVar6 = (!bVar20 && !bVar22) - bVar20;\n      bVar20 = false;\n      bVar22 = bVar6 == 0;\n      if (!bVar22) {\n        iVar7 = 0x16;\n        pbVar10 = (byte *)header;\n        pbVar16 = (byte *)"PuTTY-User-Key-File-1";\n        do {\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar20 = *pbVar10 < *pbVar16;\n          bVar22 = *pbVar10 == *pbVar16;\n          pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n        } while (bVar22);\n        bVar21 = false;\n        bVar20 = (!bVar20 && !bVar22) == bVar20;\n        if (!bVar20) {\n          iVar7 = 0x14;\n          pbVar10 = (byte *)header;\n          pbVar16 = (byte *)"PuTTY-User-Key-File-";\n          do {\n            if (iVar7 == 0) break;\n            iVar7 = iVar7 + -1;\n            bVar21 = *pbVar10 < *pbVar16;\n            bVar20 = *pbVar10 == *pbVar16;\n            pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1;\n            pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n          } while (bVar20);\n          if ((!bVar21 && !bVar20) == bVar21) {\n            pcVar11 = "PuTTY key format too new";\n            ptr = (ssh2_userkey *)0x0;\n            fclose(__stream);\n          }\n          else {\n            pcVar11 = "not a PuTTY SSH-2 private key";\n            ptr = (ssh2_userkey *)0x0;\n            fclose(__stream);\n          }\n          goto LAB_00055070;\n        }\n        old_keyfile_warning();\n        bVar6 = 1;\n      }\n      pcVar8 = read_body((FILE *)__stream);\n      if (pcVar8 == (char *)0x0) goto LAB_0005510e;\n      namelen = strlen(pcVar8);\n      psVar9 = find_pubkey_alg_len(namelen,pcVar8);\n      if (psVar9 == (ssh_signkey *)0x0) {\n        pcVar11 = "file format error";\n        safefree(pcVar8);\n        ptr = (ssh2_userkey *)0x0;\n        fclose(__stream);\n        goto LAB_00055070;\n      }\n      safefree(pcVar8);\n      iVar7 = read_header((FILE *)__stream,header);\n      bVar20 = false;\n      bVar22 = iVar7 == 0;\n      if (!bVar22) {\n        iVar7 = 0xb;\n        pbVar10 = (byte *)header;\n        pbVar16 = (byte *)"Encryption";\n        do {\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar20 = *pbVar10 < *pbVar16;\n          bVar22 = *pbVar10 == *pbVar16;\n          pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n        } while (bVar22);\n        if ((!bVar20 && !bVar22) == bVar20) {\n          pbVar10 = (byte *)read_body((FILE *)__stream);\n          bVar20 = false;\n          bVar22 = pbVar10 == (byte *)0x0;\n          if (!bVar22) {\n            iVar7 = 0xb;\n            pbVar16 = pbVar10;\n            pbVar18 = (byte *)"aes256-cbc";\n            do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar20 = *pbVar16 < *pbVar18;\n              bVar22 = *pbVar16 == *pbVar18;\n              pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n              pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n            } while (bVar22);\n            bVar21 = false;\n            bVar20 = (!bVar20 && !bVar22) == bVar20;\n            if (bVar20) {\n              local_124 = 0x10;\n              bVar20 = true;\nLAB_000551a8:\n              iVar7 = read_header((FILE *)__stream,header);\n              bVar22 = false;\n              bVar21 = iVar7 == 0;\n              if (!bVar21) {\n                iVar7 = 8;\n                pbVar16 = (byte *)header;\n                pbVar18 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar22 = *pbVar16 < *pbVar18;\n                  bVar21 = *pbVar16 == *pbVar18;\n                  pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                  pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n                } while (bVar21);\n                if ((!bVar22 && !bVar21) == bVar22) {\n                  pcVar8 = read_body((FILE *)__stream);\n                  if (pcVar8 == (char *)0x0) {\n                    pcVar11 = "file format error";\n                    ptr = (ssh2_userkey *)0x0;\n                    fclose(__stream);\n                    safefree(pbVar10);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = read_header((FILE *)__stream,header);\n                  bVar22 = false;\n                  bVar21 = iVar7 == 0;\n                  if (bVar21) {\nLAB_000555ad:\n                    local_140 = (SHA_CTX *)0x0;\n                    local_13c = (uchar *)0x0;\nLAB_0005553d:\n                    pcVar11 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    ptr = (ssh2_userkey *)0x0;\n                    safefree(pcVar8);\n                    safefree(pbVar10);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = (byte *)header;\n                    pbVar18 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar22 = *pbVar16 < *pbVar18;\n                      bVar21 = *pbVar16 == *pbVar18;\n                      pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                      pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n                    } while (bVar21);\n                    if ((!bVar22 && !bVar21) != bVar22) goto LAB_000555ad;\n                    pcVar11 = read_body((FILE *)__stream);\n                    if (pcVar11 == (char *)0x0) goto LAB_000555ad;\n                    iVar7 = userkey_parse_line_counter(pcVar11);\n                    safefree(pcVar11);\n                    if (iVar7 < 0) goto LAB_000555ad;\n                    local_13c = read_blob((FILE *)__stream,iVar7,&public_blob_len);\n                    if (local_13c == (uchar *)0x0) goto LAB_000555ad;\n                    iVar7 = read_header((FILE *)__stream,header);\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (SHA_CTX *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    iVar7 = strcmp(header,"Private-Lines");\n                    local_140 = (SHA_CTX *)0x0;\n                    if (iVar7 != 0) goto LAB_0005553d;\n                    c = (SHA_CTX *)read_body((FILE *)__stream);\n                    local_140 = c;\n                    if (c == (SHA_CTX *)0x0) goto LAB_0005553d;\n                    iVar7 = userkey_parse_line_counter((char *)c);\n                    safefree(c);\n                    if (iVar7 < 0) goto LAB_00055535;\n                    local_140 = (SHA_CTX *)read_blob((FILE *)__stream,iVar7,&private_blob_len);\n                    if (local_140 == (SHA_CTX *)0x0) goto LAB_0005553d;\n                    iVar7 = read_header((FILE *)__stream,header);\n                    if (iVar7 == 0) goto LAB_0005553d;\n                    iVar7 = strcmp(header,"Private-MAC");\n                    if (iVar7 != 0) {\n                      iVar7 = strcmp(header,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar6 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = read_body((FILE *)__stream);\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar22 = false;\n                      fclose(__stream);\n                      if (bVar20) goto LAB_000556cb;\nLAB_00055378:\n                      bVar21 = false;\n                      local_124 = private_blob_len;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar22) {\n                        puVar17 = (uchar *)"putty-private-key-file-mac-key";\n                        puVar19 = key;\n                        for (iVar7 = 0x1f; iVar7 != 0; iVar7 = iVar7 + -1) {\n                          *puVar19 = *puVar17;\n                          puVar17 = puVar17 + (uint)bVar23 * -2 + 1;\n                          puVar19 = puVar19 + (uint)bVar23 * -2 + 1;\n                        }\n                        c_00 = (SHA_CTX *)&s;\n                        SHA_Init(c_00);\n                        SHA_Bytes((SHA_State *)c_00,key,0x1e);\n                        if ((passphrase != (char *)0x0) && (bVar20)) {\n                          SHA_Bytes((SHA_State *)c_00,passphrase,local_14c);\n                        }\n                        c = (SHA_CTX *)passphrase;\n                        SHA_Final((SHA_State *)c_00,mackey);\n                        hmac_sha1_simple(mackey,0x14,local_134,local_124,binary);\n                        smemclr(mackey,0x14);\n                        sVar24 = 0x60;\n                        smemclr(c_00,0x60);\n                      }\n                      else {\n                        passphrase = (char *)binary;\n                        sVar24 = local_124;\n                        SHA_Simple(local_134,local_124,(uchar *)passphrase);\n                        c_00 = (SHA_CTX *)0x0;\n                      }\n                      if (bVar21) {\n                        c = c_00;\n                        smemclr(local_134,local_124);\n                        safefree(local_134);\n                        sVar24 = local_124;\n                        passphrase = (char *)c_00;\n                      }\n                      iVar7 = 0;\n                      do {\n                        puVar17 = binary + iVar7;\n                        iVar5 = iVar7 * 2;\n                        iVar7 = iVar7 + 1;\n                        __sprintf_chk(key + iVar5,1,0xffffffff,&DAT_0007dc2b,*puVar17,sVar24,\n                                      passphrase,c);\n                      } while (iVar7 != 0x14);\n                      iVar7 = strcmp(local_144,(char *)key);\n                      if (iVar7 != 0) {\n                        if (bVar20) {\n                          pcVar11 = "wrong passphrase";\n                          ptr = &ssh2_wrong_passphrase;\n                        }\n                        else {\n                          pcVar11 = "MAC failed";\n                          ptr = (ssh2_userkey *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      safefree(local_144);\n                      ptr = (ssh2_userkey *)safemalloc(1,0xc);\n                      ptr->comment = pcVar8;\n                      ptr->alg = psVar9;\n                      pvVar12 = (*psVar9->createkey)\n                                          (psVar9,local_13c,public_blob_len,(uchar *)local_140,\n                                           private_blob_len);\n                      ptr->data = pvVar12;\n                      if (pvVar12 != (void *)0x0) {\n                        safefree(local_13c);\n                        smemclr(local_140,private_blob_len);\n                        safefree(local_140);\n                        safefree(pbVar10);\n                        if (errorstr != (char **)0x0) {\n                          *errorstr = (char *)0x0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar11 = "createkey failed";\n                      safefree(ptr);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = read_body((FILE *)__stream);\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar22 = bVar20;\n                    if (!bVar20) {\n                      bVar22 = true;\nLAB_00055778:\n                      if (bVar6 != 0) goto LAB_00055378;\n                      uVar13 = 0xffffffff;\n                      pcVar11 = psVar9->name;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar3 = *pcVar11;\n                        pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1;\n                      } while (cVar3 != '\0');\n                      uVar13 = ~uVar13;\n                      __n = uVar13 - 1;\n                      uVar14 = 0xffffffff;\n                      pbVar16 = pbVar10;\n                      do {\n                        if (uVar14 == 0) break;\n                        uVar14 = uVar14 - 1;\n                        bVar6 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                      } while (bVar6 != 0);\n                      uVar15 = 0xffffffff;\n                      uVar14 = ~uVar14;\n                      __n_01 = uVar14 - 1;\n                      pcVar11 = pcVar8;\n                      do {\n                        if (uVar15 == 0) break;\n                        uVar15 = uVar15 - 1;\n                        cVar3 = *pcVar11;\n                        pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1;\n                      } while (cVar3 != '\0');\n                      uVar15 = ~uVar15;\n                      __n_00 = uVar15 - 1;\n                      local_124 = uVar15 + uVar14 + uVar13 + public_blob_len + 0x11 +\n                                  private_blob_len;\n                      local_134 = (SHA_CTX *)safemalloc(local_124,1);\n                      local_134->h0 =\n                           __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                           __n * 0x1000000;\n                      memcpy(&local_134->h1,psVar9->name,__n);\n                      puVar1 = (uint *)((int)local_134->data + (uVar13 - 0x19));\n                      *puVar1 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8 |\n                                __n_01 * 0x1000000;\n                      memcpy(puVar1 + 1,pbVar10,__n_01);\n                      puVar1 = (uint *)((int)puVar1 + uVar14 + 3);\n                      *puVar1 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8 |\n                                __n_00 * 0x1000000;\n                      memcpy(puVar1 + 1,pcVar8,__n_00);\n                      iVar7 = public_blob_len;\n                      c = (SHA_CTX *)((int)puVar1 + uVar15 + 3);\n                      *(undefined1 *)&c->h0 = public_blob_len._3_1_;\n                      *(char *)((int)&c->h0 + 1) = (char)((uint)public_blob_len >> 0x10);\n                      *(char *)((int)&c->h0 + 2) = (char)((uint)public_blob_len >> 8);\n                      *(char *)((int)&c->h0 + 3) = (char)public_blob_len;\n                      memcpy(&c->h1,local_13c,public_blob_len);\n                      puVar2 = (undefined1 *)((int)c->data + iVar7 + -0x18);\n                      *puVar2 = private_blob_len._3_1_;\n                      puVar2[1] = (char)((uint)private_blob_len >> 0x10);\n                      puVar2[2] = (char)((uint)private_blob_len >> 8);\n                      puVar2[3] = (char)private_blob_len;\n                      memcpy(puVar2 + 4,local_140,private_blob_len);\n                      bVar21 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((passphrase != (char *)0x0) && (private_blob_len % (int)local_124 == 0)) {\n                      c = (SHA_CTX *)&s;\n                      SHA_Init(c);\n                      SHA_Bytes((SHA_State *)c,&DAT_0007db1c,4);\n                      SHA_Bytes((SHA_State *)c,passphrase,local_14c);\n                      SHA_Final((SHA_State *)c,key);\n                      SHA_Init(c);\n                      SHA_Bytes((SHA_State *)c,&DAT_0007db21,4);\n                      SHA_Bytes((SHA_State *)c,passphrase,local_14c);\n                      SHA_Final((SHA_State *)c,key + 0x14);\n                      aes256_decrypt_pubkey(key,(uchar *)local_140,private_blob_len);\n                      goto LAB_00055778;\n                    }\n                    pcVar11 = "file format error";\n                    ptr = (ssh2_userkey *)0x0;\nLAB_000554a5:\n                    safefree(pcVar8);\n                    safefree(pbVar10);\n                    safefree(local_144);\n                  }\n                  if (local_13c != (uchar *)0x0) {\n                    safefree(local_13c);\n                  }\n                  if (local_140 != (SHA_CTX *)0x0) {\n                    smemclr(local_140,private_blob_len);\n                    safefree(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar10;\n              pbVar18 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar21 = *pbVar16 < *pbVar18;\n                bVar20 = *pbVar16 == *pbVar18;\n                pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n              } while (bVar20);\n              if ((!bVar21 && !bVar20) == bVar21) {\n                local_124 = 1;\n                bVar20 = false;\n                goto LAB_000551a8;\n              }\n            }\n            ptr = (ssh2_userkey *)0x0;\n            fclose(__stream);\n            pcVar11 = "file format error";\n            safefree(pbVar10);\n            goto LAB_00055070;\n          }\n        }\n      }\nLAB_0005510e:\n      pcVar11 = "file format error";\n      ptr = (ssh2_userkey *)0x0;\n      fclose(__stream);\n    }\n  }\nLAB_00055070:\n  if (errorstr != (char **)0x0) {\n    *errorstr = pcVar11;\n  }\nLAB_0005507a:\n  if (iVar4 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return ptr;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "uint __n;" type_identifier identifier ;) (declaration "uint __n_00;" type_identifier identifier ;) (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined1 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "char cVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "byte bVar6;" type_identifier identifier ;) (declaration "FILE *__stream;" type_identifier (pointer_declarator "*__stream" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "char *pcVar8;" primitive_type (pointer_declarator "*pcVar8" * identifier) ;) (declaration "size_t namelen;" primitive_type identifier ;) (declaration "ssh_signkey *psVar9;" type_identifier (pointer_declarator "*psVar9" * identifier) ;) (declaration "byte *pbVar10;" type_identifier (pointer_declarator "*pbVar10" * identifier) ;) (declaration "char *pcVar11;" primitive_type (pointer_declarator "*pcVar11" * identifier) ;) (declaration "SHA_CTX *c;" type_identifier (pointer_declarator "*c" * identifier) ;) (declaration "void *pvVar12;" primitive_type (pointer_declarator "*pvVar12" * identifier) ;) (declaration "uint uVar13;" type_identifier identifier ;) (declaration "uint uVar14;" type_identifier identifier ;) (declaration "uint uVar15;" type_identifier identifier ;) (declaration "ssh2_userkey *ptr;" type_identifier (pointer_declarator "*ptr" * identifier) ;) (declaration "byte *pbVar16;" type_identifier (pointer_declarator "*pbVar16" * identifier) ;) (declaration "uchar *puVar17;" type_identifier (pointer_declarator "*puVar17" * identifier) ;) (declaration "SHA_CTX *c_00;" type_identifier (pointer_declarator "*c_00" * identifier) ;) (declaration "byte *pbVar18;" type_identifier (pointer_declarator "*pbVar18" * identifier) ;) (declaration "uchar *puVar19;" type_identifier (pointer_declarator "*puVar19" * identifier) ;) (declaration "uint __n_01;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "bool bVar20;" primitive_type identifier ;) (declaration "bool bVar21;" primitive_type identifier ;) (declaration "bool bVar22;" primitive_type identifier ;) (declaration "byte bVar23;" type_identifier identifier ;) (declaration "size_t sVar24;" primitive_type identifier ;) (declaration "size_t local_14c;" primitive_type identifier ;) (declaration "char *local_144;" primitive_type (pointer_declarator "*local_144" * identifier) ;) (declaration "SHA_CTX *local_140;" type_identifier (pointer_declarator "*local_140" * identifier) ;) (declaration "uchar *local_13c;" type_identifier (pointer_declarator "*local_13c" * identifier) ;) (declaration "SHA_CTX *local_134;" type_identifier (pointer_declarator "*local_134" * identifier) ;) (declaration "size_t local_124;" primitive_type identifier ;) (declaration "int public_blob_len;" primitive_type identifier ;) (declaration "int private_blob_len;" primitive_type identifier ;) (declaration "SHA_State s;" type_identifier identifier ;) (declaration "uchar binary [20];" type_identifier (array_declarator "binary [20]" identifier [ number_literal ]) ;) (declaration "uchar mackey [20];" type_identifier (array_declarator "mackey [20]" identifier [ number_literal ]) ;) (declaration "char header [40];" primitive_type (array_declarator "header [40]" identifier [ number_literal ]) ;) (declaration "uchar key [40];" type_identifier (array_declarator "key [40]" identifier [ number_literal ]) ;) (expression_statement "bVar23 = 0;" (assignment_expression "bVar23 = 0" identifier = number_literal) ;) (expression_statement "iVar4 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar4 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "local_14c = 0;" (assignment_expression "local_14c = 0" identifier = number_literal) ;) (if_statement "if (passphrase != (char *)0x0) {\n    local_14c = strlen(passphrase);\n  }" if (parenthesized_expression "(passphrase != (char *)0x0)" ( (binary_expression "passphrase != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    local_14c = strlen(passphrase);\n  }" { (expression_statement "local_14c = strlen(passphrase);" (assignment_expression "local_14c = strlen(passphrase)" identifier = (call_expression "strlen(passphrase)" identifier (argument_list "(passphrase)" ( identifier )))) ;) })) (expression_statement "__stream = (FILE *)f_open(filename,"rb",0);" (assignment_expression "__stream = (FILE *)f_open(filename,"rb",0)" identifier = (cast_expression "(FILE *)f_open(filename,"rb",0)" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "f_open(filename,"rb",0)" identifier (argument_list "(filename,"rb",0)" ( identifier , (string_literal ""rb"" " string_content ") , number_literal ))))) ;) (if_statement "if (__stream == (FILE *)0x0) {\n    pcVar11 = "can\'t open file";\n    ptr = (ssh2_userkey *)0x0;\n  }\n  else {\n    iVar7 = read_header((FILE *)__stream,header);\n    bVar20 = false;\n    bVar22 = iVar7 == 0;\n    if (bVar22) {\n      pcVar11 = (char *)0x0;\n      ptr = (ssh2_userkey *)0x0;\n      fclose(__stream);\n    }\n    else {\n      iVar7 = 0x16;\n      pbVar10 = (byte *)header;\n      pbVar16 = (byte *)"PuTTY-User-Key-File-2";\n      do {\n        if (iVar7 == 0) break;\n        iVar7 = iVar7 + -1;\n        bVar20 = *pbVar10 < *pbVar16;\n        bVar22 = *pbVar10 == *pbVar16;\n        pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1;\n        pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n      } while (bVar22);\n      bVar6 = (!bVar20 && !bVar22) - bVar20;\n      bVar20 = false;\n      bVar22 = bVar6 == 0;\n      if (!bVar22) {\n        iVar7 = 0x16;\n        pbVar10 = (byte *)header;\n        pbVar16 = (byte *)"PuTTY-User-Key-File-1";\n        do {\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar20 = *pbVar10 < *pbVar16;\n          bVar22 = *pbVar10 == *pbVar16;\n          pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n        } while (bVar22);\n        bVar21 = false;\n        bVar20 = (!bVar20 && !bVar22) == bVar20;\n        if (!bVar20) {\n          iVar7 = 0x14;\n          pbVar10 = (byte *)header;\n          pbVar16 = (byte *)"PuTTY-User-Key-File-";\n          do {\n            if (iVar7 == 0) break;\n            iVar7 = iVar7 + -1;\n            bVar21 = *pbVar10 < *pbVar16;\n            bVar20 = *pbVar10 == *pbVar16;\n            pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1;\n            pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n          } while (bVar20);\n          if ((!bVar21 && !bVar20) == bVar21) {\n            pcVar11 = "PuTTY key format too new";\n            ptr = (ssh2_userkey *)0x0;\n            fclose(__stream);\n          }\n          else {\n            pcVar11 = "not a PuTTY SSH-2 private key";\n            ptr = (ssh2_userkey *)0x0;\n            fclose(__stream);\n          }\n          goto LAB_00055070;\n        }\n        old_keyfile_warning();\n        bVar6 = 1;\n      }\n      pcVar8 = read_body((FILE *)__stream);\n      if (pcVar8 == (char *)0x0) goto LAB_0005510e;\n      namelen = strlen(pcVar8);\n      psVar9 = find_pubkey_alg_len(namelen,pcVar8);\n      if (psVar9 == (ssh_signkey *)0x0) {\n        pcVar11 = "file format error";\n        safefree(pcVar8);\n        ptr = (ssh2_userkey *)0x0;\n        fclose(__stream);\n        goto LAB_00055070;\n      }\n      safefree(pcVar8);\n      iVar7 = read_header((FILE *)__stream,header);\n      bVar20 = false;\n      bVar22 = iVar7 == 0;\n      if (!bVar22) {\n        iVar7 = 0xb;\n        pbVar10 = (byte *)header;\n        pbVar16 = (byte *)"Encryption";\n        do {\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar20 = *pbVar10 < *pbVar16;\n          bVar22 = *pbVar10 == *pbVar16;\n          pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n        } while (bVar22);\n        if ((!bVar20 && !bVar22) == bVar20) {\n          pbVar10 = (byte *)read_body((FILE *)__stream);\n          bVar20 = false;\n          bVar22 = pbVar10 == (byte *)0x0;\n          if (!bVar22) {\n            iVar7 = 0xb;\n            pbVar16 = pbVar10;\n            pbVar18 = (byte *)"aes256-cbc";\n            do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar20 = *pbVar16 < *pbVar18;\n              bVar22 = *pbVar16 == *pbVar18;\n              pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n              pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n            } while (bVar22);\n            bVar21 = false;\n            bVar20 = (!bVar20 && !bVar22) == bVar20;\n            if (bVar20) {\n              local_124 = 0x10;\n              bVar20 = true;\nLAB_000551a8:\n              iVar7 = read_header((FILE *)__stream,header);\n              bVar22 = false;\n              bVar21 = iVar7 == 0;\n              if (!bVar21) {\n                iVar7 = 8;\n                pbVar16 = (byte *)header;\n                pbVar18 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar22 = *pbVar16 < *pbVar18;\n                  bVar21 = *pbVar16 == *pbVar18;\n                  pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                  pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n                } while (bVar21);\n                if ((!bVar22 && !bVar21) == bVar22) {\n                  pcVar8 = read_body((FILE *)__stream);\n                  if (pcVar8 == (char *)0x0) {\n                    pcVar11 = "file format error";\n                    ptr = (ssh2_userkey *)0x0;\n                    fclose(__stream);\n                    safefree(pbVar10);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = read_header((FILE *)__stream,header);\n                  bVar22 = false;\n                  bVar21 = iVar7 == 0;\n                  if (bVar21) {\nLAB_000555ad:\n                    local_140 = (SHA_CTX *)0x0;\n                    local_13c = (uchar *)0x0;\nLAB_0005553d:\n                    pcVar11 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    ptr = (ssh2_userkey *)0x0;\n                    safefree(pcVar8);\n                    safefree(pbVar10);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = (byte *)header;\n                    pbVar18 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar22 = *pbVar16 < *pbVar18;\n                      bVar21 = *pbVar16 == *pbVar18;\n                      pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                      pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n                    } while (bVar21);\n                    if ((!bVar22 && !bVar21) != bVar22) goto LAB_000555ad;\n                    pcVar11 = read_body((FILE *)__stream);\n                    if (pcVar11 == (char *)0x0) goto LAB_000555ad;\n                    iVar7 = userkey_parse_line_counter(pcVar11);\n                    safefree(pcVar11);\n                    if (iVar7 < 0) goto LAB_000555ad;\n                    local_13c = read_blob((FILE *)__stream,iVar7,&public_blob_len);\n                    if (local_13c == (uchar *)0x0) goto LAB_000555ad;\n                    iVar7 = read_header((FILE *)__stream,header);\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (SHA_CTX *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    iVar7 = strcmp(header,"Private-Lines");\n                    local_140 = (SHA_CTX *)0x0;\n                    if (iVar7 != 0) goto LAB_0005553d;\n                    c = (SHA_CTX *)read_body((FILE *)__stream);\n                    local_140 = c;\n                    if (c == (SHA_CTX *)0x0) goto LAB_0005553d;\n                    iVar7 = userkey_parse_line_counter((char *)c);\n                    safefree(c);\n                    if (iVar7 < 0) goto LAB_00055535;\n                    local_140 = (SHA_CTX *)read_blob((FILE *)__stream,iVar7,&private_blob_len);\n                    if (local_140 == (SHA_CTX *)0x0) goto LAB_0005553d;\n                    iVar7 = read_header((FILE *)__stream,header);\n                    if (iVar7 == 0) goto LAB_0005553d;\n                    iVar7 = strcmp(header,"Private-MAC");\n                    if (iVar7 != 0) {\n                      iVar7 = strcmp(header,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar6 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = read_body((FILE *)__stream);\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar22 = false;\n                      fclose(__stream);\n                      if (bVar20) goto LAB_000556cb;\nLAB_00055378:\n                      bVar21 = false;\n                      local_124 = private_blob_len;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar22) {\n                        puVar17 = (uchar *)"putty-private-key-file-mac-key";\n                        puVar19 = key;\n                        for (iVar7 = 0x1f; iVar7 != 0; iVar7 = iVar7 + -1) {\n                          *puVar19 = *puVar17;\n                          puVar17 = puVar17 + (uint)bVar23 * -2 + 1;\n                          puVar19 = puVar19 + (uint)bVar23 * -2 + 1;\n                        }\n                        c_00 = (SHA_CTX *)&s;\n                        SHA_Init(c_00);\n                        SHA_Bytes((SHA_State *)c_00,key,0x1e);\n                        if ((passphrase != (char *)0x0) && (bVar20)) {\n                          SHA_Bytes((SHA_State *)c_00,passphrase,local_14c);\n                        }\n                        c = (SHA_CTX *)passphrase;\n                        SHA_Final((SHA_State *)c_00,mackey);\n                        hmac_sha1_simple(mackey,0x14,local_134,local_124,binary);\n                        smemclr(mackey,0x14);\n                        sVar24 = 0x60;\n                        smemclr(c_00,0x60);\n                      }\n                      else {\n                        passphrase = (char *)binary;\n                        sVar24 = local_124;\n                        SHA_Simple(local_134,local_124,(uchar *)passphrase);\n                        c_00 = (SHA_CTX *)0x0;\n                      }\n                      if (bVar21) {\n                        c = c_00;\n                        smemclr(local_134,local_124);\n                        safefree(local_134);\n                        sVar24 = local_124;\n                        passphrase = (char *)c_00;\n                      }\n                      iVar7 = 0;\n                      do {\n                        puVar17 = binary + iVar7;\n                        iVar5 = iVar7 * 2;\n                        iVar7 = iVar7 + 1;\n                        __sprintf_chk(key + iVar5,1,0xffffffff,&DAT_0007dc2b,*puVar17,sVar24,\n                                      passphrase,c);\n                      } while (iVar7 != 0x14);\n                      iVar7 = strcmp(local_144,(char *)key);\n                      if (iVar7 != 0) {\n                        if (bVar20) {\n                          pcVar11 = "wrong passphrase";\n                          ptr = &ssh2_wrong_passphrase;\n                        }\n                        else {\n                          pcVar11 = "MAC failed";\n                          ptr = (ssh2_userkey *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      safefree(local_144);\n                      ptr = (ssh2_userkey *)safemalloc(1,0xc);\n                      ptr->comment = pcVar8;\n                      ptr->alg = psVar9;\n                      pvVar12 = (*psVar9->createkey)\n                                          (psVar9,local_13c,public_blob_len,(uchar *)local_140,\n                                           private_blob_len);\n                      ptr->data = pvVar12;\n                      if (pvVar12 != (void *)0x0) {\n                        safefree(local_13c);\n                        smemclr(local_140,private_blob_len);\n                        safefree(local_140);\n                        safefree(pbVar10);\n                        if (errorstr != (char **)0x0) {\n                          *errorstr = (char *)0x0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar11 = "createkey failed";\n                      safefree(ptr);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = read_body((FILE *)__stream);\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar22 = bVar20;\n                    if (!bVar20) {\n                      bVar22 = true;\nLAB_00055778:\n                      if (bVar6 != 0) goto LAB_00055378;\n                      uVar13 = 0xffffffff;\n                      pcVar11 = psVar9->name;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar3 = *pcVar11;\n                        pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1;\n                      } while (cVar3 != '\0');\n                      uVar13 = ~uVar13;\n                      __n = uVar13 - 1;\n                      uVar14 = 0xffffffff;\n                      pbVar16 = pbVar10;\n                      do {\n                        if (uVar14 == 0) break;\n                        uVar14 = uVar14 - 1;\n                        bVar6 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                      } while (bVar6 != 0);\n                      uVar15 = 0xffffffff;\n                      uVar14 = ~uVar14;\n                      __n_01 = uVar14 - 1;\n                      pcVar11 = pcVar8;\n                      do {\n                        if (uVar15 == 0) break;\n                        uVar15 = uVar15 - 1;\n                        cVar3 = *pcVar11;\n                        pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1;\n                      } while (cVar3 != '\0');\n                      uVar15 = ~uVar15;\n                      __n_00 = uVar15 - 1;\n                      local_124 = uVar15 + uVar14 + uVar13 + public_blob_len + 0x11 +\n                                  private_blob_len;\n                      local_134 = (SHA_CTX *)safemalloc(local_124,1);\n                      local_134->h0 =\n                           __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                           __n * 0x1000000;\n                      memcpy(&local_134->h1,psVar9->name,__n);\n                      puVar1 = (uint *)((int)local_134->data + (uVar13 - 0x19));\n                      *puVar1 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8 |\n                                __n_01 * 0x1000000;\n                      memcpy(puVar1 + 1,pbVar10,__n_01);\n                      puVar1 = (uint *)((int)puVar1 + uVar14 + 3);\n                      *puVar1 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8 |\n                                __n_00 * 0x1000000;\n                      memcpy(puVar1 + 1,pcVar8,__n_00);\n                      iVar7 = public_blob_len;\n                      c = (SHA_CTX *)((int)puVar1 + uVar15 + 3);\n                      *(undefined1 *)&c->h0 = public_blob_len._3_1_;\n                      *(char *)((int)&c->h0 + 1) = (char)((uint)public_blob_len >> 0x10);\n                      *(char *)((int)&c->h0 + 2) = (char)((uint)public_blob_len >> 8);\n                      *(char *)((int)&c->h0 + 3) = (char)public_blob_len;\n                      memcpy(&c->h1,local_13c,public_blob_len);\n                      puVar2 = (undefined1 *)((int)c->data + iVar7 + -0x18);\n                      *puVar2 = private_blob_len._3_1_;\n                      puVar2[1] = (char)((uint)private_blob_len >> 0x10);\n                      puVar2[2] = (char)((uint)private_blob_len >> 8);\n                      puVar2[3] = (char)private_blob_len;\n                      memcpy(puVar2 + 4,local_140,private_blob_len);\n                      bVar21 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((passphrase != (char *)0x0) && (private_blob_len % (int)local_124 == 0)) {\n                      c = (SHA_CTX *)&s;\n                      SHA_Init(c);\n                      SHA_Bytes((SHA_State *)c,&DAT_0007db1c,4);\n                      SHA_Bytes((SHA_State *)c,passphrase,local_14c);\n                      SHA_Final((SHA_State *)c,key);\n                      SHA_Init(c);\n                      SHA_Bytes((SHA_State *)c,&DAT_0007db21,4);\n                      SHA_Bytes((SHA_State *)c,passphrase,local_14c);\n                      SHA_Final((SHA_State *)c,key + 0x14);\n                      aes256_decrypt_pubkey(key,(uchar *)local_140,private_blob_len);\n                      goto LAB_00055778;\n                    }\n                    pcVar11 = "file format error";\n                    ptr = (ssh2_userkey *)0x0;\nLAB_000554a5:\n                    safefree(pcVar8);\n                    safefree(pbVar10);\n                    safefree(local_144);\n                  }\n                  if (local_13c != (uchar *)0x0) {\n                    safefree(local_13c);\n                  }\n                  if (local_140 != (SHA_CTX *)0x0) {\n                    smemclr(local_140,private_blob_len);\n                    safefree(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar10;\n              pbVar18 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar21 = *pbVar16 < *pbVar18;\n                bVar20 = *pbVar16 == *pbVar18;\n                pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n              } while (bVar20);\n              if ((!bVar21 && !bVar20) == bVar21) {\n                local_124 = 1;\n                bVar20 = false;\n                goto LAB_000551a8;\n              }\n            }\n            ptr = (ssh2_userkey *)0x0;\n            fclose(__stream);\n            pcVar11 = "file format error";\n            safefree(pbVar10);\n            goto LAB_00055070;\n          }\n        }\n      }\nLAB_0005510e:\n      pcVar11 = "file format error";\n      ptr = (ssh2_userkey *)0x0;\n      fclose(__stream);\n    }\n  }" if (parenthesized_expression "(__stream == (FILE *)0x0)" ( (binary_expression "__stream == (FILE *)0x0" identifier == (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar11 = "can\'t open file";\n    ptr = (ssh2_userkey *)0x0;\n  }" { (expression_statement "pcVar11 = "can\'t open file";" (assignment_expression "pcVar11 = "can\'t open file"" identifier = (string_literal ""can\'t open file"" " string_content escape_sequence string_content ")) ;) (expression_statement "ptr = (ssh2_userkey *)0x0;" (assignment_expression "ptr = (ssh2_userkey *)0x0" identifier = (cast_expression "(ssh2_userkey *)0x0" ( (type_descriptor "ssh2_userkey *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    iVar7 = read_header((FILE *)__stream,header);\n    bVar20 = false;\n    bVar22 = iVar7 == 0;\n    if (bVar22) {\n      pcVar11 = (char *)0x0;\n      ptr = (ssh2_userkey *)0x0;\n      fclose(__stream);\n    }\n    else {\n      iVar7 = 0x16;\n      pbVar10 = (byte *)header;\n      pbVar16 = (byte *)"PuTTY-User-Key-File-2";\n      do {\n        if (iVar7 == 0) break;\n        iVar7 = iVar7 + -1;\n        bVar20 = *pbVar10 < *pbVar16;\n        bVar22 = *pbVar10 == *pbVar16;\n        pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1;\n        pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n      } while (bVar22);\n      bVar6 = (!bVar20 && !bVar22) - bVar20;\n      bVar20 = false;\n      bVar22 = bVar6 == 0;\n      if (!bVar22) {\n        iVar7 = 0x16;\n        pbVar10 = (byte *)header;\n        pbVar16 = (byte *)"PuTTY-User-Key-File-1";\n        do {\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar20 = *pbVar10 < *pbVar16;\n          bVar22 = *pbVar10 == *pbVar16;\n          pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n        } while (bVar22);\n        bVar21 = false;\n        bVar20 = (!bVar20 && !bVar22) == bVar20;\n        if (!bVar20) {\n          iVar7 = 0x14;\n          pbVar10 = (byte *)header;\n          pbVar16 = (byte *)"PuTTY-User-Key-File-";\n          do {\n            if (iVar7 == 0) break;\n            iVar7 = iVar7 + -1;\n            bVar21 = *pbVar10 < *pbVar16;\n            bVar20 = *pbVar10 == *pbVar16;\n            pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1;\n            pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n          } while (bVar20);\n          if ((!bVar21 && !bVar20) == bVar21) {\n            pcVar11 = "PuTTY key format too new";\n            ptr = (ssh2_userkey *)0x0;\n            fclose(__stream);\n          }\n          else {\n            pcVar11 = "not a PuTTY SSH-2 private key";\n            ptr = (ssh2_userkey *)0x0;\n            fclose(__stream);\n          }\n          goto LAB_00055070;\n        }\n        old_keyfile_warning();\n        bVar6 = 1;\n      }\n      pcVar8 = read_body((FILE *)__stream);\n      if (pcVar8 == (char *)0x0) goto LAB_0005510e;\n      namelen = strlen(pcVar8);\n      psVar9 = find_pubkey_alg_len(namelen,pcVar8);\n      if (psVar9 == (ssh_signkey *)0x0) {\n        pcVar11 = "file format error";\n        safefree(pcVar8);\n        ptr = (ssh2_userkey *)0x0;\n        fclose(__stream);\n        goto LAB_00055070;\n      }\n      safefree(pcVar8);\n      iVar7 = read_header((FILE *)__stream,header);\n      bVar20 = false;\n      bVar22 = iVar7 == 0;\n      if (!bVar22) {\n        iVar7 = 0xb;\n        pbVar10 = (byte *)header;\n        pbVar16 = (byte *)"Encryption";\n        do {\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar20 = *pbVar10 < *pbVar16;\n          bVar22 = *pbVar10 == *pbVar16;\n          pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n        } while (bVar22);\n        if ((!bVar20 && !bVar22) == bVar20) {\n          pbVar10 = (byte *)read_body((FILE *)__stream);\n          bVar20 = false;\n          bVar22 = pbVar10 == (byte *)0x0;\n          if (!bVar22) {\n            iVar7 = 0xb;\n            pbVar16 = pbVar10;\n            pbVar18 = (byte *)"aes256-cbc";\n            do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar20 = *pbVar16 < *pbVar18;\n              bVar22 = *pbVar16 == *pbVar18;\n              pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n              pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n            } while (bVar22);\n            bVar21 = false;\n            bVar20 = (!bVar20 && !bVar22) == bVar20;\n            if (bVar20) {\n              local_124 = 0x10;\n              bVar20 = true;\nLAB_000551a8:\n              iVar7 = read_header((FILE *)__stream,header);\n              bVar22 = false;\n              bVar21 = iVar7 == 0;\n              if (!bVar21) {\n                iVar7 = 8;\n                pbVar16 = (byte *)header;\n                pbVar18 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar22 = *pbVar16 < *pbVar18;\n                  bVar21 = *pbVar16 == *pbVar18;\n                  pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                  pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n                } while (bVar21);\n                if ((!bVar22 && !bVar21) == bVar22) {\n                  pcVar8 = read_body((FILE *)__stream);\n                  if (pcVar8 == (char *)0x0) {\n                    pcVar11 = "file format error";\n                    ptr = (ssh2_userkey *)0x0;\n                    fclose(__stream);\n                    safefree(pbVar10);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = read_header((FILE *)__stream,header);\n                  bVar22 = false;\n                  bVar21 = iVar7 == 0;\n                  if (bVar21) {\nLAB_000555ad:\n                    local_140 = (SHA_CTX *)0x0;\n                    local_13c = (uchar *)0x0;\nLAB_0005553d:\n                    pcVar11 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    ptr = (ssh2_userkey *)0x0;\n                    safefree(pcVar8);\n                    safefree(pbVar10);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = (byte *)header;\n                    pbVar18 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar22 = *pbVar16 < *pbVar18;\n                      bVar21 = *pbVar16 == *pbVar18;\n                      pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                      pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n                    } while (bVar21);\n                    if ((!bVar22 && !bVar21) != bVar22) goto LAB_000555ad;\n                    pcVar11 = read_body((FILE *)__stream);\n                    if (pcVar11 == (char *)0x0) goto LAB_000555ad;\n                    iVar7 = userkey_parse_line_counter(pcVar11);\n                    safefree(pcVar11);\n                    if (iVar7 < 0) goto LAB_000555ad;\n                    local_13c = read_blob((FILE *)__stream,iVar7,&public_blob_len);\n                    if (local_13c == (uchar *)0x0) goto LAB_000555ad;\n                    iVar7 = read_header((FILE *)__stream,header);\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (SHA_CTX *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    iVar7 = strcmp(header,"Private-Lines");\n                    local_140 = (SHA_CTX *)0x0;\n                    if (iVar7 != 0) goto LAB_0005553d;\n                    c = (SHA_CTX *)read_body((FILE *)__stream);\n                    local_140 = c;\n                    if (c == (SHA_CTX *)0x0) goto LAB_0005553d;\n                    iVar7 = userkey_parse_line_counter((char *)c);\n                    safefree(c);\n                    if (iVar7 < 0) goto LAB_00055535;\n                    local_140 = (SHA_CTX *)read_blob((FILE *)__stream,iVar7,&private_blob_len);\n                    if (local_140 == (SHA_CTX *)0x0) goto LAB_0005553d;\n                    iVar7 = read_header((FILE *)__stream,header);\n                    if (iVar7 == 0) goto LAB_0005553d;\n                    iVar7 = strcmp(header,"Private-MAC");\n                    if (iVar7 != 0) {\n                      iVar7 = strcmp(header,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar6 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = read_body((FILE *)__stream);\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar22 = false;\n                      fclose(__stream);\n                      if (bVar20) goto LAB_000556cb;\nLAB_00055378:\n                      bVar21 = false;\n                      local_124 = private_blob_len;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar22) {\n                        puVar17 = (uchar *)"putty-private-key-file-mac-key";\n                        puVar19 = key;\n                        for (iVar7 = 0x1f; iVar7 != 0; iVar7 = iVar7 + -1) {\n                          *puVar19 = *puVar17;\n                          puVar17 = puVar17 + (uint)bVar23 * -2 + 1;\n                          puVar19 = puVar19 + (uint)bVar23 * -2 + 1;\n                        }\n                        c_00 = (SHA_CTX *)&s;\n                        SHA_Init(c_00);\n                        SHA_Bytes((SHA_State *)c_00,key,0x1e);\n                        if ((passphrase != (char *)0x0) && (bVar20)) {\n                          SHA_Bytes((SHA_State *)c_00,passphrase,local_14c);\n                        }\n                        c = (SHA_CTX *)passphrase;\n                        SHA_Final((SHA_State *)c_00,mackey);\n                        hmac_sha1_simple(mackey,0x14,local_134,local_124,binary);\n                        smemclr(mackey,0x14);\n                        sVar24 = 0x60;\n                        smemclr(c_00,0x60);\n                      }\n                      else {\n                        passphrase = (char *)binary;\n                        sVar24 = local_124;\n                        SHA_Simple(local_134,local_124,(uchar *)passphrase);\n                        c_00 = (SHA_CTX *)0x0;\n                      }\n                      if (bVar21) {\n                        c = c_00;\n                        smemclr(local_134,local_124);\n                        safefree(local_134);\n                        sVar24 = local_124;\n                        passphrase = (char *)c_00;\n                      }\n                      iVar7 = 0;\n                      do {\n                        puVar17 = binary + iVar7;\n                        iVar5 = iVar7 * 2;\n                        iVar7 = iVar7 + 1;\n                        __sprintf_chk(key + iVar5,1,0xffffffff,&DAT_0007dc2b,*puVar17,sVar24,\n                                      passphrase,c);\n                      } while (iVar7 != 0x14);\n                      iVar7 = strcmp(local_144,(char *)key);\n                      if (iVar7 != 0) {\n                        if (bVar20) {\n                          pcVar11 = "wrong passphrase";\n                          ptr = &ssh2_wrong_passphrase;\n                        }\n                        else {\n                          pcVar11 = "MAC failed";\n                          ptr = (ssh2_userkey *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      safefree(local_144);\n                      ptr = (ssh2_userkey *)safemalloc(1,0xc);\n                      ptr->comment = pcVar8;\n                      ptr->alg = psVar9;\n                      pvVar12 = (*psVar9->createkey)\n                                          (psVar9,local_13c,public_blob_len,(uchar *)local_140,\n                                           private_blob_len);\n                      ptr->data = pvVar12;\n                      if (pvVar12 != (void *)0x0) {\n                        safefree(local_13c);\n                        smemclr(local_140,private_blob_len);\n                        safefree(local_140);\n                        safefree(pbVar10);\n                        if (errorstr != (char **)0x0) {\n                          *errorstr = (char *)0x0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar11 = "createkey failed";\n                      safefree(ptr);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = read_body((FILE *)__stream);\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar22 = bVar20;\n                    if (!bVar20) {\n                      bVar22 = true;\nLAB_00055778:\n                      if (bVar6 != 0) goto LAB_00055378;\n                      uVar13 = 0xffffffff;\n                      pcVar11 = psVar9->name;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar3 = *pcVar11;\n                        pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1;\n                      } while (cVar3 != '\0');\n                      uVar13 = ~uVar13;\n                      __n = uVar13 - 1;\n                      uVar14 = 0xffffffff;\n                      pbVar16 = pbVar10;\n                      do {\n                        if (uVar14 == 0) break;\n                        uVar14 = uVar14 - 1;\n                        bVar6 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                      } while (bVar6 != 0);\n                      uVar15 = 0xffffffff;\n                      uVar14 = ~uVar14;\n                      __n_01 = uVar14 - 1;\n                      pcVar11 = pcVar8;\n                      do {\n                        if (uVar15 == 0) break;\n                        uVar15 = uVar15 - 1;\n                        cVar3 = *pcVar11;\n                        pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1;\n                      } while (cVar3 != '\0');\n                      uVar15 = ~uVar15;\n                      __n_00 = uVar15 - 1;\n                      local_124 = uVar15 + uVar14 + uVar13 + public_blob_len + 0x11 +\n                                  private_blob_len;\n                      local_134 = (SHA_CTX *)safemalloc(local_124,1);\n                      local_134->h0 =\n                           __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                           __n * 0x1000000;\n                      memcpy(&local_134->h1,psVar9->name,__n);\n                      puVar1 = (uint *)((int)local_134->data + (uVar13 - 0x19));\n                      *puVar1 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8 |\n                                __n_01 * 0x1000000;\n                      memcpy(puVar1 + 1,pbVar10,__n_01);\n                      puVar1 = (uint *)((int)puVar1 + uVar14 + 3);\n                      *puVar1 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8 |\n                                __n_00 * 0x1000000;\n                      memcpy(puVar1 + 1,pcVar8,__n_00);\n                      iVar7 = public_blob_len;\n                      c = (SHA_CTX *)((int)puVar1 + uVar15 + 3);\n                      *(undefined1 *)&c->h0 = public_blob_len._3_1_;\n                      *(char *)((int)&c->h0 + 1) = (char)((uint)public_blob_len >> 0x10);\n                      *(char *)((int)&c->h0 + 2) = (char)((uint)public_blob_len >> 8);\n                      *(char *)((int)&c->h0 + 3) = (char)public_blob_len;\n                      memcpy(&c->h1,local_13c,public_blob_len);\n                      puVar2 = (undefined1 *)((int)c->data + iVar7 + -0x18);\n                      *puVar2 = private_blob_len._3_1_;\n                      puVar2[1] = (char)((uint)private_blob_len >> 0x10);\n                      puVar2[2] = (char)((uint)private_blob_len >> 8);\n                      puVar2[3] = (char)private_blob_len;\n                      memcpy(puVar2 + 4,local_140,private_blob_len);\n                      bVar21 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((passphrase != (char *)0x0) && (private_blob_len % (int)local_124 == 0)) {\n                      c = (SHA_CTX *)&s;\n                      SHA_Init(c);\n                      SHA_Bytes((SHA_State *)c,&DAT_0007db1c,4);\n                      SHA_Bytes((SHA_State *)c,passphrase,local_14c);\n                      SHA_Final((SHA_State *)c,key);\n                      SHA_Init(c);\n                      SHA_Bytes((SHA_State *)c,&DAT_0007db21,4);\n                      SHA_Bytes((SHA_State *)c,passphrase,local_14c);\n                      SHA_Final((SHA_State *)c,key + 0x14);\n                      aes256_decrypt_pubkey(key,(uchar *)local_140,private_blob_len);\n                      goto LAB_00055778;\n                    }\n                    pcVar11 = "file format error";\n                    ptr = (ssh2_userkey *)0x0;\nLAB_000554a5:\n                    safefree(pcVar8);\n                    safefree(pbVar10);\n                    safefree(local_144);\n                  }\n                  if (local_13c != (uchar *)0x0) {\n                    safefree(local_13c);\n                  }\n                  if (local_140 != (SHA_CTX *)0x0) {\n                    smemclr(local_140,private_blob_len);\n                    safefree(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar10;\n              pbVar18 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar21 = *pbVar16 < *pbVar18;\n                bVar20 = *pbVar16 == *pbVar18;\n                pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n              } while (bVar20);\n              if ((!bVar21 && !bVar20) == bVar21) {\n                local_124 = 1;\n                bVar20 = false;\n                goto LAB_000551a8;\n              }\n            }\n            ptr = (ssh2_userkey *)0x0;\n            fclose(__stream);\n            pcVar11 = "file format error";\n            safefree(pbVar10);\n            goto LAB_00055070;\n          }\n        }\n      }\nLAB_0005510e:\n      pcVar11 = "file format error";\n      ptr = (ssh2_userkey *)0x0;\n      fclose(__stream);\n    }\n  }" else (compound_statement "{\n    iVar7 = read_header((FILE *)__stream,header);\n    bVar20 = false;\n    bVar22 = iVar7 == 0;\n    if (bVar22) {\n      pcVar11 = (char *)0x0;\n      ptr = (ssh2_userkey *)0x0;\n      fclose(__stream);\n    }\n    else {\n      iVar7 = 0x16;\n      pbVar10 = (byte *)header;\n      pbVar16 = (byte *)"PuTTY-User-Key-File-2";\n      do {\n        if (iVar7 == 0) break;\n        iVar7 = iVar7 + -1;\n        bVar20 = *pbVar10 < *pbVar16;\n        bVar22 = *pbVar10 == *pbVar16;\n        pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1;\n        pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n      } while (bVar22);\n      bVar6 = (!bVar20 && !bVar22) - bVar20;\n      bVar20 = false;\n      bVar22 = bVar6 == 0;\n      if (!bVar22) {\n        iVar7 = 0x16;\n        pbVar10 = (byte *)header;\n        pbVar16 = (byte *)"PuTTY-User-Key-File-1";\n        do {\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar20 = *pbVar10 < *pbVar16;\n          bVar22 = *pbVar10 == *pbVar16;\n          pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n        } while (bVar22);\n        bVar21 = false;\n        bVar20 = (!bVar20 && !bVar22) == bVar20;\n        if (!bVar20) {\n          iVar7 = 0x14;\n          pbVar10 = (byte *)header;\n          pbVar16 = (byte *)"PuTTY-User-Key-File-";\n          do {\n            if (iVar7 == 0) break;\n            iVar7 = iVar7 + -1;\n            bVar21 = *pbVar10 < *pbVar16;\n            bVar20 = *pbVar10 == *pbVar16;\n            pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1;\n            pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n          } while (bVar20);\n          if ((!bVar21 && !bVar20) == bVar21) {\n            pcVar11 = "PuTTY key format too new";\n            ptr = (ssh2_userkey *)0x0;\n            fclose(__stream);\n          }\n          else {\n            pcVar11 = "not a PuTTY SSH-2 private key";\n            ptr = (ssh2_userkey *)0x0;\n            fclose(__stream);\n          }\n          goto LAB_00055070;\n        }\n        old_keyfile_warning();\n        bVar6 = 1;\n      }\n      pcVar8 = read_body((FILE *)__stream);\n      if (pcVar8 == (char *)0x0) goto LAB_0005510e;\n      namelen = strlen(pcVar8);\n      psVar9 = find_pubkey_alg_len(namelen,pcVar8);\n      if (psVar9 == (ssh_signkey *)0x0) {\n        pcVar11 = "file format error";\n        safefree(pcVar8);\n        ptr = (ssh2_userkey *)0x0;\n        fclose(__stream);\n        goto LAB_00055070;\n      }\n      safefree(pcVar8);\n      iVar7 = read_header((FILE *)__stream,header);\n      bVar20 = false;\n      bVar22 = iVar7 == 0;\n      if (!bVar22) {\n        iVar7 = 0xb;\n        pbVar10 = (byte *)header;\n        pbVar16 = (byte *)"Encryption";\n        do {\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar20 = *pbVar10 < *pbVar16;\n          bVar22 = *pbVar10 == *pbVar16;\n          pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n        } while (bVar22);\n        if ((!bVar20 && !bVar22) == bVar20) {\n          pbVar10 = (byte *)read_body((FILE *)__stream);\n          bVar20 = false;\n          bVar22 = pbVar10 == (byte *)0x0;\n          if (!bVar22) {\n            iVar7 = 0xb;\n            pbVar16 = pbVar10;\n            pbVar18 = (byte *)"aes256-cbc";\n            do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar20 = *pbVar16 < *pbVar18;\n              bVar22 = *pbVar16 == *pbVar18;\n              pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n              pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n            } while (bVar22);\n            bVar21 = false;\n            bVar20 = (!bVar20 && !bVar22) == bVar20;\n            if (bVar20) {\n              local_124 = 0x10;\n              bVar20 = true;\nLAB_000551a8:\n              iVar7 = read_header((FILE *)__stream,header);\n              bVar22 = false;\n              bVar21 = iVar7 == 0;\n              if (!bVar21) {\n                iVar7 = 8;\n                pbVar16 = (byte *)header;\n                pbVar18 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar22 = *pbVar16 < *pbVar18;\n                  bVar21 = *pbVar16 == *pbVar18;\n                  pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                  pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n                } while (bVar21);\n                if ((!bVar22 && !bVar21) == bVar22) {\n                  pcVar8 = read_body((FILE *)__stream);\n                  if (pcVar8 == (char *)0x0) {\n                    pcVar11 = "file format error";\n                    ptr = (ssh2_userkey *)0x0;\n                    fclose(__stream);\n                    safefree(pbVar10);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = read_header((FILE *)__stream,header);\n                  bVar22 = false;\n                  bVar21 = iVar7 == 0;\n                  if (bVar21) {\nLAB_000555ad:\n                    local_140 = (SHA_CTX *)0x0;\n                    local_13c = (uchar *)0x0;\nLAB_0005553d:\n                    pcVar11 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    ptr = (ssh2_userkey *)0x0;\n                    safefree(pcVar8);\n                    safefree(pbVar10);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = (byte *)header;\n                    pbVar18 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar22 = *pbVar16 < *pbVar18;\n                      bVar21 = *pbVar16 == *pbVar18;\n                      pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                      pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n                    } while (bVar21);\n                    if ((!bVar22 && !bVar21) != bVar22) goto LAB_000555ad;\n                    pcVar11 = read_body((FILE *)__stream);\n                    if (pcVar11 == (char *)0x0) goto LAB_000555ad;\n                    iVar7 = userkey_parse_line_counter(pcVar11);\n                    safefree(pcVar11);\n                    if (iVar7 < 0) goto LAB_000555ad;\n                    local_13c = read_blob((FILE *)__stream,iVar7,&public_blob_len);\n                    if (local_13c == (uchar *)0x0) goto LAB_000555ad;\n                    iVar7 = read_header((FILE *)__stream,header);\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (SHA_CTX *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    iVar7 = strcmp(header,"Private-Lines");\n                    local_140 = (SHA_CTX *)0x0;\n                    if (iVar7 != 0) goto LAB_0005553d;\n                    c = (SHA_CTX *)read_body((FILE *)__stream);\n                    local_140 = c;\n                    if (c == (SHA_CTX *)0x0) goto LAB_0005553d;\n                    iVar7 = userkey_parse_line_counter((char *)c);\n                    safefree(c);\n                    if (iVar7 < 0) goto LAB_00055535;\n                    local_140 = (SHA_CTX *)read_blob((FILE *)__stream,iVar7,&private_blob_len);\n                    if (local_140 == (SHA_CTX *)0x0) goto LAB_0005553d;\n                    iVar7 = read_header((FILE *)__stream,header);\n                    if (iVar7 == 0) goto LAB_0005553d;\n                    iVar7 = strcmp(header,"Private-MAC");\n                    if (iVar7 != 0) {\n                      iVar7 = strcmp(header,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar6 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = read_body((FILE *)__stream);\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar22 = false;\n                      fclose(__stream);\n                      if (bVar20) goto LAB_000556cb;\nLAB_00055378:\n                      bVar21 = false;\n                      local_124 = private_blob_len;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar22) {\n                        puVar17 = (uchar *)"putty-private-key-file-mac-key";\n                        puVar19 = key;\n                        for (iVar7 = 0x1f; iVar7 != 0; iVar7 = iVar7 + -1) {\n                          *puVar19 = *puVar17;\n                          puVar17 = puVar17 + (uint)bVar23 * -2 + 1;\n                          puVar19 = puVar19 + (uint)bVar23 * -2 + 1;\n                        }\n                        c_00 = (SHA_CTX *)&s;\n                        SHA_Init(c_00);\n                        SHA_Bytes((SHA_State *)c_00,key,0x1e);\n                        if ((passphrase != (char *)0x0) && (bVar20)) {\n                          SHA_Bytes((SHA_State *)c_00,passphrase,local_14c);\n                        }\n                        c = (SHA_CTX *)passphrase;\n                        SHA_Final((SHA_State *)c_00,mackey);\n                        hmac_sha1_simple(mackey,0x14,local_134,local_124,binary);\n                        smemclr(mackey,0x14);\n                        sVar24 = 0x60;\n                        smemclr(c_00,0x60);\n                      }\n                      else {\n                        passphrase = (char *)binary;\n                        sVar24 = local_124;\n                        SHA_Simple(local_134,local_124,(uchar *)passphrase);\n                        c_00 = (SHA_CTX *)0x0;\n                      }\n                      if (bVar21) {\n                        c = c_00;\n                        smemclr(local_134,local_124);\n                        safefree(local_134);\n                        sVar24 = local_124;\n                        passphrase = (char *)c_00;\n                      }\n                      iVar7 = 0;\n                      do {\n                        puVar17 = binary + iVar7;\n                        iVar5 = iVar7 * 2;\n                        iVar7 = iVar7 + 1;\n                        __sprintf_chk(key + iVar5,1,0xffffffff,&DAT_0007dc2b,*puVar17,sVar24,\n                                      passphrase,c);\n                      } while (iVar7 != 0x14);\n                      iVar7 = strcmp(local_144,(char *)key);\n                      if (iVar7 != 0) {\n                        if (bVar20) {\n                          pcVar11 = "wrong passphrase";\n                          ptr = &ssh2_wrong_passphrase;\n                        }\n                        else {\n                          pcVar11 = "MAC failed";\n                          ptr = (ssh2_userkey *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      safefree(local_144);\n                      ptr = (ssh2_userkey *)safemalloc(1,0xc);\n                      ptr->comment = pcVar8;\n                      ptr->alg = psVar9;\n                      pvVar12 = (*psVar9->createkey)\n                                          (psVar9,local_13c,public_blob_len,(uchar *)local_140,\n                                           private_blob_len);\n                      ptr->data = pvVar12;\n                      if (pvVar12 != (void *)0x0) {\n                        safefree(local_13c);\n                        smemclr(local_140,private_blob_len);\n                        safefree(local_140);\n                        safefree(pbVar10);\n                        if (errorstr != (char **)0x0) {\n                          *errorstr = (char *)0x0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar11 = "createkey failed";\n                      safefree(ptr);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = read_body((FILE *)__stream);\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar22 = bVar20;\n                    if (!bVar20) {\n                      bVar22 = true;\nLAB_00055778:\n                      if (bVar6 != 0) goto LAB_00055378;\n                      uVar13 = 0xffffffff;\n                      pcVar11 = psVar9->name;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar3 = *pcVar11;\n                        pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1;\n                      } while (cVar3 != '\0');\n                      uVar13 = ~uVar13;\n                      __n = uVar13 - 1;\n                      uVar14 = 0xffffffff;\n                      pbVar16 = pbVar10;\n                      do {\n                        if (uVar14 == 0) break;\n                        uVar14 = uVar14 - 1;\n                        bVar6 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                      } while (bVar6 != 0);\n                      uVar15 = 0xffffffff;\n                      uVar14 = ~uVar14;\n                      __n_01 = uVar14 - 1;\n                      pcVar11 = pcVar8;\n                      do {\n                        if (uVar15 == 0) break;\n                        uVar15 = uVar15 - 1;\n                        cVar3 = *pcVar11;\n                        pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1;\n                      } while (cVar3 != '\0');\n                      uVar15 = ~uVar15;\n                      __n_00 = uVar15 - 1;\n                      local_124 = uVar15 + uVar14 + uVar13 + public_blob_len + 0x11 +\n                                  private_blob_len;\n                      local_134 = (SHA_CTX *)safemalloc(local_124,1);\n                      local_134->h0 =\n                           __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                           __n * 0x1000000;\n                      memcpy(&local_134->h1,psVar9->name,__n);\n                      puVar1 = (uint *)((int)local_134->data + (uVar13 - 0x19));\n                      *puVar1 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8 |\n                                __n_01 * 0x1000000;\n                      memcpy(puVar1 + 1,pbVar10,__n_01);\n                      puVar1 = (uint *)((int)puVar1 + uVar14 + 3);\n                      *puVar1 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8 |\n                                __n_00 * 0x1000000;\n                      memcpy(puVar1 + 1,pcVar8,__n_00);\n                      iVar7 = public_blob_len;\n                      c = (SHA_CTX *)((int)puVar1 + uVar15 + 3);\n                      *(undefined1 *)&c->h0 = public_blob_len._3_1_;\n                      *(char *)((int)&c->h0 + 1) = (char)((uint)public_blob_len >> 0x10);\n                      *(char *)((int)&c->h0 + 2) = (char)((uint)public_blob_len >> 8);\n                      *(char *)((int)&c->h0 + 3) = (char)public_blob_len;\n                      memcpy(&c->h1,local_13c,public_blob_len);\n                      puVar2 = (undefined1 *)((int)c->data + iVar7 + -0x18);\n                      *puVar2 = private_blob_len._3_1_;\n                      puVar2[1] = (char)((uint)private_blob_len >> 0x10);\n                      puVar2[2] = (char)((uint)private_blob_len >> 8);\n                      puVar2[3] = (char)private_blob_len;\n                      memcpy(puVar2 + 4,local_140,private_blob_len);\n                      bVar21 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((passphrase != (char *)0x0) && (private_blob_len % (int)local_124 == 0)) {\n                      c = (SHA_CTX *)&s;\n                      SHA_Init(c);\n                      SHA_Bytes((SHA_State *)c,&DAT_0007db1c,4);\n                      SHA_Bytes((SHA_State *)c,passphrase,local_14c);\n                      SHA_Final((SHA_State *)c,key);\n                      SHA_Init(c);\n                      SHA_Bytes((SHA_State *)c,&DAT_0007db21,4);\n                      SHA_Bytes((SHA_State *)c,passphrase,local_14c);\n                      SHA_Final((SHA_State *)c,key + 0x14);\n                      aes256_decrypt_pubkey(key,(uchar *)local_140,private_blob_len);\n                      goto LAB_00055778;\n                    }\n                    pcVar11 = "file format error";\n                    ptr = (ssh2_userkey *)0x0;\nLAB_000554a5:\n                    safefree(pcVar8);\n                    safefree(pbVar10);\n                    safefree(local_144);\n                  }\n                  if (local_13c != (uchar *)0x0) {\n                    safefree(local_13c);\n                  }\n                  if (local_140 != (SHA_CTX *)0x0) {\n                    smemclr(local_140,private_blob_len);\n                    safefree(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar10;\n              pbVar18 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar21 = *pbVar16 < *pbVar18;\n                bVar20 = *pbVar16 == *pbVar18;\n                pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n              } while (bVar20);\n              if ((!bVar21 && !bVar20) == bVar21) {\n                local_124 = 1;\n                bVar20 = false;\n                goto LAB_000551a8;\n              }\n            }\n            ptr = (ssh2_userkey *)0x0;\n            fclose(__stream);\n            pcVar11 = "file format error";\n            safefree(pbVar10);\n            goto LAB_00055070;\n          }\n        }\n      }\nLAB_0005510e:\n      pcVar11 = "file format error";\n      ptr = (ssh2_userkey *)0x0;\n      fclose(__stream);\n    }\n  }" { (expression_statement "iVar7 = read_header((FILE *)__stream,header);" (assignment_expression "iVar7 = read_header((FILE *)__stream,header)" identifier = (call_expression "read_header((FILE *)__stream,header)" identifier (argument_list "((FILE *)__stream,header)" ( (cast_expression "(FILE *)__stream" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier )))) ;) (expression_statement "bVar20 = false;" (assignment_expression "bVar20 = false" identifier = false) ;) (expression_statement "bVar22 = iVar7 == 0;" (assignment_expression "bVar22 = iVar7 == 0" identifier = (binary_expression "iVar7 == 0" identifier == number_literal)) ;) (if_statement "if (bVar22) {\n      pcVar11 = (char *)0x0;\n      ptr = (ssh2_userkey *)0x0;\n      fclose(__stream);\n    }\n    else {\n      iVar7 = 0x16;\n      pbVar10 = (byte *)header;\n      pbVar16 = (byte *)"PuTTY-User-Key-File-2";\n      do {\n        if (iVar7 == 0) break;\n        iVar7 = iVar7 + -1;\n        bVar20 = *pbVar10 < *pbVar16;\n        bVar22 = *pbVar10 == *pbVar16;\n        pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1;\n        pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n      } while (bVar22);\n      bVar6 = (!bVar20 && !bVar22) - bVar20;\n      bVar20 = false;\n      bVar22 = bVar6 == 0;\n      if (!bVar22) {\n        iVar7 = 0x16;\n        pbVar10 = (byte *)header;\n        pbVar16 = (byte *)"PuTTY-User-Key-File-1";\n        do {\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar20 = *pbVar10 < *pbVar16;\n          bVar22 = *pbVar10 == *pbVar16;\n          pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n        } while (bVar22);\n        bVar21 = false;\n        bVar20 = (!bVar20 && !bVar22) == bVar20;\n        if (!bVar20) {\n          iVar7 = 0x14;\n          pbVar10 = (byte *)header;\n          pbVar16 = (byte *)"PuTTY-User-Key-File-";\n          do {\n            if (iVar7 == 0) break;\n            iVar7 = iVar7 + -1;\n            bVar21 = *pbVar10 < *pbVar16;\n            bVar20 = *pbVar10 == *pbVar16;\n            pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1;\n            pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n          } while (bVar20);\n          if ((!bVar21 && !bVar20) == bVar21) {\n            pcVar11 = "PuTTY key format too new";\n            ptr = (ssh2_userkey *)0x0;\n            fclose(__stream);\n          }\n          else {\n            pcVar11 = "not a PuTTY SSH-2 private key";\n            ptr = (ssh2_userkey *)0x0;\n            fclose(__stream);\n          }\n          goto LAB_00055070;\n        }\n        old_keyfile_warning();\n        bVar6 = 1;\n      }\n      pcVar8 = read_body((FILE *)__stream);\n      if (pcVar8 == (char *)0x0) goto LAB_0005510e;\n      namelen = strlen(pcVar8);\n      psVar9 = find_pubkey_alg_len(namelen,pcVar8);\n      if (psVar9 == (ssh_signkey *)0x0) {\n        pcVar11 = "file format error";\n        safefree(pcVar8);\n        ptr = (ssh2_userkey *)0x0;\n        fclose(__stream);\n        goto LAB_00055070;\n      }\n      safefree(pcVar8);\n      iVar7 = read_header((FILE *)__stream,header);\n      bVar20 = false;\n      bVar22 = iVar7 == 0;\n      if (!bVar22) {\n        iVar7 = 0xb;\n        pbVar10 = (byte *)header;\n        pbVar16 = (byte *)"Encryption";\n        do {\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar20 = *pbVar10 < *pbVar16;\n          bVar22 = *pbVar10 == *pbVar16;\n          pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n        } while (bVar22);\n        if ((!bVar20 && !bVar22) == bVar20) {\n          pbVar10 = (byte *)read_body((FILE *)__stream);\n          bVar20 = false;\n          bVar22 = pbVar10 == (byte *)0x0;\n          if (!bVar22) {\n            iVar7 = 0xb;\n            pbVar16 = pbVar10;\n            pbVar18 = (byte *)"aes256-cbc";\n            do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar20 = *pbVar16 < *pbVar18;\n              bVar22 = *pbVar16 == *pbVar18;\n              pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n              pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n            } while (bVar22);\n            bVar21 = false;\n            bVar20 = (!bVar20 && !bVar22) == bVar20;\n            if (bVar20) {\n              local_124 = 0x10;\n              bVar20 = true;\nLAB_000551a8:\n              iVar7 = read_header((FILE *)__stream,header);\n              bVar22 = false;\n              bVar21 = iVar7 == 0;\n              if (!bVar21) {\n                iVar7 = 8;\n                pbVar16 = (byte *)header;\n                pbVar18 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar22 = *pbVar16 < *pbVar18;\n                  bVar21 = *pbVar16 == *pbVar18;\n                  pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                  pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n                } while (bVar21);\n                if ((!bVar22 && !bVar21) == bVar22) {\n                  pcVar8 = read_body((FILE *)__stream);\n                  if (pcVar8 == (char *)0x0) {\n                    pcVar11 = "file format error";\n                    ptr = (ssh2_userkey *)0x0;\n                    fclose(__stream);\n                    safefree(pbVar10);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = read_header((FILE *)__stream,header);\n                  bVar22 = false;\n                  bVar21 = iVar7 == 0;\n                  if (bVar21) {\nLAB_000555ad:\n                    local_140 = (SHA_CTX *)0x0;\n                    local_13c = (uchar *)0x0;\nLAB_0005553d:\n                    pcVar11 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    ptr = (ssh2_userkey *)0x0;\n                    safefree(pcVar8);\n                    safefree(pbVar10);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = (byte *)header;\n                    pbVar18 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar22 = *pbVar16 < *pbVar18;\n                      bVar21 = *pbVar16 == *pbVar18;\n                      pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                      pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n                    } while (bVar21);\n                    if ((!bVar22 && !bVar21) != bVar22) goto LAB_000555ad;\n                    pcVar11 = read_body((FILE *)__stream);\n                    if (pcVar11 == (char *)0x0) goto LAB_000555ad;\n                    iVar7 = userkey_parse_line_counter(pcVar11);\n                    safefree(pcVar11);\n                    if (iVar7 < 0) goto LAB_000555ad;\n                    local_13c = read_blob((FILE *)__stream,iVar7,&public_blob_len);\n                    if (local_13c == (uchar *)0x0) goto LAB_000555ad;\n                    iVar7 = read_header((FILE *)__stream,header);\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (SHA_CTX *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    iVar7 = strcmp(header,"Private-Lines");\n                    local_140 = (SHA_CTX *)0x0;\n                    if (iVar7 != 0) goto LAB_0005553d;\n                    c = (SHA_CTX *)read_body((FILE *)__stream);\n                    local_140 = c;\n                    if (c == (SHA_CTX *)0x0) goto LAB_0005553d;\n                    iVar7 = userkey_parse_line_counter((char *)c);\n                    safefree(c);\n                    if (iVar7 < 0) goto LAB_00055535;\n                    local_140 = (SHA_CTX *)read_blob((FILE *)__stream,iVar7,&private_blob_len);\n                    if (local_140 == (SHA_CTX *)0x0) goto LAB_0005553d;\n                    iVar7 = read_header((FILE *)__stream,header);\n                    if (iVar7 == 0) goto LAB_0005553d;\n                    iVar7 = strcmp(header,"Private-MAC");\n                    if (iVar7 != 0) {\n                      iVar7 = strcmp(header,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar6 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = read_body((FILE *)__stream);\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar22 = false;\n                      fclose(__stream);\n                      if (bVar20) goto LAB_000556cb;\nLAB_00055378:\n                      bVar21 = false;\n                      local_124 = private_blob_len;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar22) {\n                        puVar17 = (uchar *)"putty-private-key-file-mac-key";\n                        puVar19 = key;\n                        for (iVar7 = 0x1f; iVar7 != 0; iVar7 = iVar7 + -1) {\n                          *puVar19 = *puVar17;\n                          puVar17 = puVar17 + (uint)bVar23 * -2 + 1;\n                          puVar19 = puVar19 + (uint)bVar23 * -2 + 1;\n                        }\n                        c_00 = (SHA_CTX *)&s;\n                        SHA_Init(c_00);\n                        SHA_Bytes((SHA_State *)c_00,key,0x1e);\n                        if ((passphrase != (char *)0x0) && (bVar20)) {\n                          SHA_Bytes((SHA_State *)c_00,passphrase,local_14c);\n                        }\n                        c = (SHA_CTX *)passphrase;\n                        SHA_Final((SHA_State *)c_00,mackey);\n                        hmac_sha1_simple(mackey,0x14,local_134,local_124,binary);\n                        smemclr(mackey,0x14);\n                        sVar24 = 0x60;\n                        smemclr(c_00,0x60);\n                      }\n                      else {\n                        passphrase = (char *)binary;\n                        sVar24 = local_124;\n                        SHA_Simple(local_134,local_124,(uchar *)passphrase);\n                        c_00 = (SHA_CTX *)0x0;\n                      }\n                      if (bVar21) {\n                        c = c_00;\n                        smemclr(local_134,local_124);\n                        safefree(local_134);\n                        sVar24 = local_124;\n                        passphrase = (char *)c_00;\n                      }\n                      iVar7 = 0;\n                      do {\n                        puVar17 = binary + iVar7;\n                        iVar5 = iVar7 * 2;\n                        iVar7 = iVar7 + 1;\n                        __sprintf_chk(key + iVar5,1,0xffffffff,&DAT_0007dc2b,*puVar17,sVar24,\n                                      passphrase,c);\n                      } while (iVar7 != 0x14);\n                      iVar7 = strcmp(local_144,(char *)key);\n                      if (iVar7 != 0) {\n                        if (bVar20) {\n                          pcVar11 = "wrong passphrase";\n                          ptr = &ssh2_wrong_passphrase;\n                        }\n                        else {\n                          pcVar11 = "MAC failed";\n                          ptr = (ssh2_userkey *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      safefree(local_144);\n                      ptr = (ssh2_userkey *)safemalloc(1,0xc);\n                      ptr->comment = pcVar8;\n                      ptr->alg = psVar9;\n                      pvVar12 = (*psVar9->createkey)\n                                          (psVar9,local_13c,public_blob_len,(uchar *)local_140,\n                                           private_blob_len);\n                      ptr->data = pvVar12;\n                      if (pvVar12 != (void *)0x0) {\n                        safefree(local_13c);\n                        smemclr(local_140,private_blob_len);\n                        safefree(local_140);\n                        safefree(pbVar10);\n                        if (errorstr != (char **)0x0) {\n                          *errorstr = (char *)0x0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar11 = "createkey failed";\n                      safefree(ptr);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = read_body((FILE *)__stream);\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar22 = bVar20;\n                    if (!bVar20) {\n                      bVar22 = true;\nLAB_00055778:\n                      if (bVar6 != 0) goto LAB_00055378;\n                      uVar13 = 0xffffffff;\n                      pcVar11 = psVar9->name;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar3 = *pcVar11;\n                        pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1;\n                      } while (cVar3 != '\0');\n                      uVar13 = ~uVar13;\n                      __n = uVar13 - 1;\n                      uVar14 = 0xffffffff;\n                      pbVar16 = pbVar10;\n                      do {\n                        if (uVar14 == 0) break;\n                        uVar14 = uVar14 - 1;\n                        bVar6 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                      } while (bVar6 != 0);\n                      uVar15 = 0xffffffff;\n                      uVar14 = ~uVar14;\n                      __n_01 = uVar14 - 1;\n                      pcVar11 = pcVar8;\n                      do {\n                        if (uVar15 == 0) break;\n                        uVar15 = uVar15 - 1;\n                        cVar3 = *pcVar11;\n                        pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1;\n                      } while (cVar3 != '\0');\n                      uVar15 = ~uVar15;\n                      __n_00 = uVar15 - 1;\n                      local_124 = uVar15 + uVar14 + uVar13 + public_blob_len + 0x11 +\n                                  private_blob_len;\n                      local_134 = (SHA_CTX *)safemalloc(local_124,1);\n                      local_134->h0 =\n                           __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                           __n * 0x1000000;\n                      memcpy(&local_134->h1,psVar9->name,__n);\n                      puVar1 = (uint *)((int)local_134->data + (uVar13 - 0x19));\n                      *puVar1 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8 |\n                                __n_01 * 0x1000000;\n                      memcpy(puVar1 + 1,pbVar10,__n_01);\n                      puVar1 = (uint *)((int)puVar1 + uVar14 + 3);\n                      *puVar1 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8 |\n                                __n_00 * 0x1000000;\n                      memcpy(puVar1 + 1,pcVar8,__n_00);\n                      iVar7 = public_blob_len;\n                      c = (SHA_CTX *)((int)puVar1 + uVar15 + 3);\n                      *(undefined1 *)&c->h0 = public_blob_len._3_1_;\n                      *(char *)((int)&c->h0 + 1) = (char)((uint)public_blob_len >> 0x10);\n                      *(char *)((int)&c->h0 + 2) = (char)((uint)public_blob_len >> 8);\n                      *(char *)((int)&c->h0 + 3) = (char)public_blob_len;\n                      memcpy(&c->h1,local_13c,public_blob_len);\n                      puVar2 = (undefined1 *)((int)c->data + iVar7 + -0x18);\n                      *puVar2 = private_blob_len._3_1_;\n                      puVar2[1] = (char)((uint)private_blob_len >> 0x10);\n                      puVar2[2] = (char)((uint)private_blob_len >> 8);\n                      puVar2[3] = (char)private_blob_len;\n                      memcpy(puVar2 + 4,local_140,private_blob_len);\n                      bVar21 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((passphrase != (char *)0x0) && (private_blob_len % (int)local_124 == 0)) {\n                      c = (SHA_CTX *)&s;\n                      SHA_Init(c);\n                      SHA_Bytes((SHA_State *)c,&DAT_0007db1c,4);\n                      SHA_Bytes((SHA_State *)c,passphrase,local_14c);\n                      SHA_Final((SHA_State *)c,key);\n                      SHA_Init(c);\n                      SHA_Bytes((SHA_State *)c,&DAT_0007db21,4);\n                      SHA_Bytes((SHA_State *)c,passphrase,local_14c);\n                      SHA_Final((SHA_State *)c,key + 0x14);\n                      aes256_decrypt_pubkey(key,(uchar *)local_140,private_blob_len);\n                      goto LAB_00055778;\n                    }\n                    pcVar11 = "file format error";\n                    ptr = (ssh2_userkey *)0x0;\nLAB_000554a5:\n                    safefree(pcVar8);\n                    safefree(pbVar10);\n                    safefree(local_144);\n                  }\n                  if (local_13c != (uchar *)0x0) {\n                    safefree(local_13c);\n                  }\n                  if (local_140 != (SHA_CTX *)0x0) {\n                    smemclr(local_140,private_blob_len);\n                    safefree(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar10;\n              pbVar18 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar21 = *pbVar16 < *pbVar18;\n                bVar20 = *pbVar16 == *pbVar18;\n                pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n              } while (bVar20);\n              if ((!bVar21 && !bVar20) == bVar21) {\n                local_124 = 1;\n                bVar20 = false;\n                goto LAB_000551a8;\n              }\n            }\n            ptr = (ssh2_userkey *)0x0;\n            fclose(__stream);\n            pcVar11 = "file format error";\n            safefree(pbVar10);\n            goto LAB_00055070;\n          }\n        }\n      }\nLAB_0005510e:\n      pcVar11 = "file format error";\n      ptr = (ssh2_userkey *)0x0;\n      fclose(__stream);\n    }" if (parenthesized_expression "(bVar22)" ( identifier )) (compound_statement "{\n      pcVar11 = (char *)0x0;\n      ptr = (ssh2_userkey *)0x0;\n      fclose(__stream);\n    }" { (expression_statement "pcVar11 = (char *)0x0;" (assignment_expression "pcVar11 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "ptr = (ssh2_userkey *)0x0;" (assignment_expression "ptr = (ssh2_userkey *)0x0" identifier = (cast_expression "(ssh2_userkey *)0x0" ( (type_descriptor "ssh2_userkey *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "fclose(__stream);" (call_expression "fclose(__stream)" identifier (argument_list "(__stream)" ( identifier ))) ;) }) (else_clause "else {\n      iVar7 = 0x16;\n      pbVar10 = (byte *)header;\n      pbVar16 = (byte *)"PuTTY-User-Key-File-2";\n      do {\n        if (iVar7 == 0) break;\n        iVar7 = iVar7 + -1;\n        bVar20 = *pbVar10 < *pbVar16;\n        bVar22 = *pbVar10 == *pbVar16;\n        pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1;\n        pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n      } while (bVar22);\n      bVar6 = (!bVar20 && !bVar22) - bVar20;\n      bVar20 = false;\n      bVar22 = bVar6 == 0;\n      if (!bVar22) {\n        iVar7 = 0x16;\n        pbVar10 = (byte *)header;\n        pbVar16 = (byte *)"PuTTY-User-Key-File-1";\n        do {\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar20 = *pbVar10 < *pbVar16;\n          bVar22 = *pbVar10 == *pbVar16;\n          pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n        } while (bVar22);\n        bVar21 = false;\n        bVar20 = (!bVar20 && !bVar22) == bVar20;\n        if (!bVar20) {\n          iVar7 = 0x14;\n          pbVar10 = (byte *)header;\n          pbVar16 = (byte *)"PuTTY-User-Key-File-";\n          do {\n            if (iVar7 == 0) break;\n            iVar7 = iVar7 + -1;\n            bVar21 = *pbVar10 < *pbVar16;\n            bVar20 = *pbVar10 == *pbVar16;\n            pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1;\n            pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n          } while (bVar20);\n          if ((!bVar21 && !bVar20) == bVar21) {\n            pcVar11 = "PuTTY key format too new";\n            ptr = (ssh2_userkey *)0x0;\n            fclose(__stream);\n          }\n          else {\n            pcVar11 = "not a PuTTY SSH-2 private key";\n            ptr = (ssh2_userkey *)0x0;\n            fclose(__stream);\n          }\n          goto LAB_00055070;\n        }\n        old_keyfile_warning();\n        bVar6 = 1;\n      }\n      pcVar8 = read_body((FILE *)__stream);\n      if (pcVar8 == (char *)0x0) goto LAB_0005510e;\n      namelen = strlen(pcVar8);\n      psVar9 = find_pubkey_alg_len(namelen,pcVar8);\n      if (psVar9 == (ssh_signkey *)0x0) {\n        pcVar11 = "file format error";\n        safefree(pcVar8);\n        ptr = (ssh2_userkey *)0x0;\n        fclose(__stream);\n        goto LAB_00055070;\n      }\n      safefree(pcVar8);\n      iVar7 = read_header((FILE *)__stream,header);\n      bVar20 = false;\n      bVar22 = iVar7 == 0;\n      if (!bVar22) {\n        iVar7 = 0xb;\n        pbVar10 = (byte *)header;\n        pbVar16 = (byte *)"Encryption";\n        do {\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar20 = *pbVar10 < *pbVar16;\n          bVar22 = *pbVar10 == *pbVar16;\n          pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n        } while (bVar22);\n        if ((!bVar20 && !bVar22) == bVar20) {\n          pbVar10 = (byte *)read_body((FILE *)__stream);\n          bVar20 = false;\n          bVar22 = pbVar10 == (byte *)0x0;\n          if (!bVar22) {\n            iVar7 = 0xb;\n            pbVar16 = pbVar10;\n            pbVar18 = (byte *)"aes256-cbc";\n            do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar20 = *pbVar16 < *pbVar18;\n              bVar22 = *pbVar16 == *pbVar18;\n              pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n              pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n            } while (bVar22);\n            bVar21 = false;\n            bVar20 = (!bVar20 && !bVar22) == bVar20;\n            if (bVar20) {\n              local_124 = 0x10;\n              bVar20 = true;\nLAB_000551a8:\n              iVar7 = read_header((FILE *)__stream,header);\n              bVar22 = false;\n              bVar21 = iVar7 == 0;\n              if (!bVar21) {\n                iVar7 = 8;\n                pbVar16 = (byte *)header;\n                pbVar18 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar22 = *pbVar16 < *pbVar18;\n                  bVar21 = *pbVar16 == *pbVar18;\n                  pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                  pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n                } while (bVar21);\n                if ((!bVar22 && !bVar21) == bVar22) {\n                  pcVar8 = read_body((FILE *)__stream);\n                  if (pcVar8 == (char *)0x0) {\n                    pcVar11 = "file format error";\n                    ptr = (ssh2_userkey *)0x0;\n                    fclose(__stream);\n                    safefree(pbVar10);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = read_header((FILE *)__stream,header);\n                  bVar22 = false;\n                  bVar21 = iVar7 == 0;\n                  if (bVar21) {\nLAB_000555ad:\n                    local_140 = (SHA_CTX *)0x0;\n                    local_13c = (uchar *)0x0;\nLAB_0005553d:\n                    pcVar11 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    ptr = (ssh2_userkey *)0x0;\n                    safefree(pcVar8);\n                    safefree(pbVar10);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = (byte *)header;\n                    pbVar18 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar22 = *pbVar16 < *pbVar18;\n                      bVar21 = *pbVar16 == *pbVar18;\n                      pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                      pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n                    } while (bVar21);\n                    if ((!bVar22 && !bVar21) != bVar22) goto LAB_000555ad;\n                    pcVar11 = read_body((FILE *)__stream);\n                    if (pcVar11 == (char *)0x0) goto LAB_000555ad;\n                    iVar7 = userkey_parse_line_counter(pcVar11);\n                    safefree(pcVar11);\n                    if (iVar7 < 0) goto LAB_000555ad;\n                    local_13c = read_blob((FILE *)__stream,iVar7,&public_blob_len);\n                    if (local_13c == (uchar *)0x0) goto LAB_000555ad;\n                    iVar7 = read_header((FILE *)__stream,header);\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (SHA_CTX *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    iVar7 = strcmp(header,"Private-Lines");\n                    local_140 = (SHA_CTX *)0x0;\n                    if (iVar7 != 0) goto LAB_0005553d;\n                    c = (SHA_CTX *)read_body((FILE *)__stream);\n                    local_140 = c;\n                    if (c == (SHA_CTX *)0x0) goto LAB_0005553d;\n                    iVar7 = userkey_parse_line_counter((char *)c);\n                    safefree(c);\n                    if (iVar7 < 0) goto LAB_00055535;\n                    local_140 = (SHA_CTX *)read_blob((FILE *)__stream,iVar7,&private_blob_len);\n                    if (local_140 == (SHA_CTX *)0x0) goto LAB_0005553d;\n                    iVar7 = read_header((FILE *)__stream,header);\n                    if (iVar7 == 0) goto LAB_0005553d;\n                    iVar7 = strcmp(header,"Private-MAC");\n                    if (iVar7 != 0) {\n                      iVar7 = strcmp(header,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar6 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = read_body((FILE *)__stream);\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar22 = false;\n                      fclose(__stream);\n                      if (bVar20) goto LAB_000556cb;\nLAB_00055378:\n                      bVar21 = false;\n                      local_124 = private_blob_len;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar22) {\n                        puVar17 = (uchar *)"putty-private-key-file-mac-key";\n                        puVar19 = key;\n                        for (iVar7 = 0x1f; iVar7 != 0; iVar7 = iVar7 + -1) {\n                          *puVar19 = *puVar17;\n                          puVar17 = puVar17 + (uint)bVar23 * -2 + 1;\n                          puVar19 = puVar19 + (uint)bVar23 * -2 + 1;\n                        }\n                        c_00 = (SHA_CTX *)&s;\n                        SHA_Init(c_00);\n                        SHA_Bytes((SHA_State *)c_00,key,0x1e);\n                        if ((passphrase != (char *)0x0) && (bVar20)) {\n                          SHA_Bytes((SHA_State *)c_00,passphrase,local_14c);\n                        }\n                        c = (SHA_CTX *)passphrase;\n                        SHA_Final((SHA_State *)c_00,mackey);\n                        hmac_sha1_simple(mackey,0x14,local_134,local_124,binary);\n                        smemclr(mackey,0x14);\n                        sVar24 = 0x60;\n                        smemclr(c_00,0x60);\n                      }\n                      else {\n                        passphrase = (char *)binary;\n                        sVar24 = local_124;\n                        SHA_Simple(local_134,local_124,(uchar *)passphrase);\n                        c_00 = (SHA_CTX *)0x0;\n                      }\n                      if (bVar21) {\n                        c = c_00;\n                        smemclr(local_134,local_124);\n                        safefree(local_134);\n                        sVar24 = local_124;\n                        passphrase = (char *)c_00;\n                      }\n                      iVar7 = 0;\n                      do {\n                        puVar17 = binary + iVar7;\n                        iVar5 = iVar7 * 2;\n                        iVar7 = iVar7 + 1;\n                        __sprintf_chk(key + iVar5,1,0xffffffff,&DAT_0007dc2b,*puVar17,sVar24,\n                                      passphrase,c);\n                      } while (iVar7 != 0x14);\n                      iVar7 = strcmp(local_144,(char *)key);\n                      if (iVar7 != 0) {\n                        if (bVar20) {\n                          pcVar11 = "wrong passphrase";\n                          ptr = &ssh2_wrong_passphrase;\n                        }\n                        else {\n                          pcVar11 = "MAC failed";\n                          ptr = (ssh2_userkey *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      safefree(local_144);\n                      ptr = (ssh2_userkey *)safemalloc(1,0xc);\n                      ptr->comment = pcVar8;\n                      ptr->alg = psVar9;\n                      pvVar12 = (*psVar9->createkey)\n                                          (psVar9,local_13c,public_blob_len,(uchar *)local_140,\n                                           private_blob_len);\n                      ptr->data = pvVar12;\n                      if (pvVar12 != (void *)0x0) {\n                        safefree(local_13c);\n                        smemclr(local_140,private_blob_len);\n                        safefree(local_140);\n                        safefree(pbVar10);\n                        if (errorstr != (char **)0x0) {\n                          *errorstr = (char *)0x0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar11 = "createkey failed";\n                      safefree(ptr);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = read_body((FILE *)__stream);\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar22 = bVar20;\n                    if (!bVar20) {\n                      bVar22 = true;\nLAB_00055778:\n                      if (bVar6 != 0) goto LAB_00055378;\n                      uVar13 = 0xffffffff;\n                      pcVar11 = psVar9->name;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar3 = *pcVar11;\n                        pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1;\n                      } while (cVar3 != '\0');\n                      uVar13 = ~uVar13;\n                      __n = uVar13 - 1;\n                      uVar14 = 0xffffffff;\n                      pbVar16 = pbVar10;\n                      do {\n                        if (uVar14 == 0) break;\n                        uVar14 = uVar14 - 1;\n                        bVar6 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                      } while (bVar6 != 0);\n                      uVar15 = 0xffffffff;\n                      uVar14 = ~uVar14;\n                      __n_01 = uVar14 - 1;\n                      pcVar11 = pcVar8;\n                      do {\n                        if (uVar15 == 0) break;\n                        uVar15 = uVar15 - 1;\n                        cVar3 = *pcVar11;\n                        pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1;\n                      } while (cVar3 != '\0');\n                      uVar15 = ~uVar15;\n                      __n_00 = uVar15 - 1;\n                      local_124 = uVar15 + uVar14 + uVar13 + public_blob_len + 0x11 +\n                                  private_blob_len;\n                      local_134 = (SHA_CTX *)safemalloc(local_124,1);\n                      local_134->h0 =\n                           __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                           __n * 0x1000000;\n                      memcpy(&local_134->h1,psVar9->name,__n);\n                      puVar1 = (uint *)((int)local_134->data + (uVar13 - 0x19));\n                      *puVar1 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8 |\n                                __n_01 * 0x1000000;\n                      memcpy(puVar1 + 1,pbVar10,__n_01);\n                      puVar1 = (uint *)((int)puVar1 + uVar14 + 3);\n                      *puVar1 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8 |\n                                __n_00 * 0x1000000;\n                      memcpy(puVar1 + 1,pcVar8,__n_00);\n                      iVar7 = public_blob_len;\n                      c = (SHA_CTX *)((int)puVar1 + uVar15 + 3);\n                      *(undefined1 *)&c->h0 = public_blob_len._3_1_;\n                      *(char *)((int)&c->h0 + 1) = (char)((uint)public_blob_len >> 0x10);\n                      *(char *)((int)&c->h0 + 2) = (char)((uint)public_blob_len >> 8);\n                      *(char *)((int)&c->h0 + 3) = (char)public_blob_len;\n                      memcpy(&c->h1,local_13c,public_blob_len);\n                      puVar2 = (undefined1 *)((int)c->data + iVar7 + -0x18);\n                      *puVar2 = private_blob_len._3_1_;\n                      puVar2[1] = (char)((uint)private_blob_len >> 0x10);\n                      puVar2[2] = (char)((uint)private_blob_len >> 8);\n                      puVar2[3] = (char)private_blob_len;\n                      memcpy(puVar2 + 4,local_140,private_blob_len);\n                      bVar21 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((passphrase != (char *)0x0) && (private_blob_len % (int)local_124 == 0)) {\n                      c = (SHA_CTX *)&s;\n                      SHA_Init(c);\n                      SHA_Bytes((SHA_State *)c,&DAT_0007db1c,4);\n                      SHA_Bytes((SHA_State *)c,passphrase,local_14c);\n                      SHA_Final((SHA_State *)c,key);\n                      SHA_Init(c);\n                      SHA_Bytes((SHA_State *)c,&DAT_0007db21,4);\n                      SHA_Bytes((SHA_State *)c,passphrase,local_14c);\n                      SHA_Final((SHA_State *)c,key + 0x14);\n                      aes256_decrypt_pubkey(key,(uchar *)local_140,private_blob_len);\n                      goto LAB_00055778;\n                    }\n                    pcVar11 = "file format error";\n                    ptr = (ssh2_userkey *)0x0;\nLAB_000554a5:\n                    safefree(pcVar8);\n                    safefree(pbVar10);\n                    safefree(local_144);\n                  }\n                  if (local_13c != (uchar *)0x0) {\n                    safefree(local_13c);\n                  }\n                  if (local_140 != (SHA_CTX *)0x0) {\n                    smemclr(local_140,private_blob_len);\n                    safefree(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar10;\n              pbVar18 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar21 = *pbVar16 < *pbVar18;\n                bVar20 = *pbVar16 == *pbVar18;\n                pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n              } while (bVar20);\n              if ((!bVar21 && !bVar20) == bVar21) {\n                local_124 = 1;\n                bVar20 = false;\n                goto LAB_000551a8;\n              }\n            }\n            ptr = (ssh2_userkey *)0x0;\n            fclose(__stream);\n            pcVar11 = "file format error";\n            safefree(pbVar10);\n            goto LAB_00055070;\n          }\n        }\n      }\nLAB_0005510e:\n      pcVar11 = "file format error";\n      ptr = (ssh2_userkey *)0x0;\n      fclose(__stream);\n    }" else (compound_statement "{\n      iVar7 = 0x16;\n      pbVar10 = (byte *)header;\n      pbVar16 = (byte *)"PuTTY-User-Key-File-2";\n      do {\n        if (iVar7 == 0) break;\n        iVar7 = iVar7 + -1;\n        bVar20 = *pbVar10 < *pbVar16;\n        bVar22 = *pbVar10 == *pbVar16;\n        pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1;\n        pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n      } while (bVar22);\n      bVar6 = (!bVar20 && !bVar22) - bVar20;\n      bVar20 = false;\n      bVar22 = bVar6 == 0;\n      if (!bVar22) {\n        iVar7 = 0x16;\n        pbVar10 = (byte *)header;\n        pbVar16 = (byte *)"PuTTY-User-Key-File-1";\n        do {\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar20 = *pbVar10 < *pbVar16;\n          bVar22 = *pbVar10 == *pbVar16;\n          pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n        } while (bVar22);\n        bVar21 = false;\n        bVar20 = (!bVar20 && !bVar22) == bVar20;\n        if (!bVar20) {\n          iVar7 = 0x14;\n          pbVar10 = (byte *)header;\n          pbVar16 = (byte *)"PuTTY-User-Key-File-";\n          do {\n            if (iVar7 == 0) break;\n            iVar7 = iVar7 + -1;\n            bVar21 = *pbVar10 < *pbVar16;\n            bVar20 = *pbVar10 == *pbVar16;\n            pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1;\n            pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n          } while (bVar20);\n          if ((!bVar21 && !bVar20) == bVar21) {\n            pcVar11 = "PuTTY key format too new";\n            ptr = (ssh2_userkey *)0x0;\n            fclose(__stream);\n          }\n          else {\n            pcVar11 = "not a PuTTY SSH-2 private key";\n            ptr = (ssh2_userkey *)0x0;\n            fclose(__stream);\n          }\n          goto LAB_00055070;\n        }\n        old_keyfile_warning();\n        bVar6 = 1;\n      }\n      pcVar8 = read_body((FILE *)__stream);\n      if (pcVar8 == (char *)0x0) goto LAB_0005510e;\n      namelen = strlen(pcVar8);\n      psVar9 = find_pubkey_alg_len(namelen,pcVar8);\n      if (psVar9 == (ssh_signkey *)0x0) {\n        pcVar11 = "file format error";\n        safefree(pcVar8);\n        ptr = (ssh2_userkey *)0x0;\n        fclose(__stream);\n        goto LAB_00055070;\n      }\n      safefree(pcVar8);\n      iVar7 = read_header((FILE *)__stream,header);\n      bVar20 = false;\n      bVar22 = iVar7 == 0;\n      if (!bVar22) {\n        iVar7 = 0xb;\n        pbVar10 = (byte *)header;\n        pbVar16 = (byte *)"Encryption";\n        do {\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar20 = *pbVar10 < *pbVar16;\n          bVar22 = *pbVar10 == *pbVar16;\n          pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n        } while (bVar22);\n        if ((!bVar20 && !bVar22) == bVar20) {\n          pbVar10 = (byte *)read_body((FILE *)__stream);\n          bVar20 = false;\n          bVar22 = pbVar10 == (byte *)0x0;\n          if (!bVar22) {\n            iVar7 = 0xb;\n            pbVar16 = pbVar10;\n            pbVar18 = (byte *)"aes256-cbc";\n            do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar20 = *pbVar16 < *pbVar18;\n              bVar22 = *pbVar16 == *pbVar18;\n              pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n              pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n            } while (bVar22);\n            bVar21 = false;\n            bVar20 = (!bVar20 && !bVar22) == bVar20;\n            if (bVar20) {\n              local_124 = 0x10;\n              bVar20 = true;\nLAB_000551a8:\n              iVar7 = read_header((FILE *)__stream,header);\n              bVar22 = false;\n              bVar21 = iVar7 == 0;\n              if (!bVar21) {\n                iVar7 = 8;\n                pbVar16 = (byte *)header;\n                pbVar18 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar22 = *pbVar16 < *pbVar18;\n                  bVar21 = *pbVar16 == *pbVar18;\n                  pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                  pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n                } while (bVar21);\n                if ((!bVar22 && !bVar21) == bVar22) {\n                  pcVar8 = read_body((FILE *)__stream);\n                  if (pcVar8 == (char *)0x0) {\n                    pcVar11 = "file format error";\n                    ptr = (ssh2_userkey *)0x0;\n                    fclose(__stream);\n                    safefree(pbVar10);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = read_header((FILE *)__stream,header);\n                  bVar22 = false;\n                  bVar21 = iVar7 == 0;\n                  if (bVar21) {\nLAB_000555ad:\n                    local_140 = (SHA_CTX *)0x0;\n                    local_13c = (uchar *)0x0;\nLAB_0005553d:\n                    pcVar11 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    ptr = (ssh2_userkey *)0x0;\n                    safefree(pcVar8);\n                    safefree(pbVar10);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = (byte *)header;\n                    pbVar18 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar22 = *pbVar16 < *pbVar18;\n                      bVar21 = *pbVar16 == *pbVar18;\n                      pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                      pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n                    } while (bVar21);\n                    if ((!bVar22 && !bVar21) != bVar22) goto LAB_000555ad;\n                    pcVar11 = read_body((FILE *)__stream);\n                    if (pcVar11 == (char *)0x0) goto LAB_000555ad;\n                    iVar7 = userkey_parse_line_counter(pcVar11);\n                    safefree(pcVar11);\n                    if (iVar7 < 0) goto LAB_000555ad;\n                    local_13c = read_blob((FILE *)__stream,iVar7,&public_blob_len);\n                    if (local_13c == (uchar *)0x0) goto LAB_000555ad;\n                    iVar7 = read_header((FILE *)__stream,header);\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (SHA_CTX *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    iVar7 = strcmp(header,"Private-Lines");\n                    local_140 = (SHA_CTX *)0x0;\n                    if (iVar7 != 0) goto LAB_0005553d;\n                    c = (SHA_CTX *)read_body((FILE *)__stream);\n                    local_140 = c;\n                    if (c == (SHA_CTX *)0x0) goto LAB_0005553d;\n                    iVar7 = userkey_parse_line_counter((char *)c);\n                    safefree(c);\n                    if (iVar7 < 0) goto LAB_00055535;\n                    local_140 = (SHA_CTX *)read_blob((FILE *)__stream,iVar7,&private_blob_len);\n                    if (local_140 == (SHA_CTX *)0x0) goto LAB_0005553d;\n                    iVar7 = read_header((FILE *)__stream,header);\n                    if (iVar7 == 0) goto LAB_0005553d;\n                    iVar7 = strcmp(header,"Private-MAC");\n                    if (iVar7 != 0) {\n                      iVar7 = strcmp(header,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar6 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = read_body((FILE *)__stream);\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar22 = false;\n                      fclose(__stream);\n                      if (bVar20) goto LAB_000556cb;\nLAB_00055378:\n                      bVar21 = false;\n                      local_124 = private_blob_len;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar22) {\n                        puVar17 = (uchar *)"putty-private-key-file-mac-key";\n                        puVar19 = key;\n                        for (iVar7 = 0x1f; iVar7 != 0; iVar7 = iVar7 + -1) {\n                          *puVar19 = *puVar17;\n                          puVar17 = puVar17 + (uint)bVar23 * -2 + 1;\n                          puVar19 = puVar19 + (uint)bVar23 * -2 + 1;\n                        }\n                        c_00 = (SHA_CTX *)&s;\n                        SHA_Init(c_00);\n                        SHA_Bytes((SHA_State *)c_00,key,0x1e);\n                        if ((passphrase != (char *)0x0) && (bVar20)) {\n                          SHA_Bytes((SHA_State *)c_00,passphrase,local_14c);\n                        }\n                        c = (SHA_CTX *)passphrase;\n                        SHA_Final((SHA_State *)c_00,mackey);\n                        hmac_sha1_simple(mackey,0x14,local_134,local_124,binary);\n                        smemclr(mackey,0x14);\n                        sVar24 = 0x60;\n                        smemclr(c_00,0x60);\n                      }\n                      else {\n                        passphrase = (char *)binary;\n                        sVar24 = local_124;\n                        SHA_Simple(local_134,local_124,(uchar *)passphrase);\n                        c_00 = (SHA_CTX *)0x0;\n                      }\n                      if (bVar21) {\n                        c = c_00;\n                        smemclr(local_134,local_124);\n                        safefree(local_134);\n                        sVar24 = local_124;\n                        passphrase = (char *)c_00;\n                      }\n                      iVar7 = 0;\n                      do {\n                        puVar17 = binary + iVar7;\n                        iVar5 = iVar7 * 2;\n                        iVar7 = iVar7 + 1;\n                        __sprintf_chk(key + iVar5,1,0xffffffff,&DAT_0007dc2b,*puVar17,sVar24,\n                                      passphrase,c);\n                      } while (iVar7 != 0x14);\n                      iVar7 = strcmp(local_144,(char *)key);\n                      if (iVar7 != 0) {\n                        if (bVar20) {\n                          pcVar11 = "wrong passphrase";\n                          ptr = &ssh2_wrong_passphrase;\n                        }\n                        else {\n                          pcVar11 = "MAC failed";\n                          ptr = (ssh2_userkey *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      safefree(local_144);\n                      ptr = (ssh2_userkey *)safemalloc(1,0xc);\n                      ptr->comment = pcVar8;\n                      ptr->alg = psVar9;\n                      pvVar12 = (*psVar9->createkey)\n                                          (psVar9,local_13c,public_blob_len,(uchar *)local_140,\n                                           private_blob_len);\n                      ptr->data = pvVar12;\n                      if (pvVar12 != (void *)0x0) {\n                        safefree(local_13c);\n                        smemclr(local_140,private_blob_len);\n                        safefree(local_140);\n                        safefree(pbVar10);\n                        if (errorstr != (char **)0x0) {\n                          *errorstr = (char *)0x0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar11 = "createkey failed";\n                      safefree(ptr);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = read_body((FILE *)__stream);\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar22 = bVar20;\n                    if (!bVar20) {\n                      bVar22 = true;\nLAB_00055778:\n                      if (bVar6 != 0) goto LAB_00055378;\n                      uVar13 = 0xffffffff;\n                      pcVar11 = psVar9->name;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar3 = *pcVar11;\n                        pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1;\n                      } while (cVar3 != '\0');\n                      uVar13 = ~uVar13;\n                      __n = uVar13 - 1;\n                      uVar14 = 0xffffffff;\n                      pbVar16 = pbVar10;\n                      do {\n                        if (uVar14 == 0) break;\n                        uVar14 = uVar14 - 1;\n                        bVar6 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                      } while (bVar6 != 0);\n                      uVar15 = 0xffffffff;\n                      uVar14 = ~uVar14;\n                      __n_01 = uVar14 - 1;\n                      pcVar11 = pcVar8;\n                      do {\n                        if (uVar15 == 0) break;\n                        uVar15 = uVar15 - 1;\n                        cVar3 = *pcVar11;\n                        pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1;\n                      } while (cVar3 != '\0');\n                      uVar15 = ~uVar15;\n                      __n_00 = uVar15 - 1;\n                      local_124 = uVar15 + uVar14 + uVar13 + public_blob_len + 0x11 +\n                                  private_blob_len;\n                      local_134 = (SHA_CTX *)safemalloc(local_124,1);\n                      local_134->h0 =\n                           __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                           __n * 0x1000000;\n                      memcpy(&local_134->h1,psVar9->name,__n);\n                      puVar1 = (uint *)((int)local_134->data + (uVar13 - 0x19));\n                      *puVar1 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8 |\n                                __n_01 * 0x1000000;\n                      memcpy(puVar1 + 1,pbVar10,__n_01);\n                      puVar1 = (uint *)((int)puVar1 + uVar14 + 3);\n                      *puVar1 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8 |\n                                __n_00 * 0x1000000;\n                      memcpy(puVar1 + 1,pcVar8,__n_00);\n                      iVar7 = public_blob_len;\n                      c = (SHA_CTX *)((int)puVar1 + uVar15 + 3);\n                      *(undefined1 *)&c->h0 = public_blob_len._3_1_;\n                      *(char *)((int)&c->h0 + 1) = (char)((uint)public_blob_len >> 0x10);\n                      *(char *)((int)&c->h0 + 2) = (char)((uint)public_blob_len >> 8);\n                      *(char *)((int)&c->h0 + 3) = (char)public_blob_len;\n                      memcpy(&c->h1,local_13c,public_blob_len);\n                      puVar2 = (undefined1 *)((int)c->data + iVar7 + -0x18);\n                      *puVar2 = private_blob_len._3_1_;\n                      puVar2[1] = (char)((uint)private_blob_len >> 0x10);\n                      puVar2[2] = (char)((uint)private_blob_len >> 8);\n                      puVar2[3] = (char)private_blob_len;\n                      memcpy(puVar2 + 4,local_140,private_blob_len);\n                      bVar21 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((passphrase != (char *)0x0) && (private_blob_len % (int)local_124 == 0)) {\n                      c = (SHA_CTX *)&s;\n                      SHA_Init(c);\n                      SHA_Bytes((SHA_State *)c,&DAT_0007db1c,4);\n                      SHA_Bytes((SHA_State *)c,passphrase,local_14c);\n                      SHA_Final((SHA_State *)c,key);\n                      SHA_Init(c);\n                      SHA_Bytes((SHA_State *)c,&DAT_0007db21,4);\n                      SHA_Bytes((SHA_State *)c,passphrase,local_14c);\n                      SHA_Final((SHA_State *)c,key + 0x14);\n                      aes256_decrypt_pubkey(key,(uchar *)local_140,private_blob_len);\n                      goto LAB_00055778;\n                    }\n                    pcVar11 = "file format error";\n                    ptr = (ssh2_userkey *)0x0;\nLAB_000554a5:\n                    safefree(pcVar8);\n                    safefree(pbVar10);\n                    safefree(local_144);\n                  }\n                  if (local_13c != (uchar *)0x0) {\n                    safefree(local_13c);\n                  }\n                  if (local_140 != (SHA_CTX *)0x0) {\n                    smemclr(local_140,private_blob_len);\n                    safefree(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar10;\n              pbVar18 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar21 = *pbVar16 < *pbVar18;\n                bVar20 = *pbVar16 == *pbVar18;\n                pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n              } while (bVar20);\n              if ((!bVar21 && !bVar20) == bVar21) {\n                local_124 = 1;\n                bVar20 = false;\n                goto LAB_000551a8;\n              }\n            }\n            ptr = (ssh2_userkey *)0x0;\n            fclose(__stream);\n            pcVar11 = "file format error";\n            safefree(pbVar10);\n            goto LAB_00055070;\n          }\n        }\n      }\nLAB_0005510e:\n      pcVar11 = "file format error";\n      ptr = (ssh2_userkey *)0x0;\n      fclose(__stream);\n    }" { (expression_statement "iVar7 = 0x16;" (assignment_expression "iVar7 = 0x16" identifier = number_literal) ;) (expression_statement "pbVar10 = (byte *)header;" (assignment_expression "pbVar10 = (byte *)header" identifier = (cast_expression "(byte *)header" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "pbVar16 = (byte *)"PuTTY-User-Key-File-2";" (assignment_expression "pbVar16 = (byte *)"PuTTY-User-Key-File-2"" identifier = (cast_expression "(byte *)"PuTTY-User-Key-File-2"" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""PuTTY-User-Key-File-2"" " string_content "))) ;) (do_statement "do {\n        if (iVar7 == 0) break;\n        iVar7 = iVar7 + -1;\n        bVar20 = *pbVar10 < *pbVar16;\n        bVar22 = *pbVar10 == *pbVar16;\n        pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1;\n        pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n      } while (bVar22);" do (compound_statement "{\n        if (iVar7 == 0) break;\n        iVar7 = iVar7 + -1;\n        bVar20 = *pbVar10 < *pbVar16;\n        bVar22 = *pbVar10 == *pbVar16;\n        pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1;\n        pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n      }" { (if_statement "if (iVar7 == 0) break;" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar7 = iVar7 + -1;" (assignment_expression "iVar7 = iVar7 + -1" identifier = (binary_expression "iVar7 + -1" identifier + number_literal)) ;) (expression_statement "bVar20 = *pbVar10 < *pbVar16;" (assignment_expression "bVar20 = *pbVar10 < *pbVar16" identifier = (binary_expression "*pbVar10 < *pbVar16" (pointer_expression "*pbVar10" * identifier) < (pointer_expression "*pbVar16" * identifier))) ;) (expression_statement "bVar22 = *pbVar10 == *pbVar16;" (assignment_expression "bVar22 = *pbVar10 == *pbVar16" identifier = (binary_expression "*pbVar10 == *pbVar16" (pointer_expression "*pbVar10" * identifier) == (pointer_expression "*pbVar16" * identifier))) ;) (expression_statement "pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1;" (assignment_expression "pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1" identifier = (binary_expression "pbVar10 + (uint)bVar23 * -2 + 1" (binary_expression "pbVar10 + (uint)bVar23 * -2" identifier + (binary_expression "(uint)bVar23 * -2" (cast_expression "(uint)bVar23" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;" (assignment_expression "pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1" identifier = (binary_expression "pbVar16 + (uint)bVar23 * -2 + 1" (binary_expression "pbVar16 + (uint)bVar23 * -2" identifier + (binary_expression "(uint)bVar23 * -2" (cast_expression "(uint)bVar23" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar22)" ( identifier )) ;) (expression_statement "bVar6 = (!bVar20 && !bVar22) - bVar20;" (assignment_expression "bVar6 = (!bVar20 && !bVar22) - bVar20" identifier = (binary_expression "(!bVar20 && !bVar22) - bVar20" (parenthesized_expression "(!bVar20 && !bVar22)" ( (binary_expression "!bVar20 && !bVar22" (unary_expression "!bVar20" ! identifier) && (unary_expression "!bVar22" ! identifier)) )) - identifier)) ;) (expression_statement "bVar20 = false;" (assignment_expression "bVar20 = false" identifier = false) ;) (expression_statement "bVar22 = bVar6 == 0;" (assignment_expression "bVar22 = bVar6 == 0" identifier = (binary_expression "bVar6 == 0" identifier == number_literal)) ;) (if_statement "if (!bVar22) {\n        iVar7 = 0x16;\n        pbVar10 = (byte *)header;\n        pbVar16 = (byte *)"PuTTY-User-Key-File-1";\n        do {\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar20 = *pbVar10 < *pbVar16;\n          bVar22 = *pbVar10 == *pbVar16;\n          pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n        } while (bVar22);\n        bVar21 = false;\n        bVar20 = (!bVar20 && !bVar22) == bVar20;\n        if (!bVar20) {\n          iVar7 = 0x14;\n          pbVar10 = (byte *)header;\n          pbVar16 = (byte *)"PuTTY-User-Key-File-";\n          do {\n            if (iVar7 == 0) break;\n            iVar7 = iVar7 + -1;\n            bVar21 = *pbVar10 < *pbVar16;\n            bVar20 = *pbVar10 == *pbVar16;\n            pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1;\n            pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n          } while (bVar20);\n          if ((!bVar21 && !bVar20) == bVar21) {\n            pcVar11 = "PuTTY key format too new";\n            ptr = (ssh2_userkey *)0x0;\n            fclose(__stream);\n          }\n          else {\n            pcVar11 = "not a PuTTY SSH-2 private key";\n            ptr = (ssh2_userkey *)0x0;\n            fclose(__stream);\n          }\n          goto LAB_00055070;\n        }\n        old_keyfile_warning();\n        bVar6 = 1;\n      }" if (parenthesized_expression "(!bVar22)" ( (unary_expression "!bVar22" ! identifier) )) (compound_statement "{\n        iVar7 = 0x16;\n        pbVar10 = (byte *)header;\n        pbVar16 = (byte *)"PuTTY-User-Key-File-1";\n        do {\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar20 = *pbVar10 < *pbVar16;\n          bVar22 = *pbVar10 == *pbVar16;\n          pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n        } while (bVar22);\n        bVar21 = false;\n        bVar20 = (!bVar20 && !bVar22) == bVar20;\n        if (!bVar20) {\n          iVar7 = 0x14;\n          pbVar10 = (byte *)header;\n          pbVar16 = (byte *)"PuTTY-User-Key-File-";\n          do {\n            if (iVar7 == 0) break;\n            iVar7 = iVar7 + -1;\n            bVar21 = *pbVar10 < *pbVar16;\n            bVar20 = *pbVar10 == *pbVar16;\n            pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1;\n            pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n          } while (bVar20);\n          if ((!bVar21 && !bVar20) == bVar21) {\n            pcVar11 = "PuTTY key format too new";\n            ptr = (ssh2_userkey *)0x0;\n            fclose(__stream);\n          }\n          else {\n            pcVar11 = "not a PuTTY SSH-2 private key";\n            ptr = (ssh2_userkey *)0x0;\n            fclose(__stream);\n          }\n          goto LAB_00055070;\n        }\n        old_keyfile_warning();\n        bVar6 = 1;\n      }" { (expression_statement "iVar7 = 0x16;" (assignment_expression "iVar7 = 0x16" identifier = number_literal) ;) (expression_statement "pbVar10 = (byte *)header;" (assignment_expression "pbVar10 = (byte *)header" identifier = (cast_expression "(byte *)header" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "pbVar16 = (byte *)"PuTTY-User-Key-File-1";" (assignment_expression "pbVar16 = (byte *)"PuTTY-User-Key-File-1"" identifier = (cast_expression "(byte *)"PuTTY-User-Key-File-1"" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""PuTTY-User-Key-File-1"" " string_content "))) ;) (do_statement "do {\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar20 = *pbVar10 < *pbVar16;\n          bVar22 = *pbVar10 == *pbVar16;\n          pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n        } while (bVar22);" do (compound_statement "{\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar20 = *pbVar10 < *pbVar16;\n          bVar22 = *pbVar10 == *pbVar16;\n          pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n        }" { (if_statement "if (iVar7 == 0) break;" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar7 = iVar7 + -1;" (assignment_expression "iVar7 = iVar7 + -1" identifier = (binary_expression "iVar7 + -1" identifier + number_literal)) ;) (expression_statement "bVar20 = *pbVar10 < *pbVar16;" (assignment_expression "bVar20 = *pbVar10 < *pbVar16" identifier = (binary_expression "*pbVar10 < *pbVar16" (pointer_expression "*pbVar10" * identifier) < (pointer_expression "*pbVar16" * identifier))) ;) (expression_statement "bVar22 = *pbVar10 == *pbVar16;" (assignment_expression "bVar22 = *pbVar10 == *pbVar16" identifier = (binary_expression "*pbVar10 == *pbVar16" (pointer_expression "*pbVar10" * identifier) == (pointer_expression "*pbVar16" * identifier))) ;) (expression_statement "pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1;" (assignment_expression "pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1" identifier = (binary_expression "pbVar10 + (uint)bVar23 * -2 + 1" (binary_expression "pbVar10 + (uint)bVar23 * -2" identifier + (binary_expression "(uint)bVar23 * -2" (cast_expression "(uint)bVar23" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;" (assignment_expression "pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1" identifier = (binary_expression "pbVar16 + (uint)bVar23 * -2 + 1" (binary_expression "pbVar16 + (uint)bVar23 * -2" identifier + (binary_expression "(uint)bVar23 * -2" (cast_expression "(uint)bVar23" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar22)" ( identifier )) ;) (expression_statement "bVar21 = false;" (assignment_expression "bVar21 = false" identifier = false) ;) (expression_statement "bVar20 = (!bVar20 && !bVar22) == bVar20;" (assignment_expression "bVar20 = (!bVar20 && !bVar22) == bVar20" identifier = (binary_expression "(!bVar20 && !bVar22) == bVar20" (parenthesized_expression "(!bVar20 && !bVar22)" ( (binary_expression "!bVar20 && !bVar22" (unary_expression "!bVar20" ! identifier) && (unary_expression "!bVar22" ! identifier)) )) == identifier)) ;) (if_statement "if (!bVar20) {\n          iVar7 = 0x14;\n          pbVar10 = (byte *)header;\n          pbVar16 = (byte *)"PuTTY-User-Key-File-";\n          do {\n            if (iVar7 == 0) break;\n            iVar7 = iVar7 + -1;\n            bVar21 = *pbVar10 < *pbVar16;\n            bVar20 = *pbVar10 == *pbVar16;\n            pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1;\n            pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n          } while (bVar20);\n          if ((!bVar21 && !bVar20) == bVar21) {\n            pcVar11 = "PuTTY key format too new";\n            ptr = (ssh2_userkey *)0x0;\n            fclose(__stream);\n          }\n          else {\n            pcVar11 = "not a PuTTY SSH-2 private key";\n            ptr = (ssh2_userkey *)0x0;\n            fclose(__stream);\n          }\n          goto LAB_00055070;\n        }" if (parenthesized_expression "(!bVar20)" ( (unary_expression "!bVar20" ! identifier) )) (compound_statement "{\n          iVar7 = 0x14;\n          pbVar10 = (byte *)header;\n          pbVar16 = (byte *)"PuTTY-User-Key-File-";\n          do {\n            if (iVar7 == 0) break;\n            iVar7 = iVar7 + -1;\n            bVar21 = *pbVar10 < *pbVar16;\n            bVar20 = *pbVar10 == *pbVar16;\n            pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1;\n            pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n          } while (bVar20);\n          if ((!bVar21 && !bVar20) == bVar21) {\n            pcVar11 = "PuTTY key format too new";\n            ptr = (ssh2_userkey *)0x0;\n            fclose(__stream);\n          }\n          else {\n            pcVar11 = "not a PuTTY SSH-2 private key";\n            ptr = (ssh2_userkey *)0x0;\n            fclose(__stream);\n          }\n          goto LAB_00055070;\n        }" { (expression_statement "iVar7 = 0x14;" (assignment_expression "iVar7 = 0x14" identifier = number_literal) ;) (expression_statement "pbVar10 = (byte *)header;" (assignment_expression "pbVar10 = (byte *)header" identifier = (cast_expression "(byte *)header" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "pbVar16 = (byte *)"PuTTY-User-Key-File-";" (assignment_expression "pbVar16 = (byte *)"PuTTY-User-Key-File-"" identifier = (cast_expression "(byte *)"PuTTY-User-Key-File-"" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""PuTTY-User-Key-File-"" " string_content "))) ;) (do_statement "do {\n            if (iVar7 == 0) break;\n            iVar7 = iVar7 + -1;\n            bVar21 = *pbVar10 < *pbVar16;\n            bVar20 = *pbVar10 == *pbVar16;\n            pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1;\n            pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n          } while (bVar20);" do (compound_statement "{\n            if (iVar7 == 0) break;\n            iVar7 = iVar7 + -1;\n            bVar21 = *pbVar10 < *pbVar16;\n            bVar20 = *pbVar10 == *pbVar16;\n            pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1;\n            pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n          }" { (if_statement "if (iVar7 == 0) break;" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar7 = iVar7 + -1;" (assignment_expression "iVar7 = iVar7 + -1" identifier = (binary_expression "iVar7 + -1" identifier + number_literal)) ;) (expression_statement "bVar21 = *pbVar10 < *pbVar16;" (assignment_expression "bVar21 = *pbVar10 < *pbVar16" identifier = (binary_expression "*pbVar10 < *pbVar16" (pointer_expression "*pbVar10" * identifier) < (pointer_expression "*pbVar16" * identifier))) ;) (expression_statement "bVar20 = *pbVar10 == *pbVar16;" (assignment_expression "bVar20 = *pbVar10 == *pbVar16" identifier = (binary_expression "*pbVar10 == *pbVar16" (pointer_expression "*pbVar10" * identifier) == (pointer_expression "*pbVar16" * identifier))) ;) (expression_statement "pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1;" (assignment_expression "pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1" identifier = (binary_expression "pbVar10 + (uint)bVar23 * -2 + 1" (binary_expression "pbVar10 + (uint)bVar23 * -2" identifier + (binary_expression "(uint)bVar23 * -2" (cast_expression "(uint)bVar23" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;" (assignment_expression "pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1" identifier = (binary_expression "pbVar16 + (uint)bVar23 * -2 + 1" (binary_expression "pbVar16 + (uint)bVar23 * -2" identifier + (binary_expression "(uint)bVar23 * -2" (cast_expression "(uint)bVar23" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar20)" ( identifier )) ;) (if_statement "if ((!bVar21 && !bVar20) == bVar21) {\n            pcVar11 = "PuTTY key format too new";\n            ptr = (ssh2_userkey *)0x0;\n            fclose(__stream);\n          }\n          else {\n            pcVar11 = "not a PuTTY SSH-2 private key";\n            ptr = (ssh2_userkey *)0x0;\n            fclose(__stream);\n          }" if (parenthesized_expression "((!bVar21 && !bVar20) == bVar21)" ( (binary_expression "(!bVar21 && !bVar20) == bVar21" (parenthesized_expression "(!bVar21 && !bVar20)" ( (binary_expression "!bVar21 && !bVar20" (unary_expression "!bVar21" ! identifier) && (unary_expression "!bVar20" ! identifier)) )) == identifier) )) (compound_statement "{\n            pcVar11 = "PuTTY key format too new";\n            ptr = (ssh2_userkey *)0x0;\n            fclose(__stream);\n          }" { (expression_statement "pcVar11 = "PuTTY key format too new";" (assignment_expression "pcVar11 = "PuTTY key format too new"" identifier = (string_literal ""PuTTY key format too new"" " string_content ")) ;) (expression_statement "ptr = (ssh2_userkey *)0x0;" (assignment_expression "ptr = (ssh2_userkey *)0x0" identifier = (cast_expression "(ssh2_userkey *)0x0" ( (type_descriptor "ssh2_userkey *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "fclose(__stream);" (call_expression "fclose(__stream)" identifier (argument_list "(__stream)" ( identifier ))) ;) }) (else_clause "else {\n            pcVar11 = "not a PuTTY SSH-2 private key";\n            ptr = (ssh2_userkey *)0x0;\n            fclose(__stream);\n          }" else (compound_statement "{\n            pcVar11 = "not a PuTTY SSH-2 private key";\n            ptr = (ssh2_userkey *)0x0;\n            fclose(__stream);\n          }" { (expression_statement "pcVar11 = "not a PuTTY SSH-2 private key";" (assignment_expression "pcVar11 = "not a PuTTY SSH-2 private key"" identifier = (string_literal ""not a PuTTY SSH-2 private key"" " string_content ")) ;) (expression_statement "ptr = (ssh2_userkey *)0x0;" (assignment_expression "ptr = (ssh2_userkey *)0x0" identifier = (cast_expression "(ssh2_userkey *)0x0" ( (type_descriptor "ssh2_userkey *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "fclose(__stream);" (call_expression "fclose(__stream)" identifier (argument_list "(__stream)" ( identifier ))) ;) }))) (goto_statement "goto LAB_00055070;" goto statement_identifier ;) })) (expression_statement "old_keyfile_warning();" (call_expression "old_keyfile_warning()" identifier (argument_list "()" ( ))) ;) (expression_statement "bVar6 = 1;" (assignment_expression "bVar6 = 1" identifier = number_literal) ;) })) (expression_statement "pcVar8 = read_body((FILE *)__stream);" (assignment_expression "pcVar8 = read_body((FILE *)__stream)" identifier = (call_expression "read_body((FILE *)__stream)" identifier (argument_list "((FILE *)__stream)" ( (cast_expression "(FILE *)__stream" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (if_statement "if (pcVar8 == (char *)0x0) goto LAB_0005510e;" if (parenthesized_expression "(pcVar8 == (char *)0x0)" ( (binary_expression "pcVar8 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0005510e;" goto statement_identifier ;)) (expression_statement "namelen = strlen(pcVar8);" (assignment_expression "namelen = strlen(pcVar8)" identifier = (call_expression "strlen(pcVar8)" identifier (argument_list "(pcVar8)" ( identifier )))) ;) (expression_statement "psVar9 = find_pubkey_alg_len(namelen,pcVar8);" (assignment_expression "psVar9 = find_pubkey_alg_len(namelen,pcVar8)" identifier = (call_expression "find_pubkey_alg_len(namelen,pcVar8)" identifier (argument_list "(namelen,pcVar8)" ( identifier , identifier )))) ;) (if_statement "if (psVar9 == (ssh_signkey *)0x0) {\n        pcVar11 = "file format error";\n        safefree(pcVar8);\n        ptr = (ssh2_userkey *)0x0;\n        fclose(__stream);\n        goto LAB_00055070;\n      }" if (parenthesized_expression "(psVar9 == (ssh_signkey *)0x0)" ( (binary_expression "psVar9 == (ssh_signkey *)0x0" identifier == (cast_expression "(ssh_signkey *)0x0" ( (type_descriptor "ssh_signkey *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pcVar11 = "file format error";\n        safefree(pcVar8);\n        ptr = (ssh2_userkey *)0x0;\n        fclose(__stream);\n        goto LAB_00055070;\n      }" { (expression_statement "pcVar11 = "file format error";" (assignment_expression "pcVar11 = "file format error"" identifier = (string_literal ""file format error"" " string_content ")) ;) (expression_statement "safefree(pcVar8);" (call_expression "safefree(pcVar8)" identifier (argument_list "(pcVar8)" ( identifier ))) ;) (expression_statement "ptr = (ssh2_userkey *)0x0;" (assignment_expression "ptr = (ssh2_userkey *)0x0" identifier = (cast_expression "(ssh2_userkey *)0x0" ( (type_descriptor "ssh2_userkey *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "fclose(__stream);" (call_expression "fclose(__stream)" identifier (argument_list "(__stream)" ( identifier ))) ;) (goto_statement "goto LAB_00055070;" goto statement_identifier ;) })) (expression_statement "safefree(pcVar8);" (call_expression "safefree(pcVar8)" identifier (argument_list "(pcVar8)" ( identifier ))) ;) (expression_statement "iVar7 = read_header((FILE *)__stream,header);" (assignment_expression "iVar7 = read_header((FILE *)__stream,header)" identifier = (call_expression "read_header((FILE *)__stream,header)" identifier (argument_list "((FILE *)__stream,header)" ( (cast_expression "(FILE *)__stream" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier )))) ;) (expression_statement "bVar20 = false;" (assignment_expression "bVar20 = false" identifier = false) ;) (expression_statement "bVar22 = iVar7 == 0;" (assignment_expression "bVar22 = iVar7 == 0" identifier = (binary_expression "iVar7 == 0" identifier == number_literal)) ;) (if_statement "if (!bVar22) {\n        iVar7 = 0xb;\n        pbVar10 = (byte *)header;\n        pbVar16 = (byte *)"Encryption";\n        do {\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar20 = *pbVar10 < *pbVar16;\n          bVar22 = *pbVar10 == *pbVar16;\n          pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n        } while (bVar22);\n        if ((!bVar20 && !bVar22) == bVar20) {\n          pbVar10 = (byte *)read_body((FILE *)__stream);\n          bVar20 = false;\n          bVar22 = pbVar10 == (byte *)0x0;\n          if (!bVar22) {\n            iVar7 = 0xb;\n            pbVar16 = pbVar10;\n            pbVar18 = (byte *)"aes256-cbc";\n            do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar20 = *pbVar16 < *pbVar18;\n              bVar22 = *pbVar16 == *pbVar18;\n              pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n              pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n            } while (bVar22);\n            bVar21 = false;\n            bVar20 = (!bVar20 && !bVar22) == bVar20;\n            if (bVar20) {\n              local_124 = 0x10;\n              bVar20 = true;\nLAB_000551a8:\n              iVar7 = read_header((FILE *)__stream,header);\n              bVar22 = false;\n              bVar21 = iVar7 == 0;\n              if (!bVar21) {\n                iVar7 = 8;\n                pbVar16 = (byte *)header;\n                pbVar18 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar22 = *pbVar16 < *pbVar18;\n                  bVar21 = *pbVar16 == *pbVar18;\n                  pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                  pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n                } while (bVar21);\n                if ((!bVar22 && !bVar21) == bVar22) {\n                  pcVar8 = read_body((FILE *)__stream);\n                  if (pcVar8 == (char *)0x0) {\n                    pcVar11 = "file format error";\n                    ptr = (ssh2_userkey *)0x0;\n                    fclose(__stream);\n                    safefree(pbVar10);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = read_header((FILE *)__stream,header);\n                  bVar22 = false;\n                  bVar21 = iVar7 == 0;\n                  if (bVar21) {\nLAB_000555ad:\n                    local_140 = (SHA_CTX *)0x0;\n                    local_13c = (uchar *)0x0;\nLAB_0005553d:\n                    pcVar11 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    ptr = (ssh2_userkey *)0x0;\n                    safefree(pcVar8);\n                    safefree(pbVar10);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = (byte *)header;\n                    pbVar18 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar22 = *pbVar16 < *pbVar18;\n                      bVar21 = *pbVar16 == *pbVar18;\n                      pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                      pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n                    } while (bVar21);\n                    if ((!bVar22 && !bVar21) != bVar22) goto LAB_000555ad;\n                    pcVar11 = read_body((FILE *)__stream);\n                    if (pcVar11 == (char *)0x0) goto LAB_000555ad;\n                    iVar7 = userkey_parse_line_counter(pcVar11);\n                    safefree(pcVar11);\n                    if (iVar7 < 0) goto LAB_000555ad;\n                    local_13c = read_blob((FILE *)__stream,iVar7,&public_blob_len);\n                    if (local_13c == (uchar *)0x0) goto LAB_000555ad;\n                    iVar7 = read_header((FILE *)__stream,header);\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (SHA_CTX *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    iVar7 = strcmp(header,"Private-Lines");\n                    local_140 = (SHA_CTX *)0x0;\n                    if (iVar7 != 0) goto LAB_0005553d;\n                    c = (SHA_CTX *)read_body((FILE *)__stream);\n                    local_140 = c;\n                    if (c == (SHA_CTX *)0x0) goto LAB_0005553d;\n                    iVar7 = userkey_parse_line_counter((char *)c);\n                    safefree(c);\n                    if (iVar7 < 0) goto LAB_00055535;\n                    local_140 = (SHA_CTX *)read_blob((FILE *)__stream,iVar7,&private_blob_len);\n                    if (local_140 == (SHA_CTX *)0x0) goto LAB_0005553d;\n                    iVar7 = read_header((FILE *)__stream,header);\n                    if (iVar7 == 0) goto LAB_0005553d;\n                    iVar7 = strcmp(header,"Private-MAC");\n                    if (iVar7 != 0) {\n                      iVar7 = strcmp(header,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar6 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = read_body((FILE *)__stream);\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar22 = false;\n                      fclose(__stream);\n                      if (bVar20) goto LAB_000556cb;\nLAB_00055378:\n                      bVar21 = false;\n                      local_124 = private_blob_len;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar22) {\n                        puVar17 = (uchar *)"putty-private-key-file-mac-key";\n                        puVar19 = key;\n                        for (iVar7 = 0x1f; iVar7 != 0; iVar7 = iVar7 + -1) {\n                          *puVar19 = *puVar17;\n                          puVar17 = puVar17 + (uint)bVar23 * -2 + 1;\n                          puVar19 = puVar19 + (uint)bVar23 * -2 + 1;\n                        }\n                        c_00 = (SHA_CTX *)&s;\n                        SHA_Init(c_00);\n                        SHA_Bytes((SHA_State *)c_00,key,0x1e);\n                        if ((passphrase != (char *)0x0) && (bVar20)) {\n                          SHA_Bytes((SHA_State *)c_00,passphrase,local_14c);\n                        }\n                        c = (SHA_CTX *)passphrase;\n                        SHA_Final((SHA_State *)c_00,mackey);\n                        hmac_sha1_simple(mackey,0x14,local_134,local_124,binary);\n                        smemclr(mackey,0x14);\n                        sVar24 = 0x60;\n                        smemclr(c_00,0x60);\n                      }\n                      else {\n                        passphrase = (char *)binary;\n                        sVar24 = local_124;\n                        SHA_Simple(local_134,local_124,(uchar *)passphrase);\n                        c_00 = (SHA_CTX *)0x0;\n                      }\n                      if (bVar21) {\n                        c = c_00;\n                        smemclr(local_134,local_124);\n                        safefree(local_134);\n                        sVar24 = local_124;\n                        passphrase = (char *)c_00;\n                      }\n                      iVar7 = 0;\n                      do {\n                        puVar17 = binary + iVar7;\n                        iVar5 = iVar7 * 2;\n                        iVar7 = iVar7 + 1;\n                        __sprintf_chk(key + iVar5,1,0xffffffff,&DAT_0007dc2b,*puVar17,sVar24,\n                                      passphrase,c);\n                      } while (iVar7 != 0x14);\n                      iVar7 = strcmp(local_144,(char *)key);\n                      if (iVar7 != 0) {\n                        if (bVar20) {\n                          pcVar11 = "wrong passphrase";\n                          ptr = &ssh2_wrong_passphrase;\n                        }\n                        else {\n                          pcVar11 = "MAC failed";\n                          ptr = (ssh2_userkey *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      safefree(local_144);\n                      ptr = (ssh2_userkey *)safemalloc(1,0xc);\n                      ptr->comment = pcVar8;\n                      ptr->alg = psVar9;\n                      pvVar12 = (*psVar9->createkey)\n                                          (psVar9,local_13c,public_blob_len,(uchar *)local_140,\n                                           private_blob_len);\n                      ptr->data = pvVar12;\n                      if (pvVar12 != (void *)0x0) {\n                        safefree(local_13c);\n                        smemclr(local_140,private_blob_len);\n                        safefree(local_140);\n                        safefree(pbVar10);\n                        if (errorstr != (char **)0x0) {\n                          *errorstr = (char *)0x0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar11 = "createkey failed";\n                      safefree(ptr);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = read_body((FILE *)__stream);\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar22 = bVar20;\n                    if (!bVar20) {\n                      bVar22 = true;\nLAB_00055778:\n                      if (bVar6 != 0) goto LAB_00055378;\n                      uVar13 = 0xffffffff;\n                      pcVar11 = psVar9->name;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar3 = *pcVar11;\n                        pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1;\n                      } while (cVar3 != '\0');\n                      uVar13 = ~uVar13;\n                      __n = uVar13 - 1;\n                      uVar14 = 0xffffffff;\n                      pbVar16 = pbVar10;\n                      do {\n                        if (uVar14 == 0) break;\n                        uVar14 = uVar14 - 1;\n                        bVar6 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                      } while (bVar6 != 0);\n                      uVar15 = 0xffffffff;\n                      uVar14 = ~uVar14;\n                      __n_01 = uVar14 - 1;\n                      pcVar11 = pcVar8;\n                      do {\n                        if (uVar15 == 0) break;\n                        uVar15 = uVar15 - 1;\n                        cVar3 = *pcVar11;\n                        pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1;\n                      } while (cVar3 != '\0');\n                      uVar15 = ~uVar15;\n                      __n_00 = uVar15 - 1;\n                      local_124 = uVar15 + uVar14 + uVar13 + public_blob_len + 0x11 +\n                                  private_blob_len;\n                      local_134 = (SHA_CTX *)safemalloc(local_124,1);\n                      local_134->h0 =\n                           __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                           __n * 0x1000000;\n                      memcpy(&local_134->h1,psVar9->name,__n);\n                      puVar1 = (uint *)((int)local_134->data + (uVar13 - 0x19));\n                      *puVar1 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8 |\n                                __n_01 * 0x1000000;\n                      memcpy(puVar1 + 1,pbVar10,__n_01);\n                      puVar1 = (uint *)((int)puVar1 + uVar14 + 3);\n                      *puVar1 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8 |\n                                __n_00 * 0x1000000;\n                      memcpy(puVar1 + 1,pcVar8,__n_00);\n                      iVar7 = public_blob_len;\n                      c = (SHA_CTX *)((int)puVar1 + uVar15 + 3);\n                      *(undefined1 *)&c->h0 = public_blob_len._3_1_;\n                      *(char *)((int)&c->h0 + 1) = (char)((uint)public_blob_len >> 0x10);\n                      *(char *)((int)&c->h0 + 2) = (char)((uint)public_blob_len >> 8);\n                      *(char *)((int)&c->h0 + 3) = (char)public_blob_len;\n                      memcpy(&c->h1,local_13c,public_blob_len);\n                      puVar2 = (undefined1 *)((int)c->data + iVar7 + -0x18);\n                      *puVar2 = private_blob_len._3_1_;\n                      puVar2[1] = (char)((uint)private_blob_len >> 0x10);\n                      puVar2[2] = (char)((uint)private_blob_len >> 8);\n                      puVar2[3] = (char)private_blob_len;\n                      memcpy(puVar2 + 4,local_140,private_blob_len);\n                      bVar21 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((passphrase != (char *)0x0) && (private_blob_len % (int)local_124 == 0)) {\n                      c = (SHA_CTX *)&s;\n                      SHA_Init(c);\n                      SHA_Bytes((SHA_State *)c,&DAT_0007db1c,4);\n                      SHA_Bytes((SHA_State *)c,passphrase,local_14c);\n                      SHA_Final((SHA_State *)c,key);\n                      SHA_Init(c);\n                      SHA_Bytes((SHA_State *)c,&DAT_0007db21,4);\n                      SHA_Bytes((SHA_State *)c,passphrase,local_14c);\n                      SHA_Final((SHA_State *)c,key + 0x14);\n                      aes256_decrypt_pubkey(key,(uchar *)local_140,private_blob_len);\n                      goto LAB_00055778;\n                    }\n                    pcVar11 = "file format error";\n                    ptr = (ssh2_userkey *)0x0;\nLAB_000554a5:\n                    safefree(pcVar8);\n                    safefree(pbVar10);\n                    safefree(local_144);\n                  }\n                  if (local_13c != (uchar *)0x0) {\n                    safefree(local_13c);\n                  }\n                  if (local_140 != (SHA_CTX *)0x0) {\n                    smemclr(local_140,private_blob_len);\n                    safefree(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar10;\n              pbVar18 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar21 = *pbVar16 < *pbVar18;\n                bVar20 = *pbVar16 == *pbVar18;\n                pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n              } while (bVar20);\n              if ((!bVar21 && !bVar20) == bVar21) {\n                local_124 = 1;\n                bVar20 = false;\n                goto LAB_000551a8;\n              }\n            }\n            ptr = (ssh2_userkey *)0x0;\n            fclose(__stream);\n            pcVar11 = "file format error";\n            safefree(pbVar10);\n            goto LAB_00055070;\n          }\n        }\n      }" if (parenthesized_expression "(!bVar22)" ( (unary_expression "!bVar22" ! identifier) )) (compound_statement "{\n        iVar7 = 0xb;\n        pbVar10 = (byte *)header;\n        pbVar16 = (byte *)"Encryption";\n        do {\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar20 = *pbVar10 < *pbVar16;\n          bVar22 = *pbVar10 == *pbVar16;\n          pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n        } while (bVar22);\n        if ((!bVar20 && !bVar22) == bVar20) {\n          pbVar10 = (byte *)read_body((FILE *)__stream);\n          bVar20 = false;\n          bVar22 = pbVar10 == (byte *)0x0;\n          if (!bVar22) {\n            iVar7 = 0xb;\n            pbVar16 = pbVar10;\n            pbVar18 = (byte *)"aes256-cbc";\n            do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar20 = *pbVar16 < *pbVar18;\n              bVar22 = *pbVar16 == *pbVar18;\n              pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n              pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n            } while (bVar22);\n            bVar21 = false;\n            bVar20 = (!bVar20 && !bVar22) == bVar20;\n            if (bVar20) {\n              local_124 = 0x10;\n              bVar20 = true;\nLAB_000551a8:\n              iVar7 = read_header((FILE *)__stream,header);\n              bVar22 = false;\n              bVar21 = iVar7 == 0;\n              if (!bVar21) {\n                iVar7 = 8;\n                pbVar16 = (byte *)header;\n                pbVar18 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar22 = *pbVar16 < *pbVar18;\n                  bVar21 = *pbVar16 == *pbVar18;\n                  pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                  pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n                } while (bVar21);\n                if ((!bVar22 && !bVar21) == bVar22) {\n                  pcVar8 = read_body((FILE *)__stream);\n                  if (pcVar8 == (char *)0x0) {\n                    pcVar11 = "file format error";\n                    ptr = (ssh2_userkey *)0x0;\n                    fclose(__stream);\n                    safefree(pbVar10);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = read_header((FILE *)__stream,header);\n                  bVar22 = false;\n                  bVar21 = iVar7 == 0;\n                  if (bVar21) {\nLAB_000555ad:\n                    local_140 = (SHA_CTX *)0x0;\n                    local_13c = (uchar *)0x0;\nLAB_0005553d:\n                    pcVar11 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    ptr = (ssh2_userkey *)0x0;\n                    safefree(pcVar8);\n                    safefree(pbVar10);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = (byte *)header;\n                    pbVar18 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar22 = *pbVar16 < *pbVar18;\n                      bVar21 = *pbVar16 == *pbVar18;\n                      pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                      pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n                    } while (bVar21);\n                    if ((!bVar22 && !bVar21) != bVar22) goto LAB_000555ad;\n                    pcVar11 = read_body((FILE *)__stream);\n                    if (pcVar11 == (char *)0x0) goto LAB_000555ad;\n                    iVar7 = userkey_parse_line_counter(pcVar11);\n                    safefree(pcVar11);\n                    if (iVar7 < 0) goto LAB_000555ad;\n                    local_13c = read_blob((FILE *)__stream,iVar7,&public_blob_len);\n                    if (local_13c == (uchar *)0x0) goto LAB_000555ad;\n                    iVar7 = read_header((FILE *)__stream,header);\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (SHA_CTX *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    iVar7 = strcmp(header,"Private-Lines");\n                    local_140 = (SHA_CTX *)0x0;\n                    if (iVar7 != 0) goto LAB_0005553d;\n                    c = (SHA_CTX *)read_body((FILE *)__stream);\n                    local_140 = c;\n                    if (c == (SHA_CTX *)0x0) goto LAB_0005553d;\n                    iVar7 = userkey_parse_line_counter((char *)c);\n                    safefree(c);\n                    if (iVar7 < 0) goto LAB_00055535;\n                    local_140 = (SHA_CTX *)read_blob((FILE *)__stream,iVar7,&private_blob_len);\n                    if (local_140 == (SHA_CTX *)0x0) goto LAB_0005553d;\n                    iVar7 = read_header((FILE *)__stream,header);\n                    if (iVar7 == 0) goto LAB_0005553d;\n                    iVar7 = strcmp(header,"Private-MAC");\n                    if (iVar7 != 0) {\n                      iVar7 = strcmp(header,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar6 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = read_body((FILE *)__stream);\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar22 = false;\n                      fclose(__stream);\n                      if (bVar20) goto LAB_000556cb;\nLAB_00055378:\n                      bVar21 = false;\n                      local_124 = private_blob_len;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar22) {\n                        puVar17 = (uchar *)"putty-private-key-file-mac-key";\n                        puVar19 = key;\n                        for (iVar7 = 0x1f; iVar7 != 0; iVar7 = iVar7 + -1) {\n                          *puVar19 = *puVar17;\n                          puVar17 = puVar17 + (uint)bVar23 * -2 + 1;\n                          puVar19 = puVar19 + (uint)bVar23 * -2 + 1;\n                        }\n                        c_00 = (SHA_CTX *)&s;\n                        SHA_Init(c_00);\n                        SHA_Bytes((SHA_State *)c_00,key,0x1e);\n                        if ((passphrase != (char *)0x0) && (bVar20)) {\n                          SHA_Bytes((SHA_State *)c_00,passphrase,local_14c);\n                        }\n                        c = (SHA_CTX *)passphrase;\n                        SHA_Final((SHA_State *)c_00,mackey);\n                        hmac_sha1_simple(mackey,0x14,local_134,local_124,binary);\n                        smemclr(mackey,0x14);\n                        sVar24 = 0x60;\n                        smemclr(c_00,0x60);\n                      }\n                      else {\n                        passphrase = (char *)binary;\n                        sVar24 = local_124;\n                        SHA_Simple(local_134,local_124,(uchar *)passphrase);\n                        c_00 = (SHA_CTX *)0x0;\n                      }\n                      if (bVar21) {\n                        c = c_00;\n                        smemclr(local_134,local_124);\n                        safefree(local_134);\n                        sVar24 = local_124;\n                        passphrase = (char *)c_00;\n                      }\n                      iVar7 = 0;\n                      do {\n                        puVar17 = binary + iVar7;\n                        iVar5 = iVar7 * 2;\n                        iVar7 = iVar7 + 1;\n                        __sprintf_chk(key + iVar5,1,0xffffffff,&DAT_0007dc2b,*puVar17,sVar24,\n                                      passphrase,c);\n                      } while (iVar7 != 0x14);\n                      iVar7 = strcmp(local_144,(char *)key);\n                      if (iVar7 != 0) {\n                        if (bVar20) {\n                          pcVar11 = "wrong passphrase";\n                          ptr = &ssh2_wrong_passphrase;\n                        }\n                        else {\n                          pcVar11 = "MAC failed";\n                          ptr = (ssh2_userkey *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      safefree(local_144);\n                      ptr = (ssh2_userkey *)safemalloc(1,0xc);\n                      ptr->comment = pcVar8;\n                      ptr->alg = psVar9;\n                      pvVar12 = (*psVar9->createkey)\n                                          (psVar9,local_13c,public_blob_len,(uchar *)local_140,\n                                           private_blob_len);\n                      ptr->data = pvVar12;\n                      if (pvVar12 != (void *)0x0) {\n                        safefree(local_13c);\n                        smemclr(local_140,private_blob_len);\n                        safefree(local_140);\n                        safefree(pbVar10);\n                        if (errorstr != (char **)0x0) {\n                          *errorstr = (char *)0x0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar11 = "createkey failed";\n                      safefree(ptr);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = read_body((FILE *)__stream);\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar22 = bVar20;\n                    if (!bVar20) {\n                      bVar22 = true;\nLAB_00055778:\n                      if (bVar6 != 0) goto LAB_00055378;\n                      uVar13 = 0xffffffff;\n                      pcVar11 = psVar9->name;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar3 = *pcVar11;\n                        pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1;\n                      } while (cVar3 != '\0');\n                      uVar13 = ~uVar13;\n                      __n = uVar13 - 1;\n                      uVar14 = 0xffffffff;\n                      pbVar16 = pbVar10;\n                      do {\n                        if (uVar14 == 0) break;\n                        uVar14 = uVar14 - 1;\n                        bVar6 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                      } while (bVar6 != 0);\n                      uVar15 = 0xffffffff;\n                      uVar14 = ~uVar14;\n                      __n_01 = uVar14 - 1;\n                      pcVar11 = pcVar8;\n                      do {\n                        if (uVar15 == 0) break;\n                        uVar15 = uVar15 - 1;\n                        cVar3 = *pcVar11;\n                        pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1;\n                      } while (cVar3 != '\0');\n                      uVar15 = ~uVar15;\n                      __n_00 = uVar15 - 1;\n                      local_124 = uVar15 + uVar14 + uVar13 + public_blob_len + 0x11 +\n                                  private_blob_len;\n                      local_134 = (SHA_CTX *)safemalloc(local_124,1);\n                      local_134->h0 =\n                           __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                           __n * 0x1000000;\n                      memcpy(&local_134->h1,psVar9->name,__n);\n                      puVar1 = (uint *)((int)local_134->data + (uVar13 - 0x19));\n                      *puVar1 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8 |\n                                __n_01 * 0x1000000;\n                      memcpy(puVar1 + 1,pbVar10,__n_01);\n                      puVar1 = (uint *)((int)puVar1 + uVar14 + 3);\n                      *puVar1 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8 |\n                                __n_00 * 0x1000000;\n                      memcpy(puVar1 + 1,pcVar8,__n_00);\n                      iVar7 = public_blob_len;\n                      c = (SHA_CTX *)((int)puVar1 + uVar15 + 3);\n                      *(undefined1 *)&c->h0 = public_blob_len._3_1_;\n                      *(char *)((int)&c->h0 + 1) = (char)((uint)public_blob_len >> 0x10);\n                      *(char *)((int)&c->h0 + 2) = (char)((uint)public_blob_len >> 8);\n                      *(char *)((int)&c->h0 + 3) = (char)public_blob_len;\n                      memcpy(&c->h1,local_13c,public_blob_len);\n                      puVar2 = (undefined1 *)((int)c->data + iVar7 + -0x18);\n                      *puVar2 = private_blob_len._3_1_;\n                      puVar2[1] = (char)((uint)private_blob_len >> 0x10);\n                      puVar2[2] = (char)((uint)private_blob_len >> 8);\n                      puVar2[3] = (char)private_blob_len;\n                      memcpy(puVar2 + 4,local_140,private_blob_len);\n                      bVar21 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((passphrase != (char *)0x0) && (private_blob_len % (int)local_124 == 0)) {\n                      c = (SHA_CTX *)&s;\n                      SHA_Init(c);\n                      SHA_Bytes((SHA_State *)c,&DAT_0007db1c,4);\n                      SHA_Bytes((SHA_State *)c,passphrase,local_14c);\n                      SHA_Final((SHA_State *)c,key);\n                      SHA_Init(c);\n                      SHA_Bytes((SHA_State *)c,&DAT_0007db21,4);\n                      SHA_Bytes((SHA_State *)c,passphrase,local_14c);\n                      SHA_Final((SHA_State *)c,key + 0x14);\n                      aes256_decrypt_pubkey(key,(uchar *)local_140,private_blob_len);\n                      goto LAB_00055778;\n                    }\n                    pcVar11 = "file format error";\n                    ptr = (ssh2_userkey *)0x0;\nLAB_000554a5:\n                    safefree(pcVar8);\n                    safefree(pbVar10);\n                    safefree(local_144);\n                  }\n                  if (local_13c != (uchar *)0x0) {\n                    safefree(local_13c);\n                  }\n                  if (local_140 != (SHA_CTX *)0x0) {\n                    smemclr(local_140,private_blob_len);\n                    safefree(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar10;\n              pbVar18 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar21 = *pbVar16 < *pbVar18;\n                bVar20 = *pbVar16 == *pbVar18;\n                pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n              } while (bVar20);\n              if ((!bVar21 && !bVar20) == bVar21) {\n                local_124 = 1;\n                bVar20 = false;\n                goto LAB_000551a8;\n              }\n            }\n            ptr = (ssh2_userkey *)0x0;\n            fclose(__stream);\n            pcVar11 = "file format error";\n            safefree(pbVar10);\n            goto LAB_00055070;\n          }\n        }\n      }" { (expression_statement "iVar7 = 0xb;" (assignment_expression "iVar7 = 0xb" identifier = number_literal) ;) (expression_statement "pbVar10 = (byte *)header;" (assignment_expression "pbVar10 = (byte *)header" identifier = (cast_expression "(byte *)header" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "pbVar16 = (byte *)"Encryption";" (assignment_expression "pbVar16 = (byte *)"Encryption"" identifier = (cast_expression "(byte *)"Encryption"" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""Encryption"" " string_content "))) ;) (do_statement "do {\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar20 = *pbVar10 < *pbVar16;\n          bVar22 = *pbVar10 == *pbVar16;\n          pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n        } while (bVar22);" do (compound_statement "{\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar20 = *pbVar10 < *pbVar16;\n          bVar22 = *pbVar10 == *pbVar16;\n          pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n        }" { (if_statement "if (iVar7 == 0) break;" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar7 = iVar7 + -1;" (assignment_expression "iVar7 = iVar7 + -1" identifier = (binary_expression "iVar7 + -1" identifier + number_literal)) ;) (expression_statement "bVar20 = *pbVar10 < *pbVar16;" (assignment_expression "bVar20 = *pbVar10 < *pbVar16" identifier = (binary_expression "*pbVar10 < *pbVar16" (pointer_expression "*pbVar10" * identifier) < (pointer_expression "*pbVar16" * identifier))) ;) (expression_statement "bVar22 = *pbVar10 == *pbVar16;" (assignment_expression "bVar22 = *pbVar10 == *pbVar16" identifier = (binary_expression "*pbVar10 == *pbVar16" (pointer_expression "*pbVar10" * identifier) == (pointer_expression "*pbVar16" * identifier))) ;) (expression_statement "pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1;" (assignment_expression "pbVar10 = pbVar10 + (uint)bVar23 * -2 + 1" identifier = (binary_expression "pbVar10 + (uint)bVar23 * -2 + 1" (binary_expression "pbVar10 + (uint)bVar23 * -2" identifier + (binary_expression "(uint)bVar23 * -2" (cast_expression "(uint)bVar23" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;" (assignment_expression "pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1" identifier = (binary_expression "pbVar16 + (uint)bVar23 * -2 + 1" (binary_expression "pbVar16 + (uint)bVar23 * -2" identifier + (binary_expression "(uint)bVar23 * -2" (cast_expression "(uint)bVar23" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar22)" ( identifier )) ;) (if_statement "if ((!bVar20 && !bVar22) == bVar20) {\n          pbVar10 = (byte *)read_body((FILE *)__stream);\n          bVar20 = false;\n          bVar22 = pbVar10 == (byte *)0x0;\n          if (!bVar22) {\n            iVar7 = 0xb;\n            pbVar16 = pbVar10;\n            pbVar18 = (byte *)"aes256-cbc";\n            do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar20 = *pbVar16 < *pbVar18;\n              bVar22 = *pbVar16 == *pbVar18;\n              pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n              pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n            } while (bVar22);\n            bVar21 = false;\n            bVar20 = (!bVar20 && !bVar22) == bVar20;\n            if (bVar20) {\n              local_124 = 0x10;\n              bVar20 = true;\nLAB_000551a8:\n              iVar7 = read_header((FILE *)__stream,header);\n              bVar22 = false;\n              bVar21 = iVar7 == 0;\n              if (!bVar21) {\n                iVar7 = 8;\n                pbVar16 = (byte *)header;\n                pbVar18 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar22 = *pbVar16 < *pbVar18;\n                  bVar21 = *pbVar16 == *pbVar18;\n                  pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                  pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n                } while (bVar21);\n                if ((!bVar22 && !bVar21) == bVar22) {\n                  pcVar8 = read_body((FILE *)__stream);\n                  if (pcVar8 == (char *)0x0) {\n                    pcVar11 = "file format error";\n                    ptr = (ssh2_userkey *)0x0;\n                    fclose(__stream);\n                    safefree(pbVar10);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = read_header((FILE *)__stream,header);\n                  bVar22 = false;\n                  bVar21 = iVar7 == 0;\n                  if (bVar21) {\nLAB_000555ad:\n                    local_140 = (SHA_CTX *)0x0;\n                    local_13c = (uchar *)0x0;\nLAB_0005553d:\n                    pcVar11 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    ptr = (ssh2_userkey *)0x0;\n                    safefree(pcVar8);\n                    safefree(pbVar10);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = (byte *)header;\n                    pbVar18 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar22 = *pbVar16 < *pbVar18;\n                      bVar21 = *pbVar16 == *pbVar18;\n                      pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                      pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n                    } while (bVar21);\n                    if ((!bVar22 && !bVar21) != bVar22) goto LAB_000555ad;\n                    pcVar11 = read_body((FILE *)__stream);\n                    if (pcVar11 == (char *)0x0) goto LAB_000555ad;\n                    iVar7 = userkey_parse_line_counter(pcVar11);\n                    safefree(pcVar11);\n                    if (iVar7 < 0) goto LAB_000555ad;\n                    local_13c = read_blob((FILE *)__stream,iVar7,&public_blob_len);\n                    if (local_13c == (uchar *)0x0) goto LAB_000555ad;\n                    iVar7 = read_header((FILE *)__stream,header);\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (SHA_CTX *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    iVar7 = strcmp(header,"Private-Lines");\n                    local_140 = (SHA_CTX *)0x0;\n                    if (iVar7 != 0) goto LAB_0005553d;\n                    c = (SHA_CTX *)read_body((FILE *)__stream);\n                    local_140 = c;\n                    if (c == (SHA_CTX *)0x0) goto LAB_0005553d;\n                    iVar7 = userkey_parse_line_counter((char *)c);\n                    safefree(c);\n                    if (iVar7 < 0) goto LAB_00055535;\n                    local_140 = (SHA_CTX *)read_blob((FILE *)__stream,iVar7,&private_blob_len);\n                    if (local_140 == (SHA_CTX *)0x0) goto LAB_0005553d;\n                    iVar7 = read_header((FILE *)__stream,header);\n                    if (iVar7 == 0) goto LAB_0005553d;\n                    iVar7 = strcmp(header,"Private-MAC");\n                    if (iVar7 != 0) {\n                      iVar7 = strcmp(header,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar6 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = read_body((FILE *)__stream);\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar22 = false;\n                      fclose(__stream);\n                      if (bVar20) goto LAB_000556cb;\nLAB_00055378:\n                      bVar21 = false;\n                      local_124 = private_blob_len;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar22) {\n                        puVar17 = (uchar *)"putty-private-key-file-mac-key";\n                        puVar19 = key;\n                        for (iVar7 = 0x1f; iVar7 != 0; iVar7 = iVar7 + -1) {\n                          *puVar19 = *puVar17;\n                          puVar17 = puVar17 + (uint)bVar23 * -2 + 1;\n                          puVar19 = puVar19 + (uint)bVar23 * -2 + 1;\n                        }\n                        c_00 = (SHA_CTX *)&s;\n                        SHA_Init(c_00);\n                        SHA_Bytes((SHA_State *)c_00,key,0x1e);\n                        if ((passphrase != (char *)0x0) && (bVar20)) {\n                          SHA_Bytes((SHA_State *)c_00,passphrase,local_14c);\n                        }\n                        c = (SHA_CTX *)passphrase;\n                        SHA_Final((SHA_State *)c_00,mackey);\n                        hmac_sha1_simple(mackey,0x14,local_134,local_124,binary);\n                        smemclr(mackey,0x14);\n                        sVar24 = 0x60;\n                        smemclr(c_00,0x60);\n                      }\n                      else {\n                        passphrase = (char *)binary;\n                        sVar24 = local_124;\n                        SHA_Simple(local_134,local_124,(uchar *)passphrase);\n                        c_00 = (SHA_CTX *)0x0;\n                      }\n                      if (bVar21) {\n                        c = c_00;\n                        smemclr(local_134,local_124);\n                        safefree(local_134);\n                        sVar24 = local_124;\n                        passphrase = (char *)c_00;\n                      }\n                      iVar7 = 0;\n                      do {\n                        puVar17 = binary + iVar7;\n                        iVar5 = iVar7 * 2;\n                        iVar7 = iVar7 + 1;\n                        __sprintf_chk(key + iVar5,1,0xffffffff,&DAT_0007dc2b,*puVar17,sVar24,\n                                      passphrase,c);\n                      } while (iVar7 != 0x14);\n                      iVar7 = strcmp(local_144,(char *)key);\n                      if (iVar7 != 0) {\n                        if (bVar20) {\n                          pcVar11 = "wrong passphrase";\n                          ptr = &ssh2_wrong_passphrase;\n                        }\n                        else {\n                          pcVar11 = "MAC failed";\n                          ptr = (ssh2_userkey *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      safefree(local_144);\n                      ptr = (ssh2_userkey *)safemalloc(1,0xc);\n                      ptr->comment = pcVar8;\n                      ptr->alg = psVar9;\n                      pvVar12 = (*psVar9->createkey)\n                                          (psVar9,local_13c,public_blob_len,(uchar *)local_140,\n                                           private_blob_len);\n                      ptr->data = pvVar12;\n                      if (pvVar12 != (void *)0x0) {\n                        safefree(local_13c);\n                        smemclr(local_140,private_blob_len);\n                        safefree(local_140);\n                        safefree(pbVar10);\n                        if (errorstr != (char **)0x0) {\n                          *errorstr = (char *)0x0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar11 = "createkey failed";\n                      safefree(ptr);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = read_body((FILE *)__stream);\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar22 = bVar20;\n                    if (!bVar20) {\n                      bVar22 = true;\nLAB_00055778:\n                      if (bVar6 != 0) goto LAB_00055378;\n                      uVar13 = 0xffffffff;\n                      pcVar11 = psVar9->name;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar3 = *pcVar11;\n                        pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1;\n                      } while (cVar3 != '\0');\n                      uVar13 = ~uVar13;\n                      __n = uVar13 - 1;\n                      uVar14 = 0xffffffff;\n                      pbVar16 = pbVar10;\n                      do {\n                        if (uVar14 == 0) break;\n                        uVar14 = uVar14 - 1;\n                        bVar6 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                      } while (bVar6 != 0);\n                      uVar15 = 0xffffffff;\n                      uVar14 = ~uVar14;\n                      __n_01 = uVar14 - 1;\n                      pcVar11 = pcVar8;\n                      do {\n                        if (uVar15 == 0) break;\n                        uVar15 = uVar15 - 1;\n                        cVar3 = *pcVar11;\n                        pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1;\n                      } while (cVar3 != '\0');\n                      uVar15 = ~uVar15;\n                      __n_00 = uVar15 - 1;\n                      local_124 = uVar15 + uVar14 + uVar13 + public_blob_len + 0x11 +\n                                  private_blob_len;\n                      local_134 = (SHA_CTX *)safemalloc(local_124,1);\n                      local_134->h0 =\n                           __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                           __n * 0x1000000;\n                      memcpy(&local_134->h1,psVar9->name,__n);\n                      puVar1 = (uint *)((int)local_134->data + (uVar13 - 0x19));\n                      *puVar1 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8 |\n                                __n_01 * 0x1000000;\n                      memcpy(puVar1 + 1,pbVar10,__n_01);\n                      puVar1 = (uint *)((int)puVar1 + uVar14 + 3);\n                      *puVar1 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8 |\n                                __n_00 * 0x1000000;\n                      memcpy(puVar1 + 1,pcVar8,__n_00);\n                      iVar7 = public_blob_len;\n                      c = (SHA_CTX *)((int)puVar1 + uVar15 + 3);\n                      *(undefined1 *)&c->h0 = public_blob_len._3_1_;\n                      *(char *)((int)&c->h0 + 1) = (char)((uint)public_blob_len >> 0x10);\n                      *(char *)((int)&c->h0 + 2) = (char)((uint)public_blob_len >> 8);\n                      *(char *)((int)&c->h0 + 3) = (char)public_blob_len;\n                      memcpy(&c->h1,local_13c,public_blob_len);\n                      puVar2 = (undefined1 *)((int)c->data + iVar7 + -0x18);\n                      *puVar2 = private_blob_len._3_1_;\n                      puVar2[1] = (char)((uint)private_blob_len >> 0x10);\n                      puVar2[2] = (char)((uint)private_blob_len >> 8);\n                      puVar2[3] = (char)private_blob_len;\n                      memcpy(puVar2 + 4,local_140,private_blob_len);\n                      bVar21 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((passphrase != (char *)0x0) && (private_blob_len % (int)local_124 == 0)) {\n                      c = (SHA_CTX *)&s;\n                      SHA_Init(c);\n                      SHA_Bytes((SHA_State *)c,&DAT_0007db1c,4);\n                      SHA_Bytes((SHA_State *)c,passphrase,local_14c);\n                      SHA_Final((SHA_State *)c,key);\n                      SHA_Init(c);\n                      SHA_Bytes((SHA_State *)c,&DAT_0007db21,4);\n                      SHA_Bytes((SHA_State *)c,passphrase,local_14c);\n                      SHA_Final((SHA_State *)c,key + 0x14);\n                      aes256_decrypt_pubkey(key,(uchar *)local_140,private_blob_len);\n                      goto LAB_00055778;\n                    }\n                    pcVar11 = "file format error";\n                    ptr = (ssh2_userkey *)0x0;\nLAB_000554a5:\n                    safefree(pcVar8);\n                    safefree(pbVar10);\n                    safefree(local_144);\n                  }\n                  if (local_13c != (uchar *)0x0) {\n                    safefree(local_13c);\n                  }\n                  if (local_140 != (SHA_CTX *)0x0) {\n                    smemclr(local_140,private_blob_len);\n                    safefree(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar10;\n              pbVar18 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar21 = *pbVar16 < *pbVar18;\n                bVar20 = *pbVar16 == *pbVar18;\n                pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n              } while (bVar20);\n              if ((!bVar21 && !bVar20) == bVar21) {\n                local_124 = 1;\n                bVar20 = false;\n                goto LAB_000551a8;\n              }\n            }\n            ptr = (ssh2_userkey *)0x0;\n            fclose(__stream);\n            pcVar11 = "file format error";\n            safefree(pbVar10);\n            goto LAB_00055070;\n          }\n        }" if (parenthesized_expression "((!bVar20 && !bVar22) == bVar20)" ( (binary_expression "(!bVar20 && !bVar22) == bVar20" (parenthesized_expression "(!bVar20 && !bVar22)" ( (binary_expression "!bVar20 && !bVar22" (unary_expression "!bVar20" ! identifier) && (unary_expression "!bVar22" ! identifier)) )) == identifier) )) (compound_statement "{\n          pbVar10 = (byte *)read_body((FILE *)__stream);\n          bVar20 = false;\n          bVar22 = pbVar10 == (byte *)0x0;\n          if (!bVar22) {\n            iVar7 = 0xb;\n            pbVar16 = pbVar10;\n            pbVar18 = (byte *)"aes256-cbc";\n            do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar20 = *pbVar16 < *pbVar18;\n              bVar22 = *pbVar16 == *pbVar18;\n              pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n              pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n            } while (bVar22);\n            bVar21 = false;\n            bVar20 = (!bVar20 && !bVar22) == bVar20;\n            if (bVar20) {\n              local_124 = 0x10;\n              bVar20 = true;\nLAB_000551a8:\n              iVar7 = read_header((FILE *)__stream,header);\n              bVar22 = false;\n              bVar21 = iVar7 == 0;\n              if (!bVar21) {\n                iVar7 = 8;\n                pbVar16 = (byte *)header;\n                pbVar18 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar22 = *pbVar16 < *pbVar18;\n                  bVar21 = *pbVar16 == *pbVar18;\n                  pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                  pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n                } while (bVar21);\n                if ((!bVar22 && !bVar21) == bVar22) {\n                  pcVar8 = read_body((FILE *)__stream);\n                  if (pcVar8 == (char *)0x0) {\n                    pcVar11 = "file format error";\n                    ptr = (ssh2_userkey *)0x0;\n                    fclose(__stream);\n                    safefree(pbVar10);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = read_header((FILE *)__stream,header);\n                  bVar22 = false;\n                  bVar21 = iVar7 == 0;\n                  if (bVar21) {\nLAB_000555ad:\n                    local_140 = (SHA_CTX *)0x0;\n                    local_13c = (uchar *)0x0;\nLAB_0005553d:\n                    pcVar11 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    ptr = (ssh2_userkey *)0x0;\n                    safefree(pcVar8);\n                    safefree(pbVar10);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = (byte *)header;\n                    pbVar18 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar22 = *pbVar16 < *pbVar18;\n                      bVar21 = *pbVar16 == *pbVar18;\n                      pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                      pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n                    } while (bVar21);\n                    if ((!bVar22 && !bVar21) != bVar22) goto LAB_000555ad;\n                    pcVar11 = read_body((FILE *)__stream);\n                    if (pcVar11 == (char *)0x0) goto LAB_000555ad;\n                    iVar7 = userkey_parse_line_counter(pcVar11);\n                    safefree(pcVar11);\n                    if (iVar7 < 0) goto LAB_000555ad;\n                    local_13c = read_blob((FILE *)__stream,iVar7,&public_blob_len);\n                    if (local_13c == (uchar *)0x0) goto LAB_000555ad;\n                    iVar7 = read_header((FILE *)__stream,header);\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (SHA_CTX *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    iVar7 = strcmp(header,"Private-Lines");\n                    local_140 = (SHA_CTX *)0x0;\n                    if (iVar7 != 0) goto LAB_0005553d;\n                    c = (SHA_CTX *)read_body((FILE *)__stream);\n                    local_140 = c;\n                    if (c == (SHA_CTX *)0x0) goto LAB_0005553d;\n                    iVar7 = userkey_parse_line_counter((char *)c);\n                    safefree(c);\n                    if (iVar7 < 0) goto LAB_00055535;\n                    local_140 = (SHA_CTX *)read_blob((FILE *)__stream,iVar7,&private_blob_len);\n                    if (local_140 == (SHA_CTX *)0x0) goto LAB_0005553d;\n                    iVar7 = read_header((FILE *)__stream,header);\n                    if (iVar7 == 0) goto LAB_0005553d;\n                    iVar7 = strcmp(header,"Private-MAC");\n                    if (iVar7 != 0) {\n                      iVar7 = strcmp(header,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar6 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = read_body((FILE *)__stream);\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar22 = false;\n                      fclose(__stream);\n                      if (bVar20) goto LAB_000556cb;\nLAB_00055378:\n                      bVar21 = false;\n                      local_124 = private_blob_len;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar22) {\n                        puVar17 = (uchar *)"putty-private-key-file-mac-key";\n                        puVar19 = key;\n                        for (iVar7 = 0x1f; iVar7 != 0; iVar7 = iVar7 + -1) {\n                          *puVar19 = *puVar17;\n                          puVar17 = puVar17 + (uint)bVar23 * -2 + 1;\n                          puVar19 = puVar19 + (uint)bVar23 * -2 + 1;\n                        }\n                        c_00 = (SHA_CTX *)&s;\n                        SHA_Init(c_00);\n                        SHA_Bytes((SHA_State *)c_00,key,0x1e);\n                        if ((passphrase != (char *)0x0) && (bVar20)) {\n                          SHA_Bytes((SHA_State *)c_00,passphrase,local_14c);\n                        }\n                        c = (SHA_CTX *)passphrase;\n                        SHA_Final((SHA_State *)c_00,mackey);\n                        hmac_sha1_simple(mackey,0x14,local_134,local_124,binary);\n                        smemclr(mackey,0x14);\n                        sVar24 = 0x60;\n                        smemclr(c_00,0x60);\n                      }\n                      else {\n                        passphrase = (char *)binary;\n                        sVar24 = local_124;\n                        SHA_Simple(local_134,local_124,(uchar *)passphrase);\n                        c_00 = (SHA_CTX *)0x0;\n                      }\n                      if (bVar21) {\n                        c = c_00;\n                        smemclr(local_134,local_124);\n                        safefree(local_134);\n                        sVar24 = local_124;\n                        passphrase = (char *)c_00;\n                      }\n                      iVar7 = 0;\n                      do {\n                        puVar17 = binary + iVar7;\n                        iVar5 = iVar7 * 2;\n                        iVar7 = iVar7 + 1;\n                        __sprintf_chk(key + iVar5,1,0xffffffff,&DAT_0007dc2b,*puVar17,sVar24,\n                                      passphrase,c);\n                      } while (iVar7 != 0x14);\n                      iVar7 = strcmp(local_144,(char *)key);\n                      if (iVar7 != 0) {\n                        if (bVar20) {\n                          pcVar11 = "wrong passphrase";\n                          ptr = &ssh2_wrong_passphrase;\n                        }\n                        else {\n                          pcVar11 = "MAC failed";\n                          ptr = (ssh2_userkey *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      safefree(local_144);\n                      ptr = (ssh2_userkey *)safemalloc(1,0xc);\n                      ptr->comment = pcVar8;\n                      ptr->alg = psVar9;\n                      pvVar12 = (*psVar9->createkey)\n                                          (psVar9,local_13c,public_blob_len,(uchar *)local_140,\n                                           private_blob_len);\n                      ptr->data = pvVar12;\n                      if (pvVar12 != (void *)0x0) {\n                        safefree(local_13c);\n                        smemclr(local_140,private_blob_len);\n                        safefree(local_140);\n                        safefree(pbVar10);\n                        if (errorstr != (char **)0x0) {\n                          *errorstr = (char *)0x0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar11 = "createkey failed";\n                      safefree(ptr);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = read_body((FILE *)__stream);\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar22 = bVar20;\n                    if (!bVar20) {\n                      bVar22 = true;\nLAB_00055778:\n                      if (bVar6 != 0) goto LAB_00055378;\n                      uVar13 = 0xffffffff;\n                      pcVar11 = psVar9->name;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar3 = *pcVar11;\n                        pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1;\n                      } while (cVar3 != '\0');\n                      uVar13 = ~uVar13;\n                      __n = uVar13 - 1;\n                      uVar14 = 0xffffffff;\n                      pbVar16 = pbVar10;\n                      do {\n                        if (uVar14 == 0) break;\n                        uVar14 = uVar14 - 1;\n                        bVar6 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                      } while (bVar6 != 0);\n                      uVar15 = 0xffffffff;\n                      uVar14 = ~uVar14;\n                      __n_01 = uVar14 - 1;\n                      pcVar11 = pcVar8;\n                      do {\n                        if (uVar15 == 0) break;\n                        uVar15 = uVar15 - 1;\n                        cVar3 = *pcVar11;\n                        pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1;\n                      } while (cVar3 != '\0');\n                      uVar15 = ~uVar15;\n                      __n_00 = uVar15 - 1;\n                      local_124 = uVar15 + uVar14 + uVar13 + public_blob_len + 0x11 +\n                                  private_blob_len;\n                      local_134 = (SHA_CTX *)safemalloc(local_124,1);\n                      local_134->h0 =\n                           __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                           __n * 0x1000000;\n                      memcpy(&local_134->h1,psVar9->name,__n);\n                      puVar1 = (uint *)((int)local_134->data + (uVar13 - 0x19));\n                      *puVar1 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8 |\n                                __n_01 * 0x1000000;\n                      memcpy(puVar1 + 1,pbVar10,__n_01);\n                      puVar1 = (uint *)((int)puVar1 + uVar14 + 3);\n                      *puVar1 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8 |\n                                __n_00 * 0x1000000;\n                      memcpy(puVar1 + 1,pcVar8,__n_00);\n                      iVar7 = public_blob_len;\n                      c = (SHA_CTX *)((int)puVar1 + uVar15 + 3);\n                      *(undefined1 *)&c->h0 = public_blob_len._3_1_;\n                      *(char *)((int)&c->h0 + 1) = (char)((uint)public_blob_len >> 0x10);\n                      *(char *)((int)&c->h0 + 2) = (char)((uint)public_blob_len >> 8);\n                      *(char *)((int)&c->h0 + 3) = (char)public_blob_len;\n                      memcpy(&c->h1,local_13c,public_blob_len);\n                      puVar2 = (undefined1 *)((int)c->data + iVar7 + -0x18);\n                      *puVar2 = private_blob_len._3_1_;\n                      puVar2[1] = (char)((uint)private_blob_len >> 0x10);\n                      puVar2[2] = (char)((uint)private_blob_len >> 8);\n                      puVar2[3] = (char)private_blob_len;\n                      memcpy(puVar2 + 4,local_140,private_blob_len);\n                      bVar21 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((passphrase != (char *)0x0) && (private_blob_len % (int)local_124 == 0)) {\n                      c = (SHA_CTX *)&s;\n                      SHA_Init(c);\n                      SHA_Bytes((SHA_State *)c,&DAT_0007db1c,4);\n                      SHA_Bytes((SHA_State *)c,passphrase,local_14c);\n                      SHA_Final((SHA_State *)c,key);\n                      SHA_Init(c);\n                      SHA_Bytes((SHA_State *)c,&DAT_0007db21,4);\n                      SHA_Bytes((SHA_State *)c,passphrase,local_14c);\n                      SHA_Final((SHA_State *)c,key + 0x14);\n                      aes256_decrypt_pubkey(key,(uchar *)local_140,private_blob_len);\n                      goto LAB_00055778;\n                    }\n                    pcVar11 = "file format error";\n                    ptr = (ssh2_userkey *)0x0;\nLAB_000554a5:\n                    safefree(pcVar8);\n                    safefree(pbVar10);\n                    safefree(local_144);\n                  }\n                  if (local_13c != (uchar *)0x0) {\n                    safefree(local_13c);\n                  }\n                  if (local_140 != (SHA_CTX *)0x0) {\n                    smemclr(local_140,private_blob_len);\n                    safefree(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar10;\n              pbVar18 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar21 = *pbVar16 < *pbVar18;\n                bVar20 = *pbVar16 == *pbVar18;\n                pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n              } while (bVar20);\n              if ((!bVar21 && !bVar20) == bVar21) {\n                local_124 = 1;\n                bVar20 = false;\n                goto LAB_000551a8;\n              }\n            }\n            ptr = (ssh2_userkey *)0x0;\n            fclose(__stream);\n            pcVar11 = "file format error";\n            safefree(pbVar10);\n            goto LAB_00055070;\n          }\n        }" { (expression_statement "pbVar10 = (byte *)read_body((FILE *)__stream);" (assignment_expression "pbVar10 = (byte *)read_body((FILE *)__stream)" identifier = (cast_expression "(byte *)read_body((FILE *)__stream)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "read_body((FILE *)__stream)" identifier (argument_list "((FILE *)__stream)" ( (cast_expression "(FILE *)__stream" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))))) ;) (expression_statement "bVar20 = false;" (assignment_expression "bVar20 = false" identifier = false) ;) (expression_statement "bVar22 = pbVar10 == (byte *)0x0;" (assignment_expression "bVar22 = pbVar10 == (byte *)0x0" identifier = (binary_expression "pbVar10 == (byte *)0x0" identifier == (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ;) (if_statement "if (!bVar22) {\n            iVar7 = 0xb;\n            pbVar16 = pbVar10;\n            pbVar18 = (byte *)"aes256-cbc";\n            do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar20 = *pbVar16 < *pbVar18;\n              bVar22 = *pbVar16 == *pbVar18;\n              pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n              pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n            } while (bVar22);\n            bVar21 = false;\n            bVar20 = (!bVar20 && !bVar22) == bVar20;\n            if (bVar20) {\n              local_124 = 0x10;\n              bVar20 = true;\nLAB_000551a8:\n              iVar7 = read_header((FILE *)__stream,header);\n              bVar22 = false;\n              bVar21 = iVar7 == 0;\n              if (!bVar21) {\n                iVar7 = 8;\n                pbVar16 = (byte *)header;\n                pbVar18 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar22 = *pbVar16 < *pbVar18;\n                  bVar21 = *pbVar16 == *pbVar18;\n                  pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                  pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n                } while (bVar21);\n                if ((!bVar22 && !bVar21) == bVar22) {\n                  pcVar8 = read_body((FILE *)__stream);\n                  if (pcVar8 == (char *)0x0) {\n                    pcVar11 = "file format error";\n                    ptr = (ssh2_userkey *)0x0;\n                    fclose(__stream);\n                    safefree(pbVar10);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = read_header((FILE *)__stream,header);\n                  bVar22 = false;\n                  bVar21 = iVar7 == 0;\n                  if (bVar21) {\nLAB_000555ad:\n                    local_140 = (SHA_CTX *)0x0;\n                    local_13c = (uchar *)0x0;\nLAB_0005553d:\n                    pcVar11 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    ptr = (ssh2_userkey *)0x0;\n                    safefree(pcVar8);\n                    safefree(pbVar10);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = (byte *)header;\n                    pbVar18 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar22 = *pbVar16 < *pbVar18;\n                      bVar21 = *pbVar16 == *pbVar18;\n                      pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                      pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n                    } while (bVar21);\n                    if ((!bVar22 && !bVar21) != bVar22) goto LAB_000555ad;\n                    pcVar11 = read_body((FILE *)__stream);\n                    if (pcVar11 == (char *)0x0) goto LAB_000555ad;\n                    iVar7 = userkey_parse_line_counter(pcVar11);\n                    safefree(pcVar11);\n                    if (iVar7 < 0) goto LAB_000555ad;\n                    local_13c = read_blob((FILE *)__stream,iVar7,&public_blob_len);\n                    if (local_13c == (uchar *)0x0) goto LAB_000555ad;\n                    iVar7 = read_header((FILE *)__stream,header);\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (SHA_CTX *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    iVar7 = strcmp(header,"Private-Lines");\n                    local_140 = (SHA_CTX *)0x0;\n                    if (iVar7 != 0) goto LAB_0005553d;\n                    c = (SHA_CTX *)read_body((FILE *)__stream);\n                    local_140 = c;\n                    if (c == (SHA_CTX *)0x0) goto LAB_0005553d;\n                    iVar7 = userkey_parse_line_counter((char *)c);\n                    safefree(c);\n                    if (iVar7 < 0) goto LAB_00055535;\n                    local_140 = (SHA_CTX *)read_blob((FILE *)__stream,iVar7,&private_blob_len);\n                    if (local_140 == (SHA_CTX *)0x0) goto LAB_0005553d;\n                    iVar7 = read_header((FILE *)__stream,header);\n                    if (iVar7 == 0) goto LAB_0005553d;\n                    iVar7 = strcmp(header,"Private-MAC");\n                    if (iVar7 != 0) {\n                      iVar7 = strcmp(header,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar6 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = read_body((FILE *)__stream);\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar22 = false;\n                      fclose(__stream);\n                      if (bVar20) goto LAB_000556cb;\nLAB_00055378:\n                      bVar21 = false;\n                      local_124 = private_blob_len;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar22) {\n                        puVar17 = (uchar *)"putty-private-key-file-mac-key";\n                        puVar19 = key;\n                        for (iVar7 = 0x1f; iVar7 != 0; iVar7 = iVar7 + -1) {\n                          *puVar19 = *puVar17;\n                          puVar17 = puVar17 + (uint)bVar23 * -2 + 1;\n                          puVar19 = puVar19 + (uint)bVar23 * -2 + 1;\n                        }\n                        c_00 = (SHA_CTX *)&s;\n                        SHA_Init(c_00);\n                        SHA_Bytes((SHA_State *)c_00,key,0x1e);\n                        if ((passphrase != (char *)0x0) && (bVar20)) {\n                          SHA_Bytes((SHA_State *)c_00,passphrase,local_14c);\n                        }\n                        c = (SHA_CTX *)passphrase;\n                        SHA_Final((SHA_State *)c_00,mackey);\n                        hmac_sha1_simple(mackey,0x14,local_134,local_124,binary);\n                        smemclr(mackey,0x14);\n                        sVar24 = 0x60;\n                        smemclr(c_00,0x60);\n                      }\n                      else {\n                        passphrase = (char *)binary;\n                        sVar24 = local_124;\n                        SHA_Simple(local_134,local_124,(uchar *)passphrase);\n                        c_00 = (SHA_CTX *)0x0;\n                      }\n                      if (bVar21) {\n                        c = c_00;\n                        smemclr(local_134,local_124);\n                        safefree(local_134);\n                        sVar24 = local_124;\n                        passphrase = (char *)c_00;\n                      }\n                      iVar7 = 0;\n                      do {\n                        puVar17 = binary + iVar7;\n                        iVar5 = iVar7 * 2;\n                        iVar7 = iVar7 + 1;\n                        __sprintf_chk(key + iVar5,1,0xffffffff,&DAT_0007dc2b,*puVar17,sVar24,\n                                      passphrase,c);\n                      } while (iVar7 != 0x14);\n                      iVar7 = strcmp(local_144,(char *)key);\n                      if (iVar7 != 0) {\n                        if (bVar20) {\n                          pcVar11 = "wrong passphrase";\n                          ptr = &ssh2_wrong_passphrase;\n                        }\n                        else {\n                          pcVar11 = "MAC failed";\n                          ptr = (ssh2_userkey *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      safefree(local_144);\n                      ptr = (ssh2_userkey *)safemalloc(1,0xc);\n                      ptr->comment = pcVar8;\n                      ptr->alg = psVar9;\n                      pvVar12 = (*psVar9->createkey)\n                                          (psVar9,local_13c,public_blob_len,(uchar *)local_140,\n                                           private_blob_len);\n                      ptr->data = pvVar12;\n                      if (pvVar12 != (void *)0x0) {\n                        safefree(local_13c);\n                        smemclr(local_140,private_blob_len);\n                        safefree(local_140);\n                        safefree(pbVar10);\n                        if (errorstr != (char **)0x0) {\n                          *errorstr = (char *)0x0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar11 = "createkey failed";\n                      safefree(ptr);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = read_body((FILE *)__stream);\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar22 = bVar20;\n                    if (!bVar20) {\n                      bVar22 = true;\nLAB_00055778:\n                      if (bVar6 != 0) goto LAB_00055378;\n                      uVar13 = 0xffffffff;\n                      pcVar11 = psVar9->name;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar3 = *pcVar11;\n                        pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1;\n                      } while (cVar3 != '\0');\n                      uVar13 = ~uVar13;\n                      __n = uVar13 - 1;\n                      uVar14 = 0xffffffff;\n                      pbVar16 = pbVar10;\n                      do {\n                        if (uVar14 == 0) break;\n                        uVar14 = uVar14 - 1;\n                        bVar6 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                      } while (bVar6 != 0);\n                      uVar15 = 0xffffffff;\n                      uVar14 = ~uVar14;\n                      __n_01 = uVar14 - 1;\n                      pcVar11 = pcVar8;\n                      do {\n                        if (uVar15 == 0) break;\n                        uVar15 = uVar15 - 1;\n                        cVar3 = *pcVar11;\n                        pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1;\n                      } while (cVar3 != '\0');\n                      uVar15 = ~uVar15;\n                      __n_00 = uVar15 - 1;\n                      local_124 = uVar15 + uVar14 + uVar13 + public_blob_len + 0x11 +\n                                  private_blob_len;\n                      local_134 = (SHA_CTX *)safemalloc(local_124,1);\n                      local_134->h0 =\n                           __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                           __n * 0x1000000;\n                      memcpy(&local_134->h1,psVar9->name,__n);\n                      puVar1 = (uint *)((int)local_134->data + (uVar13 - 0x19));\n                      *puVar1 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8 |\n                                __n_01 * 0x1000000;\n                      memcpy(puVar1 + 1,pbVar10,__n_01);\n                      puVar1 = (uint *)((int)puVar1 + uVar14 + 3);\n                      *puVar1 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8 |\n                                __n_00 * 0x1000000;\n                      memcpy(puVar1 + 1,pcVar8,__n_00);\n                      iVar7 = public_blob_len;\n                      c = (SHA_CTX *)((int)puVar1 + uVar15 + 3);\n                      *(undefined1 *)&c->h0 = public_blob_len._3_1_;\n                      *(char *)((int)&c->h0 + 1) = (char)((uint)public_blob_len >> 0x10);\n                      *(char *)((int)&c->h0 + 2) = (char)((uint)public_blob_len >> 8);\n                      *(char *)((int)&c->h0 + 3) = (char)public_blob_len;\n                      memcpy(&c->h1,local_13c,public_blob_len);\n                      puVar2 = (undefined1 *)((int)c->data + iVar7 + -0x18);\n                      *puVar2 = private_blob_len._3_1_;\n                      puVar2[1] = (char)((uint)private_blob_len >> 0x10);\n                      puVar2[2] = (char)((uint)private_blob_len >> 8);\n                      puVar2[3] = (char)private_blob_len;\n                      memcpy(puVar2 + 4,local_140,private_blob_len);\n                      bVar21 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((passphrase != (char *)0x0) && (private_blob_len % (int)local_124 == 0)) {\n                      c = (SHA_CTX *)&s;\n                      SHA_Init(c);\n                      SHA_Bytes((SHA_State *)c,&DAT_0007db1c,4);\n                      SHA_Bytes((SHA_State *)c,passphrase,local_14c);\n                      SHA_Final((SHA_State *)c,key);\n                      SHA_Init(c);\n                      SHA_Bytes((SHA_State *)c,&DAT_0007db21,4);\n                      SHA_Bytes((SHA_State *)c,passphrase,local_14c);\n                      SHA_Final((SHA_State *)c,key + 0x14);\n                      aes256_decrypt_pubkey(key,(uchar *)local_140,private_blob_len);\n                      goto LAB_00055778;\n                    }\n                    pcVar11 = "file format error";\n                    ptr = (ssh2_userkey *)0x0;\nLAB_000554a5:\n                    safefree(pcVar8);\n                    safefree(pbVar10);\n                    safefree(local_144);\n                  }\n                  if (local_13c != (uchar *)0x0) {\n                    safefree(local_13c);\n                  }\n                  if (local_140 != (SHA_CTX *)0x0) {\n                    smemclr(local_140,private_blob_len);\n                    safefree(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar10;\n              pbVar18 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar21 = *pbVar16 < *pbVar18;\n                bVar20 = *pbVar16 == *pbVar18;\n                pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n              } while (bVar20);\n              if ((!bVar21 && !bVar20) == bVar21) {\n                local_124 = 1;\n                bVar20 = false;\n                goto LAB_000551a8;\n              }\n            }\n            ptr = (ssh2_userkey *)0x0;\n            fclose(__stream);\n            pcVar11 = "file format error";\n            safefree(pbVar10);\n            goto LAB_00055070;\n          }" if (parenthesized_expression "(!bVar22)" ( (unary_expression "!bVar22" ! identifier) )) (compound_statement "{\n            iVar7 = 0xb;\n            pbVar16 = pbVar10;\n            pbVar18 = (byte *)"aes256-cbc";\n            do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar20 = *pbVar16 < *pbVar18;\n              bVar22 = *pbVar16 == *pbVar18;\n              pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n              pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n            } while (bVar22);\n            bVar21 = false;\n            bVar20 = (!bVar20 && !bVar22) == bVar20;\n            if (bVar20) {\n              local_124 = 0x10;\n              bVar20 = true;\nLAB_000551a8:\n              iVar7 = read_header((FILE *)__stream,header);\n              bVar22 = false;\n              bVar21 = iVar7 == 0;\n              if (!bVar21) {\n                iVar7 = 8;\n                pbVar16 = (byte *)header;\n                pbVar18 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar22 = *pbVar16 < *pbVar18;\n                  bVar21 = *pbVar16 == *pbVar18;\n                  pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                  pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n                } while (bVar21);\n                if ((!bVar22 && !bVar21) == bVar22) {\n                  pcVar8 = read_body((FILE *)__stream);\n                  if (pcVar8 == (char *)0x0) {\n                    pcVar11 = "file format error";\n                    ptr = (ssh2_userkey *)0x0;\n                    fclose(__stream);\n                    safefree(pbVar10);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = read_header((FILE *)__stream,header);\n                  bVar22 = false;\n                  bVar21 = iVar7 == 0;\n                  if (bVar21) {\nLAB_000555ad:\n                    local_140 = (SHA_CTX *)0x0;\n                    local_13c = (uchar *)0x0;\nLAB_0005553d:\n                    pcVar11 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    ptr = (ssh2_userkey *)0x0;\n                    safefree(pcVar8);\n                    safefree(pbVar10);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = (byte *)header;\n                    pbVar18 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar22 = *pbVar16 < *pbVar18;\n                      bVar21 = *pbVar16 == *pbVar18;\n                      pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                      pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n                    } while (bVar21);\n                    if ((!bVar22 && !bVar21) != bVar22) goto LAB_000555ad;\n                    pcVar11 = read_body((FILE *)__stream);\n                    if (pcVar11 == (char *)0x0) goto LAB_000555ad;\n                    iVar7 = userkey_parse_line_counter(pcVar11);\n                    safefree(pcVar11);\n                    if (iVar7 < 0) goto LAB_000555ad;\n                    local_13c = read_blob((FILE *)__stream,iVar7,&public_blob_len);\n                    if (local_13c == (uchar *)0x0) goto LAB_000555ad;\n                    iVar7 = read_header((FILE *)__stream,header);\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (SHA_CTX *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    iVar7 = strcmp(header,"Private-Lines");\n                    local_140 = (SHA_CTX *)0x0;\n                    if (iVar7 != 0) goto LAB_0005553d;\n                    c = (SHA_CTX *)read_body((FILE *)__stream);\n                    local_140 = c;\n                    if (c == (SHA_CTX *)0x0) goto LAB_0005553d;\n                    iVar7 = userkey_parse_line_counter((char *)c);\n                    safefree(c);\n                    if (iVar7 < 0) goto LAB_00055535;\n                    local_140 = (SHA_CTX *)read_blob((FILE *)__stream,iVar7,&private_blob_len);\n                    if (local_140 == (SHA_CTX *)0x0) goto LAB_0005553d;\n                    iVar7 = read_header((FILE *)__stream,header);\n                    if (iVar7 == 0) goto LAB_0005553d;\n                    iVar7 = strcmp(header,"Private-MAC");\n                    if (iVar7 != 0) {\n                      iVar7 = strcmp(header,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar6 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = read_body((FILE *)__stream);\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar22 = false;\n                      fclose(__stream);\n                      if (bVar20) goto LAB_000556cb;\nLAB_00055378:\n                      bVar21 = false;\n                      local_124 = private_blob_len;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar22) {\n                        puVar17 = (uchar *)"putty-private-key-file-mac-key";\n                        puVar19 = key;\n                        for (iVar7 = 0x1f; iVar7 != 0; iVar7 = iVar7 + -1) {\n                          *puVar19 = *puVar17;\n                          puVar17 = puVar17 + (uint)bVar23 * -2 + 1;\n                          puVar19 = puVar19 + (uint)bVar23 * -2 + 1;\n                        }\n                        c_00 = (SHA_CTX *)&s;\n                        SHA_Init(c_00);\n                        SHA_Bytes((SHA_State *)c_00,key,0x1e);\n                        if ((passphrase != (char *)0x0) && (bVar20)) {\n                          SHA_Bytes((SHA_State *)c_00,passphrase,local_14c);\n                        }\n                        c = (SHA_CTX *)passphrase;\n                        SHA_Final((SHA_State *)c_00,mackey);\n                        hmac_sha1_simple(mackey,0x14,local_134,local_124,binary);\n                        smemclr(mackey,0x14);\n                        sVar24 = 0x60;\n                        smemclr(c_00,0x60);\n                      }\n                      else {\n                        passphrase = (char *)binary;\n                        sVar24 = local_124;\n                        SHA_Simple(local_134,local_124,(uchar *)passphrase);\n                        c_00 = (SHA_CTX *)0x0;\n                      }\n                      if (bVar21) {\n                        c = c_00;\n                        smemclr(local_134,local_124);\n                        safefree(local_134);\n                        sVar24 = local_124;\n                        passphrase = (char *)c_00;\n                      }\n                      iVar7 = 0;\n                      do {\n                        puVar17 = binary + iVar7;\n                        iVar5 = iVar7 * 2;\n                        iVar7 = iVar7 + 1;\n                        __sprintf_chk(key + iVar5,1,0xffffffff,&DAT_0007dc2b,*puVar17,sVar24,\n                                      passphrase,c);\n                      } while (iVar7 != 0x14);\n                      iVar7 = strcmp(local_144,(char *)key);\n                      if (iVar7 != 0) {\n                        if (bVar20) {\n                          pcVar11 = "wrong passphrase";\n                          ptr = &ssh2_wrong_passphrase;\n                        }\n                        else {\n                          pcVar11 = "MAC failed";\n                          ptr = (ssh2_userkey *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      safefree(local_144);\n                      ptr = (ssh2_userkey *)safemalloc(1,0xc);\n                      ptr->comment = pcVar8;\n                      ptr->alg = psVar9;\n                      pvVar12 = (*psVar9->createkey)\n                                          (psVar9,local_13c,public_blob_len,(uchar *)local_140,\n                                           private_blob_len);\n                      ptr->data = pvVar12;\n                      if (pvVar12 != (void *)0x0) {\n                        safefree(local_13c);\n                        smemclr(local_140,private_blob_len);\n                        safefree(local_140);\n                        safefree(pbVar10);\n                        if (errorstr != (char **)0x0) {\n                          *errorstr = (char *)0x0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar11 = "createkey failed";\n                      safefree(ptr);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = read_body((FILE *)__stream);\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar22 = bVar20;\n                    if (!bVar20) {\n                      bVar22 = true;\nLAB_00055778:\n                      if (bVar6 != 0) goto LAB_00055378;\n                      uVar13 = 0xffffffff;\n                      pcVar11 = psVar9->name;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar3 = *pcVar11;\n                        pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1;\n                      } while (cVar3 != '\0');\n                      uVar13 = ~uVar13;\n                      __n = uVar13 - 1;\n                      uVar14 = 0xffffffff;\n                      pbVar16 = pbVar10;\n                      do {\n                        if (uVar14 == 0) break;\n                        uVar14 = uVar14 - 1;\n                        bVar6 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                      } while (bVar6 != 0);\n                      uVar15 = 0xffffffff;\n                      uVar14 = ~uVar14;\n                      __n_01 = uVar14 - 1;\n                      pcVar11 = pcVar8;\n                      do {\n                        if (uVar15 == 0) break;\n                        uVar15 = uVar15 - 1;\n                        cVar3 = *pcVar11;\n                        pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1;\n                      } while (cVar3 != '\0');\n                      uVar15 = ~uVar15;\n                      __n_00 = uVar15 - 1;\n                      local_124 = uVar15 + uVar14 + uVar13 + public_blob_len + 0x11 +\n                                  private_blob_len;\n                      local_134 = (SHA_CTX *)safemalloc(local_124,1);\n                      local_134->h0 =\n                           __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                           __n * 0x1000000;\n                      memcpy(&local_134->h1,psVar9->name,__n);\n                      puVar1 = (uint *)((int)local_134->data + (uVar13 - 0x19));\n                      *puVar1 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8 |\n                                __n_01 * 0x1000000;\n                      memcpy(puVar1 + 1,pbVar10,__n_01);\n                      puVar1 = (uint *)((int)puVar1 + uVar14 + 3);\n                      *puVar1 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8 |\n                                __n_00 * 0x1000000;\n                      memcpy(puVar1 + 1,pcVar8,__n_00);\n                      iVar7 = public_blob_len;\n                      c = (SHA_CTX *)((int)puVar1 + uVar15 + 3);\n                      *(undefined1 *)&c->h0 = public_blob_len._3_1_;\n                      *(char *)((int)&c->h0 + 1) = (char)((uint)public_blob_len >> 0x10);\n                      *(char *)((int)&c->h0 + 2) = (char)((uint)public_blob_len >> 8);\n                      *(char *)((int)&c->h0 + 3) = (char)public_blob_len;\n                      memcpy(&c->h1,local_13c,public_blob_len);\n                      puVar2 = (undefined1 *)((int)c->data + iVar7 + -0x18);\n                      *puVar2 = private_blob_len._3_1_;\n                      puVar2[1] = (char)((uint)private_blob_len >> 0x10);\n                      puVar2[2] = (char)((uint)private_blob_len >> 8);\n                      puVar2[3] = (char)private_blob_len;\n                      memcpy(puVar2 + 4,local_140,private_blob_len);\n                      bVar21 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((passphrase != (char *)0x0) && (private_blob_len % (int)local_124 == 0)) {\n                      c = (SHA_CTX *)&s;\n                      SHA_Init(c);\n                      SHA_Bytes((SHA_State *)c,&DAT_0007db1c,4);\n                      SHA_Bytes((SHA_State *)c,passphrase,local_14c);\n                      SHA_Final((SHA_State *)c,key);\n                      SHA_Init(c);\n                      SHA_Bytes((SHA_State *)c,&DAT_0007db21,4);\n                      SHA_Bytes((SHA_State *)c,passphrase,local_14c);\n                      SHA_Final((SHA_State *)c,key + 0x14);\n                      aes256_decrypt_pubkey(key,(uchar *)local_140,private_blob_len);\n                      goto LAB_00055778;\n                    }\n                    pcVar11 = "file format error";\n                    ptr = (ssh2_userkey *)0x0;\nLAB_000554a5:\n                    safefree(pcVar8);\n                    safefree(pbVar10);\n                    safefree(local_144);\n                  }\n                  if (local_13c != (uchar *)0x0) {\n                    safefree(local_13c);\n                  }\n                  if (local_140 != (SHA_CTX *)0x0) {\n                    smemclr(local_140,private_blob_len);\n                    safefree(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar10;\n              pbVar18 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar21 = *pbVar16 < *pbVar18;\n                bVar20 = *pbVar16 == *pbVar18;\n                pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n              } while (bVar20);\n              if ((!bVar21 && !bVar20) == bVar21) {\n                local_124 = 1;\n                bVar20 = false;\n                goto LAB_000551a8;\n              }\n            }\n            ptr = (ssh2_userkey *)0x0;\n            fclose(__stream);\n            pcVar11 = "file format error";\n            safefree(pbVar10);\n            goto LAB_00055070;\n          }" { (expression_statement "iVar7 = 0xb;" (assignment_expression "iVar7 = 0xb" identifier = number_literal) ;) (expression_statement "pbVar16 = pbVar10;" (assignment_expression "pbVar16 = pbVar10" identifier = identifier) ;) (expression_statement "pbVar18 = (byte *)"aes256-cbc";" (assignment_expression "pbVar18 = (byte *)"aes256-cbc"" identifier = (cast_expression "(byte *)"aes256-cbc"" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""aes256-cbc"" " string_content "))) ;) (do_statement "do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar20 = *pbVar16 < *pbVar18;\n              bVar22 = *pbVar16 == *pbVar18;\n              pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n              pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n            } while (bVar22);" do (compound_statement "{\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar20 = *pbVar16 < *pbVar18;\n              bVar22 = *pbVar16 == *pbVar18;\n              pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n              pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n            }" { (if_statement "if (iVar7 == 0) break;" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar7 = iVar7 + -1;" (assignment_expression "iVar7 = iVar7 + -1" identifier = (binary_expression "iVar7 + -1" identifier + number_literal)) ;) (expression_statement "bVar20 = *pbVar16 < *pbVar18;" (assignment_expression "bVar20 = *pbVar16 < *pbVar18" identifier = (binary_expression "*pbVar16 < *pbVar18" (pointer_expression "*pbVar16" * identifier) < (pointer_expression "*pbVar18" * identifier))) ;) (expression_statement "bVar22 = *pbVar16 == *pbVar18;" (assignment_expression "bVar22 = *pbVar16 == *pbVar18" identifier = (binary_expression "*pbVar16 == *pbVar18" (pointer_expression "*pbVar16" * identifier) == (pointer_expression "*pbVar18" * identifier))) ;) (expression_statement "pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;" (assignment_expression "pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1" identifier = (binary_expression "pbVar16 + (uint)bVar23 * -2 + 1" (binary_expression "pbVar16 + (uint)bVar23 * -2" identifier + (binary_expression "(uint)bVar23 * -2" (cast_expression "(uint)bVar23" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;" (assignment_expression "pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1" identifier = (binary_expression "pbVar18 + (uint)bVar23 * -2 + 1" (binary_expression "pbVar18 + (uint)bVar23 * -2" identifier + (binary_expression "(uint)bVar23 * -2" (cast_expression "(uint)bVar23" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar22)" ( identifier )) ;) (expression_statement "bVar21 = false;" (assignment_expression "bVar21 = false" identifier = false) ;) (expression_statement "bVar20 = (!bVar20 && !bVar22) == bVar20;" (assignment_expression "bVar20 = (!bVar20 && !bVar22) == bVar20" identifier = (binary_expression "(!bVar20 && !bVar22) == bVar20" (parenthesized_expression "(!bVar20 && !bVar22)" ( (binary_expression "!bVar20 && !bVar22" (unary_expression "!bVar20" ! identifier) && (unary_expression "!bVar22" ! identifier)) )) == identifier)) ;) (if_statement "if (bVar20) {\n              local_124 = 0x10;\n              bVar20 = true;\nLAB_000551a8:\n              iVar7 = read_header((FILE *)__stream,header);\n              bVar22 = false;\n              bVar21 = iVar7 == 0;\n              if (!bVar21) {\n                iVar7 = 8;\n                pbVar16 = (byte *)header;\n                pbVar18 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar22 = *pbVar16 < *pbVar18;\n                  bVar21 = *pbVar16 == *pbVar18;\n                  pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                  pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n                } while (bVar21);\n                if ((!bVar22 && !bVar21) == bVar22) {\n                  pcVar8 = read_body((FILE *)__stream);\n                  if (pcVar8 == (char *)0x0) {\n                    pcVar11 = "file format error";\n                    ptr = (ssh2_userkey *)0x0;\n                    fclose(__stream);\n                    safefree(pbVar10);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = read_header((FILE *)__stream,header);\n                  bVar22 = false;\n                  bVar21 = iVar7 == 0;\n                  if (bVar21) {\nLAB_000555ad:\n                    local_140 = (SHA_CTX *)0x0;\n                    local_13c = (uchar *)0x0;\nLAB_0005553d:\n                    pcVar11 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    ptr = (ssh2_userkey *)0x0;\n                    safefree(pcVar8);\n                    safefree(pbVar10);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = (byte *)header;\n                    pbVar18 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar22 = *pbVar16 < *pbVar18;\n                      bVar21 = *pbVar16 == *pbVar18;\n                      pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                      pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n                    } while (bVar21);\n                    if ((!bVar22 && !bVar21) != bVar22) goto LAB_000555ad;\n                    pcVar11 = read_body((FILE *)__stream);\n                    if (pcVar11 == (char *)0x0) goto LAB_000555ad;\n                    iVar7 = userkey_parse_line_counter(pcVar11);\n                    safefree(pcVar11);\n                    if (iVar7 < 0) goto LAB_000555ad;\n                    local_13c = read_blob((FILE *)__stream,iVar7,&public_blob_len);\n                    if (local_13c == (uchar *)0x0) goto LAB_000555ad;\n                    iVar7 = read_header((FILE *)__stream,header);\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (SHA_CTX *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    iVar7 = strcmp(header,"Private-Lines");\n                    local_140 = (SHA_CTX *)0x0;\n                    if (iVar7 != 0) goto LAB_0005553d;\n                    c = (SHA_CTX *)read_body((FILE *)__stream);\n                    local_140 = c;\n                    if (c == (SHA_CTX *)0x0) goto LAB_0005553d;\n                    iVar7 = userkey_parse_line_counter((char *)c);\n                    safefree(c);\n                    if (iVar7 < 0) goto LAB_00055535;\n                    local_140 = (SHA_CTX *)read_blob((FILE *)__stream,iVar7,&private_blob_len);\n                    if (local_140 == (SHA_CTX *)0x0) goto LAB_0005553d;\n                    iVar7 = read_header((FILE *)__stream,header);\n                    if (iVar7 == 0) goto LAB_0005553d;\n                    iVar7 = strcmp(header,"Private-MAC");\n                    if (iVar7 != 0) {\n                      iVar7 = strcmp(header,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar6 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = read_body((FILE *)__stream);\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar22 = false;\n                      fclose(__stream);\n                      if (bVar20) goto LAB_000556cb;\nLAB_00055378:\n                      bVar21 = false;\n                      local_124 = private_blob_len;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar22) {\n                        puVar17 = (uchar *)"putty-private-key-file-mac-key";\n                        puVar19 = key;\n                        for (iVar7 = 0x1f; iVar7 != 0; iVar7 = iVar7 + -1) {\n                          *puVar19 = *puVar17;\n                          puVar17 = puVar17 + (uint)bVar23 * -2 + 1;\n                          puVar19 = puVar19 + (uint)bVar23 * -2 + 1;\n                        }\n                        c_00 = (SHA_CTX *)&s;\n                        SHA_Init(c_00);\n                        SHA_Bytes((SHA_State *)c_00,key,0x1e);\n                        if ((passphrase != (char *)0x0) && (bVar20)) {\n                          SHA_Bytes((SHA_State *)c_00,passphrase,local_14c);\n                        }\n                        c = (SHA_CTX *)passphrase;\n                        SHA_Final((SHA_State *)c_00,mackey);\n                        hmac_sha1_simple(mackey,0x14,local_134,local_124,binary);\n                        smemclr(mackey,0x14);\n                        sVar24 = 0x60;\n                        smemclr(c_00,0x60);\n                      }\n                      else {\n                        passphrase = (char *)binary;\n                        sVar24 = local_124;\n                        SHA_Simple(local_134,local_124,(uchar *)passphrase);\n                        c_00 = (SHA_CTX *)0x0;\n                      }\n                      if (bVar21) {\n                        c = c_00;\n                        smemclr(local_134,local_124);\n                        safefree(local_134);\n                        sVar24 = local_124;\n                        passphrase = (char *)c_00;\n                      }\n                      iVar7 = 0;\n                      do {\n                        puVar17 = binary + iVar7;\n                        iVar5 = iVar7 * 2;\n                        iVar7 = iVar7 + 1;\n                        __sprintf_chk(key + iVar5,1,0xffffffff,&DAT_0007dc2b,*puVar17,sVar24,\n                                      passphrase,c);\n                      } while (iVar7 != 0x14);\n                      iVar7 = strcmp(local_144,(char *)key);\n                      if (iVar7 != 0) {\n                        if (bVar20) {\n                          pcVar11 = "wrong passphrase";\n                          ptr = &ssh2_wrong_passphrase;\n                        }\n                        else {\n                          pcVar11 = "MAC failed";\n                          ptr = (ssh2_userkey *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      safefree(local_144);\n                      ptr = (ssh2_userkey *)safemalloc(1,0xc);\n                      ptr->comment = pcVar8;\n                      ptr->alg = psVar9;\n                      pvVar12 = (*psVar9->createkey)\n                                          (psVar9,local_13c,public_blob_len,(uchar *)local_140,\n                                           private_blob_len);\n                      ptr->data = pvVar12;\n                      if (pvVar12 != (void *)0x0) {\n                        safefree(local_13c);\n                        smemclr(local_140,private_blob_len);\n                        safefree(local_140);\n                        safefree(pbVar10);\n                        if (errorstr != (char **)0x0) {\n                          *errorstr = (char *)0x0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar11 = "createkey failed";\n                      safefree(ptr);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = read_body((FILE *)__stream);\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar22 = bVar20;\n                    if (!bVar20) {\n                      bVar22 = true;\nLAB_00055778:\n                      if (bVar6 != 0) goto LAB_00055378;\n                      uVar13 = 0xffffffff;\n                      pcVar11 = psVar9->name;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar3 = *pcVar11;\n                        pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1;\n                      } while (cVar3 != '\0');\n                      uVar13 = ~uVar13;\n                      __n = uVar13 - 1;\n                      uVar14 = 0xffffffff;\n                      pbVar16 = pbVar10;\n                      do {\n                        if (uVar14 == 0) break;\n                        uVar14 = uVar14 - 1;\n                        bVar6 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                      } while (bVar6 != 0);\n                      uVar15 = 0xffffffff;\n                      uVar14 = ~uVar14;\n                      __n_01 = uVar14 - 1;\n                      pcVar11 = pcVar8;\n                      do {\n                        if (uVar15 == 0) break;\n                        uVar15 = uVar15 - 1;\n                        cVar3 = *pcVar11;\n                        pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1;\n                      } while (cVar3 != '\0');\n                      uVar15 = ~uVar15;\n                      __n_00 = uVar15 - 1;\n                      local_124 = uVar15 + uVar14 + uVar13 + public_blob_len + 0x11 +\n                                  private_blob_len;\n                      local_134 = (SHA_CTX *)safemalloc(local_124,1);\n                      local_134->h0 =\n                           __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                           __n * 0x1000000;\n                      memcpy(&local_134->h1,psVar9->name,__n);\n                      puVar1 = (uint *)((int)local_134->data + (uVar13 - 0x19));\n                      *puVar1 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8 |\n                                __n_01 * 0x1000000;\n                      memcpy(puVar1 + 1,pbVar10,__n_01);\n                      puVar1 = (uint *)((int)puVar1 + uVar14 + 3);\n                      *puVar1 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8 |\n                                __n_00 * 0x1000000;\n                      memcpy(puVar1 + 1,pcVar8,__n_00);\n                      iVar7 = public_blob_len;\n                      c = (SHA_CTX *)((int)puVar1 + uVar15 + 3);\n                      *(undefined1 *)&c->h0 = public_blob_len._3_1_;\n                      *(char *)((int)&c->h0 + 1) = (char)((uint)public_blob_len >> 0x10);\n                      *(char *)((int)&c->h0 + 2) = (char)((uint)public_blob_len >> 8);\n                      *(char *)((int)&c->h0 + 3) = (char)public_blob_len;\n                      memcpy(&c->h1,local_13c,public_blob_len);\n                      puVar2 = (undefined1 *)((int)c->data + iVar7 + -0x18);\n                      *puVar2 = private_blob_len._3_1_;\n                      puVar2[1] = (char)((uint)private_blob_len >> 0x10);\n                      puVar2[2] = (char)((uint)private_blob_len >> 8);\n                      puVar2[3] = (char)private_blob_len;\n                      memcpy(puVar2 + 4,local_140,private_blob_len);\n                      bVar21 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((passphrase != (char *)0x0) && (private_blob_len % (int)local_124 == 0)) {\n                      c = (SHA_CTX *)&s;\n                      SHA_Init(c);\n                      SHA_Bytes((SHA_State *)c,&DAT_0007db1c,4);\n                      SHA_Bytes((SHA_State *)c,passphrase,local_14c);\n                      SHA_Final((SHA_State *)c,key);\n                      SHA_Init(c);\n                      SHA_Bytes((SHA_State *)c,&DAT_0007db21,4);\n                      SHA_Bytes((SHA_State *)c,passphrase,local_14c);\n                      SHA_Final((SHA_State *)c,key + 0x14);\n                      aes256_decrypt_pubkey(key,(uchar *)local_140,private_blob_len);\n                      goto LAB_00055778;\n                    }\n                    pcVar11 = "file format error";\n                    ptr = (ssh2_userkey *)0x0;\nLAB_000554a5:\n                    safefree(pcVar8);\n                    safefree(pbVar10);\n                    safefree(local_144);\n                  }\n                  if (local_13c != (uchar *)0x0) {\n                    safefree(local_13c);\n                  }\n                  if (local_140 != (SHA_CTX *)0x0) {\n                    smemclr(local_140,private_blob_len);\n                    safefree(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar10;\n              pbVar18 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar21 = *pbVar16 < *pbVar18;\n                bVar20 = *pbVar16 == *pbVar18;\n                pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n              } while (bVar20);\n              if ((!bVar21 && !bVar20) == bVar21) {\n                local_124 = 1;\n                bVar20 = false;\n                goto LAB_000551a8;\n              }\n            }" if (parenthesized_expression "(bVar20)" ( identifier )) (compound_statement "{\n              local_124 = 0x10;\n              bVar20 = true;\nLAB_000551a8:\n              iVar7 = read_header((FILE *)__stream,header);\n              bVar22 = false;\n              bVar21 = iVar7 == 0;\n              if (!bVar21) {\n                iVar7 = 8;\n                pbVar16 = (byte *)header;\n                pbVar18 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar22 = *pbVar16 < *pbVar18;\n                  bVar21 = *pbVar16 == *pbVar18;\n                  pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                  pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n                } while (bVar21);\n                if ((!bVar22 && !bVar21) == bVar22) {\n                  pcVar8 = read_body((FILE *)__stream);\n                  if (pcVar8 == (char *)0x0) {\n                    pcVar11 = "file format error";\n                    ptr = (ssh2_userkey *)0x0;\n                    fclose(__stream);\n                    safefree(pbVar10);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = read_header((FILE *)__stream,header);\n                  bVar22 = false;\n                  bVar21 = iVar7 == 0;\n                  if (bVar21) {\nLAB_000555ad:\n                    local_140 = (SHA_CTX *)0x0;\n                    local_13c = (uchar *)0x0;\nLAB_0005553d:\n                    pcVar11 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    ptr = (ssh2_userkey *)0x0;\n                    safefree(pcVar8);\n                    safefree(pbVar10);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = (byte *)header;\n                    pbVar18 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar22 = *pbVar16 < *pbVar18;\n                      bVar21 = *pbVar16 == *pbVar18;\n                      pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                      pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n                    } while (bVar21);\n                    if ((!bVar22 && !bVar21) != bVar22) goto LAB_000555ad;\n                    pcVar11 = read_body((FILE *)__stream);\n                    if (pcVar11 == (char *)0x0) goto LAB_000555ad;\n                    iVar7 = userkey_parse_line_counter(pcVar11);\n                    safefree(pcVar11);\n                    if (iVar7 < 0) goto LAB_000555ad;\n                    local_13c = read_blob((FILE *)__stream,iVar7,&public_blob_len);\n                    if (local_13c == (uchar *)0x0) goto LAB_000555ad;\n                    iVar7 = read_header((FILE *)__stream,header);\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (SHA_CTX *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    iVar7 = strcmp(header,"Private-Lines");\n                    local_140 = (SHA_CTX *)0x0;\n                    if (iVar7 != 0) goto LAB_0005553d;\n                    c = (SHA_CTX *)read_body((FILE *)__stream);\n                    local_140 = c;\n                    if (c == (SHA_CTX *)0x0) goto LAB_0005553d;\n                    iVar7 = userkey_parse_line_counter((char *)c);\n                    safefree(c);\n                    if (iVar7 < 0) goto LAB_00055535;\n                    local_140 = (SHA_CTX *)read_blob((FILE *)__stream,iVar7,&private_blob_len);\n                    if (local_140 == (SHA_CTX *)0x0) goto LAB_0005553d;\n                    iVar7 = read_header((FILE *)__stream,header);\n                    if (iVar7 == 0) goto LAB_0005553d;\n                    iVar7 = strcmp(header,"Private-MAC");\n                    if (iVar7 != 0) {\n                      iVar7 = strcmp(header,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar6 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = read_body((FILE *)__stream);\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar22 = false;\n                      fclose(__stream);\n                      if (bVar20) goto LAB_000556cb;\nLAB_00055378:\n                      bVar21 = false;\n                      local_124 = private_blob_len;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar22) {\n                        puVar17 = (uchar *)"putty-private-key-file-mac-key";\n                        puVar19 = key;\n                        for (iVar7 = 0x1f; iVar7 != 0; iVar7 = iVar7 + -1) {\n                          *puVar19 = *puVar17;\n                          puVar17 = puVar17 + (uint)bVar23 * -2 + 1;\n                          puVar19 = puVar19 + (uint)bVar23 * -2 + 1;\n                        }\n                        c_00 = (SHA_CTX *)&s;\n                        SHA_Init(c_00);\n                        SHA_Bytes((SHA_State *)c_00,key,0x1e);\n                        if ((passphrase != (char *)0x0) && (bVar20)) {\n                          SHA_Bytes((SHA_State *)c_00,passphrase,local_14c);\n                        }\n                        c = (SHA_CTX *)passphrase;\n                        SHA_Final((SHA_State *)c_00,mackey);\n                        hmac_sha1_simple(mackey,0x14,local_134,local_124,binary);\n                        smemclr(mackey,0x14);\n                        sVar24 = 0x60;\n                        smemclr(c_00,0x60);\n                      }\n                      else {\n                        passphrase = (char *)binary;\n                        sVar24 = local_124;\n                        SHA_Simple(local_134,local_124,(uchar *)passphrase);\n                        c_00 = (SHA_CTX *)0x0;\n                      }\n                      if (bVar21) {\n                        c = c_00;\n                        smemclr(local_134,local_124);\n                        safefree(local_134);\n                        sVar24 = local_124;\n                        passphrase = (char *)c_00;\n                      }\n                      iVar7 = 0;\n                      do {\n                        puVar17 = binary + iVar7;\n                        iVar5 = iVar7 * 2;\n                        iVar7 = iVar7 + 1;\n                        __sprintf_chk(key + iVar5,1,0xffffffff,&DAT_0007dc2b,*puVar17,sVar24,\n                                      passphrase,c);\n                      } while (iVar7 != 0x14);\n                      iVar7 = strcmp(local_144,(char *)key);\n                      if (iVar7 != 0) {\n                        if (bVar20) {\n                          pcVar11 = "wrong passphrase";\n                          ptr = &ssh2_wrong_passphrase;\n                        }\n                        else {\n                          pcVar11 = "MAC failed";\n                          ptr = (ssh2_userkey *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      safefree(local_144);\n                      ptr = (ssh2_userkey *)safemalloc(1,0xc);\n                      ptr->comment = pcVar8;\n                      ptr->alg = psVar9;\n                      pvVar12 = (*psVar9->createkey)\n                                          (psVar9,local_13c,public_blob_len,(uchar *)local_140,\n                                           private_blob_len);\n                      ptr->data = pvVar12;\n                      if (pvVar12 != (void *)0x0) {\n                        safefree(local_13c);\n                        smemclr(local_140,private_blob_len);\n                        safefree(local_140);\n                        safefree(pbVar10);\n                        if (errorstr != (char **)0x0) {\n                          *errorstr = (char *)0x0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar11 = "createkey failed";\n                      safefree(ptr);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = read_body((FILE *)__stream);\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar22 = bVar20;\n                    if (!bVar20) {\n                      bVar22 = true;\nLAB_00055778:\n                      if (bVar6 != 0) goto LAB_00055378;\n                      uVar13 = 0xffffffff;\n                      pcVar11 = psVar9->name;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar3 = *pcVar11;\n                        pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1;\n                      } while (cVar3 != '\0');\n                      uVar13 = ~uVar13;\n                      __n = uVar13 - 1;\n                      uVar14 = 0xffffffff;\n                      pbVar16 = pbVar10;\n                      do {\n                        if (uVar14 == 0) break;\n                        uVar14 = uVar14 - 1;\n                        bVar6 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                      } while (bVar6 != 0);\n                      uVar15 = 0xffffffff;\n                      uVar14 = ~uVar14;\n                      __n_01 = uVar14 - 1;\n                      pcVar11 = pcVar8;\n                      do {\n                        if (uVar15 == 0) break;\n                        uVar15 = uVar15 - 1;\n                        cVar3 = *pcVar11;\n                        pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1;\n                      } while (cVar3 != '\0');\n                      uVar15 = ~uVar15;\n                      __n_00 = uVar15 - 1;\n                      local_124 = uVar15 + uVar14 + uVar13 + public_blob_len + 0x11 +\n                                  private_blob_len;\n                      local_134 = (SHA_CTX *)safemalloc(local_124,1);\n                      local_134->h0 =\n                           __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                           __n * 0x1000000;\n                      memcpy(&local_134->h1,psVar9->name,__n);\n                      puVar1 = (uint *)((int)local_134->data + (uVar13 - 0x19));\n                      *puVar1 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8 |\n                                __n_01 * 0x1000000;\n                      memcpy(puVar1 + 1,pbVar10,__n_01);\n                      puVar1 = (uint *)((int)puVar1 + uVar14 + 3);\n                      *puVar1 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8 |\n                                __n_00 * 0x1000000;\n                      memcpy(puVar1 + 1,pcVar8,__n_00);\n                      iVar7 = public_blob_len;\n                      c = (SHA_CTX *)((int)puVar1 + uVar15 + 3);\n                      *(undefined1 *)&c->h0 = public_blob_len._3_1_;\n                      *(char *)((int)&c->h0 + 1) = (char)((uint)public_blob_len >> 0x10);\n                      *(char *)((int)&c->h0 + 2) = (char)((uint)public_blob_len >> 8);\n                      *(char *)((int)&c->h0 + 3) = (char)public_blob_len;\n                      memcpy(&c->h1,local_13c,public_blob_len);\n                      puVar2 = (undefined1 *)((int)c->data + iVar7 + -0x18);\n                      *puVar2 = private_blob_len._3_1_;\n                      puVar2[1] = (char)((uint)private_blob_len >> 0x10);\n                      puVar2[2] = (char)((uint)private_blob_len >> 8);\n                      puVar2[3] = (char)private_blob_len;\n                      memcpy(puVar2 + 4,local_140,private_blob_len);\n                      bVar21 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((passphrase != (char *)0x0) && (private_blob_len % (int)local_124 == 0)) {\n                      c = (SHA_CTX *)&s;\n                      SHA_Init(c);\n                      SHA_Bytes((SHA_State *)c,&DAT_0007db1c,4);\n                      SHA_Bytes((SHA_State *)c,passphrase,local_14c);\n                      SHA_Final((SHA_State *)c,key);\n                      SHA_Init(c);\n                      SHA_Bytes((SHA_State *)c,&DAT_0007db21,4);\n                      SHA_Bytes((SHA_State *)c,passphrase,local_14c);\n                      SHA_Final((SHA_State *)c,key + 0x14);\n                      aes256_decrypt_pubkey(key,(uchar *)local_140,private_blob_len);\n                      goto LAB_00055778;\n                    }\n                    pcVar11 = "file format error";\n                    ptr = (ssh2_userkey *)0x0;\nLAB_000554a5:\n                    safefree(pcVar8);\n                    safefree(pbVar10);\n                    safefree(local_144);\n                  }\n                  if (local_13c != (uchar *)0x0) {\n                    safefree(local_13c);\n                  }\n                  if (local_140 != (SHA_CTX *)0x0) {\n                    smemclr(local_140,private_blob_len);\n                    safefree(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }" { (expression_statement "local_124 = 0x10;" (assignment_expression "local_124 = 0x10" identifier = number_literal) ;) (expression_statement "bVar20 = true;" (assignment_expression "bVar20 = true" identifier = true) ;) (labeled_statement "LAB_000551a8:\n              iVar7 = read_header((FILE *)__stream,header);" statement_identifier : (expression_statement "iVar7 = read_header((FILE *)__stream,header);" (assignment_expression "iVar7 = read_header((FILE *)__stream,header)" identifier = (call_expression "read_header((FILE *)__stream,header)" identifier (argument_list "((FILE *)__stream,header)" ( (cast_expression "(FILE *)__stream" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier )))) ;)) (expression_statement "bVar22 = false;" (assignment_expression "bVar22 = false" identifier = false) ;) (expression_statement "bVar21 = iVar7 == 0;" (assignment_expression "bVar21 = iVar7 == 0" identifier = (binary_expression "iVar7 == 0" identifier == number_literal)) ;) (if_statement "if (!bVar21) {\n                iVar7 = 8;\n                pbVar16 = (byte *)header;\n                pbVar18 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar22 = *pbVar16 < *pbVar18;\n                  bVar21 = *pbVar16 == *pbVar18;\n                  pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                  pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n                } while (bVar21);\n                if ((!bVar22 && !bVar21) == bVar22) {\n                  pcVar8 = read_body((FILE *)__stream);\n                  if (pcVar8 == (char *)0x0) {\n                    pcVar11 = "file format error";\n                    ptr = (ssh2_userkey *)0x0;\n                    fclose(__stream);\n                    safefree(pbVar10);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = read_header((FILE *)__stream,header);\n                  bVar22 = false;\n                  bVar21 = iVar7 == 0;\n                  if (bVar21) {\nLAB_000555ad:\n                    local_140 = (SHA_CTX *)0x0;\n                    local_13c = (uchar *)0x0;\nLAB_0005553d:\n                    pcVar11 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    ptr = (ssh2_userkey *)0x0;\n                    safefree(pcVar8);\n                    safefree(pbVar10);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = (byte *)header;\n                    pbVar18 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar22 = *pbVar16 < *pbVar18;\n                      bVar21 = *pbVar16 == *pbVar18;\n                      pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                      pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n                    } while (bVar21);\n                    if ((!bVar22 && !bVar21) != bVar22) goto LAB_000555ad;\n                    pcVar11 = read_body((FILE *)__stream);\n                    if (pcVar11 == (char *)0x0) goto LAB_000555ad;\n                    iVar7 = userkey_parse_line_counter(pcVar11);\n                    safefree(pcVar11);\n                    if (iVar7 < 0) goto LAB_000555ad;\n                    local_13c = read_blob((FILE *)__stream,iVar7,&public_blob_len);\n                    if (local_13c == (uchar *)0x0) goto LAB_000555ad;\n                    iVar7 = read_header((FILE *)__stream,header);\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (SHA_CTX *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    iVar7 = strcmp(header,"Private-Lines");\n                    local_140 = (SHA_CTX *)0x0;\n                    if (iVar7 != 0) goto LAB_0005553d;\n                    c = (SHA_CTX *)read_body((FILE *)__stream);\n                    local_140 = c;\n                    if (c == (SHA_CTX *)0x0) goto LAB_0005553d;\n                    iVar7 = userkey_parse_line_counter((char *)c);\n                    safefree(c);\n                    if (iVar7 < 0) goto LAB_00055535;\n                    local_140 = (SHA_CTX *)read_blob((FILE *)__stream,iVar7,&private_blob_len);\n                    if (local_140 == (SHA_CTX *)0x0) goto LAB_0005553d;\n                    iVar7 = read_header((FILE *)__stream,header);\n                    if (iVar7 == 0) goto LAB_0005553d;\n                    iVar7 = strcmp(header,"Private-MAC");\n                    if (iVar7 != 0) {\n                      iVar7 = strcmp(header,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar6 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = read_body((FILE *)__stream);\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar22 = false;\n                      fclose(__stream);\n                      if (bVar20) goto LAB_000556cb;\nLAB_00055378:\n                      bVar21 = false;\n                      local_124 = private_blob_len;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar22) {\n                        puVar17 = (uchar *)"putty-private-key-file-mac-key";\n                        puVar19 = key;\n                        for (iVar7 = 0x1f; iVar7 != 0; iVar7 = iVar7 + -1) {\n                          *puVar19 = *puVar17;\n                          puVar17 = puVar17 + (uint)bVar23 * -2 + 1;\n                          puVar19 = puVar19 + (uint)bVar23 * -2 + 1;\n                        }\n                        c_00 = (SHA_CTX *)&s;\n                        SHA_Init(c_00);\n                        SHA_Bytes((SHA_State *)c_00,key,0x1e);\n                        if ((passphrase != (char *)0x0) && (bVar20)) {\n                          SHA_Bytes((SHA_State *)c_00,passphrase,local_14c);\n                        }\n                        c = (SHA_CTX *)passphrase;\n                        SHA_Final((SHA_State *)c_00,mackey);\n                        hmac_sha1_simple(mackey,0x14,local_134,local_124,binary);\n                        smemclr(mackey,0x14);\n                        sVar24 = 0x60;\n                        smemclr(c_00,0x60);\n                      }\n                      else {\n                        passphrase = (char *)binary;\n                        sVar24 = local_124;\n                        SHA_Simple(local_134,local_124,(uchar *)passphrase);\n                        c_00 = (SHA_CTX *)0x0;\n                      }\n                      if (bVar21) {\n                        c = c_00;\n                        smemclr(local_134,local_124);\n                        safefree(local_134);\n                        sVar24 = local_124;\n                        passphrase = (char *)c_00;\n                      }\n                      iVar7 = 0;\n                      do {\n                        puVar17 = binary + iVar7;\n                        iVar5 = iVar7 * 2;\n                        iVar7 = iVar7 + 1;\n                        __sprintf_chk(key + iVar5,1,0xffffffff,&DAT_0007dc2b,*puVar17,sVar24,\n                                      passphrase,c);\n                      } while (iVar7 != 0x14);\n                      iVar7 = strcmp(local_144,(char *)key);\n                      if (iVar7 != 0) {\n                        if (bVar20) {\n                          pcVar11 = "wrong passphrase";\n                          ptr = &ssh2_wrong_passphrase;\n                        }\n                        else {\n                          pcVar11 = "MAC failed";\n                          ptr = (ssh2_userkey *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      safefree(local_144);\n                      ptr = (ssh2_userkey *)safemalloc(1,0xc);\n                      ptr->comment = pcVar8;\n                      ptr->alg = psVar9;\n                      pvVar12 = (*psVar9->createkey)\n                                          (psVar9,local_13c,public_blob_len,(uchar *)local_140,\n                                           private_blob_len);\n                      ptr->data = pvVar12;\n                      if (pvVar12 != (void *)0x0) {\n                        safefree(local_13c);\n                        smemclr(local_140,private_blob_len);\n                        safefree(local_140);\n                        safefree(pbVar10);\n                        if (errorstr != (char **)0x0) {\n                          *errorstr = (char *)0x0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar11 = "createkey failed";\n                      safefree(ptr);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = read_body((FILE *)__stream);\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar22 = bVar20;\n                    if (!bVar20) {\n                      bVar22 = true;\nLAB_00055778:\n                      if (bVar6 != 0) goto LAB_00055378;\n                      uVar13 = 0xffffffff;\n                      pcVar11 = psVar9->name;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar3 = *pcVar11;\n                        pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1;\n                      } while (cVar3 != '\0');\n                      uVar13 = ~uVar13;\n                      __n = uVar13 - 1;\n                      uVar14 = 0xffffffff;\n                      pbVar16 = pbVar10;\n                      do {\n                        if (uVar14 == 0) break;\n                        uVar14 = uVar14 - 1;\n                        bVar6 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                      } while (bVar6 != 0);\n                      uVar15 = 0xffffffff;\n                      uVar14 = ~uVar14;\n                      __n_01 = uVar14 - 1;\n                      pcVar11 = pcVar8;\n                      do {\n                        if (uVar15 == 0) break;\n                        uVar15 = uVar15 - 1;\n                        cVar3 = *pcVar11;\n                        pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1;\n                      } while (cVar3 != '\0');\n                      uVar15 = ~uVar15;\n                      __n_00 = uVar15 - 1;\n                      local_124 = uVar15 + uVar14 + uVar13 + public_blob_len + 0x11 +\n                                  private_blob_len;\n                      local_134 = (SHA_CTX *)safemalloc(local_124,1);\n                      local_134->h0 =\n                           __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                           __n * 0x1000000;\n                      memcpy(&local_134->h1,psVar9->name,__n);\n                      puVar1 = (uint *)((int)local_134->data + (uVar13 - 0x19));\n                      *puVar1 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8 |\n                                __n_01 * 0x1000000;\n                      memcpy(puVar1 + 1,pbVar10,__n_01);\n                      puVar1 = (uint *)((int)puVar1 + uVar14 + 3);\n                      *puVar1 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8 |\n                                __n_00 * 0x1000000;\n                      memcpy(puVar1 + 1,pcVar8,__n_00);\n                      iVar7 = public_blob_len;\n                      c = (SHA_CTX *)((int)puVar1 + uVar15 + 3);\n                      *(undefined1 *)&c->h0 = public_blob_len._3_1_;\n                      *(char *)((int)&c->h0 + 1) = (char)((uint)public_blob_len >> 0x10);\n                      *(char *)((int)&c->h0 + 2) = (char)((uint)public_blob_len >> 8);\n                      *(char *)((int)&c->h0 + 3) = (char)public_blob_len;\n                      memcpy(&c->h1,local_13c,public_blob_len);\n                      puVar2 = (undefined1 *)((int)c->data + iVar7 + -0x18);\n                      *puVar2 = private_blob_len._3_1_;\n                      puVar2[1] = (char)((uint)private_blob_len >> 0x10);\n                      puVar2[2] = (char)((uint)private_blob_len >> 8);\n                      puVar2[3] = (char)private_blob_len;\n                      memcpy(puVar2 + 4,local_140,private_blob_len);\n                      bVar21 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((passphrase != (char *)0x0) && (private_blob_len % (int)local_124 == 0)) {\n                      c = (SHA_CTX *)&s;\n                      SHA_Init(c);\n                      SHA_Bytes((SHA_State *)c,&DAT_0007db1c,4);\n                      SHA_Bytes((SHA_State *)c,passphrase,local_14c);\n                      SHA_Final((SHA_State *)c,key);\n                      SHA_Init(c);\n                      SHA_Bytes((SHA_State *)c,&DAT_0007db21,4);\n                      SHA_Bytes((SHA_State *)c,passphrase,local_14c);\n                      SHA_Final((SHA_State *)c,key + 0x14);\n                      aes256_decrypt_pubkey(key,(uchar *)local_140,private_blob_len);\n                      goto LAB_00055778;\n                    }\n                    pcVar11 = "file format error";\n                    ptr = (ssh2_userkey *)0x0;\nLAB_000554a5:\n                    safefree(pcVar8);\n                    safefree(pbVar10);\n                    safefree(local_144);\n                  }\n                  if (local_13c != (uchar *)0x0) {\n                    safefree(local_13c);\n                  }\n                  if (local_140 != (SHA_CTX *)0x0) {\n                    smemclr(local_140,private_blob_len);\n                    safefree(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }" if (parenthesized_expression "(!bVar21)" ( (unary_expression "!bVar21" ! identifier) )) (compound_statement "{\n                iVar7 = 8;\n                pbVar16 = (byte *)header;\n                pbVar18 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar22 = *pbVar16 < *pbVar18;\n                  bVar21 = *pbVar16 == *pbVar18;\n                  pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                  pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n                } while (bVar21);\n                if ((!bVar22 && !bVar21) == bVar22) {\n                  pcVar8 = read_body((FILE *)__stream);\n                  if (pcVar8 == (char *)0x0) {\n                    pcVar11 = "file format error";\n                    ptr = (ssh2_userkey *)0x0;\n                    fclose(__stream);\n                    safefree(pbVar10);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = read_header((FILE *)__stream,header);\n                  bVar22 = false;\n                  bVar21 = iVar7 == 0;\n                  if (bVar21) {\nLAB_000555ad:\n                    local_140 = (SHA_CTX *)0x0;\n                    local_13c = (uchar *)0x0;\nLAB_0005553d:\n                    pcVar11 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    ptr = (ssh2_userkey *)0x0;\n                    safefree(pcVar8);\n                    safefree(pbVar10);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = (byte *)header;\n                    pbVar18 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar22 = *pbVar16 < *pbVar18;\n                      bVar21 = *pbVar16 == *pbVar18;\n                      pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                      pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n                    } while (bVar21);\n                    if ((!bVar22 && !bVar21) != bVar22) goto LAB_000555ad;\n                    pcVar11 = read_body((FILE *)__stream);\n                    if (pcVar11 == (char *)0x0) goto LAB_000555ad;\n                    iVar7 = userkey_parse_line_counter(pcVar11);\n                    safefree(pcVar11);\n                    if (iVar7 < 0) goto LAB_000555ad;\n                    local_13c = read_blob((FILE *)__stream,iVar7,&public_blob_len);\n                    if (local_13c == (uchar *)0x0) goto LAB_000555ad;\n                    iVar7 = read_header((FILE *)__stream,header);\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (SHA_CTX *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    iVar7 = strcmp(header,"Private-Lines");\n                    local_140 = (SHA_CTX *)0x0;\n                    if (iVar7 != 0) goto LAB_0005553d;\n                    c = (SHA_CTX *)read_body((FILE *)__stream);\n                    local_140 = c;\n                    if (c == (SHA_CTX *)0x0) goto LAB_0005553d;\n                    iVar7 = userkey_parse_line_counter((char *)c);\n                    safefree(c);\n                    if (iVar7 < 0) goto LAB_00055535;\n                    local_140 = (SHA_CTX *)read_blob((FILE *)__stream,iVar7,&private_blob_len);\n                    if (local_140 == (SHA_CTX *)0x0) goto LAB_0005553d;\n                    iVar7 = read_header((FILE *)__stream,header);\n                    if (iVar7 == 0) goto LAB_0005553d;\n                    iVar7 = strcmp(header,"Private-MAC");\n                    if (iVar7 != 0) {\n                      iVar7 = strcmp(header,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar6 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = read_body((FILE *)__stream);\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar22 = false;\n                      fclose(__stream);\n                      if (bVar20) goto LAB_000556cb;\nLAB_00055378:\n                      bVar21 = false;\n                      local_124 = private_blob_len;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar22) {\n                        puVar17 = (uchar *)"putty-private-key-file-mac-key";\n                        puVar19 = key;\n                        for (iVar7 = 0x1f; iVar7 != 0; iVar7 = iVar7 + -1) {\n                          *puVar19 = *puVar17;\n                          puVar17 = puVar17 + (uint)bVar23 * -2 + 1;\n                          puVar19 = puVar19 + (uint)bVar23 * -2 + 1;\n                        }\n                        c_00 = (SHA_CTX *)&s;\n                        SHA_Init(c_00);\n                        SHA_Bytes((SHA_State *)c_00,key,0x1e);\n                        if ((passphrase != (char *)0x0) && (bVar20)) {\n                          SHA_Bytes((SHA_State *)c_00,passphrase,local_14c);\n                        }\n                        c = (SHA_CTX *)passphrase;\n                        SHA_Final((SHA_State *)c_00,mackey);\n                        hmac_sha1_simple(mackey,0x14,local_134,local_124,binary);\n                        smemclr(mackey,0x14);\n                        sVar24 = 0x60;\n                        smemclr(c_00,0x60);\n                      }\n                      else {\n                        passphrase = (char *)binary;\n                        sVar24 = local_124;\n                        SHA_Simple(local_134,local_124,(uchar *)passphrase);\n                        c_00 = (SHA_CTX *)0x0;\n                      }\n                      if (bVar21) {\n                        c = c_00;\n                        smemclr(local_134,local_124);\n                        safefree(local_134);\n                        sVar24 = local_124;\n                        passphrase = (char *)c_00;\n                      }\n                      iVar7 = 0;\n                      do {\n                        puVar17 = binary + iVar7;\n                        iVar5 = iVar7 * 2;\n                        iVar7 = iVar7 + 1;\n                        __sprintf_chk(key + iVar5,1,0xffffffff,&DAT_0007dc2b,*puVar17,sVar24,\n                                      passphrase,c);\n                      } while (iVar7 != 0x14);\n                      iVar7 = strcmp(local_144,(char *)key);\n                      if (iVar7 != 0) {\n                        if (bVar20) {\n                          pcVar11 = "wrong passphrase";\n                          ptr = &ssh2_wrong_passphrase;\n                        }\n                        else {\n                          pcVar11 = "MAC failed";\n                          ptr = (ssh2_userkey *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      safefree(local_144);\n                      ptr = (ssh2_userkey *)safemalloc(1,0xc);\n                      ptr->comment = pcVar8;\n                      ptr->alg = psVar9;\n                      pvVar12 = (*psVar9->createkey)\n                                          (psVar9,local_13c,public_blob_len,(uchar *)local_140,\n                                           private_blob_len);\n                      ptr->data = pvVar12;\n                      if (pvVar12 != (void *)0x0) {\n                        safefree(local_13c);\n                        smemclr(local_140,private_blob_len);\n                        safefree(local_140);\n                        safefree(pbVar10);\n                        if (errorstr != (char **)0x0) {\n                          *errorstr = (char *)0x0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar11 = "createkey failed";\n                      safefree(ptr);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = read_body((FILE *)__stream);\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar22 = bVar20;\n                    if (!bVar20) {\n                      bVar22 = true;\nLAB_00055778:\n                      if (bVar6 != 0) goto LAB_00055378;\n                      uVar13 = 0xffffffff;\n                      pcVar11 = psVar9->name;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar3 = *pcVar11;\n                        pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1;\n                      } while (cVar3 != '\0');\n                      uVar13 = ~uVar13;\n                      __n = uVar13 - 1;\n                      uVar14 = 0xffffffff;\n                      pbVar16 = pbVar10;\n                      do {\n                        if (uVar14 == 0) break;\n                        uVar14 = uVar14 - 1;\n                        bVar6 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                      } while (bVar6 != 0);\n                      uVar15 = 0xffffffff;\n                      uVar14 = ~uVar14;\n                      __n_01 = uVar14 - 1;\n                      pcVar11 = pcVar8;\n                      do {\n                        if (uVar15 == 0) break;\n                        uVar15 = uVar15 - 1;\n                        cVar3 = *pcVar11;\n                        pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1;\n                      } while (cVar3 != '\0');\n                      uVar15 = ~uVar15;\n                      __n_00 = uVar15 - 1;\n                      local_124 = uVar15 + uVar14 + uVar13 + public_blob_len + 0x11 +\n                                  private_blob_len;\n                      local_134 = (SHA_CTX *)safemalloc(local_124,1);\n                      local_134->h0 =\n                           __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                           __n * 0x1000000;\n                      memcpy(&local_134->h1,psVar9->name,__n);\n                      puVar1 = (uint *)((int)local_134->data + (uVar13 - 0x19));\n                      *puVar1 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8 |\n                                __n_01 * 0x1000000;\n                      memcpy(puVar1 + 1,pbVar10,__n_01);\n                      puVar1 = (uint *)((int)puVar1 + uVar14 + 3);\n                      *puVar1 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8 |\n                                __n_00 * 0x1000000;\n                      memcpy(puVar1 + 1,pcVar8,__n_00);\n                      iVar7 = public_blob_len;\n                      c = (SHA_CTX *)((int)puVar1 + uVar15 + 3);\n                      *(undefined1 *)&c->h0 = public_blob_len._3_1_;\n                      *(char *)((int)&c->h0 + 1) = (char)((uint)public_blob_len >> 0x10);\n                      *(char *)((int)&c->h0 + 2) = (char)((uint)public_blob_len >> 8);\n                      *(char *)((int)&c->h0 + 3) = (char)public_blob_len;\n                      memcpy(&c->h1,local_13c,public_blob_len);\n                      puVar2 = (undefined1 *)((int)c->data + iVar7 + -0x18);\n                      *puVar2 = private_blob_len._3_1_;\n                      puVar2[1] = (char)((uint)private_blob_len >> 0x10);\n                      puVar2[2] = (char)((uint)private_blob_len >> 8);\n                      puVar2[3] = (char)private_blob_len;\n                      memcpy(puVar2 + 4,local_140,private_blob_len);\n                      bVar21 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((passphrase != (char *)0x0) && (private_blob_len % (int)local_124 == 0)) {\n                      c = (SHA_CTX *)&s;\n                      SHA_Init(c);\n                      SHA_Bytes((SHA_State *)c,&DAT_0007db1c,4);\n                      SHA_Bytes((SHA_State *)c,passphrase,local_14c);\n                      SHA_Final((SHA_State *)c,key);\n                      SHA_Init(c);\n                      SHA_Bytes((SHA_State *)c,&DAT_0007db21,4);\n                      SHA_Bytes((SHA_State *)c,passphrase,local_14c);\n                      SHA_Final((SHA_State *)c,key + 0x14);\n                      aes256_decrypt_pubkey(key,(uchar *)local_140,private_blob_len);\n                      goto LAB_00055778;\n                    }\n                    pcVar11 = "file format error";\n                    ptr = (ssh2_userkey *)0x0;\nLAB_000554a5:\n                    safefree(pcVar8);\n                    safefree(pbVar10);\n                    safefree(local_144);\n                  }\n                  if (local_13c != (uchar *)0x0) {\n                    safefree(local_13c);\n                  }\n                  if (local_140 != (SHA_CTX *)0x0) {\n                    smemclr(local_140,private_blob_len);\n                    safefree(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }" { (expression_statement "iVar7 = 8;" (assignment_expression "iVar7 = 8" identifier = number_literal) ;) (expression_statement "pbVar16 = (byte *)header;" (assignment_expression "pbVar16 = (byte *)header" identifier = (cast_expression "(byte *)header" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "pbVar18 = (byte *)"Comment";" (assignment_expression "pbVar18 = (byte *)"Comment"" identifier = (cast_expression "(byte *)"Comment"" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""Comment"" " string_content "))) ;) (do_statement "do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar22 = *pbVar16 < *pbVar18;\n                  bVar21 = *pbVar16 == *pbVar18;\n                  pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                  pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n                } while (bVar21);" do (compound_statement "{\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar22 = *pbVar16 < *pbVar18;\n                  bVar21 = *pbVar16 == *pbVar18;\n                  pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                  pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n                }" { (if_statement "if (iVar7 == 0) break;" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar7 = iVar7 + -1;" (assignment_expression "iVar7 = iVar7 + -1" identifier = (binary_expression "iVar7 + -1" identifier + number_literal)) ;) (expression_statement "bVar22 = *pbVar16 < *pbVar18;" (assignment_expression "bVar22 = *pbVar16 < *pbVar18" identifier = (binary_expression "*pbVar16 < *pbVar18" (pointer_expression "*pbVar16" * identifier) < (pointer_expression "*pbVar18" * identifier))) ;) (expression_statement "bVar21 = *pbVar16 == *pbVar18;" (assignment_expression "bVar21 = *pbVar16 == *pbVar18" identifier = (binary_expression "*pbVar16 == *pbVar18" (pointer_expression "*pbVar16" * identifier) == (pointer_expression "*pbVar18" * identifier))) ;) (expression_statement "pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;" (assignment_expression "pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1" identifier = (binary_expression "pbVar16 + (uint)bVar23 * -2 + 1" (binary_expression "pbVar16 + (uint)bVar23 * -2" identifier + (binary_expression "(uint)bVar23 * -2" (cast_expression "(uint)bVar23" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;" (assignment_expression "pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1" identifier = (binary_expression "pbVar18 + (uint)bVar23 * -2 + 1" (binary_expression "pbVar18 + (uint)bVar23 * -2" identifier + (binary_expression "(uint)bVar23 * -2" (cast_expression "(uint)bVar23" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar21)" ( identifier )) ;) (if_statement "if ((!bVar22 && !bVar21) == bVar22) {\n                  pcVar8 = read_body((FILE *)__stream);\n                  if (pcVar8 == (char *)0x0) {\n                    pcVar11 = "file format error";\n                    ptr = (ssh2_userkey *)0x0;\n                    fclose(__stream);\n                    safefree(pbVar10);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = read_header((FILE *)__stream,header);\n                  bVar22 = false;\n                  bVar21 = iVar7 == 0;\n                  if (bVar21) {\nLAB_000555ad:\n                    local_140 = (SHA_CTX *)0x0;\n                    local_13c = (uchar *)0x0;\nLAB_0005553d:\n                    pcVar11 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    ptr = (ssh2_userkey *)0x0;\n                    safefree(pcVar8);\n                    safefree(pbVar10);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = (byte *)header;\n                    pbVar18 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar22 = *pbVar16 < *pbVar18;\n                      bVar21 = *pbVar16 == *pbVar18;\n                      pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                      pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n                    } while (bVar21);\n                    if ((!bVar22 && !bVar21) != bVar22) goto LAB_000555ad;\n                    pcVar11 = read_body((FILE *)__stream);\n                    if (pcVar11 == (char *)0x0) goto LAB_000555ad;\n                    iVar7 = userkey_parse_line_counter(pcVar11);\n                    safefree(pcVar11);\n                    if (iVar7 < 0) goto LAB_000555ad;\n                    local_13c = read_blob((FILE *)__stream,iVar7,&public_blob_len);\n                    if (local_13c == (uchar *)0x0) goto LAB_000555ad;\n                    iVar7 = read_header((FILE *)__stream,header);\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (SHA_CTX *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    iVar7 = strcmp(header,"Private-Lines");\n                    local_140 = (SHA_CTX *)0x0;\n                    if (iVar7 != 0) goto LAB_0005553d;\n                    c = (SHA_CTX *)read_body((FILE *)__stream);\n                    local_140 = c;\n                    if (c == (SHA_CTX *)0x0) goto LAB_0005553d;\n                    iVar7 = userkey_parse_line_counter((char *)c);\n                    safefree(c);\n                    if (iVar7 < 0) goto LAB_00055535;\n                    local_140 = (SHA_CTX *)read_blob((FILE *)__stream,iVar7,&private_blob_len);\n                    if (local_140 == (SHA_CTX *)0x0) goto LAB_0005553d;\n                    iVar7 = read_header((FILE *)__stream,header);\n                    if (iVar7 == 0) goto LAB_0005553d;\n                    iVar7 = strcmp(header,"Private-MAC");\n                    if (iVar7 != 0) {\n                      iVar7 = strcmp(header,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar6 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = read_body((FILE *)__stream);\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar22 = false;\n                      fclose(__stream);\n                      if (bVar20) goto LAB_000556cb;\nLAB_00055378:\n                      bVar21 = false;\n                      local_124 = private_blob_len;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar22) {\n                        puVar17 = (uchar *)"putty-private-key-file-mac-key";\n                        puVar19 = key;\n                        for (iVar7 = 0x1f; iVar7 != 0; iVar7 = iVar7 + -1) {\n                          *puVar19 = *puVar17;\n                          puVar17 = puVar17 + (uint)bVar23 * -2 + 1;\n                          puVar19 = puVar19 + (uint)bVar23 * -2 + 1;\n                        }\n                        c_00 = (SHA_CTX *)&s;\n                        SHA_Init(c_00);\n                        SHA_Bytes((SHA_State *)c_00,key,0x1e);\n                        if ((passphrase != (char *)0x0) && (bVar20)) {\n                          SHA_Bytes((SHA_State *)c_00,passphrase,local_14c);\n                        }\n                        c = (SHA_CTX *)passphrase;\n                        SHA_Final((SHA_State *)c_00,mackey);\n                        hmac_sha1_simple(mackey,0x14,local_134,local_124,binary);\n                        smemclr(mackey,0x14);\n                        sVar24 = 0x60;\n                        smemclr(c_00,0x60);\n                      }\n                      else {\n                        passphrase = (char *)binary;\n                        sVar24 = local_124;\n                        SHA_Simple(local_134,local_124,(uchar *)passphrase);\n                        c_00 = (SHA_CTX *)0x0;\n                      }\n                      if (bVar21) {\n                        c = c_00;\n                        smemclr(local_134,local_124);\n                        safefree(local_134);\n                        sVar24 = local_124;\n                        passphrase = (char *)c_00;\n                      }\n                      iVar7 = 0;\n                      do {\n                        puVar17 = binary + iVar7;\n                        iVar5 = iVar7 * 2;\n                        iVar7 = iVar7 + 1;\n                        __sprintf_chk(key + iVar5,1,0xffffffff,&DAT_0007dc2b,*puVar17,sVar24,\n                                      passphrase,c);\n                      } while (iVar7 != 0x14);\n                      iVar7 = strcmp(local_144,(char *)key);\n                      if (iVar7 != 0) {\n                        if (bVar20) {\n                          pcVar11 = "wrong passphrase";\n                          ptr = &ssh2_wrong_passphrase;\n                        }\n                        else {\n                          pcVar11 = "MAC failed";\n                          ptr = (ssh2_userkey *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      safefree(local_144);\n                      ptr = (ssh2_userkey *)safemalloc(1,0xc);\n                      ptr->comment = pcVar8;\n                      ptr->alg = psVar9;\n                      pvVar12 = (*psVar9->createkey)\n                                          (psVar9,local_13c,public_blob_len,(uchar *)local_140,\n                                           private_blob_len);\n                      ptr->data = pvVar12;\n                      if (pvVar12 != (void *)0x0) {\n                        safefree(local_13c);\n                        smemclr(local_140,private_blob_len);\n                        safefree(local_140);\n                        safefree(pbVar10);\n                        if (errorstr != (char **)0x0) {\n                          *errorstr = (char *)0x0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar11 = "createkey failed";\n                      safefree(ptr);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = read_body((FILE *)__stream);\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar22 = bVar20;\n                    if (!bVar20) {\n                      bVar22 = true;\nLAB_00055778:\n                      if (bVar6 != 0) goto LAB_00055378;\n                      uVar13 = 0xffffffff;\n                      pcVar11 = psVar9->name;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar3 = *pcVar11;\n                        pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1;\n                      } while (cVar3 != '\0');\n                      uVar13 = ~uVar13;\n                      __n = uVar13 - 1;\n                      uVar14 = 0xffffffff;\n                      pbVar16 = pbVar10;\n                      do {\n                        if (uVar14 == 0) break;\n                        uVar14 = uVar14 - 1;\n                        bVar6 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                      } while (bVar6 != 0);\n                      uVar15 = 0xffffffff;\n                      uVar14 = ~uVar14;\n                      __n_01 = uVar14 - 1;\n                      pcVar11 = pcVar8;\n                      do {\n                        if (uVar15 == 0) break;\n                        uVar15 = uVar15 - 1;\n                        cVar3 = *pcVar11;\n                        pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1;\n                      } while (cVar3 != '\0');\n                      uVar15 = ~uVar15;\n                      __n_00 = uVar15 - 1;\n                      local_124 = uVar15 + uVar14 + uVar13 + public_blob_len + 0x11 +\n                                  private_blob_len;\n                      local_134 = (SHA_CTX *)safemalloc(local_124,1);\n                      local_134->h0 =\n                           __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                           __n * 0x1000000;\n                      memcpy(&local_134->h1,psVar9->name,__n);\n                      puVar1 = (uint *)((int)local_134->data + (uVar13 - 0x19));\n                      *puVar1 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8 |\n                                __n_01 * 0x1000000;\n                      memcpy(puVar1 + 1,pbVar10,__n_01);\n                      puVar1 = (uint *)((int)puVar1 + uVar14 + 3);\n                      *puVar1 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8 |\n                                __n_00 * 0x1000000;\n                      memcpy(puVar1 + 1,pcVar8,__n_00);\n                      iVar7 = public_blob_len;\n                      c = (SHA_CTX *)((int)puVar1 + uVar15 + 3);\n                      *(undefined1 *)&c->h0 = public_blob_len._3_1_;\n                      *(char *)((int)&c->h0 + 1) = (char)((uint)public_blob_len >> 0x10);\n                      *(char *)((int)&c->h0 + 2) = (char)((uint)public_blob_len >> 8);\n                      *(char *)((int)&c->h0 + 3) = (char)public_blob_len;\n                      memcpy(&c->h1,local_13c,public_blob_len);\n                      puVar2 = (undefined1 *)((int)c->data + iVar7 + -0x18);\n                      *puVar2 = private_blob_len._3_1_;\n                      puVar2[1] = (char)((uint)private_blob_len >> 0x10);\n                      puVar2[2] = (char)((uint)private_blob_len >> 8);\n                      puVar2[3] = (char)private_blob_len;\n                      memcpy(puVar2 + 4,local_140,private_blob_len);\n                      bVar21 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((passphrase != (char *)0x0) && (private_blob_len % (int)local_124 == 0)) {\n                      c = (SHA_CTX *)&s;\n                      SHA_Init(c);\n                      SHA_Bytes((SHA_State *)c,&DAT_0007db1c,4);\n                      SHA_Bytes((SHA_State *)c,passphrase,local_14c);\n                      SHA_Final((SHA_State *)c,key);\n                      SHA_Init(c);\n                      SHA_Bytes((SHA_State *)c,&DAT_0007db21,4);\n                      SHA_Bytes((SHA_State *)c,passphrase,local_14c);\n                      SHA_Final((SHA_State *)c,key + 0x14);\n                      aes256_decrypt_pubkey(key,(uchar *)local_140,private_blob_len);\n                      goto LAB_00055778;\n                    }\n                    pcVar11 = "file format error";\n                    ptr = (ssh2_userkey *)0x0;\nLAB_000554a5:\n                    safefree(pcVar8);\n                    safefree(pbVar10);\n                    safefree(local_144);\n                  }\n                  if (local_13c != (uchar *)0x0) {\n                    safefree(local_13c);\n                  }\n                  if (local_140 != (SHA_CTX *)0x0) {\n                    smemclr(local_140,private_blob_len);\n                    safefree(local_140);\n                  }\n                  goto LAB_00055070;\n                }" if (parenthesized_expression "((!bVar22 && !bVar21) == bVar22)" ( (binary_expression "(!bVar22 && !bVar21) == bVar22" (parenthesized_expression "(!bVar22 && !bVar21)" ( (binary_expression "!bVar22 && !bVar21" (unary_expression "!bVar22" ! identifier) && (unary_expression "!bVar21" ! identifier)) )) == identifier) )) (compound_statement "{\n                  pcVar8 = read_body((FILE *)__stream);\n                  if (pcVar8 == (char *)0x0) {\n                    pcVar11 = "file format error";\n                    ptr = (ssh2_userkey *)0x0;\n                    fclose(__stream);\n                    safefree(pbVar10);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = read_header((FILE *)__stream,header);\n                  bVar22 = false;\n                  bVar21 = iVar7 == 0;\n                  if (bVar21) {\nLAB_000555ad:\n                    local_140 = (SHA_CTX *)0x0;\n                    local_13c = (uchar *)0x0;\nLAB_0005553d:\n                    pcVar11 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    ptr = (ssh2_userkey *)0x0;\n                    safefree(pcVar8);\n                    safefree(pbVar10);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = (byte *)header;\n                    pbVar18 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar22 = *pbVar16 < *pbVar18;\n                      bVar21 = *pbVar16 == *pbVar18;\n                      pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                      pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n                    } while (bVar21);\n                    if ((!bVar22 && !bVar21) != bVar22) goto LAB_000555ad;\n                    pcVar11 = read_body((FILE *)__stream);\n                    if (pcVar11 == (char *)0x0) goto LAB_000555ad;\n                    iVar7 = userkey_parse_line_counter(pcVar11);\n                    safefree(pcVar11);\n                    if (iVar7 < 0) goto LAB_000555ad;\n                    local_13c = read_blob((FILE *)__stream,iVar7,&public_blob_len);\n                    if (local_13c == (uchar *)0x0) goto LAB_000555ad;\n                    iVar7 = read_header((FILE *)__stream,header);\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (SHA_CTX *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    iVar7 = strcmp(header,"Private-Lines");\n                    local_140 = (SHA_CTX *)0x0;\n                    if (iVar7 != 0) goto LAB_0005553d;\n                    c = (SHA_CTX *)read_body((FILE *)__stream);\n                    local_140 = c;\n                    if (c == (SHA_CTX *)0x0) goto LAB_0005553d;\n                    iVar7 = userkey_parse_line_counter((char *)c);\n                    safefree(c);\n                    if (iVar7 < 0) goto LAB_00055535;\n                    local_140 = (SHA_CTX *)read_blob((FILE *)__stream,iVar7,&private_blob_len);\n                    if (local_140 == (SHA_CTX *)0x0) goto LAB_0005553d;\n                    iVar7 = read_header((FILE *)__stream,header);\n                    if (iVar7 == 0) goto LAB_0005553d;\n                    iVar7 = strcmp(header,"Private-MAC");\n                    if (iVar7 != 0) {\n                      iVar7 = strcmp(header,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar6 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = read_body((FILE *)__stream);\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar22 = false;\n                      fclose(__stream);\n                      if (bVar20) goto LAB_000556cb;\nLAB_00055378:\n                      bVar21 = false;\n                      local_124 = private_blob_len;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar22) {\n                        puVar17 = (uchar *)"putty-private-key-file-mac-key";\n                        puVar19 = key;\n                        for (iVar7 = 0x1f; iVar7 != 0; iVar7 = iVar7 + -1) {\n                          *puVar19 = *puVar17;\n                          puVar17 = puVar17 + (uint)bVar23 * -2 + 1;\n                          puVar19 = puVar19 + (uint)bVar23 * -2 + 1;\n                        }\n                        c_00 = (SHA_CTX *)&s;\n                        SHA_Init(c_00);\n                        SHA_Bytes((SHA_State *)c_00,key,0x1e);\n                        if ((passphrase != (char *)0x0) && (bVar20)) {\n                          SHA_Bytes((SHA_State *)c_00,passphrase,local_14c);\n                        }\n                        c = (SHA_CTX *)passphrase;\n                        SHA_Final((SHA_State *)c_00,mackey);\n                        hmac_sha1_simple(mackey,0x14,local_134,local_124,binary);\n                        smemclr(mackey,0x14);\n                        sVar24 = 0x60;\n                        smemclr(c_00,0x60);\n                      }\n                      else {\n                        passphrase = (char *)binary;\n                        sVar24 = local_124;\n                        SHA_Simple(local_134,local_124,(uchar *)passphrase);\n                        c_00 = (SHA_CTX *)0x0;\n                      }\n                      if (bVar21) {\n                        c = c_00;\n                        smemclr(local_134,local_124);\n                        safefree(local_134);\n                        sVar24 = local_124;\n                        passphrase = (char *)c_00;\n                      }\n                      iVar7 = 0;\n                      do {\n                        puVar17 = binary + iVar7;\n                        iVar5 = iVar7 * 2;\n                        iVar7 = iVar7 + 1;\n                        __sprintf_chk(key + iVar5,1,0xffffffff,&DAT_0007dc2b,*puVar17,sVar24,\n                                      passphrase,c);\n                      } while (iVar7 != 0x14);\n                      iVar7 = strcmp(local_144,(char *)key);\n                      if (iVar7 != 0) {\n                        if (bVar20) {\n                          pcVar11 = "wrong passphrase";\n                          ptr = &ssh2_wrong_passphrase;\n                        }\n                        else {\n                          pcVar11 = "MAC failed";\n                          ptr = (ssh2_userkey *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      safefree(local_144);\n                      ptr = (ssh2_userkey *)safemalloc(1,0xc);\n                      ptr->comment = pcVar8;\n                      ptr->alg = psVar9;\n                      pvVar12 = (*psVar9->createkey)\n                                          (psVar9,local_13c,public_blob_len,(uchar *)local_140,\n                                           private_blob_len);\n                      ptr->data = pvVar12;\n                      if (pvVar12 != (void *)0x0) {\n                        safefree(local_13c);\n                        smemclr(local_140,private_blob_len);\n                        safefree(local_140);\n                        safefree(pbVar10);\n                        if (errorstr != (char **)0x0) {\n                          *errorstr = (char *)0x0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar11 = "createkey failed";\n                      safefree(ptr);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = read_body((FILE *)__stream);\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar22 = bVar20;\n                    if (!bVar20) {\n                      bVar22 = true;\nLAB_00055778:\n                      if (bVar6 != 0) goto LAB_00055378;\n                      uVar13 = 0xffffffff;\n                      pcVar11 = psVar9->name;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar3 = *pcVar11;\n                        pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1;\n                      } while (cVar3 != '\0');\n                      uVar13 = ~uVar13;\n                      __n = uVar13 - 1;\n                      uVar14 = 0xffffffff;\n                      pbVar16 = pbVar10;\n                      do {\n                        if (uVar14 == 0) break;\n                        uVar14 = uVar14 - 1;\n                        bVar6 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                      } while (bVar6 != 0);\n                      uVar15 = 0xffffffff;\n                      uVar14 = ~uVar14;\n                      __n_01 = uVar14 - 1;\n                      pcVar11 = pcVar8;\n                      do {\n                        if (uVar15 == 0) break;\n                        uVar15 = uVar15 - 1;\n                        cVar3 = *pcVar11;\n                        pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1;\n                      } while (cVar3 != '\0');\n                      uVar15 = ~uVar15;\n                      __n_00 = uVar15 - 1;\n                      local_124 = uVar15 + uVar14 + uVar13 + public_blob_len + 0x11 +\n                                  private_blob_len;\n                      local_134 = (SHA_CTX *)safemalloc(local_124,1);\n                      local_134->h0 =\n                           __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                           __n * 0x1000000;\n                      memcpy(&local_134->h1,psVar9->name,__n);\n                      puVar1 = (uint *)((int)local_134->data + (uVar13 - 0x19));\n                      *puVar1 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8 |\n                                __n_01 * 0x1000000;\n                      memcpy(puVar1 + 1,pbVar10,__n_01);\n                      puVar1 = (uint *)((int)puVar1 + uVar14 + 3);\n                      *puVar1 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8 |\n                                __n_00 * 0x1000000;\n                      memcpy(puVar1 + 1,pcVar8,__n_00);\n                      iVar7 = public_blob_len;\n                      c = (SHA_CTX *)((int)puVar1 + uVar15 + 3);\n                      *(undefined1 *)&c->h0 = public_blob_len._3_1_;\n                      *(char *)((int)&c->h0 + 1) = (char)((uint)public_blob_len >> 0x10);\n                      *(char *)((int)&c->h0 + 2) = (char)((uint)public_blob_len >> 8);\n                      *(char *)((int)&c->h0 + 3) = (char)public_blob_len;\n                      memcpy(&c->h1,local_13c,public_blob_len);\n                      puVar2 = (undefined1 *)((int)c->data + iVar7 + -0x18);\n                      *puVar2 = private_blob_len._3_1_;\n                      puVar2[1] = (char)((uint)private_blob_len >> 0x10);\n                      puVar2[2] = (char)((uint)private_blob_len >> 8);\n                      puVar2[3] = (char)private_blob_len;\n                      memcpy(puVar2 + 4,local_140,private_blob_len);\n                      bVar21 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((passphrase != (char *)0x0) && (private_blob_len % (int)local_124 == 0)) {\n                      c = (SHA_CTX *)&s;\n                      SHA_Init(c);\n                      SHA_Bytes((SHA_State *)c,&DAT_0007db1c,4);\n                      SHA_Bytes((SHA_State *)c,passphrase,local_14c);\n                      SHA_Final((SHA_State *)c,key);\n                      SHA_Init(c);\n                      SHA_Bytes((SHA_State *)c,&DAT_0007db21,4);\n                      SHA_Bytes((SHA_State *)c,passphrase,local_14c);\n                      SHA_Final((SHA_State *)c,key + 0x14);\n                      aes256_decrypt_pubkey(key,(uchar *)local_140,private_blob_len);\n                      goto LAB_00055778;\n                    }\n                    pcVar11 = "file format error";\n                    ptr = (ssh2_userkey *)0x0;\nLAB_000554a5:\n                    safefree(pcVar8);\n                    safefree(pbVar10);\n                    safefree(local_144);\n                  }\n                  if (local_13c != (uchar *)0x0) {\n                    safefree(local_13c);\n                  }\n                  if (local_140 != (SHA_CTX *)0x0) {\n                    smemclr(local_140,private_blob_len);\n                    safefree(local_140);\n                  }\n                  goto LAB_00055070;\n                }" { (expression_statement "pcVar8 = read_body((FILE *)__stream);" (assignment_expression "pcVar8 = read_body((FILE *)__stream)" identifier = (call_expression "read_body((FILE *)__stream)" identifier (argument_list "((FILE *)__stream)" ( (cast_expression "(FILE *)__stream" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (if_statement "if (pcVar8 == (char *)0x0) {\n                    pcVar11 = "file format error";\n                    ptr = (ssh2_userkey *)0x0;\n                    fclose(__stream);\n                    safefree(pbVar10);\n                    goto LAB_00055070;\n                  }" if (parenthesized_expression "(pcVar8 == (char *)0x0)" ( (binary_expression "pcVar8 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    pcVar11 = "file format error";\n                    ptr = (ssh2_userkey *)0x0;\n                    fclose(__stream);\n                    safefree(pbVar10);\n                    goto LAB_00055070;\n                  }" { (expression_statement "pcVar11 = "file format error";" (assignment_expression "pcVar11 = "file format error"" identifier = (string_literal ""file format error"" " string_content ")) ;) (expression_statement "ptr = (ssh2_userkey *)0x0;" (assignment_expression "ptr = (ssh2_userkey *)0x0" identifier = (cast_expression "(ssh2_userkey *)0x0" ( (type_descriptor "ssh2_userkey *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "fclose(__stream);" (call_expression "fclose(__stream)" identifier (argument_list "(__stream)" ( identifier ))) ;) (expression_statement "safefree(pbVar10);" (call_expression "safefree(pbVar10)" identifier (argument_list "(pbVar10)" ( identifier ))) ;) (goto_statement "goto LAB_00055070;" goto statement_identifier ;) })) (expression_statement "iVar7 = read_header((FILE *)__stream,header);" (assignment_expression "iVar7 = read_header((FILE *)__stream,header)" identifier = (call_expression "read_header((FILE *)__stream,header)" identifier (argument_list "((FILE *)__stream,header)" ( (cast_expression "(FILE *)__stream" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier )))) ;) (expression_statement "bVar22 = false;" (assignment_expression "bVar22 = false" identifier = false) ;) (expression_statement "bVar21 = iVar7 == 0;" (assignment_expression "bVar21 = iVar7 == 0" identifier = (binary_expression "iVar7 == 0" identifier == number_literal)) ;) (if_statement "if (bVar21) {\nLAB_000555ad:\n                    local_140 = (SHA_CTX *)0x0;\n                    local_13c = (uchar *)0x0;\nLAB_0005553d:\n                    pcVar11 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    ptr = (ssh2_userkey *)0x0;\n                    safefree(pcVar8);\n                    safefree(pbVar10);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = (byte *)header;\n                    pbVar18 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar22 = *pbVar16 < *pbVar18;\n                      bVar21 = *pbVar16 == *pbVar18;\n                      pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                      pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n                    } while (bVar21);\n                    if ((!bVar22 && !bVar21) != bVar22) goto LAB_000555ad;\n                    pcVar11 = read_body((FILE *)__stream);\n                    if (pcVar11 == (char *)0x0) goto LAB_000555ad;\n                    iVar7 = userkey_parse_line_counter(pcVar11);\n                    safefree(pcVar11);\n                    if (iVar7 < 0) goto LAB_000555ad;\n                    local_13c = read_blob((FILE *)__stream,iVar7,&public_blob_len);\n                    if (local_13c == (uchar *)0x0) goto LAB_000555ad;\n                    iVar7 = read_header((FILE *)__stream,header);\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (SHA_CTX *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    iVar7 = strcmp(header,"Private-Lines");\n                    local_140 = (SHA_CTX *)0x0;\n                    if (iVar7 != 0) goto LAB_0005553d;\n                    c = (SHA_CTX *)read_body((FILE *)__stream);\n                    local_140 = c;\n                    if (c == (SHA_CTX *)0x0) goto LAB_0005553d;\n                    iVar7 = userkey_parse_line_counter((char *)c);\n                    safefree(c);\n                    if (iVar7 < 0) goto LAB_00055535;\n                    local_140 = (SHA_CTX *)read_blob((FILE *)__stream,iVar7,&private_blob_len);\n                    if (local_140 == (SHA_CTX *)0x0) goto LAB_0005553d;\n                    iVar7 = read_header((FILE *)__stream,header);\n                    if (iVar7 == 0) goto LAB_0005553d;\n                    iVar7 = strcmp(header,"Private-MAC");\n                    if (iVar7 != 0) {\n                      iVar7 = strcmp(header,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar6 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = read_body((FILE *)__stream);\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar22 = false;\n                      fclose(__stream);\n                      if (bVar20) goto LAB_000556cb;\nLAB_00055378:\n                      bVar21 = false;\n                      local_124 = private_blob_len;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar22) {\n                        puVar17 = (uchar *)"putty-private-key-file-mac-key";\n                        puVar19 = key;\n                        for (iVar7 = 0x1f; iVar7 != 0; iVar7 = iVar7 + -1) {\n                          *puVar19 = *puVar17;\n                          puVar17 = puVar17 + (uint)bVar23 * -2 + 1;\n                          puVar19 = puVar19 + (uint)bVar23 * -2 + 1;\n                        }\n                        c_00 = (SHA_CTX *)&s;\n                        SHA_Init(c_00);\n                        SHA_Bytes((SHA_State *)c_00,key,0x1e);\n                        if ((passphrase != (char *)0x0) && (bVar20)) {\n                          SHA_Bytes((SHA_State *)c_00,passphrase,local_14c);\n                        }\n                        c = (SHA_CTX *)passphrase;\n                        SHA_Final((SHA_State *)c_00,mackey);\n                        hmac_sha1_simple(mackey,0x14,local_134,local_124,binary);\n                        smemclr(mackey,0x14);\n                        sVar24 = 0x60;\n                        smemclr(c_00,0x60);\n                      }\n                      else {\n                        passphrase = (char *)binary;\n                        sVar24 = local_124;\n                        SHA_Simple(local_134,local_124,(uchar *)passphrase);\n                        c_00 = (SHA_CTX *)0x0;\n                      }\n                      if (bVar21) {\n                        c = c_00;\n                        smemclr(local_134,local_124);\n                        safefree(local_134);\n                        sVar24 = local_124;\n                        passphrase = (char *)c_00;\n                      }\n                      iVar7 = 0;\n                      do {\n                        puVar17 = binary + iVar7;\n                        iVar5 = iVar7 * 2;\n                        iVar7 = iVar7 + 1;\n                        __sprintf_chk(key + iVar5,1,0xffffffff,&DAT_0007dc2b,*puVar17,sVar24,\n                                      passphrase,c);\n                      } while (iVar7 != 0x14);\n                      iVar7 = strcmp(local_144,(char *)key);\n                      if (iVar7 != 0) {\n                        if (bVar20) {\n                          pcVar11 = "wrong passphrase";\n                          ptr = &ssh2_wrong_passphrase;\n                        }\n                        else {\n                          pcVar11 = "MAC failed";\n                          ptr = (ssh2_userkey *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      safefree(local_144);\n                      ptr = (ssh2_userkey *)safemalloc(1,0xc);\n                      ptr->comment = pcVar8;\n                      ptr->alg = psVar9;\n                      pvVar12 = (*psVar9->createkey)\n                                          (psVar9,local_13c,public_blob_len,(uchar *)local_140,\n                                           private_blob_len);\n                      ptr->data = pvVar12;\n                      if (pvVar12 != (void *)0x0) {\n                        safefree(local_13c);\n                        smemclr(local_140,private_blob_len);\n                        safefree(local_140);\n                        safefree(pbVar10);\n                        if (errorstr != (char **)0x0) {\n                          *errorstr = (char *)0x0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar11 = "createkey failed";\n                      safefree(ptr);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = read_body((FILE *)__stream);\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar22 = bVar20;\n                    if (!bVar20) {\n                      bVar22 = true;\nLAB_00055778:\n                      if (bVar6 != 0) goto LAB_00055378;\n                      uVar13 = 0xffffffff;\n                      pcVar11 = psVar9->name;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar3 = *pcVar11;\n                        pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1;\n                      } while (cVar3 != '\0');\n                      uVar13 = ~uVar13;\n                      __n = uVar13 - 1;\n                      uVar14 = 0xffffffff;\n                      pbVar16 = pbVar10;\n                      do {\n                        if (uVar14 == 0) break;\n                        uVar14 = uVar14 - 1;\n                        bVar6 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                      } while (bVar6 != 0);\n                      uVar15 = 0xffffffff;\n                      uVar14 = ~uVar14;\n                      __n_01 = uVar14 - 1;\n                      pcVar11 = pcVar8;\n                      do {\n                        if (uVar15 == 0) break;\n                        uVar15 = uVar15 - 1;\n                        cVar3 = *pcVar11;\n                        pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1;\n                      } while (cVar3 != '\0');\n                      uVar15 = ~uVar15;\n                      __n_00 = uVar15 - 1;\n                      local_124 = uVar15 + uVar14 + uVar13 + public_blob_len + 0x11 +\n                                  private_blob_len;\n                      local_134 = (SHA_CTX *)safemalloc(local_124,1);\n                      local_134->h0 =\n                           __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                           __n * 0x1000000;\n                      memcpy(&local_134->h1,psVar9->name,__n);\n                      puVar1 = (uint *)((int)local_134->data + (uVar13 - 0x19));\n                      *puVar1 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8 |\n                                __n_01 * 0x1000000;\n                      memcpy(puVar1 + 1,pbVar10,__n_01);\n                      puVar1 = (uint *)((int)puVar1 + uVar14 + 3);\n                      *puVar1 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8 |\n                                __n_00 * 0x1000000;\n                      memcpy(puVar1 + 1,pcVar8,__n_00);\n                      iVar7 = public_blob_len;\n                      c = (SHA_CTX *)((int)puVar1 + uVar15 + 3);\n                      *(undefined1 *)&c->h0 = public_blob_len._3_1_;\n                      *(char *)((int)&c->h0 + 1) = (char)((uint)public_blob_len >> 0x10);\n                      *(char *)((int)&c->h0 + 2) = (char)((uint)public_blob_len >> 8);\n                      *(char *)((int)&c->h0 + 3) = (char)public_blob_len;\n                      memcpy(&c->h1,local_13c,public_blob_len);\n                      puVar2 = (undefined1 *)((int)c->data + iVar7 + -0x18);\n                      *puVar2 = private_blob_len._3_1_;\n                      puVar2[1] = (char)((uint)private_blob_len >> 0x10);\n                      puVar2[2] = (char)((uint)private_blob_len >> 8);\n                      puVar2[3] = (char)private_blob_len;\n                      memcpy(puVar2 + 4,local_140,private_blob_len);\n                      bVar21 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((passphrase != (char *)0x0) && (private_blob_len % (int)local_124 == 0)) {\n                      c = (SHA_CTX *)&s;\n                      SHA_Init(c);\n                      SHA_Bytes((SHA_State *)c,&DAT_0007db1c,4);\n                      SHA_Bytes((SHA_State *)c,passphrase,local_14c);\n                      SHA_Final((SHA_State *)c,key);\n                      SHA_Init(c);\n                      SHA_Bytes((SHA_State *)c,&DAT_0007db21,4);\n                      SHA_Bytes((SHA_State *)c,passphrase,local_14c);\n                      SHA_Final((SHA_State *)c,key + 0x14);\n                      aes256_decrypt_pubkey(key,(uchar *)local_140,private_blob_len);\n                      goto LAB_00055778;\n                    }\n                    pcVar11 = "file format error";\n                    ptr = (ssh2_userkey *)0x0;\nLAB_000554a5:\n                    safefree(pcVar8);\n                    safefree(pbVar10);\n                    safefree(local_144);\n                  }" if (parenthesized_expression "(bVar21)" ( identifier )) (compound_statement "{\nLAB_000555ad:\n                    local_140 = (SHA_CTX *)0x0;\n                    local_13c = (uchar *)0x0;\nLAB_0005553d:\n                    pcVar11 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    ptr = (ssh2_userkey *)0x0;\n                    safefree(pcVar8);\n                    safefree(pbVar10);\n                  }" { (labeled_statement "LAB_000555ad:\n                    local_140 = (SHA_CTX *)0x0;" statement_identifier : (expression_statement "local_140 = (SHA_CTX *)0x0;" (assignment_expression "local_140 = (SHA_CTX *)0x0" identifier = (cast_expression "(SHA_CTX *)0x0" ( (type_descriptor "SHA_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;)) (expression_statement "local_13c = (uchar *)0x0;" (assignment_expression "local_13c = (uchar *)0x0" identifier = (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (labeled_statement "LAB_0005553d:\n                    pcVar11 = "file format error";" statement_identifier : (expression_statement "pcVar11 = "file format error";" (assignment_expression "pcVar11 = "file format error"" identifier = (string_literal ""file format error"" " string_content ")) ;)) (expression_statement "fclose(__stream);" (call_expression "fclose(__stream)" identifier (argument_list "(__stream)" ( identifier ))) ;) (labeled_statement "LAB_0005554f:\n                    ptr = (ssh2_userkey *)0x0;" statement_identifier : (expression_statement "ptr = (ssh2_userkey *)0x0;" (assignment_expression "ptr = (ssh2_userkey *)0x0" identifier = (cast_expression "(ssh2_userkey *)0x0" ( (type_descriptor "ssh2_userkey *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;)) (expression_statement "safefree(pcVar8);" (call_expression "safefree(pcVar8)" identifier (argument_list "(pcVar8)" ( identifier ))) ;) (expression_statement "safefree(pbVar10);" (call_expression "safefree(pbVar10)" identifier (argument_list "(pbVar10)" ( identifier ))) ;) }) (else_clause "else {\n                    iVar7 = 0xd;\n                    pbVar16 = (byte *)header;\n                    pbVar18 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar22 = *pbVar16 < *pbVar18;\n                      bVar21 = *pbVar16 == *pbVar18;\n                      pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                      pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n                    } while (bVar21);\n                    if ((!bVar22 && !bVar21) != bVar22) goto LAB_000555ad;\n                    pcVar11 = read_body((FILE *)__stream);\n                    if (pcVar11 == (char *)0x0) goto LAB_000555ad;\n                    iVar7 = userkey_parse_line_counter(pcVar11);\n                    safefree(pcVar11);\n                    if (iVar7 < 0) goto LAB_000555ad;\n                    local_13c = read_blob((FILE *)__stream,iVar7,&public_blob_len);\n                    if (local_13c == (uchar *)0x0) goto LAB_000555ad;\n                    iVar7 = read_header((FILE *)__stream,header);\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (SHA_CTX *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    iVar7 = strcmp(header,"Private-Lines");\n                    local_140 = (SHA_CTX *)0x0;\n                    if (iVar7 != 0) goto LAB_0005553d;\n                    c = (SHA_CTX *)read_body((FILE *)__stream);\n                    local_140 = c;\n                    if (c == (SHA_CTX *)0x0) goto LAB_0005553d;\n                    iVar7 = userkey_parse_line_counter((char *)c);\n                    safefree(c);\n                    if (iVar7 < 0) goto LAB_00055535;\n                    local_140 = (SHA_CTX *)read_blob((FILE *)__stream,iVar7,&private_blob_len);\n                    if (local_140 == (SHA_CTX *)0x0) goto LAB_0005553d;\n                    iVar7 = read_header((FILE *)__stream,header);\n                    if (iVar7 == 0) goto LAB_0005553d;\n                    iVar7 = strcmp(header,"Private-MAC");\n                    if (iVar7 != 0) {\n                      iVar7 = strcmp(header,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar6 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = read_body((FILE *)__stream);\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar22 = false;\n                      fclose(__stream);\n                      if (bVar20) goto LAB_000556cb;\nLAB_00055378:\n                      bVar21 = false;\n                      local_124 = private_blob_len;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar22) {\n                        puVar17 = (uchar *)"putty-private-key-file-mac-key";\n                        puVar19 = key;\n                        for (iVar7 = 0x1f; iVar7 != 0; iVar7 = iVar7 + -1) {\n                          *puVar19 = *puVar17;\n                          puVar17 = puVar17 + (uint)bVar23 * -2 + 1;\n                          puVar19 = puVar19 + (uint)bVar23 * -2 + 1;\n                        }\n                        c_00 = (SHA_CTX *)&s;\n                        SHA_Init(c_00);\n                        SHA_Bytes((SHA_State *)c_00,key,0x1e);\n                        if ((passphrase != (char *)0x0) && (bVar20)) {\n                          SHA_Bytes((SHA_State *)c_00,passphrase,local_14c);\n                        }\n                        c = (SHA_CTX *)passphrase;\n                        SHA_Final((SHA_State *)c_00,mackey);\n                        hmac_sha1_simple(mackey,0x14,local_134,local_124,binary);\n                        smemclr(mackey,0x14);\n                        sVar24 = 0x60;\n                        smemclr(c_00,0x60);\n                      }\n                      else {\n                        passphrase = (char *)binary;\n                        sVar24 = local_124;\n                        SHA_Simple(local_134,local_124,(uchar *)passphrase);\n                        c_00 = (SHA_CTX *)0x0;\n                      }\n                      if (bVar21) {\n                        c = c_00;\n                        smemclr(local_134,local_124);\n                        safefree(local_134);\n                        sVar24 = local_124;\n                        passphrase = (char *)c_00;\n                      }\n                      iVar7 = 0;\n                      do {\n                        puVar17 = binary + iVar7;\n                        iVar5 = iVar7 * 2;\n                        iVar7 = iVar7 + 1;\n                        __sprintf_chk(key + iVar5,1,0xffffffff,&DAT_0007dc2b,*puVar17,sVar24,\n                                      passphrase,c);\n                      } while (iVar7 != 0x14);\n                      iVar7 = strcmp(local_144,(char *)key);\n                      if (iVar7 != 0) {\n                        if (bVar20) {\n                          pcVar11 = "wrong passphrase";\n                          ptr = &ssh2_wrong_passphrase;\n                        }\n                        else {\n                          pcVar11 = "MAC failed";\n                          ptr = (ssh2_userkey *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      safefree(local_144);\n                      ptr = (ssh2_userkey *)safemalloc(1,0xc);\n                      ptr->comment = pcVar8;\n                      ptr->alg = psVar9;\n                      pvVar12 = (*psVar9->createkey)\n                                          (psVar9,local_13c,public_blob_len,(uchar *)local_140,\n                                           private_blob_len);\n                      ptr->data = pvVar12;\n                      if (pvVar12 != (void *)0x0) {\n                        safefree(local_13c);\n                        smemclr(local_140,private_blob_len);\n                        safefree(local_140);\n                        safefree(pbVar10);\n                        if (errorstr != (char **)0x0) {\n                          *errorstr = (char *)0x0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar11 = "createkey failed";\n                      safefree(ptr);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = read_body((FILE *)__stream);\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar22 = bVar20;\n                    if (!bVar20) {\n                      bVar22 = true;\nLAB_00055778:\n                      if (bVar6 != 0) goto LAB_00055378;\n                      uVar13 = 0xffffffff;\n                      pcVar11 = psVar9->name;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar3 = *pcVar11;\n                        pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1;\n                      } while (cVar3 != '\0');\n                      uVar13 = ~uVar13;\n                      __n = uVar13 - 1;\n                      uVar14 = 0xffffffff;\n                      pbVar16 = pbVar10;\n                      do {\n                        if (uVar14 == 0) break;\n                        uVar14 = uVar14 - 1;\n                        bVar6 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                      } while (bVar6 != 0);\n                      uVar15 = 0xffffffff;\n                      uVar14 = ~uVar14;\n                      __n_01 = uVar14 - 1;\n                      pcVar11 = pcVar8;\n                      do {\n                        if (uVar15 == 0) break;\n                        uVar15 = uVar15 - 1;\n                        cVar3 = *pcVar11;\n                        pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1;\n                      } while (cVar3 != '\0');\n                      uVar15 = ~uVar15;\n                      __n_00 = uVar15 - 1;\n                      local_124 = uVar15 + uVar14 + uVar13 + public_blob_len + 0x11 +\n                                  private_blob_len;\n                      local_134 = (SHA_CTX *)safemalloc(local_124,1);\n                      local_134->h0 =\n                           __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                           __n * 0x1000000;\n                      memcpy(&local_134->h1,psVar9->name,__n);\n                      puVar1 = (uint *)((int)local_134->data + (uVar13 - 0x19));\n                      *puVar1 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8 |\n                                __n_01 * 0x1000000;\n                      memcpy(puVar1 + 1,pbVar10,__n_01);\n                      puVar1 = (uint *)((int)puVar1 + uVar14 + 3);\n                      *puVar1 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8 |\n                                __n_00 * 0x1000000;\n                      memcpy(puVar1 + 1,pcVar8,__n_00);\n                      iVar7 = public_blob_len;\n                      c = (SHA_CTX *)((int)puVar1 + uVar15 + 3);\n                      *(undefined1 *)&c->h0 = public_blob_len._3_1_;\n                      *(char *)((int)&c->h0 + 1) = (char)((uint)public_blob_len >> 0x10);\n                      *(char *)((int)&c->h0 + 2) = (char)((uint)public_blob_len >> 8);\n                      *(char *)((int)&c->h0 + 3) = (char)public_blob_len;\n                      memcpy(&c->h1,local_13c,public_blob_len);\n                      puVar2 = (undefined1 *)((int)c->data + iVar7 + -0x18);\n                      *puVar2 = private_blob_len._3_1_;\n                      puVar2[1] = (char)((uint)private_blob_len >> 0x10);\n                      puVar2[2] = (char)((uint)private_blob_len >> 8);\n                      puVar2[3] = (char)private_blob_len;\n                      memcpy(puVar2 + 4,local_140,private_blob_len);\n                      bVar21 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((passphrase != (char *)0x0) && (private_blob_len % (int)local_124 == 0)) {\n                      c = (SHA_CTX *)&s;\n                      SHA_Init(c);\n                      SHA_Bytes((SHA_State *)c,&DAT_0007db1c,4);\n                      SHA_Bytes((SHA_State *)c,passphrase,local_14c);\n                      SHA_Final((SHA_State *)c,key);\n                      SHA_Init(c);\n                      SHA_Bytes((SHA_State *)c,&DAT_0007db21,4);\n                      SHA_Bytes((SHA_State *)c,passphrase,local_14c);\n                      SHA_Final((SHA_State *)c,key + 0x14);\n                      aes256_decrypt_pubkey(key,(uchar *)local_140,private_blob_len);\n                      goto LAB_00055778;\n                    }\n                    pcVar11 = "file format error";\n                    ptr = (ssh2_userkey *)0x0;\nLAB_000554a5:\n                    safefree(pcVar8);\n                    safefree(pbVar10);\n                    safefree(local_144);\n                  }" else (compound_statement "{\n                    iVar7 = 0xd;\n                    pbVar16 = (byte *)header;\n                    pbVar18 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar22 = *pbVar16 < *pbVar18;\n                      bVar21 = *pbVar16 == *pbVar18;\n                      pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                      pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n                    } while (bVar21);\n                    if ((!bVar22 && !bVar21) != bVar22) goto LAB_000555ad;\n                    pcVar11 = read_body((FILE *)__stream);\n                    if (pcVar11 == (char *)0x0) goto LAB_000555ad;\n                    iVar7 = userkey_parse_line_counter(pcVar11);\n                    safefree(pcVar11);\n                    if (iVar7 < 0) goto LAB_000555ad;\n                    local_13c = read_blob((FILE *)__stream,iVar7,&public_blob_len);\n                    if (local_13c == (uchar *)0x0) goto LAB_000555ad;\n                    iVar7 = read_header((FILE *)__stream,header);\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (SHA_CTX *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    iVar7 = strcmp(header,"Private-Lines");\n                    local_140 = (SHA_CTX *)0x0;\n                    if (iVar7 != 0) goto LAB_0005553d;\n                    c = (SHA_CTX *)read_body((FILE *)__stream);\n                    local_140 = c;\n                    if (c == (SHA_CTX *)0x0) goto LAB_0005553d;\n                    iVar7 = userkey_parse_line_counter((char *)c);\n                    safefree(c);\n                    if (iVar7 < 0) goto LAB_00055535;\n                    local_140 = (SHA_CTX *)read_blob((FILE *)__stream,iVar7,&private_blob_len);\n                    if (local_140 == (SHA_CTX *)0x0) goto LAB_0005553d;\n                    iVar7 = read_header((FILE *)__stream,header);\n                    if (iVar7 == 0) goto LAB_0005553d;\n                    iVar7 = strcmp(header,"Private-MAC");\n                    if (iVar7 != 0) {\n                      iVar7 = strcmp(header,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar6 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = read_body((FILE *)__stream);\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar22 = false;\n                      fclose(__stream);\n                      if (bVar20) goto LAB_000556cb;\nLAB_00055378:\n                      bVar21 = false;\n                      local_124 = private_blob_len;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar22) {\n                        puVar17 = (uchar *)"putty-private-key-file-mac-key";\n                        puVar19 = key;\n                        for (iVar7 = 0x1f; iVar7 != 0; iVar7 = iVar7 + -1) {\n                          *puVar19 = *puVar17;\n                          puVar17 = puVar17 + (uint)bVar23 * -2 + 1;\n                          puVar19 = puVar19 + (uint)bVar23 * -2 + 1;\n                        }\n                        c_00 = (SHA_CTX *)&s;\n                        SHA_Init(c_00);\n                        SHA_Bytes((SHA_State *)c_00,key,0x1e);\n                        if ((passphrase != (char *)0x0) && (bVar20)) {\n                          SHA_Bytes((SHA_State *)c_00,passphrase,local_14c);\n                        }\n                        c = (SHA_CTX *)passphrase;\n                        SHA_Final((SHA_State *)c_00,mackey);\n                        hmac_sha1_simple(mackey,0x14,local_134,local_124,binary);\n                        smemclr(mackey,0x14);\n                        sVar24 = 0x60;\n                        smemclr(c_00,0x60);\n                      }\n                      else {\n                        passphrase = (char *)binary;\n                        sVar24 = local_124;\n                        SHA_Simple(local_134,local_124,(uchar *)passphrase);\n                        c_00 = (SHA_CTX *)0x0;\n                      }\n                      if (bVar21) {\n                        c = c_00;\n                        smemclr(local_134,local_124);\n                        safefree(local_134);\n                        sVar24 = local_124;\n                        passphrase = (char *)c_00;\n                      }\n                      iVar7 = 0;\n                      do {\n                        puVar17 = binary + iVar7;\n                        iVar5 = iVar7 * 2;\n                        iVar7 = iVar7 + 1;\n                        __sprintf_chk(key + iVar5,1,0xffffffff,&DAT_0007dc2b,*puVar17,sVar24,\n                                      passphrase,c);\n                      } while (iVar7 != 0x14);\n                      iVar7 = strcmp(local_144,(char *)key);\n                      if (iVar7 != 0) {\n                        if (bVar20) {\n                          pcVar11 = "wrong passphrase";\n                          ptr = &ssh2_wrong_passphrase;\n                        }\n                        else {\n                          pcVar11 = "MAC failed";\n                          ptr = (ssh2_userkey *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      safefree(local_144);\n                      ptr = (ssh2_userkey *)safemalloc(1,0xc);\n                      ptr->comment = pcVar8;\n                      ptr->alg = psVar9;\n                      pvVar12 = (*psVar9->createkey)\n                                          (psVar9,local_13c,public_blob_len,(uchar *)local_140,\n                                           private_blob_len);\n                      ptr->data = pvVar12;\n                      if (pvVar12 != (void *)0x0) {\n                        safefree(local_13c);\n                        smemclr(local_140,private_blob_len);\n                        safefree(local_140);\n                        safefree(pbVar10);\n                        if (errorstr != (char **)0x0) {\n                          *errorstr = (char *)0x0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar11 = "createkey failed";\n                      safefree(ptr);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = read_body((FILE *)__stream);\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar22 = bVar20;\n                    if (!bVar20) {\n                      bVar22 = true;\nLAB_00055778:\n                      if (bVar6 != 0) goto LAB_00055378;\n                      uVar13 = 0xffffffff;\n                      pcVar11 = psVar9->name;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar3 = *pcVar11;\n                        pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1;\n                      } while (cVar3 != '\0');\n                      uVar13 = ~uVar13;\n                      __n = uVar13 - 1;\n                      uVar14 = 0xffffffff;\n                      pbVar16 = pbVar10;\n                      do {\n                        if (uVar14 == 0) break;\n                        uVar14 = uVar14 - 1;\n                        bVar6 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                      } while (bVar6 != 0);\n                      uVar15 = 0xffffffff;\n                      uVar14 = ~uVar14;\n                      __n_01 = uVar14 - 1;\n                      pcVar11 = pcVar8;\n                      do {\n                        if (uVar15 == 0) break;\n                        uVar15 = uVar15 - 1;\n                        cVar3 = *pcVar11;\n                        pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1;\n                      } while (cVar3 != '\0');\n                      uVar15 = ~uVar15;\n                      __n_00 = uVar15 - 1;\n                      local_124 = uVar15 + uVar14 + uVar13 + public_blob_len + 0x11 +\n                                  private_blob_len;\n                      local_134 = (SHA_CTX *)safemalloc(local_124,1);\n                      local_134->h0 =\n                           __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                           __n * 0x1000000;\n                      memcpy(&local_134->h1,psVar9->name,__n);\n                      puVar1 = (uint *)((int)local_134->data + (uVar13 - 0x19));\n                      *puVar1 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8 |\n                                __n_01 * 0x1000000;\n                      memcpy(puVar1 + 1,pbVar10,__n_01);\n                      puVar1 = (uint *)((int)puVar1 + uVar14 + 3);\n                      *puVar1 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8 |\n                                __n_00 * 0x1000000;\n                      memcpy(puVar1 + 1,pcVar8,__n_00);\n                      iVar7 = public_blob_len;\n                      c = (SHA_CTX *)((int)puVar1 + uVar15 + 3);\n                      *(undefined1 *)&c->h0 = public_blob_len._3_1_;\n                      *(char *)((int)&c->h0 + 1) = (char)((uint)public_blob_len >> 0x10);\n                      *(char *)((int)&c->h0 + 2) = (char)((uint)public_blob_len >> 8);\n                      *(char *)((int)&c->h0 + 3) = (char)public_blob_len;\n                      memcpy(&c->h1,local_13c,public_blob_len);\n                      puVar2 = (undefined1 *)((int)c->data + iVar7 + -0x18);\n                      *puVar2 = private_blob_len._3_1_;\n                      puVar2[1] = (char)((uint)private_blob_len >> 0x10);\n                      puVar2[2] = (char)((uint)private_blob_len >> 8);\n                      puVar2[3] = (char)private_blob_len;\n                      memcpy(puVar2 + 4,local_140,private_blob_len);\n                      bVar21 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((passphrase != (char *)0x0) && (private_blob_len % (int)local_124 == 0)) {\n                      c = (SHA_CTX *)&s;\n                      SHA_Init(c);\n                      SHA_Bytes((SHA_State *)c,&DAT_0007db1c,4);\n                      SHA_Bytes((SHA_State *)c,passphrase,local_14c);\n                      SHA_Final((SHA_State *)c,key);\n                      SHA_Init(c);\n                      SHA_Bytes((SHA_State *)c,&DAT_0007db21,4);\n                      SHA_Bytes((SHA_State *)c,passphrase,local_14c);\n                      SHA_Final((SHA_State *)c,key + 0x14);\n                      aes256_decrypt_pubkey(key,(uchar *)local_140,private_blob_len);\n                      goto LAB_00055778;\n                    }\n                    pcVar11 = "file format error";\n                    ptr = (ssh2_userkey *)0x0;\nLAB_000554a5:\n                    safefree(pcVar8);\n                    safefree(pbVar10);\n                    safefree(local_144);\n                  }" { (expression_statement "iVar7 = 0xd;" (assignment_expression "iVar7 = 0xd" identifier = number_literal) ;) (expression_statement "pbVar16 = (byte *)header;" (assignment_expression "pbVar16 = (byte *)header" identifier = (cast_expression "(byte *)header" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "pbVar18 = (byte *)"Public-Lines";" (assignment_expression "pbVar18 = (byte *)"Public-Lines"" identifier = (cast_expression "(byte *)"Public-Lines"" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""Public-Lines"" " string_content "))) ;) (do_statement "do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar22 = *pbVar16 < *pbVar18;\n                      bVar21 = *pbVar16 == *pbVar18;\n                      pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                      pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n                    } while (bVar21);" do (compound_statement "{\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar22 = *pbVar16 < *pbVar18;\n                      bVar21 = *pbVar16 == *pbVar18;\n                      pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                      pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n                    }" { (if_statement "if (iVar7 == 0) break;" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar7 = iVar7 + -1;" (assignment_expression "iVar7 = iVar7 + -1" identifier = (binary_expression "iVar7 + -1" identifier + number_literal)) ;) (expression_statement "bVar22 = *pbVar16 < *pbVar18;" (assignment_expression "bVar22 = *pbVar16 < *pbVar18" identifier = (binary_expression "*pbVar16 < *pbVar18" (pointer_expression "*pbVar16" * identifier) < (pointer_expression "*pbVar18" * identifier))) ;) (expression_statement "bVar21 = *pbVar16 == *pbVar18;" (assignment_expression "bVar21 = *pbVar16 == *pbVar18" identifier = (binary_expression "*pbVar16 == *pbVar18" (pointer_expression "*pbVar16" * identifier) == (pointer_expression "*pbVar18" * identifier))) ;) (expression_statement "pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;" (assignment_expression "pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1" identifier = (binary_expression "pbVar16 + (uint)bVar23 * -2 + 1" (binary_expression "pbVar16 + (uint)bVar23 * -2" identifier + (binary_expression "(uint)bVar23 * -2" (cast_expression "(uint)bVar23" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;" (assignment_expression "pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1" identifier = (binary_expression "pbVar18 + (uint)bVar23 * -2 + 1" (binary_expression "pbVar18 + (uint)bVar23 * -2" identifier + (binary_expression "(uint)bVar23 * -2" (cast_expression "(uint)bVar23" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar21)" ( identifier )) ;) (if_statement "if ((!bVar22 && !bVar21) != bVar22) goto LAB_000555ad;" if (parenthesized_expression "((!bVar22 && !bVar21) != bVar22)" ( (binary_expression "(!bVar22 && !bVar21) != bVar22" (parenthesized_expression "(!bVar22 && !bVar21)" ( (binary_expression "!bVar22 && !bVar21" (unary_expression "!bVar22" ! identifier) && (unary_expression "!bVar21" ! identifier)) )) != identifier) )) (goto_statement "goto LAB_000555ad;" goto statement_identifier ;)) (expression_statement "pcVar11 = read_body((FILE *)__stream);" (assignment_expression "pcVar11 = read_body((FILE *)__stream)" identifier = (call_expression "read_body((FILE *)__stream)" identifier (argument_list "((FILE *)__stream)" ( (cast_expression "(FILE *)__stream" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (if_statement "if (pcVar11 == (char *)0x0) goto LAB_000555ad;" if (parenthesized_expression "(pcVar11 == (char *)0x0)" ( (binary_expression "pcVar11 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000555ad;" goto statement_identifier ;)) (expression_statement "iVar7 = userkey_parse_line_counter(pcVar11);" (assignment_expression "iVar7 = userkey_parse_line_counter(pcVar11)" identifier = (call_expression "userkey_parse_line_counter(pcVar11)" identifier (argument_list "(pcVar11)" ( identifier )))) ;) (expression_statement "safefree(pcVar11);" (call_expression "safefree(pcVar11)" identifier (argument_list "(pcVar11)" ( identifier ))) ;) (if_statement "if (iVar7 < 0) goto LAB_000555ad;" if (parenthesized_expression "(iVar7 < 0)" ( (binary_expression "iVar7 < 0" identifier < number_literal) )) (goto_statement "goto LAB_000555ad;" goto statement_identifier ;)) (expression_statement "local_13c = read_blob((FILE *)__stream,iVar7,&public_blob_len);" (assignment_expression "local_13c = read_blob((FILE *)__stream,iVar7,&public_blob_len)" identifier = (call_expression "read_blob((FILE *)__stream,iVar7,&public_blob_len)" identifier (argument_list "((FILE *)__stream,iVar7,&public_blob_len)" ( (cast_expression "(FILE *)__stream" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , (pointer_expression "&public_blob_len" & identifier) )))) ;) (if_statement "if (local_13c == (uchar *)0x0) goto LAB_000555ad;" if (parenthesized_expression "(local_13c == (uchar *)0x0)" ( (binary_expression "local_13c == (uchar *)0x0" identifier == (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000555ad;" goto statement_identifier ;)) (expression_statement "iVar7 = read_header((FILE *)__stream,header);" (assignment_expression "iVar7 = read_header((FILE *)__stream,header)" identifier = (call_expression "read_header((FILE *)__stream,header)" identifier (argument_list "((FILE *)__stream,header)" ( (cast_expression "(FILE *)__stream" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier )))) ;) (if_statement "if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (SHA_CTX *)0x0;\n                      goto LAB_0005553d;\n                    }" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_00055535:\n                      local_140 = (SHA_CTX *)0x0;\n                      goto LAB_0005553d;\n                    }" { (labeled_statement "LAB_00055535:\n                      local_140 = (SHA_CTX *)0x0;" statement_identifier : (expression_statement "local_140 = (SHA_CTX *)0x0;" (assignment_expression "local_140 = (SHA_CTX *)0x0" identifier = (cast_expression "(SHA_CTX *)0x0" ( (type_descriptor "SHA_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;)) (goto_statement "goto LAB_0005553d;" goto statement_identifier ;) })) (expression_statement "iVar7 = strcmp(header,"Private-Lines");" (assignment_expression "iVar7 = strcmp(header,"Private-Lines")" identifier = (call_expression "strcmp(header,"Private-Lines")" identifier (argument_list "(header,"Private-Lines")" ( identifier , (string_literal ""Private-Lines"" " string_content ") )))) ;) (expression_statement "local_140 = (SHA_CTX *)0x0;" (assignment_expression "local_140 = (SHA_CTX *)0x0" identifier = (cast_expression "(SHA_CTX *)0x0" ( (type_descriptor "SHA_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (iVar7 != 0) goto LAB_0005553d;" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0005553d;" goto statement_identifier ;)) (expression_statement "c = (SHA_CTX *)read_body((FILE *)__stream);" (assignment_expression "c = (SHA_CTX *)read_body((FILE *)__stream)" identifier = (cast_expression "(SHA_CTX *)read_body((FILE *)__stream)" ( (type_descriptor "SHA_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "read_body((FILE *)__stream)" identifier (argument_list "((FILE *)__stream)" ( (cast_expression "(FILE *)__stream" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))))) ;) (expression_statement "local_140 = c;" (assignment_expression "local_140 = c" identifier = identifier) ;) (if_statement "if (c == (SHA_CTX *)0x0) goto LAB_0005553d;" if (parenthesized_expression "(c == (SHA_CTX *)0x0)" ( (binary_expression "c == (SHA_CTX *)0x0" identifier == (cast_expression "(SHA_CTX *)0x0" ( (type_descriptor "SHA_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0005553d;" goto statement_identifier ;)) (expression_statement "iVar7 = userkey_parse_line_counter((char *)c);" (assignment_expression "iVar7 = userkey_parse_line_counter((char *)c)" identifier = (call_expression "userkey_parse_line_counter((char *)c)" identifier (argument_list "((char *)c)" ( (cast_expression "(char *)c" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (expression_statement "safefree(c);" (call_expression "safefree(c)" identifier (argument_list "(c)" ( identifier ))) ;) (if_statement "if (iVar7 < 0) goto LAB_00055535;" if (parenthesized_expression "(iVar7 < 0)" ( (binary_expression "iVar7 < 0" identifier < number_literal) )) (goto_statement "goto LAB_00055535;" goto statement_identifier ;)) (expression_statement "local_140 = (SHA_CTX *)read_blob((FILE *)__stream,iVar7,&private_blob_len);" (assignment_expression "local_140 = (SHA_CTX *)read_blob((FILE *)__stream,iVar7,&private_blob_len)" identifier = (cast_expression "(SHA_CTX *)read_blob((FILE *)__stream,iVar7,&private_blob_len)" ( (type_descriptor "SHA_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "read_blob((FILE *)__stream,iVar7,&private_blob_len)" identifier (argument_list "((FILE *)__stream,iVar7,&private_blob_len)" ( (cast_expression "(FILE *)__stream" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , (pointer_expression "&private_blob_len" & identifier) ))))) ;) (if_statement "if (local_140 == (SHA_CTX *)0x0) goto LAB_0005553d;" if (parenthesized_expression "(local_140 == (SHA_CTX *)0x0)" ( (binary_expression "local_140 == (SHA_CTX *)0x0" identifier == (cast_expression "(SHA_CTX *)0x0" ( (type_descriptor "SHA_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0005553d;" goto statement_identifier ;)) (expression_statement "iVar7 = read_header((FILE *)__stream,header);" (assignment_expression "iVar7 = read_header((FILE *)__stream,header)" identifier = (call_expression "read_header((FILE *)__stream,header)" identifier (argument_list "((FILE *)__stream,header)" ( (cast_expression "(FILE *)__stream" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier )))) ;) (if_statement "if (iVar7 == 0) goto LAB_0005553d;" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0005553d;" goto statement_identifier ;)) (expression_statement "iVar7 = strcmp(header,"Private-MAC");" (assignment_expression "iVar7 = strcmp(header,"Private-MAC")" identifier = (call_expression "strcmp(header,"Private-MAC")" identifier (argument_list "(header,"Private-MAC")" ( identifier , (string_literal ""Private-MAC"" " string_content ") )))) ;) (if_statement "if (iVar7 != 0) {\n                      iVar7 = strcmp(header,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar6 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = read_body((FILE *)__stream);\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar22 = false;\n                      fclose(__stream);\n                      if (bVar20) goto LAB_000556cb;\nLAB_00055378:\n                      bVar21 = false;\n                      local_124 = private_blob_len;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar22) {\n                        puVar17 = (uchar *)"putty-private-key-file-mac-key";\n                        puVar19 = key;\n                        for (iVar7 = 0x1f; iVar7 != 0; iVar7 = iVar7 + -1) {\n                          *puVar19 = *puVar17;\n                          puVar17 = puVar17 + (uint)bVar23 * -2 + 1;\n                          puVar19 = puVar19 + (uint)bVar23 * -2 + 1;\n                        }\n                        c_00 = (SHA_CTX *)&s;\n                        SHA_Init(c_00);\n                        SHA_Bytes((SHA_State *)c_00,key,0x1e);\n                        if ((passphrase != (char *)0x0) && (bVar20)) {\n                          SHA_Bytes((SHA_State *)c_00,passphrase,local_14c);\n                        }\n                        c = (SHA_CTX *)passphrase;\n                        SHA_Final((SHA_State *)c_00,mackey);\n                        hmac_sha1_simple(mackey,0x14,local_134,local_124,binary);\n                        smemclr(mackey,0x14);\n                        sVar24 = 0x60;\n                        smemclr(c_00,0x60);\n                      }\n                      else {\n                        passphrase = (char *)binary;\n                        sVar24 = local_124;\n                        SHA_Simple(local_134,local_124,(uchar *)passphrase);\n                        c_00 = (SHA_CTX *)0x0;\n                      }\n                      if (bVar21) {\n                        c = c_00;\n                        smemclr(local_134,local_124);\n                        safefree(local_134);\n                        sVar24 = local_124;\n                        passphrase = (char *)c_00;\n                      }\n                      iVar7 = 0;\n                      do {\n                        puVar17 = binary + iVar7;\n                        iVar5 = iVar7 * 2;\n                        iVar7 = iVar7 + 1;\n                        __sprintf_chk(key + iVar5,1,0xffffffff,&DAT_0007dc2b,*puVar17,sVar24,\n                                      passphrase,c);\n                      } while (iVar7 != 0x14);\n                      iVar7 = strcmp(local_144,(char *)key);\n                      if (iVar7 != 0) {\n                        if (bVar20) {\n                          pcVar11 = "wrong passphrase";\n                          ptr = &ssh2_wrong_passphrase;\n                        }\n                        else {\n                          pcVar11 = "MAC failed";\n                          ptr = (ssh2_userkey *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      safefree(local_144);\n                      ptr = (ssh2_userkey *)safemalloc(1,0xc);\n                      ptr->comment = pcVar8;\n                      ptr->alg = psVar9;\n                      pvVar12 = (*psVar9->createkey)\n                                          (psVar9,local_13c,public_blob_len,(uchar *)local_140,\n                                           private_blob_len);\n                      ptr->data = pvVar12;\n                      if (pvVar12 != (void *)0x0) {\n                        safefree(local_13c);\n                        smemclr(local_140,private_blob_len);\n                        safefree(local_140);\n                        safefree(pbVar10);\n                        if (errorstr != (char **)0x0) {\n                          *errorstr = (char *)0x0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar11 = "createkey failed";\n                      safefree(ptr);\n                      goto LAB_0005554f;\n                    }" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (compound_statement "{\n                      iVar7 = strcmp(header,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar6 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = read_body((FILE *)__stream);\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar22 = false;\n                      fclose(__stream);\n                      if (bVar20) goto LAB_000556cb;\nLAB_00055378:\n                      bVar21 = false;\n                      local_124 = private_blob_len;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar22) {\n                        puVar17 = (uchar *)"putty-private-key-file-mac-key";\n                        puVar19 = key;\n                        for (iVar7 = 0x1f; iVar7 != 0; iVar7 = iVar7 + -1) {\n                          *puVar19 = *puVar17;\n                          puVar17 = puVar17 + (uint)bVar23 * -2 + 1;\n                          puVar19 = puVar19 + (uint)bVar23 * -2 + 1;\n                        }\n                        c_00 = (SHA_CTX *)&s;\n                        SHA_Init(c_00);\n                        SHA_Bytes((SHA_State *)c_00,key,0x1e);\n                        if ((passphrase != (char *)0x0) && (bVar20)) {\n                          SHA_Bytes((SHA_State *)c_00,passphrase,local_14c);\n                        }\n                        c = (SHA_CTX *)passphrase;\n                        SHA_Final((SHA_State *)c_00,mackey);\n                        hmac_sha1_simple(mackey,0x14,local_134,local_124,binary);\n                        smemclr(mackey,0x14);\n                        sVar24 = 0x60;\n                        smemclr(c_00,0x60);\n                      }\n                      else {\n                        passphrase = (char *)binary;\n                        sVar24 = local_124;\n                        SHA_Simple(local_134,local_124,(uchar *)passphrase);\n                        c_00 = (SHA_CTX *)0x0;\n                      }\n                      if (bVar21) {\n                        c = c_00;\n                        smemclr(local_134,local_124);\n                        safefree(local_134);\n                        sVar24 = local_124;\n                        passphrase = (char *)c_00;\n                      }\n                      iVar7 = 0;\n                      do {\n                        puVar17 = binary + iVar7;\n                        iVar5 = iVar7 * 2;\n                        iVar7 = iVar7 + 1;\n                        __sprintf_chk(key + iVar5,1,0xffffffff,&DAT_0007dc2b,*puVar17,sVar24,\n                                      passphrase,c);\n                      } while (iVar7 != 0x14);\n                      iVar7 = strcmp(local_144,(char *)key);\n                      if (iVar7 != 0) {\n                        if (bVar20) {\n                          pcVar11 = "wrong passphrase";\n                          ptr = &ssh2_wrong_passphrase;\n                        }\n                        else {\n                          pcVar11 = "MAC failed";\n                          ptr = (ssh2_userkey *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      safefree(local_144);\n                      ptr = (ssh2_userkey *)safemalloc(1,0xc);\n                      ptr->comment = pcVar8;\n                      ptr->alg = psVar9;\n                      pvVar12 = (*psVar9->createkey)\n                                          (psVar9,local_13c,public_blob_len,(uchar *)local_140,\n                                           private_blob_len);\n                      ptr->data = pvVar12;\n                      if (pvVar12 != (void *)0x0) {\n                        safefree(local_13c);\n                        smemclr(local_140,private_blob_len);\n                        safefree(local_140);\n                        safefree(pbVar10);\n                        if (errorstr != (char **)0x0) {\n                          *errorstr = (char *)0x0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar11 = "createkey failed";\n                      safefree(ptr);\n                      goto LAB_0005554f;\n                    }" { (expression_statement "iVar7 = strcmp(header,"Private-Hash");" (assignment_expression "iVar7 = strcmp(header,"Private-Hash")" identifier = (call_expression "strcmp(header,"Private-Hash")" identifier (argument_list "(header,"Private-Hash")" ( identifier , (string_literal ""Private-Hash"" " string_content ") )))) ;) (if_statement "if ((iVar7 != 0) || ((bVar6 & 1) == 0)) goto LAB_0005553d;" if (parenthesized_expression "((iVar7 != 0) || ((bVar6 & 1) == 0))" ( (binary_expression "(iVar7 != 0) || ((bVar6 & 1) == 0)" (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) || (parenthesized_expression "((bVar6 & 1) == 0)" ( (binary_expression "(bVar6 & 1) == 0" (parenthesized_expression "(bVar6 & 1)" ( (binary_expression "bVar6 & 1" identifier & number_literal) )) == number_literal) ))) )) (goto_statement "goto LAB_0005553d;" goto statement_identifier ;)) (expression_statement "local_144 = read_body((FILE *)__stream);" (assignment_expression "local_144 = read_body((FILE *)__stream)" identifier = (call_expression "read_body((FILE *)__stream)" identifier (argument_list "((FILE *)__stream)" ( (cast_expression "(FILE *)__stream" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (if_statement "if (local_144 == (char *)0x0) goto LAB_0005553d;" if (parenthesized_expression "(local_144 == (char *)0x0)" ( (binary_expression "local_144 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0005553d;" goto statement_identifier ;)) (expression_statement "bVar22 = false;" (assignment_expression "bVar22 = false" identifier = false) ;) (expression_statement "fclose(__stream);" (call_expression "fclose(__stream)" identifier (argument_list "(__stream)" ( identifier ))) ;) (if_statement "if (bVar20) goto LAB_000556cb;" if (parenthesized_expression "(bVar20)" ( identifier )) (goto_statement "goto LAB_000556cb;" goto statement_identifier ;)) (labeled_statement "LAB_00055378:\n                      bVar21 = false;" statement_identifier : (expression_statement "bVar21 = false;" (assignment_expression "bVar21 = false" identifier = false) ;)) (expression_statement "local_124 = private_blob_len;" (assignment_expression "local_124 = private_blob_len" identifier = identifier) ;) (expression_statement "local_134 = local_140;" (assignment_expression "local_134 = local_140" identifier = identifier) ;) (labeled_statement "LAB_00055390:\n                      if (bVar22) {\n                        puVar17 = (uchar *)"putty-private-key-file-mac-key";\n                        puVar19 = key;\n                        for (iVar7 = 0x1f; iVar7 != 0; iVar7 = iVar7 + -1) {\n                          *puVar19 = *puVar17;\n                          puVar17 = puVar17 + (uint)bVar23 * -2 + 1;\n                          puVar19 = puVar19 + (uint)bVar23 * -2 + 1;\n                        }\n                        c_00 = (SHA_CTX *)&s;\n                        SHA_Init(c_00);\n                        SHA_Bytes((SHA_State *)c_00,key,0x1e);\n                        if ((passphrase != (char *)0x0) && (bVar20)) {\n                          SHA_Bytes((SHA_State *)c_00,passphrase,local_14c);\n                        }\n                        c = (SHA_CTX *)passphrase;\n                        SHA_Final((SHA_State *)c_00,mackey);\n                        hmac_sha1_simple(mackey,0x14,local_134,local_124,binary);\n                        smemclr(mackey,0x14);\n                        sVar24 = 0x60;\n                        smemclr(c_00,0x60);\n                      }\n                      else {\n                        passphrase = (char *)binary;\n                        sVar24 = local_124;\n                        SHA_Simple(local_134,local_124,(uchar *)passphrase);\n                        c_00 = (SHA_CTX *)0x0;\n                      }" statement_identifier : (if_statement "if (bVar22) {\n                        puVar17 = (uchar *)"putty-private-key-file-mac-key";\n                        puVar19 = key;\n                        for (iVar7 = 0x1f; iVar7 != 0; iVar7 = iVar7 + -1) {\n                          *puVar19 = *puVar17;\n                          puVar17 = puVar17 + (uint)bVar23 * -2 + 1;\n                          puVar19 = puVar19 + (uint)bVar23 * -2 + 1;\n                        }\n                        c_00 = (SHA_CTX *)&s;\n                        SHA_Init(c_00);\n                        SHA_Bytes((SHA_State *)c_00,key,0x1e);\n                        if ((passphrase != (char *)0x0) && (bVar20)) {\n                          SHA_Bytes((SHA_State *)c_00,passphrase,local_14c);\n                        }\n                        c = (SHA_CTX *)passphrase;\n                        SHA_Final((SHA_State *)c_00,mackey);\n                        hmac_sha1_simple(mackey,0x14,local_134,local_124,binary);\n                        smemclr(mackey,0x14);\n                        sVar24 = 0x60;\n                        smemclr(c_00,0x60);\n                      }\n                      else {\n                        passphrase = (char *)binary;\n                        sVar24 = local_124;\n                        SHA_Simple(local_134,local_124,(uchar *)passphrase);\n                        c_00 = (SHA_CTX *)0x0;\n                      }" if (parenthesized_expression "(bVar22)" ( identifier )) (compound_statement "{\n                        puVar17 = (uchar *)"putty-private-key-file-mac-key";\n                        puVar19 = key;\n                        for (iVar7 = 0x1f; iVar7 != 0; iVar7 = iVar7 + -1) {\n                          *puVar19 = *puVar17;\n                          puVar17 = puVar17 + (uint)bVar23 * -2 + 1;\n                          puVar19 = puVar19 + (uint)bVar23 * -2 + 1;\n                        }\n                        c_00 = (SHA_CTX *)&s;\n                        SHA_Init(c_00);\n                        SHA_Bytes((SHA_State *)c_00,key,0x1e);\n                        if ((passphrase != (char *)0x0) && (bVar20)) {\n                          SHA_Bytes((SHA_State *)c_00,passphrase,local_14c);\n                        }\n                        c = (SHA_CTX *)passphrase;\n                        SHA_Final((SHA_State *)c_00,mackey);\n                        hmac_sha1_simple(mackey,0x14,local_134,local_124,binary);\n                        smemclr(mackey,0x14);\n                        sVar24 = 0x60;\n                        smemclr(c_00,0x60);\n                      }" { (expression_statement "puVar17 = (uchar *)"putty-private-key-file-mac-key";" (assignment_expression "puVar17 = (uchar *)"putty-private-key-file-mac-key"" identifier = (cast_expression "(uchar *)"putty-private-key-file-mac-key"" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""putty-private-key-file-mac-key"" " string_content "))) ;) (expression_statement "puVar19 = key;" (assignment_expression "puVar19 = key" identifier = identifier) ;) (for_statement "for (iVar7 = 0x1f; iVar7 != 0; iVar7 = iVar7 + -1) {\n                          *puVar19 = *puVar17;\n                          puVar17 = puVar17 + (uint)bVar23 * -2 + 1;\n                          puVar19 = puVar19 + (uint)bVar23 * -2 + 1;\n                        }" for ( (assignment_expression "iVar7 = 0x1f" identifier = number_literal) ; (binary_expression "iVar7 != 0" identifier != number_literal) ; (assignment_expression "iVar7 = iVar7 + -1" identifier = (binary_expression "iVar7 + -1" identifier + number_literal)) ) (compound_statement "{\n                          *puVar19 = *puVar17;\n                          puVar17 = puVar17 + (uint)bVar23 * -2 + 1;\n                          puVar19 = puVar19 + (uint)bVar23 * -2 + 1;\n                        }" { (expression_statement "*puVar19 = *puVar17;" (assignment_expression "*puVar19 = *puVar17" (pointer_expression "*puVar19" * identifier) = (pointer_expression "*puVar17" * identifier)) ;) (expression_statement "puVar17 = puVar17 + (uint)bVar23 * -2 + 1;" (assignment_expression "puVar17 = puVar17 + (uint)bVar23 * -2 + 1" identifier = (binary_expression "puVar17 + (uint)bVar23 * -2 + 1" (binary_expression "puVar17 + (uint)bVar23 * -2" identifier + (binary_expression "(uint)bVar23 * -2" (cast_expression "(uint)bVar23" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "puVar19 = puVar19 + (uint)bVar23 * -2 + 1;" (assignment_expression "puVar19 = puVar19 + (uint)bVar23 * -2 + 1" identifier = (binary_expression "puVar19 + (uint)bVar23 * -2 + 1" (binary_expression "puVar19 + (uint)bVar23 * -2" identifier + (binary_expression "(uint)bVar23 * -2" (cast_expression "(uint)bVar23" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "c_00 = (SHA_CTX *)&s;" (assignment_expression "c_00 = (SHA_CTX *)&s" identifier = (cast_expression "(SHA_CTX *)&s" ( (type_descriptor "SHA_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&s" & identifier))) ;) (expression_statement "SHA_Init(c_00);" (call_expression "SHA_Init(c_00)" identifier (argument_list "(c_00)" ( identifier ))) ;) (expression_statement "SHA_Bytes((SHA_State *)c_00,key,0x1e);" (call_expression "SHA_Bytes((SHA_State *)c_00,key,0x1e)" identifier (argument_list "((SHA_State *)c_00,key,0x1e)" ( (cast_expression "(SHA_State *)c_00" ( (type_descriptor "SHA_State *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , number_literal ))) ;) (if_statement "if ((passphrase != (char *)0x0) && (bVar20)) {\n                          SHA_Bytes((SHA_State *)c_00,passphrase,local_14c);\n                        }" if (parenthesized_expression "((passphrase != (char *)0x0) && (bVar20))" ( (binary_expression "(passphrase != (char *)0x0) && (bVar20)" (parenthesized_expression "(passphrase != (char *)0x0)" ( (binary_expression "passphrase != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(bVar20)" ( identifier ))) )) (compound_statement "{\n                          SHA_Bytes((SHA_State *)c_00,passphrase,local_14c);\n                        }" { (expression_statement "SHA_Bytes((SHA_State *)c_00,passphrase,local_14c);" (call_expression "SHA_Bytes((SHA_State *)c_00,passphrase,local_14c)" identifier (argument_list "((SHA_State *)c_00,passphrase,local_14c)" ( (cast_expression "(SHA_State *)c_00" ( (type_descriptor "SHA_State *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , identifier ))) ;) })) (expression_statement "c = (SHA_CTX *)passphrase;" (assignment_expression "c = (SHA_CTX *)passphrase" identifier = (cast_expression "(SHA_CTX *)passphrase" ( (type_descriptor "SHA_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "SHA_Final((SHA_State *)c_00,mackey);" (call_expression "SHA_Final((SHA_State *)c_00,mackey)" identifier (argument_list "((SHA_State *)c_00,mackey)" ( (cast_expression "(SHA_State *)c_00" ( (type_descriptor "SHA_State *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier ))) ;) (expression_statement "hmac_sha1_simple(mackey,0x14,local_134,local_124,binary);" (call_expression "hmac_sha1_simple(mackey,0x14,local_134,local_124,binary)" identifier (argument_list "(mackey,0x14,local_134,local_124,binary)" ( identifier , number_literal , identifier , identifier , identifier ))) ;) (expression_statement "smemclr(mackey,0x14);" (call_expression "smemclr(mackey,0x14)" identifier (argument_list "(mackey,0x14)" ( identifier , number_literal ))) ;) (expression_statement "sVar24 = 0x60;" (assignment_expression "sVar24 = 0x60" identifier = number_literal) ;) (expression_statement "smemclr(c_00,0x60);" (call_expression "smemclr(c_00,0x60)" identifier (argument_list "(c_00,0x60)" ( identifier , number_literal ))) ;) }) (else_clause "else {\n                        passphrase = (char *)binary;\n                        sVar24 = local_124;\n                        SHA_Simple(local_134,local_124,(uchar *)passphrase);\n                        c_00 = (SHA_CTX *)0x0;\n                      }" else (compound_statement "{\n                        passphrase = (char *)binary;\n                        sVar24 = local_124;\n                        SHA_Simple(local_134,local_124,(uchar *)passphrase);\n                        c_00 = (SHA_CTX *)0x0;\n                      }" { (expression_statement "passphrase = (char *)binary;" (assignment_expression "passphrase = (char *)binary" identifier = (cast_expression "(char *)binary" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "sVar24 = local_124;" (assignment_expression "sVar24 = local_124" identifier = identifier) ;) (expression_statement "SHA_Simple(local_134,local_124,(uchar *)passphrase);" (call_expression "SHA_Simple(local_134,local_124,(uchar *)passphrase)" identifier (argument_list "(local_134,local_124,(uchar *)passphrase)" ( identifier , identifier , (cast_expression "(uchar *)passphrase" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) (expression_statement "c_00 = (SHA_CTX *)0x0;" (assignment_expression "c_00 = (SHA_CTX *)0x0" identifier = (cast_expression "(SHA_CTX *)0x0" ( (type_descriptor "SHA_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })))) (if_statement "if (bVar21) {\n                        c = c_00;\n                        smemclr(local_134,local_124);\n                        safefree(local_134);\n                        sVar24 = local_124;\n                        passphrase = (char *)c_00;\n                      }" if (parenthesized_expression "(bVar21)" ( identifier )) (compound_statement "{\n                        c = c_00;\n                        smemclr(local_134,local_124);\n                        safefree(local_134);\n                        sVar24 = local_124;\n                        passphrase = (char *)c_00;\n                      }" { (expression_statement "c = c_00;" (assignment_expression "c = c_00" identifier = identifier) ;) (expression_statement "smemclr(local_134,local_124);" (call_expression "smemclr(local_134,local_124)" identifier (argument_list "(local_134,local_124)" ( identifier , identifier ))) ;) (expression_statement "safefree(local_134);" (call_expression "safefree(local_134)" identifier (argument_list "(local_134)" ( identifier ))) ;) (expression_statement "sVar24 = local_124;" (assignment_expression "sVar24 = local_124" identifier = identifier) ;) (expression_statement "passphrase = (char *)c_00;" (assignment_expression "passphrase = (char *)c_00" identifier = (cast_expression "(char *)c_00" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) })) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (do_statement "do {\n                        puVar17 = binary + iVar7;\n                        iVar5 = iVar7 * 2;\n                        iVar7 = iVar7 + 1;\n                        __sprintf_chk(key + iVar5,1,0xffffffff,&DAT_0007dc2b,*puVar17,sVar24,\n                                      passphrase,c);\n                      } while (iVar7 != 0x14);" do (compound_statement "{\n                        puVar17 = binary + iVar7;\n                        iVar5 = iVar7 * 2;\n                        iVar7 = iVar7 + 1;\n                        __sprintf_chk(key + iVar5,1,0xffffffff,&DAT_0007dc2b,*puVar17,sVar24,\n                                      passphrase,c);\n                      }" { (expression_statement "puVar17 = binary + iVar7;" (assignment_expression "puVar17 = binary + iVar7" identifier = (binary_expression "binary + iVar7" identifier + identifier)) ;) (expression_statement "iVar5 = iVar7 * 2;" (assignment_expression "iVar5 = iVar7 * 2" identifier = (binary_expression "iVar7 * 2" identifier * number_literal)) ;) (expression_statement "iVar7 = iVar7 + 1;" (assignment_expression "iVar7 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) (expression_statement "__sprintf_chk(key + iVar5,1,0xffffffff,&DAT_0007dc2b,*puVar17,sVar24,\n                                      passphrase,c);" (call_expression "__sprintf_chk(key + iVar5,1,0xffffffff,&DAT_0007dc2b,*puVar17,sVar24,\n                                      passphrase,c)" identifier (argument_list "(key + iVar5,1,0xffffffff,&DAT_0007dc2b,*puVar17,sVar24,\n                                      passphrase,c)" ( (binary_expression "key + iVar5" identifier + identifier) , number_literal , number_literal , (pointer_expression "&DAT_0007dc2b" & identifier) , (pointer_expression "*puVar17" * identifier) , identifier , identifier , identifier ))) ;) }) while (parenthesized_expression "(iVar7 != 0x14)" ( (binary_expression "iVar7 != 0x14" identifier != number_literal) )) ;) (expression_statement "iVar7 = strcmp(local_144,(char *)key);" (assignment_expression "iVar7 = strcmp(local_144,(char *)key)" identifier = (call_expression "strcmp(local_144,(char *)key)" identifier (argument_list "(local_144,(char *)key)" ( identifier , (cast_expression "(char *)key" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (if_statement "if (iVar7 != 0) {\n                        if (bVar20) {\n                          pcVar11 = "wrong passphrase";\n                          ptr = &ssh2_wrong_passphrase;\n                        }\n                        else {\n                          pcVar11 = "MAC failed";\n                          ptr = (ssh2_userkey *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (compound_statement "{\n                        if (bVar20) {\n                          pcVar11 = "wrong passphrase";\n                          ptr = &ssh2_wrong_passphrase;\n                        }\n                        else {\n                          pcVar11 = "MAC failed";\n                          ptr = (ssh2_userkey *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }" { (if_statement "if (bVar20) {\n                          pcVar11 = "wrong passphrase";\n                          ptr = &ssh2_wrong_passphrase;\n                        }\n                        else {\n                          pcVar11 = "MAC failed";\n                          ptr = (ssh2_userkey *)0x0;\n                        }" if (parenthesized_expression "(bVar20)" ( identifier )) (compound_statement "{\n                          pcVar11 = "wrong passphrase";\n                          ptr = &ssh2_wrong_passphrase;\n                        }" { (expression_statement "pcVar11 = "wrong passphrase";" (assignment_expression "pcVar11 = "wrong passphrase"" identifier = (string_literal ""wrong passphrase"" " string_content ")) ;) (expression_statement "ptr = &ssh2_wrong_passphrase;" (assignment_expression "ptr = &ssh2_wrong_passphrase" identifier = (pointer_expression "&ssh2_wrong_passphrase" & identifier)) ;) }) (else_clause "else {\n                          pcVar11 = "MAC failed";\n                          ptr = (ssh2_userkey *)0x0;\n                        }" else (compound_statement "{\n                          pcVar11 = "MAC failed";\n                          ptr = (ssh2_userkey *)0x0;\n                        }" { (expression_statement "pcVar11 = "MAC failed";" (assignment_expression "pcVar11 = "MAC failed"" identifier = (string_literal ""MAC failed"" " string_content ")) ;) (expression_statement "ptr = (ssh2_userkey *)0x0;" (assignment_expression "ptr = (ssh2_userkey *)0x0" identifier = (cast_expression "(ssh2_userkey *)0x0" ( (type_descriptor "ssh2_userkey *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }))) (goto_statement "goto LAB_000554a5;" goto statement_identifier ;) })) (expression_statement "safefree(local_144);" (call_expression "safefree(local_144)" identifier (argument_list "(local_144)" ( identifier ))) ;) (expression_statement "ptr = (ssh2_userkey *)safemalloc(1,0xc);" (assignment_expression "ptr = (ssh2_userkey *)safemalloc(1,0xc)" identifier = (cast_expression "(ssh2_userkey *)safemalloc(1,0xc)" ( (type_descriptor "ssh2_userkey *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "safemalloc(1,0xc)" identifier (argument_list "(1,0xc)" ( number_literal , number_literal ))))) ;) (expression_statement "ptr->comment = pcVar8;" (assignment_expression "ptr->comment = pcVar8" (field_expression "ptr->comment" identifier -> field_identifier) = identifier) ;) (expression_statement "ptr->alg = psVar9;" (assignment_expression "ptr->alg = psVar9" (field_expression "ptr->alg" identifier -> field_identifier) = identifier) ;) (expression_statement "pvVar12 = (*psVar9->createkey)\n                                          (psVar9,local_13c,public_blob_len,(uchar *)local_140,\n                                           private_blob_len);" (assignment_expression "pvVar12 = (*psVar9->createkey)\n                                          (psVar9,local_13c,public_blob_len,(uchar *)local_140,\n                                           private_blob_len)" identifier = (call_expression "(*psVar9->createkey)\n                                          (psVar9,local_13c,public_blob_len,(uchar *)local_140,\n                                           private_blob_len)" (parenthesized_expression "(*psVar9->createkey)" ( (pointer_expression "*psVar9->createkey" * (field_expression "psVar9->createkey" identifier -> field_identifier)) )) (argument_list "(psVar9,local_13c,public_blob_len,(uchar *)local_140,\n                                           private_blob_len)" ( identifier , identifier , identifier , (cast_expression "(uchar *)local_140" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier )))) ;) (expression_statement "ptr->data = pvVar12;" (assignment_expression "ptr->data = pvVar12" (field_expression "ptr->data" identifier -> field_identifier) = identifier) ;) (if_statement "if (pvVar12 != (void *)0x0) {\n                        safefree(local_13c);\n                        smemclr(local_140,private_blob_len);\n                        safefree(local_140);\n                        safefree(pbVar10);\n                        if (errorstr != (char **)0x0) {\n                          *errorstr = (char *)0x0;\n                        }\n                        goto LAB_0005507a;\n                      }" if (parenthesized_expression "(pvVar12 != (void *)0x0)" ( (binary_expression "pvVar12 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                        safefree(local_13c);\n                        smemclr(local_140,private_blob_len);\n                        safefree(local_140);\n                        safefree(pbVar10);\n                        if (errorstr != (char **)0x0) {\n                          *errorstr = (char *)0x0;\n                        }\n                        goto LAB_0005507a;\n                      }" { (expression_statement "safefree(local_13c);" (call_expression "safefree(local_13c)" identifier (argument_list "(local_13c)" ( identifier ))) ;) (expression_statement "smemclr(local_140,private_blob_len);" (call_expression "smemclr(local_140,private_blob_len)" identifier (argument_list "(local_140,private_blob_len)" ( identifier , identifier ))) ;) (expression_statement "safefree(local_140);" (call_expression "safefree(local_140)" identifier (argument_list "(local_140)" ( identifier ))) ;) (expression_statement "safefree(pbVar10);" (call_expression "safefree(pbVar10)" identifier (argument_list "(pbVar10)" ( identifier ))) ;) (if_statement "if (errorstr != (char **)0x0) {\n                          *errorstr = (char *)0x0;\n                        }" if (parenthesized_expression "(errorstr != (char **)0x0)" ( (binary_expression "errorstr != (char **)0x0" identifier != (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\n                          *errorstr = (char *)0x0;\n                        }" { (expression_statement "*errorstr = (char *)0x0;" (assignment_expression "*errorstr = (char *)0x0" (pointer_expression "*errorstr" * identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (goto_statement "goto LAB_0005507a;" goto statement_identifier ;) })) (expression_statement "pcVar11 = "createkey failed";" (assignment_expression "pcVar11 = "createkey failed"" identifier = (string_literal ""createkey failed"" " string_content ")) ;) (expression_statement "safefree(ptr);" (call_expression "safefree(ptr)" identifier (argument_list "(ptr)" ( identifier ))) ;) (goto_statement "goto LAB_0005554f;" goto statement_identifier ;) })) (expression_statement "local_144 = read_body((FILE *)__stream);" (assignment_expression "local_144 = read_body((FILE *)__stream)" identifier = (call_expression "read_body((FILE *)__stream)" identifier (argument_list "((FILE *)__stream)" ( (cast_expression "(FILE *)__stream" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (if_statement "if (local_144 == (char *)0x0) goto LAB_0005553d;" if (parenthesized_expression "(local_144 == (char *)0x0)" ( (binary_expression "local_144 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0005553d;" goto statement_identifier ;)) (expression_statement "fclose(__stream);" (call_expression "fclose(__stream)" identifier (argument_list "(__stream)" ( identifier ))) ;) (expression_statement "bVar22 = bVar20;" (assignment_expression "bVar22 = bVar20" identifier = identifier) ;) (if_statement "if (!bVar20) {\n                      bVar22 = true;\nLAB_00055778:\n                      if (bVar6 != 0) goto LAB_00055378;\n                      uVar13 = 0xffffffff;\n                      pcVar11 = psVar9->name;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar3 = *pcVar11;\n                        pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1;\n                      } while (cVar3 != '\0');\n                      uVar13 = ~uVar13;\n                      __n = uVar13 - 1;\n                      uVar14 = 0xffffffff;\n                      pbVar16 = pbVar10;\n                      do {\n                        if (uVar14 == 0) break;\n                        uVar14 = uVar14 - 1;\n                        bVar6 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                      } while (bVar6 != 0);\n                      uVar15 = 0xffffffff;\n                      uVar14 = ~uVar14;\n                      __n_01 = uVar14 - 1;\n                      pcVar11 = pcVar8;\n                      do {\n                        if (uVar15 == 0) break;\n                        uVar15 = uVar15 - 1;\n                        cVar3 = *pcVar11;\n                        pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1;\n                      } while (cVar3 != '\0');\n                      uVar15 = ~uVar15;\n                      __n_00 = uVar15 - 1;\n                      local_124 = uVar15 + uVar14 + uVar13 + public_blob_len + 0x11 +\n                                  private_blob_len;\n                      local_134 = (SHA_CTX *)safemalloc(local_124,1);\n                      local_134->h0 =\n                           __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                           __n * 0x1000000;\n                      memcpy(&local_134->h1,psVar9->name,__n);\n                      puVar1 = (uint *)((int)local_134->data + (uVar13 - 0x19));\n                      *puVar1 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8 |\n                                __n_01 * 0x1000000;\n                      memcpy(puVar1 + 1,pbVar10,__n_01);\n                      puVar1 = (uint *)((int)puVar1 + uVar14 + 3);\n                      *puVar1 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8 |\n                                __n_00 * 0x1000000;\n                      memcpy(puVar1 + 1,pcVar8,__n_00);\n                      iVar7 = public_blob_len;\n                      c = (SHA_CTX *)((int)puVar1 + uVar15 + 3);\n                      *(undefined1 *)&c->h0 = public_blob_len._3_1_;\n                      *(char *)((int)&c->h0 + 1) = (char)((uint)public_blob_len >> 0x10);\n                      *(char *)((int)&c->h0 + 2) = (char)((uint)public_blob_len >> 8);\n                      *(char *)((int)&c->h0 + 3) = (char)public_blob_len;\n                      memcpy(&c->h1,local_13c,public_blob_len);\n                      puVar2 = (undefined1 *)((int)c->data + iVar7 + -0x18);\n                      *puVar2 = private_blob_len._3_1_;\n                      puVar2[1] = (char)((uint)private_blob_len >> 0x10);\n                      puVar2[2] = (char)((uint)private_blob_len >> 8);\n                      puVar2[3] = (char)private_blob_len;\n                      memcpy(puVar2 + 4,local_140,private_blob_len);\n                      bVar21 = true;\n                      goto LAB_00055390;\n                    }" if (parenthesized_expression "(!bVar20)" ( (unary_expression "!bVar20" ! identifier) )) (compound_statement "{\n                      bVar22 = true;\nLAB_00055778:\n                      if (bVar6 != 0) goto LAB_00055378;\n                      uVar13 = 0xffffffff;\n                      pcVar11 = psVar9->name;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar3 = *pcVar11;\n                        pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1;\n                      } while (cVar3 != '\0');\n                      uVar13 = ~uVar13;\n                      __n = uVar13 - 1;\n                      uVar14 = 0xffffffff;\n                      pbVar16 = pbVar10;\n                      do {\n                        if (uVar14 == 0) break;\n                        uVar14 = uVar14 - 1;\n                        bVar6 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                      } while (bVar6 != 0);\n                      uVar15 = 0xffffffff;\n                      uVar14 = ~uVar14;\n                      __n_01 = uVar14 - 1;\n                      pcVar11 = pcVar8;\n                      do {\n                        if (uVar15 == 0) break;\n                        uVar15 = uVar15 - 1;\n                        cVar3 = *pcVar11;\n                        pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1;\n                      } while (cVar3 != '\0');\n                      uVar15 = ~uVar15;\n                      __n_00 = uVar15 - 1;\n                      local_124 = uVar15 + uVar14 + uVar13 + public_blob_len + 0x11 +\n                                  private_blob_len;\n                      local_134 = (SHA_CTX *)safemalloc(local_124,1);\n                      local_134->h0 =\n                           __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                           __n * 0x1000000;\n                      memcpy(&local_134->h1,psVar9->name,__n);\n                      puVar1 = (uint *)((int)local_134->data + (uVar13 - 0x19));\n                      *puVar1 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8 |\n                                __n_01 * 0x1000000;\n                      memcpy(puVar1 + 1,pbVar10,__n_01);\n                      puVar1 = (uint *)((int)puVar1 + uVar14 + 3);\n                      *puVar1 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8 |\n                                __n_00 * 0x1000000;\n                      memcpy(puVar1 + 1,pcVar8,__n_00);\n                      iVar7 = public_blob_len;\n                      c = (SHA_CTX *)((int)puVar1 + uVar15 + 3);\n                      *(undefined1 *)&c->h0 = public_blob_len._3_1_;\n                      *(char *)((int)&c->h0 + 1) = (char)((uint)public_blob_len >> 0x10);\n                      *(char *)((int)&c->h0 + 2) = (char)((uint)public_blob_len >> 8);\n                      *(char *)((int)&c->h0 + 3) = (char)public_blob_len;\n                      memcpy(&c->h1,local_13c,public_blob_len);\n                      puVar2 = (undefined1 *)((int)c->data + iVar7 + -0x18);\n                      *puVar2 = private_blob_len._3_1_;\n                      puVar2[1] = (char)((uint)private_blob_len >> 0x10);\n                      puVar2[2] = (char)((uint)private_blob_len >> 8);\n                      puVar2[3] = (char)private_blob_len;\n                      memcpy(puVar2 + 4,local_140,private_blob_len);\n                      bVar21 = true;\n                      goto LAB_00055390;\n                    }" { (expression_statement "bVar22 = true;" (assignment_expression "bVar22 = true" identifier = true) ;) (labeled_statement "LAB_00055778:\n                      if (bVar6 != 0) goto LAB_00055378;" statement_identifier : (if_statement "if (bVar6 != 0) goto LAB_00055378;" if (parenthesized_expression "(bVar6 != 0)" ( (binary_expression "bVar6 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00055378;" goto statement_identifier ;))) (expression_statement "uVar13 = 0xffffffff;" (assignment_expression "uVar13 = 0xffffffff" identifier = number_literal) ;) (expression_statement "pcVar11 = psVar9->name;" (assignment_expression "pcVar11 = psVar9->name" identifier = (field_expression "psVar9->name" identifier -> field_identifier)) ;) (do_statement "do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar3 = *pcVar11;\n                        pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1;\n                      } while (cVar3 != '\0');" do (compound_statement "{\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar3 = *pcVar11;\n                        pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1;\n                      }" { (if_statement "if (uVar13 == 0) break;" if (parenthesized_expression "(uVar13 == 0)" ( (binary_expression "uVar13 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar13 = uVar13 - 1;" (assignment_expression "uVar13 = uVar13 - 1" identifier = (binary_expression "uVar13 - 1" identifier - number_literal)) ;) (expression_statement "cVar3 = *pcVar11;" (assignment_expression "cVar3 = *pcVar11" identifier = (pointer_expression "*pcVar11" * identifier)) ;) (expression_statement "pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1;" (assignment_expression "pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1" identifier = (binary_expression "pcVar11 + (uint)bVar23 * -2 + 1" (binary_expression "pcVar11 + (uint)bVar23 * -2" identifier + (binary_expression "(uint)bVar23 * -2" (cast_expression "(uint)bVar23" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar3 != '\0')" ( (binary_expression "cVar3 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "uVar13 = ~uVar13;" (assignment_expression "uVar13 = ~uVar13" identifier = (unary_expression "~uVar13" ~ identifier)) ;) (expression_statement "__n = uVar13 - 1;" (assignment_expression "__n = uVar13 - 1" identifier = (binary_expression "uVar13 - 1" identifier - number_literal)) ;) (expression_statement "uVar14 = 0xffffffff;" (assignment_expression "uVar14 = 0xffffffff" identifier = number_literal) ;) (expression_statement "pbVar16 = pbVar10;" (assignment_expression "pbVar16 = pbVar10" identifier = identifier) ;) (do_statement "do {\n                        if (uVar14 == 0) break;\n                        uVar14 = uVar14 - 1;\n                        bVar6 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                      } while (bVar6 != 0);" do (compound_statement "{\n                        if (uVar14 == 0) break;\n                        uVar14 = uVar14 - 1;\n                        bVar6 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                      }" { (if_statement "if (uVar14 == 0) break;" if (parenthesized_expression "(uVar14 == 0)" ( (binary_expression "uVar14 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar14 = uVar14 - 1;" (assignment_expression "uVar14 = uVar14 - 1" identifier = (binary_expression "uVar14 - 1" identifier - number_literal)) ;) (expression_statement "bVar6 = *pbVar16;" (assignment_expression "bVar6 = *pbVar16" identifier = (pointer_expression "*pbVar16" * identifier)) ;) (expression_statement "pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;" (assignment_expression "pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1" identifier = (binary_expression "pbVar16 + (uint)bVar23 * -2 + 1" (binary_expression "pbVar16 + (uint)bVar23 * -2" identifier + (binary_expression "(uint)bVar23 * -2" (cast_expression "(uint)bVar23" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar6 != 0)" ( (binary_expression "bVar6 != 0" identifier != number_literal) )) ;) (expression_statement "uVar15 = 0xffffffff;" (assignment_expression "uVar15 = 0xffffffff" identifier = number_literal) ;) (expression_statement "uVar14 = ~uVar14;" (assignment_expression "uVar14 = ~uVar14" identifier = (unary_expression "~uVar14" ~ identifier)) ;) (expression_statement "__n_01 = uVar14 - 1;" (assignment_expression "__n_01 = uVar14 - 1" identifier = (binary_expression "uVar14 - 1" identifier - number_literal)) ;) (expression_statement "pcVar11 = pcVar8;" (assignment_expression "pcVar11 = pcVar8" identifier = identifier) ;) (do_statement "do {\n                        if (uVar15 == 0) break;\n                        uVar15 = uVar15 - 1;\n                        cVar3 = *pcVar11;\n                        pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1;\n                      } while (cVar3 != '\0');" do (compound_statement "{\n                        if (uVar15 == 0) break;\n                        uVar15 = uVar15 - 1;\n                        cVar3 = *pcVar11;\n                        pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1;\n                      }" { (if_statement "if (uVar15 == 0) break;" if (parenthesized_expression "(uVar15 == 0)" ( (binary_expression "uVar15 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar15 = uVar15 - 1;" (assignment_expression "uVar15 = uVar15 - 1" identifier = (binary_expression "uVar15 - 1" identifier - number_literal)) ;) (expression_statement "cVar3 = *pcVar11;" (assignment_expression "cVar3 = *pcVar11" identifier = (pointer_expression "*pcVar11" * identifier)) ;) (expression_statement "pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1;" (assignment_expression "pcVar11 = pcVar11 + (uint)bVar23 * -2 + 1" identifier = (binary_expression "pcVar11 + (uint)bVar23 * -2 + 1" (binary_expression "pcVar11 + (uint)bVar23 * -2" identifier + (binary_expression "(uint)bVar23 * -2" (cast_expression "(uint)bVar23" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar3 != '\0')" ( (binary_expression "cVar3 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "uVar15 = ~uVar15;" (assignment_expression "uVar15 = ~uVar15" identifier = (unary_expression "~uVar15" ~ identifier)) ;) (expression_statement "__n_00 = uVar15 - 1;" (assignment_expression "__n_00 = uVar15 - 1" identifier = (binary_expression "uVar15 - 1" identifier - number_literal)) ;) (expression_statement "local_124 = uVar15 + uVar14 + uVar13 + public_blob_len + 0x11 +\n                                  private_blob_len;" (assignment_expression "local_124 = uVar15 + uVar14 + uVar13 + public_blob_len + 0x11 +\n                                  private_blob_len" identifier = (binary_expression "uVar15 + uVar14 + uVar13 + public_blob_len + 0x11 +\n                                  private_blob_len" (binary_expression "uVar15 + uVar14 + uVar13 + public_blob_len + 0x11" (binary_expression "uVar15 + uVar14 + uVar13 + public_blob_len" (binary_expression "uVar15 + uVar14 + uVar13" (binary_expression "uVar15 + uVar14" identifier + identifier) + identifier) + identifier) + number_literal) + identifier)) ;) (expression_statement "local_134 = (SHA_CTX *)safemalloc(local_124,1);" (assignment_expression "local_134 = (SHA_CTX *)safemalloc(local_124,1)" identifier = (cast_expression "(SHA_CTX *)safemalloc(local_124,1)" ( (type_descriptor "SHA_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "safemalloc(local_124,1)" identifier (argument_list "(local_124,1)" ( identifier , number_literal ))))) ;) (expression_statement "local_134->h0 =\n                           __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                           __n * 0x1000000;" (assignment_expression "local_134->h0 =\n                           __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                           __n * 0x1000000" (field_expression "local_134->h0" identifier -> field_identifier) = (binary_expression "__n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                           __n * 0x1000000" (binary_expression "__n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8" (binary_expression "__n >> 0x18 | (__n & 0xff0000) >> 8" (binary_expression "__n >> 0x18" identifier >> number_literal) | (binary_expression "(__n & 0xff0000) >> 8" (parenthesized_expression "(__n & 0xff0000)" ( (binary_expression "__n & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(__n & 0xff00) << 8" (parenthesized_expression "(__n & 0xff00)" ( (binary_expression "__n & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "__n * 0x1000000" identifier * number_literal))) ;) (expression_statement "memcpy(&local_134->h1,psVar9->name,__n);" (call_expression "memcpy(&local_134->h1,psVar9->name,__n)" identifier (argument_list "(&local_134->h1,psVar9->name,__n)" ( (pointer_expression "&local_134->h1" & (field_expression "local_134->h1" identifier -> field_identifier)) , (field_expression "psVar9->name" identifier -> field_identifier) , identifier ))) ;) (expression_statement "puVar1 = (uint *)((int)local_134->data + (uVar13 - 0x19));" (assignment_expression "puVar1 = (uint *)((int)local_134->data + (uVar13 - 0x19))" identifier = (cast_expression "(uint *)((int)local_134->data + (uVar13 - 0x19))" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_134->data + (uVar13 - 0x19))" ( (binary_expression "(int)local_134->data + (uVar13 - 0x19)" (cast_expression "(int)local_134->data" ( (type_descriptor "int" primitive_type) ) (field_expression "local_134->data" identifier -> field_identifier)) + (parenthesized_expression "(uVar13 - 0x19)" ( (binary_expression "uVar13 - 0x19" identifier - number_literal) ))) )))) ;) (expression_statement "*puVar1 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8 |\n                                __n_01 * 0x1000000;" (assignment_expression "*puVar1 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8 |\n                                __n_01 * 0x1000000" (pointer_expression "*puVar1" * identifier) = (binary_expression "__n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8 |\n                                __n_01 * 0x1000000" (binary_expression "__n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8" (binary_expression "__n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8" (binary_expression "__n_01 >> 0x18" identifier >> number_literal) | (binary_expression "(__n_01 & 0xff0000) >> 8" (parenthesized_expression "(__n_01 & 0xff0000)" ( (binary_expression "__n_01 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(__n_01 & 0xff00) << 8" (parenthesized_expression "(__n_01 & 0xff00)" ( (binary_expression "__n_01 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "__n_01 * 0x1000000" identifier * number_literal))) ;) (expression_statement "memcpy(puVar1 + 1,pbVar10,__n_01);" (call_expression "memcpy(puVar1 + 1,pbVar10,__n_01)" identifier (argument_list "(puVar1 + 1,pbVar10,__n_01)" ( (binary_expression "puVar1 + 1" identifier + number_literal) , identifier , identifier ))) ;) (expression_statement "puVar1 = (uint *)((int)puVar1 + uVar14 + 3);" (assignment_expression "puVar1 = (uint *)((int)puVar1 + uVar14 + 3)" identifier = (cast_expression "(uint *)((int)puVar1 + uVar14 + 3)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar1 + uVar14 + 3)" ( (binary_expression "(int)puVar1 + uVar14 + 3" (binary_expression "(int)puVar1 + uVar14" (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) ;) (expression_statement "*puVar1 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8 |\n                                __n_00 * 0x1000000;" (assignment_expression "*puVar1 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8 |\n                                __n_00 * 0x1000000" (pointer_expression "*puVar1" * identifier) = (binary_expression "__n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8 |\n                                __n_00 * 0x1000000" (binary_expression "__n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8" (binary_expression "__n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8" (binary_expression "__n_00 >> 0x18" identifier >> number_literal) | (binary_expression "(__n_00 & 0xff0000) >> 8" (parenthesized_expression "(__n_00 & 0xff0000)" ( (binary_expression "__n_00 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(__n_00 & 0xff00) << 8" (parenthesized_expression "(__n_00 & 0xff00)" ( (binary_expression "__n_00 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "__n_00 * 0x1000000" identifier * number_literal))) ;) (expression_statement "memcpy(puVar1 + 1,pcVar8,__n_00);" (call_expression "memcpy(puVar1 + 1,pcVar8,__n_00)" identifier (argument_list "(puVar1 + 1,pcVar8,__n_00)" ( (binary_expression "puVar1 + 1" identifier + number_literal) , identifier , identifier ))) ;) (expression_statement "iVar7 = public_blob_len;" (assignment_expression "iVar7 = public_blob_len" identifier = identifier) ;) (expression_statement "c = (SHA_CTX *)((int)puVar1 + uVar15 + 3);" (assignment_expression "c = (SHA_CTX *)((int)puVar1 + uVar15 + 3)" identifier = (cast_expression "(SHA_CTX *)((int)puVar1 + uVar15 + 3)" ( (type_descriptor "SHA_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar1 + uVar15 + 3)" ( (binary_expression "(int)puVar1 + uVar15 + 3" (binary_expression "(int)puVar1 + uVar15" (cast_expression "(int)puVar1" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) ;) (expression_statement "*(undefined1 *)&c->h0 = public_blob_len._3_1_;" (assignment_expression "*(undefined1 *)&c->h0 = public_blob_len._3_1_" (pointer_expression "*(undefined1 *)&c->h0" * (cast_expression "(undefined1 *)&c->h0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&c->h0" & (field_expression "c->h0" identifier -> field_identifier)))) = (field_expression "public_blob_len._3_1_" identifier . field_identifier)) ;) (expression_statement "*(char *)((int)&c->h0 + 1) = (char)((uint)public_blob_len >> 0x10);" (assignment_expression "*(char *)((int)&c->h0 + 1) = (char)((uint)public_blob_len >> 0x10)" (pointer_expression "*(char *)((int)&c->h0 + 1)" * (cast_expression "(char *)((int)&c->h0 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&c->h0 + 1)" ( (binary_expression "(int)&c->h0 + 1" (cast_expression "(int)&c->h0" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&c->h0" & (field_expression "c->h0" identifier -> field_identifier))) + number_literal) )))) = (cast_expression "(char)((uint)public_blob_len >> 0x10)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)public_blob_len >> 0x10)" ( (binary_expression "(uint)public_blob_len >> 0x10" (cast_expression "(uint)public_blob_len" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "*(char *)((int)&c->h0 + 2) = (char)((uint)public_blob_len >> 8);" (assignment_expression "*(char *)((int)&c->h0 + 2) = (char)((uint)public_blob_len >> 8)" (pointer_expression "*(char *)((int)&c->h0 + 2)" * (cast_expression "(char *)((int)&c->h0 + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&c->h0 + 2)" ( (binary_expression "(int)&c->h0 + 2" (cast_expression "(int)&c->h0" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&c->h0" & (field_expression "c->h0" identifier -> field_identifier))) + number_literal) )))) = (cast_expression "(char)((uint)public_blob_len >> 8)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)public_blob_len >> 8)" ( (binary_expression "(uint)public_blob_len >> 8" (cast_expression "(uint)public_blob_len" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "*(char *)((int)&c->h0 + 3) = (char)public_blob_len;" (assignment_expression "*(char *)((int)&c->h0 + 3) = (char)public_blob_len" (pointer_expression "*(char *)((int)&c->h0 + 3)" * (cast_expression "(char *)((int)&c->h0 + 3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&c->h0 + 3)" ( (binary_expression "(int)&c->h0 + 3" (cast_expression "(int)&c->h0" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&c->h0" & (field_expression "c->h0" identifier -> field_identifier))) + number_literal) )))) = (cast_expression "(char)public_blob_len" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "memcpy(&c->h1,local_13c,public_blob_len);" (call_expression "memcpy(&c->h1,local_13c,public_blob_len)" identifier (argument_list "(&c->h1,local_13c,public_blob_len)" ( (pointer_expression "&c->h1" & (field_expression "c->h1" identifier -> field_identifier)) , identifier , identifier ))) ;) (expression_statement "puVar2 = (undefined1 *)((int)c->data + iVar7 + -0x18);" (assignment_expression "puVar2 = (undefined1 *)((int)c->data + iVar7 + -0x18)" identifier = (cast_expression "(undefined1 *)((int)c->data + iVar7 + -0x18)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)c->data + iVar7 + -0x18)" ( (binary_expression "(int)c->data + iVar7 + -0x18" (binary_expression "(int)c->data + iVar7" (cast_expression "(int)c->data" ( (type_descriptor "int" primitive_type) ) (field_expression "c->data" identifier -> field_identifier)) + identifier) + number_literal) )))) ;) (expression_statement "*puVar2 = private_blob_len._3_1_;" (assignment_expression "*puVar2 = private_blob_len._3_1_" (pointer_expression "*puVar2" * identifier) = (field_expression "private_blob_len._3_1_" identifier . field_identifier)) ;) (expression_statement "puVar2[1] = (char)((uint)private_blob_len >> 0x10);" (assignment_expression "puVar2[1] = (char)((uint)private_blob_len >> 0x10)" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = (cast_expression "(char)((uint)private_blob_len >> 0x10)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)private_blob_len >> 0x10)" ( (binary_expression "(uint)private_blob_len >> 0x10" (cast_expression "(uint)private_blob_len" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "puVar2[2] = (char)((uint)private_blob_len >> 8);" (assignment_expression "puVar2[2] = (char)((uint)private_blob_len >> 8)" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = (cast_expression "(char)((uint)private_blob_len >> 8)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)private_blob_len >> 8)" ( (binary_expression "(uint)private_blob_len >> 8" (cast_expression "(uint)private_blob_len" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "puVar2[3] = (char)private_blob_len;" (assignment_expression "puVar2[3] = (char)private_blob_len" (subscript_expression "puVar2[3]" identifier [ number_literal ]) = (cast_expression "(char)private_blob_len" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "memcpy(puVar2 + 4,local_140,private_blob_len);" (call_expression "memcpy(puVar2 + 4,local_140,private_blob_len)" identifier (argument_list "(puVar2 + 4,local_140,private_blob_len)" ( (binary_expression "puVar2 + 4" identifier + number_literal) , identifier , identifier ))) ;) (expression_statement "bVar21 = true;" (assignment_expression "bVar21 = true" identifier = true) ;) (goto_statement "goto LAB_00055390;" goto statement_identifier ;) })) (labeled_statement "LAB_000556cb:\n                    if ((passphrase != (char *)0x0) && (private_blob_len % (int)local_124 == 0)) {\n                      c = (SHA_CTX *)&s;\n                      SHA_Init(c);\n                      SHA_Bytes((SHA_State *)c,&DAT_0007db1c,4);\n                      SHA_Bytes((SHA_State *)c,passphrase,local_14c);\n                      SHA_Final((SHA_State *)c,key);\n                      SHA_Init(c);\n                      SHA_Bytes((SHA_State *)c,&DAT_0007db21,4);\n                      SHA_Bytes((SHA_State *)c,passphrase,local_14c);\n                      SHA_Final((SHA_State *)c,key + 0x14);\n                      aes256_decrypt_pubkey(key,(uchar *)local_140,private_blob_len);\n                      goto LAB_00055778;\n                    }" statement_identifier : (if_statement "if ((passphrase != (char *)0x0) && (private_blob_len % (int)local_124 == 0)) {\n                      c = (SHA_CTX *)&s;\n                      SHA_Init(c);\n                      SHA_Bytes((SHA_State *)c,&DAT_0007db1c,4);\n                      SHA_Bytes((SHA_State *)c,passphrase,local_14c);\n                      SHA_Final((SHA_State *)c,key);\n                      SHA_Init(c);\n                      SHA_Bytes((SHA_State *)c,&DAT_0007db21,4);\n                      SHA_Bytes((SHA_State *)c,passphrase,local_14c);\n                      SHA_Final((SHA_State *)c,key + 0x14);\n                      aes256_decrypt_pubkey(key,(uchar *)local_140,private_blob_len);\n                      goto LAB_00055778;\n                    }" if (parenthesized_expression "((passphrase != (char *)0x0) && (private_blob_len % (int)local_124 == 0))" ( (binary_expression "(passphrase != (char *)0x0) && (private_blob_len % (int)local_124 == 0)" (parenthesized_expression "(passphrase != (char *)0x0)" ( (binary_expression "passphrase != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(private_blob_len % (int)local_124 == 0)" ( (binary_expression "private_blob_len % (int)local_124 == 0" (binary_expression "private_blob_len % (int)local_124" identifier % (cast_expression "(int)local_124" ( (type_descriptor "int" primitive_type) ) identifier)) == number_literal) ))) )) (compound_statement "{\n                      c = (SHA_CTX *)&s;\n                      SHA_Init(c);\n                      SHA_Bytes((SHA_State *)c,&DAT_0007db1c,4);\n                      SHA_Bytes((SHA_State *)c,passphrase,local_14c);\n                      SHA_Final((SHA_State *)c,key);\n                      SHA_Init(c);\n                      SHA_Bytes((SHA_State *)c,&DAT_0007db21,4);\n                      SHA_Bytes((SHA_State *)c,passphrase,local_14c);\n                      SHA_Final((SHA_State *)c,key + 0x14);\n                      aes256_decrypt_pubkey(key,(uchar *)local_140,private_blob_len);\n                      goto LAB_00055778;\n                    }" { (expression_statement "c = (SHA_CTX *)&s;" (assignment_expression "c = (SHA_CTX *)&s" identifier = (cast_expression "(SHA_CTX *)&s" ( (type_descriptor "SHA_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&s" & identifier))) ;) (expression_statement "SHA_Init(c);" (call_expression "SHA_Init(c)" identifier (argument_list "(c)" ( identifier ))) ;) (expression_statement "SHA_Bytes((SHA_State *)c,&DAT_0007db1c,4);" (call_expression "SHA_Bytes((SHA_State *)c,&DAT_0007db1c,4)" identifier (argument_list "((SHA_State *)c,&DAT_0007db1c,4)" ( (cast_expression "(SHA_State *)c" ( (type_descriptor "SHA_State *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (pointer_expression "&DAT_0007db1c" & identifier) , number_literal ))) ;) (expression_statement "SHA_Bytes((SHA_State *)c,passphrase,local_14c);" (call_expression "SHA_Bytes((SHA_State *)c,passphrase,local_14c)" identifier (argument_list "((SHA_State *)c,passphrase,local_14c)" ( (cast_expression "(SHA_State *)c" ( (type_descriptor "SHA_State *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , identifier ))) ;) (expression_statement "SHA_Final((SHA_State *)c,key);" (call_expression "SHA_Final((SHA_State *)c,key)" identifier (argument_list "((SHA_State *)c,key)" ( (cast_expression "(SHA_State *)c" ( (type_descriptor "SHA_State *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier ))) ;) (expression_statement "SHA_Init(c);" (call_expression "SHA_Init(c)" identifier (argument_list "(c)" ( identifier ))) ;) (expression_statement "SHA_Bytes((SHA_State *)c,&DAT_0007db21,4);" (call_expression "SHA_Bytes((SHA_State *)c,&DAT_0007db21,4)" identifier (argument_list "((SHA_State *)c,&DAT_0007db21,4)" ( (cast_expression "(SHA_State *)c" ( (type_descriptor "SHA_State *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (pointer_expression "&DAT_0007db21" & identifier) , number_literal ))) ;) (expression_statement "SHA_Bytes((SHA_State *)c,passphrase,local_14c);" (call_expression "SHA_Bytes((SHA_State *)c,passphrase,local_14c)" identifier (argument_list "((SHA_State *)c,passphrase,local_14c)" ( (cast_expression "(SHA_State *)c" ( (type_descriptor "SHA_State *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , identifier ))) ;) (expression_statement "SHA_Final((SHA_State *)c,key + 0x14);" (call_expression "SHA_Final((SHA_State *)c,key + 0x14)" identifier (argument_list "((SHA_State *)c,key + 0x14)" ( (cast_expression "(SHA_State *)c" ( (type_descriptor "SHA_State *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (binary_expression "key + 0x14" identifier + number_literal) ))) ;) (expression_statement "aes256_decrypt_pubkey(key,(uchar *)local_140,private_blob_len);" (call_expression "aes256_decrypt_pubkey(key,(uchar *)local_140,private_blob_len)" identifier (argument_list "(key,(uchar *)local_140,private_blob_len)" ( identifier , (cast_expression "(uchar *)local_140" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier ))) ;) (goto_statement "goto LAB_00055778;" goto statement_identifier ;) }))) (expression_statement "pcVar11 = "file format error";" (assignment_expression "pcVar11 = "file format error"" identifier = (string_literal ""file format error"" " string_content ")) ;) (expression_statement "ptr = (ssh2_userkey *)0x0;" (assignment_expression "ptr = (ssh2_userkey *)0x0" identifier = (cast_expression "(ssh2_userkey *)0x0" ( (type_descriptor "ssh2_userkey *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (labeled_statement "LAB_000554a5:\n                    safefree(pcVar8);" statement_identifier : (expression_statement "safefree(pcVar8);" (call_expression "safefree(pcVar8)" identifier (argument_list "(pcVar8)" ( identifier ))) ;)) (expression_statement "safefree(pbVar10);" (call_expression "safefree(pbVar10)" identifier (argument_list "(pbVar10)" ( identifier ))) ;) (expression_statement "safefree(local_144);" (call_expression "safefree(local_144)" identifier (argument_list "(local_144)" ( identifier ))) ;) }))) (if_statement "if (local_13c != (uchar *)0x0) {\n                    safefree(local_13c);\n                  }" if (parenthesized_expression "(local_13c != (uchar *)0x0)" ( (binary_expression "local_13c != (uchar *)0x0" identifier != (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    safefree(local_13c);\n                  }" { (expression_statement "safefree(local_13c);" (call_expression "safefree(local_13c)" identifier (argument_list "(local_13c)" ( identifier ))) ;) })) (if_statement "if (local_140 != (SHA_CTX *)0x0) {\n                    smemclr(local_140,private_blob_len);\n                    safefree(local_140);\n                  }" if (parenthesized_expression "(local_140 != (SHA_CTX *)0x0)" ( (binary_expression "local_140 != (SHA_CTX *)0x0" identifier != (cast_expression "(SHA_CTX *)0x0" ( (type_descriptor "SHA_CTX *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    smemclr(local_140,private_blob_len);\n                    safefree(local_140);\n                  }" { (expression_statement "smemclr(local_140,private_blob_len);" (call_expression "smemclr(local_140,private_blob_len)" identifier (argument_list "(local_140,private_blob_len)" ( identifier , identifier ))) ;) (expression_statement "safefree(local_140);" (call_expression "safefree(local_140)" identifier (argument_list "(local_140)" ( identifier ))) ;) })) (goto_statement "goto LAB_00055070;" goto statement_identifier ;) })) })) }) (else_clause "else {\n              iVar7 = 5;\n              pbVar16 = pbVar10;\n              pbVar18 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar21 = *pbVar16 < *pbVar18;\n                bVar20 = *pbVar16 == *pbVar18;\n                pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n              } while (bVar20);\n              if ((!bVar21 && !bVar20) == bVar21) {\n                local_124 = 1;\n                bVar20 = false;\n                goto LAB_000551a8;\n              }\n            }" else (compound_statement "{\n              iVar7 = 5;\n              pbVar16 = pbVar10;\n              pbVar18 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar21 = *pbVar16 < *pbVar18;\n                bVar20 = *pbVar16 == *pbVar18;\n                pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n              } while (bVar20);\n              if ((!bVar21 && !bVar20) == bVar21) {\n                local_124 = 1;\n                bVar20 = false;\n                goto LAB_000551a8;\n              }\n            }" { (expression_statement "iVar7 = 5;" (assignment_expression "iVar7 = 5" identifier = number_literal) ;) (expression_statement "pbVar16 = pbVar10;" (assignment_expression "pbVar16 = pbVar10" identifier = identifier) ;) (expression_statement "pbVar18 = &DAT_0007471c;" (assignment_expression "pbVar18 = &DAT_0007471c" identifier = (pointer_expression "&DAT_0007471c" & identifier)) ;) (do_statement "do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar21 = *pbVar16 < *pbVar18;\n                bVar20 = *pbVar16 == *pbVar18;\n                pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n              } while (bVar20);" do (compound_statement "{\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar21 = *pbVar16 < *pbVar18;\n                bVar20 = *pbVar16 == *pbVar18;\n                pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;\n                pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;\n              }" { (if_statement "if (iVar7 == 0) break;" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar7 = iVar7 + -1;" (assignment_expression "iVar7 = iVar7 + -1" identifier = (binary_expression "iVar7 + -1" identifier + number_literal)) ;) (expression_statement "bVar21 = *pbVar16 < *pbVar18;" (assignment_expression "bVar21 = *pbVar16 < *pbVar18" identifier = (binary_expression "*pbVar16 < *pbVar18" (pointer_expression "*pbVar16" * identifier) < (pointer_expression "*pbVar18" * identifier))) ;) (expression_statement "bVar20 = *pbVar16 == *pbVar18;" (assignment_expression "bVar20 = *pbVar16 == *pbVar18" identifier = (binary_expression "*pbVar16 == *pbVar18" (pointer_expression "*pbVar16" * identifier) == (pointer_expression "*pbVar18" * identifier))) ;) (expression_statement "pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1;" (assignment_expression "pbVar16 = pbVar16 + (uint)bVar23 * -2 + 1" identifier = (binary_expression "pbVar16 + (uint)bVar23 * -2 + 1" (binary_expression "pbVar16 + (uint)bVar23 * -2" identifier + (binary_expression "(uint)bVar23 * -2" (cast_expression "(uint)bVar23" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1;" (assignment_expression "pbVar18 = pbVar18 + (uint)bVar23 * -2 + 1" identifier = (binary_expression "pbVar18 + (uint)bVar23 * -2 + 1" (binary_expression "pbVar18 + (uint)bVar23 * -2" identifier + (binary_expression "(uint)bVar23 * -2" (cast_expression "(uint)bVar23" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar20)" ( identifier )) ;) (if_statement "if ((!bVar21 && !bVar20) == bVar21) {\n                local_124 = 1;\n                bVar20 = false;\n                goto LAB_000551a8;\n              }" if (parenthesized_expression "((!bVar21 && !bVar20) == bVar21)" ( (binary_expression "(!bVar21 && !bVar20) == bVar21" (parenthesized_expression "(!bVar21 && !bVar20)" ( (binary_expression "!bVar21 && !bVar20" (unary_expression "!bVar21" ! identifier) && (unary_expression "!bVar20" ! identifier)) )) == identifier) )) (compound_statement "{\n                local_124 = 1;\n                bVar20 = false;\n                goto LAB_000551a8;\n              }" { (expression_statement "local_124 = 1;" (assignment_expression "local_124 = 1" identifier = number_literal) ;) (expression_statement "bVar20 = false;" (assignment_expression "bVar20 = false" identifier = false) ;) (goto_statement "goto LAB_000551a8;" goto statement_identifier ;) })) }))) (expression_statement "ptr = (ssh2_userkey *)0x0;" (assignment_expression "ptr = (ssh2_userkey *)0x0" identifier = (cast_expression "(ssh2_userkey *)0x0" ( (type_descriptor "ssh2_userkey *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "fclose(__stream);" (call_expression "fclose(__stream)" identifier (argument_list "(__stream)" ( identifier ))) ;) (expression_statement "pcVar11 = "file format error";" (assignment_expression "pcVar11 = "file format error"" identifier = (string_literal ""file format error"" " string_content ")) ;) (expression_statement "safefree(pbVar10);" (call_expression "safefree(pbVar10)" identifier (argument_list "(pbVar10)" ( identifier ))) ;) (goto_statement "goto LAB_00055070;" goto statement_identifier ;) })) })) })) (labeled_statement "LAB_0005510e:\n      pcVar11 = "file format error";" statement_identifier : (expression_statement "pcVar11 = "file format error";" (assignment_expression "pcVar11 = "file format error"" identifier = (string_literal ""file format error"" " string_content ")) ;)) (expression_statement "ptr = (ssh2_userkey *)0x0;" (assignment_expression "ptr = (ssh2_userkey *)0x0" identifier = (cast_expression "(ssh2_userkey *)0x0" ( (type_descriptor "ssh2_userkey *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "fclose(__stream);" (call_expression "fclose(__stream)" identifier (argument_list "(__stream)" ( identifier ))) ;) }))) }))) (labeled_statement "LAB_00055070:\n  if (errorstr != (char **)0x0) {\n    *errorstr = pcVar11;\n  }" statement_identifier : (if_statement "if (errorstr != (char **)0x0) {\n    *errorstr = pcVar11;\n  }" if (parenthesized_expression "(errorstr != (char **)0x0)" ( (binary_expression "errorstr != (char **)0x0" identifier != (cast_expression "(char **)0x0" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\n    *errorstr = pcVar11;\n  }" { (expression_statement "*errorstr = pcVar11;" (assignment_expression "*errorstr = pcVar11" (pointer_expression "*errorstr" * identifier) = identifier) ;) }))) (labeled_statement "LAB_0005507a:\n  if (iVar4 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return ptr;\n  }" statement_identifier : (if_statement "if (iVar4 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return ptr;\n  }" if (parenthesized_expression "(iVar4 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar4 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return ptr;\n  }" { (return_statement "return ptr;" return identifier ;) }))) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "int * FUN_00054f40(undefined4 param_1,char *param_2,undefined4 *param_3)\n\n{\n  uint __n;\n  uint __n_00;\n  undefined1 *puVar1;\n  char cVar2;\n  byte bVar3;\n  FILE *__stream;\n  int iVar4;\n  char *pcVar5;\n  size_t sVar6;\n  int iVar7;\n  byte *pbVar8;\n  int iVar9;\n  uint *puVar10;\n  undefined4 extraout_ECX;\n  int extraout_ECX_00;\n  uint uVar11;\n  uint uVar12;\n  uint uVar13;\n  int *piVar14;\n  char *pcVar15;\n  byte *pbVar16;\n  byte *pbVar17;\n  uint __n_01;\n  int in_GS_OFFSET;\n  bool bVar18;\n  bool bVar19;\n  bool bVar20;\n  byte bVar21;\n  char *pcVar22;\n  int iVar23;\n  size_t local_14c;\n  char *local_144;\n  uint *local_140;\n  void *local_13c;\n  uint *local_134;\n  size_t local_124;\n  undefined4 local_104;\n  undefined4 local_100;\n  uint local_fc [24];\n  undefined1 local_99 [20];\n  undefined1 local_85 [20];\n  byte local_71 [40];\n  char local_49 [20];\n  undefined1 local_35 [21];\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar21 = 0;\n  uStack_14 = 0x54f49;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_14c = 0;\n  if (param_2 != (char *)0x0) {\n    local_14c = strlen(param_2);\n  }\n  iVar23 = 0;\n  __stream = (FILE *)FUN_00065d60(param_1,&DAT_0007d4f7,0);\n  if (__stream == (FILE *)0x0) {\n    pcVar15 = "can\'t open file";\n    piVar14 = (int *)0x0;\n  }\n  else {\n    iVar4 = FUN_00053dd0();\n    bVar18 = false;\n    bVar20 = iVar4 == 0;\n    if (bVar20) {\n      pcVar15 = (char *)0x0;\n      piVar14 = (int *)0x0;\n      fclose(__stream);\n    }\n    else {\n      iVar4 = 0x16;\n      pbVar8 = local_71;\n      pbVar16 = (byte *)"PuTTY-User-Key-File-2";\n      do {\n        if (iVar4 == 0) break;\n        iVar4 = iVar4 + -1;\n        bVar18 = *pbVar8 < *pbVar16;\n        bVar20 = *pbVar8 == *pbVar16;\n        pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n      } while (bVar20);\n      bVar3 = (!bVar18 && !bVar20) - bVar18;\n      bVar18 = false;\n      bVar20 = bVar3 == 0;\n      if (!bVar20) {\n        iVar4 = 0x16;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"PuTTY-User-Key-File-1";\n        do {\n          if (iVar4 == 0) break;\n          iVar4 = iVar4 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        bVar19 = false;\n        bVar18 = (!bVar18 && !bVar20) == bVar18;\n        if (!bVar18) {\n          iVar23 = 0x14;\n          pbVar8 = local_71;\n          pbVar16 = (byte *)"PuTTY-User-Key-File-";\n          do {\n            if (iVar23 == 0) break;\n            iVar23 = iVar23 + -1;\n            bVar19 = *pbVar8 < *pbVar16;\n            bVar18 = *pbVar8 == *pbVar16;\n            pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n            pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n          } while (bVar18);\n          if ((!bVar19 && !bVar18) == bVar19) {\n            pcVar15 = "PuTTY key format too new";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          else {\n            pcVar15 = "not a PuTTY SSH-2 private key";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          goto LAB_00055070;\n        }\n        FUN_00065000();\n        bVar3 = 1;\n      }\n      pcVar5 = (char *)FUN_00053e50();\n      if (pcVar5 == (char *)0x0) goto LAB_0005510e;\n      sVar6 = strlen(pcVar5);\n      pcVar22 = pcVar5;\n      iVar4 = FUN_00054a80(sVar6,pcVar5);\n      if (iVar4 == 0) {\n        pcVar15 = "file format error";\n        FUN_0001b250(pcVar5);\n        piVar14 = (int *)0x0;\n        fclose(__stream);\n        goto LAB_00055070;\n      }\n      FUN_0001b250(pcVar5);\n      iVar7 = FUN_00053dd0();\n      bVar18 = false;\n      bVar20 = iVar7 == 0;\n      if (!bVar20) {\n        iVar7 = 0xb;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"Encryption";\n        do {\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        if ((!bVar18 && !bVar20) == bVar18) {\n          pbVar8 = (byte *)FUN_00053e50();\n          bVar18 = false;\n          bVar20 = pbVar8 == (byte *)0x0;\n          if (!bVar20) {\n            iVar7 = 0xb;\n            pbVar16 = pbVar8;\n            pbVar17 = (byte *)"aes256-cbc";\n            do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar18 = *pbVar16 < *pbVar17;\n              bVar20 = *pbVar16 == *pbVar17;\n              pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n              pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n            } while (bVar20);\n            bVar19 = false;\n            bVar18 = (!bVar18 && !bVar20) == bVar18;\n            if (bVar18) {\n              local_124 = 0x10;\n              bVar18 = true;\nLAB_000551a8:\n              iVar7 = FUN_00053dd0();\n              bVar20 = false;\n              bVar19 = iVar7 == 0;\n              if (!bVar19) {\n                iVar7 = 8;\n                pbVar16 = local_71;\n                pbVar17 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                } while (bVar19);\n                if ((!bVar20 && !bVar19) == bVar20) {\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar8;\n              pbVar17 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar19 = *pbVar16 < *pbVar17;\n                bVar18 = *pbVar16 == *pbVar17;\n                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n              } while (bVar18);\n              if ((!bVar19 && !bVar18) == bVar19) {\n                local_124 = 1;\n                bVar18 = false;\n                goto LAB_000551a8;\n              }\n            }\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n            pcVar15 = "file format error";\n            FUN_0001b250(pbVar8);\n            goto LAB_00055070;\n          }\n        }\n      }\nLAB_0005510e:\n      pcVar15 = "file format error";\n      piVar14 = (int *)0x0;\n      fclose(__stream);\n    }\n  }\nLAB_00055070:\n  if (param_3 != (undefined4 *)0x0) {\n    *param_3 = pcVar15;\n  }\nLAB_0005507a:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return piVar14;\n  }\n                    \n  FUN_0006f2a0();\n}\n\n" (function_definition "int * FUN_00054f40(undefined4 param_1,char *param_2,undefined4 *param_3)\n\n{\n  uint __n;\n  uint __n_00;\n  undefined1 *puVar1;\n  char cVar2;\n  byte bVar3;\n  FILE *__stream;\n  int iVar4;\n  char *pcVar5;\n  size_t sVar6;\n  int iVar7;\n  byte *pbVar8;\n  int iVar9;\n  uint *puVar10;\n  undefined4 extraout_ECX;\n  int extraout_ECX_00;\n  uint uVar11;\n  uint uVar12;\n  uint uVar13;\n  int *piVar14;\n  char *pcVar15;\n  byte *pbVar16;\n  byte *pbVar17;\n  uint __n_01;\n  int in_GS_OFFSET;\n  bool bVar18;\n  bool bVar19;\n  bool bVar20;\n  byte bVar21;\n  char *pcVar22;\n  int iVar23;\n  size_t local_14c;\n  char *local_144;\n  uint *local_140;\n  void *local_13c;\n  uint *local_134;\n  size_t local_124;\n  undefined4 local_104;\n  undefined4 local_100;\n  uint local_fc [24];\n  undefined1 local_99 [20];\n  undefined1 local_85 [20];\n  byte local_71 [40];\n  char local_49 [20];\n  undefined1 local_35 [21];\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar21 = 0;\n  uStack_14 = 0x54f49;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_14c = 0;\n  if (param_2 != (char *)0x0) {\n    local_14c = strlen(param_2);\n  }\n  iVar23 = 0;\n  __stream = (FILE *)FUN_00065d60(param_1,&DAT_0007d4f7,0);\n  if (__stream == (FILE *)0x0) {\n    pcVar15 = "can\'t open file";\n    piVar14 = (int *)0x0;\n  }\n  else {\n    iVar4 = FUN_00053dd0();\n    bVar18 = false;\n    bVar20 = iVar4 == 0;\n    if (bVar20) {\n      pcVar15 = (char *)0x0;\n      piVar14 = (int *)0x0;\n      fclose(__stream);\n    }\n    else {\n      iVar4 = 0x16;\n      pbVar8 = local_71;\n      pbVar16 = (byte *)"PuTTY-User-Key-File-2";\n      do {\n        if (iVar4 == 0) break;\n        iVar4 = iVar4 + -1;\n        bVar18 = *pbVar8 < *pbVar16;\n        bVar20 = *pbVar8 == *pbVar16;\n        pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n      } while (bVar20);\n      bVar3 = (!bVar18 && !bVar20) - bVar18;\n      bVar18 = false;\n      bVar20 = bVar3 == 0;\n      if (!bVar20) {\n        iVar4 = 0x16;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"PuTTY-User-Key-File-1";\n        do {\n          if (iVar4 == 0) break;\n          iVar4 = iVar4 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        bVar19 = false;\n        bVar18 = (!bVar18 && !bVar20) == bVar18;\n        if (!bVar18) {\n          iVar23 = 0x14;\n          pbVar8 = local_71;\n          pbVar16 = (byte *)"PuTTY-User-Key-File-";\n          do {\n            if (iVar23 == 0) break;\n            iVar23 = iVar23 + -1;\n            bVar19 = *pbVar8 < *pbVar16;\n            bVar18 = *pbVar8 == *pbVar16;\n            pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n            pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n          } while (bVar18);\n          if ((!bVar19 && !bVar18) == bVar19) {\n            pcVar15 = "PuTTY key format too new";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          else {\n            pcVar15 = "not a PuTTY SSH-2 private key";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          goto LAB_00055070;\n        }\n        FUN_00065000();\n        bVar3 = 1;\n      }\n      pcVar5 = (char *)FUN_00053e50();\n      if (pcVar5 == (char *)0x0) goto LAB_0005510e;\n      sVar6 = strlen(pcVar5);\n      pcVar22 = pcVar5;\n      iVar4 = FUN_00054a80(sVar6,pcVar5);\n      if (iVar4 == 0) {\n        pcVar15 = "file format error";\n        FUN_0001b250(pcVar5);\n        piVar14 = (int *)0x0;\n        fclose(__stream);\n        goto LAB_00055070;\n      }\n      FUN_0001b250(pcVar5);\n      iVar7 = FUN_00053dd0();\n      bVar18 = false;\n      bVar20 = iVar7 == 0;\n      if (!bVar20) {\n        iVar7 = 0xb;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"Encryption";\n        do {\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        if ((!bVar18 && !bVar20) == bVar18) {\n          pbVar8 = (byte *)FUN_00053e50();\n          bVar18 = false;\n          bVar20 = pbVar8 == (byte *)0x0;\n          if (!bVar20) {\n            iVar7 = 0xb;\n            pbVar16 = pbVar8;\n            pbVar17 = (byte *)"aes256-cbc";\n            do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar18 = *pbVar16 < *pbVar17;\n              bVar20 = *pbVar16 == *pbVar17;\n              pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n              pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n            } while (bVar20);\n            bVar19 = false;\n            bVar18 = (!bVar18 && !bVar20) == bVar18;\n            if (bVar18) {\n              local_124 = 0x10;\n              bVar18 = true;\nLAB_000551a8:\n              iVar7 = FUN_00053dd0();\n              bVar20 = false;\n              bVar19 = iVar7 == 0;\n              if (!bVar19) {\n                iVar7 = 8;\n                pbVar16 = local_71;\n                pbVar17 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                } while (bVar19);\n                if ((!bVar20 && !bVar19) == bVar20) {\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar8;\n              pbVar17 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar19 = *pbVar16 < *pbVar17;\n                bVar18 = *pbVar16 == *pbVar17;\n                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n              } while (bVar18);\n              if ((!bVar19 && !bVar18) == bVar19) {\n                local_124 = 1;\n                bVar18 = false;\n                goto LAB_000551a8;\n              }\n            }\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n            pcVar15 = "file format error";\n            FUN_0001b250(pbVar8);\n            goto LAB_00055070;\n          }\n        }\n      }\nLAB_0005510e:\n      pcVar15 = "file format error";\n      piVar14 = (int *)0x0;\n      fclose(__stream);\n    }\n  }\nLAB_00055070:\n  if (param_3 != (undefined4 *)0x0) {\n    *param_3 = pcVar15;\n  }\nLAB_0005507a:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return piVar14;\n  }\n                    \n  FUN_0006f2a0();\n}" primitive_type (pointer_declarator "* FUN_00054f40(undefined4 param_1,char *param_2,undefined4 *param_3)" * (function_declarator "FUN_00054f40(undefined4 param_1,char *param_2,undefined4 *param_3)" identifier (parameter_list "(undefined4 param_1,char *param_2,undefined4 *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "char *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) )))) (compound_statement "{\n  uint __n;\n  uint __n_00;\n  undefined1 *puVar1;\n  char cVar2;\n  byte bVar3;\n  FILE *__stream;\n  int iVar4;\n  char *pcVar5;\n  size_t sVar6;\n  int iVar7;\n  byte *pbVar8;\n  int iVar9;\n  uint *puVar10;\n  undefined4 extraout_ECX;\n  int extraout_ECX_00;\n  uint uVar11;\n  uint uVar12;\n  uint uVar13;\n  int *piVar14;\n  char *pcVar15;\n  byte *pbVar16;\n  byte *pbVar17;\n  uint __n_01;\n  int in_GS_OFFSET;\n  bool bVar18;\n  bool bVar19;\n  bool bVar20;\n  byte bVar21;\n  char *pcVar22;\n  int iVar23;\n  size_t local_14c;\n  char *local_144;\n  uint *local_140;\n  void *local_13c;\n  uint *local_134;\n  size_t local_124;\n  undefined4 local_104;\n  undefined4 local_100;\n  uint local_fc [24];\n  undefined1 local_99 [20];\n  undefined1 local_85 [20];\n  byte local_71 [40];\n  char local_49 [20];\n  undefined1 local_35 [21];\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar21 = 0;\n  uStack_14 = 0x54f49;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_14c = 0;\n  if (param_2 != (char *)0x0) {\n    local_14c = strlen(param_2);\n  }\n  iVar23 = 0;\n  __stream = (FILE *)FUN_00065d60(param_1,&DAT_0007d4f7,0);\n  if (__stream == (FILE *)0x0) {\n    pcVar15 = "can\'t open file";\n    piVar14 = (int *)0x0;\n  }\n  else {\n    iVar4 = FUN_00053dd0();\n    bVar18 = false;\n    bVar20 = iVar4 == 0;\n    if (bVar20) {\n      pcVar15 = (char *)0x0;\n      piVar14 = (int *)0x0;\n      fclose(__stream);\n    }\n    else {\n      iVar4 = 0x16;\n      pbVar8 = local_71;\n      pbVar16 = (byte *)"PuTTY-User-Key-File-2";\n      do {\n        if (iVar4 == 0) break;\n        iVar4 = iVar4 + -1;\n        bVar18 = *pbVar8 < *pbVar16;\n        bVar20 = *pbVar8 == *pbVar16;\n        pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n      } while (bVar20);\n      bVar3 = (!bVar18 && !bVar20) - bVar18;\n      bVar18 = false;\n      bVar20 = bVar3 == 0;\n      if (!bVar20) {\n        iVar4 = 0x16;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"PuTTY-User-Key-File-1";\n        do {\n          if (iVar4 == 0) break;\n          iVar4 = iVar4 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        bVar19 = false;\n        bVar18 = (!bVar18 && !bVar20) == bVar18;\n        if (!bVar18) {\n          iVar23 = 0x14;\n          pbVar8 = local_71;\n          pbVar16 = (byte *)"PuTTY-User-Key-File-";\n          do {\n            if (iVar23 == 0) break;\n            iVar23 = iVar23 + -1;\n            bVar19 = *pbVar8 < *pbVar16;\n            bVar18 = *pbVar8 == *pbVar16;\n            pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n            pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n          } while (bVar18);\n          if ((!bVar19 && !bVar18) == bVar19) {\n            pcVar15 = "PuTTY key format too new";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          else {\n            pcVar15 = "not a PuTTY SSH-2 private key";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          goto LAB_00055070;\n        }\n        FUN_00065000();\n        bVar3 = 1;\n      }\n      pcVar5 = (char *)FUN_00053e50();\n      if (pcVar5 == (char *)0x0) goto LAB_0005510e;\n      sVar6 = strlen(pcVar5);\n      pcVar22 = pcVar5;\n      iVar4 = FUN_00054a80(sVar6,pcVar5);\n      if (iVar4 == 0) {\n        pcVar15 = "file format error";\n        FUN_0001b250(pcVar5);\n        piVar14 = (int *)0x0;\n        fclose(__stream);\n        goto LAB_00055070;\n      }\n      FUN_0001b250(pcVar5);\n      iVar7 = FUN_00053dd0();\n      bVar18 = false;\n      bVar20 = iVar7 == 0;\n      if (!bVar20) {\n        iVar7 = 0xb;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"Encryption";\n        do {\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        if ((!bVar18 && !bVar20) == bVar18) {\n          pbVar8 = (byte *)FUN_00053e50();\n          bVar18 = false;\n          bVar20 = pbVar8 == (byte *)0x0;\n          if (!bVar20) {\n            iVar7 = 0xb;\n            pbVar16 = pbVar8;\n            pbVar17 = (byte *)"aes256-cbc";\n            do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar18 = *pbVar16 < *pbVar17;\n              bVar20 = *pbVar16 == *pbVar17;\n              pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n              pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n            } while (bVar20);\n            bVar19 = false;\n            bVar18 = (!bVar18 && !bVar20) == bVar18;\n            if (bVar18) {\n              local_124 = 0x10;\n              bVar18 = true;\nLAB_000551a8:\n              iVar7 = FUN_00053dd0();\n              bVar20 = false;\n              bVar19 = iVar7 == 0;\n              if (!bVar19) {\n                iVar7 = 8;\n                pbVar16 = local_71;\n                pbVar17 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                } while (bVar19);\n                if ((!bVar20 && !bVar19) == bVar20) {\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar8;\n              pbVar17 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar19 = *pbVar16 < *pbVar17;\n                bVar18 = *pbVar16 == *pbVar17;\n                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n              } while (bVar18);\n              if ((!bVar19 && !bVar18) == bVar19) {\n                local_124 = 1;\n                bVar18 = false;\n                goto LAB_000551a8;\n              }\n            }\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n            pcVar15 = "file format error";\n            FUN_0001b250(pbVar8);\n            goto LAB_00055070;\n          }\n        }\n      }\nLAB_0005510e:\n      pcVar15 = "file format error";\n      piVar14 = (int *)0x0;\n      fclose(__stream);\n    }\n  }\nLAB_00055070:\n  if (param_3 != (undefined4 *)0x0) {\n    *param_3 = pcVar15;\n  }\nLAB_0005507a:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return piVar14;\n  }\n                    \n  FUN_0006f2a0();\n}" { (declaration "uint __n;" type_identifier identifier ;) (declaration "uint __n_00;" type_identifier identifier ;) (declaration "undefined1 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "char cVar2;" primitive_type identifier ;) (declaration "byte bVar3;" type_identifier identifier ;) (declaration "FILE *__stream;" type_identifier (pointer_declarator "*__stream" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "size_t sVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "byte *pbVar8;" type_identifier (pointer_declarator "*pbVar8" * identifier) ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "uint *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "undefined4 extraout_ECX;" type_identifier identifier ;) (declaration "int extraout_ECX_00;" primitive_type identifier ;) (declaration "uint uVar11;" type_identifier identifier ;) (declaration "uint uVar12;" type_identifier identifier ;) (declaration "uint uVar13;" type_identifier identifier ;) (declaration "int *piVar14;" primitive_type (pointer_declarator "*piVar14" * identifier) ;) (declaration "char *pcVar15;" primitive_type (pointer_declarator "*pcVar15" * identifier) ;) (declaration "byte *pbVar16;" type_identifier (pointer_declarator "*pbVar16" * identifier) ;) (declaration "byte *pbVar17;" type_identifier (pointer_declarator "*pbVar17" * identifier) ;) (declaration "uint __n_01;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "bool bVar18;" primitive_type identifier ;) (declaration "bool bVar19;" primitive_type identifier ;) (declaration "bool bVar20;" primitive_type identifier ;) (declaration "byte bVar21;" type_identifier identifier ;) (declaration "char *pcVar22;" primitive_type (pointer_declarator "*pcVar22" * identifier) ;) (declaration "int iVar23;" primitive_type identifier ;) (declaration "size_t local_14c;" primitive_type identifier ;) (declaration "char *local_144;" primitive_type (pointer_declarator "*local_144" * identifier) ;) (declaration "uint *local_140;" type_identifier (pointer_declarator "*local_140" * identifier) ;) (declaration "void *local_13c;" primitive_type (pointer_declarator "*local_13c" * identifier) ;) (declaration "uint *local_134;" type_identifier (pointer_declarator "*local_134" * identifier) ;) (declaration "size_t local_124;" primitive_type identifier ;) (declaration "undefined4 local_104;" type_identifier identifier ;) (declaration "undefined4 local_100;" type_identifier identifier ;) (declaration "uint local_fc [24];" type_identifier (array_declarator "local_fc [24]" identifier [ number_literal ]) ;) (declaration "undefined1 local_99 [20];" type_identifier (array_declarator "local_99 [20]" identifier [ number_literal ]) ;) (declaration "undefined1 local_85 [20];" type_identifier (array_declarator "local_85 [20]" identifier [ number_literal ]) ;) (declaration "byte local_71 [40];" type_identifier (array_declarator "local_71 [40]" identifier [ number_literal ]) ;) (declaration "char local_49 [20];" primitive_type (array_declarator "local_49 [20]" identifier [ number_literal ]) ;) (declaration "undefined1 local_35 [21];" type_identifier (array_declarator "local_35 [21]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "bVar21 = 0;" (assignment_expression "bVar21 = 0" identifier = number_literal) ;) (expression_statement "uStack_14 = 0x54f49;" (assignment_expression "uStack_14 = 0x54f49" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "local_14c = 0;" (assignment_expression "local_14c = 0" identifier = number_literal) ;) (if_statement "if (param_2 != (char *)0x0) {\n    local_14c = strlen(param_2);\n  }" if (parenthesized_expression "(param_2 != (char *)0x0)" ( (binary_expression "param_2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    local_14c = strlen(param_2);\n  }" { (expression_statement "local_14c = strlen(param_2);" (assignment_expression "local_14c = strlen(param_2)" identifier = (call_expression "strlen(param_2)" identifier (argument_list "(param_2)" ( identifier )))) ;) })) (expression_statement "iVar23 = 0;" (assignment_expression "iVar23 = 0" identifier = number_literal) ;) (expression_statement "__stream = (FILE *)FUN_00065d60(param_1,&DAT_0007d4f7,0);" (assignment_expression "__stream = (FILE *)FUN_00065d60(param_1,&DAT_0007d4f7,0)" identifier = (cast_expression "(FILE *)FUN_00065d60(param_1,&DAT_0007d4f7,0)" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00065d60(param_1,&DAT_0007d4f7,0)" identifier (argument_list "(param_1,&DAT_0007d4f7,0)" ( identifier , (pointer_expression "&DAT_0007d4f7" & identifier) , number_literal ))))) ;) (if_statement "if (__stream == (FILE *)0x0) {\n    pcVar15 = "can\'t open file";\n    piVar14 = (int *)0x0;\n  }\n  else {\n    iVar4 = FUN_00053dd0();\n    bVar18 = false;\n    bVar20 = iVar4 == 0;\n    if (bVar20) {\n      pcVar15 = (char *)0x0;\n      piVar14 = (int *)0x0;\n      fclose(__stream);\n    }\n    else {\n      iVar4 = 0x16;\n      pbVar8 = local_71;\n      pbVar16 = (byte *)"PuTTY-User-Key-File-2";\n      do {\n        if (iVar4 == 0) break;\n        iVar4 = iVar4 + -1;\n        bVar18 = *pbVar8 < *pbVar16;\n        bVar20 = *pbVar8 == *pbVar16;\n        pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n      } while (bVar20);\n      bVar3 = (!bVar18 && !bVar20) - bVar18;\n      bVar18 = false;\n      bVar20 = bVar3 == 0;\n      if (!bVar20) {\n        iVar4 = 0x16;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"PuTTY-User-Key-File-1";\n        do {\n          if (iVar4 == 0) break;\n          iVar4 = iVar4 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        bVar19 = false;\n        bVar18 = (!bVar18 && !bVar20) == bVar18;\n        if (!bVar18) {\n          iVar23 = 0x14;\n          pbVar8 = local_71;\n          pbVar16 = (byte *)"PuTTY-User-Key-File-";\n          do {\n            if (iVar23 == 0) break;\n            iVar23 = iVar23 + -1;\n            bVar19 = *pbVar8 < *pbVar16;\n            bVar18 = *pbVar8 == *pbVar16;\n            pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n            pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n          } while (bVar18);\n          if ((!bVar19 && !bVar18) == bVar19) {\n            pcVar15 = "PuTTY key format too new";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          else {\n            pcVar15 = "not a PuTTY SSH-2 private key";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          goto LAB_00055070;\n        }\n        FUN_00065000();\n        bVar3 = 1;\n      }\n      pcVar5 = (char *)FUN_00053e50();\n      if (pcVar5 == (char *)0x0) goto LAB_0005510e;\n      sVar6 = strlen(pcVar5);\n      pcVar22 = pcVar5;\n      iVar4 = FUN_00054a80(sVar6,pcVar5);\n      if (iVar4 == 0) {\n        pcVar15 = "file format error";\n        FUN_0001b250(pcVar5);\n        piVar14 = (int *)0x0;\n        fclose(__stream);\n        goto LAB_00055070;\n      }\n      FUN_0001b250(pcVar5);\n      iVar7 = FUN_00053dd0();\n      bVar18 = false;\n      bVar20 = iVar7 == 0;\n      if (!bVar20) {\n        iVar7 = 0xb;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"Encryption";\n        do {\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        if ((!bVar18 && !bVar20) == bVar18) {\n          pbVar8 = (byte *)FUN_00053e50();\n          bVar18 = false;\n          bVar20 = pbVar8 == (byte *)0x0;\n          if (!bVar20) {\n            iVar7 = 0xb;\n            pbVar16 = pbVar8;\n            pbVar17 = (byte *)"aes256-cbc";\n            do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar18 = *pbVar16 < *pbVar17;\n              bVar20 = *pbVar16 == *pbVar17;\n              pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n              pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n            } while (bVar20);\n            bVar19 = false;\n            bVar18 = (!bVar18 && !bVar20) == bVar18;\n            if (bVar18) {\n              local_124 = 0x10;\n              bVar18 = true;\nLAB_000551a8:\n              iVar7 = FUN_00053dd0();\n              bVar20 = false;\n              bVar19 = iVar7 == 0;\n              if (!bVar19) {\n                iVar7 = 8;\n                pbVar16 = local_71;\n                pbVar17 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                } while (bVar19);\n                if ((!bVar20 && !bVar19) == bVar20) {\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar8;\n              pbVar17 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar19 = *pbVar16 < *pbVar17;\n                bVar18 = *pbVar16 == *pbVar17;\n                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n              } while (bVar18);\n              if ((!bVar19 && !bVar18) == bVar19) {\n                local_124 = 1;\n                bVar18 = false;\n                goto LAB_000551a8;\n              }\n            }\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n            pcVar15 = "file format error";\n            FUN_0001b250(pbVar8);\n            goto LAB_00055070;\n          }\n        }\n      }\nLAB_0005510e:\n      pcVar15 = "file format error";\n      piVar14 = (int *)0x0;\n      fclose(__stream);\n    }\n  }" if (parenthesized_expression "(__stream == (FILE *)0x0)" ( (binary_expression "__stream == (FILE *)0x0" identifier == (cast_expression "(FILE *)0x0" ( (type_descriptor "FILE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar15 = "can\'t open file";\n    piVar14 = (int *)0x0;\n  }" { (expression_statement "pcVar15 = "can\'t open file";" (assignment_expression "pcVar15 = "can\'t open file"" identifier = (string_literal ""can\'t open file"" " string_content escape_sequence string_content ")) ;) (expression_statement "piVar14 = (int *)0x0;" (assignment_expression "piVar14 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    iVar4 = FUN_00053dd0();\n    bVar18 = false;\n    bVar20 = iVar4 == 0;\n    if (bVar20) {\n      pcVar15 = (char *)0x0;\n      piVar14 = (int *)0x0;\n      fclose(__stream);\n    }\n    else {\n      iVar4 = 0x16;\n      pbVar8 = local_71;\n      pbVar16 = (byte *)"PuTTY-User-Key-File-2";\n      do {\n        if (iVar4 == 0) break;\n        iVar4 = iVar4 + -1;\n        bVar18 = *pbVar8 < *pbVar16;\n        bVar20 = *pbVar8 == *pbVar16;\n        pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n      } while (bVar20);\n      bVar3 = (!bVar18 && !bVar20) - bVar18;\n      bVar18 = false;\n      bVar20 = bVar3 == 0;\n      if (!bVar20) {\n        iVar4 = 0x16;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"PuTTY-User-Key-File-1";\n        do {\n          if (iVar4 == 0) break;\n          iVar4 = iVar4 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        bVar19 = false;\n        bVar18 = (!bVar18 && !bVar20) == bVar18;\n        if (!bVar18) {\n          iVar23 = 0x14;\n          pbVar8 = local_71;\n          pbVar16 = (byte *)"PuTTY-User-Key-File-";\n          do {\n            if (iVar23 == 0) break;\n            iVar23 = iVar23 + -1;\n            bVar19 = *pbVar8 < *pbVar16;\n            bVar18 = *pbVar8 == *pbVar16;\n            pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n            pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n          } while (bVar18);\n          if ((!bVar19 && !bVar18) == bVar19) {\n            pcVar15 = "PuTTY key format too new";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          else {\n            pcVar15 = "not a PuTTY SSH-2 private key";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          goto LAB_00055070;\n        }\n        FUN_00065000();\n        bVar3 = 1;\n      }\n      pcVar5 = (char *)FUN_00053e50();\n      if (pcVar5 == (char *)0x0) goto LAB_0005510e;\n      sVar6 = strlen(pcVar5);\n      pcVar22 = pcVar5;\n      iVar4 = FUN_00054a80(sVar6,pcVar5);\n      if (iVar4 == 0) {\n        pcVar15 = "file format error";\n        FUN_0001b250(pcVar5);\n        piVar14 = (int *)0x0;\n        fclose(__stream);\n        goto LAB_00055070;\n      }\n      FUN_0001b250(pcVar5);\n      iVar7 = FUN_00053dd0();\n      bVar18 = false;\n      bVar20 = iVar7 == 0;\n      if (!bVar20) {\n        iVar7 = 0xb;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"Encryption";\n        do {\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        if ((!bVar18 && !bVar20) == bVar18) {\n          pbVar8 = (byte *)FUN_00053e50();\n          bVar18 = false;\n          bVar20 = pbVar8 == (byte *)0x0;\n          if (!bVar20) {\n            iVar7 = 0xb;\n            pbVar16 = pbVar8;\n            pbVar17 = (byte *)"aes256-cbc";\n            do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar18 = *pbVar16 < *pbVar17;\n              bVar20 = *pbVar16 == *pbVar17;\n              pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n              pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n            } while (bVar20);\n            bVar19 = false;\n            bVar18 = (!bVar18 && !bVar20) == bVar18;\n            if (bVar18) {\n              local_124 = 0x10;\n              bVar18 = true;\nLAB_000551a8:\n              iVar7 = FUN_00053dd0();\n              bVar20 = false;\n              bVar19 = iVar7 == 0;\n              if (!bVar19) {\n                iVar7 = 8;\n                pbVar16 = local_71;\n                pbVar17 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                } while (bVar19);\n                if ((!bVar20 && !bVar19) == bVar20) {\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar8;\n              pbVar17 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar19 = *pbVar16 < *pbVar17;\n                bVar18 = *pbVar16 == *pbVar17;\n                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n              } while (bVar18);\n              if ((!bVar19 && !bVar18) == bVar19) {\n                local_124 = 1;\n                bVar18 = false;\n                goto LAB_000551a8;\n              }\n            }\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n            pcVar15 = "file format error";\n            FUN_0001b250(pbVar8);\n            goto LAB_00055070;\n          }\n        }\n      }\nLAB_0005510e:\n      pcVar15 = "file format error";\n      piVar14 = (int *)0x0;\n      fclose(__stream);\n    }\n  }" else (compound_statement "{\n    iVar4 = FUN_00053dd0();\n    bVar18 = false;\n    bVar20 = iVar4 == 0;\n    if (bVar20) {\n      pcVar15 = (char *)0x0;\n      piVar14 = (int *)0x0;\n      fclose(__stream);\n    }\n    else {\n      iVar4 = 0x16;\n      pbVar8 = local_71;\n      pbVar16 = (byte *)"PuTTY-User-Key-File-2";\n      do {\n        if (iVar4 == 0) break;\n        iVar4 = iVar4 + -1;\n        bVar18 = *pbVar8 < *pbVar16;\n        bVar20 = *pbVar8 == *pbVar16;\n        pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n      } while (bVar20);\n      bVar3 = (!bVar18 && !bVar20) - bVar18;\n      bVar18 = false;\n      bVar20 = bVar3 == 0;\n      if (!bVar20) {\n        iVar4 = 0x16;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"PuTTY-User-Key-File-1";\n        do {\n          if (iVar4 == 0) break;\n          iVar4 = iVar4 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        bVar19 = false;\n        bVar18 = (!bVar18 && !bVar20) == bVar18;\n        if (!bVar18) {\n          iVar23 = 0x14;\n          pbVar8 = local_71;\n          pbVar16 = (byte *)"PuTTY-User-Key-File-";\n          do {\n            if (iVar23 == 0) break;\n            iVar23 = iVar23 + -1;\n            bVar19 = *pbVar8 < *pbVar16;\n            bVar18 = *pbVar8 == *pbVar16;\n            pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n            pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n          } while (bVar18);\n          if ((!bVar19 && !bVar18) == bVar19) {\n            pcVar15 = "PuTTY key format too new";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          else {\n            pcVar15 = "not a PuTTY SSH-2 private key";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          goto LAB_00055070;\n        }\n        FUN_00065000();\n        bVar3 = 1;\n      }\n      pcVar5 = (char *)FUN_00053e50();\n      if (pcVar5 == (char *)0x0) goto LAB_0005510e;\n      sVar6 = strlen(pcVar5);\n      pcVar22 = pcVar5;\n      iVar4 = FUN_00054a80(sVar6,pcVar5);\n      if (iVar4 == 0) {\n        pcVar15 = "file format error";\n        FUN_0001b250(pcVar5);\n        piVar14 = (int *)0x0;\n        fclose(__stream);\n        goto LAB_00055070;\n      }\n      FUN_0001b250(pcVar5);\n      iVar7 = FUN_00053dd0();\n      bVar18 = false;\n      bVar20 = iVar7 == 0;\n      if (!bVar20) {\n        iVar7 = 0xb;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"Encryption";\n        do {\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        if ((!bVar18 && !bVar20) == bVar18) {\n          pbVar8 = (byte *)FUN_00053e50();\n          bVar18 = false;\n          bVar20 = pbVar8 == (byte *)0x0;\n          if (!bVar20) {\n            iVar7 = 0xb;\n            pbVar16 = pbVar8;\n            pbVar17 = (byte *)"aes256-cbc";\n            do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar18 = *pbVar16 < *pbVar17;\n              bVar20 = *pbVar16 == *pbVar17;\n              pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n              pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n            } while (bVar20);\n            bVar19 = false;\n            bVar18 = (!bVar18 && !bVar20) == bVar18;\n            if (bVar18) {\n              local_124 = 0x10;\n              bVar18 = true;\nLAB_000551a8:\n              iVar7 = FUN_00053dd0();\n              bVar20 = false;\n              bVar19 = iVar7 == 0;\n              if (!bVar19) {\n                iVar7 = 8;\n                pbVar16 = local_71;\n                pbVar17 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                } while (bVar19);\n                if ((!bVar20 && !bVar19) == bVar20) {\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar8;\n              pbVar17 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar19 = *pbVar16 < *pbVar17;\n                bVar18 = *pbVar16 == *pbVar17;\n                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n              } while (bVar18);\n              if ((!bVar19 && !bVar18) == bVar19) {\n                local_124 = 1;\n                bVar18 = false;\n                goto LAB_000551a8;\n              }\n            }\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n            pcVar15 = "file format error";\n            FUN_0001b250(pbVar8);\n            goto LAB_00055070;\n          }\n        }\n      }\nLAB_0005510e:\n      pcVar15 = "file format error";\n      piVar14 = (int *)0x0;\n      fclose(__stream);\n    }\n  }" { (expression_statement "iVar4 = FUN_00053dd0();" (assignment_expression "iVar4 = FUN_00053dd0()" identifier = (call_expression "FUN_00053dd0()" identifier (argument_list "()" ( )))) ;) (expression_statement "bVar18 = false;" (assignment_expression "bVar18 = false" identifier = false) ;) (expression_statement "bVar20 = iVar4 == 0;" (assignment_expression "bVar20 = iVar4 == 0" identifier = (binary_expression "iVar4 == 0" identifier == number_literal)) ;) (if_statement "if (bVar20) {\n      pcVar15 = (char *)0x0;\n      piVar14 = (int *)0x0;\n      fclose(__stream);\n    }\n    else {\n      iVar4 = 0x16;\n      pbVar8 = local_71;\n      pbVar16 = (byte *)"PuTTY-User-Key-File-2";\n      do {\n        if (iVar4 == 0) break;\n        iVar4 = iVar4 + -1;\n        bVar18 = *pbVar8 < *pbVar16;\n        bVar20 = *pbVar8 == *pbVar16;\n        pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n      } while (bVar20);\n      bVar3 = (!bVar18 && !bVar20) - bVar18;\n      bVar18 = false;\n      bVar20 = bVar3 == 0;\n      if (!bVar20) {\n        iVar4 = 0x16;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"PuTTY-User-Key-File-1";\n        do {\n          if (iVar4 == 0) break;\n          iVar4 = iVar4 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        bVar19 = false;\n        bVar18 = (!bVar18 && !bVar20) == bVar18;\n        if (!bVar18) {\n          iVar23 = 0x14;\n          pbVar8 = local_71;\n          pbVar16 = (byte *)"PuTTY-User-Key-File-";\n          do {\n            if (iVar23 == 0) break;\n            iVar23 = iVar23 + -1;\n            bVar19 = *pbVar8 < *pbVar16;\n            bVar18 = *pbVar8 == *pbVar16;\n            pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n            pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n          } while (bVar18);\n          if ((!bVar19 && !bVar18) == bVar19) {\n            pcVar15 = "PuTTY key format too new";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          else {\n            pcVar15 = "not a PuTTY SSH-2 private key";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          goto LAB_00055070;\n        }\n        FUN_00065000();\n        bVar3 = 1;\n      }\n      pcVar5 = (char *)FUN_00053e50();\n      if (pcVar5 == (char *)0x0) goto LAB_0005510e;\n      sVar6 = strlen(pcVar5);\n      pcVar22 = pcVar5;\n      iVar4 = FUN_00054a80(sVar6,pcVar5);\n      if (iVar4 == 0) {\n        pcVar15 = "file format error";\n        FUN_0001b250(pcVar5);\n        piVar14 = (int *)0x0;\n        fclose(__stream);\n        goto LAB_00055070;\n      }\n      FUN_0001b250(pcVar5);\n      iVar7 = FUN_00053dd0();\n      bVar18 = false;\n      bVar20 = iVar7 == 0;\n      if (!bVar20) {\n        iVar7 = 0xb;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"Encryption";\n        do {\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        if ((!bVar18 && !bVar20) == bVar18) {\n          pbVar8 = (byte *)FUN_00053e50();\n          bVar18 = false;\n          bVar20 = pbVar8 == (byte *)0x0;\n          if (!bVar20) {\n            iVar7 = 0xb;\n            pbVar16 = pbVar8;\n            pbVar17 = (byte *)"aes256-cbc";\n            do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar18 = *pbVar16 < *pbVar17;\n              bVar20 = *pbVar16 == *pbVar17;\n              pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n              pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n            } while (bVar20);\n            bVar19 = false;\n            bVar18 = (!bVar18 && !bVar20) == bVar18;\n            if (bVar18) {\n              local_124 = 0x10;\n              bVar18 = true;\nLAB_000551a8:\n              iVar7 = FUN_00053dd0();\n              bVar20 = false;\n              bVar19 = iVar7 == 0;\n              if (!bVar19) {\n                iVar7 = 8;\n                pbVar16 = local_71;\n                pbVar17 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                } while (bVar19);\n                if ((!bVar20 && !bVar19) == bVar20) {\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar8;\n              pbVar17 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar19 = *pbVar16 < *pbVar17;\n                bVar18 = *pbVar16 == *pbVar17;\n                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n              } while (bVar18);\n              if ((!bVar19 && !bVar18) == bVar19) {\n                local_124 = 1;\n                bVar18 = false;\n                goto LAB_000551a8;\n              }\n            }\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n            pcVar15 = "file format error";\n            FUN_0001b250(pbVar8);\n            goto LAB_00055070;\n          }\n        }\n      }\nLAB_0005510e:\n      pcVar15 = "file format error";\n      piVar14 = (int *)0x0;\n      fclose(__stream);\n    }" if (parenthesized_expression "(bVar20)" ( identifier )) (compound_statement "{\n      pcVar15 = (char *)0x0;\n      piVar14 = (int *)0x0;\n      fclose(__stream);\n    }" { (expression_statement "pcVar15 = (char *)0x0;" (assignment_expression "pcVar15 = (char *)0x0" identifier = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "piVar14 = (int *)0x0;" (assignment_expression "piVar14 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "fclose(__stream);" (call_expression "fclose(__stream)" identifier (argument_list "(__stream)" ( identifier ))) ;) }) (else_clause "else {\n      iVar4 = 0x16;\n      pbVar8 = local_71;\n      pbVar16 = (byte *)"PuTTY-User-Key-File-2";\n      do {\n        if (iVar4 == 0) break;\n        iVar4 = iVar4 + -1;\n        bVar18 = *pbVar8 < *pbVar16;\n        bVar20 = *pbVar8 == *pbVar16;\n        pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n      } while (bVar20);\n      bVar3 = (!bVar18 && !bVar20) - bVar18;\n      bVar18 = false;\n      bVar20 = bVar3 == 0;\n      if (!bVar20) {\n        iVar4 = 0x16;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"PuTTY-User-Key-File-1";\n        do {\n          if (iVar4 == 0) break;\n          iVar4 = iVar4 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        bVar19 = false;\n        bVar18 = (!bVar18 && !bVar20) == bVar18;\n        if (!bVar18) {\n          iVar23 = 0x14;\n          pbVar8 = local_71;\n          pbVar16 = (byte *)"PuTTY-User-Key-File-";\n          do {\n            if (iVar23 == 0) break;\n            iVar23 = iVar23 + -1;\n            bVar19 = *pbVar8 < *pbVar16;\n            bVar18 = *pbVar8 == *pbVar16;\n            pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n            pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n          } while (bVar18);\n          if ((!bVar19 && !bVar18) == bVar19) {\n            pcVar15 = "PuTTY key format too new";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          else {\n            pcVar15 = "not a PuTTY SSH-2 private key";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          goto LAB_00055070;\n        }\n        FUN_00065000();\n        bVar3 = 1;\n      }\n      pcVar5 = (char *)FUN_00053e50();\n      if (pcVar5 == (char *)0x0) goto LAB_0005510e;\n      sVar6 = strlen(pcVar5);\n      pcVar22 = pcVar5;\n      iVar4 = FUN_00054a80(sVar6,pcVar5);\n      if (iVar4 == 0) {\n        pcVar15 = "file format error";\n        FUN_0001b250(pcVar5);\n        piVar14 = (int *)0x0;\n        fclose(__stream);\n        goto LAB_00055070;\n      }\n      FUN_0001b250(pcVar5);\n      iVar7 = FUN_00053dd0();\n      bVar18 = false;\n      bVar20 = iVar7 == 0;\n      if (!bVar20) {\n        iVar7 = 0xb;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"Encryption";\n        do {\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        if ((!bVar18 && !bVar20) == bVar18) {\n          pbVar8 = (byte *)FUN_00053e50();\n          bVar18 = false;\n          bVar20 = pbVar8 == (byte *)0x0;\n          if (!bVar20) {\n            iVar7 = 0xb;\n            pbVar16 = pbVar8;\n            pbVar17 = (byte *)"aes256-cbc";\n            do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar18 = *pbVar16 < *pbVar17;\n              bVar20 = *pbVar16 == *pbVar17;\n              pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n              pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n            } while (bVar20);\n            bVar19 = false;\n            bVar18 = (!bVar18 && !bVar20) == bVar18;\n            if (bVar18) {\n              local_124 = 0x10;\n              bVar18 = true;\nLAB_000551a8:\n              iVar7 = FUN_00053dd0();\n              bVar20 = false;\n              bVar19 = iVar7 == 0;\n              if (!bVar19) {\n                iVar7 = 8;\n                pbVar16 = local_71;\n                pbVar17 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                } while (bVar19);\n                if ((!bVar20 && !bVar19) == bVar20) {\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar8;\n              pbVar17 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar19 = *pbVar16 < *pbVar17;\n                bVar18 = *pbVar16 == *pbVar17;\n                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n              } while (bVar18);\n              if ((!bVar19 && !bVar18) == bVar19) {\n                local_124 = 1;\n                bVar18 = false;\n                goto LAB_000551a8;\n              }\n            }\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n            pcVar15 = "file format error";\n            FUN_0001b250(pbVar8);\n            goto LAB_00055070;\n          }\n        }\n      }\nLAB_0005510e:\n      pcVar15 = "file format error";\n      piVar14 = (int *)0x0;\n      fclose(__stream);\n    }" else (compound_statement "{\n      iVar4 = 0x16;\n      pbVar8 = local_71;\n      pbVar16 = (byte *)"PuTTY-User-Key-File-2";\n      do {\n        if (iVar4 == 0) break;\n        iVar4 = iVar4 + -1;\n        bVar18 = *pbVar8 < *pbVar16;\n        bVar20 = *pbVar8 == *pbVar16;\n        pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n      } while (bVar20);\n      bVar3 = (!bVar18 && !bVar20) - bVar18;\n      bVar18 = false;\n      bVar20 = bVar3 == 0;\n      if (!bVar20) {\n        iVar4 = 0x16;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"PuTTY-User-Key-File-1";\n        do {\n          if (iVar4 == 0) break;\n          iVar4 = iVar4 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        bVar19 = false;\n        bVar18 = (!bVar18 && !bVar20) == bVar18;\n        if (!bVar18) {\n          iVar23 = 0x14;\n          pbVar8 = local_71;\n          pbVar16 = (byte *)"PuTTY-User-Key-File-";\n          do {\n            if (iVar23 == 0) break;\n            iVar23 = iVar23 + -1;\n            bVar19 = *pbVar8 < *pbVar16;\n            bVar18 = *pbVar8 == *pbVar16;\n            pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n            pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n          } while (bVar18);\n          if ((!bVar19 && !bVar18) == bVar19) {\n            pcVar15 = "PuTTY key format too new";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          else {\n            pcVar15 = "not a PuTTY SSH-2 private key";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          goto LAB_00055070;\n        }\n        FUN_00065000();\n        bVar3 = 1;\n      }\n      pcVar5 = (char *)FUN_00053e50();\n      if (pcVar5 == (char *)0x0) goto LAB_0005510e;\n      sVar6 = strlen(pcVar5);\n      pcVar22 = pcVar5;\n      iVar4 = FUN_00054a80(sVar6,pcVar5);\n      if (iVar4 == 0) {\n        pcVar15 = "file format error";\n        FUN_0001b250(pcVar5);\n        piVar14 = (int *)0x0;\n        fclose(__stream);\n        goto LAB_00055070;\n      }\n      FUN_0001b250(pcVar5);\n      iVar7 = FUN_00053dd0();\n      bVar18 = false;\n      bVar20 = iVar7 == 0;\n      if (!bVar20) {\n        iVar7 = 0xb;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"Encryption";\n        do {\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        if ((!bVar18 && !bVar20) == bVar18) {\n          pbVar8 = (byte *)FUN_00053e50();\n          bVar18 = false;\n          bVar20 = pbVar8 == (byte *)0x0;\n          if (!bVar20) {\n            iVar7 = 0xb;\n            pbVar16 = pbVar8;\n            pbVar17 = (byte *)"aes256-cbc";\n            do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar18 = *pbVar16 < *pbVar17;\n              bVar20 = *pbVar16 == *pbVar17;\n              pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n              pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n            } while (bVar20);\n            bVar19 = false;\n            bVar18 = (!bVar18 && !bVar20) == bVar18;\n            if (bVar18) {\n              local_124 = 0x10;\n              bVar18 = true;\nLAB_000551a8:\n              iVar7 = FUN_00053dd0();\n              bVar20 = false;\n              bVar19 = iVar7 == 0;\n              if (!bVar19) {\n                iVar7 = 8;\n                pbVar16 = local_71;\n                pbVar17 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                } while (bVar19);\n                if ((!bVar20 && !bVar19) == bVar20) {\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar8;\n              pbVar17 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar19 = *pbVar16 < *pbVar17;\n                bVar18 = *pbVar16 == *pbVar17;\n                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n              } while (bVar18);\n              if ((!bVar19 && !bVar18) == bVar19) {\n                local_124 = 1;\n                bVar18 = false;\n                goto LAB_000551a8;\n              }\n            }\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n            pcVar15 = "file format error";\n            FUN_0001b250(pbVar8);\n            goto LAB_00055070;\n          }\n        }\n      }\nLAB_0005510e:\n      pcVar15 = "file format error";\n      piVar14 = (int *)0x0;\n      fclose(__stream);\n    }" { (expression_statement "iVar4 = 0x16;" (assignment_expression "iVar4 = 0x16" identifier = number_literal) ;) (expression_statement "pbVar8 = local_71;" (assignment_expression "pbVar8 = local_71" identifier = identifier) ;) (expression_statement "pbVar16 = (byte *)"PuTTY-User-Key-File-2";" (assignment_expression "pbVar16 = (byte *)"PuTTY-User-Key-File-2"" identifier = (cast_expression "(byte *)"PuTTY-User-Key-File-2"" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""PuTTY-User-Key-File-2"" " string_content "))) ;) (do_statement "do {\n        if (iVar4 == 0) break;\n        iVar4 = iVar4 + -1;\n        bVar18 = *pbVar8 < *pbVar16;\n        bVar20 = *pbVar8 == *pbVar16;\n        pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n      } while (bVar20);" do (compound_statement "{\n        if (iVar4 == 0) break;\n        iVar4 = iVar4 + -1;\n        bVar18 = *pbVar8 < *pbVar16;\n        bVar20 = *pbVar8 == *pbVar16;\n        pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n      }" { (if_statement "if (iVar4 == 0) break;" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar4 = iVar4 + -1;" (assignment_expression "iVar4 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) (expression_statement "bVar18 = *pbVar8 < *pbVar16;" (assignment_expression "bVar18 = *pbVar8 < *pbVar16" identifier = (binary_expression "*pbVar8 < *pbVar16" (pointer_expression "*pbVar8" * identifier) < (pointer_expression "*pbVar16" * identifier))) ;) (expression_statement "bVar20 = *pbVar8 == *pbVar16;" (assignment_expression "bVar20 = *pbVar8 == *pbVar16" identifier = (binary_expression "*pbVar8 == *pbVar16" (pointer_expression "*pbVar8" * identifier) == (pointer_expression "*pbVar16" * identifier))) ;) (expression_statement "pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;" (assignment_expression "pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1" identifier = (binary_expression "pbVar8 + (uint)bVar21 * -2 + 1" (binary_expression "pbVar8 + (uint)bVar21 * -2" identifier + (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;" (assignment_expression "pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1" identifier = (binary_expression "pbVar16 + (uint)bVar21 * -2 + 1" (binary_expression "pbVar16 + (uint)bVar21 * -2" identifier + (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar20)" ( identifier )) ;) (expression_statement "bVar3 = (!bVar18 && !bVar20) - bVar18;" (assignment_expression "bVar3 = (!bVar18 && !bVar20) - bVar18" identifier = (binary_expression "(!bVar18 && !bVar20) - bVar18" (parenthesized_expression "(!bVar18 && !bVar20)" ( (binary_expression "!bVar18 && !bVar20" (unary_expression "!bVar18" ! identifier) && (unary_expression "!bVar20" ! identifier)) )) - identifier)) ;) (expression_statement "bVar18 = false;" (assignment_expression "bVar18 = false" identifier = false) ;) (expression_statement "bVar20 = bVar3 == 0;" (assignment_expression "bVar20 = bVar3 == 0" identifier = (binary_expression "bVar3 == 0" identifier == number_literal)) ;) (if_statement "if (!bVar20) {\n        iVar4 = 0x16;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"PuTTY-User-Key-File-1";\n        do {\n          if (iVar4 == 0) break;\n          iVar4 = iVar4 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        bVar19 = false;\n        bVar18 = (!bVar18 && !bVar20) == bVar18;\n        if (!bVar18) {\n          iVar23 = 0x14;\n          pbVar8 = local_71;\n          pbVar16 = (byte *)"PuTTY-User-Key-File-";\n          do {\n            if (iVar23 == 0) break;\n            iVar23 = iVar23 + -1;\n            bVar19 = *pbVar8 < *pbVar16;\n            bVar18 = *pbVar8 == *pbVar16;\n            pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n            pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n          } while (bVar18);\n          if ((!bVar19 && !bVar18) == bVar19) {\n            pcVar15 = "PuTTY key format too new";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          else {\n            pcVar15 = "not a PuTTY SSH-2 private key";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          goto LAB_00055070;\n        }\n        FUN_00065000();\n        bVar3 = 1;\n      }" if (parenthesized_expression "(!bVar20)" ( (unary_expression "!bVar20" ! identifier) )) (compound_statement "{\n        iVar4 = 0x16;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"PuTTY-User-Key-File-1";\n        do {\n          if (iVar4 == 0) break;\n          iVar4 = iVar4 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        bVar19 = false;\n        bVar18 = (!bVar18 && !bVar20) == bVar18;\n        if (!bVar18) {\n          iVar23 = 0x14;\n          pbVar8 = local_71;\n          pbVar16 = (byte *)"PuTTY-User-Key-File-";\n          do {\n            if (iVar23 == 0) break;\n            iVar23 = iVar23 + -1;\n            bVar19 = *pbVar8 < *pbVar16;\n            bVar18 = *pbVar8 == *pbVar16;\n            pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n            pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n          } while (bVar18);\n          if ((!bVar19 && !bVar18) == bVar19) {\n            pcVar15 = "PuTTY key format too new";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          else {\n            pcVar15 = "not a PuTTY SSH-2 private key";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          goto LAB_00055070;\n        }\n        FUN_00065000();\n        bVar3 = 1;\n      }" { (expression_statement "iVar4 = 0x16;" (assignment_expression "iVar4 = 0x16" identifier = number_literal) ;) (expression_statement "pbVar8 = local_71;" (assignment_expression "pbVar8 = local_71" identifier = identifier) ;) (expression_statement "pbVar16 = (byte *)"PuTTY-User-Key-File-1";" (assignment_expression "pbVar16 = (byte *)"PuTTY-User-Key-File-1"" identifier = (cast_expression "(byte *)"PuTTY-User-Key-File-1"" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""PuTTY-User-Key-File-1"" " string_content "))) ;) (do_statement "do {\n          if (iVar4 == 0) break;\n          iVar4 = iVar4 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);" do (compound_statement "{\n          if (iVar4 == 0) break;\n          iVar4 = iVar4 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        }" { (if_statement "if (iVar4 == 0) break;" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar4 = iVar4 + -1;" (assignment_expression "iVar4 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) (expression_statement "bVar18 = *pbVar8 < *pbVar16;" (assignment_expression "bVar18 = *pbVar8 < *pbVar16" identifier = (binary_expression "*pbVar8 < *pbVar16" (pointer_expression "*pbVar8" * identifier) < (pointer_expression "*pbVar16" * identifier))) ;) (expression_statement "bVar20 = *pbVar8 == *pbVar16;" (assignment_expression "bVar20 = *pbVar8 == *pbVar16" identifier = (binary_expression "*pbVar8 == *pbVar16" (pointer_expression "*pbVar8" * identifier) == (pointer_expression "*pbVar16" * identifier))) ;) (expression_statement "pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;" (assignment_expression "pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1" identifier = (binary_expression "pbVar8 + (uint)bVar21 * -2 + 1" (binary_expression "pbVar8 + (uint)bVar21 * -2" identifier + (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;" (assignment_expression "pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1" identifier = (binary_expression "pbVar16 + (uint)bVar21 * -2 + 1" (binary_expression "pbVar16 + (uint)bVar21 * -2" identifier + (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar20)" ( identifier )) ;) (expression_statement "bVar19 = false;" (assignment_expression "bVar19 = false" identifier = false) ;) (expression_statement "bVar18 = (!bVar18 && !bVar20) == bVar18;" (assignment_expression "bVar18 = (!bVar18 && !bVar20) == bVar18" identifier = (binary_expression "(!bVar18 && !bVar20) == bVar18" (parenthesized_expression "(!bVar18 && !bVar20)" ( (binary_expression "!bVar18 && !bVar20" (unary_expression "!bVar18" ! identifier) && (unary_expression "!bVar20" ! identifier)) )) == identifier)) ;) (if_statement "if (!bVar18) {\n          iVar23 = 0x14;\n          pbVar8 = local_71;\n          pbVar16 = (byte *)"PuTTY-User-Key-File-";\n          do {\n            if (iVar23 == 0) break;\n            iVar23 = iVar23 + -1;\n            bVar19 = *pbVar8 < *pbVar16;\n            bVar18 = *pbVar8 == *pbVar16;\n            pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n            pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n          } while (bVar18);\n          if ((!bVar19 && !bVar18) == bVar19) {\n            pcVar15 = "PuTTY key format too new";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          else {\n            pcVar15 = "not a PuTTY SSH-2 private key";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          goto LAB_00055070;\n        }" if (parenthesized_expression "(!bVar18)" ( (unary_expression "!bVar18" ! identifier) )) (compound_statement "{\n          iVar23 = 0x14;\n          pbVar8 = local_71;\n          pbVar16 = (byte *)"PuTTY-User-Key-File-";\n          do {\n            if (iVar23 == 0) break;\n            iVar23 = iVar23 + -1;\n            bVar19 = *pbVar8 < *pbVar16;\n            bVar18 = *pbVar8 == *pbVar16;\n            pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n            pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n          } while (bVar18);\n          if ((!bVar19 && !bVar18) == bVar19) {\n            pcVar15 = "PuTTY key format too new";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          else {\n            pcVar15 = "not a PuTTY SSH-2 private key";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          goto LAB_00055070;\n        }" { (expression_statement "iVar23 = 0x14;" (assignment_expression "iVar23 = 0x14" identifier = number_literal) ;) (expression_statement "pbVar8 = local_71;" (assignment_expression "pbVar8 = local_71" identifier = identifier) ;) (expression_statement "pbVar16 = (byte *)"PuTTY-User-Key-File-";" (assignment_expression "pbVar16 = (byte *)"PuTTY-User-Key-File-"" identifier = (cast_expression "(byte *)"PuTTY-User-Key-File-"" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""PuTTY-User-Key-File-"" " string_content "))) ;) (do_statement "do {\n            if (iVar23 == 0) break;\n            iVar23 = iVar23 + -1;\n            bVar19 = *pbVar8 < *pbVar16;\n            bVar18 = *pbVar8 == *pbVar16;\n            pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n            pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n          } while (bVar18);" do (compound_statement "{\n            if (iVar23 == 0) break;\n            iVar23 = iVar23 + -1;\n            bVar19 = *pbVar8 < *pbVar16;\n            bVar18 = *pbVar8 == *pbVar16;\n            pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n            pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n          }" { (if_statement "if (iVar23 == 0) break;" if (parenthesized_expression "(iVar23 == 0)" ( (binary_expression "iVar23 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar23 = iVar23 + -1;" (assignment_expression "iVar23 = iVar23 + -1" identifier = (binary_expression "iVar23 + -1" identifier + number_literal)) ;) (expression_statement "bVar19 = *pbVar8 < *pbVar16;" (assignment_expression "bVar19 = *pbVar8 < *pbVar16" identifier = (binary_expression "*pbVar8 < *pbVar16" (pointer_expression "*pbVar8" * identifier) < (pointer_expression "*pbVar16" * identifier))) ;) (expression_statement "bVar18 = *pbVar8 == *pbVar16;" (assignment_expression "bVar18 = *pbVar8 == *pbVar16" identifier = (binary_expression "*pbVar8 == *pbVar16" (pointer_expression "*pbVar8" * identifier) == (pointer_expression "*pbVar16" * identifier))) ;) (expression_statement "pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;" (assignment_expression "pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1" identifier = (binary_expression "pbVar8 + (uint)bVar21 * -2 + 1" (binary_expression "pbVar8 + (uint)bVar21 * -2" identifier + (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;" (assignment_expression "pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1" identifier = (binary_expression "pbVar16 + (uint)bVar21 * -2 + 1" (binary_expression "pbVar16 + (uint)bVar21 * -2" identifier + (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar18)" ( identifier )) ;) (if_statement "if ((!bVar19 && !bVar18) == bVar19) {\n            pcVar15 = "PuTTY key format too new";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          else {\n            pcVar15 = "not a PuTTY SSH-2 private key";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }" if (parenthesized_expression "((!bVar19 && !bVar18) == bVar19)" ( (binary_expression "(!bVar19 && !bVar18) == bVar19" (parenthesized_expression "(!bVar19 && !bVar18)" ( (binary_expression "!bVar19 && !bVar18" (unary_expression "!bVar19" ! identifier) && (unary_expression "!bVar18" ! identifier)) )) == identifier) )) (compound_statement "{\n            pcVar15 = "PuTTY key format too new";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }" { (expression_statement "pcVar15 = "PuTTY key format too new";" (assignment_expression "pcVar15 = "PuTTY key format too new"" identifier = (string_literal ""PuTTY key format too new"" " string_content ")) ;) (expression_statement "piVar14 = (int *)0x0;" (assignment_expression "piVar14 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "fclose(__stream);" (call_expression "fclose(__stream)" identifier (argument_list "(__stream)" ( identifier ))) ;) }) (else_clause "else {\n            pcVar15 = "not a PuTTY SSH-2 private key";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }" else (compound_statement "{\n            pcVar15 = "not a PuTTY SSH-2 private key";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }" { (expression_statement "pcVar15 = "not a PuTTY SSH-2 private key";" (assignment_expression "pcVar15 = "not a PuTTY SSH-2 private key"" identifier = (string_literal ""not a PuTTY SSH-2 private key"" " string_content ")) ;) (expression_statement "piVar14 = (int *)0x0;" (assignment_expression "piVar14 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "fclose(__stream);" (call_expression "fclose(__stream)" identifier (argument_list "(__stream)" ( identifier ))) ;) }))) (goto_statement "goto LAB_00055070;" goto statement_identifier ;) })) (expression_statement "FUN_00065000();" (call_expression "FUN_00065000()" identifier (argument_list "()" ( ))) ;) (expression_statement "bVar3 = 1;" (assignment_expression "bVar3 = 1" identifier = number_literal) ;) })) (expression_statement "pcVar5 = (char *)FUN_00053e50();" (assignment_expression "pcVar5 = (char *)FUN_00053e50()" identifier = (cast_expression "(char *)FUN_00053e50()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00053e50()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (pcVar5 == (char *)0x0) goto LAB_0005510e;" if (parenthesized_expression "(pcVar5 == (char *)0x0)" ( (binary_expression "pcVar5 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0005510e;" goto statement_identifier ;)) (expression_statement "sVar6 = strlen(pcVar5);" (assignment_expression "sVar6 = strlen(pcVar5)" identifier = (call_expression "strlen(pcVar5)" identifier (argument_list "(pcVar5)" ( identifier )))) ;) (expression_statement "pcVar22 = pcVar5;" (assignment_expression "pcVar22 = pcVar5" identifier = identifier) ;) (expression_statement "iVar4 = FUN_00054a80(sVar6,pcVar5);" (assignment_expression "iVar4 = FUN_00054a80(sVar6,pcVar5)" identifier = (call_expression "FUN_00054a80(sVar6,pcVar5)" identifier (argument_list "(sVar6,pcVar5)" ( identifier , identifier )))) ;) (if_statement "if (iVar4 == 0) {\n        pcVar15 = "file format error";\n        FUN_0001b250(pcVar5);\n        piVar14 = (int *)0x0;\n        fclose(__stream);\n        goto LAB_00055070;\n      }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n        pcVar15 = "file format error";\n        FUN_0001b250(pcVar5);\n        piVar14 = (int *)0x0;\n        fclose(__stream);\n        goto LAB_00055070;\n      }" { (expression_statement "pcVar15 = "file format error";" (assignment_expression "pcVar15 = "file format error"" identifier = (string_literal ""file format error"" " string_content ")) ;) (expression_statement "FUN_0001b250(pcVar5);" (call_expression "FUN_0001b250(pcVar5)" identifier (argument_list "(pcVar5)" ( identifier ))) ;) (expression_statement "piVar14 = (int *)0x0;" (assignment_expression "piVar14 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "fclose(__stream);" (call_expression "fclose(__stream)" identifier (argument_list "(__stream)" ( identifier ))) ;) (goto_statement "goto LAB_00055070;" goto statement_identifier ;) })) (expression_statement "FUN_0001b250(pcVar5);" (call_expression "FUN_0001b250(pcVar5)" identifier (argument_list "(pcVar5)" ( identifier ))) ;) (expression_statement "iVar7 = FUN_00053dd0();" (assignment_expression "iVar7 = FUN_00053dd0()" identifier = (call_expression "FUN_00053dd0()" identifier (argument_list "()" ( )))) ;) (expression_statement "bVar18 = false;" (assignment_expression "bVar18 = false" identifier = false) ;) (expression_statement "bVar20 = iVar7 == 0;" (assignment_expression "bVar20 = iVar7 == 0" identifier = (binary_expression "iVar7 == 0" identifier == number_literal)) ;) (if_statement "if (!bVar20) {\n        iVar7 = 0xb;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"Encryption";\n        do {\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        if ((!bVar18 && !bVar20) == bVar18) {\n          pbVar8 = (byte *)FUN_00053e50();\n          bVar18 = false;\n          bVar20 = pbVar8 == (byte *)0x0;\n          if (!bVar20) {\n            iVar7 = 0xb;\n            pbVar16 = pbVar8;\n            pbVar17 = (byte *)"aes256-cbc";\n            do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar18 = *pbVar16 < *pbVar17;\n              bVar20 = *pbVar16 == *pbVar17;\n              pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n              pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n            } while (bVar20);\n            bVar19 = false;\n            bVar18 = (!bVar18 && !bVar20) == bVar18;\n            if (bVar18) {\n              local_124 = 0x10;\n              bVar18 = true;\nLAB_000551a8:\n              iVar7 = FUN_00053dd0();\n              bVar20 = false;\n              bVar19 = iVar7 == 0;\n              if (!bVar19) {\n                iVar7 = 8;\n                pbVar16 = local_71;\n                pbVar17 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                } while (bVar19);\n                if ((!bVar20 && !bVar19) == bVar20) {\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar8;\n              pbVar17 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar19 = *pbVar16 < *pbVar17;\n                bVar18 = *pbVar16 == *pbVar17;\n                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n              } while (bVar18);\n              if ((!bVar19 && !bVar18) == bVar19) {\n                local_124 = 1;\n                bVar18 = false;\n                goto LAB_000551a8;\n              }\n            }\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n            pcVar15 = "file format error";\n            FUN_0001b250(pbVar8);\n            goto LAB_00055070;\n          }\n        }\n      }" if (parenthesized_expression "(!bVar20)" ( (unary_expression "!bVar20" ! identifier) )) (compound_statement "{\n        iVar7 = 0xb;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"Encryption";\n        do {\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        if ((!bVar18 && !bVar20) == bVar18) {\n          pbVar8 = (byte *)FUN_00053e50();\n          bVar18 = false;\n          bVar20 = pbVar8 == (byte *)0x0;\n          if (!bVar20) {\n            iVar7 = 0xb;\n            pbVar16 = pbVar8;\n            pbVar17 = (byte *)"aes256-cbc";\n            do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar18 = *pbVar16 < *pbVar17;\n              bVar20 = *pbVar16 == *pbVar17;\n              pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n              pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n            } while (bVar20);\n            bVar19 = false;\n            bVar18 = (!bVar18 && !bVar20) == bVar18;\n            if (bVar18) {\n              local_124 = 0x10;\n              bVar18 = true;\nLAB_000551a8:\n              iVar7 = FUN_00053dd0();\n              bVar20 = false;\n              bVar19 = iVar7 == 0;\n              if (!bVar19) {\n                iVar7 = 8;\n                pbVar16 = local_71;\n                pbVar17 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                } while (bVar19);\n                if ((!bVar20 && !bVar19) == bVar20) {\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar8;\n              pbVar17 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar19 = *pbVar16 < *pbVar17;\n                bVar18 = *pbVar16 == *pbVar17;\n                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n              } while (bVar18);\n              if ((!bVar19 && !bVar18) == bVar19) {\n                local_124 = 1;\n                bVar18 = false;\n                goto LAB_000551a8;\n              }\n            }\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n            pcVar15 = "file format error";\n            FUN_0001b250(pbVar8);\n            goto LAB_00055070;\n          }\n        }\n      }" { (expression_statement "iVar7 = 0xb;" (assignment_expression "iVar7 = 0xb" identifier = number_literal) ;) (expression_statement "pbVar8 = local_71;" (assignment_expression "pbVar8 = local_71" identifier = identifier) ;) (expression_statement "pbVar16 = (byte *)"Encryption";" (assignment_expression "pbVar16 = (byte *)"Encryption"" identifier = (cast_expression "(byte *)"Encryption"" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""Encryption"" " string_content "))) ;) (do_statement "do {\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);" do (compound_statement "{\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        }" { (if_statement "if (iVar7 == 0) break;" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar7 = iVar7 + -1;" (assignment_expression "iVar7 = iVar7 + -1" identifier = (binary_expression "iVar7 + -1" identifier + number_literal)) ;) (expression_statement "bVar18 = *pbVar8 < *pbVar16;" (assignment_expression "bVar18 = *pbVar8 < *pbVar16" identifier = (binary_expression "*pbVar8 < *pbVar16" (pointer_expression "*pbVar8" * identifier) < (pointer_expression "*pbVar16" * identifier))) ;) (expression_statement "bVar20 = *pbVar8 == *pbVar16;" (assignment_expression "bVar20 = *pbVar8 == *pbVar16" identifier = (binary_expression "*pbVar8 == *pbVar16" (pointer_expression "*pbVar8" * identifier) == (pointer_expression "*pbVar16" * identifier))) ;) (expression_statement "pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;" (assignment_expression "pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1" identifier = (binary_expression "pbVar8 + (uint)bVar21 * -2 + 1" (binary_expression "pbVar8 + (uint)bVar21 * -2" identifier + (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;" (assignment_expression "pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1" identifier = (binary_expression "pbVar16 + (uint)bVar21 * -2 + 1" (binary_expression "pbVar16 + (uint)bVar21 * -2" identifier + (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar20)" ( identifier )) ;) (if_statement "if ((!bVar18 && !bVar20) == bVar18) {\n          pbVar8 = (byte *)FUN_00053e50();\n          bVar18 = false;\n          bVar20 = pbVar8 == (byte *)0x0;\n          if (!bVar20) {\n            iVar7 = 0xb;\n            pbVar16 = pbVar8;\n            pbVar17 = (byte *)"aes256-cbc";\n            do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar18 = *pbVar16 < *pbVar17;\n              bVar20 = *pbVar16 == *pbVar17;\n              pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n              pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n            } while (bVar20);\n            bVar19 = false;\n            bVar18 = (!bVar18 && !bVar20) == bVar18;\n            if (bVar18) {\n              local_124 = 0x10;\n              bVar18 = true;\nLAB_000551a8:\n              iVar7 = FUN_00053dd0();\n              bVar20 = false;\n              bVar19 = iVar7 == 0;\n              if (!bVar19) {\n                iVar7 = 8;\n                pbVar16 = local_71;\n                pbVar17 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                } while (bVar19);\n                if ((!bVar20 && !bVar19) == bVar20) {\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar8;\n              pbVar17 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar19 = *pbVar16 < *pbVar17;\n                bVar18 = *pbVar16 == *pbVar17;\n                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n              } while (bVar18);\n              if ((!bVar19 && !bVar18) == bVar19) {\n                local_124 = 1;\n                bVar18 = false;\n                goto LAB_000551a8;\n              }\n            }\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n            pcVar15 = "file format error";\n            FUN_0001b250(pbVar8);\n            goto LAB_00055070;\n          }\n        }" if (parenthesized_expression "((!bVar18 && !bVar20) == bVar18)" ( (binary_expression "(!bVar18 && !bVar20) == bVar18" (parenthesized_expression "(!bVar18 && !bVar20)" ( (binary_expression "!bVar18 && !bVar20" (unary_expression "!bVar18" ! identifier) && (unary_expression "!bVar20" ! identifier)) )) == identifier) )) (compound_statement "{\n          pbVar8 = (byte *)FUN_00053e50();\n          bVar18 = false;\n          bVar20 = pbVar8 == (byte *)0x0;\n          if (!bVar20) {\n            iVar7 = 0xb;\n            pbVar16 = pbVar8;\n            pbVar17 = (byte *)"aes256-cbc";\n            do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar18 = *pbVar16 < *pbVar17;\n              bVar20 = *pbVar16 == *pbVar17;\n              pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n              pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n            } while (bVar20);\n            bVar19 = false;\n            bVar18 = (!bVar18 && !bVar20) == bVar18;\n            if (bVar18) {\n              local_124 = 0x10;\n              bVar18 = true;\nLAB_000551a8:\n              iVar7 = FUN_00053dd0();\n              bVar20 = false;\n              bVar19 = iVar7 == 0;\n              if (!bVar19) {\n                iVar7 = 8;\n                pbVar16 = local_71;\n                pbVar17 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                } while (bVar19);\n                if ((!bVar20 && !bVar19) == bVar20) {\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar8;\n              pbVar17 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar19 = *pbVar16 < *pbVar17;\n                bVar18 = *pbVar16 == *pbVar17;\n                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n              } while (bVar18);\n              if ((!bVar19 && !bVar18) == bVar19) {\n                local_124 = 1;\n                bVar18 = false;\n                goto LAB_000551a8;\n              }\n            }\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n            pcVar15 = "file format error";\n            FUN_0001b250(pbVar8);\n            goto LAB_00055070;\n          }\n        }" { (expression_statement "pbVar8 = (byte *)FUN_00053e50();" (assignment_expression "pbVar8 = (byte *)FUN_00053e50()" identifier = (cast_expression "(byte *)FUN_00053e50()" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00053e50()" identifier (argument_list "()" ( ))))) ;) (expression_statement "bVar18 = false;" (assignment_expression "bVar18 = false" identifier = false) ;) (expression_statement "bVar20 = pbVar8 == (byte *)0x0;" (assignment_expression "bVar20 = pbVar8 == (byte *)0x0" identifier = (binary_expression "pbVar8 == (byte *)0x0" identifier == (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ;) (if_statement "if (!bVar20) {\n            iVar7 = 0xb;\n            pbVar16 = pbVar8;\n            pbVar17 = (byte *)"aes256-cbc";\n            do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar18 = *pbVar16 < *pbVar17;\n              bVar20 = *pbVar16 == *pbVar17;\n              pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n              pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n            } while (bVar20);\n            bVar19 = false;\n            bVar18 = (!bVar18 && !bVar20) == bVar18;\n            if (bVar18) {\n              local_124 = 0x10;\n              bVar18 = true;\nLAB_000551a8:\n              iVar7 = FUN_00053dd0();\n              bVar20 = false;\n              bVar19 = iVar7 == 0;\n              if (!bVar19) {\n                iVar7 = 8;\n                pbVar16 = local_71;\n                pbVar17 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                } while (bVar19);\n                if ((!bVar20 && !bVar19) == bVar20) {\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar8;\n              pbVar17 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar19 = *pbVar16 < *pbVar17;\n                bVar18 = *pbVar16 == *pbVar17;\n                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n              } while (bVar18);\n              if ((!bVar19 && !bVar18) == bVar19) {\n                local_124 = 1;\n                bVar18 = false;\n                goto LAB_000551a8;\n              }\n            }\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n            pcVar15 = "file format error";\n            FUN_0001b250(pbVar8);\n            goto LAB_00055070;\n          }" if (parenthesized_expression "(!bVar20)" ( (unary_expression "!bVar20" ! identifier) )) (compound_statement "{\n            iVar7 = 0xb;\n            pbVar16 = pbVar8;\n            pbVar17 = (byte *)"aes256-cbc";\n            do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar18 = *pbVar16 < *pbVar17;\n              bVar20 = *pbVar16 == *pbVar17;\n              pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n              pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n            } while (bVar20);\n            bVar19 = false;\n            bVar18 = (!bVar18 && !bVar20) == bVar18;\n            if (bVar18) {\n              local_124 = 0x10;\n              bVar18 = true;\nLAB_000551a8:\n              iVar7 = FUN_00053dd0();\n              bVar20 = false;\n              bVar19 = iVar7 == 0;\n              if (!bVar19) {\n                iVar7 = 8;\n                pbVar16 = local_71;\n                pbVar17 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                } while (bVar19);\n                if ((!bVar20 && !bVar19) == bVar20) {\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar8;\n              pbVar17 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar19 = *pbVar16 < *pbVar17;\n                bVar18 = *pbVar16 == *pbVar17;\n                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n              } while (bVar18);\n              if ((!bVar19 && !bVar18) == bVar19) {\n                local_124 = 1;\n                bVar18 = false;\n                goto LAB_000551a8;\n              }\n            }\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n            pcVar15 = "file format error";\n            FUN_0001b250(pbVar8);\n            goto LAB_00055070;\n          }" { (expression_statement "iVar7 = 0xb;" (assignment_expression "iVar7 = 0xb" identifier = number_literal) ;) (expression_statement "pbVar16 = pbVar8;" (assignment_expression "pbVar16 = pbVar8" identifier = identifier) ;) (expression_statement "pbVar17 = (byte *)"aes256-cbc";" (assignment_expression "pbVar17 = (byte *)"aes256-cbc"" identifier = (cast_expression "(byte *)"aes256-cbc"" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""aes256-cbc"" " string_content "))) ;) (do_statement "do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar18 = *pbVar16 < *pbVar17;\n              bVar20 = *pbVar16 == *pbVar17;\n              pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n              pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n            } while (bVar20);" do (compound_statement "{\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar18 = *pbVar16 < *pbVar17;\n              bVar20 = *pbVar16 == *pbVar17;\n              pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n              pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n            }" { (if_statement "if (iVar7 == 0) break;" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar7 = iVar7 + -1;" (assignment_expression "iVar7 = iVar7 + -1" identifier = (binary_expression "iVar7 + -1" identifier + number_literal)) ;) (expression_statement "bVar18 = *pbVar16 < *pbVar17;" (assignment_expression "bVar18 = *pbVar16 < *pbVar17" identifier = (binary_expression "*pbVar16 < *pbVar17" (pointer_expression "*pbVar16" * identifier) < (pointer_expression "*pbVar17" * identifier))) ;) (expression_statement "bVar20 = *pbVar16 == *pbVar17;" (assignment_expression "bVar20 = *pbVar16 == *pbVar17" identifier = (binary_expression "*pbVar16 == *pbVar17" (pointer_expression "*pbVar16" * identifier) == (pointer_expression "*pbVar17" * identifier))) ;) (expression_statement "pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;" (assignment_expression "pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1" identifier = (binary_expression "pbVar16 + (uint)bVar21 * -2 + 1" (binary_expression "pbVar16 + (uint)bVar21 * -2" identifier + (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;" (assignment_expression "pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1" identifier = (binary_expression "pbVar17 + (uint)bVar21 * -2 + 1" (binary_expression "pbVar17 + (uint)bVar21 * -2" identifier + (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar20)" ( identifier )) ;) (expression_statement "bVar19 = false;" (assignment_expression "bVar19 = false" identifier = false) ;) (expression_statement "bVar18 = (!bVar18 && !bVar20) == bVar18;" (assignment_expression "bVar18 = (!bVar18 && !bVar20) == bVar18" identifier = (binary_expression "(!bVar18 && !bVar20) == bVar18" (parenthesized_expression "(!bVar18 && !bVar20)" ( (binary_expression "!bVar18 && !bVar20" (unary_expression "!bVar18" ! identifier) && (unary_expression "!bVar20" ! identifier)) )) == identifier)) ;) (if_statement "if (bVar18) {\n              local_124 = 0x10;\n              bVar18 = true;\nLAB_000551a8:\n              iVar7 = FUN_00053dd0();\n              bVar20 = false;\n              bVar19 = iVar7 == 0;\n              if (!bVar19) {\n                iVar7 = 8;\n                pbVar16 = local_71;\n                pbVar17 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                } while (bVar19);\n                if ((!bVar20 && !bVar19) == bVar20) {\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar8;\n              pbVar17 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar19 = *pbVar16 < *pbVar17;\n                bVar18 = *pbVar16 == *pbVar17;\n                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n              } while (bVar18);\n              if ((!bVar19 && !bVar18) == bVar19) {\n                local_124 = 1;\n                bVar18 = false;\n                goto LAB_000551a8;\n              }\n            }" if (parenthesized_expression "(bVar18)" ( identifier )) (compound_statement "{\n              local_124 = 0x10;\n              bVar18 = true;\nLAB_000551a8:\n              iVar7 = FUN_00053dd0();\n              bVar20 = false;\n              bVar19 = iVar7 == 0;\n              if (!bVar19) {\n                iVar7 = 8;\n                pbVar16 = local_71;\n                pbVar17 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                } while (bVar19);\n                if ((!bVar20 && !bVar19) == bVar20) {\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }" { (expression_statement "local_124 = 0x10;" (assignment_expression "local_124 = 0x10" identifier = number_literal) ;) (expression_statement "bVar18 = true;" (assignment_expression "bVar18 = true" identifier = true) ;) (labeled_statement "LAB_000551a8:\n              iVar7 = FUN_00053dd0();" statement_identifier : (expression_statement "iVar7 = FUN_00053dd0();" (assignment_expression "iVar7 = FUN_00053dd0()" identifier = (call_expression "FUN_00053dd0()" identifier (argument_list "()" ( )))) ;)) (expression_statement "bVar20 = false;" (assignment_expression "bVar20 = false" identifier = false) ;) (expression_statement "bVar19 = iVar7 == 0;" (assignment_expression "bVar19 = iVar7 == 0" identifier = (binary_expression "iVar7 == 0" identifier == number_literal)) ;) (if_statement "if (!bVar19) {\n                iVar7 = 8;\n                pbVar16 = local_71;\n                pbVar17 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                } while (bVar19);\n                if ((!bVar20 && !bVar19) == bVar20) {\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }" if (parenthesized_expression "(!bVar19)" ( (unary_expression "!bVar19" ! identifier) )) (compound_statement "{\n                iVar7 = 8;\n                pbVar16 = local_71;\n                pbVar17 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                } while (bVar19);\n                if ((!bVar20 && !bVar19) == bVar20) {\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }" { (expression_statement "iVar7 = 8;" (assignment_expression "iVar7 = 8" identifier = number_literal) ;) (expression_statement "pbVar16 = local_71;" (assignment_expression "pbVar16 = local_71" identifier = identifier) ;) (expression_statement "pbVar17 = (byte *)"Comment";" (assignment_expression "pbVar17 = (byte *)"Comment"" identifier = (cast_expression "(byte *)"Comment"" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""Comment"" " string_content "))) ;) (do_statement "do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                } while (bVar19);" do (compound_statement "{\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                }" { (if_statement "if (iVar7 == 0) break;" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar7 = iVar7 + -1;" (assignment_expression "iVar7 = iVar7 + -1" identifier = (binary_expression "iVar7 + -1" identifier + number_literal)) ;) (expression_statement "bVar20 = *pbVar16 < *pbVar17;" (assignment_expression "bVar20 = *pbVar16 < *pbVar17" identifier = (binary_expression "*pbVar16 < *pbVar17" (pointer_expression "*pbVar16" * identifier) < (pointer_expression "*pbVar17" * identifier))) ;) (expression_statement "bVar19 = *pbVar16 == *pbVar17;" (assignment_expression "bVar19 = *pbVar16 == *pbVar17" identifier = (binary_expression "*pbVar16 == *pbVar17" (pointer_expression "*pbVar16" * identifier) == (pointer_expression "*pbVar17" * identifier))) ;) (expression_statement "pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;" (assignment_expression "pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1" identifier = (binary_expression "pbVar16 + (uint)bVar21 * -2 + 1" (binary_expression "pbVar16 + (uint)bVar21 * -2" identifier + (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;" (assignment_expression "pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1" identifier = (binary_expression "pbVar17 + (uint)bVar21 * -2 + 1" (binary_expression "pbVar17 + (uint)bVar21 * -2" identifier + (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar19)" ( identifier )) ;) (if_statement "if ((!bVar20 && !bVar19) == bVar20) {\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }" if (parenthesized_expression "((!bVar20 && !bVar19) == bVar20)" ( (binary_expression "(!bVar20 && !bVar19) == bVar20" (parenthesized_expression "(!bVar20 && !bVar19)" ( (binary_expression "!bVar20 && !bVar19" (unary_expression "!bVar20" ! identifier) && (unary_expression "!bVar19" ! identifier)) )) == identifier) )) (compound_statement "{\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }" { (expression_statement "pcVar5 = (char *)FUN_00053e50();" (assignment_expression "pcVar5 = (char *)FUN_00053e50()" identifier = (cast_expression "(char *)FUN_00053e50()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00053e50()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }" if (parenthesized_expression "(pcVar5 == (char *)0x0)" ( (binary_expression "pcVar5 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }" { (expression_statement "pcVar15 = "file format error";" (assignment_expression "pcVar15 = "file format error"" identifier = (string_literal ""file format error"" " string_content ")) ;) (expression_statement "piVar14 = (int *)0x0;" (assignment_expression "piVar14 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "fclose(__stream);" (call_expression "fclose(__stream)" identifier (argument_list "(__stream)" ( identifier ))) ;) (expression_statement "FUN_0001b250(pbVar8);" (call_expression "FUN_0001b250(pbVar8)" identifier (argument_list "(pbVar8)" ( identifier ))) ;) (goto_statement "goto LAB_00055070;" goto statement_identifier ;) })) (expression_statement "iVar7 = FUN_00053dd0();" (assignment_expression "iVar7 = FUN_00053dd0()" identifier = (call_expression "FUN_00053dd0()" identifier (argument_list "()" ( )))) ;) (expression_statement "bVar20 = false;" (assignment_expression "bVar20 = false" identifier = false) ;) (expression_statement "bVar19 = iVar7 == 0;" (assignment_expression "bVar19 = iVar7 == 0" identifier = (binary_expression "iVar7 == 0" identifier == number_literal)) ;) (if_statement "if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }" if (parenthesized_expression "(bVar19)" ( identifier )) (compound_statement "{\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }" { (labeled_statement "LAB_000555ad:\n                    local_140 = (uint *)0x0;" statement_identifier : (expression_statement "local_140 = (uint *)0x0;" (assignment_expression "local_140 = (uint *)0x0" identifier = (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;)) (expression_statement "local_13c = (void *)0x0;" (assignment_expression "local_13c = (void *)0x0" identifier = (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (labeled_statement "LAB_0005553d:\n                    iVar9 = iVar23;" statement_identifier : (expression_statement "iVar9 = iVar23;" (assignment_expression "iVar9 = iVar23" identifier = identifier) ;)) (expression_statement "pcVar15 = "file format error";" (assignment_expression "pcVar15 = "file format error"" identifier = (string_literal ""file format error"" " string_content ")) ;) (expression_statement "fclose(__stream);" (call_expression "fclose(__stream)" identifier (argument_list "(__stream)" ( identifier ))) ;) (labeled_statement "LAB_0005554f:\n                    piVar14 = (int *)0x0;" statement_identifier : (expression_statement "piVar14 = (int *)0x0;" (assignment_expression "piVar14 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;)) (expression_statement "FUN_0001b250(pcVar5,pcVar22,iVar9);" (call_expression "FUN_0001b250(pcVar5,pcVar22,iVar9)" identifier (argument_list "(pcVar5,pcVar22,iVar9)" ( identifier , identifier , identifier ))) ;) (expression_statement "FUN_0001b250(pbVar8);" (call_expression "FUN_0001b250(pbVar8)" identifier (argument_list "(pbVar8)" ( identifier ))) ;) }) (else_clause "else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }" else (compound_statement "{\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }" { (expression_statement "iVar7 = 0xd;" (assignment_expression "iVar7 = 0xd" identifier = number_literal) ;) (expression_statement "pbVar16 = local_71;" (assignment_expression "pbVar16 = local_71" identifier = identifier) ;) (expression_statement "pbVar17 = (byte *)"Public-Lines";" (assignment_expression "pbVar17 = (byte *)"Public-Lines"" identifier = (cast_expression "(byte *)"Public-Lines"" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (string_literal ""Public-Lines"" " string_content "))) ;) (do_statement "do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);" do (compound_statement "{\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    }" { (if_statement "if (iVar7 == 0) break;" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar7 = iVar7 + -1;" (assignment_expression "iVar7 = iVar7 + -1" identifier = (binary_expression "iVar7 + -1" identifier + number_literal)) ;) (expression_statement "bVar20 = *pbVar16 < *pbVar17;" (assignment_expression "bVar20 = *pbVar16 < *pbVar17" identifier = (binary_expression "*pbVar16 < *pbVar17" (pointer_expression "*pbVar16" * identifier) < (pointer_expression "*pbVar17" * identifier))) ;) (expression_statement "bVar19 = *pbVar16 == *pbVar17;" (assignment_expression "bVar19 = *pbVar16 == *pbVar17" identifier = (binary_expression "*pbVar16 == *pbVar17" (pointer_expression "*pbVar16" * identifier) == (pointer_expression "*pbVar17" * identifier))) ;) (expression_statement "pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;" (assignment_expression "pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1" identifier = (binary_expression "pbVar16 + (uint)bVar21 * -2 + 1" (binary_expression "pbVar16 + (uint)bVar21 * -2" identifier + (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;" (assignment_expression "pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1" identifier = (binary_expression "pbVar17 + (uint)bVar21 * -2 + 1" (binary_expression "pbVar17 + (uint)bVar21 * -2" identifier + (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar19)" ( identifier )) ;) (if_statement "if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;" if (parenthesized_expression "((!bVar20 && !bVar19) != bVar20)" ( (binary_expression "(!bVar20 && !bVar19) != bVar20" (parenthesized_expression "(!bVar20 && !bVar19)" ( (binary_expression "!bVar20 && !bVar19" (unary_expression "!bVar20" ! identifier) && (unary_expression "!bVar19" ! identifier)) )) != identifier) )) (goto_statement "goto LAB_000555ad;" goto statement_identifier ;)) (expression_statement "iVar7 = FUN_00053e50();" (assignment_expression "iVar7 = FUN_00053e50()" identifier = (call_expression "FUN_00053e50()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar7 == 0) goto LAB_000555ad;" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000555ad;" goto statement_identifier ;)) (expression_statement "iVar9 = FUN_00053d60();" (assignment_expression "iVar9 = FUN_00053d60()" identifier = (call_expression "FUN_00053d60()" identifier (argument_list "()" ( )))) ;) (expression_statement "FUN_0001b250(iVar7);" (call_expression "FUN_0001b250(iVar7)" identifier (argument_list "(iVar7)" ( identifier ))) ;) (if_statement "if (iVar9 < 0) goto LAB_000555ad;" if (parenthesized_expression "(iVar9 < 0)" ( (binary_expression "iVar9 < 0" identifier < number_literal) )) (goto_statement "goto LAB_000555ad;" goto statement_identifier ;)) (expression_statement "local_13c = (void *)FUN_00053f30();" (assignment_expression "local_13c = (void *)FUN_00053f30()" identifier = (cast_expression "(void *)FUN_00053f30()" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00053f30()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (local_13c == (void *)0x0) goto LAB_000555ad;" if (parenthesized_expression "(local_13c == (void *)0x0)" ( (binary_expression "local_13c == (void *)0x0" identifier == (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_000555ad;" goto statement_identifier ;)) (expression_statement "iVar7 = FUN_00053dd0();" (assignment_expression "iVar7 = FUN_00053dd0()" identifier = (call_expression "FUN_00053dd0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }" { (labeled_statement "LAB_00055535:\n                      local_140 = (uint *)0x0;" statement_identifier : (expression_statement "local_140 = (uint *)0x0;" (assignment_expression "local_140 = (uint *)0x0" identifier = (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;)) (goto_statement "goto LAB_0005553d;" goto statement_identifier ;) })) (expression_statement "pcVar22 = "Private-Lines";" (assignment_expression "pcVar22 = "Private-Lines"" identifier = (string_literal ""Private-Lines"" " string_content ")) ;) (expression_statement "iVar9 = strcmp((char *)local_71,"Private-Lines");" (assignment_expression "iVar9 = strcmp((char *)local_71,"Private-Lines")" identifier = (call_expression "strcmp((char *)local_71,"Private-Lines")" identifier (argument_list "((char *)local_71,"Private-Lines")" ( (cast_expression "(char *)local_71" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (string_literal ""Private-Lines"" " string_content ") )))) ;) (expression_statement "local_140 = (uint *)0x0;" (assignment_expression "local_140 = (uint *)0x0" identifier = (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar23 = iVar7;" (assignment_expression "iVar23 = iVar7" identifier = identifier) ;) (if_statement "if (iVar9 != 0) goto LAB_0005553d;" if (parenthesized_expression "(iVar9 != 0)" ( (binary_expression "iVar9 != 0" identifier != number_literal) )) (goto_statement "goto LAB_0005553d;" goto statement_identifier ;)) (expression_statement "puVar10 = (uint *)FUN_00053e50();" (assignment_expression "puVar10 = (uint *)FUN_00053e50()" identifier = (cast_expression "(uint *)FUN_00053e50()" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00053e50()" identifier (argument_list "()" ( ))))) ;) (expression_statement "iVar23 = iVar7;" (assignment_expression "iVar23 = iVar7" identifier = identifier) ;) (expression_statement "local_140 = puVar10;" (assignment_expression "local_140 = puVar10" identifier = identifier) ;) (if_statement "if (puVar10 == (uint *)0x0) goto LAB_0005553d;" if (parenthesized_expression "(puVar10 == (uint *)0x0)" ( (binary_expression "puVar10 == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0005553d;" goto statement_identifier ;)) (expression_statement "iVar9 = FUN_00053d60();" (assignment_expression "iVar9 = FUN_00053d60()" identifier = (call_expression "FUN_00053d60()" identifier (argument_list "()" ( )))) ;) (expression_statement "FUN_0001b250(puVar10,pcVar22,iVar7);" (call_expression "FUN_0001b250(puVar10,pcVar22,iVar7)" identifier (argument_list "(puVar10,pcVar22,iVar7)" ( identifier , identifier , identifier ))) ;) (expression_statement "iVar23 = iVar7;" (assignment_expression "iVar23 = iVar7" identifier = identifier) ;) (if_statement "if (iVar9 < 0) goto LAB_00055535;" if (parenthesized_expression "(iVar9 < 0)" ( (binary_expression "iVar9 < 0" identifier < number_literal) )) (goto_statement "goto LAB_00055535;" goto statement_identifier ;)) (expression_statement "local_140 = (uint *)FUN_00053f30();" (assignment_expression "local_140 = (uint *)FUN_00053f30()" identifier = (cast_expression "(uint *)FUN_00053f30()" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00053f30()" identifier (argument_list "()" ( ))))) ;) (expression_statement "iVar23 = iVar7;" (assignment_expression "iVar23 = iVar7" identifier = identifier) ;) (if_statement "if (local_140 == (uint *)0x0) goto LAB_0005553d;" if (parenthesized_expression "(local_140 == (uint *)0x0)" ( (binary_expression "local_140 == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0005553d;" goto statement_identifier ;)) (expression_statement "iVar9 = FUN_00053dd0();" (assignment_expression "iVar9 = FUN_00053dd0()" identifier = (call_expression "FUN_00053dd0()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar23 = iVar7;" (assignment_expression "iVar23 = iVar7" identifier = identifier) ;) (if_statement "if (iVar9 == 0) goto LAB_0005553d;" if (parenthesized_expression "(iVar9 == 0)" ( (binary_expression "iVar9 == 0" identifier == number_literal) )) (goto_statement "goto LAB_0005553d;" goto statement_identifier ;)) (expression_statement "pcVar22 = "Private-MAC";" (assignment_expression "pcVar22 = "Private-MAC"" identifier = (string_literal ""Private-MAC"" " string_content ")) ;) (expression_statement "iVar23 = strcmp((char *)local_71,"Private-MAC");" (assignment_expression "iVar23 = strcmp((char *)local_71,"Private-MAC")" identifier = (call_expression "strcmp((char *)local_71,"Private-MAC")" identifier (argument_list "((char *)local_71,"Private-MAC")" ( (cast_expression "(char *)local_71" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (string_literal ""Private-MAC"" " string_content ") )))) ;) (if_statement "if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }" if (parenthesized_expression "(iVar23 != 0)" ( (binary_expression "iVar23 != 0" identifier != number_literal) )) (compound_statement "{\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }" { (expression_statement "pcVar22 = "Private-Hash";" (assignment_expression "pcVar22 = "Private-Hash"" identifier = (string_literal ""Private-Hash"" " string_content ")) ;) (expression_statement "iVar7 = strcmp((char *)local_71,"Private-Hash");" (assignment_expression "iVar7 = strcmp((char *)local_71,"Private-Hash")" identifier = (call_expression "strcmp((char *)local_71,"Private-Hash")" identifier (argument_list "((char *)local_71,"Private-Hash")" ( (cast_expression "(char *)local_71" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , (string_literal ""Private-Hash"" " string_content ") )))) ;) (if_statement "if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;" if (parenthesized_expression "((iVar7 != 0) || ((bVar3 & 1) == 0))" ( (binary_expression "(iVar7 != 0) || ((bVar3 & 1) == 0)" (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) || (parenthesized_expression "((bVar3 & 1) == 0)" ( (binary_expression "(bVar3 & 1) == 0" (parenthesized_expression "(bVar3 & 1)" ( (binary_expression "bVar3 & 1" identifier & number_literal) )) == number_literal) ))) )) (goto_statement "goto LAB_0005553d;" goto statement_identifier ;)) (expression_statement "local_144 = (char *)FUN_00053e50();" (assignment_expression "local_144 = (char *)FUN_00053e50()" identifier = (cast_expression "(char *)FUN_00053e50()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00053e50()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (local_144 == (char *)0x0) goto LAB_0005553d;" if (parenthesized_expression "(local_144 == (char *)0x0)" ( (binary_expression "local_144 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0005553d;" goto statement_identifier ;)) (expression_statement "bVar20 = false;" (assignment_expression "bVar20 = false" identifier = false) ;) (expression_statement "fclose(__stream);" (call_expression "fclose(__stream)" identifier (argument_list "(__stream)" ( identifier ))) ;) (expression_statement "iVar9 = iVar23;" (assignment_expression "iVar9 = iVar23" identifier = identifier) ;) (if_statement "if (bVar18) goto LAB_000556cb;" if (parenthesized_expression "(bVar18)" ( identifier )) (goto_statement "goto LAB_000556cb;" goto statement_identifier ;)) (labeled_statement "LAB_00055378:\n                      bVar19 = false;" statement_identifier : (expression_statement "bVar19 = false;" (assignment_expression "bVar19 = false" identifier = false) ;)) (expression_statement "local_124 = local_100;" (assignment_expression "local_124 = local_100" identifier = identifier) ;) (expression_statement "local_134 = local_140;" (assignment_expression "local_134 = local_140" identifier = identifier) ;) (labeled_statement "LAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }" statement_identifier : (if_statement "if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }" if (parenthesized_expression "(bVar20)" ( identifier )) (compound_statement "{\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }" { (expression_statement "pcVar15 = "putty-private-key-file-mac-key";" (assignment_expression "pcVar15 = "putty-private-key-file-mac-key"" identifier = (string_literal ""putty-private-key-file-mac-key"" " string_content ")) ;) (expression_statement "pcVar22 = local_49;" (assignment_expression "pcVar22 = local_49" identifier = identifier) ;) (for_statement "for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }" for ( (assignment_expression "iVar23 = 0x1f" identifier = number_literal) ; (binary_expression "iVar23 != 0" identifier != number_literal) ; (assignment_expression "iVar23 = iVar23 + -1" identifier = (binary_expression "iVar23 + -1" identifier + number_literal)) ) (compound_statement "{\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }" { (expression_statement "*pcVar22 = *pcVar15;" (assignment_expression "*pcVar22 = *pcVar15" (pointer_expression "*pcVar22" * identifier) = (pointer_expression "*pcVar15" * identifier)) ;) (expression_statement "pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;" (assignment_expression "pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1" identifier = (binary_expression "pcVar15 + (uint)bVar21 * -2 + 1" (binary_expression "pcVar15 + (uint)bVar21 * -2" identifier + (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;" (assignment_expression "pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1" identifier = (binary_expression "pcVar22 + (uint)bVar21 * -2 + 1" (binary_expression "pcVar22 + (uint)bVar21 * -2" identifier + (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "puVar10 = local_fc;" (assignment_expression "puVar10 = local_fc" identifier = identifier) ;) (expression_statement "FUN_0005ce60(puVar10);" (call_expression "FUN_0005ce60(puVar10)" identifier (argument_list "(puVar10)" ( identifier ))) ;) (expression_statement "FUN_0005cea0(puVar10,local_49,0x1e);" (call_expression "FUN_0005cea0(puVar10,local_49,0x1e)" identifier (argument_list "(puVar10,local_49,0x1e)" ( identifier , identifier , number_literal ))) ;) (if_statement "if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }" if (parenthesized_expression "((param_2 != (char *)0x0) && (bVar18))" ( (binary_expression "(param_2 != (char *)0x0) && (bVar18)" (parenthesized_expression "(param_2 != (char *)0x0)" ( (binary_expression "param_2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(bVar18)" ( identifier ))) )) (compound_statement "{\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }" { (expression_statement "param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);" (assignment_expression "param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX)" identifier = (cast_expression "(char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX)" identifier (argument_list "(puVar10,param_2,local_14c,extraout_ECX)" ( identifier , identifier , identifier , identifier ))))) ;) })) (expression_statement "FUN_0005d370(puVar10,local_85,param_2,param_2);" (call_expression "FUN_0005d370(puVar10,local_85,param_2,param_2)" identifier (argument_list "(puVar10,local_85,param_2,param_2)" ( identifier , identifier , identifier , identifier ))) ;) (expression_statement "FUN_0005d940(local_85,0x14,local_134,local_124,local_99);" (call_expression "FUN_0005d940(local_85,0x14,local_134,local_124,local_99)" identifier (argument_list "(local_85,0x14,local_134,local_124,local_99)" ( identifier , number_literal , identifier , identifier , identifier ))) ;) (expression_statement "FUN_0001b330(local_85,0x14);" (call_expression "FUN_0001b330(local_85,0x14)" identifier (argument_list "(local_85,0x14)" ( identifier , number_literal ))) ;) (expression_statement "FUN_0001b330(puVar10,0x60);" (call_expression "FUN_0001b330(puVar10,0x60)" identifier (argument_list "(puVar10,0x60)" ( identifier , number_literal ))) ;) }) (else_clause "else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }" else (compound_statement "{\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }" { (expression_statement "FUN_0005d890(local_134,local_124,local_99,puVar10);" (call_expression "FUN_0005d890(local_134,local_124,local_99,puVar10)" identifier (argument_list "(local_134,local_124,local_99,puVar10)" ( identifier , identifier , identifier , identifier ))) ;) (expression_statement "puVar10 = (uint *)0x0;" (assignment_expression "puVar10 = (uint *)0x0" identifier = (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })))) (expression_statement "pcVar22 = local_49;" (assignment_expression "pcVar22 = local_49" identifier = identifier) ;) (if_statement "if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }" if (parenthesized_expression "(bVar19)" ( identifier )) (compound_statement "{\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }" { (expression_statement "FUN_0001b330(local_134,local_124,puVar10,puVar10);" (call_expression "FUN_0001b330(local_134,local_124,puVar10,puVar10)" identifier (argument_list "(local_134,local_124,puVar10,puVar10)" ( identifier , identifier , identifier , identifier ))) ;) (expression_statement "FUN_0001b250(local_134);" (call_expression "FUN_0001b250(local_134)" identifier (argument_list "(local_134)" ( identifier ))) ;) })) (expression_statement "iVar23 = 0;" (assignment_expression "iVar23 = 0" identifier = number_literal) ;) (do_statement "do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);" do (compound_statement "{\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      }" { (expression_statement "puVar1 = local_99 + iVar23;" (assignment_expression "puVar1 = local_99 + iVar23" identifier = (binary_expression "local_99 + iVar23" identifier + identifier)) ;) (expression_statement "iVar7 = iVar23 * 2;" (assignment_expression "iVar7 = iVar23 * 2" identifier = (binary_expression "iVar23 * 2" identifier * number_literal)) ;) (expression_statement "iVar23 = iVar23 + 1;" (assignment_expression "iVar23 = iVar23 + 1" identifier = (binary_expression "iVar23 + 1" identifier + number_literal)) ;) (expression_statement "__sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);" (call_expression "__sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1)" identifier (argument_list "(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1)" ( (binary_expression "pcVar22 + iVar7" identifier + identifier) , number_literal , number_literal , (pointer_expression "&DAT_0007dc2b" & identifier) , (pointer_expression "*puVar1" * identifier) ))) ;) }) while (parenthesized_expression "(iVar23 != 0x14)" ( (binary_expression "iVar23 != 0x14" identifier != number_literal) )) ;) (expression_statement "iVar9 = extraout_ECX_00;" (assignment_expression "iVar9 = extraout_ECX_00" identifier = identifier) ;) (expression_statement "iVar23 = extraout_ECX_00;" (assignment_expression "iVar23 = extraout_ECX_00" identifier = identifier) ;) (expression_statement "iVar7 = strcmp(local_144,pcVar22);" (assignment_expression "iVar7 = strcmp(local_144,pcVar22)" identifier = (call_expression "strcmp(local_144,pcVar22)" identifier (argument_list "(local_144,pcVar22)" ( identifier , identifier )))) ;) (if_statement "if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (compound_statement "{\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }" { (if_statement "if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }" if (parenthesized_expression "(bVar18)" ( identifier )) (compound_statement "{\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }" { (expression_statement "pcVar15 = "wrong passphrase";" (assignment_expression "pcVar15 = "wrong passphrase"" identifier = (string_literal ""wrong passphrase"" " string_content ")) ;) (expression_statement "piVar14 = (int *)&DAT_000a9378;" (assignment_expression "piVar14 = (int *)&DAT_000a9378" identifier = (cast_expression "(int *)&DAT_000a9378" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_000a9378" & identifier))) ;) }) (else_clause "else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }" else (compound_statement "{\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }" { (expression_statement "pcVar15 = "MAC failed";" (assignment_expression "pcVar15 = "MAC failed"" identifier = (string_literal ""MAC failed"" " string_content ")) ;) (expression_statement "piVar14 = (int *)0x0;" (assignment_expression "piVar14 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }))) (goto_statement "goto LAB_000554a5;" goto statement_identifier ;) })) (expression_statement "FUN_0001b250(local_144,pcVar22,iVar9,iVar23);" (call_expression "FUN_0001b250(local_144,pcVar22,iVar9,iVar23)" identifier (argument_list "(local_144,pcVar22,iVar9,iVar23)" ( identifier , identifier , identifier , identifier ))) ;) (expression_statement "pcVar22 = &DAT_0000000c;" (assignment_expression "pcVar22 = &DAT_0000000c" identifier = (pointer_expression "&DAT_0000000c" & identifier)) ;) (expression_statement "piVar14 = (int *)FUN_0001a9c0(1,0xc);" (assignment_expression "piVar14 = (int *)FUN_0001a9c0(1,0xc)" identifier = (cast_expression "(int *)FUN_0001a9c0(1,0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001a9c0(1,0xc)" identifier (argument_list "(1,0xc)" ( number_literal , number_literal ))))) ;) (expression_statement "piVar14[2] = (int)pcVar5;" (assignment_expression "piVar14[2] = (int)pcVar5" (subscript_expression "piVar14[2]" identifier [ number_literal ]) = (cast_expression "(int)pcVar5" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "*piVar14 = iVar4;" (assignment_expression "*piVar14 = iVar4" (pointer_expression "*piVar14" * identifier) = identifier) ;) (expression_statement "iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);" (assignment_expression "iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100)" identifier = (call_expression "(**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100)" (parenthesized_expression "(**(code **)(iVar4 + 0x14))" ( (pointer_expression "**(code **)(iVar4 + 0x14)" * (pointer_expression "*(code **)(iVar4 + 0x14)" * (cast_expression "(code **)(iVar4 + 0x14)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + 0x14)" ( (binary_expression "iVar4 + 0x14" identifier + number_literal) ))))) )) (argument_list "(iVar4,local_13c,local_104,local_140,local_100)" ( identifier , identifier , identifier , identifier , identifier )))) ;) (expression_statement "piVar14[1] = iVar4;" (assignment_expression "piVar14[1] = iVar4" (subscript_expression "piVar14[1]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }" { (expression_statement "FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);" (call_expression "FUN_0001b250(local_13c,pcVar22,iVar9,iVar23)" identifier (argument_list "(local_13c,pcVar22,iVar9,iVar23)" ( identifier , identifier , identifier , identifier ))) ;) (expression_statement "FUN_0001b330(local_140,local_100);" (call_expression "FUN_0001b330(local_140,local_100)" identifier (argument_list "(local_140,local_100)" ( identifier , identifier ))) ;) (expression_statement "FUN_0001b250(local_140);" (call_expression "FUN_0001b250(local_140)" identifier (argument_list "(local_140)" ( identifier ))) ;) (expression_statement "FUN_0001b250(pbVar8);" (call_expression "FUN_0001b250(pbVar8)" identifier (argument_list "(pbVar8)" ( identifier ))) ;) (if_statement "if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }" if (parenthesized_expression "(param_3 != (undefined4 *)0x0)" ( (binary_expression "param_3 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                          *param_3 = 0;\n                        }" { (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" * identifier) = number_literal) ;) })) (goto_statement "goto LAB_0005507a;" goto statement_identifier ;) })) (expression_statement "pcVar15 = "createkey failed";" (assignment_expression "pcVar15 = "createkey failed"" identifier = (string_literal ""createkey failed"" " string_content ")) ;) (expression_statement "FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);" (call_expression "FUN_0001b250(piVar14,pcVar22,iVar9,iVar23)" identifier (argument_list "(piVar14,pcVar22,iVar9,iVar23)" ( identifier , identifier , identifier , identifier ))) ;) (goto_statement "goto LAB_0005554f;" goto statement_identifier ;) })) (expression_statement "local_144 = (char *)FUN_00053e50();" (assignment_expression "local_144 = (char *)FUN_00053e50()" identifier = (cast_expression "(char *)FUN_00053e50()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00053e50()" identifier (argument_list "()" ( ))))) ;) (expression_statement "iVar23 = iVar9;" (assignment_expression "iVar23 = iVar9" identifier = identifier) ;) (if_statement "if (local_144 == (char *)0x0) goto LAB_0005553d;" if (parenthesized_expression "(local_144 == (char *)0x0)" ( (binary_expression "local_144 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0005553d;" goto statement_identifier ;)) (expression_statement "fclose(__stream);" (call_expression "fclose(__stream)" identifier (argument_list "(__stream)" ( identifier ))) ;) (expression_statement "bVar20 = bVar18;" (assignment_expression "bVar20 = bVar18" identifier = identifier) ;) (if_statement "if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }" if (parenthesized_expression "(!bVar18)" ( (unary_expression "!bVar18" ! identifier) )) (compound_statement "{\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }" { (expression_statement "bVar20 = true;" (assignment_expression "bVar20 = true" identifier = true) ;) (labeled_statement "LAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;" statement_identifier : (if_statement "if (bVar3 != 0) goto LAB_00055378;" if (parenthesized_expression "(bVar3 != 0)" ( (binary_expression "bVar3 != 0" identifier != number_literal) )) (goto_statement "goto LAB_00055378;" goto statement_identifier ;))) (expression_statement "uVar11 = 0xffffffff;" (assignment_expression "uVar11 = 0xffffffff" identifier = number_literal) ;) (expression_statement "pcVar15 = *(char **)(iVar4 + 0x30);" (assignment_expression "pcVar15 = *(char **)(iVar4 + 0x30)" identifier = (pointer_expression "*(char **)(iVar4 + 0x30)" * (cast_expression "(char **)(iVar4 + 0x30)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + 0x30)" ( (binary_expression "iVar4 + 0x30" identifier + number_literal) ))))) ;) (do_statement "do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');" do (compound_statement "{\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      }" { (if_statement "if (uVar11 == 0) break;" if (parenthesized_expression "(uVar11 == 0)" ( (binary_expression "uVar11 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar11 = uVar11 - 1;" (assignment_expression "uVar11 = uVar11 - 1" identifier = (binary_expression "uVar11 - 1" identifier - number_literal)) ;) (expression_statement "cVar2 = *pcVar15;" (assignment_expression "cVar2 = *pcVar15" identifier = (pointer_expression "*pcVar15" * identifier)) ;) (expression_statement "pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;" (assignment_expression "pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1" identifier = (binary_expression "pcVar15 + (uint)bVar21 * -2 + 1" (binary_expression "pcVar15 + (uint)bVar21 * -2" identifier + (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "uVar11 = ~uVar11;" (assignment_expression "uVar11 = ~uVar11" identifier = (unary_expression "~uVar11" ~ identifier)) ;) (expression_statement "__n = uVar11 - 1;" (assignment_expression "__n = uVar11 - 1" identifier = (binary_expression "uVar11 - 1" identifier - number_literal)) ;) (expression_statement "uVar12 = 0xffffffff;" (assignment_expression "uVar12 = 0xffffffff" identifier = number_literal) ;) (expression_statement "pbVar16 = pbVar8;" (assignment_expression "pbVar16 = pbVar8" identifier = identifier) ;) (do_statement "do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);" do (compound_statement "{\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      }" { (if_statement "if (uVar12 == 0) break;" if (parenthesized_expression "(uVar12 == 0)" ( (binary_expression "uVar12 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar12 = uVar12 - 1;" (assignment_expression "uVar12 = uVar12 - 1" identifier = (binary_expression "uVar12 - 1" identifier - number_literal)) ;) (expression_statement "bVar3 = *pbVar16;" (assignment_expression "bVar3 = *pbVar16" identifier = (pointer_expression "*pbVar16" * identifier)) ;) (expression_statement "pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;" (assignment_expression "pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1" identifier = (binary_expression "pbVar16 + (uint)bVar21 * -2 + 1" (binary_expression "pbVar16 + (uint)bVar21 * -2" identifier + (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar3 != 0)" ( (binary_expression "bVar3 != 0" identifier != number_literal) )) ;) (expression_statement "uVar13 = 0xffffffff;" (assignment_expression "uVar13 = 0xffffffff" identifier = number_literal) ;) (expression_statement "uVar12 = ~uVar12;" (assignment_expression "uVar12 = ~uVar12" identifier = (unary_expression "~uVar12" ~ identifier)) ;) (expression_statement "__n_01 = uVar12 - 1;" (assignment_expression "__n_01 = uVar12 - 1" identifier = (binary_expression "uVar12 - 1" identifier - number_literal)) ;) (expression_statement "pcVar15 = pcVar5;" (assignment_expression "pcVar15 = pcVar5" identifier = identifier) ;) (do_statement "do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');" do (compound_statement "{\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      }" { (if_statement "if (uVar13 == 0) break;" if (parenthesized_expression "(uVar13 == 0)" ( (binary_expression "uVar13 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "uVar13 = uVar13 - 1;" (assignment_expression "uVar13 = uVar13 - 1" identifier = (binary_expression "uVar13 - 1" identifier - number_literal)) ;) (expression_statement "cVar2 = *pcVar15;" (assignment_expression "cVar2 = *pcVar15" identifier = (pointer_expression "*pcVar15" * identifier)) ;) (expression_statement "pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;" (assignment_expression "pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1" identifier = (binary_expression "pcVar15 + (uint)bVar21 * -2 + 1" (binary_expression "pcVar15 + (uint)bVar21 * -2" identifier + (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(cVar2 != '\0')" ( (binary_expression "cVar2 != '\0'" identifier != (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "uVar13 = ~uVar13;" (assignment_expression "uVar13 = ~uVar13" identifier = (unary_expression "~uVar13" ~ identifier)) ;) (expression_statement "__n_00 = uVar13 - 1;" (assignment_expression "__n_00 = uVar13 - 1" identifier = (binary_expression "uVar13 - 1" identifier - number_literal)) ;) (expression_statement "iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;" (assignment_expression "iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104" identifier = (binary_expression "uVar13 + uVar12 + 0xd + uVar11 + local_104" (binary_expression "uVar13 + uVar12 + 0xd + uVar11" (binary_expression "uVar13 + uVar12 + 0xd" (binary_expression "uVar13 + uVar12" identifier + identifier) + number_literal) + identifier) + identifier)) ;) (expression_statement "local_124 = iVar23 + 4 + local_100;" (assignment_expression "local_124 = iVar23 + 4 + local_100" identifier = (binary_expression "iVar23 + 4 + local_100" (binary_expression "iVar23 + 4" identifier + number_literal) + identifier)) ;) (expression_statement "local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);" (assignment_expression "local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23)" identifier = (cast_expression "(uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0001a9c0(local_124,1,iVar23,iVar23)" identifier (argument_list "(local_124,1,iVar23,iVar23)" ( identifier , number_literal , identifier , identifier ))))) ;) (expression_statement "*local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;" (assignment_expression "*local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000" (pointer_expression "*local_134" * identifier) = (binary_expression "__n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000" (binary_expression "__n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8" (binary_expression "__n >> 0x18 | (__n & 0xff0000) >> 8" (binary_expression "__n >> 0x18" identifier >> number_literal) | (binary_expression "(__n & 0xff0000) >> 8" (parenthesized_expression "(__n & 0xff0000)" ( (binary_expression "__n & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(__n & 0xff00) << 8" (parenthesized_expression "(__n & 0xff00)" ( (binary_expression "__n & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "__n * 0x1000000" identifier * number_literal))) ;) (expression_statement "memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);" (call_expression "memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n)" identifier (argument_list "(local_134 + 1,*(void **)(iVar4 + 0x30),__n)" ( (binary_expression "local_134 + 1" identifier + number_literal) , (pointer_expression "*(void **)(iVar4 + 0x30)" * (cast_expression "(void **)(iVar4 + 0x30)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + 0x30)" ( (binary_expression "iVar4 + 0x30" identifier + number_literal) )))) , identifier ))) ;) (expression_statement "puVar10 = (uint *)((int)local_134 + uVar11 + 3);" (assignment_expression "puVar10 = (uint *)((int)local_134 + uVar11 + 3)" identifier = (cast_expression "(uint *)((int)local_134 + uVar11 + 3)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_134 + uVar11 + 3)" ( (binary_expression "(int)local_134 + uVar11 + 3" (binary_expression "(int)local_134 + uVar11" (cast_expression "(int)local_134" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) ;) (expression_statement "*puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;" (assignment_expression "*puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000" (pointer_expression "*puVar10" * identifier) = (binary_expression "__n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000" (binary_expression "__n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8" (binary_expression "__n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8" (binary_expression "__n_01 >> 0x18" identifier >> number_literal) | (binary_expression "(__n_01 & 0xff0000) >> 8" (parenthesized_expression "(__n_01 & 0xff0000)" ( (binary_expression "__n_01 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(__n_01 & 0xff00) << 8" (parenthesized_expression "(__n_01 & 0xff00)" ( (binary_expression "__n_01 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "__n_01 * 0x1000000" identifier * number_literal))) ;) (expression_statement "memcpy(puVar10 + 1,pbVar8,__n_01);" (call_expression "memcpy(puVar10 + 1,pbVar8,__n_01)" identifier (argument_list "(puVar10 + 1,pbVar8,__n_01)" ( (binary_expression "puVar10 + 1" identifier + number_literal) , identifier , identifier ))) ;) (expression_statement "puVar10 = (uint *)((int)puVar10 + uVar12 + 3);" (assignment_expression "puVar10 = (uint *)((int)puVar10 + uVar12 + 3)" identifier = (cast_expression "(uint *)((int)puVar10 + uVar12 + 3)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar10 + uVar12 + 3)" ( (binary_expression "(int)puVar10 + uVar12 + 3" (binary_expression "(int)puVar10 + uVar12" (cast_expression "(int)puVar10" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) ;) (expression_statement "*puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;" (assignment_expression "*puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000" (pointer_expression "*puVar10" * identifier) = (binary_expression "__n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000" (binary_expression "__n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8" (binary_expression "__n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8" (binary_expression "__n_00 >> 0x18" identifier >> number_literal) | (binary_expression "(__n_00 & 0xff0000) >> 8" (parenthesized_expression "(__n_00 & 0xff0000)" ( (binary_expression "__n_00 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(__n_00 & 0xff00) << 8" (parenthesized_expression "(__n_00 & 0xff00)" ( (binary_expression "__n_00 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "__n_00 * 0x1000000" identifier * number_literal))) ;) (expression_statement "memcpy(puVar10 + 1,pcVar5,__n_00);" (call_expression "memcpy(puVar10 + 1,pcVar5,__n_00)" identifier (argument_list "(puVar10 + 1,pcVar5,__n_00)" ( (binary_expression "puVar10 + 1" identifier + number_literal) , identifier , identifier ))) ;) (expression_statement "puVar10 = (uint *)((int)puVar10 + uVar13 + 3);" (assignment_expression "puVar10 = (uint *)((int)puVar10 + uVar13 + 3)" identifier = (cast_expression "(uint *)((int)puVar10 + uVar13 + 3)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar10 + uVar13 + 3)" ( (binary_expression "(int)puVar10 + uVar13 + 3" (binary_expression "(int)puVar10 + uVar13" (cast_expression "(int)puVar10" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) ;) (expression_statement "*(undefined1 *)puVar10 = local_104._3_1_;" (assignment_expression "*(undefined1 *)puVar10 = local_104._3_1_" (pointer_expression "*(undefined1 *)puVar10" * (cast_expression "(undefined1 *)puVar10" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (field_expression "local_104._3_1_" identifier . field_identifier)) ;) (expression_statement "*(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);" (assignment_expression "*(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10)" (pointer_expression "*(char *)((int)puVar10 + 1)" * (cast_expression "(char *)((int)puVar10 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar10 + 1)" ( (binary_expression "(int)puVar10 + 1" (cast_expression "(int)puVar10" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (cast_expression "(char)(local_104 >> 0x10)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(local_104 >> 0x10)" ( (binary_expression "local_104 >> 0x10" identifier >> number_literal) )))) ;) (expression_statement "*(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);" (assignment_expression "*(char *)((int)puVar10 + 2) = (char)(local_104 >> 8)" (pointer_expression "*(char *)((int)puVar10 + 2)" * (cast_expression "(char *)((int)puVar10 + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar10 + 2)" ( (binary_expression "(int)puVar10 + 2" (cast_expression "(int)puVar10" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (cast_expression "(char)(local_104 >> 8)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(local_104 >> 8)" ( (binary_expression "local_104 >> 8" identifier >> number_literal) )))) ;) (expression_statement "*(char *)((int)puVar10 + 3) = (char)local_104;" (assignment_expression "*(char *)((int)puVar10 + 3) = (char)local_104" (pointer_expression "*(char *)((int)puVar10 + 3)" * (cast_expression "(char *)((int)puVar10 + 3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar10 + 3)" ( (binary_expression "(int)puVar10 + 3" (cast_expression "(int)puVar10" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (cast_expression "(char)local_104" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "memcpy(puVar10 + 1,local_13c,local_104);" (call_expression "memcpy(puVar10 + 1,local_13c,local_104)" identifier (argument_list "(puVar10 + 1,local_13c,local_104)" ( (binary_expression "puVar10 + 1" identifier + number_literal) , identifier , identifier ))) ;) (expression_statement "puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);" (assignment_expression "puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4)" identifier = (cast_expression "(undefined1 *)((int)puVar10 + local_104 + 4)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar10 + local_104 + 4)" ( (binary_expression "(int)puVar10 + local_104 + 4" (binary_expression "(int)puVar10 + local_104" (cast_expression "(int)puVar10" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) ;) (expression_statement "*puVar1 = local_100._3_1_;" (assignment_expression "*puVar1 = local_100._3_1_" (pointer_expression "*puVar1" * identifier) = (field_expression "local_100._3_1_" identifier . field_identifier)) ;) (expression_statement "puVar1[1] = (char)(local_100 >> 0x10);" (assignment_expression "puVar1[1] = (char)(local_100 >> 0x10)" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = (cast_expression "(char)(local_100 >> 0x10)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(local_100 >> 0x10)" ( (binary_expression "local_100 >> 0x10" identifier >> number_literal) )))) ;) (expression_statement "puVar1[2] = (char)(local_100 >> 8);" (assignment_expression "puVar1[2] = (char)(local_100 >> 8)" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = (cast_expression "(char)(local_100 >> 8)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(local_100 >> 8)" ( (binary_expression "local_100 >> 8" identifier >> number_literal) )))) ;) (expression_statement "puVar1[3] = (char)local_100;" (assignment_expression "puVar1[3] = (char)local_100" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = (cast_expression "(char)local_100" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "memcpy(puVar1 + 4,local_140,local_100);" (call_expression "memcpy(puVar1 + 4,local_140,local_100)" identifier (argument_list "(puVar1 + 4,local_140,local_100)" ( (binary_expression "puVar1 + 4" identifier + number_literal) , identifier , identifier ))) ;) (expression_statement "bVar19 = true;" (assignment_expression "bVar19 = true" identifier = true) ;) (goto_statement "goto LAB_00055390;" goto statement_identifier ;) })) (labeled_statement "LAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }" statement_identifier : (if_statement "if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }" if (parenthesized_expression "((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0))" ( (binary_expression "(param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)" (parenthesized_expression "(param_2 != (char *)0x0)" ( (binary_expression "param_2 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "((int)local_100 % (int)local_124 == 0)" ( (binary_expression "(int)local_100 % (int)local_124 == 0" (binary_expression "(int)local_100 % (int)local_124" (cast_expression "(int)local_100" ( (type_descriptor "int" primitive_type) ) identifier) % (cast_expression "(int)local_124" ( (type_descriptor "int" primitive_type) ) identifier)) == number_literal) ))) )) (compound_statement "{\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }" { (expression_statement "puVar10 = local_fc;" (assignment_expression "puVar10 = local_fc" identifier = identifier) ;) (expression_statement "FUN_0005ce60(puVar10,pcVar22,iVar9);" (call_expression "FUN_0005ce60(puVar10,pcVar22,iVar9)" identifier (argument_list "(puVar10,pcVar22,iVar9)" ( identifier , identifier , identifier ))) ;) (expression_statement "FUN_0005cea0(puVar10,&DAT_0007db1c,4);" (call_expression "FUN_0005cea0(puVar10,&DAT_0007db1c,4)" identifier (argument_list "(puVar10,&DAT_0007db1c,4)" ( identifier , (pointer_expression "&DAT_0007db1c" & identifier) , number_literal ))) ;) (expression_statement "FUN_0005cea0(puVar10,param_2,local_14c);" (call_expression "FUN_0005cea0(puVar10,param_2,local_14c)" identifier (argument_list "(puVar10,param_2,local_14c)" ( identifier , identifier , identifier ))) ;) (expression_statement "FUN_0005d370(puVar10,local_49);" (call_expression "FUN_0005d370(puVar10,local_49)" identifier (argument_list "(puVar10,local_49)" ( identifier , identifier ))) ;) (expression_statement "FUN_0005ce60(puVar10);" (call_expression "FUN_0005ce60(puVar10)" identifier (argument_list "(puVar10)" ( identifier ))) ;) (expression_statement "FUN_0005cea0(puVar10,&DAT_0007db21,4);" (call_expression "FUN_0005cea0(puVar10,&DAT_0007db21,4)" identifier (argument_list "(puVar10,&DAT_0007db21,4)" ( identifier , (pointer_expression "&DAT_0007db21" & identifier) , number_literal ))) ;) (expression_statement "FUN_0005cea0(puVar10,param_2,local_14c);" (call_expression "FUN_0005cea0(puVar10,param_2,local_14c)" identifier (argument_list "(puVar10,param_2,local_14c)" ( identifier , identifier , identifier ))) ;) (expression_statement "FUN_0005d370(puVar10,local_35);" (call_expression "FUN_0005d370(puVar10,local_35)" identifier (argument_list "(puVar10,local_35)" ( identifier , identifier ))) ;) (expression_statement "FUN_00042f80(local_49,local_140,local_100);" (call_expression "FUN_00042f80(local_49,local_140,local_100)" identifier (argument_list "(local_49,local_140,local_100)" ( identifier , identifier , identifier ))) ;) (goto_statement "goto LAB_00055778;" goto statement_identifier ;) }))) (expression_statement "pcVar15 = "file format error";" (assignment_expression "pcVar15 = "file format error"" identifier = (string_literal ""file format error"" " string_content ")) ;) (expression_statement "piVar14 = (int *)0x0;" (assignment_expression "piVar14 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (labeled_statement "LAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);" statement_identifier : (expression_statement "FUN_0001b250(pcVar5,pcVar22,iVar9);" (call_expression "FUN_0001b250(pcVar5,pcVar22,iVar9)" identifier (argument_list "(pcVar5,pcVar22,iVar9)" ( identifier , identifier , identifier ))) ;)) (expression_statement "FUN_0001b250(pbVar8);" (call_expression "FUN_0001b250(pbVar8)" identifier (argument_list "(pbVar8)" ( identifier ))) ;) (expression_statement "FUN_0001b250(local_144);" (call_expression "FUN_0001b250(local_144)" identifier (argument_list "(local_144)" ( identifier ))) ;) }))) (if_statement "if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }" if (parenthesized_expression "(local_13c != (void *)0x0)" ( (binary_expression "local_13c != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    FUN_0001b250(local_13c);\n                  }" { (expression_statement "FUN_0001b250(local_13c);" (call_expression "FUN_0001b250(local_13c)" identifier (argument_list "(local_13c)" ( identifier ))) ;) })) (if_statement "if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }" if (parenthesized_expression "(local_140 != (uint *)0x0)" ( (binary_expression "local_140 != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }" { (expression_statement "FUN_0001b330(local_140,local_100);" (call_expression "FUN_0001b330(local_140,local_100)" identifier (argument_list "(local_140,local_100)" ( identifier , identifier ))) ;) (expression_statement "FUN_0001b250(local_140);" (call_expression "FUN_0001b250(local_140)" identifier (argument_list "(local_140)" ( identifier ))) ;) })) (goto_statement "goto LAB_00055070;" goto statement_identifier ;) })) })) }) (else_clause "else {\n              iVar7 = 5;\n              pbVar16 = pbVar8;\n              pbVar17 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar19 = *pbVar16 < *pbVar17;\n                bVar18 = *pbVar16 == *pbVar17;\n                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n              } while (bVar18);\n              if ((!bVar19 && !bVar18) == bVar19) {\n                local_124 = 1;\n                bVar18 = false;\n                goto LAB_000551a8;\n              }\n            }" else (compound_statement "{\n              iVar7 = 5;\n              pbVar16 = pbVar8;\n              pbVar17 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar19 = *pbVar16 < *pbVar17;\n                bVar18 = *pbVar16 == *pbVar17;\n                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n              } while (bVar18);\n              if ((!bVar19 && !bVar18) == bVar19) {\n                local_124 = 1;\n                bVar18 = false;\n                goto LAB_000551a8;\n              }\n            }" { (expression_statement "iVar7 = 5;" (assignment_expression "iVar7 = 5" identifier = number_literal) ;) (expression_statement "pbVar16 = pbVar8;" (assignment_expression "pbVar16 = pbVar8" identifier = identifier) ;) (expression_statement "pbVar17 = &DAT_0007471c;" (assignment_expression "pbVar17 = &DAT_0007471c" identifier = (pointer_expression "&DAT_0007471c" & identifier)) ;) (do_statement "do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar19 = *pbVar16 < *pbVar17;\n                bVar18 = *pbVar16 == *pbVar17;\n                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n              } while (bVar18);" do (compound_statement "{\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar19 = *pbVar16 < *pbVar17;\n                bVar18 = *pbVar16 == *pbVar17;\n                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n              }" { (if_statement "if (iVar7 == 0) break;" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar7 = iVar7 + -1;" (assignment_expression "iVar7 = iVar7 + -1" identifier = (binary_expression "iVar7 + -1" identifier + number_literal)) ;) (expression_statement "bVar19 = *pbVar16 < *pbVar17;" (assignment_expression "bVar19 = *pbVar16 < *pbVar17" identifier = (binary_expression "*pbVar16 < *pbVar17" (pointer_expression "*pbVar16" * identifier) < (pointer_expression "*pbVar17" * identifier))) ;) (expression_statement "bVar18 = *pbVar16 == *pbVar17;" (assignment_expression "bVar18 = *pbVar16 == *pbVar17" identifier = (binary_expression "*pbVar16 == *pbVar17" (pointer_expression "*pbVar16" * identifier) == (pointer_expression "*pbVar17" * identifier))) ;) (expression_statement "pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;" (assignment_expression "pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1" identifier = (binary_expression "pbVar16 + (uint)bVar21 * -2 + 1" (binary_expression "pbVar16 + (uint)bVar21 * -2" identifier + (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;" (assignment_expression "pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1" identifier = (binary_expression "pbVar17 + (uint)bVar21 * -2 + 1" (binary_expression "pbVar17 + (uint)bVar21 * -2" identifier + (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) }) while (parenthesized_expression "(bVar18)" ( identifier )) ;) (if_statement "if ((!bVar19 && !bVar18) == bVar19) {\n                local_124 = 1;\n                bVar18 = false;\n                goto LAB_000551a8;\n              }" if (parenthesized_expression "((!bVar19 && !bVar18) == bVar19)" ( (binary_expression "(!bVar19 && !bVar18) == bVar19" (parenthesized_expression "(!bVar19 && !bVar18)" ( (binary_expression "!bVar19 && !bVar18" (unary_expression "!bVar19" ! identifier) && (unary_expression "!bVar18" ! identifier)) )) == identifier) )) (compound_statement "{\n                local_124 = 1;\n                bVar18 = false;\n                goto LAB_000551a8;\n              }" { (expression_statement "local_124 = 1;" (assignment_expression "local_124 = 1" identifier = number_literal) ;) (expression_statement "bVar18 = false;" (assignment_expression "bVar18 = false" identifier = false) ;) (goto_statement "goto LAB_000551a8;" goto statement_identifier ;) })) }))) (expression_statement "piVar14 = (int *)0x0;" (assignment_expression "piVar14 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "fclose(__stream);" (call_expression "fclose(__stream)" identifier (argument_list "(__stream)" ( identifier ))) ;) (expression_statement "pcVar15 = "file format error";" (assignment_expression "pcVar15 = "file format error"" identifier = (string_literal ""file format error"" " string_content ")) ;) (expression_statement "FUN_0001b250(pbVar8);" (call_expression "FUN_0001b250(pbVar8)" identifier (argument_list "(pbVar8)" ( identifier ))) ;) (goto_statement "goto LAB_00055070;" goto statement_identifier ;) })) })) })) (labeled_statement "LAB_0005510e:\n      pcVar15 = "file format error";" statement_identifier : (expression_statement "pcVar15 = "file format error";" (assignment_expression "pcVar15 = "file format error"" identifier = (string_literal ""file format error"" " string_content ")) ;)) (expression_statement "piVar14 = (int *)0x0;" (assignment_expression "piVar14 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "fclose(__stream);" (call_expression "fclose(__stream)" identifier (argument_list "(__stream)" ( identifier ))) ;) }))) }))) (labeled_statement "LAB_00055070:\n  if (param_3 != (undefined4 *)0x0) {\n    *param_3 = pcVar15;\n  }" statement_identifier : (if_statement "if (param_3 != (undefined4 *)0x0) {\n    *param_3 = pcVar15;\n  }" if (parenthesized_expression "(param_3 != (undefined4 *)0x0)" ( (binary_expression "param_3 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *param_3 = pcVar15;\n  }" { (expression_statement "*param_3 = pcVar15;" (assignment_expression "*param_3 = pcVar15" (pointer_expression "*param_3" * identifier) = identifier) ;) }))) (labeled_statement "LAB_0005507a:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return piVar14;\n  }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return piVar14;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return piVar14;\n  }" { (return_statement "return piVar14;" return identifier ;) }))) (expression_statement "FUN_0006f2a0();" (call_expression "FUN_0006f2a0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE 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 (array_declarator IDENT [ LIT ]) ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = 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 IDENT (argument_list ( IDENT )))) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , (pointer_expression & 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 = (string_literal " string_content escape_sequence string_content ")) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT == LIT)) ;) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (string_literal " string_content "))) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) < (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) == (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) }) while (parenthesized_expression ( IDENT )) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (unary_expression ! IDENT) && (unary_expression ! IDENT)) )) - IDENT)) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT == LIT)) ;) (if_statement if (parenthesized_expression ( (unary_expression ! IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (string_literal " string_content "))) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) < (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) == (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) }) while (parenthesized_expression ( IDENT )) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (unary_expression ! IDENT) && (unary_expression ! IDENT)) )) == IDENT)) ;) (if_statement if (parenthesized_expression ( (unary_expression ! IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (string_literal " string_content "))) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) < (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) == (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) }) while (parenthesized_expression ( IDENT )) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (unary_expression ! IDENT) && (unary_expression ! IDENT)) )) == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }))) (goto_statement goto statement_identifier ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT == LIT)) ;) (if_statement if (parenthesized_expression ( (unary_expression ! IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (string_literal " string_content "))) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) < (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) == (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) }) while (parenthesized_expression ( IDENT )) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (unary_expression ! IDENT) && (unary_expression ! IDENT)) )) == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ;) (if_statement if (parenthesized_expression ( (unary_expression ! IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (string_literal " string_content "))) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) < (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) == (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) }) while (parenthesized_expression ( IDENT )) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (unary_expression ! IDENT) && (unary_expression ! IDENT)) )) == IDENT)) ;) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;)) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT == LIT)) ;) (if_statement if (parenthesized_expression ( (unary_expression ! IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (string_literal " string_content "))) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) < (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) == (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) }) while (parenthesized_expression ( IDENT )) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (unary_expression ! IDENT) && (unary_expression ! IDENT)) )) == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT == LIT)) ;) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = IDENT) ;)) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;)) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (string_literal " string_content "))) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) < (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) == (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) }) while (parenthesized_expression ( IDENT )) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (unary_expression ! IDENT) && (unary_expression ! IDENT)) )) != IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( 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 *)) ) (call_expression IDENT (argument_list ( ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;)) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) , (string_literal " string_content ") )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = 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 *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = 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 *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) , (string_literal " string_content ") )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT) , (string_literal " string_content ") )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) || (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) ))) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = BOOL) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( IDENT )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = BOOL) ;)) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (for_statement for ( (assignment_expression IDENT = LIT) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT + LIT)) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , LIT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( IDENT ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT ))))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , IDENT , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) })))) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + IDENT) , LIT , LIT , (pointer_expression & IDENT) , (pointer_expression * IDENT) ))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( IDENT )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) }))) (goto_statement goto statement_identifier ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , LIT ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT , IDENT , IDENT , IDENT , IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) })) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT ))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (unary_expression ! IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = BOOL) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;))) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) ;) (expression_statement (assignment_expression IDENT = (unary_expression ~ IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (unary_expression ~ IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (char_literal ' escape_sequence ')) )) ;) (expression_statement (assignment_expression IDENT = (unary_expression ~ IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (binary_expression (binary_expression IDENT + IDENT) + LIT) + IDENT) + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + LIT) + IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , LIT , IDENT , IDENT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (binary_expression (binary_expression (binary_expression IDENT >> LIT) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) >> LIT)) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT)) | (binary_expression IDENT * LIT))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (binary_expression (binary_expression (binary_expression IDENT >> LIT) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) >> LIT)) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT)) | (binary_expression IDENT * LIT))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (binary_expression (binary_expression (binary_expression IDENT >> LIT) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) >> LIT)) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT)) | (binary_expression IDENT * LIT))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = (field_expression IDENT . field_identifier)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT >> LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT >> LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (field_expression IDENT . field_identifier)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT >> LIT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT >> LIT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (goto_statement goto statement_identifier ;) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) % (cast_expression ( (type_descriptor TYPE) ) IDENT)) == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , LIT ))) ;) (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 ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) , LIT ))) ;) (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 , IDENT , IDENT ))) ;) (goto_statement goto statement_identifier ;) }))) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;)) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (goto_statement goto statement_identifier ;) })) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) < (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) == (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) }) while (parenthesized_expression ( IDENT )) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (unary_expression ! IDENT) && (unary_expression ! IDENT)) )) == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = BOOL) ;) (goto_statement goto statement_identifier ;) })) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (goto_statement goto statement_identifier ;) })) })) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;)) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }))) }))) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) }))) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) }))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "int * FUN_00054f40(undefined4 param_1,char *param_2,undefined4 *param_3)\n\n{\n  uint __n;\n  uint __n_00;\n  undefined1 *puVar1;\n  char cVar2;\n  byte bVar3;\n  FILE *__stream;\n  int iVar4;\n  char *pcVar5;\n  size_t sVar6;\n  int iVar7;\n  byte *pbVar8;\n  int iVar9;\n  uint *puVar10;\n  undefined4 extraout_ECX;\n  int extraout_ECX_00;\n  uint uVar11;\n  uint uVar12;\n  uint uVar13;\n  int *piVar14;\n  char *pcVar15;\n  byte *pbVar16;\n  byte *pbVar17;\n  uint __n_01;\n  int in_GS_OFFSET;\n  bool bVar18;\n  bool bVar19;\n  bool bVar20;\n  byte bVar21;\n  char *pcVar22;\n  int iVar23;\n  size_t local_14c;\n  char *local_144;\n  uint *local_140;\n  void *local_13c;\n  uint *local_134;\n  size_t local_124;\n  undefined4 local_104;\n  undefined4 local_100;\n  uint local_fc [24];\n  undefined1 local_99 [20];\n  undefined1 local_85 [20];\n  byte local_71 [40];\n  char local_49 [20];\n  undefined1 local_35 [21];\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar21 = 0;\n  uStack_14 = 0x54f49;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_14c = 0;\n  if (param_2 != (char *)0x0) {\n    local_14c = strlen(param_2);\n  }\n  iVar23 = 0;\n  __stream = (FILE *)FUN_00065d60(param_1,&DAT_0007d4f7,0);\n  if (__stream == (FILE *)0x0) {\n    pcVar15 = "can\'t open file";\n    piVar14 = (int *)0x0;\n  }\n  else {\n    iVar4 = FUN_00053dd0();\n    bVar18 = false;\n    bVar20 = iVar4 == 0;\n    if (bVar20) {\n      pcVar15 = (char *)0x0;\n      piVar14 = (int *)0x0;\n      fclose(__stream);\n    }\n    else {\n      iVar4 = 0x16;\n      pbVar8 = local_71;\n      pbVar16 = (byte *)"PuTTY-User-Key-File-2";\n      do {\n        if (iVar4 == 0) break;\n        iVar4 = iVar4 + -1;\n        bVar18 = *pbVar8 < *pbVar16;\n        bVar20 = *pbVar8 == *pbVar16;\n        pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n      } while (bVar20);\n      bVar3 = (!bVar18 && !bVar20) - bVar18;\n      bVar18 = false;\n      bVar20 = bVar3 == 0;\n      if (!bVar20) {\n        iVar4 = 0x16;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"PuTTY-User-Key-File-1";\n        do {\n          if (iVar4 == 0) break;\n          iVar4 = iVar4 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        bVar19 = false;\n        bVar18 = (!bVar18 && !bVar20) == bVar18;\n        if (!bVar18) {\n          iVar23 = 0x14;\n          pbVar8 = local_71;\n          pbVar16 = (byte *)"PuTTY-User-Key-File-";\n          do {\n            if (iVar23 == 0) break;\n            iVar23 = iVar23 + -1;\n            bVar19 = *pbVar8 < *pbVar16;\n            bVar18 = *pbVar8 == *pbVar16;\n            pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n            pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n          } while (bVar18);\n          if ((!bVar19 && !bVar18) == bVar19) {\n            pcVar15 = "PuTTY key format too new";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          else {\n            pcVar15 = "not a PuTTY SSH-2 private key";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          goto LAB_00055070;\n        }\n        FUN_00065000();\n        bVar3 = 1;\n      }\n      pcVar5 = (char *)FUN_00053e50();\n      if (pcVar5 == (char *)0x0) goto LAB_0005510e;\n      sVar6 = strlen(pcVar5);\n      pcVar22 = pcVar5;\n      iVar4 = FUN_00054a80(sVar6,pcVar5);\n      if (iVar4 == 0) {\n        pcVar15 = "file format error";\n        FUN_0001b250(pcVar5);\n        piVar14 = (int *)0x0;\n        fclose(__stream);\n        goto LAB_00055070;\n      }\n      FUN_0001b250(pcVar5);\n      iVar7 = FUN_00053dd0();\n      bVar18 = false;\n      bVar20 = iVar7 == 0;\n      if (!bVar20) {\n        iVar7 = 0xb;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"Encryption";\n        do {\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        if ((!bVar18 && !bVar20) == bVar18) {\n          pbVar8 = (byte *)FUN_00053e50();\n          bVar18 = false;\n          bVar20 = pbVar8 == (byte *)0x0;\n          if (!bVar20) {\n            iVar7 = 0xb;\n            pbVar16 = pbVar8;\n            pbVar17 = (byte *)"aes256-cbc";\n            do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar18 = *pbVar16 < *pbVar17;\n              bVar20 = *pbVar16 == *pbVar17;\n              pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n              pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n            } while (bVar20);\n            bVar19 = false;\n            bVar18 = (!bVar18 && !bVar20) == bVar18;\n            if (bVar18) {\n              local_124 = 0x10;\n              bVar18 = true;\nLAB_000551a8:\n              iVar7 = FUN_00053dd0();\n              bVar20 = false;\n              bVar19 = iVar7 == 0;\n              if (!bVar19) {\n                iVar7 = 8;\n                pbVar16 = local_71;\n                pbVar17 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                } while (bVar19);\n                if ((!bVar20 && !bVar19) == bVar20) {\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar8;\n              pbVar17 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar19 = *pbVar16 < *pbVar17;\n                bVar18 = *pbVar16 == *pbVar17;\n                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n              } while (bVar18);\n              if ((!bVar19 && !bVar18) == bVar19) {\n                local_124 = 1;\n                bVar18 = false;\n                goto LAB_000551a8;\n              }\n            }\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n            pcVar15 = "file format error";\n            FUN_0001b250(pbVar8);\n            goto LAB_00055070;\n          }\n        }\n      }\nLAB_0005510e:\n      pcVar15 = "file format error";\n      piVar14 = (int *)0x0;\n      fclose(__stream);\n    }\n  }\nLAB_00055070:\n  if (param_3 != (undefined4 *)0x0) {\n    *param_3 = pcVar15;\n  }\nLAB_0005507a:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return piVar14;\n  }\n                    \n  FUN_0006f2a0();\n}" (primitive_type "int") (pointer_declarator "* FUN_00054f40(undefined4 param_1,char *param_2,undefined4 *param_3)" (* "*") (function_declarator "FUN_00054f40(undefined4 param_1,char *param_2,undefined4 *param_3)" (identifier "FUN_00054f40") (parameter_list "(undefined4 param_1,char *param_2,undefined4 *param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "char *param_2" (primitive_type "char") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined4 *param_3" (type_identifier "undefined4") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")")))) (compound_statement "{\n  uint __n;\n  uint __n_00;\n  undefined1 *puVar1;\n  char cVar2;\n  byte bVar3;\n  FILE *__stream;\n  int iVar4;\n  char *pcVar5;\n  size_t sVar6;\n  int iVar7;\n  byte *pbVar8;\n  int iVar9;\n  uint *puVar10;\n  undefined4 extraout_ECX;\n  int extraout_ECX_00;\n  uint uVar11;\n  uint uVar12;\n  uint uVar13;\n  int *piVar14;\n  char *pcVar15;\n  byte *pbVar16;\n  byte *pbVar17;\n  uint __n_01;\n  int in_GS_OFFSET;\n  bool bVar18;\n  bool bVar19;\n  bool bVar20;\n  byte bVar21;\n  char *pcVar22;\n  int iVar23;\n  size_t local_14c;\n  char *local_144;\n  uint *local_140;\n  void *local_13c;\n  uint *local_134;\n  size_t local_124;\n  undefined4 local_104;\n  undefined4 local_100;\n  uint local_fc [24];\n  undefined1 local_99 [20];\n  undefined1 local_85 [20];\n  byte local_71 [40];\n  char local_49 [20];\n  undefined1 local_35 [21];\n  int local_20;\n  undefined4 uStack_14;\n  \n  bVar21 = 0;\n  uStack_14 = 0x54f49;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  local_14c = 0;\n  if (param_2 != (char *)0x0) {\n    local_14c = strlen(param_2);\n  }\n  iVar23 = 0;\n  __stream = (FILE *)FUN_00065d60(param_1,&DAT_0007d4f7,0);\n  if (__stream == (FILE *)0x0) {\n    pcVar15 = "can\'t open file";\n    piVar14 = (int *)0x0;\n  }\n  else {\n    iVar4 = FUN_00053dd0();\n    bVar18 = false;\n    bVar20 = iVar4 == 0;\n    if (bVar20) {\n      pcVar15 = (char *)0x0;\n      piVar14 = (int *)0x0;\n      fclose(__stream);\n    }\n    else {\n      iVar4 = 0x16;\n      pbVar8 = local_71;\n      pbVar16 = (byte *)"PuTTY-User-Key-File-2";\n      do {\n        if (iVar4 == 0) break;\n        iVar4 = iVar4 + -1;\n        bVar18 = *pbVar8 < *pbVar16;\n        bVar20 = *pbVar8 == *pbVar16;\n        pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n      } while (bVar20);\n      bVar3 = (!bVar18 && !bVar20) - bVar18;\n      bVar18 = false;\n      bVar20 = bVar3 == 0;\n      if (!bVar20) {\n        iVar4 = 0x16;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"PuTTY-User-Key-File-1";\n        do {\n          if (iVar4 == 0) break;\n          iVar4 = iVar4 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        bVar19 = false;\n        bVar18 = (!bVar18 && !bVar20) == bVar18;\n        if (!bVar18) {\n          iVar23 = 0x14;\n          pbVar8 = local_71;\n          pbVar16 = (byte *)"PuTTY-User-Key-File-";\n          do {\n            if (iVar23 == 0) break;\n            iVar23 = iVar23 + -1;\n            bVar19 = *pbVar8 < *pbVar16;\n            bVar18 = *pbVar8 == *pbVar16;\n            pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n            pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n          } while (bVar18);\n          if ((!bVar19 && !bVar18) == bVar19) {\n            pcVar15 = "PuTTY key format too new";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          else {\n            pcVar15 = "not a PuTTY SSH-2 private key";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          goto LAB_00055070;\n        }\n        FUN_00065000();\n        bVar3 = 1;\n      }\n      pcVar5 = (char *)FUN_00053e50();\n      if (pcVar5 == (char *)0x0) goto LAB_0005510e;\n      sVar6 = strlen(pcVar5);\n      pcVar22 = pcVar5;\n      iVar4 = FUN_00054a80(sVar6,pcVar5);\n      if (iVar4 == 0) {\n        pcVar15 = "file format error";\n        FUN_0001b250(pcVar5);\n        piVar14 = (int *)0x0;\n        fclose(__stream);\n        goto LAB_00055070;\n      }\n      FUN_0001b250(pcVar5);\n      iVar7 = FUN_00053dd0();\n      bVar18 = false;\n      bVar20 = iVar7 == 0;\n      if (!bVar20) {\n        iVar7 = 0xb;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"Encryption";\n        do {\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        if ((!bVar18 && !bVar20) == bVar18) {\n          pbVar8 = (byte *)FUN_00053e50();\n          bVar18 = false;\n          bVar20 = pbVar8 == (byte *)0x0;\n          if (!bVar20) {\n            iVar7 = 0xb;\n            pbVar16 = pbVar8;\n            pbVar17 = (byte *)"aes256-cbc";\n            do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar18 = *pbVar16 < *pbVar17;\n              bVar20 = *pbVar16 == *pbVar17;\n              pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n              pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n            } while (bVar20);\n            bVar19 = false;\n            bVar18 = (!bVar18 && !bVar20) == bVar18;\n            if (bVar18) {\n              local_124 = 0x10;\n              bVar18 = true;\nLAB_000551a8:\n              iVar7 = FUN_00053dd0();\n              bVar20 = false;\n              bVar19 = iVar7 == 0;\n              if (!bVar19) {\n                iVar7 = 8;\n                pbVar16 = local_71;\n                pbVar17 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                } while (bVar19);\n                if ((!bVar20 && !bVar19) == bVar20) {\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar8;\n              pbVar17 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar19 = *pbVar16 < *pbVar17;\n                bVar18 = *pbVar16 == *pbVar17;\n                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n              } while (bVar18);\n              if ((!bVar19 && !bVar18) == bVar19) {\n                local_124 = 1;\n                bVar18 = false;\n                goto LAB_000551a8;\n              }\n            }\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n            pcVar15 = "file format error";\n            FUN_0001b250(pbVar8);\n            goto LAB_00055070;\n          }\n        }\n      }\nLAB_0005510e:\n      pcVar15 = "file format error";\n      piVar14 = (int *)0x0;\n      fclose(__stream);\n    }\n  }\nLAB_00055070:\n  if (param_3 != (undefined4 *)0x0) {\n    *param_3 = pcVar15;\n  }\nLAB_0005507a:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return piVar14;\n  }\n                    \n  FUN_0006f2a0();\n}" ({ "{") (declaration "uint __n;" (type_identifier "uint") (identifier "__n") (; ";")) (declaration "uint __n_00;" (type_identifier "uint") (identifier "__n_00") (; ";")) (declaration "undefined1 *puVar1;" (type_identifier "undefined1") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "char cVar2;" (primitive_type "char") (identifier "cVar2") (; ";")) (declaration "byte bVar3;" (type_identifier "byte") (identifier "bVar3") (; ";")) (declaration "FILE *__stream;" (type_identifier "FILE") (pointer_declarator "*__stream" (* "*") (identifier "__stream")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "char *pcVar5;" (primitive_type "char") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (declaration "size_t sVar6;" (primitive_type "size_t") (identifier "sVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "byte *pbVar8;" (type_identifier "byte") (pointer_declarator "*pbVar8" (* "*") (identifier "pbVar8")) (; ";")) (declaration "int iVar9;" (primitive_type "int") (identifier "iVar9") (; ";")) (declaration "uint *puVar10;" (type_identifier "uint") (pointer_declarator "*puVar10" (* "*") (identifier "puVar10")) (; ";")) (declaration "undefined4 extraout_ECX;" (type_identifier "undefined4") (identifier "extraout_ECX") (; ";")) (declaration "int extraout_ECX_00;" (primitive_type "int") (identifier "extraout_ECX_00") (; ";")) (declaration "uint uVar11;" (type_identifier "uint") (identifier "uVar11") (; ";")) (declaration "uint uVar12;" (type_identifier "uint") (identifier "uVar12") (; ";")) (declaration "uint uVar13;" (type_identifier "uint") (identifier "uVar13") (; ";")) (declaration "int *piVar14;" (primitive_type "int") (pointer_declarator "*piVar14" (* "*") (identifier "piVar14")) (; ";")) (declaration "char *pcVar15;" (primitive_type "char") (pointer_declarator "*pcVar15" (* "*") (identifier "pcVar15")) (; ";")) (declaration "byte *pbVar16;" (type_identifier "byte") (pointer_declarator "*pbVar16" (* "*") (identifier "pbVar16")) (; ";")) (declaration "byte *pbVar17;" (type_identifier "byte") (pointer_declarator "*pbVar17" (* "*") (identifier "pbVar17")) (; ";")) (declaration "uint __n_01;" (type_identifier "uint") (identifier "__n_01") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "bool bVar18;" (primitive_type "bool") (identifier "bVar18") (; ";")) (declaration "bool bVar19;" (primitive_type "bool") (identifier "bVar19") (; ";")) (declaration "bool bVar20;" (primitive_type "bool") (identifier "bVar20") (; ";")) (declaration "byte bVar21;" (type_identifier "byte") (identifier "bVar21") (; ";")) (declaration "char *pcVar22;" (primitive_type "char") (pointer_declarator "*pcVar22" (* "*") (identifier "pcVar22")) (; ";")) (declaration "int iVar23;" (primitive_type "int") (identifier "iVar23") (; ";")) (declaration "size_t local_14c;" (primitive_type "size_t") (identifier "local_14c") (; ";")) (declaration "char *local_144;" (primitive_type "char") (pointer_declarator "*local_144" (* "*") (identifier "local_144")) (; ";")) (declaration "uint *local_140;" (type_identifier "uint") (pointer_declarator "*local_140" (* "*") (identifier "local_140")) (; ";")) (declaration "void *local_13c;" (primitive_type "void") (pointer_declarator "*local_13c" (* "*") (identifier "local_13c")) (; ";")) (declaration "uint *local_134;" (type_identifier "uint") (pointer_declarator "*local_134" (* "*") (identifier "local_134")) (; ";")) (declaration "size_t local_124;" (primitive_type "size_t") (identifier "local_124") (; ";")) (declaration "undefined4 local_104;" (type_identifier "undefined4") (identifier "local_104") (; ";")) (declaration "undefined4 local_100;" (type_identifier "undefined4") (identifier "local_100") (; ";")) (declaration "uint local_fc [24];" (type_identifier "uint") (array_declarator "local_fc [24]" (identifier "local_fc") ([ "[") (number_literal "24") (] "]")) (; ";")) (declaration "undefined1 local_99 [20];" (type_identifier "undefined1") (array_declarator "local_99 [20]" (identifier "local_99") ([ "[") (number_literal "20") (] "]")) (; ";")) (declaration "undefined1 local_85 [20];" (type_identifier "undefined1") (array_declarator "local_85 [20]" (identifier "local_85") ([ "[") (number_literal "20") (] "]")) (; ";")) (declaration "byte local_71 [40];" (type_identifier "byte") (array_declarator "local_71 [40]" (identifier "local_71") ([ "[") (number_literal "40") (] "]")) (; ";")) (declaration "char local_49 [20];" (primitive_type "char") (array_declarator "local_49 [20]" (identifier "local_49") ([ "[") (number_literal "20") (] "]")) (; ";")) (declaration "undefined1 local_35 [21];" (type_identifier "undefined1") (array_declarator "local_35 [21]" (identifier "local_35") ([ "[") (number_literal "21") (] "]")) (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "bVar21 = 0;" (assignment_expression "bVar21 = 0" (identifier "bVar21") (= "=") (number_literal "0")) (; ";")) (expression_statement "uStack_14 = 0x54f49;" (assignment_expression "uStack_14 = 0x54f49" (identifier "uStack_14") (= "=") (number_literal "0x54f49")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "local_14c = 0;" (assignment_expression "local_14c = 0" (identifier "local_14c") (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_2 != (char *)0x0) {\n    local_14c = strlen(param_2);\n  }" (if "if") (parenthesized_expression "(param_2 != (char *)0x0)" (( "(") (binary_expression "param_2 != (char *)0x0" (identifier "param_2") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    local_14c = strlen(param_2);\n  }" ({ "{") (expression_statement "local_14c = strlen(param_2);" (assignment_expression "local_14c = strlen(param_2)" (identifier "local_14c") (= "=") (call_expression "strlen(param_2)" (identifier "strlen") (argument_list "(param_2)" (( "(") (identifier "param_2") () ")")))) (; ";")) (} "}"))) (expression_statement "iVar23 = 0;" (assignment_expression "iVar23 = 0" (identifier "iVar23") (= "=") (number_literal "0")) (; ";")) (expression_statement "__stream = (FILE *)FUN_00065d60(param_1,&DAT_0007d4f7,0);" (assignment_expression "__stream = (FILE *)FUN_00065d60(param_1,&DAT_0007d4f7,0)" (identifier "__stream") (= "=") (cast_expression "(FILE *)FUN_00065d60(param_1,&DAT_0007d4f7,0)" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00065d60(param_1,&DAT_0007d4f7,0)" (identifier "FUN_00065d60") (argument_list "(param_1,&DAT_0007d4f7,0)" (( "(") (identifier "param_1") (, ",") (pointer_expression "&DAT_0007d4f7" (& "&") (identifier "DAT_0007d4f7")) (, ",") (number_literal "0") () ")"))))) (; ";")) (if_statement "if (__stream == (FILE *)0x0) {\n    pcVar15 = "can\'t open file";\n    piVar14 = (int *)0x0;\n  }\n  else {\n    iVar4 = FUN_00053dd0();\n    bVar18 = false;\n    bVar20 = iVar4 == 0;\n    if (bVar20) {\n      pcVar15 = (char *)0x0;\n      piVar14 = (int *)0x0;\n      fclose(__stream);\n    }\n    else {\n      iVar4 = 0x16;\n      pbVar8 = local_71;\n      pbVar16 = (byte *)"PuTTY-User-Key-File-2";\n      do {\n        if (iVar4 == 0) break;\n        iVar4 = iVar4 + -1;\n        bVar18 = *pbVar8 < *pbVar16;\n        bVar20 = *pbVar8 == *pbVar16;\n        pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n      } while (bVar20);\n      bVar3 = (!bVar18 && !bVar20) - bVar18;\n      bVar18 = false;\n      bVar20 = bVar3 == 0;\n      if (!bVar20) {\n        iVar4 = 0x16;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"PuTTY-User-Key-File-1";\n        do {\n          if (iVar4 == 0) break;\n          iVar4 = iVar4 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        bVar19 = false;\n        bVar18 = (!bVar18 && !bVar20) == bVar18;\n        if (!bVar18) {\n          iVar23 = 0x14;\n          pbVar8 = local_71;\n          pbVar16 = (byte *)"PuTTY-User-Key-File-";\n          do {\n            if (iVar23 == 0) break;\n            iVar23 = iVar23 + -1;\n            bVar19 = *pbVar8 < *pbVar16;\n            bVar18 = *pbVar8 == *pbVar16;\n            pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n            pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n          } while (bVar18);\n          if ((!bVar19 && !bVar18) == bVar19) {\n            pcVar15 = "PuTTY key format too new";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          else {\n            pcVar15 = "not a PuTTY SSH-2 private key";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          goto LAB_00055070;\n        }\n        FUN_00065000();\n        bVar3 = 1;\n      }\n      pcVar5 = (char *)FUN_00053e50();\n      if (pcVar5 == (char *)0x0) goto LAB_0005510e;\n      sVar6 = strlen(pcVar5);\n      pcVar22 = pcVar5;\n      iVar4 = FUN_00054a80(sVar6,pcVar5);\n      if (iVar4 == 0) {\n        pcVar15 = "file format error";\n        FUN_0001b250(pcVar5);\n        piVar14 = (int *)0x0;\n        fclose(__stream);\n        goto LAB_00055070;\n      }\n      FUN_0001b250(pcVar5);\n      iVar7 = FUN_00053dd0();\n      bVar18 = false;\n      bVar20 = iVar7 == 0;\n      if (!bVar20) {\n        iVar7 = 0xb;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"Encryption";\n        do {\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        if ((!bVar18 && !bVar20) == bVar18) {\n          pbVar8 = (byte *)FUN_00053e50();\n          bVar18 = false;\n          bVar20 = pbVar8 == (byte *)0x0;\n          if (!bVar20) {\n            iVar7 = 0xb;\n            pbVar16 = pbVar8;\n            pbVar17 = (byte *)"aes256-cbc";\n            do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar18 = *pbVar16 < *pbVar17;\n              bVar20 = *pbVar16 == *pbVar17;\n              pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n              pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n            } while (bVar20);\n            bVar19 = false;\n            bVar18 = (!bVar18 && !bVar20) == bVar18;\n            if (bVar18) {\n              local_124 = 0x10;\n              bVar18 = true;\nLAB_000551a8:\n              iVar7 = FUN_00053dd0();\n              bVar20 = false;\n              bVar19 = iVar7 == 0;\n              if (!bVar19) {\n                iVar7 = 8;\n                pbVar16 = local_71;\n                pbVar17 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                } while (bVar19);\n                if ((!bVar20 && !bVar19) == bVar20) {\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar8;\n              pbVar17 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar19 = *pbVar16 < *pbVar17;\n                bVar18 = *pbVar16 == *pbVar17;\n                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n              } while (bVar18);\n              if ((!bVar19 && !bVar18) == bVar19) {\n                local_124 = 1;\n                bVar18 = false;\n                goto LAB_000551a8;\n              }\n            }\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n            pcVar15 = "file format error";\n            FUN_0001b250(pbVar8);\n            goto LAB_00055070;\n          }\n        }\n      }\nLAB_0005510e:\n      pcVar15 = "file format error";\n      piVar14 = (int *)0x0;\n      fclose(__stream);\n    }\n  }" (if "if") (parenthesized_expression "(__stream == (FILE *)0x0)" (( "(") (binary_expression "__stream == (FILE *)0x0" (identifier "__stream") (== "==") (cast_expression "(FILE *)0x0" (( "(") (type_descriptor "FILE *" (type_identifier "FILE") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    pcVar15 = "can\'t open file";\n    piVar14 = (int *)0x0;\n  }" ({ "{") (expression_statement "pcVar15 = "can\'t open file";" (assignment_expression "pcVar15 = "can\'t open file"" (identifier "pcVar15") (= "=") (string_literal ""can\'t open file"" (" """) (string_content "can") (escape_sequence "\'") (string_content "t open file") (" """))) (; ";")) (expression_statement "piVar14 = (int *)0x0;" (assignment_expression "piVar14 = (int *)0x0" (identifier "piVar14") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (} "}")) (else_clause "else {\n    iVar4 = FUN_00053dd0();\n    bVar18 = false;\n    bVar20 = iVar4 == 0;\n    if (bVar20) {\n      pcVar15 = (char *)0x0;\n      piVar14 = (int *)0x0;\n      fclose(__stream);\n    }\n    else {\n      iVar4 = 0x16;\n      pbVar8 = local_71;\n      pbVar16 = (byte *)"PuTTY-User-Key-File-2";\n      do {\n        if (iVar4 == 0) break;\n        iVar4 = iVar4 + -1;\n        bVar18 = *pbVar8 < *pbVar16;\n        bVar20 = *pbVar8 == *pbVar16;\n        pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n      } while (bVar20);\n      bVar3 = (!bVar18 && !bVar20) - bVar18;\n      bVar18 = false;\n      bVar20 = bVar3 == 0;\n      if (!bVar20) {\n        iVar4 = 0x16;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"PuTTY-User-Key-File-1";\n        do {\n          if (iVar4 == 0) break;\n          iVar4 = iVar4 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        bVar19 = false;\n        bVar18 = (!bVar18 && !bVar20) == bVar18;\n        if (!bVar18) {\n          iVar23 = 0x14;\n          pbVar8 = local_71;\n          pbVar16 = (byte *)"PuTTY-User-Key-File-";\n          do {\n            if (iVar23 == 0) break;\n            iVar23 = iVar23 + -1;\n            bVar19 = *pbVar8 < *pbVar16;\n            bVar18 = *pbVar8 == *pbVar16;\n            pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n            pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n          } while (bVar18);\n          if ((!bVar19 && !bVar18) == bVar19) {\n            pcVar15 = "PuTTY key format too new";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          else {\n            pcVar15 = "not a PuTTY SSH-2 private key";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          goto LAB_00055070;\n        }\n        FUN_00065000();\n        bVar3 = 1;\n      }\n      pcVar5 = (char *)FUN_00053e50();\n      if (pcVar5 == (char *)0x0) goto LAB_0005510e;\n      sVar6 = strlen(pcVar5);\n      pcVar22 = pcVar5;\n      iVar4 = FUN_00054a80(sVar6,pcVar5);\n      if (iVar4 == 0) {\n        pcVar15 = "file format error";\n        FUN_0001b250(pcVar5);\n        piVar14 = (int *)0x0;\n        fclose(__stream);\n        goto LAB_00055070;\n      }\n      FUN_0001b250(pcVar5);\n      iVar7 = FUN_00053dd0();\n      bVar18 = false;\n      bVar20 = iVar7 == 0;\n      if (!bVar20) {\n        iVar7 = 0xb;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"Encryption";\n        do {\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        if ((!bVar18 && !bVar20) == bVar18) {\n          pbVar8 = (byte *)FUN_00053e50();\n          bVar18 = false;\n          bVar20 = pbVar8 == (byte *)0x0;\n          if (!bVar20) {\n            iVar7 = 0xb;\n            pbVar16 = pbVar8;\n            pbVar17 = (byte *)"aes256-cbc";\n            do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar18 = *pbVar16 < *pbVar17;\n              bVar20 = *pbVar16 == *pbVar17;\n              pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n              pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n            } while (bVar20);\n            bVar19 = false;\n            bVar18 = (!bVar18 && !bVar20) == bVar18;\n            if (bVar18) {\n              local_124 = 0x10;\n              bVar18 = true;\nLAB_000551a8:\n              iVar7 = FUN_00053dd0();\n              bVar20 = false;\n              bVar19 = iVar7 == 0;\n              if (!bVar19) {\n                iVar7 = 8;\n                pbVar16 = local_71;\n                pbVar17 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                } while (bVar19);\n                if ((!bVar20 && !bVar19) == bVar20) {\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar8;\n              pbVar17 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar19 = *pbVar16 < *pbVar17;\n                bVar18 = *pbVar16 == *pbVar17;\n                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n              } while (bVar18);\n              if ((!bVar19 && !bVar18) == bVar19) {\n                local_124 = 1;\n                bVar18 = false;\n                goto LAB_000551a8;\n              }\n            }\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n            pcVar15 = "file format error";\n            FUN_0001b250(pbVar8);\n            goto LAB_00055070;\n          }\n        }\n      }\nLAB_0005510e:\n      pcVar15 = "file format error";\n      piVar14 = (int *)0x0;\n      fclose(__stream);\n    }\n  }" (else "else") (compound_statement "{\n    iVar4 = FUN_00053dd0();\n    bVar18 = false;\n    bVar20 = iVar4 == 0;\n    if (bVar20) {\n      pcVar15 = (char *)0x0;\n      piVar14 = (int *)0x0;\n      fclose(__stream);\n    }\n    else {\n      iVar4 = 0x16;\n      pbVar8 = local_71;\n      pbVar16 = (byte *)"PuTTY-User-Key-File-2";\n      do {\n        if (iVar4 == 0) break;\n        iVar4 = iVar4 + -1;\n        bVar18 = *pbVar8 < *pbVar16;\n        bVar20 = *pbVar8 == *pbVar16;\n        pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n      } while (bVar20);\n      bVar3 = (!bVar18 && !bVar20) - bVar18;\n      bVar18 = false;\n      bVar20 = bVar3 == 0;\n      if (!bVar20) {\n        iVar4 = 0x16;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"PuTTY-User-Key-File-1";\n        do {\n          if (iVar4 == 0) break;\n          iVar4 = iVar4 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        bVar19 = false;\n        bVar18 = (!bVar18 && !bVar20) == bVar18;\n        if (!bVar18) {\n          iVar23 = 0x14;\n          pbVar8 = local_71;\n          pbVar16 = (byte *)"PuTTY-User-Key-File-";\n          do {\n            if (iVar23 == 0) break;\n            iVar23 = iVar23 + -1;\n            bVar19 = *pbVar8 < *pbVar16;\n            bVar18 = *pbVar8 == *pbVar16;\n            pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n            pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n          } while (bVar18);\n          if ((!bVar19 && !bVar18) == bVar19) {\n            pcVar15 = "PuTTY key format too new";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          else {\n            pcVar15 = "not a PuTTY SSH-2 private key";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          goto LAB_00055070;\n        }\n        FUN_00065000();\n        bVar3 = 1;\n      }\n      pcVar5 = (char *)FUN_00053e50();\n      if (pcVar5 == (char *)0x0) goto LAB_0005510e;\n      sVar6 = strlen(pcVar5);\n      pcVar22 = pcVar5;\n      iVar4 = FUN_00054a80(sVar6,pcVar5);\n      if (iVar4 == 0) {\n        pcVar15 = "file format error";\n        FUN_0001b250(pcVar5);\n        piVar14 = (int *)0x0;\n        fclose(__stream);\n        goto LAB_00055070;\n      }\n      FUN_0001b250(pcVar5);\n      iVar7 = FUN_00053dd0();\n      bVar18 = false;\n      bVar20 = iVar7 == 0;\n      if (!bVar20) {\n        iVar7 = 0xb;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"Encryption";\n        do {\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        if ((!bVar18 && !bVar20) == bVar18) {\n          pbVar8 = (byte *)FUN_00053e50();\n          bVar18 = false;\n          bVar20 = pbVar8 == (byte *)0x0;\n          if (!bVar20) {\n            iVar7 = 0xb;\n            pbVar16 = pbVar8;\n            pbVar17 = (byte *)"aes256-cbc";\n            do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar18 = *pbVar16 < *pbVar17;\n              bVar20 = *pbVar16 == *pbVar17;\n              pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n              pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n            } while (bVar20);\n            bVar19 = false;\n            bVar18 = (!bVar18 && !bVar20) == bVar18;\n            if (bVar18) {\n              local_124 = 0x10;\n              bVar18 = true;\nLAB_000551a8:\n              iVar7 = FUN_00053dd0();\n              bVar20 = false;\n              bVar19 = iVar7 == 0;\n              if (!bVar19) {\n                iVar7 = 8;\n                pbVar16 = local_71;\n                pbVar17 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                } while (bVar19);\n                if ((!bVar20 && !bVar19) == bVar20) {\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar8;\n              pbVar17 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar19 = *pbVar16 < *pbVar17;\n                bVar18 = *pbVar16 == *pbVar17;\n                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n              } while (bVar18);\n              if ((!bVar19 && !bVar18) == bVar19) {\n                local_124 = 1;\n                bVar18 = false;\n                goto LAB_000551a8;\n              }\n            }\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n            pcVar15 = "file format error";\n            FUN_0001b250(pbVar8);\n            goto LAB_00055070;\n          }\n        }\n      }\nLAB_0005510e:\n      pcVar15 = "file format error";\n      piVar14 = (int *)0x0;\n      fclose(__stream);\n    }\n  }" ({ "{") (expression_statement "iVar4 = FUN_00053dd0();" (assignment_expression "iVar4 = FUN_00053dd0()" (identifier "iVar4") (= "=") (call_expression "FUN_00053dd0()" (identifier "FUN_00053dd0") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "bVar18 = false;" (assignment_expression "bVar18 = false" (identifier "bVar18") (= "=") (false "false")) (; ";")) (expression_statement "bVar20 = iVar4 == 0;" (assignment_expression "bVar20 = iVar4 == 0" (identifier "bVar20") (= "=") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0"))) (; ";")) (if_statement "if (bVar20) {\n      pcVar15 = (char *)0x0;\n      piVar14 = (int *)0x0;\n      fclose(__stream);\n    }\n    else {\n      iVar4 = 0x16;\n      pbVar8 = local_71;\n      pbVar16 = (byte *)"PuTTY-User-Key-File-2";\n      do {\n        if (iVar4 == 0) break;\n        iVar4 = iVar4 + -1;\n        bVar18 = *pbVar8 < *pbVar16;\n        bVar20 = *pbVar8 == *pbVar16;\n        pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n      } while (bVar20);\n      bVar3 = (!bVar18 && !bVar20) - bVar18;\n      bVar18 = false;\n      bVar20 = bVar3 == 0;\n      if (!bVar20) {\n        iVar4 = 0x16;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"PuTTY-User-Key-File-1";\n        do {\n          if (iVar4 == 0) break;\n          iVar4 = iVar4 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        bVar19 = false;\n        bVar18 = (!bVar18 && !bVar20) == bVar18;\n        if (!bVar18) {\n          iVar23 = 0x14;\n          pbVar8 = local_71;\n          pbVar16 = (byte *)"PuTTY-User-Key-File-";\n          do {\n            if (iVar23 == 0) break;\n            iVar23 = iVar23 + -1;\n            bVar19 = *pbVar8 < *pbVar16;\n            bVar18 = *pbVar8 == *pbVar16;\n            pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n            pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n          } while (bVar18);\n          if ((!bVar19 && !bVar18) == bVar19) {\n            pcVar15 = "PuTTY key format too new";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          else {\n            pcVar15 = "not a PuTTY SSH-2 private key";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          goto LAB_00055070;\n        }\n        FUN_00065000();\n        bVar3 = 1;\n      }\n      pcVar5 = (char *)FUN_00053e50();\n      if (pcVar5 == (char *)0x0) goto LAB_0005510e;\n      sVar6 = strlen(pcVar5);\n      pcVar22 = pcVar5;\n      iVar4 = FUN_00054a80(sVar6,pcVar5);\n      if (iVar4 == 0) {\n        pcVar15 = "file format error";\n        FUN_0001b250(pcVar5);\n        piVar14 = (int *)0x0;\n        fclose(__stream);\n        goto LAB_00055070;\n      }\n      FUN_0001b250(pcVar5);\n      iVar7 = FUN_00053dd0();\n      bVar18 = false;\n      bVar20 = iVar7 == 0;\n      if (!bVar20) {\n        iVar7 = 0xb;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"Encryption";\n        do {\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        if ((!bVar18 && !bVar20) == bVar18) {\n          pbVar8 = (byte *)FUN_00053e50();\n          bVar18 = false;\n          bVar20 = pbVar8 == (byte *)0x0;\n          if (!bVar20) {\n            iVar7 = 0xb;\n            pbVar16 = pbVar8;\n            pbVar17 = (byte *)"aes256-cbc";\n            do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar18 = *pbVar16 < *pbVar17;\n              bVar20 = *pbVar16 == *pbVar17;\n              pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n              pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n            } while (bVar20);\n            bVar19 = false;\n            bVar18 = (!bVar18 && !bVar20) == bVar18;\n            if (bVar18) {\n              local_124 = 0x10;\n              bVar18 = true;\nLAB_000551a8:\n              iVar7 = FUN_00053dd0();\n              bVar20 = false;\n              bVar19 = iVar7 == 0;\n              if (!bVar19) {\n                iVar7 = 8;\n                pbVar16 = local_71;\n                pbVar17 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                } while (bVar19);\n                if ((!bVar20 && !bVar19) == bVar20) {\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar8;\n              pbVar17 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar19 = *pbVar16 < *pbVar17;\n                bVar18 = *pbVar16 == *pbVar17;\n                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n              } while (bVar18);\n              if ((!bVar19 && !bVar18) == bVar19) {\n                local_124 = 1;\n                bVar18 = false;\n                goto LAB_000551a8;\n              }\n            }\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n            pcVar15 = "file format error";\n            FUN_0001b250(pbVar8);\n            goto LAB_00055070;\n          }\n        }\n      }\nLAB_0005510e:\n      pcVar15 = "file format error";\n      piVar14 = (int *)0x0;\n      fclose(__stream);\n    }" (if "if") (parenthesized_expression "(bVar20)" (( "(") (identifier "bVar20") () ")")) (compound_statement "{\n      pcVar15 = (char *)0x0;\n      piVar14 = (int *)0x0;\n      fclose(__stream);\n    }" ({ "{") (expression_statement "pcVar15 = (char *)0x0;" (assignment_expression "pcVar15 = (char *)0x0" (identifier "pcVar15") (= "=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "piVar14 = (int *)0x0;" (assignment_expression "piVar14 = (int *)0x0" (identifier "piVar14") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "fclose(__stream);" (call_expression "fclose(__stream)" (identifier "fclose") (argument_list "(__stream)" (( "(") (identifier "__stream") () ")"))) (; ";")) (} "}")) (else_clause "else {\n      iVar4 = 0x16;\n      pbVar8 = local_71;\n      pbVar16 = (byte *)"PuTTY-User-Key-File-2";\n      do {\n        if (iVar4 == 0) break;\n        iVar4 = iVar4 + -1;\n        bVar18 = *pbVar8 < *pbVar16;\n        bVar20 = *pbVar8 == *pbVar16;\n        pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n      } while (bVar20);\n      bVar3 = (!bVar18 && !bVar20) - bVar18;\n      bVar18 = false;\n      bVar20 = bVar3 == 0;\n      if (!bVar20) {\n        iVar4 = 0x16;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"PuTTY-User-Key-File-1";\n        do {\n          if (iVar4 == 0) break;\n          iVar4 = iVar4 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        bVar19 = false;\n        bVar18 = (!bVar18 && !bVar20) == bVar18;\n        if (!bVar18) {\n          iVar23 = 0x14;\n          pbVar8 = local_71;\n          pbVar16 = (byte *)"PuTTY-User-Key-File-";\n          do {\n            if (iVar23 == 0) break;\n            iVar23 = iVar23 + -1;\n            bVar19 = *pbVar8 < *pbVar16;\n            bVar18 = *pbVar8 == *pbVar16;\n            pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n            pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n          } while (bVar18);\n          if ((!bVar19 && !bVar18) == bVar19) {\n            pcVar15 = "PuTTY key format too new";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          else {\n            pcVar15 = "not a PuTTY SSH-2 private key";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          goto LAB_00055070;\n        }\n        FUN_00065000();\n        bVar3 = 1;\n      }\n      pcVar5 = (char *)FUN_00053e50();\n      if (pcVar5 == (char *)0x0) goto LAB_0005510e;\n      sVar6 = strlen(pcVar5);\n      pcVar22 = pcVar5;\n      iVar4 = FUN_00054a80(sVar6,pcVar5);\n      if (iVar4 == 0) {\n        pcVar15 = "file format error";\n        FUN_0001b250(pcVar5);\n        piVar14 = (int *)0x0;\n        fclose(__stream);\n        goto LAB_00055070;\n      }\n      FUN_0001b250(pcVar5);\n      iVar7 = FUN_00053dd0();\n      bVar18 = false;\n      bVar20 = iVar7 == 0;\n      if (!bVar20) {\n        iVar7 = 0xb;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"Encryption";\n        do {\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        if ((!bVar18 && !bVar20) == bVar18) {\n          pbVar8 = (byte *)FUN_00053e50();\n          bVar18 = false;\n          bVar20 = pbVar8 == (byte *)0x0;\n          if (!bVar20) {\n            iVar7 = 0xb;\n            pbVar16 = pbVar8;\n            pbVar17 = (byte *)"aes256-cbc";\n            do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar18 = *pbVar16 < *pbVar17;\n              bVar20 = *pbVar16 == *pbVar17;\n              pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n              pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n            } while (bVar20);\n            bVar19 = false;\n            bVar18 = (!bVar18 && !bVar20) == bVar18;\n            if (bVar18) {\n              local_124 = 0x10;\n              bVar18 = true;\nLAB_000551a8:\n              iVar7 = FUN_00053dd0();\n              bVar20 = false;\n              bVar19 = iVar7 == 0;\n              if (!bVar19) {\n                iVar7 = 8;\n                pbVar16 = local_71;\n                pbVar17 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                } while (bVar19);\n                if ((!bVar20 && !bVar19) == bVar20) {\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar8;\n              pbVar17 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar19 = *pbVar16 < *pbVar17;\n                bVar18 = *pbVar16 == *pbVar17;\n                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n              } while (bVar18);\n              if ((!bVar19 && !bVar18) == bVar19) {\n                local_124 = 1;\n                bVar18 = false;\n                goto LAB_000551a8;\n              }\n            }\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n            pcVar15 = "file format error";\n            FUN_0001b250(pbVar8);\n            goto LAB_00055070;\n          }\n        }\n      }\nLAB_0005510e:\n      pcVar15 = "file format error";\n      piVar14 = (int *)0x0;\n      fclose(__stream);\n    }" (else "else") (compound_statement "{\n      iVar4 = 0x16;\n      pbVar8 = local_71;\n      pbVar16 = (byte *)"PuTTY-User-Key-File-2";\n      do {\n        if (iVar4 == 0) break;\n        iVar4 = iVar4 + -1;\n        bVar18 = *pbVar8 < *pbVar16;\n        bVar20 = *pbVar8 == *pbVar16;\n        pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n      } while (bVar20);\n      bVar3 = (!bVar18 && !bVar20) - bVar18;\n      bVar18 = false;\n      bVar20 = bVar3 == 0;\n      if (!bVar20) {\n        iVar4 = 0x16;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"PuTTY-User-Key-File-1";\n        do {\n          if (iVar4 == 0) break;\n          iVar4 = iVar4 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        bVar19 = false;\n        bVar18 = (!bVar18 && !bVar20) == bVar18;\n        if (!bVar18) {\n          iVar23 = 0x14;\n          pbVar8 = local_71;\n          pbVar16 = (byte *)"PuTTY-User-Key-File-";\n          do {\n            if (iVar23 == 0) break;\n            iVar23 = iVar23 + -1;\n            bVar19 = *pbVar8 < *pbVar16;\n            bVar18 = *pbVar8 == *pbVar16;\n            pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n            pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n          } while (bVar18);\n          if ((!bVar19 && !bVar18) == bVar19) {\n            pcVar15 = "PuTTY key format too new";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          else {\n            pcVar15 = "not a PuTTY SSH-2 private key";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          goto LAB_00055070;\n        }\n        FUN_00065000();\n        bVar3 = 1;\n      }\n      pcVar5 = (char *)FUN_00053e50();\n      if (pcVar5 == (char *)0x0) goto LAB_0005510e;\n      sVar6 = strlen(pcVar5);\n      pcVar22 = pcVar5;\n      iVar4 = FUN_00054a80(sVar6,pcVar5);\n      if (iVar4 == 0) {\n        pcVar15 = "file format error";\n        FUN_0001b250(pcVar5);\n        piVar14 = (int *)0x0;\n        fclose(__stream);\n        goto LAB_00055070;\n      }\n      FUN_0001b250(pcVar5);\n      iVar7 = FUN_00053dd0();\n      bVar18 = false;\n      bVar20 = iVar7 == 0;\n      if (!bVar20) {\n        iVar7 = 0xb;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"Encryption";\n        do {\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        if ((!bVar18 && !bVar20) == bVar18) {\n          pbVar8 = (byte *)FUN_00053e50();\n          bVar18 = false;\n          bVar20 = pbVar8 == (byte *)0x0;\n          if (!bVar20) {\n            iVar7 = 0xb;\n            pbVar16 = pbVar8;\n            pbVar17 = (byte *)"aes256-cbc";\n            do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar18 = *pbVar16 < *pbVar17;\n              bVar20 = *pbVar16 == *pbVar17;\n              pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n              pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n            } while (bVar20);\n            bVar19 = false;\n            bVar18 = (!bVar18 && !bVar20) == bVar18;\n            if (bVar18) {\n              local_124 = 0x10;\n              bVar18 = true;\nLAB_000551a8:\n              iVar7 = FUN_00053dd0();\n              bVar20 = false;\n              bVar19 = iVar7 == 0;\n              if (!bVar19) {\n                iVar7 = 8;\n                pbVar16 = local_71;\n                pbVar17 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                } while (bVar19);\n                if ((!bVar20 && !bVar19) == bVar20) {\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar8;\n              pbVar17 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar19 = *pbVar16 < *pbVar17;\n                bVar18 = *pbVar16 == *pbVar17;\n                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n              } while (bVar18);\n              if ((!bVar19 && !bVar18) == bVar19) {\n                local_124 = 1;\n                bVar18 = false;\n                goto LAB_000551a8;\n              }\n            }\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n            pcVar15 = "file format error";\n            FUN_0001b250(pbVar8);\n            goto LAB_00055070;\n          }\n        }\n      }\nLAB_0005510e:\n      pcVar15 = "file format error";\n      piVar14 = (int *)0x0;\n      fclose(__stream);\n    }" ({ "{") (expression_statement "iVar4 = 0x16;" (assignment_expression "iVar4 = 0x16" (identifier "iVar4") (= "=") (number_literal "0x16")) (; ";")) (expression_statement "pbVar8 = local_71;" (assignment_expression "pbVar8 = local_71" (identifier "pbVar8") (= "=") (identifier "local_71")) (; ";")) (expression_statement "pbVar16 = (byte *)"PuTTY-User-Key-File-2";" (assignment_expression "pbVar16 = (byte *)"PuTTY-User-Key-File-2"" (identifier "pbVar16") (= "=") (cast_expression "(byte *)"PuTTY-User-Key-File-2"" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (string_literal ""PuTTY-User-Key-File-2"" (" """) (string_content "PuTTY-User-Key-File-2") (" """)))) (; ";")) (do_statement "do {\n        if (iVar4 == 0) break;\n        iVar4 = iVar4 + -1;\n        bVar18 = *pbVar8 < *pbVar16;\n        bVar20 = *pbVar8 == *pbVar16;\n        pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n      } while (bVar20);" (do "do") (compound_statement "{\n        if (iVar4 == 0) break;\n        iVar4 = iVar4 + -1;\n        bVar18 = *pbVar8 < *pbVar16;\n        bVar20 = *pbVar8 == *pbVar16;\n        pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n      }" ({ "{") (if_statement "if (iVar4 == 0) break;" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar4 = iVar4 + -1;" (assignment_expression "iVar4 = iVar4 + -1" (identifier "iVar4") (= "=") (binary_expression "iVar4 + -1" (identifier "iVar4") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "bVar18 = *pbVar8 < *pbVar16;" (assignment_expression "bVar18 = *pbVar8 < *pbVar16" (identifier "bVar18") (= "=") (binary_expression "*pbVar8 < *pbVar16" (pointer_expression "*pbVar8" (* "*") (identifier "pbVar8")) (< "<") (pointer_expression "*pbVar16" (* "*") (identifier "pbVar16")))) (; ";")) (expression_statement "bVar20 = *pbVar8 == *pbVar16;" (assignment_expression "bVar20 = *pbVar8 == *pbVar16" (identifier "bVar20") (= "=") (binary_expression "*pbVar8 == *pbVar16" (pointer_expression "*pbVar8" (* "*") (identifier "pbVar8")) (== "==") (pointer_expression "*pbVar16" (* "*") (identifier "pbVar16")))) (; ";")) (expression_statement "pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;" (assignment_expression "pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1" (identifier "pbVar8") (= "=") (binary_expression "pbVar8 + (uint)bVar21 * -2 + 1" (binary_expression "pbVar8 + (uint)bVar21 * -2" (identifier "pbVar8") (+ "+") (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar21")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;" (assignment_expression "pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1" (identifier "pbVar16") (= "=") (binary_expression "pbVar16 + (uint)bVar21 * -2 + 1" (binary_expression "pbVar16 + (uint)bVar21 * -2" (identifier "pbVar16") (+ "+") (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar21")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(bVar20)" (( "(") (identifier "bVar20") () ")")) (; ";")) (expression_statement "bVar3 = (!bVar18 && !bVar20) - bVar18;" (assignment_expression "bVar3 = (!bVar18 && !bVar20) - bVar18" (identifier "bVar3") (= "=") (binary_expression "(!bVar18 && !bVar20) - bVar18" (parenthesized_expression "(!bVar18 && !bVar20)" (( "(") (binary_expression "!bVar18 && !bVar20" (unary_expression "!bVar18" (! "!") (identifier "bVar18")) (&& "&&") (unary_expression "!bVar20" (! "!") (identifier "bVar20"))) () ")")) (- "-") (identifier "bVar18"))) (; ";")) (expression_statement "bVar18 = false;" (assignment_expression "bVar18 = false" (identifier "bVar18") (= "=") (false "false")) (; ";")) (expression_statement "bVar20 = bVar3 == 0;" (assignment_expression "bVar20 = bVar3 == 0" (identifier "bVar20") (= "=") (binary_expression "bVar3 == 0" (identifier "bVar3") (== "==") (number_literal "0"))) (; ";")) (if_statement "if (!bVar20) {\n        iVar4 = 0x16;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"PuTTY-User-Key-File-1";\n        do {\n          if (iVar4 == 0) break;\n          iVar4 = iVar4 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        bVar19 = false;\n        bVar18 = (!bVar18 && !bVar20) == bVar18;\n        if (!bVar18) {\n          iVar23 = 0x14;\n          pbVar8 = local_71;\n          pbVar16 = (byte *)"PuTTY-User-Key-File-";\n          do {\n            if (iVar23 == 0) break;\n            iVar23 = iVar23 + -1;\n            bVar19 = *pbVar8 < *pbVar16;\n            bVar18 = *pbVar8 == *pbVar16;\n            pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n            pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n          } while (bVar18);\n          if ((!bVar19 && !bVar18) == bVar19) {\n            pcVar15 = "PuTTY key format too new";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          else {\n            pcVar15 = "not a PuTTY SSH-2 private key";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          goto LAB_00055070;\n        }\n        FUN_00065000();\n        bVar3 = 1;\n      }" (if "if") (parenthesized_expression "(!bVar20)" (( "(") (unary_expression "!bVar20" (! "!") (identifier "bVar20")) () ")")) (compound_statement "{\n        iVar4 = 0x16;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"PuTTY-User-Key-File-1";\n        do {\n          if (iVar4 == 0) break;\n          iVar4 = iVar4 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        bVar19 = false;\n        bVar18 = (!bVar18 && !bVar20) == bVar18;\n        if (!bVar18) {\n          iVar23 = 0x14;\n          pbVar8 = local_71;\n          pbVar16 = (byte *)"PuTTY-User-Key-File-";\n          do {\n            if (iVar23 == 0) break;\n            iVar23 = iVar23 + -1;\n            bVar19 = *pbVar8 < *pbVar16;\n            bVar18 = *pbVar8 == *pbVar16;\n            pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n            pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n          } while (bVar18);\n          if ((!bVar19 && !bVar18) == bVar19) {\n            pcVar15 = "PuTTY key format too new";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          else {\n            pcVar15 = "not a PuTTY SSH-2 private key";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          goto LAB_00055070;\n        }\n        FUN_00065000();\n        bVar3 = 1;\n      }" ({ "{") (expression_statement "iVar4 = 0x16;" (assignment_expression "iVar4 = 0x16" (identifier "iVar4") (= "=") (number_literal "0x16")) (; ";")) (expression_statement "pbVar8 = local_71;" (assignment_expression "pbVar8 = local_71" (identifier "pbVar8") (= "=") (identifier "local_71")) (; ";")) (expression_statement "pbVar16 = (byte *)"PuTTY-User-Key-File-1";" (assignment_expression "pbVar16 = (byte *)"PuTTY-User-Key-File-1"" (identifier "pbVar16") (= "=") (cast_expression "(byte *)"PuTTY-User-Key-File-1"" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (string_literal ""PuTTY-User-Key-File-1"" (" """) (string_content "PuTTY-User-Key-File-1") (" """)))) (; ";")) (do_statement "do {\n          if (iVar4 == 0) break;\n          iVar4 = iVar4 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);" (do "do") (compound_statement "{\n          if (iVar4 == 0) break;\n          iVar4 = iVar4 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        }" ({ "{") (if_statement "if (iVar4 == 0) break;" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar4 = iVar4 + -1;" (assignment_expression "iVar4 = iVar4 + -1" (identifier "iVar4") (= "=") (binary_expression "iVar4 + -1" (identifier "iVar4") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "bVar18 = *pbVar8 < *pbVar16;" (assignment_expression "bVar18 = *pbVar8 < *pbVar16" (identifier "bVar18") (= "=") (binary_expression "*pbVar8 < *pbVar16" (pointer_expression "*pbVar8" (* "*") (identifier "pbVar8")) (< "<") (pointer_expression "*pbVar16" (* "*") (identifier "pbVar16")))) (; ";")) (expression_statement "bVar20 = *pbVar8 == *pbVar16;" (assignment_expression "bVar20 = *pbVar8 == *pbVar16" (identifier "bVar20") (= "=") (binary_expression "*pbVar8 == *pbVar16" (pointer_expression "*pbVar8" (* "*") (identifier "pbVar8")) (== "==") (pointer_expression "*pbVar16" (* "*") (identifier "pbVar16")))) (; ";")) (expression_statement "pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;" (assignment_expression "pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1" (identifier "pbVar8") (= "=") (binary_expression "pbVar8 + (uint)bVar21 * -2 + 1" (binary_expression "pbVar8 + (uint)bVar21 * -2" (identifier "pbVar8") (+ "+") (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar21")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;" (assignment_expression "pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1" (identifier "pbVar16") (= "=") (binary_expression "pbVar16 + (uint)bVar21 * -2 + 1" (binary_expression "pbVar16 + (uint)bVar21 * -2" (identifier "pbVar16") (+ "+") (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar21")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(bVar20)" (( "(") (identifier "bVar20") () ")")) (; ";")) (expression_statement "bVar19 = false;" (assignment_expression "bVar19 = false" (identifier "bVar19") (= "=") (false "false")) (; ";")) (expression_statement "bVar18 = (!bVar18 && !bVar20) == bVar18;" (assignment_expression "bVar18 = (!bVar18 && !bVar20) == bVar18" (identifier "bVar18") (= "=") (binary_expression "(!bVar18 && !bVar20) == bVar18" (parenthesized_expression "(!bVar18 && !bVar20)" (( "(") (binary_expression "!bVar18 && !bVar20" (unary_expression "!bVar18" (! "!") (identifier "bVar18")) (&& "&&") (unary_expression "!bVar20" (! "!") (identifier "bVar20"))) () ")")) (== "==") (identifier "bVar18"))) (; ";")) (if_statement "if (!bVar18) {\n          iVar23 = 0x14;\n          pbVar8 = local_71;\n          pbVar16 = (byte *)"PuTTY-User-Key-File-";\n          do {\n            if (iVar23 == 0) break;\n            iVar23 = iVar23 + -1;\n            bVar19 = *pbVar8 < *pbVar16;\n            bVar18 = *pbVar8 == *pbVar16;\n            pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n            pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n          } while (bVar18);\n          if ((!bVar19 && !bVar18) == bVar19) {\n            pcVar15 = "PuTTY key format too new";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          else {\n            pcVar15 = "not a PuTTY SSH-2 private key";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          goto LAB_00055070;\n        }" (if "if") (parenthesized_expression "(!bVar18)" (( "(") (unary_expression "!bVar18" (! "!") (identifier "bVar18")) () ")")) (compound_statement "{\n          iVar23 = 0x14;\n          pbVar8 = local_71;\n          pbVar16 = (byte *)"PuTTY-User-Key-File-";\n          do {\n            if (iVar23 == 0) break;\n            iVar23 = iVar23 + -1;\n            bVar19 = *pbVar8 < *pbVar16;\n            bVar18 = *pbVar8 == *pbVar16;\n            pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n            pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n          } while (bVar18);\n          if ((!bVar19 && !bVar18) == bVar19) {\n            pcVar15 = "PuTTY key format too new";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          else {\n            pcVar15 = "not a PuTTY SSH-2 private key";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          goto LAB_00055070;\n        }" ({ "{") (expression_statement "iVar23 = 0x14;" (assignment_expression "iVar23 = 0x14" (identifier "iVar23") (= "=") (number_literal "0x14")) (; ";")) (expression_statement "pbVar8 = local_71;" (assignment_expression "pbVar8 = local_71" (identifier "pbVar8") (= "=") (identifier "local_71")) (; ";")) (expression_statement "pbVar16 = (byte *)"PuTTY-User-Key-File-";" (assignment_expression "pbVar16 = (byte *)"PuTTY-User-Key-File-"" (identifier "pbVar16") (= "=") (cast_expression "(byte *)"PuTTY-User-Key-File-"" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (string_literal ""PuTTY-User-Key-File-"" (" """) (string_content "PuTTY-User-Key-File-") (" """)))) (; ";")) (do_statement "do {\n            if (iVar23 == 0) break;\n            iVar23 = iVar23 + -1;\n            bVar19 = *pbVar8 < *pbVar16;\n            bVar18 = *pbVar8 == *pbVar16;\n            pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n            pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n          } while (bVar18);" (do "do") (compound_statement "{\n            if (iVar23 == 0) break;\n            iVar23 = iVar23 + -1;\n            bVar19 = *pbVar8 < *pbVar16;\n            bVar18 = *pbVar8 == *pbVar16;\n            pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n            pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n          }" ({ "{") (if_statement "if (iVar23 == 0) break;" (if "if") (parenthesized_expression "(iVar23 == 0)" (( "(") (binary_expression "iVar23 == 0" (identifier "iVar23") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar23 = iVar23 + -1;" (assignment_expression "iVar23 = iVar23 + -1" (identifier "iVar23") (= "=") (binary_expression "iVar23 + -1" (identifier "iVar23") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "bVar19 = *pbVar8 < *pbVar16;" (assignment_expression "bVar19 = *pbVar8 < *pbVar16" (identifier "bVar19") (= "=") (binary_expression "*pbVar8 < *pbVar16" (pointer_expression "*pbVar8" (* "*") (identifier "pbVar8")) (< "<") (pointer_expression "*pbVar16" (* "*") (identifier "pbVar16")))) (; ";")) (expression_statement "bVar18 = *pbVar8 == *pbVar16;" (assignment_expression "bVar18 = *pbVar8 == *pbVar16" (identifier "bVar18") (= "=") (binary_expression "*pbVar8 == *pbVar16" (pointer_expression "*pbVar8" (* "*") (identifier "pbVar8")) (== "==") (pointer_expression "*pbVar16" (* "*") (identifier "pbVar16")))) (; ";")) (expression_statement "pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;" (assignment_expression "pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1" (identifier "pbVar8") (= "=") (binary_expression "pbVar8 + (uint)bVar21 * -2 + 1" (binary_expression "pbVar8 + (uint)bVar21 * -2" (identifier "pbVar8") (+ "+") (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar21")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;" (assignment_expression "pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1" (identifier "pbVar16") (= "=") (binary_expression "pbVar16 + (uint)bVar21 * -2 + 1" (binary_expression "pbVar16 + (uint)bVar21 * -2" (identifier "pbVar16") (+ "+") (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar21")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(bVar18)" (( "(") (identifier "bVar18") () ")")) (; ";")) (if_statement "if ((!bVar19 && !bVar18) == bVar19) {\n            pcVar15 = "PuTTY key format too new";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }\n          else {\n            pcVar15 = "not a PuTTY SSH-2 private key";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }" (if "if") (parenthesized_expression "((!bVar19 && !bVar18) == bVar19)" (( "(") (binary_expression "(!bVar19 && !bVar18) == bVar19" (parenthesized_expression "(!bVar19 && !bVar18)" (( "(") (binary_expression "!bVar19 && !bVar18" (unary_expression "!bVar19" (! "!") (identifier "bVar19")) (&& "&&") (unary_expression "!bVar18" (! "!") (identifier "bVar18"))) () ")")) (== "==") (identifier "bVar19")) () ")")) (compound_statement "{\n            pcVar15 = "PuTTY key format too new";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }" ({ "{") (expression_statement "pcVar15 = "PuTTY key format too new";" (assignment_expression "pcVar15 = "PuTTY key format too new"" (identifier "pcVar15") (= "=") (string_literal ""PuTTY key format too new"" (" """) (string_content "PuTTY key format too new") (" """))) (; ";")) (expression_statement "piVar14 = (int *)0x0;" (assignment_expression "piVar14 = (int *)0x0" (identifier "piVar14") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "fclose(__stream);" (call_expression "fclose(__stream)" (identifier "fclose") (argument_list "(__stream)" (( "(") (identifier "__stream") () ")"))) (; ";")) (} "}")) (else_clause "else {\n            pcVar15 = "not a PuTTY SSH-2 private key";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }" (else "else") (compound_statement "{\n            pcVar15 = "not a PuTTY SSH-2 private key";\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n          }" ({ "{") (expression_statement "pcVar15 = "not a PuTTY SSH-2 private key";" (assignment_expression "pcVar15 = "not a PuTTY SSH-2 private key"" (identifier "pcVar15") (= "=") (string_literal ""not a PuTTY SSH-2 private key"" (" """) (string_content "not a PuTTY SSH-2 private key") (" """))) (; ";")) (expression_statement "piVar14 = (int *)0x0;" (assignment_expression "piVar14 = (int *)0x0" (identifier "piVar14") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "fclose(__stream);" (call_expression "fclose(__stream)" (identifier "fclose") (argument_list "(__stream)" (( "(") (identifier "__stream") () ")"))) (; ";")) (} "}")))) (goto_statement "goto LAB_00055070;" (goto "goto") (statement_identifier "LAB_00055070") (; ";")) (} "}"))) (expression_statement "FUN_00065000();" (call_expression "FUN_00065000()" (identifier "FUN_00065000") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "bVar3 = 1;" (assignment_expression "bVar3 = 1" (identifier "bVar3") (= "=") (number_literal "1")) (; ";")) (} "}"))) (expression_statement "pcVar5 = (char *)FUN_00053e50();" (assignment_expression "pcVar5 = (char *)FUN_00053e50()" (identifier "pcVar5") (= "=") (cast_expression "(char *)FUN_00053e50()" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00053e50()" (identifier "FUN_00053e50") (argument_list "()" (( "(") () ")"))))) (; ";")) (if_statement "if (pcVar5 == (char *)0x0) goto LAB_0005510e;" (if "if") (parenthesized_expression "(pcVar5 == (char *)0x0)" (( "(") (binary_expression "pcVar5 == (char *)0x0" (identifier "pcVar5") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_0005510e;" (goto "goto") (statement_identifier "LAB_0005510e") (; ";"))) (expression_statement "sVar6 = strlen(pcVar5);" (assignment_expression "sVar6 = strlen(pcVar5)" (identifier "sVar6") (= "=") (call_expression "strlen(pcVar5)" (identifier "strlen") (argument_list "(pcVar5)" (( "(") (identifier "pcVar5") () ")")))) (; ";")) (expression_statement "pcVar22 = pcVar5;" (assignment_expression "pcVar22 = pcVar5" (identifier "pcVar22") (= "=") (identifier "pcVar5")) (; ";")) (expression_statement "iVar4 = FUN_00054a80(sVar6,pcVar5);" (assignment_expression "iVar4 = FUN_00054a80(sVar6,pcVar5)" (identifier "iVar4") (= "=") (call_expression "FUN_00054a80(sVar6,pcVar5)" (identifier "FUN_00054a80") (argument_list "(sVar6,pcVar5)" (( "(") (identifier "sVar6") (, ",") (identifier "pcVar5") () ")")))) (; ";")) (if_statement "if (iVar4 == 0) {\n        pcVar15 = "file format error";\n        FUN_0001b250(pcVar5);\n        piVar14 = (int *)0x0;\n        fclose(__stream);\n        goto LAB_00055070;\n      }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        pcVar15 = "file format error";\n        FUN_0001b250(pcVar5);\n        piVar14 = (int *)0x0;\n        fclose(__stream);\n        goto LAB_00055070;\n      }" ({ "{") (expression_statement "pcVar15 = "file format error";" (assignment_expression "pcVar15 = "file format error"" (identifier "pcVar15") (= "=") (string_literal ""file format error"" (" """) (string_content "file format error") (" """))) (; ";")) (expression_statement "FUN_0001b250(pcVar5);" (call_expression "FUN_0001b250(pcVar5)" (identifier "FUN_0001b250") (argument_list "(pcVar5)" (( "(") (identifier "pcVar5") () ")"))) (; ";")) (expression_statement "piVar14 = (int *)0x0;" (assignment_expression "piVar14 = (int *)0x0" (identifier "piVar14") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "fclose(__stream);" (call_expression "fclose(__stream)" (identifier "fclose") (argument_list "(__stream)" (( "(") (identifier "__stream") () ")"))) (; ";")) (goto_statement "goto LAB_00055070;" (goto "goto") (statement_identifier "LAB_00055070") (; ";")) (} "}"))) (expression_statement "FUN_0001b250(pcVar5);" (call_expression "FUN_0001b250(pcVar5)" (identifier "FUN_0001b250") (argument_list "(pcVar5)" (( "(") (identifier "pcVar5") () ")"))) (; ";")) (expression_statement "iVar7 = FUN_00053dd0();" (assignment_expression "iVar7 = FUN_00053dd0()" (identifier "iVar7") (= "=") (call_expression "FUN_00053dd0()" (identifier "FUN_00053dd0") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "bVar18 = false;" (assignment_expression "bVar18 = false" (identifier "bVar18") (= "=") (false "false")) (; ";")) (expression_statement "bVar20 = iVar7 == 0;" (assignment_expression "bVar20 = iVar7 == 0" (identifier "bVar20") (= "=") (binary_expression "iVar7 == 0" (identifier "iVar7") (== "==") (number_literal "0"))) (; ";")) (if_statement "if (!bVar20) {\n        iVar7 = 0xb;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"Encryption";\n        do {\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        if ((!bVar18 && !bVar20) == bVar18) {\n          pbVar8 = (byte *)FUN_00053e50();\n          bVar18 = false;\n          bVar20 = pbVar8 == (byte *)0x0;\n          if (!bVar20) {\n            iVar7 = 0xb;\n            pbVar16 = pbVar8;\n            pbVar17 = (byte *)"aes256-cbc";\n            do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar18 = *pbVar16 < *pbVar17;\n              bVar20 = *pbVar16 == *pbVar17;\n              pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n              pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n            } while (bVar20);\n            bVar19 = false;\n            bVar18 = (!bVar18 && !bVar20) == bVar18;\n            if (bVar18) {\n              local_124 = 0x10;\n              bVar18 = true;\nLAB_000551a8:\n              iVar7 = FUN_00053dd0();\n              bVar20 = false;\n              bVar19 = iVar7 == 0;\n              if (!bVar19) {\n                iVar7 = 8;\n                pbVar16 = local_71;\n                pbVar17 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                } while (bVar19);\n                if ((!bVar20 && !bVar19) == bVar20) {\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar8;\n              pbVar17 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar19 = *pbVar16 < *pbVar17;\n                bVar18 = *pbVar16 == *pbVar17;\n                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n              } while (bVar18);\n              if ((!bVar19 && !bVar18) == bVar19) {\n                local_124 = 1;\n                bVar18 = false;\n                goto LAB_000551a8;\n              }\n            }\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n            pcVar15 = "file format error";\n            FUN_0001b250(pbVar8);\n            goto LAB_00055070;\n          }\n        }\n      }" (if "if") (parenthesized_expression "(!bVar20)" (( "(") (unary_expression "!bVar20" (! "!") (identifier "bVar20")) () ")")) (compound_statement "{\n        iVar7 = 0xb;\n        pbVar8 = local_71;\n        pbVar16 = (byte *)"Encryption";\n        do {\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);\n        if ((!bVar18 && !bVar20) == bVar18) {\n          pbVar8 = (byte *)FUN_00053e50();\n          bVar18 = false;\n          bVar20 = pbVar8 == (byte *)0x0;\n          if (!bVar20) {\n            iVar7 = 0xb;\n            pbVar16 = pbVar8;\n            pbVar17 = (byte *)"aes256-cbc";\n            do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar18 = *pbVar16 < *pbVar17;\n              bVar20 = *pbVar16 == *pbVar17;\n              pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n              pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n            } while (bVar20);\n            bVar19 = false;\n            bVar18 = (!bVar18 && !bVar20) == bVar18;\n            if (bVar18) {\n              local_124 = 0x10;\n              bVar18 = true;\nLAB_000551a8:\n              iVar7 = FUN_00053dd0();\n              bVar20 = false;\n              bVar19 = iVar7 == 0;\n              if (!bVar19) {\n                iVar7 = 8;\n                pbVar16 = local_71;\n                pbVar17 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                } while (bVar19);\n                if ((!bVar20 && !bVar19) == bVar20) {\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar8;\n              pbVar17 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar19 = *pbVar16 < *pbVar17;\n                bVar18 = *pbVar16 == *pbVar17;\n                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n              } while (bVar18);\n              if ((!bVar19 && !bVar18) == bVar19) {\n                local_124 = 1;\n                bVar18 = false;\n                goto LAB_000551a8;\n              }\n            }\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n            pcVar15 = "file format error";\n            FUN_0001b250(pbVar8);\n            goto LAB_00055070;\n          }\n        }\n      }" ({ "{") (expression_statement "iVar7 = 0xb;" (assignment_expression "iVar7 = 0xb" (identifier "iVar7") (= "=") (number_literal "0xb")) (; ";")) (expression_statement "pbVar8 = local_71;" (assignment_expression "pbVar8 = local_71" (identifier "pbVar8") (= "=") (identifier "local_71")) (; ";")) (expression_statement "pbVar16 = (byte *)"Encryption";" (assignment_expression "pbVar16 = (byte *)"Encryption"" (identifier "pbVar16") (= "=") (cast_expression "(byte *)"Encryption"" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (string_literal ""Encryption"" (" """) (string_content "Encryption") (" """)))) (; ";")) (do_statement "do {\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        } while (bVar20);" (do "do") (compound_statement "{\n          if (iVar7 == 0) break;\n          iVar7 = iVar7 + -1;\n          bVar18 = *pbVar8 < *pbVar16;\n          bVar20 = *pbVar8 == *pbVar16;\n          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;\n          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n        }" ({ "{") (if_statement "if (iVar7 == 0) break;" (if "if") (parenthesized_expression "(iVar7 == 0)" (( "(") (binary_expression "iVar7 == 0" (identifier "iVar7") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar7 = iVar7 + -1;" (assignment_expression "iVar7 = iVar7 + -1" (identifier "iVar7") (= "=") (binary_expression "iVar7 + -1" (identifier "iVar7") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "bVar18 = *pbVar8 < *pbVar16;" (assignment_expression "bVar18 = *pbVar8 < *pbVar16" (identifier "bVar18") (= "=") (binary_expression "*pbVar8 < *pbVar16" (pointer_expression "*pbVar8" (* "*") (identifier "pbVar8")) (< "<") (pointer_expression "*pbVar16" (* "*") (identifier "pbVar16")))) (; ";")) (expression_statement "bVar20 = *pbVar8 == *pbVar16;" (assignment_expression "bVar20 = *pbVar8 == *pbVar16" (identifier "bVar20") (= "=") (binary_expression "*pbVar8 == *pbVar16" (pointer_expression "*pbVar8" (* "*") (identifier "pbVar8")) (== "==") (pointer_expression "*pbVar16" (* "*") (identifier "pbVar16")))) (; ";")) (expression_statement "pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;" (assignment_expression "pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1" (identifier "pbVar8") (= "=") (binary_expression "pbVar8 + (uint)bVar21 * -2 + 1" (binary_expression "pbVar8 + (uint)bVar21 * -2" (identifier "pbVar8") (+ "+") (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar21")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;" (assignment_expression "pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1" (identifier "pbVar16") (= "=") (binary_expression "pbVar16 + (uint)bVar21 * -2 + 1" (binary_expression "pbVar16 + (uint)bVar21 * -2" (identifier "pbVar16") (+ "+") (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar21")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(bVar20)" (( "(") (identifier "bVar20") () ")")) (; ";")) (if_statement "if ((!bVar18 && !bVar20) == bVar18) {\n          pbVar8 = (byte *)FUN_00053e50();\n          bVar18 = false;\n          bVar20 = pbVar8 == (byte *)0x0;\n          if (!bVar20) {\n            iVar7 = 0xb;\n            pbVar16 = pbVar8;\n            pbVar17 = (byte *)"aes256-cbc";\n            do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar18 = *pbVar16 < *pbVar17;\n              bVar20 = *pbVar16 == *pbVar17;\n              pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n              pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n            } while (bVar20);\n            bVar19 = false;\n            bVar18 = (!bVar18 && !bVar20) == bVar18;\n            if (bVar18) {\n              local_124 = 0x10;\n              bVar18 = true;\nLAB_000551a8:\n              iVar7 = FUN_00053dd0();\n              bVar20 = false;\n              bVar19 = iVar7 == 0;\n              if (!bVar19) {\n                iVar7 = 8;\n                pbVar16 = local_71;\n                pbVar17 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                } while (bVar19);\n                if ((!bVar20 && !bVar19) == bVar20) {\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar8;\n              pbVar17 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar19 = *pbVar16 < *pbVar17;\n                bVar18 = *pbVar16 == *pbVar17;\n                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n              } while (bVar18);\n              if ((!bVar19 && !bVar18) == bVar19) {\n                local_124 = 1;\n                bVar18 = false;\n                goto LAB_000551a8;\n              }\n            }\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n            pcVar15 = "file format error";\n            FUN_0001b250(pbVar8);\n            goto LAB_00055070;\n          }\n        }" (if "if") (parenthesized_expression "((!bVar18 && !bVar20) == bVar18)" (( "(") (binary_expression "(!bVar18 && !bVar20) == bVar18" (parenthesized_expression "(!bVar18 && !bVar20)" (( "(") (binary_expression "!bVar18 && !bVar20" (unary_expression "!bVar18" (! "!") (identifier "bVar18")) (&& "&&") (unary_expression "!bVar20" (! "!") (identifier "bVar20"))) () ")")) (== "==") (identifier "bVar18")) () ")")) (compound_statement "{\n          pbVar8 = (byte *)FUN_00053e50();\n          bVar18 = false;\n          bVar20 = pbVar8 == (byte *)0x0;\n          if (!bVar20) {\n            iVar7 = 0xb;\n            pbVar16 = pbVar8;\n            pbVar17 = (byte *)"aes256-cbc";\n            do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar18 = *pbVar16 < *pbVar17;\n              bVar20 = *pbVar16 == *pbVar17;\n              pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n              pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n            } while (bVar20);\n            bVar19 = false;\n            bVar18 = (!bVar18 && !bVar20) == bVar18;\n            if (bVar18) {\n              local_124 = 0x10;\n              bVar18 = true;\nLAB_000551a8:\n              iVar7 = FUN_00053dd0();\n              bVar20 = false;\n              bVar19 = iVar7 == 0;\n              if (!bVar19) {\n                iVar7 = 8;\n                pbVar16 = local_71;\n                pbVar17 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                } while (bVar19);\n                if ((!bVar20 && !bVar19) == bVar20) {\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar8;\n              pbVar17 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar19 = *pbVar16 < *pbVar17;\n                bVar18 = *pbVar16 == *pbVar17;\n                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n              } while (bVar18);\n              if ((!bVar19 && !bVar18) == bVar19) {\n                local_124 = 1;\n                bVar18 = false;\n                goto LAB_000551a8;\n              }\n            }\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n            pcVar15 = "file format error";\n            FUN_0001b250(pbVar8);\n            goto LAB_00055070;\n          }\n        }" ({ "{") (expression_statement "pbVar8 = (byte *)FUN_00053e50();" (assignment_expression "pbVar8 = (byte *)FUN_00053e50()" (identifier "pbVar8") (= "=") (cast_expression "(byte *)FUN_00053e50()" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00053e50()" (identifier "FUN_00053e50") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "bVar18 = false;" (assignment_expression "bVar18 = false" (identifier "bVar18") (= "=") (false "false")) (; ";")) (expression_statement "bVar20 = pbVar8 == (byte *)0x0;" (assignment_expression "bVar20 = pbVar8 == (byte *)0x0" (identifier "bVar20") (= "=") (binary_expression "pbVar8 == (byte *)0x0" (identifier "pbVar8") (== "==") (cast_expression "(byte *)0x0" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) (; ";")) (if_statement "if (!bVar20) {\n            iVar7 = 0xb;\n            pbVar16 = pbVar8;\n            pbVar17 = (byte *)"aes256-cbc";\n            do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar18 = *pbVar16 < *pbVar17;\n              bVar20 = *pbVar16 == *pbVar17;\n              pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n              pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n            } while (bVar20);\n            bVar19 = false;\n            bVar18 = (!bVar18 && !bVar20) == bVar18;\n            if (bVar18) {\n              local_124 = 0x10;\n              bVar18 = true;\nLAB_000551a8:\n              iVar7 = FUN_00053dd0();\n              bVar20 = false;\n              bVar19 = iVar7 == 0;\n              if (!bVar19) {\n                iVar7 = 8;\n                pbVar16 = local_71;\n                pbVar17 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                } while (bVar19);\n                if ((!bVar20 && !bVar19) == bVar20) {\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar8;\n              pbVar17 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar19 = *pbVar16 < *pbVar17;\n                bVar18 = *pbVar16 == *pbVar17;\n                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n              } while (bVar18);\n              if ((!bVar19 && !bVar18) == bVar19) {\n                local_124 = 1;\n                bVar18 = false;\n                goto LAB_000551a8;\n              }\n            }\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n            pcVar15 = "file format error";\n            FUN_0001b250(pbVar8);\n            goto LAB_00055070;\n          }" (if "if") (parenthesized_expression "(!bVar20)" (( "(") (unary_expression "!bVar20" (! "!") (identifier "bVar20")) () ")")) (compound_statement "{\n            iVar7 = 0xb;\n            pbVar16 = pbVar8;\n            pbVar17 = (byte *)"aes256-cbc";\n            do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar18 = *pbVar16 < *pbVar17;\n              bVar20 = *pbVar16 == *pbVar17;\n              pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n              pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n            } while (bVar20);\n            bVar19 = false;\n            bVar18 = (!bVar18 && !bVar20) == bVar18;\n            if (bVar18) {\n              local_124 = 0x10;\n              bVar18 = true;\nLAB_000551a8:\n              iVar7 = FUN_00053dd0();\n              bVar20 = false;\n              bVar19 = iVar7 == 0;\n              if (!bVar19) {\n                iVar7 = 8;\n                pbVar16 = local_71;\n                pbVar17 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                } while (bVar19);\n                if ((!bVar20 && !bVar19) == bVar20) {\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar8;\n              pbVar17 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar19 = *pbVar16 < *pbVar17;\n                bVar18 = *pbVar16 == *pbVar17;\n                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n              } while (bVar18);\n              if ((!bVar19 && !bVar18) == bVar19) {\n                local_124 = 1;\n                bVar18 = false;\n                goto LAB_000551a8;\n              }\n            }\n            piVar14 = (int *)0x0;\n            fclose(__stream);\n            pcVar15 = "file format error";\n            FUN_0001b250(pbVar8);\n            goto LAB_00055070;\n          }" ({ "{") (expression_statement "iVar7 = 0xb;" (assignment_expression "iVar7 = 0xb" (identifier "iVar7") (= "=") (number_literal "0xb")) (; ";")) (expression_statement "pbVar16 = pbVar8;" (assignment_expression "pbVar16 = pbVar8" (identifier "pbVar16") (= "=") (identifier "pbVar8")) (; ";")) (expression_statement "pbVar17 = (byte *)"aes256-cbc";" (assignment_expression "pbVar17 = (byte *)"aes256-cbc"" (identifier "pbVar17") (= "=") (cast_expression "(byte *)"aes256-cbc"" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (string_literal ""aes256-cbc"" (" """) (string_content "aes256-cbc") (" """)))) (; ";")) (do_statement "do {\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar18 = *pbVar16 < *pbVar17;\n              bVar20 = *pbVar16 == *pbVar17;\n              pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n              pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n            } while (bVar20);" (do "do") (compound_statement "{\n              if (iVar7 == 0) break;\n              iVar7 = iVar7 + -1;\n              bVar18 = *pbVar16 < *pbVar17;\n              bVar20 = *pbVar16 == *pbVar17;\n              pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n              pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n            }" ({ "{") (if_statement "if (iVar7 == 0) break;" (if "if") (parenthesized_expression "(iVar7 == 0)" (( "(") (binary_expression "iVar7 == 0" (identifier "iVar7") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar7 = iVar7 + -1;" (assignment_expression "iVar7 = iVar7 + -1" (identifier "iVar7") (= "=") (binary_expression "iVar7 + -1" (identifier "iVar7") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "bVar18 = *pbVar16 < *pbVar17;" (assignment_expression "bVar18 = *pbVar16 < *pbVar17" (identifier "bVar18") (= "=") (binary_expression "*pbVar16 < *pbVar17" (pointer_expression "*pbVar16" (* "*") (identifier "pbVar16")) (< "<") (pointer_expression "*pbVar17" (* "*") (identifier "pbVar17")))) (; ";")) (expression_statement "bVar20 = *pbVar16 == *pbVar17;" (assignment_expression "bVar20 = *pbVar16 == *pbVar17" (identifier "bVar20") (= "=") (binary_expression "*pbVar16 == *pbVar17" (pointer_expression "*pbVar16" (* "*") (identifier "pbVar16")) (== "==") (pointer_expression "*pbVar17" (* "*") (identifier "pbVar17")))) (; ";")) (expression_statement "pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;" (assignment_expression "pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1" (identifier "pbVar16") (= "=") (binary_expression "pbVar16 + (uint)bVar21 * -2 + 1" (binary_expression "pbVar16 + (uint)bVar21 * -2" (identifier "pbVar16") (+ "+") (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar21")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;" (assignment_expression "pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1" (identifier "pbVar17") (= "=") (binary_expression "pbVar17 + (uint)bVar21 * -2 + 1" (binary_expression "pbVar17 + (uint)bVar21 * -2" (identifier "pbVar17") (+ "+") (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar21")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(bVar20)" (( "(") (identifier "bVar20") () ")")) (; ";")) (expression_statement "bVar19 = false;" (assignment_expression "bVar19 = false" (identifier "bVar19") (= "=") (false "false")) (; ";")) (expression_statement "bVar18 = (!bVar18 && !bVar20) == bVar18;" (assignment_expression "bVar18 = (!bVar18 && !bVar20) == bVar18" (identifier "bVar18") (= "=") (binary_expression "(!bVar18 && !bVar20) == bVar18" (parenthesized_expression "(!bVar18 && !bVar20)" (( "(") (binary_expression "!bVar18 && !bVar20" (unary_expression "!bVar18" (! "!") (identifier "bVar18")) (&& "&&") (unary_expression "!bVar20" (! "!") (identifier "bVar20"))) () ")")) (== "==") (identifier "bVar18"))) (; ";")) (if_statement "if (bVar18) {\n              local_124 = 0x10;\n              bVar18 = true;\nLAB_000551a8:\n              iVar7 = FUN_00053dd0();\n              bVar20 = false;\n              bVar19 = iVar7 == 0;\n              if (!bVar19) {\n                iVar7 = 8;\n                pbVar16 = local_71;\n                pbVar17 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                } while (bVar19);\n                if ((!bVar20 && !bVar19) == bVar20) {\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }\n            else {\n              iVar7 = 5;\n              pbVar16 = pbVar8;\n              pbVar17 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar19 = *pbVar16 < *pbVar17;\n                bVar18 = *pbVar16 == *pbVar17;\n                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n              } while (bVar18);\n              if ((!bVar19 && !bVar18) == bVar19) {\n                local_124 = 1;\n                bVar18 = false;\n                goto LAB_000551a8;\n              }\n            }" (if "if") (parenthesized_expression "(bVar18)" (( "(") (identifier "bVar18") () ")")) (compound_statement "{\n              local_124 = 0x10;\n              bVar18 = true;\nLAB_000551a8:\n              iVar7 = FUN_00053dd0();\n              bVar20 = false;\n              bVar19 = iVar7 == 0;\n              if (!bVar19) {\n                iVar7 = 8;\n                pbVar16 = local_71;\n                pbVar17 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                } while (bVar19);\n                if ((!bVar20 && !bVar19) == bVar20) {\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }\n            }" ({ "{") (expression_statement "local_124 = 0x10;" (assignment_expression "local_124 = 0x10" (identifier "local_124") (= "=") (number_literal "0x10")) (; ";")) (expression_statement "bVar18 = true;" (assignment_expression "bVar18 = true" (identifier "bVar18") (= "=") (true "true")) (; ";")) (labeled_statement "LAB_000551a8:\n              iVar7 = FUN_00053dd0();" (statement_identifier "LAB_000551a8") (: ":") (expression_statement "iVar7 = FUN_00053dd0();" (assignment_expression "iVar7 = FUN_00053dd0()" (identifier "iVar7") (= "=") (call_expression "FUN_00053dd0()" (identifier "FUN_00053dd0") (argument_list "()" (( "(") () ")")))) (; ";"))) (expression_statement "bVar20 = false;" (assignment_expression "bVar20 = false" (identifier "bVar20") (= "=") (false "false")) (; ";")) (expression_statement "bVar19 = iVar7 == 0;" (assignment_expression "bVar19 = iVar7 == 0" (identifier "bVar19") (= "=") (binary_expression "iVar7 == 0" (identifier "iVar7") (== "==") (number_literal "0"))) (; ";")) (if_statement "if (!bVar19) {\n                iVar7 = 8;\n                pbVar16 = local_71;\n                pbVar17 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                } while (bVar19);\n                if ((!bVar20 && !bVar19) == bVar20) {\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }" (if "if") (parenthesized_expression "(!bVar19)" (( "(") (unary_expression "!bVar19" (! "!") (identifier "bVar19")) () ")")) (compound_statement "{\n                iVar7 = 8;\n                pbVar16 = local_71;\n                pbVar17 = (byte *)"Comment";\n                do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                } while (bVar19);\n                if ((!bVar20 && !bVar19) == bVar20) {\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }\n              }" ({ "{") (expression_statement "iVar7 = 8;" (assignment_expression "iVar7 = 8" (identifier "iVar7") (= "=") (number_literal "8")) (; ";")) (expression_statement "pbVar16 = local_71;" (assignment_expression "pbVar16 = local_71" (identifier "pbVar16") (= "=") (identifier "local_71")) (; ";")) (expression_statement "pbVar17 = (byte *)"Comment";" (assignment_expression "pbVar17 = (byte *)"Comment"" (identifier "pbVar17") (= "=") (cast_expression "(byte *)"Comment"" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (string_literal ""Comment"" (" """) (string_content "Comment") (" """)))) (; ";")) (do_statement "do {\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                } while (bVar19);" (do "do") (compound_statement "{\n                  if (iVar7 == 0) break;\n                  iVar7 = iVar7 + -1;\n                  bVar20 = *pbVar16 < *pbVar17;\n                  bVar19 = *pbVar16 == *pbVar17;\n                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                }" ({ "{") (if_statement "if (iVar7 == 0) break;" (if "if") (parenthesized_expression "(iVar7 == 0)" (( "(") (binary_expression "iVar7 == 0" (identifier "iVar7") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar7 = iVar7 + -1;" (assignment_expression "iVar7 = iVar7 + -1" (identifier "iVar7") (= "=") (binary_expression "iVar7 + -1" (identifier "iVar7") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "bVar20 = *pbVar16 < *pbVar17;" (assignment_expression "bVar20 = *pbVar16 < *pbVar17" (identifier "bVar20") (= "=") (binary_expression "*pbVar16 < *pbVar17" (pointer_expression "*pbVar16" (* "*") (identifier "pbVar16")) (< "<") (pointer_expression "*pbVar17" (* "*") (identifier "pbVar17")))) (; ";")) (expression_statement "bVar19 = *pbVar16 == *pbVar17;" (assignment_expression "bVar19 = *pbVar16 == *pbVar17" (identifier "bVar19") (= "=") (binary_expression "*pbVar16 == *pbVar17" (pointer_expression "*pbVar16" (* "*") (identifier "pbVar16")) (== "==") (pointer_expression "*pbVar17" (* "*") (identifier "pbVar17")))) (; ";")) (expression_statement "pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;" (assignment_expression "pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1" (identifier "pbVar16") (= "=") (binary_expression "pbVar16 + (uint)bVar21 * -2 + 1" (binary_expression "pbVar16 + (uint)bVar21 * -2" (identifier "pbVar16") (+ "+") (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar21")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;" (assignment_expression "pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1" (identifier "pbVar17") (= "=") (binary_expression "pbVar17 + (uint)bVar21 * -2 + 1" (binary_expression "pbVar17 + (uint)bVar21 * -2" (identifier "pbVar17") (+ "+") (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar21")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(bVar19)" (( "(") (identifier "bVar19") () ")")) (; ";")) (if_statement "if ((!bVar20 && !bVar19) == bVar20) {\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }" (if "if") (parenthesized_expression "((!bVar20 && !bVar19) == bVar20)" (( "(") (binary_expression "(!bVar20 && !bVar19) == bVar20" (parenthesized_expression "(!bVar20 && !bVar19)" (( "(") (binary_expression "!bVar20 && !bVar19" (unary_expression "!bVar20" (! "!") (identifier "bVar20")) (&& "&&") (unary_expression "!bVar19" (! "!") (identifier "bVar19"))) () ")")) (== "==") (identifier "bVar20")) () ")")) (compound_statement "{\n                  pcVar5 = (char *)FUN_00053e50();\n                  if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }\n                  iVar7 = FUN_00053dd0();\n                  bVar20 = false;\n                  bVar19 = iVar7 == 0;\n                  if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }\n                  if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }\n                  if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }\n                  goto LAB_00055070;\n                }" ({ "{") (expression_statement "pcVar5 = (char *)FUN_00053e50();" (assignment_expression "pcVar5 = (char *)FUN_00053e50()" (identifier "pcVar5") (= "=") (cast_expression "(char *)FUN_00053e50()" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00053e50()" (identifier "FUN_00053e50") (argument_list "()" (( "(") () ")"))))) (; ";")) (if_statement "if (pcVar5 == (char *)0x0) {\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }" (if "if") (parenthesized_expression "(pcVar5 == (char *)0x0)" (( "(") (binary_expression "pcVar5 == (char *)0x0" (identifier "pcVar5") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\n                    fclose(__stream);\n                    FUN_0001b250(pbVar8);\n                    goto LAB_00055070;\n                  }" ({ "{") (expression_statement "pcVar15 = "file format error";" (assignment_expression "pcVar15 = "file format error"" (identifier "pcVar15") (= "=") (string_literal ""file format error"" (" """) (string_content "file format error") (" """))) (; ";")) (expression_statement "piVar14 = (int *)0x0;" (assignment_expression "piVar14 = (int *)0x0" (identifier "piVar14") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "fclose(__stream);" (call_expression "fclose(__stream)" (identifier "fclose") (argument_list "(__stream)" (( "(") (identifier "__stream") () ")"))) (; ";")) (expression_statement "FUN_0001b250(pbVar8);" (call_expression "FUN_0001b250(pbVar8)" (identifier "FUN_0001b250") (argument_list "(pbVar8)" (( "(") (identifier "pbVar8") () ")"))) (; ";")) (goto_statement "goto LAB_00055070;" (goto "goto") (statement_identifier "LAB_00055070") (; ";")) (} "}"))) (expression_statement "iVar7 = FUN_00053dd0();" (assignment_expression "iVar7 = FUN_00053dd0()" (identifier "iVar7") (= "=") (call_expression "FUN_00053dd0()" (identifier "FUN_00053dd0") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "bVar20 = false;" (assignment_expression "bVar20 = false" (identifier "bVar20") (= "=") (false "false")) (; ";")) (expression_statement "bVar19 = iVar7 == 0;" (assignment_expression "bVar19 = iVar7 == 0" (identifier "bVar19") (= "=") (binary_expression "iVar7 == 0" (identifier "iVar7") (== "==") (number_literal "0"))) (; ";")) (if_statement "if (bVar19) {\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }\n                  else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }" (if "if") (parenthesized_expression "(bVar19)" (( "(") (identifier "bVar19") () ")")) (compound_statement "{\nLAB_000555ad:\n                    local_140 = (uint *)0x0;\n                    local_13c = (void *)0x0;\nLAB_0005553d:\n                    iVar9 = iVar23;\n                    pcVar15 = "file format error";\n                    fclose(__stream);\nLAB_0005554f:\n                    piVar14 = (int *)0x0;\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                  }" ({ "{") (labeled_statement "LAB_000555ad:\n                    local_140 = (uint *)0x0;" (statement_identifier "LAB_000555ad") (: ":") (expression_statement "local_140 = (uint *)0x0;" (assignment_expression "local_140 = (uint *)0x0" (identifier "local_140") (= "=") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";"))) (expression_statement "local_13c = (void *)0x0;" (assignment_expression "local_13c = (void *)0x0" (identifier "local_13c") (= "=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (labeled_statement "LAB_0005553d:\n                    iVar9 = iVar23;" (statement_identifier "LAB_0005553d") (: ":") (expression_statement "iVar9 = iVar23;" (assignment_expression "iVar9 = iVar23" (identifier "iVar9") (= "=") (identifier "iVar23")) (; ";"))) (expression_statement "pcVar15 = "file format error";" (assignment_expression "pcVar15 = "file format error"" (identifier "pcVar15") (= "=") (string_literal ""file format error"" (" """) (string_content "file format error") (" """))) (; ";")) (expression_statement "fclose(__stream);" (call_expression "fclose(__stream)" (identifier "fclose") (argument_list "(__stream)" (( "(") (identifier "__stream") () ")"))) (; ";")) (labeled_statement "LAB_0005554f:\n                    piVar14 = (int *)0x0;" (statement_identifier "LAB_0005554f") (: ":") (expression_statement "piVar14 = (int *)0x0;" (assignment_expression "piVar14 = (int *)0x0" (identifier "piVar14") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";"))) (expression_statement "FUN_0001b250(pcVar5,pcVar22,iVar9);" (call_expression "FUN_0001b250(pcVar5,pcVar22,iVar9)" (identifier "FUN_0001b250") (argument_list "(pcVar5,pcVar22,iVar9)" (( "(") (identifier "pcVar5") (, ",") (identifier "pcVar22") (, ",") (identifier "iVar9") () ")"))) (; ";")) (expression_statement "FUN_0001b250(pbVar8);" (call_expression "FUN_0001b250(pbVar8)" (identifier "FUN_0001b250") (argument_list "(pbVar8)" (( "(") (identifier "pbVar8") () ")"))) (; ";")) (} "}")) (else_clause "else {\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }" (else "else") (compound_statement "{\n                    iVar7 = 0xd;\n                    pbVar16 = local_71;\n                    pbVar17 = (byte *)"Public-Lines";\n                    do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);\n                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;\n                    iVar7 = FUN_00053e50();\n                    if (iVar7 == 0) goto LAB_000555ad;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(iVar7);\n                    if (iVar9 < 0) goto LAB_000555ad;\n                    local_13c = (void *)FUN_00053f30();\n                    if (local_13c == (void *)0x0) goto LAB_000555ad;\n                    iVar7 = FUN_00053dd0();\n                    if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }\n                    pcVar22 = "Private-Lines";\n                    iVar9 = strcmp((char *)local_71,"Private-Lines");\n                    local_140 = (uint *)0x0;\n                    iVar23 = iVar7;\n                    if (iVar9 != 0) goto LAB_0005553d;\n                    puVar10 = (uint *)FUN_00053e50();\n                    iVar23 = iVar7;\n                    local_140 = puVar10;\n                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053d60();\n                    FUN_0001b250(puVar10,pcVar22,iVar7);\n                    iVar23 = iVar7;\n                    if (iVar9 < 0) goto LAB_00055535;\n                    local_140 = (uint *)FUN_00053f30();\n                    iVar23 = iVar7;\n                    if (local_140 == (uint *)0x0) goto LAB_0005553d;\n                    iVar9 = FUN_00053dd0();\n                    iVar23 = iVar7;\n                    if (iVar9 == 0) goto LAB_0005553d;\n                    pcVar22 = "Private-MAC";\n                    iVar23 = strcmp((char *)local_71,"Private-MAC");\n                    if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }\n                    local_144 = (char *)FUN_00053e50();\n                    iVar23 = iVar9;\n                    if (local_144 == (char *)0x0) goto LAB_0005553d;\n                    fclose(__stream);\n                    bVar20 = bVar18;\n                    if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }\nLAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }\n                    pcVar15 = "file format error";\n                    piVar14 = (int *)0x0;\nLAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);\n                    FUN_0001b250(pbVar8);\n                    FUN_0001b250(local_144);\n                  }" ({ "{") (expression_statement "iVar7 = 0xd;" (assignment_expression "iVar7 = 0xd" (identifier "iVar7") (= "=") (number_literal "0xd")) (; ";")) (expression_statement "pbVar16 = local_71;" (assignment_expression "pbVar16 = local_71" (identifier "pbVar16") (= "=") (identifier "local_71")) (; ";")) (expression_statement "pbVar17 = (byte *)"Public-Lines";" (assignment_expression "pbVar17 = (byte *)"Public-Lines"" (identifier "pbVar17") (= "=") (cast_expression "(byte *)"Public-Lines"" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (string_literal ""Public-Lines"" (" """) (string_content "Public-Lines") (" """)))) (; ";")) (do_statement "do {\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    } while (bVar19);" (do "do") (compound_statement "{\n                      if (iVar7 == 0) break;\n                      iVar7 = iVar7 + -1;\n                      bVar20 = *pbVar16 < *pbVar17;\n                      bVar19 = *pbVar16 == *pbVar17;\n                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n                    }" ({ "{") (if_statement "if (iVar7 == 0) break;" (if "if") (parenthesized_expression "(iVar7 == 0)" (( "(") (binary_expression "iVar7 == 0" (identifier "iVar7") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar7 = iVar7 + -1;" (assignment_expression "iVar7 = iVar7 + -1" (identifier "iVar7") (= "=") (binary_expression "iVar7 + -1" (identifier "iVar7") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "bVar20 = *pbVar16 < *pbVar17;" (assignment_expression "bVar20 = *pbVar16 < *pbVar17" (identifier "bVar20") (= "=") (binary_expression "*pbVar16 < *pbVar17" (pointer_expression "*pbVar16" (* "*") (identifier "pbVar16")) (< "<") (pointer_expression "*pbVar17" (* "*") (identifier "pbVar17")))) (; ";")) (expression_statement "bVar19 = *pbVar16 == *pbVar17;" (assignment_expression "bVar19 = *pbVar16 == *pbVar17" (identifier "bVar19") (= "=") (binary_expression "*pbVar16 == *pbVar17" (pointer_expression "*pbVar16" (* "*") (identifier "pbVar16")) (== "==") (pointer_expression "*pbVar17" (* "*") (identifier "pbVar17")))) (; ";")) (expression_statement "pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;" (assignment_expression "pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1" (identifier "pbVar16") (= "=") (binary_expression "pbVar16 + (uint)bVar21 * -2 + 1" (binary_expression "pbVar16 + (uint)bVar21 * -2" (identifier "pbVar16") (+ "+") (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar21")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;" (assignment_expression "pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1" (identifier "pbVar17") (= "=") (binary_expression "pbVar17 + (uint)bVar21 * -2 + 1" (binary_expression "pbVar17 + (uint)bVar21 * -2" (identifier "pbVar17") (+ "+") (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar21")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(bVar19)" (( "(") (identifier "bVar19") () ")")) (; ";")) (if_statement "if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;" (if "if") (parenthesized_expression "((!bVar20 && !bVar19) != bVar20)" (( "(") (binary_expression "(!bVar20 && !bVar19) != bVar20" (parenthesized_expression "(!bVar20 && !bVar19)" (( "(") (binary_expression "!bVar20 && !bVar19" (unary_expression "!bVar20" (! "!") (identifier "bVar20")) (&& "&&") (unary_expression "!bVar19" (! "!") (identifier "bVar19"))) () ")")) (!= "!=") (identifier "bVar20")) () ")")) (goto_statement "goto LAB_000555ad;" (goto "goto") (statement_identifier "LAB_000555ad") (; ";"))) (expression_statement "iVar7 = FUN_00053e50();" (assignment_expression "iVar7 = FUN_00053e50()" (identifier "iVar7") (= "=") (call_expression "FUN_00053e50()" (identifier "FUN_00053e50") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar7 == 0) goto LAB_000555ad;" (if "if") (parenthesized_expression "(iVar7 == 0)" (( "(") (binary_expression "iVar7 == 0" (identifier "iVar7") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_000555ad;" (goto "goto") (statement_identifier "LAB_000555ad") (; ";"))) (expression_statement "iVar9 = FUN_00053d60();" (assignment_expression "iVar9 = FUN_00053d60()" (identifier "iVar9") (= "=") (call_expression "FUN_00053d60()" (identifier "FUN_00053d60") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "FUN_0001b250(iVar7);" (call_expression "FUN_0001b250(iVar7)" (identifier "FUN_0001b250") (argument_list "(iVar7)" (( "(") (identifier "iVar7") () ")"))) (; ";")) (if_statement "if (iVar9 < 0) goto LAB_000555ad;" (if "if") (parenthesized_expression "(iVar9 < 0)" (( "(") (binary_expression "iVar9 < 0" (identifier "iVar9") (< "<") (number_literal "0")) () ")")) (goto_statement "goto LAB_000555ad;" (goto "goto") (statement_identifier "LAB_000555ad") (; ";"))) (expression_statement "local_13c = (void *)FUN_00053f30();" (assignment_expression "local_13c = (void *)FUN_00053f30()" (identifier "local_13c") (= "=") (cast_expression "(void *)FUN_00053f30()" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00053f30()" (identifier "FUN_00053f30") (argument_list "()" (( "(") () ")"))))) (; ";")) (if_statement "if (local_13c == (void *)0x0) goto LAB_000555ad;" (if "if") (parenthesized_expression "(local_13c == (void *)0x0)" (( "(") (binary_expression "local_13c == (void *)0x0" (identifier "local_13c") (== "==") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_000555ad;" (goto "goto") (statement_identifier "LAB_000555ad") (; ";"))) (expression_statement "iVar7 = FUN_00053dd0();" (assignment_expression "iVar7 = FUN_00053dd0()" (identifier "iVar7") (= "=") (call_expression "FUN_00053dd0()" (identifier "FUN_00053dd0") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar7 == 0) {\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }" (if "if") (parenthesized_expression "(iVar7 == 0)" (( "(") (binary_expression "iVar7 == 0" (identifier "iVar7") (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_00055535:\n                      local_140 = (uint *)0x0;\n                      goto LAB_0005553d;\n                    }" ({ "{") (labeled_statement "LAB_00055535:\n                      local_140 = (uint *)0x0;" (statement_identifier "LAB_00055535") (: ":") (expression_statement "local_140 = (uint *)0x0;" (assignment_expression "local_140 = (uint *)0x0" (identifier "local_140") (= "=") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";"))) (goto_statement "goto LAB_0005553d;" (goto "goto") (statement_identifier "LAB_0005553d") (; ";")) (} "}"))) (expression_statement "pcVar22 = "Private-Lines";" (assignment_expression "pcVar22 = "Private-Lines"" (identifier "pcVar22") (= "=") (string_literal ""Private-Lines"" (" """) (string_content "Private-Lines") (" """))) (; ";")) (expression_statement "iVar9 = strcmp((char *)local_71,"Private-Lines");" (assignment_expression "iVar9 = strcmp((char *)local_71,"Private-Lines")" (identifier "iVar9") (= "=") (call_expression "strcmp((char *)local_71,"Private-Lines")" (identifier "strcmp") (argument_list "((char *)local_71,"Private-Lines")" (( "(") (cast_expression "(char *)local_71" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "local_71")) (, ",") (string_literal ""Private-Lines"" (" """) (string_content "Private-Lines") (" """)) () ")")))) (; ";")) (expression_statement "local_140 = (uint *)0x0;" (assignment_expression "local_140 = (uint *)0x0" (identifier "local_140") (= "=") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "iVar23 = iVar7;" (assignment_expression "iVar23 = iVar7" (identifier "iVar23") (= "=") (identifier "iVar7")) (; ";")) (if_statement "if (iVar9 != 0) goto LAB_0005553d;" (if "if") (parenthesized_expression "(iVar9 != 0)" (( "(") (binary_expression "iVar9 != 0" (identifier "iVar9") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_0005553d;" (goto "goto") (statement_identifier "LAB_0005553d") (; ";"))) (expression_statement "puVar10 = (uint *)FUN_00053e50();" (assignment_expression "puVar10 = (uint *)FUN_00053e50()" (identifier "puVar10") (= "=") (cast_expression "(uint *)FUN_00053e50()" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00053e50()" (identifier "FUN_00053e50") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "iVar23 = iVar7;" (assignment_expression "iVar23 = iVar7" (identifier "iVar23") (= "=") (identifier "iVar7")) (; ";")) (expression_statement "local_140 = puVar10;" (assignment_expression "local_140 = puVar10" (identifier "local_140") (= "=") (identifier "puVar10")) (; ";")) (if_statement "if (puVar10 == (uint *)0x0) goto LAB_0005553d;" (if "if") (parenthesized_expression "(puVar10 == (uint *)0x0)" (( "(") (binary_expression "puVar10 == (uint *)0x0" (identifier "puVar10") (== "==") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_0005553d;" (goto "goto") (statement_identifier "LAB_0005553d") (; ";"))) (expression_statement "iVar9 = FUN_00053d60();" (assignment_expression "iVar9 = FUN_00053d60()" (identifier "iVar9") (= "=") (call_expression "FUN_00053d60()" (identifier "FUN_00053d60") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "FUN_0001b250(puVar10,pcVar22,iVar7);" (call_expression "FUN_0001b250(puVar10,pcVar22,iVar7)" (identifier "FUN_0001b250") (argument_list "(puVar10,pcVar22,iVar7)" (( "(") (identifier "puVar10") (, ",") (identifier "pcVar22") (, ",") (identifier "iVar7") () ")"))) (; ";")) (expression_statement "iVar23 = iVar7;" (assignment_expression "iVar23 = iVar7" (identifier "iVar23") (= "=") (identifier "iVar7")) (; ";")) (if_statement "if (iVar9 < 0) goto LAB_00055535;" (if "if") (parenthesized_expression "(iVar9 < 0)" (( "(") (binary_expression "iVar9 < 0" (identifier "iVar9") (< "<") (number_literal "0")) () ")")) (goto_statement "goto LAB_00055535;" (goto "goto") (statement_identifier "LAB_00055535") (; ";"))) (expression_statement "local_140 = (uint *)FUN_00053f30();" (assignment_expression "local_140 = (uint *)FUN_00053f30()" (identifier "local_140") (= "=") (cast_expression "(uint *)FUN_00053f30()" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00053f30()" (identifier "FUN_00053f30") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "iVar23 = iVar7;" (assignment_expression "iVar23 = iVar7" (identifier "iVar23") (= "=") (identifier "iVar7")) (; ";")) (if_statement "if (local_140 == (uint *)0x0) goto LAB_0005553d;" (if "if") (parenthesized_expression "(local_140 == (uint *)0x0)" (( "(") (binary_expression "local_140 == (uint *)0x0" (identifier "local_140") (== "==") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_0005553d;" (goto "goto") (statement_identifier "LAB_0005553d") (; ";"))) (expression_statement "iVar9 = FUN_00053dd0();" (assignment_expression "iVar9 = FUN_00053dd0()" (identifier "iVar9") (= "=") (call_expression "FUN_00053dd0()" (identifier "FUN_00053dd0") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar23 = iVar7;" (assignment_expression "iVar23 = iVar7" (identifier "iVar23") (= "=") (identifier "iVar7")) (; ";")) (if_statement "if (iVar9 == 0) goto LAB_0005553d;" (if "if") (parenthesized_expression "(iVar9 == 0)" (( "(") (binary_expression "iVar9 == 0" (identifier "iVar9") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_0005553d;" (goto "goto") (statement_identifier "LAB_0005553d") (; ";"))) (expression_statement "pcVar22 = "Private-MAC";" (assignment_expression "pcVar22 = "Private-MAC"" (identifier "pcVar22") (= "=") (string_literal ""Private-MAC"" (" """) (string_content "Private-MAC") (" """))) (; ";")) (expression_statement "iVar23 = strcmp((char *)local_71,"Private-MAC");" (assignment_expression "iVar23 = strcmp((char *)local_71,"Private-MAC")" (identifier "iVar23") (= "=") (call_expression "strcmp((char *)local_71,"Private-MAC")" (identifier "strcmp") (argument_list "((char *)local_71,"Private-MAC")" (( "(") (cast_expression "(char *)local_71" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "local_71")) (, ",") (string_literal ""Private-MAC"" (" """) (string_content "Private-MAC") (" """)) () ")")))) (; ";")) (if_statement "if (iVar23 != 0) {\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }" (if "if") (parenthesized_expression "(iVar23 != 0)" (( "(") (binary_expression "iVar23 != 0" (identifier "iVar23") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n                      pcVar22 = "Private-Hash";\n                      iVar7 = strcmp((char *)local_71,"Private-Hash");\n                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;\n                      local_144 = (char *)FUN_00053e50();\n                      if (local_144 == (char *)0x0) goto LAB_0005553d;\n                      bVar20 = false;\n                      fclose(__stream);\n                      iVar9 = iVar23;\n                      if (bVar18) goto LAB_000556cb;\nLAB_00055378:\n                      bVar19 = false;\n                      local_124 = local_100;\n                      local_134 = local_140;\nLAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }\n                      pcVar22 = local_49;\n                      if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }\n                      iVar23 = 0;\n                      do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);\n                      iVar9 = extraout_ECX_00;\n                      iVar23 = extraout_ECX_00;\n                      iVar7 = strcmp(local_144,pcVar22);\n                      if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }\n                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);\n                      pcVar22 = &DAT_0000000c;\n                      piVar14 = (int *)FUN_0001a9c0(1,0xc);\n                      piVar14[2] = (int)pcVar5;\n                      *piVar14 = iVar4;\n                      iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);\n                      piVar14[1] = iVar4;\n                      if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }\n                      pcVar15 = "createkey failed";\n                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);\n                      goto LAB_0005554f;\n                    }" ({ "{") (expression_statement "pcVar22 = "Private-Hash";" (assignment_expression "pcVar22 = "Private-Hash"" (identifier "pcVar22") (= "=") (string_literal ""Private-Hash"" (" """) (string_content "Private-Hash") (" """))) (; ";")) (expression_statement "iVar7 = strcmp((char *)local_71,"Private-Hash");" (assignment_expression "iVar7 = strcmp((char *)local_71,"Private-Hash")" (identifier "iVar7") (= "=") (call_expression "strcmp((char *)local_71,"Private-Hash")" (identifier "strcmp") (argument_list "((char *)local_71,"Private-Hash")" (( "(") (cast_expression "(char *)local_71" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "local_71")) (, ",") (string_literal ""Private-Hash"" (" """) (string_content "Private-Hash") (" """)) () ")")))) (; ";")) (if_statement "if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;" (if "if") (parenthesized_expression "((iVar7 != 0) || ((bVar3 & 1) == 0))" (( "(") (binary_expression "(iVar7 != 0) || ((bVar3 & 1) == 0)" (parenthesized_expression "(iVar7 != 0)" (( "(") (binary_expression "iVar7 != 0" (identifier "iVar7") (!= "!=") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "((bVar3 & 1) == 0)" (( "(") (binary_expression "(bVar3 & 1) == 0" (parenthesized_expression "(bVar3 & 1)" (( "(") (binary_expression "bVar3 & 1" (identifier "bVar3") (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0")) () ")"))) () ")")) (goto_statement "goto LAB_0005553d;" (goto "goto") (statement_identifier "LAB_0005553d") (; ";"))) (expression_statement "local_144 = (char *)FUN_00053e50();" (assignment_expression "local_144 = (char *)FUN_00053e50()" (identifier "local_144") (= "=") (cast_expression "(char *)FUN_00053e50()" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00053e50()" (identifier "FUN_00053e50") (argument_list "()" (( "(") () ")"))))) (; ";")) (if_statement "if (local_144 == (char *)0x0) goto LAB_0005553d;" (if "if") (parenthesized_expression "(local_144 == (char *)0x0)" (( "(") (binary_expression "local_144 == (char *)0x0" (identifier "local_144") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_0005553d;" (goto "goto") (statement_identifier "LAB_0005553d") (; ";"))) (expression_statement "bVar20 = false;" (assignment_expression "bVar20 = false" (identifier "bVar20") (= "=") (false "false")) (; ";")) (expression_statement "fclose(__stream);" (call_expression "fclose(__stream)" (identifier "fclose") (argument_list "(__stream)" (( "(") (identifier "__stream") () ")"))) (; ";")) (expression_statement "iVar9 = iVar23;" (assignment_expression "iVar9 = iVar23" (identifier "iVar9") (= "=") (identifier "iVar23")) (; ";")) (if_statement "if (bVar18) goto LAB_000556cb;" (if "if") (parenthesized_expression "(bVar18)" (( "(") (identifier "bVar18") () ")")) (goto_statement "goto LAB_000556cb;" (goto "goto") (statement_identifier "LAB_000556cb") (; ";"))) (labeled_statement "LAB_00055378:\n                      bVar19 = false;" (statement_identifier "LAB_00055378") (: ":") (expression_statement "bVar19 = false;" (assignment_expression "bVar19 = false" (identifier "bVar19") (= "=") (false "false")) (; ";"))) (expression_statement "local_124 = local_100;" (assignment_expression "local_124 = local_100" (identifier "local_124") (= "=") (identifier "local_100")) (; ";")) (expression_statement "local_134 = local_140;" (assignment_expression "local_134 = local_140" (identifier "local_134") (= "=") (identifier "local_140")) (; ";")) (labeled_statement "LAB_00055390:\n                      if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }" (statement_identifier "LAB_00055390") (: ":") (if_statement "if (bVar20) {\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }\n                      else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }" (if "if") (parenthesized_expression "(bVar20)" (( "(") (identifier "bVar20") () ")")) (compound_statement "{\n                        pcVar15 = "putty-private-key-file-mac-key";\n                        pcVar22 = local_49;\n                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }\n                        puVar10 = local_fc;\n                        FUN_0005ce60(puVar10);\n                        FUN_0005cea0(puVar10,local_49,0x1e);\n                        if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }\n                        FUN_0005d370(puVar10,local_85,param_2,param_2);\n                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);\n                        FUN_0001b330(local_85,0x14);\n                        FUN_0001b330(puVar10,0x60);\n                      }" ({ "{") (expression_statement "pcVar15 = "putty-private-key-file-mac-key";" (assignment_expression "pcVar15 = "putty-private-key-file-mac-key"" (identifier "pcVar15") (= "=") (string_literal ""putty-private-key-file-mac-key"" (" """) (string_content "putty-private-key-file-mac-key") (" """))) (; ";")) (expression_statement "pcVar22 = local_49;" (assignment_expression "pcVar22 = local_49" (identifier "pcVar22") (= "=") (identifier "local_49")) (; ";")) (for_statement "for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }" (for "for") (( "(") (assignment_expression "iVar23 = 0x1f" (identifier "iVar23") (= "=") (number_literal "0x1f")) (; ";") (binary_expression "iVar23 != 0" (identifier "iVar23") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "iVar23 = iVar23 + -1" (identifier "iVar23") (= "=") (binary_expression "iVar23 + -1" (identifier "iVar23") (+ "+") (number_literal "-1"))) () ")") (compound_statement "{\n                          *pcVar22 = *pcVar15;\n                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;\n                        }" ({ "{") (expression_statement "*pcVar22 = *pcVar15;" (assignment_expression "*pcVar22 = *pcVar15" (pointer_expression "*pcVar22" (* "*") (identifier "pcVar22")) (= "=") (pointer_expression "*pcVar15" (* "*") (identifier "pcVar15"))) (; ";")) (expression_statement "pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;" (assignment_expression "pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1" (identifier "pcVar15") (= "=") (binary_expression "pcVar15 + (uint)bVar21 * -2 + 1" (binary_expression "pcVar15 + (uint)bVar21 * -2" (identifier "pcVar15") (+ "+") (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar21")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;" (assignment_expression "pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1" (identifier "pcVar22") (= "=") (binary_expression "pcVar22 + (uint)bVar21 * -2 + 1" (binary_expression "pcVar22 + (uint)bVar21 * -2" (identifier "pcVar22") (+ "+") (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar21")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "puVar10 = local_fc;" (assignment_expression "puVar10 = local_fc" (identifier "puVar10") (= "=") (identifier "local_fc")) (; ";")) (expression_statement "FUN_0005ce60(puVar10);" (call_expression "FUN_0005ce60(puVar10)" (identifier "FUN_0005ce60") (argument_list "(puVar10)" (( "(") (identifier "puVar10") () ")"))) (; ";")) (expression_statement "FUN_0005cea0(puVar10,local_49,0x1e);" (call_expression "FUN_0005cea0(puVar10,local_49,0x1e)" (identifier "FUN_0005cea0") (argument_list "(puVar10,local_49,0x1e)" (( "(") (identifier "puVar10") (, ",") (identifier "local_49") (, ",") (number_literal "0x1e") () ")"))) (; ";")) (if_statement "if ((param_2 != (char *)0x0) && (bVar18)) {\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }" (if "if") (parenthesized_expression "((param_2 != (char *)0x0) && (bVar18))" (( "(") (binary_expression "(param_2 != (char *)0x0) && (bVar18)" (parenthesized_expression "(param_2 != (char *)0x0)" (( "(") (binary_expression "param_2 != (char *)0x0" (identifier "param_2") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(bVar18)" (( "(") (identifier "bVar18") () ")"))) () ")")) (compound_statement "{\n                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);\n                        }" ({ "{") (expression_statement "param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);" (assignment_expression "param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX)" (identifier "param_2") (= "=") (cast_expression "(char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX)" (identifier "FUN_0005cea0") (argument_list "(puVar10,param_2,local_14c,extraout_ECX)" (( "(") (identifier "puVar10") (, ",") (identifier "param_2") (, ",") (identifier "local_14c") (, ",") (identifier "extraout_ECX") () ")"))))) (; ";")) (} "}"))) (expression_statement "FUN_0005d370(puVar10,local_85,param_2,param_2);" (call_expression "FUN_0005d370(puVar10,local_85,param_2,param_2)" (identifier "FUN_0005d370") (argument_list "(puVar10,local_85,param_2,param_2)" (( "(") (identifier "puVar10") (, ",") (identifier "local_85") (, ",") (identifier "param_2") (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "FUN_0005d940(local_85,0x14,local_134,local_124,local_99);" (call_expression "FUN_0005d940(local_85,0x14,local_134,local_124,local_99)" (identifier "FUN_0005d940") (argument_list "(local_85,0x14,local_134,local_124,local_99)" (( "(") (identifier "local_85") (, ",") (number_literal "0x14") (, ",") (identifier "local_134") (, ",") (identifier "local_124") (, ",") (identifier "local_99") () ")"))) (; ";")) (expression_statement "FUN_0001b330(local_85,0x14);" (call_expression "FUN_0001b330(local_85,0x14)" (identifier "FUN_0001b330") (argument_list "(local_85,0x14)" (( "(") (identifier "local_85") (, ",") (number_literal "0x14") () ")"))) (; ";")) (expression_statement "FUN_0001b330(puVar10,0x60);" (call_expression "FUN_0001b330(puVar10,0x60)" (identifier "FUN_0001b330") (argument_list "(puVar10,0x60)" (( "(") (identifier "puVar10") (, ",") (number_literal "0x60") () ")"))) (; ";")) (} "}")) (else_clause "else {\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }" (else "else") (compound_statement "{\n                        FUN_0005d890(local_134,local_124,local_99,puVar10);\n                        puVar10 = (uint *)0x0;\n                      }" ({ "{") (expression_statement "FUN_0005d890(local_134,local_124,local_99,puVar10);" (call_expression "FUN_0005d890(local_134,local_124,local_99,puVar10)" (identifier "FUN_0005d890") (argument_list "(local_134,local_124,local_99,puVar10)" (( "(") (identifier "local_134") (, ",") (identifier "local_124") (, ",") (identifier "local_99") (, ",") (identifier "puVar10") () ")"))) (; ";")) (expression_statement "puVar10 = (uint *)0x0;" (assignment_expression "puVar10 = (uint *)0x0" (identifier "puVar10") (= "=") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (} "}"))))) (expression_statement "pcVar22 = local_49;" (assignment_expression "pcVar22 = local_49" (identifier "pcVar22") (= "=") (identifier "local_49")) (; ";")) (if_statement "if (bVar19) {\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }" (if "if") (parenthesized_expression "(bVar19)" (( "(") (identifier "bVar19") () ")")) (compound_statement "{\n                        FUN_0001b330(local_134,local_124,puVar10,puVar10);\n                        FUN_0001b250(local_134);\n                      }" ({ "{") (expression_statement "FUN_0001b330(local_134,local_124,puVar10,puVar10);" (call_expression "FUN_0001b330(local_134,local_124,puVar10,puVar10)" (identifier "FUN_0001b330") (argument_list "(local_134,local_124,puVar10,puVar10)" (( "(") (identifier "local_134") (, ",") (identifier "local_124") (, ",") (identifier "puVar10") (, ",") (identifier "puVar10") () ")"))) (; ";")) (expression_statement "FUN_0001b250(local_134);" (call_expression "FUN_0001b250(local_134)" (identifier "FUN_0001b250") (argument_list "(local_134)" (( "(") (identifier "local_134") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar23 = 0;" (assignment_expression "iVar23 = 0" (identifier "iVar23") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      } while (iVar23 != 0x14);" (do "do") (compound_statement "{\n                        puVar1 = local_99 + iVar23;\n                        iVar7 = iVar23 * 2;\n                        iVar23 = iVar23 + 1;\n                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);\n                      }" ({ "{") (expression_statement "puVar1 = local_99 + iVar23;" (assignment_expression "puVar1 = local_99 + iVar23" (identifier "puVar1") (= "=") (binary_expression "local_99 + iVar23" (identifier "local_99") (+ "+") (identifier "iVar23"))) (; ";")) (expression_statement "iVar7 = iVar23 * 2;" (assignment_expression "iVar7 = iVar23 * 2" (identifier "iVar7") (= "=") (binary_expression "iVar23 * 2" (identifier "iVar23") (* "*") (number_literal "2"))) (; ";")) (expression_statement "iVar23 = iVar23 + 1;" (assignment_expression "iVar23 = iVar23 + 1" (identifier "iVar23") (= "=") (binary_expression "iVar23 + 1" (identifier "iVar23") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "__sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);" (call_expression "__sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1)" (identifier "__sprintf_chk") (argument_list "(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1)" (( "(") (binary_expression "pcVar22 + iVar7" (identifier "pcVar22") (+ "+") (identifier "iVar7")) (, ",") (number_literal "1") (, ",") (number_literal "0xffffffff") (, ",") (pointer_expression "&DAT_0007dc2b" (& "&") (identifier "DAT_0007dc2b")) (, ",") (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) () ")"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar23 != 0x14)" (( "(") (binary_expression "iVar23 != 0x14" (identifier "iVar23") (!= "!=") (number_literal "0x14")) () ")")) (; ";")) (expression_statement "iVar9 = extraout_ECX_00;" (assignment_expression "iVar9 = extraout_ECX_00" (identifier "iVar9") (= "=") (identifier "extraout_ECX_00")) (; ";")) (expression_statement "iVar23 = extraout_ECX_00;" (assignment_expression "iVar23 = extraout_ECX_00" (identifier "iVar23") (= "=") (identifier "extraout_ECX_00")) (; ";")) (expression_statement "iVar7 = strcmp(local_144,pcVar22);" (assignment_expression "iVar7 = strcmp(local_144,pcVar22)" (identifier "iVar7") (= "=") (call_expression "strcmp(local_144,pcVar22)" (identifier "strcmp") (argument_list "(local_144,pcVar22)" (( "(") (identifier "local_144") (, ",") (identifier "pcVar22") () ")")))) (; ";")) (if_statement "if (iVar7 != 0) {\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }" (if "if") (parenthesized_expression "(iVar7 != 0)" (( "(") (binary_expression "iVar7 != 0" (identifier "iVar7") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n                        if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }\n                        goto LAB_000554a5;\n                      }" ({ "{") (if_statement "if (bVar18) {\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }\n                        else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }" (if "if") (parenthesized_expression "(bVar18)" (( "(") (identifier "bVar18") () ")")) (compound_statement "{\n                          pcVar15 = "wrong passphrase";\n                          piVar14 = (int *)&DAT_000a9378;\n                        }" ({ "{") (expression_statement "pcVar15 = "wrong passphrase";" (assignment_expression "pcVar15 = "wrong passphrase"" (identifier "pcVar15") (= "=") (string_literal ""wrong passphrase"" (" """) (string_content "wrong passphrase") (" """))) (; ";")) (expression_statement "piVar14 = (int *)&DAT_000a9378;" (assignment_expression "piVar14 = (int *)&DAT_000a9378" (identifier "piVar14") (= "=") (cast_expression "(int *)&DAT_000a9378" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&DAT_000a9378" (& "&") (identifier "DAT_000a9378")))) (; ";")) (} "}")) (else_clause "else {\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }" (else "else") (compound_statement "{\n                          pcVar15 = "MAC failed";\n                          piVar14 = (int *)0x0;\n                        }" ({ "{") (expression_statement "pcVar15 = "MAC failed";" (assignment_expression "pcVar15 = "MAC failed"" (identifier "pcVar15") (= "=") (string_literal ""MAC failed"" (" """) (string_content "MAC failed") (" """))) (; ";")) (expression_statement "piVar14 = (int *)0x0;" (assignment_expression "piVar14 = (int *)0x0" (identifier "piVar14") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (} "}")))) (goto_statement "goto LAB_000554a5;" (goto "goto") (statement_identifier "LAB_000554a5") (; ";")) (} "}"))) (expression_statement "FUN_0001b250(local_144,pcVar22,iVar9,iVar23);" (call_expression "FUN_0001b250(local_144,pcVar22,iVar9,iVar23)" (identifier "FUN_0001b250") (argument_list "(local_144,pcVar22,iVar9,iVar23)" (( "(") (identifier "local_144") (, ",") (identifier "pcVar22") (, ",") (identifier "iVar9") (, ",") (identifier "iVar23") () ")"))) (; ";")) (expression_statement "pcVar22 = &DAT_0000000c;" (assignment_expression "pcVar22 = &DAT_0000000c" (identifier "pcVar22") (= "=") (pointer_expression "&DAT_0000000c" (& "&") (identifier "DAT_0000000c"))) (; ";")) (expression_statement "piVar14 = (int *)FUN_0001a9c0(1,0xc);" (assignment_expression "piVar14 = (int *)FUN_0001a9c0(1,0xc)" (identifier "piVar14") (= "=") (cast_expression "(int *)FUN_0001a9c0(1,0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0001a9c0(1,0xc)" (identifier "FUN_0001a9c0") (argument_list "(1,0xc)" (( "(") (number_literal "1") (, ",") (number_literal "0xc") () ")"))))) (; ";")) (expression_statement "piVar14[2] = (int)pcVar5;" (assignment_expression "piVar14[2] = (int)pcVar5" (subscript_expression "piVar14[2]" (identifier "piVar14") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(int)pcVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar5"))) (; ";")) (expression_statement "*piVar14 = iVar4;" (assignment_expression "*piVar14 = iVar4" (pointer_expression "*piVar14" (* "*") (identifier "piVar14")) (= "=") (identifier "iVar4")) (; ";")) (expression_statement "iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100);" (assignment_expression "iVar4 = (**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100)" (identifier "iVar4") (= "=") (call_expression "(**(code **)(iVar4 + 0x14))\n                                        (iVar4,local_13c,local_104,local_140,local_100)" (parenthesized_expression "(**(code **)(iVar4 + 0x14))" (( "(") (pointer_expression "**(code **)(iVar4 + 0x14)" (* "*") (pointer_expression "*(code **)(iVar4 + 0x14)" (* "*") (cast_expression "(code **)(iVar4 + 0x14)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar4 + 0x14)" (( "(") (binary_expression "iVar4 + 0x14" (identifier "iVar4") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (argument_list "(iVar4,local_13c,local_104,local_140,local_100)" (( "(") (identifier "iVar4") (, ",") (identifier "local_13c") (, ",") (identifier "local_104") (, ",") (identifier "local_140") (, ",") (identifier "local_100") () ")")))) (; ";")) (expression_statement "piVar14[1] = iVar4;" (assignment_expression "piVar14[1] = iVar4" (subscript_expression "piVar14[1]" (identifier "piVar14") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar4")) (; ";")) (if_statement "if (iVar4 != 0) {\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);\n                        FUN_0001b330(local_140,local_100);\n                        FUN_0001b250(local_140);\n                        FUN_0001b250(pbVar8);\n                        if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }\n                        goto LAB_0005507a;\n                      }" ({ "{") (expression_statement "FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);" (call_expression "FUN_0001b250(local_13c,pcVar22,iVar9,iVar23)" (identifier "FUN_0001b250") (argument_list "(local_13c,pcVar22,iVar9,iVar23)" (( "(") (identifier "local_13c") (, ",") (identifier "pcVar22") (, ",") (identifier "iVar9") (, ",") (identifier "iVar23") () ")"))) (; ";")) (expression_statement "FUN_0001b330(local_140,local_100);" (call_expression "FUN_0001b330(local_140,local_100)" (identifier "FUN_0001b330") (argument_list "(local_140,local_100)" (( "(") (identifier "local_140") (, ",") (identifier "local_100") () ")"))) (; ";")) (expression_statement "FUN_0001b250(local_140);" (call_expression "FUN_0001b250(local_140)" (identifier "FUN_0001b250") (argument_list "(local_140)" (( "(") (identifier "local_140") () ")"))) (; ";")) (expression_statement "FUN_0001b250(pbVar8);" (call_expression "FUN_0001b250(pbVar8)" (identifier "FUN_0001b250") (argument_list "(pbVar8)" (( "(") (identifier "pbVar8") () ")"))) (; ";")) (if_statement "if (param_3 != (undefined4 *)0x0) {\n                          *param_3 = 0;\n                        }" (if "if") (parenthesized_expression "(param_3 != (undefined4 *)0x0)" (( "(") (binary_expression "param_3 != (undefined4 *)0x0" (identifier "param_3") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                          *param_3 = 0;\n                        }" ({ "{") (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (goto_statement "goto LAB_0005507a;" (goto "goto") (statement_identifier "LAB_0005507a") (; ";")) (} "}"))) (expression_statement "pcVar15 = "createkey failed";" (assignment_expression "pcVar15 = "createkey failed"" (identifier "pcVar15") (= "=") (string_literal ""createkey failed"" (" """) (string_content "createkey failed") (" """))) (; ";")) (expression_statement "FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);" (call_expression "FUN_0001b250(piVar14,pcVar22,iVar9,iVar23)" (identifier "FUN_0001b250") (argument_list "(piVar14,pcVar22,iVar9,iVar23)" (( "(") (identifier "piVar14") (, ",") (identifier "pcVar22") (, ",") (identifier "iVar9") (, ",") (identifier "iVar23") () ")"))) (; ";")) (goto_statement "goto LAB_0005554f;" (goto "goto") (statement_identifier "LAB_0005554f") (; ";")) (} "}"))) (expression_statement "local_144 = (char *)FUN_00053e50();" (assignment_expression "local_144 = (char *)FUN_00053e50()" (identifier "local_144") (= "=") (cast_expression "(char *)FUN_00053e50()" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00053e50()" (identifier "FUN_00053e50") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "iVar23 = iVar9;" (assignment_expression "iVar23 = iVar9" (identifier "iVar23") (= "=") (identifier "iVar9")) (; ";")) (if_statement "if (local_144 == (char *)0x0) goto LAB_0005553d;" (if "if") (parenthesized_expression "(local_144 == (char *)0x0)" (( "(") (binary_expression "local_144 == (char *)0x0" (identifier "local_144") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_0005553d;" (goto "goto") (statement_identifier "LAB_0005553d") (; ";"))) (expression_statement "fclose(__stream);" (call_expression "fclose(__stream)" (identifier "fclose") (argument_list "(__stream)" (( "(") (identifier "__stream") () ")"))) (; ";")) (expression_statement "bVar20 = bVar18;" (assignment_expression "bVar20 = bVar18" (identifier "bVar20") (= "=") (identifier "bVar18")) (; ";")) (if_statement "if (!bVar18) {\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }" (if "if") (parenthesized_expression "(!bVar18)" (( "(") (unary_expression "!bVar18" (! "!") (identifier "bVar18")) () ")")) (compound_statement "{\n                      bVar20 = true;\nLAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;\n                      uVar11 = 0xffffffff;\n                      pcVar15 = *(char **)(iVar4 + 0x30);\n                      do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar11 = ~uVar11;\n                      __n = uVar11 - 1;\n                      uVar12 = 0xffffffff;\n                      pbVar16 = pbVar8;\n                      do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);\n                      uVar13 = 0xffffffff;\n                      uVar12 = ~uVar12;\n                      __n_01 = uVar12 - 1;\n                      pcVar15 = pcVar5;\n                      do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');\n                      uVar13 = ~uVar13;\n                      __n_00 = uVar13 - 1;\n                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;\n                      local_124 = iVar23 + 4 + local_100;\n                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);\n                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;\n                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);\n                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);\n                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;\n                      memcpy(puVar10 + 1,pbVar8,__n_01);\n                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);\n                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;\n                      memcpy(puVar10 + 1,pcVar5,__n_00);\n                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);\n                      *(undefined1 *)puVar10 = local_104._3_1_;\n                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);\n                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);\n                      *(char *)((int)puVar10 + 3) = (char)local_104;\n                      memcpy(puVar10 + 1,local_13c,local_104);\n                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);\n                      *puVar1 = local_100._3_1_;\n                      puVar1[1] = (char)(local_100 >> 0x10);\n                      puVar1[2] = (char)(local_100 >> 8);\n                      puVar1[3] = (char)local_100;\n                      memcpy(puVar1 + 4,local_140,local_100);\n                      bVar19 = true;\n                      goto LAB_00055390;\n                    }" ({ "{") (expression_statement "bVar20 = true;" (assignment_expression "bVar20 = true" (identifier "bVar20") (= "=") (true "true")) (; ";")) (labeled_statement "LAB_00055778:\n                      if (bVar3 != 0) goto LAB_00055378;" (statement_identifier "LAB_00055778") (: ":") (if_statement "if (bVar3 != 0) goto LAB_00055378;" (if "if") (parenthesized_expression "(bVar3 != 0)" (( "(") (binary_expression "bVar3 != 0" (identifier "bVar3") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_00055378;" (goto "goto") (statement_identifier "LAB_00055378") (; ";")))) (expression_statement "uVar11 = 0xffffffff;" (assignment_expression "uVar11 = 0xffffffff" (identifier "uVar11") (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "pcVar15 = *(char **)(iVar4 + 0x30);" (assignment_expression "pcVar15 = *(char **)(iVar4 + 0x30)" (identifier "pcVar15") (= "=") (pointer_expression "*(char **)(iVar4 + 0x30)" (* "*") (cast_expression "(char **)(iVar4 + 0x30)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar4 + 0x30)" (( "(") (binary_expression "iVar4 + 0x30" (identifier "iVar4") (+ "+") (number_literal "0x30")) () ")"))))) (; ";")) (do_statement "do {\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');" (do "do") (compound_statement "{\n                        if (uVar11 == 0) break;\n                        uVar11 = uVar11 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      }" ({ "{") (if_statement "if (uVar11 == 0) break;" (if "if") (parenthesized_expression "(uVar11 == 0)" (( "(") (binary_expression "uVar11 == 0" (identifier "uVar11") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "uVar11 = uVar11 - 1;" (assignment_expression "uVar11 = uVar11 - 1" (identifier "uVar11") (= "=") (binary_expression "uVar11 - 1" (identifier "uVar11") (- "-") (number_literal "1"))) (; ";")) (expression_statement "cVar2 = *pcVar15;" (assignment_expression "cVar2 = *pcVar15" (identifier "cVar2") (= "=") (pointer_expression "*pcVar15" (* "*") (identifier "pcVar15"))) (; ";")) (expression_statement "pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;" (assignment_expression "pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1" (identifier "pcVar15") (= "=") (binary_expression "pcVar15 + (uint)bVar21 * -2 + 1" (binary_expression "pcVar15 + (uint)bVar21 * -2" (identifier "pcVar15") (+ "+") (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar21")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(cVar2 != '\0')" (( "(") (binary_expression "cVar2 != '\0'" (identifier "cVar2") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (; ";")) (expression_statement "uVar11 = ~uVar11;" (assignment_expression "uVar11 = ~uVar11" (identifier "uVar11") (= "=") (unary_expression "~uVar11" (~ "~") (identifier "uVar11"))) (; ";")) (expression_statement "__n = uVar11 - 1;" (assignment_expression "__n = uVar11 - 1" (identifier "__n") (= "=") (binary_expression "uVar11 - 1" (identifier "uVar11") (- "-") (number_literal "1"))) (; ";")) (expression_statement "uVar12 = 0xffffffff;" (assignment_expression "uVar12 = 0xffffffff" (identifier "uVar12") (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "pbVar16 = pbVar8;" (assignment_expression "pbVar16 = pbVar8" (identifier "pbVar16") (= "=") (identifier "pbVar8")) (; ";")) (do_statement "do {\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      } while (bVar3 != 0);" (do "do") (compound_statement "{\n                        if (uVar12 == 0) break;\n                        uVar12 = uVar12 - 1;\n                        bVar3 = *pbVar16;\n                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                      }" ({ "{") (if_statement "if (uVar12 == 0) break;" (if "if") (parenthesized_expression "(uVar12 == 0)" (( "(") (binary_expression "uVar12 == 0" (identifier "uVar12") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "uVar12 = uVar12 - 1;" (assignment_expression "uVar12 = uVar12 - 1" (identifier "uVar12") (= "=") (binary_expression "uVar12 - 1" (identifier "uVar12") (- "-") (number_literal "1"))) (; ";")) (expression_statement "bVar3 = *pbVar16;" (assignment_expression "bVar3 = *pbVar16" (identifier "bVar3") (= "=") (pointer_expression "*pbVar16" (* "*") (identifier "pbVar16"))) (; ";")) (expression_statement "pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;" (assignment_expression "pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1" (identifier "pbVar16") (= "=") (binary_expression "pbVar16 + (uint)bVar21 * -2 + 1" (binary_expression "pbVar16 + (uint)bVar21 * -2" (identifier "pbVar16") (+ "+") (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar21")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(bVar3 != 0)" (( "(") (binary_expression "bVar3 != 0" (identifier "bVar3") (!= "!=") (number_literal "0")) () ")")) (; ";")) (expression_statement "uVar13 = 0xffffffff;" (assignment_expression "uVar13 = 0xffffffff" (identifier "uVar13") (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "uVar12 = ~uVar12;" (assignment_expression "uVar12 = ~uVar12" (identifier "uVar12") (= "=") (unary_expression "~uVar12" (~ "~") (identifier "uVar12"))) (; ";")) (expression_statement "__n_01 = uVar12 - 1;" (assignment_expression "__n_01 = uVar12 - 1" (identifier "__n_01") (= "=") (binary_expression "uVar12 - 1" (identifier "uVar12") (- "-") (number_literal "1"))) (; ";")) (expression_statement "pcVar15 = pcVar5;" (assignment_expression "pcVar15 = pcVar5" (identifier "pcVar15") (= "=") (identifier "pcVar5")) (; ";")) (do_statement "do {\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      } while (cVar2 != '\0');" (do "do") (compound_statement "{\n                        if (uVar13 == 0) break;\n                        uVar13 = uVar13 - 1;\n                        cVar2 = *pcVar15;\n                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;\n                      }" ({ "{") (if_statement "if (uVar13 == 0) break;" (if "if") (parenthesized_expression "(uVar13 == 0)" (( "(") (binary_expression "uVar13 == 0" (identifier "uVar13") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "uVar13 = uVar13 - 1;" (assignment_expression "uVar13 = uVar13 - 1" (identifier "uVar13") (= "=") (binary_expression "uVar13 - 1" (identifier "uVar13") (- "-") (number_literal "1"))) (; ";")) (expression_statement "cVar2 = *pcVar15;" (assignment_expression "cVar2 = *pcVar15" (identifier "cVar2") (= "=") (pointer_expression "*pcVar15" (* "*") (identifier "pcVar15"))) (; ";")) (expression_statement "pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;" (assignment_expression "pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1" (identifier "pcVar15") (= "=") (binary_expression "pcVar15 + (uint)bVar21 * -2 + 1" (binary_expression "pcVar15 + (uint)bVar21 * -2" (identifier "pcVar15") (+ "+") (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar21")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(cVar2 != '\0')" (( "(") (binary_expression "cVar2 != '\0'" (identifier "cVar2") (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (; ";")) (expression_statement "uVar13 = ~uVar13;" (assignment_expression "uVar13 = ~uVar13" (identifier "uVar13") (= "=") (unary_expression "~uVar13" (~ "~") (identifier "uVar13"))) (; ";")) (expression_statement "__n_00 = uVar13 - 1;" (assignment_expression "__n_00 = uVar13 - 1" (identifier "__n_00") (= "=") (binary_expression "uVar13 - 1" (identifier "uVar13") (- "-") (number_literal "1"))) (; ";")) (expression_statement "iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;" (assignment_expression "iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104" (identifier "iVar23") (= "=") (binary_expression "uVar13 + uVar12 + 0xd + uVar11 + local_104" (binary_expression "uVar13 + uVar12 + 0xd + uVar11" (binary_expression "uVar13 + uVar12 + 0xd" (binary_expression "uVar13 + uVar12" (identifier "uVar13") (+ "+") (identifier "uVar12")) (+ "+") (number_literal "0xd")) (+ "+") (identifier "uVar11")) (+ "+") (identifier "local_104"))) (; ";")) (expression_statement "local_124 = iVar23 + 4 + local_100;" (assignment_expression "local_124 = iVar23 + 4 + local_100" (identifier "local_124") (= "=") (binary_expression "iVar23 + 4 + local_100" (binary_expression "iVar23 + 4" (identifier "iVar23") (+ "+") (number_literal "4")) (+ "+") (identifier "local_100"))) (; ";")) (expression_statement "local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);" (assignment_expression "local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23)" (identifier "local_134") (= "=") (cast_expression "(uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0001a9c0(local_124,1,iVar23,iVar23)" (identifier "FUN_0001a9c0") (argument_list "(local_124,1,iVar23,iVar23)" (( "(") (identifier "local_124") (, ",") (number_literal "1") (, ",") (identifier "iVar23") (, ",") (identifier "iVar23") () ")"))))) (; ";")) (expression_statement "*local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000;" (assignment_expression "*local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000" (pointer_expression "*local_134" (* "*") (identifier "local_134")) (= "=") (binary_expression "__n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |\n                                   __n * 0x1000000" (binary_expression "__n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8" (binary_expression "__n >> 0x18 | (__n & 0xff0000) >> 8" (binary_expression "__n >> 0x18" (identifier "__n") (>> ">>") (number_literal "0x18")) (| "|") (binary_expression "(__n & 0xff0000) >> 8" (parenthesized_expression "(__n & 0xff0000)" (( "(") (binary_expression "__n & 0xff0000" (identifier "__n") (& "&") (number_literal "0xff0000")) () ")")) (>> ">>") (number_literal "8"))) (| "|") (binary_expression "(__n & 0xff00) << 8" (parenthesized_expression "(__n & 0xff00)" (( "(") (binary_expression "__n & 0xff00" (identifier "__n") (& "&") (number_literal "0xff00")) () ")")) (<< "<<") (number_literal "8"))) (| "|") (binary_expression "__n * 0x1000000" (identifier "__n") (* "*") (number_literal "0x1000000")))) (; ";")) (expression_statement "memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);" (call_expression "memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n)" (identifier "memcpy") (argument_list "(local_134 + 1,*(void **)(iVar4 + 0x30),__n)" (( "(") (binary_expression "local_134 + 1" (identifier "local_134") (+ "+") (number_literal "1")) (, ",") (pointer_expression "*(void **)(iVar4 + 0x30)" (* "*") (cast_expression "(void **)(iVar4 + 0x30)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar4 + 0x30)" (( "(") (binary_expression "iVar4 + 0x30" (identifier "iVar4") (+ "+") (number_literal "0x30")) () ")")))) (, ",") (identifier "__n") () ")"))) (; ";")) (expression_statement "puVar10 = (uint *)((int)local_134 + uVar11 + 3);" (assignment_expression "puVar10 = (uint *)((int)local_134 + uVar11 + 3)" (identifier "puVar10") (= "=") (cast_expression "(uint *)((int)local_134 + uVar11 + 3)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)local_134 + uVar11 + 3)" (( "(") (binary_expression "(int)local_134 + uVar11 + 3" (binary_expression "(int)local_134 + uVar11" (cast_expression "(int)local_134" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_134")) (+ "+") (identifier "uVar11")) (+ "+") (number_literal "3")) () ")")))) (; ";")) (expression_statement "*puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000;" (assignment_expression "*puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000" (pointer_expression "*puVar10" (* "*") (identifier "puVar10")) (= "=") (binary_expression "__n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8\n                                 | __n_01 * 0x1000000" (binary_expression "__n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8" (binary_expression "__n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8" (binary_expression "__n_01 >> 0x18" (identifier "__n_01") (>> ">>") (number_literal "0x18")) (| "|") (binary_expression "(__n_01 & 0xff0000) >> 8" (parenthesized_expression "(__n_01 & 0xff0000)" (( "(") (binary_expression "__n_01 & 0xff0000" (identifier "__n_01") (& "&") (number_literal "0xff0000")) () ")")) (>> ">>") (number_literal "8"))) (| "|") (binary_expression "(__n_01 & 0xff00) << 8" (parenthesized_expression "(__n_01 & 0xff00)" (( "(") (binary_expression "__n_01 & 0xff00" (identifier "__n_01") (& "&") (number_literal "0xff00")) () ")")) (<< "<<") (number_literal "8"))) (| "|") (binary_expression "__n_01 * 0x1000000" (identifier "__n_01") (* "*") (number_literal "0x1000000")))) (; ";")) (expression_statement "memcpy(puVar10 + 1,pbVar8,__n_01);" (call_expression "memcpy(puVar10 + 1,pbVar8,__n_01)" (identifier "memcpy") (argument_list "(puVar10 + 1,pbVar8,__n_01)" (( "(") (binary_expression "puVar10 + 1" (identifier "puVar10") (+ "+") (number_literal "1")) (, ",") (identifier "pbVar8") (, ",") (identifier "__n_01") () ")"))) (; ";")) (expression_statement "puVar10 = (uint *)((int)puVar10 + uVar12 + 3);" (assignment_expression "puVar10 = (uint *)((int)puVar10 + uVar12 + 3)" (identifier "puVar10") (= "=") (cast_expression "(uint *)((int)puVar10 + uVar12 + 3)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar10 + uVar12 + 3)" (( "(") (binary_expression "(int)puVar10 + uVar12 + 3" (binary_expression "(int)puVar10 + uVar12" (cast_expression "(int)puVar10" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar10")) (+ "+") (identifier "uVar12")) (+ "+") (number_literal "3")) () ")")))) (; ";")) (expression_statement "*puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000;" (assignment_expression "*puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000" (pointer_expression "*puVar10" (* "*") (identifier "puVar10")) (= "=") (binary_expression "__n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8\n                                 | __n_00 * 0x1000000" (binary_expression "__n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8" (binary_expression "__n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8" (binary_expression "__n_00 >> 0x18" (identifier "__n_00") (>> ">>") (number_literal "0x18")) (| "|") (binary_expression "(__n_00 & 0xff0000) >> 8" (parenthesized_expression "(__n_00 & 0xff0000)" (( "(") (binary_expression "__n_00 & 0xff0000" (identifier "__n_00") (& "&") (number_literal "0xff0000")) () ")")) (>> ">>") (number_literal "8"))) (| "|") (binary_expression "(__n_00 & 0xff00) << 8" (parenthesized_expression "(__n_00 & 0xff00)" (( "(") (binary_expression "__n_00 & 0xff00" (identifier "__n_00") (& "&") (number_literal "0xff00")) () ")")) (<< "<<") (number_literal "8"))) (| "|") (binary_expression "__n_00 * 0x1000000" (identifier "__n_00") (* "*") (number_literal "0x1000000")))) (; ";")) (expression_statement "memcpy(puVar10 + 1,pcVar5,__n_00);" (call_expression "memcpy(puVar10 + 1,pcVar5,__n_00)" (identifier "memcpy") (argument_list "(puVar10 + 1,pcVar5,__n_00)" (( "(") (binary_expression "puVar10 + 1" (identifier "puVar10") (+ "+") (number_literal "1")) (, ",") (identifier "pcVar5") (, ",") (identifier "__n_00") () ")"))) (; ";")) (expression_statement "puVar10 = (uint *)((int)puVar10 + uVar13 + 3);" (assignment_expression "puVar10 = (uint *)((int)puVar10 + uVar13 + 3)" (identifier "puVar10") (= "=") (cast_expression "(uint *)((int)puVar10 + uVar13 + 3)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar10 + uVar13 + 3)" (( "(") (binary_expression "(int)puVar10 + uVar13 + 3" (binary_expression "(int)puVar10 + uVar13" (cast_expression "(int)puVar10" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar10")) (+ "+") (identifier "uVar13")) (+ "+") (number_literal "3")) () ")")))) (; ";")) (expression_statement "*(undefined1 *)puVar10 = local_104._3_1_;" (assignment_expression "*(undefined1 *)puVar10 = local_104._3_1_" (pointer_expression "*(undefined1 *)puVar10" (* "*") (cast_expression "(undefined1 *)puVar10" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar10"))) (= "=") (field_expression "local_104._3_1_" (identifier "local_104") (. ".") (field_identifier "_3_1_"))) (; ";")) (expression_statement "*(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);" (assignment_expression "*(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10)" (pointer_expression "*(char *)((int)puVar10 + 1)" (* "*") (cast_expression "(char *)((int)puVar10 + 1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar10 + 1)" (( "(") (binary_expression "(int)puVar10 + 1" (cast_expression "(int)puVar10" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar10")) (+ "+") (number_literal "1")) () ")")))) (= "=") (cast_expression "(char)(local_104 >> 0x10)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "(local_104 >> 0x10)" (( "(") (binary_expression "local_104 >> 0x10" (identifier "local_104") (>> ">>") (number_literal "0x10")) () ")")))) (; ";")) (expression_statement "*(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);" (assignment_expression "*(char *)((int)puVar10 + 2) = (char)(local_104 >> 8)" (pointer_expression "*(char *)((int)puVar10 + 2)" (* "*") (cast_expression "(char *)((int)puVar10 + 2)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar10 + 2)" (( "(") (binary_expression "(int)puVar10 + 2" (cast_expression "(int)puVar10" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar10")) (+ "+") (number_literal "2")) () ")")))) (= "=") (cast_expression "(char)(local_104 >> 8)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "(local_104 >> 8)" (( "(") (binary_expression "local_104 >> 8" (identifier "local_104") (>> ">>") (number_literal "8")) () ")")))) (; ";")) (expression_statement "*(char *)((int)puVar10 + 3) = (char)local_104;" (assignment_expression "*(char *)((int)puVar10 + 3) = (char)local_104" (pointer_expression "*(char *)((int)puVar10 + 3)" (* "*") (cast_expression "(char *)((int)puVar10 + 3)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar10 + 3)" (( "(") (binary_expression "(int)puVar10 + 3" (cast_expression "(int)puVar10" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar10")) (+ "+") (number_literal "3")) () ")")))) (= "=") (cast_expression "(char)local_104" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "local_104"))) (; ";")) (expression_statement "memcpy(puVar10 + 1,local_13c,local_104);" (call_expression "memcpy(puVar10 + 1,local_13c,local_104)" (identifier "memcpy") (argument_list "(puVar10 + 1,local_13c,local_104)" (( "(") (binary_expression "puVar10 + 1" (identifier "puVar10") (+ "+") (number_literal "1")) (, ",") (identifier "local_13c") (, ",") (identifier "local_104") () ")"))) (; ";")) (expression_statement "puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);" (assignment_expression "puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4)" (identifier "puVar1") (= "=") (cast_expression "(undefined1 *)((int)puVar10 + local_104 + 4)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar10 + local_104 + 4)" (( "(") (binary_expression "(int)puVar10 + local_104 + 4" (binary_expression "(int)puVar10 + local_104" (cast_expression "(int)puVar10" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar10")) (+ "+") (identifier "local_104")) (+ "+") (number_literal "4")) () ")")))) (; ";")) (expression_statement "*puVar1 = local_100._3_1_;" (assignment_expression "*puVar1 = local_100._3_1_" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (field_expression "local_100._3_1_" (identifier "local_100") (. ".") (field_identifier "_3_1_"))) (; ";")) (expression_statement "puVar1[1] = (char)(local_100 >> 0x10);" (assignment_expression "puVar1[1] = (char)(local_100 >> 0x10)" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (cast_expression "(char)(local_100 >> 0x10)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "(local_100 >> 0x10)" (( "(") (binary_expression "local_100 >> 0x10" (identifier "local_100") (>> ">>") (number_literal "0x10")) () ")")))) (; ";")) (expression_statement "puVar1[2] = (char)(local_100 >> 8);" (assignment_expression "puVar1[2] = (char)(local_100 >> 8)" (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(char)(local_100 >> 8)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "(local_100 >> 8)" (( "(") (binary_expression "local_100 >> 8" (identifier "local_100") (>> ">>") (number_literal "8")) () ")")))) (; ";")) (expression_statement "puVar1[3] = (char)local_100;" (assignment_expression "puVar1[3] = (char)local_100" (subscript_expression "puVar1[3]" (identifier "puVar1") ([ "[") (number_literal "3") (] "]")) (= "=") (cast_expression "(char)local_100" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "local_100"))) (; ";")) (expression_statement "memcpy(puVar1 + 4,local_140,local_100);" (call_expression "memcpy(puVar1 + 4,local_140,local_100)" (identifier "memcpy") (argument_list "(puVar1 + 4,local_140,local_100)" (( "(") (binary_expression "puVar1 + 4" (identifier "puVar1") (+ "+") (number_literal "4")) (, ",") (identifier "local_140") (, ",") (identifier "local_100") () ")"))) (; ";")) (expression_statement "bVar19 = true;" (assignment_expression "bVar19 = true" (identifier "bVar19") (= "=") (true "true")) (; ";")) (goto_statement "goto LAB_00055390;" (goto "goto") (statement_identifier "LAB_00055390") (; ";")) (} "}"))) (labeled_statement "LAB_000556cb:\n                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }" (statement_identifier "LAB_000556cb") (: ":") (if_statement "if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }" (if "if") (parenthesized_expression "((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0))" (( "(") (binary_expression "(param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)" (parenthesized_expression "(param_2 != (char *)0x0)" (( "(") (binary_expression "param_2 != (char *)0x0" (identifier "param_2") (!= "!=") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "((int)local_100 % (int)local_124 == 0)" (( "(") (binary_expression "(int)local_100 % (int)local_124 == 0" (binary_expression "(int)local_100 % (int)local_124" (cast_expression "(int)local_100" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_100")) (% "%") (cast_expression "(int)local_124" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_124"))) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n                      puVar10 = local_fc;\n                      FUN_0005ce60(puVar10,pcVar22,iVar9);\n                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_49);\n                      FUN_0005ce60(puVar10);\n                      FUN_0005cea0(puVar10,&DAT_0007db21,4);\n                      FUN_0005cea0(puVar10,param_2,local_14c);\n                      FUN_0005d370(puVar10,local_35);\n                      FUN_00042f80(local_49,local_140,local_100);\n                      goto LAB_00055778;\n                    }" ({ "{") (expression_statement "puVar10 = local_fc;" (assignment_expression "puVar10 = local_fc" (identifier "puVar10") (= "=") (identifier "local_fc")) (; ";")) (expression_statement "FUN_0005ce60(puVar10,pcVar22,iVar9);" (call_expression "FUN_0005ce60(puVar10,pcVar22,iVar9)" (identifier "FUN_0005ce60") (argument_list "(puVar10,pcVar22,iVar9)" (( "(") (identifier "puVar10") (, ",") (identifier "pcVar22") (, ",") (identifier "iVar9") () ")"))) (; ";")) (expression_statement "FUN_0005cea0(puVar10,&DAT_0007db1c,4);" (call_expression "FUN_0005cea0(puVar10,&DAT_0007db1c,4)" (identifier "FUN_0005cea0") (argument_list "(puVar10,&DAT_0007db1c,4)" (( "(") (identifier "puVar10") (, ",") (pointer_expression "&DAT_0007db1c" (& "&") (identifier "DAT_0007db1c")) (, ",") (number_literal "4") () ")"))) (; ";")) (expression_statement "FUN_0005cea0(puVar10,param_2,local_14c);" (call_expression "FUN_0005cea0(puVar10,param_2,local_14c)" (identifier "FUN_0005cea0") (argument_list "(puVar10,param_2,local_14c)" (( "(") (identifier "puVar10") (, ",") (identifier "param_2") (, ",") (identifier "local_14c") () ")"))) (; ";")) (expression_statement "FUN_0005d370(puVar10,local_49);" (call_expression "FUN_0005d370(puVar10,local_49)" (identifier "FUN_0005d370") (argument_list "(puVar10,local_49)" (( "(") (identifier "puVar10") (, ",") (identifier "local_49") () ")"))) (; ";")) (expression_statement "FUN_0005ce60(puVar10);" (call_expression "FUN_0005ce60(puVar10)" (identifier "FUN_0005ce60") (argument_list "(puVar10)" (( "(") (identifier "puVar10") () ")"))) (; ";")) (expression_statement "FUN_0005cea0(puVar10,&DAT_0007db21,4);" (call_expression "FUN_0005cea0(puVar10,&DAT_0007db21,4)" (identifier "FUN_0005cea0") (argument_list "(puVar10,&DAT_0007db21,4)" (( "(") (identifier "puVar10") (, ",") (pointer_expression "&DAT_0007db21" (& "&") (identifier "DAT_0007db21")) (, ",") (number_literal "4") () ")"))) (; ";")) (expression_statement "FUN_0005cea0(puVar10,param_2,local_14c);" (call_expression "FUN_0005cea0(puVar10,param_2,local_14c)" (identifier "FUN_0005cea0") (argument_list "(puVar10,param_2,local_14c)" (( "(") (identifier "puVar10") (, ",") (identifier "param_2") (, ",") (identifier "local_14c") () ")"))) (; ";")) (expression_statement "FUN_0005d370(puVar10,local_35);" (call_expression "FUN_0005d370(puVar10,local_35)" (identifier "FUN_0005d370") (argument_list "(puVar10,local_35)" (( "(") (identifier "puVar10") (, ",") (identifier "local_35") () ")"))) (; ";")) (expression_statement "FUN_00042f80(local_49,local_140,local_100);" (call_expression "FUN_00042f80(local_49,local_140,local_100)" (identifier "FUN_00042f80") (argument_list "(local_49,local_140,local_100)" (( "(") (identifier "local_49") (, ",") (identifier "local_140") (, ",") (identifier "local_100") () ")"))) (; ";")) (goto_statement "goto LAB_00055778;" (goto "goto") (statement_identifier "LAB_00055778") (; ";")) (} "}")))) (expression_statement "pcVar15 = "file format error";" (assignment_expression "pcVar15 = "file format error"" (identifier "pcVar15") (= "=") (string_literal ""file format error"" (" """) (string_content "file format error") (" """))) (; ";")) (expression_statement "piVar14 = (int *)0x0;" (assignment_expression "piVar14 = (int *)0x0" (identifier "piVar14") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (labeled_statement "LAB_000554a5:\n                    FUN_0001b250(pcVar5,pcVar22,iVar9);" (statement_identifier "LAB_000554a5") (: ":") (expression_statement "FUN_0001b250(pcVar5,pcVar22,iVar9);" (call_expression "FUN_0001b250(pcVar5,pcVar22,iVar9)" (identifier "FUN_0001b250") (argument_list "(pcVar5,pcVar22,iVar9)" (( "(") (identifier "pcVar5") (, ",") (identifier "pcVar22") (, ",") (identifier "iVar9") () ")"))) (; ";"))) (expression_statement "FUN_0001b250(pbVar8);" (call_expression "FUN_0001b250(pbVar8)" (identifier "FUN_0001b250") (argument_list "(pbVar8)" (( "(") (identifier "pbVar8") () ")"))) (; ";")) (expression_statement "FUN_0001b250(local_144);" (call_expression "FUN_0001b250(local_144)" (identifier "FUN_0001b250") (argument_list "(local_144)" (( "(") (identifier "local_144") () ")"))) (; ";")) (} "}")))) (if_statement "if (local_13c != (void *)0x0) {\n                    FUN_0001b250(local_13c);\n                  }" (if "if") (parenthesized_expression "(local_13c != (void *)0x0)" (( "(") (binary_expression "local_13c != (void *)0x0" (identifier "local_13c") (!= "!=") (cast_expression "(void *)0x0" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                    FUN_0001b250(local_13c);\n                  }" ({ "{") (expression_statement "FUN_0001b250(local_13c);" (call_expression "FUN_0001b250(local_13c)" (identifier "FUN_0001b250") (argument_list "(local_13c)" (( "(") (identifier "local_13c") () ")"))) (; ";")) (} "}"))) (if_statement "if (local_140 != (uint *)0x0) {\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }" (if "if") (parenthesized_expression "(local_140 != (uint *)0x0)" (( "(") (binary_expression "local_140 != (uint *)0x0" (identifier "local_140") (!= "!=") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n                    FUN_0001b330(local_140,local_100);\n                    FUN_0001b250(local_140);\n                  }" ({ "{") (expression_statement "FUN_0001b330(local_140,local_100);" (call_expression "FUN_0001b330(local_140,local_100)" (identifier "FUN_0001b330") (argument_list "(local_140,local_100)" (( "(") (identifier "local_140") (, ",") (identifier "local_100") () ")"))) (; ";")) (expression_statement "FUN_0001b250(local_140);" (call_expression "FUN_0001b250(local_140)" (identifier "FUN_0001b250") (argument_list "(local_140)" (( "(") (identifier "local_140") () ")"))) (; ";")) (} "}"))) (goto_statement "goto LAB_00055070;" (goto "goto") (statement_identifier "LAB_00055070") (; ";")) (} "}"))) (} "}"))) (} "}")) (else_clause "else {\n              iVar7 = 5;\n              pbVar16 = pbVar8;\n              pbVar17 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar19 = *pbVar16 < *pbVar17;\n                bVar18 = *pbVar16 == *pbVar17;\n                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n              } while (bVar18);\n              if ((!bVar19 && !bVar18) == bVar19) {\n                local_124 = 1;\n                bVar18 = false;\n                goto LAB_000551a8;\n              }\n            }" (else "else") (compound_statement "{\n              iVar7 = 5;\n              pbVar16 = pbVar8;\n              pbVar17 = &DAT_0007471c;\n              do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar19 = *pbVar16 < *pbVar17;\n                bVar18 = *pbVar16 == *pbVar17;\n                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n              } while (bVar18);\n              if ((!bVar19 && !bVar18) == bVar19) {\n                local_124 = 1;\n                bVar18 = false;\n                goto LAB_000551a8;\n              }\n            }" ({ "{") (expression_statement "iVar7 = 5;" (assignment_expression "iVar7 = 5" (identifier "iVar7") (= "=") (number_literal "5")) (; ";")) (expression_statement "pbVar16 = pbVar8;" (assignment_expression "pbVar16 = pbVar8" (identifier "pbVar16") (= "=") (identifier "pbVar8")) (; ";")) (expression_statement "pbVar17 = &DAT_0007471c;" (assignment_expression "pbVar17 = &DAT_0007471c" (identifier "pbVar17") (= "=") (pointer_expression "&DAT_0007471c" (& "&") (identifier "DAT_0007471c"))) (; ";")) (do_statement "do {\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar19 = *pbVar16 < *pbVar17;\n                bVar18 = *pbVar16 == *pbVar17;\n                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n              } while (bVar18);" (do "do") (compound_statement "{\n                if (iVar7 == 0) break;\n                iVar7 = iVar7 + -1;\n                bVar19 = *pbVar16 < *pbVar17;\n                bVar18 = *pbVar16 == *pbVar17;\n                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;\n                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;\n              }" ({ "{") (if_statement "if (iVar7 == 0) break;" (if "if") (parenthesized_expression "(iVar7 == 0)" (( "(") (binary_expression "iVar7 == 0" (identifier "iVar7") (== "==") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar7 = iVar7 + -1;" (assignment_expression "iVar7 = iVar7 + -1" (identifier "iVar7") (= "=") (binary_expression "iVar7 + -1" (identifier "iVar7") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "bVar19 = *pbVar16 < *pbVar17;" (assignment_expression "bVar19 = *pbVar16 < *pbVar17" (identifier "bVar19") (= "=") (binary_expression "*pbVar16 < *pbVar17" (pointer_expression "*pbVar16" (* "*") (identifier "pbVar16")) (< "<") (pointer_expression "*pbVar17" (* "*") (identifier "pbVar17")))) (; ";")) (expression_statement "bVar18 = *pbVar16 == *pbVar17;" (assignment_expression "bVar18 = *pbVar16 == *pbVar17" (identifier "bVar18") (= "=") (binary_expression "*pbVar16 == *pbVar17" (pointer_expression "*pbVar16" (* "*") (identifier "pbVar16")) (== "==") (pointer_expression "*pbVar17" (* "*") (identifier "pbVar17")))) (; ";")) (expression_statement "pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;" (assignment_expression "pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1" (identifier "pbVar16") (= "=") (binary_expression "pbVar16 + (uint)bVar21 * -2 + 1" (binary_expression "pbVar16 + (uint)bVar21 * -2" (identifier "pbVar16") (+ "+") (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar21")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;" (assignment_expression "pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1" (identifier "pbVar17") (= "=") (binary_expression "pbVar17 + (uint)bVar21 * -2 + 1" (binary_expression "pbVar17 + (uint)bVar21 * -2" (identifier "pbVar17") (+ "+") (binary_expression "(uint)bVar21 * -2" (cast_expression "(uint)bVar21" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar21")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(bVar18)" (( "(") (identifier "bVar18") () ")")) (; ";")) (if_statement "if ((!bVar19 && !bVar18) == bVar19) {\n                local_124 = 1;\n                bVar18 = false;\n                goto LAB_000551a8;\n              }" (if "if") (parenthesized_expression "((!bVar19 && !bVar18) == bVar19)" (( "(") (binary_expression "(!bVar19 && !bVar18) == bVar19" (parenthesized_expression "(!bVar19 && !bVar18)" (( "(") (binary_expression "!bVar19 && !bVar18" (unary_expression "!bVar19" (! "!") (identifier "bVar19")) (&& "&&") (unary_expression "!bVar18" (! "!") (identifier "bVar18"))) () ")")) (== "==") (identifier "bVar19")) () ")")) (compound_statement "{\n                local_124 = 1;\n                bVar18 = false;\n                goto LAB_000551a8;\n              }" ({ "{") (expression_statement "local_124 = 1;" (assignment_expression "local_124 = 1" (identifier "local_124") (= "=") (number_literal "1")) (; ";")) (expression_statement "bVar18 = false;" (assignment_expression "bVar18 = false" (identifier "bVar18") (= "=") (false "false")) (; ";")) (goto_statement "goto LAB_000551a8;" (goto "goto") (statement_identifier "LAB_000551a8") (; ";")) (} "}"))) (} "}")))) (expression_statement "piVar14 = (int *)0x0;" (assignment_expression "piVar14 = (int *)0x0" (identifier "piVar14") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "fclose(__stream);" (call_expression "fclose(__stream)" (identifier "fclose") (argument_list "(__stream)" (( "(") (identifier "__stream") () ")"))) (; ";")) (expression_statement "pcVar15 = "file format error";" (assignment_expression "pcVar15 = "file format error"" (identifier "pcVar15") (= "=") (string_literal ""file format error"" (" """) (string_content "file format error") (" """))) (; ";")) (expression_statement "FUN_0001b250(pbVar8);" (call_expression "FUN_0001b250(pbVar8)" (identifier "FUN_0001b250") (argument_list "(pbVar8)" (( "(") (identifier "pbVar8") () ")"))) (; ";")) (goto_statement "goto LAB_00055070;" (goto "goto") (statement_identifier "LAB_00055070") (; ";")) (} "}"))) (} "}"))) (} "}"))) (labeled_statement "LAB_0005510e:\n      pcVar15 = "file format error";" (statement_identifier "LAB_0005510e") (: ":") (expression_statement "pcVar15 = "file format error";" (assignment_expression "pcVar15 = "file format error"" (identifier "pcVar15") (= "=") (string_literal ""file format error"" (" """) (string_content "file format error") (" """))) (; ";"))) (expression_statement "piVar14 = (int *)0x0;" (assignment_expression "piVar14 = (int *)0x0" (identifier "piVar14") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "fclose(__stream);" (call_expression "fclose(__stream)" (identifier "fclose") (argument_list "(__stream)" (( "(") (identifier "__stream") () ")"))) (; ";")) (} "}")))) (} "}")))) (labeled_statement "LAB_00055070:\n  if (param_3 != (undefined4 *)0x0) {\n    *param_3 = pcVar15;\n  }" (statement_identifier "LAB_00055070") (: ":") (if_statement "if (param_3 != (undefined4 *)0x0) {\n    *param_3 = pcVar15;\n  }" (if "if") (parenthesized_expression "(param_3 != (undefined4 *)0x0)" (( "(") (binary_expression "param_3 != (undefined4 *)0x0" (identifier "param_3") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    *param_3 = pcVar15;\n  }" ({ "{") (expression_statement "*param_3 = pcVar15;" (assignment_expression "*param_3 = pcVar15" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (identifier "pcVar15")) (; ";")) (} "}")))) (labeled_statement "LAB_0005507a:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return piVar14;\n  }" (statement_identifier "LAB_0005507a") (: ":") (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return piVar14;\n  }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return piVar14;\n  }" ({ "{") (return_statement "return piVar14;" (return "return") (identifier "piVar14") (; ";")) (} "}")))) (expression_statement "FUN_0006f2a0();" (call_expression "FUN_0006f2a0()" (identifier "FUN_0006f2a0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

type_1 * function_1(type_2 *filename,char *var_2,char **var_44)

{
  type_3 var_51;
  type_3 var_55;
  type_3 *var_54;
  type_4 *var_56;
  char var_46;
  int var_58;
  int var_41;
  type_5 var_12;
  type_6 *var_5;
  int var_7;
  char *var_16;
  size_t namelen;
  type_7 *var_18;
  type_5 *var_9;
  char *var_22;
  type_8 *var_27;
  void *var_43;
  type_3 var_45;
  type_3 var_47;
  type_3 var_48;
  type_1 *ptr;
  type_5 *var_10;
  type_9 *var_30;
  type_8 *c_00;
  type_5 *var_20;
  type_9 *var_31;
  type_3 var_53;
  int var_1;
  bool var_11;
  bool var_13;
  bool var_21;
  type_5 bVar23;
  size_t sVar24;
  size_t local_14c;
  char *var_29;
  type_8 *var_28;
  type_9 *var_25;
  type_8 *local_134;
  size_t local_124;
  int var_49;
  int var_50;
  type_10 s;
  type_9 var_38 [20];
  type_9 mackey [20];
  char header [40];
  type_9 var_40 [40];
  
  bVar23 = 0;
  var_58 = *(int *)(var_1 + 0x14);
  local_14c = 0;
  if (var_2 != (char *)0x0) {
    local_14c = var_3(var_2);
  }
  var_5 = (type_6 *)var_4(filename,"rb",0);
  if (var_5 == (type_6 *)0x0) {
    var_22 = "can\'t open file";
    ptr = (type_1 *)0x0;
  }
  else {
    var_7 = var_6((type_6 *)var_5,header);
    var_11 = false;
    var_21 = var_7 == 0;
    if (var_21) {
      var_22 = (char *)0x0;
      ptr = (type_1 *)0x0;
      var_8(var_5);
    }
    else {
      var_7 = 0x16;
      var_9 = (type_5 *)header;
      var_10 = (type_5 *)"PuTTY-User-Key-File-2";
      do {
        if (var_7 == 0) break;
        var_7 = var_7 + -1;
        var_11 = *var_9 < *var_10;
        var_21 = *var_9 == *var_10;
        var_9 = var_9 + (type_3)bVar23 * -2 + 1;
        var_10 = var_10 + (type_3)bVar23 * -2 + 1;
      } while (var_21);
      var_12 = (!var_11 && !var_21) - var_11;
      var_11 = false;
      var_21 = var_12 == 0;
      if (!var_21) {
        var_7 = 0x16;
        var_9 = (type_5 *)header;
        var_10 = (type_5 *)"PuTTY-User-Key-File-1";
        do {
          if (var_7 == 0) break;
          var_7 = var_7 + -1;
          var_11 = *var_9 < *var_10;
          var_21 = *var_9 == *var_10;
          var_9 = var_9 + (type_3)bVar23 * -2 + 1;
          var_10 = var_10 + (type_3)bVar23 * -2 + 1;
        } while (var_21);
        var_13 = false;
        var_11 = (!var_11 && !var_21) == var_11;
        if (!var_11) {
          var_7 = 0x14;
          var_9 = (type_5 *)header;
          var_10 = (type_5 *)"PuTTY-User-Key-File-";
          do {
            if (var_7 == 0) break;
            var_7 = var_7 + -1;
            var_13 = *var_9 < *var_10;
            var_11 = *var_9 == *var_10;
            var_9 = var_9 + (type_3)bVar23 * -2 + 1;
            var_10 = var_10 + (type_3)bVar23 * -2 + 1;
          } while (var_11);
          if ((!var_13 && !var_11) == var_13) {
            var_22 = "PuTTY key format too new";
            ptr = (type_1 *)0x0;
            var_8(var_5);
          }
          else {
            var_22 = "not a PuTTY SSH-2 private key";
            ptr = (type_1 *)0x0;
            var_8(var_5);
          }
          goto LAB_00055070;
        }
        var_14();
        var_12 = 1;
      }
      var_16 = var_15((type_6 *)var_5);
      if (var_16 == (char *)0x0) goto LAB_0005510e;
      namelen = var_3(var_16);
      var_18 = var_17(namelen,var_16);
      if (var_18 == (type_7 *)0x0) {
        var_22 = "file format error";
        var_19(var_16);
        ptr = (type_1 *)0x0;
        var_8(var_5);
        goto LAB_00055070;
      }
      var_19(var_16);
      var_7 = var_6((type_6 *)var_5,header);
      var_11 = false;
      var_21 = var_7 == 0;
      if (!var_21) {
        var_7 = 0xb;
        var_9 = (type_5 *)header;
        var_10 = (type_5 *)"Encryption";
        do {
          if (var_7 == 0) break;
          var_7 = var_7 + -1;
          var_11 = *var_9 < *var_10;
          var_21 = *var_9 == *var_10;
          var_9 = var_9 + (type_3)bVar23 * -2 + 1;
          var_10 = var_10 + (type_3)bVar23 * -2 + 1;
        } while (var_21);
        if ((!var_11 && !var_21) == var_11) {
          var_9 = (type_5 *)var_15((type_6 *)var_5);
          var_11 = false;
          var_21 = var_9 == (type_5 *)0x0;
          if (!var_21) {
            var_7 = 0xb;
            var_10 = var_9;
            var_20 = (type_5 *)"aes256-cbc";
            do {
              if (var_7 == 0) break;
              var_7 = var_7 + -1;
              var_11 = *var_10 < *var_20;
              var_21 = *var_10 == *var_20;
              var_10 = var_10 + (type_3)bVar23 * -2 + 1;
              var_20 = var_20 + (type_3)bVar23 * -2 + 1;
            } while (var_21);
            var_13 = false;
            var_11 = (!var_11 && !var_21) == var_11;
            if (var_11) {
              local_124 = 0x10;
              var_11 = true;
LAB_000551a8:
              var_7 = var_6((type_6 *)var_5,header);
              var_21 = false;
              var_13 = var_7 == 0;
              if (!var_13) {
                var_7 = 8;
                var_10 = (type_5 *)header;
                var_20 = (type_5 *)"Comment";
                do {
                  if (var_7 == 0) break;
                  var_7 = var_7 + -1;
                  var_21 = *var_10 < *var_20;
                  var_13 = *var_10 == *var_20;
                  var_10 = var_10 + (type_3)bVar23 * -2 + 1;
                  var_20 = var_20 + (type_3)bVar23 * -2 + 1;
                } while (var_13);
                if ((!var_21 && !var_13) == var_21) {
                  var_16 = var_15((type_6 *)var_5);
                  if (var_16 == (char *)0x0) {
                    var_22 = "file format error";
                    ptr = (type_1 *)0x0;
                    var_8(var_5);
                    var_19(var_9);
                    goto LAB_00055070;
                  }
                  var_7 = var_6((type_6 *)var_5,header);
                  var_21 = false;
                  var_13 = var_7 == 0;
                  if (var_13) {
LAB_000555ad:
                    var_28 = (type_8 *)0x0;
                    var_25 = (type_9 *)0x0;
LAB_0005553d:
                    var_22 = "file format error";
                    var_8(var_5);
LAB_0005554f:
                    ptr = (type_1 *)0x0;
                    var_19(var_16);
                    var_19(var_9);
                  }
                  else {
                    var_7 = 0xd;
                    var_10 = (type_5 *)header;
                    var_20 = (type_5 *)"Public-Lines";
                    do {
                      if (var_7 == 0) break;
                      var_7 = var_7 + -1;
                      var_21 = *var_10 < *var_20;
                      var_13 = *var_10 == *var_20;
                      var_10 = var_10 + (type_3)bVar23 * -2 + 1;
                      var_20 = var_20 + (type_3)bVar23 * -2 + 1;
                    } while (var_13);
                    if ((!var_21 && !var_13) != var_21) goto LAB_000555ad;
                    var_22 = var_15((type_6 *)var_5);
                    if (var_22 == (char *)0x0) goto LAB_000555ad;
                    var_7 = var_23(var_22);
                    var_19(var_22);
                    if (var_7 < 0) goto LAB_000555ad;
                    var_25 = var_24((type_6 *)var_5,var_7,&var_49);
                    if (var_25 == (type_9 *)0x0) goto LAB_000555ad;
                    var_7 = var_6((type_6 *)var_5,header);
                    if (var_7 == 0) {
LAB_00055535:
                      var_28 = (type_8 *)0x0;
                      goto LAB_0005553d;
                    }
                    var_7 = var_26(header,"Private-Lines");
                    var_28 = (type_8 *)0x0;
                    if (var_7 != 0) goto LAB_0005553d;
                    var_27 = (type_8 *)var_15((type_6 *)var_5);
                    var_28 = var_27;
                    if (var_27 == (type_8 *)0x0) goto LAB_0005553d;
                    var_7 = var_23((char *)var_27);
                    var_19(var_27);
                    if (var_7 < 0) goto LAB_00055535;
                    var_28 = (type_8 *)var_24((type_6 *)var_5,var_7,&var_50);
                    if (var_28 == (type_8 *)0x0) goto LAB_0005553d;
                    var_7 = var_6((type_6 *)var_5,header);
                    if (var_7 == 0) goto LAB_0005553d;
                    var_7 = var_26(header,"Private-MAC");
                    if (var_7 != 0) {
                      var_7 = var_26(header,"Private-Hash");
                      if ((var_7 != 0) || ((var_12 & 1) == 0)) goto LAB_0005553d;
                      var_29 = var_15((type_6 *)var_5);
                      if (var_29 == (char *)0x0) goto LAB_0005553d;
                      var_21 = false;
                      var_8(var_5);
                      if (var_11) goto LAB_000556cb;
LAB_00055378:
                      var_13 = false;
                      local_124 = var_50;
                      local_134 = var_28;
LAB_00055390:
                      if (var_21) {
                        var_30 = (type_9 *)"putty-private-key-file-mac-key";
                        var_31 = var_40;
                        for (var_7 = 0x1f; var_7 != 0; var_7 = var_7 + -1) {
                          *var_31 = *var_30;
                          var_30 = var_30 + (type_3)bVar23 * -2 + 1;
                          var_31 = var_31 + (type_3)bVar23 * -2 + 1;
                        }
                        c_00 = (type_8 *)&s;
                        var_32(c_00);
                        var_33((type_10 *)c_00,var_40,0x1e);
                        if ((var_2 != (char *)0x0) && (var_11)) {
                          var_33((type_10 *)c_00,var_2,local_14c);
                        }
                        var_27 = (type_8 *)var_2;
                        var_34((type_10 *)c_00,mackey);
                        var_35(mackey,0x14,local_134,local_124,var_38);
                        var_36(mackey,0x14);
                        sVar24 = 0x60;
                        var_36(c_00,0x60);
                      }
                      else {
                        var_2 = (char *)var_38;
                        sVar24 = local_124;
                        var_37(local_134,local_124,(type_9 *)var_2);
                        c_00 = (type_8 *)0x0;
                      }
                      if (var_13) {
                        var_27 = c_00;
                        var_36(local_134,local_124);
                        var_19(local_134);
                        sVar24 = local_124;
                        var_2 = (char *)c_00;
                      }
                      var_7 = 0;
                      do {
                        var_30 = var_38 + var_7;
                        var_41 = var_7 * 2;
                        var_7 = var_7 + 1;
                        var_39(var_40 + var_41,1,0xffffffff,&DAT_0007dc2b,*var_30,sVar24,
                                      var_2,var_27);
                      } while (var_7 != 0x14);
                      var_7 = var_26(var_29,(char *)var_40);
                      if (var_7 != 0) {
                        if (var_11) {
                          var_22 = "wrong passphrase";
                          ptr = &ssh2_wrong_passphrase;
                        }
                        else {
                          var_22 = "MAC failed";
                          ptr = (type_1 *)0x0;
                        }
                        goto LAB_000554a5;
                      }
                      var_19(var_29);
                      ptr = (type_1 *)var_42(1,0xc);
                      ptr->comment = var_16;
                      ptr->alg = var_18;
                      var_43 = (*var_18->createkey)
                                          (var_18,var_25,var_49,(type_9 *)var_28,
                                           var_50);
                      ptr->data = var_43;
                      if (var_43 != (void *)0x0) {
                        var_19(var_25);
                        var_36(var_28,var_50);
                        var_19(var_28);
                        var_19(var_9);
                        if (var_44 != (char **)0x0) {
                          *var_44 = (char *)0x0;
                        }
                        goto LAB_0005507a;
                      }
                      var_22 = "createkey failed";
                      var_19(ptr);
                      goto LAB_0005554f;
                    }
                    var_29 = var_15((type_6 *)var_5);
                    if (var_29 == (char *)0x0) goto LAB_0005553d;
                    var_8(var_5);
                    var_21 = var_11;
                    if (!var_11) {
                      var_21 = true;
LAB_00055778:
                      if (var_12 != 0) goto LAB_00055378;
                      var_45 = 0xffffffff;
                      var_22 = var_18->name;
                      do {
                        if (var_45 == 0) break;
                        var_45 = var_45 - 1;
                        var_46 = *var_22;
                        var_22 = var_22 + (type_3)bVar23 * -2 + 1;
                      } while (var_46 != '\0');
                      var_45 = ~var_45;
                      var_51 = var_45 - 1;
                      var_47 = 0xffffffff;
                      var_10 = var_9;
                      do {
                        if (var_47 == 0) break;
                        var_47 = var_47 - 1;
                        var_12 = *var_10;
                        var_10 = var_10 + (type_3)bVar23 * -2 + 1;
                      } while (var_12 != 0);
                      var_48 = 0xffffffff;
                      var_47 = ~var_47;
                      var_53 = var_47 - 1;
                      var_22 = var_16;
                      do {
                        if (var_48 == 0) break;
                        var_48 = var_48 - 1;
                        var_46 = *var_22;
                        var_22 = var_22 + (type_3)bVar23 * -2 + 1;
                      } while (var_46 != '\0');
                      var_48 = ~var_48;
                      var_55 = var_48 - 1;
                      local_124 = var_48 + var_47 + var_45 + var_49 + 0x11 +
                                  var_50;
                      local_134 = (type_8 *)var_42(local_124,1);
                      local_134->h0 =
                           var_51 >> 0x18 | (var_51 & 0xff0000) >> 8 | (var_51 & 0xff00) << 8 |
                           var_51 * 0x1000000;
                      var_52(&local_134->h1,var_18->name,var_51);
                      var_54 = (type_3 *)((int)local_134->data + (var_45 - 0x19));
                      *var_54 = var_53 >> 0x18 | (var_53 & 0xff0000) >> 8 | (var_53 & 0xff00) << 8 |
                                var_53 * 0x1000000;
                      var_52(var_54 + 1,var_9,var_53);
                      var_54 = (type_3 *)((int)var_54 + var_47 + 3);
                      *var_54 = var_55 >> 0x18 | (var_55 & 0xff0000) >> 8 | (var_55 & 0xff00) << 8 |
                                var_55 * 0x1000000;
                      var_52(var_54 + 1,var_16,var_55);
                      var_7 = var_49;
                      var_27 = (type_8 *)((int)var_54 + var_48 + 3);
                      *(type_4 *)&var_27->h0 = var_49._3_1_;
                      *(char *)((int)&var_27->h0 + 1) = (char)((type_3)var_49 >> 0x10);
                      *(char *)((int)&var_27->h0 + 2) = (char)((type_3)var_49 >> 8);
                      *(char *)((int)&var_27->h0 + 3) = (char)var_49;
                      var_52(&var_27->h1,var_25,var_49);
                      var_56 = (type_4 *)((int)var_27->data + var_7 + -0x18);
                      *var_56 = var_50._3_1_;
                      var_56[1] = (char)((type_3)var_50 >> 0x10);
                      var_56[2] = (char)((type_3)var_50 >> 8);
                      var_56[3] = (char)var_50;
                      var_52(var_56 + 4,var_28,var_50);
                      var_13 = true;
                      goto LAB_00055390;
                    }
LAB_000556cb:
                    if ((var_2 != (char *)0x0) && (var_50 % (int)local_124 == 0)) {
                      var_27 = (type_8 *)&s;
                      var_32(var_27);
                      var_33((type_10 *)var_27,&DAT_0007db1c,4);
                      var_33((type_10 *)var_27,var_2,local_14c);
                      var_34((type_10 *)var_27,var_40);
                      var_32(var_27);
                      var_33((type_10 *)var_27,&DAT_0007db21,4);
                      var_33((type_10 *)var_27,var_2,local_14c);
                      var_34((type_10 *)var_27,var_40 + 0x14);
                      var_57(var_40,(type_9 *)var_28,var_50);
                      goto LAB_00055778;
                    }
                    var_22 = "file format error";
                    ptr = (type_1 *)0x0;
LAB_000554a5:
                    var_19(var_16);
                    var_19(var_9);
                    var_19(var_29);
                  }
                  if (var_25 != (type_9 *)0x0) {
                    var_19(var_25);
                  }
                  if (var_28 != (type_8 *)0x0) {
                    var_36(var_28,var_50);
                    var_19(var_28);
                  }
                  goto LAB_00055070;
                }
              }
            }
            else {
              var_7 = 5;
              var_10 = var_9;
              var_20 = &DAT_0007471c;
              do {
                if (var_7 == 0) break;
                var_7 = var_7 + -1;
                var_13 = *var_10 < *var_20;
                var_11 = *var_10 == *var_20;
                var_10 = var_10 + (type_3)bVar23 * -2 + 1;
                var_20 = var_20 + (type_3)bVar23 * -2 + 1;
              } while (var_11);
              if ((!var_13 && !var_11) == var_13) {
                local_124 = 1;
                var_11 = false;
                goto LAB_000551a8;
              }
            }
            ptr = (type_1 *)0x0;
            var_8(var_5);
            var_22 = "file format error";
            var_19(var_9);
            goto LAB_00055070;
          }
        }
      }
LAB_0005510e:
      var_22 = "file format error";
      ptr = (type_1 *)0x0;
      var_8(var_5);
    }
  }
LAB_00055070:
  if (var_44 != (char **)0x0) {
    *var_44 = var_22;
  }
LAB_0005507a:
  if (var_58 == *(int *)(var_1 + 0x14)) {
    return ptr;
  }
                    /* WARNING: Subroutine does not return */
  var_59();
}


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

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

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

{
  uint __n;
  uint __n_00;
  undefined1 *puVar1;
  char cVar2;
  byte bVar3;
  FILE *__stream;
  int iVar4;
  char *pcVar5;
  size_t sVar6;
  int iVar7;
  byte *pbVar8;
  int iVar9;
  uint *puVar10;
  undefined4 extraout_ECX;
  int extraout_ECX_00;
  uint uVar11;
  uint uVar12;
  uint uVar13;
  int *piVar14;
  char *pcVar15;
  byte *pbVar16;
  byte *pbVar17;
  uint __n_01;
  int in_GS_OFFSET;
  bool bVar18;
  bool bVar19;
  bool bVar20;
  byte bVar21;
  char *pcVar22;
  int iVar23;
  size_t local_14c;
  char *local_144;
  uint *local_140;
  void *local_13c;
  uint *local_134;
  size_t local_124;
  undefined4 local_104;
  undefined4 local_100;
  uint local_fc [24];
  undefined1 local_99 [20];
  undefined1 local_85 [20];
  byte local_71 [40];
  char local_49 [20];
  undefined1 local_35 [21];
  int local_20;
  undefined4 uStack_14;
  
  bVar21 = 0;
  uStack_14 = 0x54f49;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  local_14c = 0;
  if (param_2 != (char *)0x0) {
    local_14c = strlen(param_2);
  }
  iVar23 = 0;
  __stream = (FILE *)FUN_00065d60(param_1,&DAT_0007d4f7,0);
  if (__stream == (FILE *)0x0) {
    pcVar15 = "can\'t open file";
    piVar14 = (int *)0x0;
  }
  else {
    iVar4 = FUN_00053dd0();
    bVar18 = false;
    bVar20 = iVar4 == 0;
    if (bVar20) {
      pcVar15 = (char *)0x0;
      piVar14 = (int *)0x0;
      fclose(__stream);
    }
    else {
      iVar4 = 0x16;
      pbVar8 = local_71;
      pbVar16 = (byte *)"PuTTY-User-Key-File-2";
      do {
        if (iVar4 == 0) break;
        iVar4 = iVar4 + -1;
        bVar18 = *pbVar8 < *pbVar16;
        bVar20 = *pbVar8 == *pbVar16;
        pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;
        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;
      } while (bVar20);
      bVar3 = (!bVar18 && !bVar20) - bVar18;
      bVar18 = false;
      bVar20 = bVar3 == 0;
      if (!bVar20) {
        iVar4 = 0x16;
        pbVar8 = local_71;
        pbVar16 = (byte *)"PuTTY-User-Key-File-1";
        do {
          if (iVar4 == 0) break;
          iVar4 = iVar4 + -1;
          bVar18 = *pbVar8 < *pbVar16;
          bVar20 = *pbVar8 == *pbVar16;
          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;
          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;
        } while (bVar20);
        bVar19 = false;
        bVar18 = (!bVar18 && !bVar20) == bVar18;
        if (!bVar18) {
          iVar23 = 0x14;
          pbVar8 = local_71;
          pbVar16 = (byte *)"PuTTY-User-Key-File-";
          do {
            if (iVar23 == 0) break;
            iVar23 = iVar23 + -1;
            bVar19 = *pbVar8 < *pbVar16;
            bVar18 = *pbVar8 == *pbVar16;
            pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;
            pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;
          } while (bVar18);
          if ((!bVar19 && !bVar18) == bVar19) {
            pcVar15 = "PuTTY key format too new";
            piVar14 = (int *)0x0;
            fclose(__stream);
          }
          else {
            pcVar15 = "not a PuTTY SSH-2 private key";
            piVar14 = (int *)0x0;
            fclose(__stream);
          }
          goto LAB_00055070;
        }
        FUN_00065000();
        bVar3 = 1;
      }
      pcVar5 = (char *)FUN_00053e50();
      if (pcVar5 == (char *)0x0) goto LAB_0005510e;
      sVar6 = strlen(pcVar5);
      pcVar22 = pcVar5;
      iVar4 = FUN_00054a80(sVar6,pcVar5);
      if (iVar4 == 0) {
        pcVar15 = "file format error";
        FUN_0001b250(pcVar5);
        piVar14 = (int *)0x0;
        fclose(__stream);
        goto LAB_00055070;
      }
      FUN_0001b250(pcVar5);
      iVar7 = FUN_00053dd0();
      bVar18 = false;
      bVar20 = iVar7 == 0;
      if (!bVar20) {
        iVar7 = 0xb;
        pbVar8 = local_71;
        pbVar16 = (byte *)"Encryption";
        do {
          if (iVar7 == 0) break;
          iVar7 = iVar7 + -1;
          bVar18 = *pbVar8 < *pbVar16;
          bVar20 = *pbVar8 == *pbVar16;
          pbVar8 = pbVar8 + (uint)bVar21 * -2 + 1;
          pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;
        } while (bVar20);
        if ((!bVar18 && !bVar20) == bVar18) {
          pbVar8 = (byte *)FUN_00053e50();
          bVar18 = false;
          bVar20 = pbVar8 == (byte *)0x0;
          if (!bVar20) {
            iVar7 = 0xb;
            pbVar16 = pbVar8;
            pbVar17 = (byte *)"aes256-cbc";
            do {
              if (iVar7 == 0) break;
              iVar7 = iVar7 + -1;
              bVar18 = *pbVar16 < *pbVar17;
              bVar20 = *pbVar16 == *pbVar17;
              pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;
              pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;
            } while (bVar20);
            bVar19 = false;
            bVar18 = (!bVar18 && !bVar20) == bVar18;
            if (bVar18) {
              local_124 = 0x10;
              bVar18 = true;
LAB_000551a8:
              iVar7 = FUN_00053dd0();
              bVar20 = false;
              bVar19 = iVar7 == 0;
              if (!bVar19) {
                iVar7 = 8;
                pbVar16 = local_71;
                pbVar17 = (byte *)"Comment";
                do {
                  if (iVar7 == 0) break;
                  iVar7 = iVar7 + -1;
                  bVar20 = *pbVar16 < *pbVar17;
                  bVar19 = *pbVar16 == *pbVar17;
                  pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;
                  pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;
                } while (bVar19);
                if ((!bVar20 && !bVar19) == bVar20) {
                  pcVar5 = (char *)FUN_00053e50();
                  if (pcVar5 == (char *)0x0) {
                    pcVar15 = "file format error";
                    piVar14 = (int *)0x0;
                    fclose(__stream);
                    FUN_0001b250(pbVar8);
                    goto LAB_00055070;
                  }
                  iVar7 = FUN_00053dd0();
                  bVar20 = false;
                  bVar19 = iVar7 == 0;
                  if (bVar19) {
LAB_000555ad:
                    local_140 = (uint *)0x0;
                    local_13c = (void *)0x0;
LAB_0005553d:
                    iVar9 = iVar23;
                    pcVar15 = "file format error";
                    fclose(__stream);
LAB_0005554f:
                    piVar14 = (int *)0x0;
                    FUN_0001b250(pcVar5,pcVar22,iVar9);
                    FUN_0001b250(pbVar8);
                  }
                  else {
                    iVar7 = 0xd;
                    pbVar16 = local_71;
                    pbVar17 = (byte *)"Public-Lines";
                    do {
                      if (iVar7 == 0) break;
                      iVar7 = iVar7 + -1;
                      bVar20 = *pbVar16 < *pbVar17;
                      bVar19 = *pbVar16 == *pbVar17;
                      pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;
                      pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;
                    } while (bVar19);
                    if ((!bVar20 && !bVar19) != bVar20) goto LAB_000555ad;
                    iVar7 = FUN_00053e50();
                    if (iVar7 == 0) goto LAB_000555ad;
                    iVar9 = FUN_00053d60();
                    FUN_0001b250(iVar7);
                    if (iVar9 < 0) goto LAB_000555ad;
                    local_13c = (void *)FUN_00053f30();
                    if (local_13c == (void *)0x0) goto LAB_000555ad;
                    iVar7 = FUN_00053dd0();
                    if (iVar7 == 0) {
LAB_00055535:
                      local_140 = (uint *)0x0;
                      goto LAB_0005553d;
                    }
                    pcVar22 = "Private-Lines";
                    iVar9 = strcmp((char *)local_71,"Private-Lines");
                    local_140 = (uint *)0x0;
                    iVar23 = iVar7;
                    if (iVar9 != 0) goto LAB_0005553d;
                    puVar10 = (uint *)FUN_00053e50();
                    iVar23 = iVar7;
                    local_140 = puVar10;
                    if (puVar10 == (uint *)0x0) goto LAB_0005553d;
                    iVar9 = FUN_00053d60();
                    FUN_0001b250(puVar10,pcVar22,iVar7);
                    iVar23 = iVar7;
                    if (iVar9 < 0) goto LAB_00055535;
                    local_140 = (uint *)FUN_00053f30();
                    iVar23 = iVar7;
                    if (local_140 == (uint *)0x0) goto LAB_0005553d;
                    iVar9 = FUN_00053dd0();
                    iVar23 = iVar7;
                    if (iVar9 == 0) goto LAB_0005553d;
                    pcVar22 = "Private-MAC";
                    iVar23 = strcmp((char *)local_71,"Private-MAC");
                    if (iVar23 != 0) {
                      pcVar22 = "Private-Hash";
                      iVar7 = strcmp((char *)local_71,"Private-Hash");
                      if ((iVar7 != 0) || ((bVar3 & 1) == 0)) goto LAB_0005553d;
                      local_144 = (char *)FUN_00053e50();
                      if (local_144 == (char *)0x0) goto LAB_0005553d;
                      bVar20 = false;
                      fclose(__stream);
                      iVar9 = iVar23;
                      if (bVar18) goto LAB_000556cb;
LAB_00055378:
                      bVar19 = false;
                      local_124 = local_100;
                      local_134 = local_140;
LAB_00055390:
                      if (bVar20) {
                        pcVar15 = "putty-private-key-file-mac-key";
                        pcVar22 = local_49;
                        for (iVar23 = 0x1f; iVar23 != 0; iVar23 = iVar23 + -1) {
                          *pcVar22 = *pcVar15;
                          pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;
                          pcVar22 = pcVar22 + (uint)bVar21 * -2 + 1;
                        }
                        puVar10 = local_fc;
                        FUN_0005ce60(puVar10);
                        FUN_0005cea0(puVar10,local_49,0x1e);
                        if ((param_2 != (char *)0x0) && (bVar18)) {
                          param_2 = (char *)FUN_0005cea0(puVar10,param_2,local_14c,extraout_ECX);
                        }
                        FUN_0005d370(puVar10,local_85,param_2,param_2);
                        FUN_0005d940(local_85,0x14,local_134,local_124,local_99);
                        FUN_0001b330(local_85,0x14);
                        FUN_0001b330(puVar10,0x60);
                      }
                      else {
                        FUN_0005d890(local_134,local_124,local_99,puVar10);
                        puVar10 = (uint *)0x0;
                      }
                      pcVar22 = local_49;
                      if (bVar19) {
                        FUN_0001b330(local_134,local_124,puVar10,puVar10);
                        FUN_0001b250(local_134);
                      }
                      iVar23 = 0;
                      do {
                        puVar1 = local_99 + iVar23;
                        iVar7 = iVar23 * 2;
                        iVar23 = iVar23 + 1;
                        __sprintf_chk(pcVar22 + iVar7,1,0xffffffff,&DAT_0007dc2b,*puVar1);
                      } while (iVar23 != 0x14);
                      iVar9 = extraout_ECX_00;
                      iVar23 = extraout_ECX_00;
                      iVar7 = strcmp(local_144,pcVar22);
                      if (iVar7 != 0) {
                        if (bVar18) {
                          pcVar15 = "wrong passphrase";
                          piVar14 = (int *)&DAT_000a9378;
                        }
                        else {
                          pcVar15 = "MAC failed";
                          piVar14 = (int *)0x0;
                        }
                        goto LAB_000554a5;
                      }
                      FUN_0001b250(local_144,pcVar22,iVar9,iVar23);
                      pcVar22 = &DAT_0000000c;
                      piVar14 = (int *)FUN_0001a9c0(1,0xc);
                      piVar14[2] = (int)pcVar5;
                      *piVar14 = iVar4;
                      iVar4 = (**(code **)(iVar4 + 0x14))
                                        (iVar4,local_13c,local_104,local_140,local_100);
                      piVar14[1] = iVar4;
                      if (iVar4 != 0) {
                        FUN_0001b250(local_13c,pcVar22,iVar9,iVar23);
                        FUN_0001b330(local_140,local_100);
                        FUN_0001b250(local_140);
                        FUN_0001b250(pbVar8);
                        if (param_3 != (undefined4 *)0x0) {
                          *param_3 = 0;
                        }
                        goto LAB_0005507a;
                      }
                      pcVar15 = "createkey failed";
                      FUN_0001b250(piVar14,pcVar22,iVar9,iVar23);
                      goto LAB_0005554f;
                    }
                    local_144 = (char *)FUN_00053e50();
                    iVar23 = iVar9;
                    if (local_144 == (char *)0x0) goto LAB_0005553d;
                    fclose(__stream);
                    bVar20 = bVar18;
                    if (!bVar18) {
                      bVar20 = true;
LAB_00055778:
                      if (bVar3 != 0) goto LAB_00055378;
                      uVar11 = 0xffffffff;
                      pcVar15 = *(char **)(iVar4 + 0x30);
                      do {
                        if (uVar11 == 0) break;
                        uVar11 = uVar11 - 1;
                        cVar2 = *pcVar15;
                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;
                      } while (cVar2 != '\0');
                      uVar11 = ~uVar11;
                      __n = uVar11 - 1;
                      uVar12 = 0xffffffff;
                      pbVar16 = pbVar8;
                      do {
                        if (uVar12 == 0) break;
                        uVar12 = uVar12 - 1;
                        bVar3 = *pbVar16;
                        pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;
                      } while (bVar3 != 0);
                      uVar13 = 0xffffffff;
                      uVar12 = ~uVar12;
                      __n_01 = uVar12 - 1;
                      pcVar15 = pcVar5;
                      do {
                        if (uVar13 == 0) break;
                        uVar13 = uVar13 - 1;
                        cVar2 = *pcVar15;
                        pcVar15 = pcVar15 + (uint)bVar21 * -2 + 1;
                      } while (cVar2 != '\0');
                      uVar13 = ~uVar13;
                      __n_00 = uVar13 - 1;
                      iVar23 = uVar13 + uVar12 + 0xd + uVar11 + local_104;
                      local_124 = iVar23 + 4 + local_100;
                      local_134 = (uint *)FUN_0001a9c0(local_124,1,iVar23,iVar23);
                      *local_134 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 |
                                   __n * 0x1000000;
                      memcpy(local_134 + 1,*(void **)(iVar4 + 0x30),__n);
                      puVar10 = (uint *)((int)local_134 + uVar11 + 3);
                      *puVar10 = __n_01 >> 0x18 | (__n_01 & 0xff0000) >> 8 | (__n_01 & 0xff00) << 8
                                 | __n_01 * 0x1000000;
                      memcpy(puVar10 + 1,pbVar8,__n_01);
                      puVar10 = (uint *)((int)puVar10 + uVar12 + 3);
                      *puVar10 = __n_00 >> 0x18 | (__n_00 & 0xff0000) >> 8 | (__n_00 & 0xff00) << 8
                                 | __n_00 * 0x1000000;
                      memcpy(puVar10 + 1,pcVar5,__n_00);
                      puVar10 = (uint *)((int)puVar10 + uVar13 + 3);
                      *(undefined1 *)puVar10 = local_104._3_1_;
                      *(char *)((int)puVar10 + 1) = (char)(local_104 >> 0x10);
                      *(char *)((int)puVar10 + 2) = (char)(local_104 >> 8);
                      *(char *)((int)puVar10 + 3) = (char)local_104;
                      memcpy(puVar10 + 1,local_13c,local_104);
                      puVar1 = (undefined1 *)((int)puVar10 + local_104 + 4);
                      *puVar1 = local_100._3_1_;
                      puVar1[1] = (char)(local_100 >> 0x10);
                      puVar1[2] = (char)(local_100 >> 8);
                      puVar1[3] = (char)local_100;
                      memcpy(puVar1 + 4,local_140,local_100);
                      bVar19 = true;
                      goto LAB_00055390;
                    }
LAB_000556cb:
                    if ((param_2 != (char *)0x0) && ((int)local_100 % (int)local_124 == 0)) {
                      puVar10 = local_fc;
                      FUN_0005ce60(puVar10,pcVar22,iVar9);
                      FUN_0005cea0(puVar10,&DAT_0007db1c,4);
                      FUN_0005cea0(puVar10,param_2,local_14c);
                      FUN_0005d370(puVar10,local_49);
                      FUN_0005ce60(puVar10);
                      FUN_0005cea0(puVar10,&DAT_0007db21,4);
                      FUN_0005cea0(puVar10,param_2,local_14c);
                      FUN_0005d370(puVar10,local_35);
                      FUN_00042f80(local_49,local_140,local_100);
                      goto LAB_00055778;
                    }
                    pcVar15 = "file format error";
                    piVar14 = (int *)0x0;
LAB_000554a5:
                    FUN_0001b250(pcVar5,pcVar22,iVar9);
                    FUN_0001b250(pbVar8);
                    FUN_0001b250(local_144);
                  }
                  if (local_13c != (void *)0x0) {
                    FUN_0001b250(local_13c);
                  }
                  if (local_140 != (uint *)0x0) {
                    FUN_0001b330(local_140,local_100);
                    FUN_0001b250(local_140);
                  }
                  goto LAB_00055070;
                }
              }
            }
            else {
              iVar7 = 5;
              pbVar16 = pbVar8;
              pbVar17 = &DAT_0007471c;
              do {
                if (iVar7 == 0) break;
                iVar7 = iVar7 + -1;
                bVar19 = *pbVar16 < *pbVar17;
                bVar18 = *pbVar16 == *pbVar17;
                pbVar16 = pbVar16 + (uint)bVar21 * -2 + 1;
                pbVar17 = pbVar17 + (uint)bVar21 * -2 + 1;
              } while (bVar18);
              if ((!bVar19 && !bVar18) == bVar19) {
                local_124 = 1;
                bVar18 = false;
                goto LAB_000551a8;
              }
            }
            piVar14 = (int *)0x0;
            fclose(__stream);
            pcVar15 = "file format error";
            FUN_0001b250(pbVar8);
            goto LAB_00055070;
          }
        }
      }
LAB_0005510e:
      pcVar15 = "file format error";
      piVar14 = (int *)0x0;
      fclose(__stream);
    }
  }
LAB_00055070:
  if (param_3 != (undefined4 *)0x0) {
    *param_3 = pcVar15;
  }
LAB_0005507a:
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return piVar14;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0006f2a0();
}

