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

uchar * __regparm3 read_blob(FILE *fp,int nlines,int *bloblen)

{
  uchar *ptr;
  char *__s;
  size_t sVar1;
  int iVar2;
  int iVar3;
  char *atom;
  int local_2c;
  
  if (0x1554 < nlines) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("nlines < MAX_KEY_BLOB_LINES","sshpubk.c",0x24e,"read_blob");
  }
  ptr = (uchar *)safemalloc(nlines * 0x30,1);
  if (nlines < 1) {
    iVar3 = 0;
  }
  else {
    local_2c = 0;
    iVar3 = 0;
    do {
      __s = read_body(fp);
      if (__s == (char *)0x0) {
        safefree(ptr);
        return (uchar *)0x0;
      }
      sVar1 = strlen(__s);
      if (((sVar1 & 3) != 0) || (0x40 < sVar1)) {
        safefree(ptr);
        safefree(__s);
        return (uchar *)0x0;
      }
      if (sVar1 != 0) {
        atom = __s;
        do {
          iVar2 = base64_decode_atom(atom,ptr + iVar3);
          if (iVar2 == 0) {
            safefree(__s);
            safefree(ptr);
            return (uchar *)0x0;
          }
          iVar3 = iVar3 + iVar2;
          atom = atom + 4;
        } while (atom != __s + (sVar1 - 1 & 0xfffffffc) + 4);
      }
      safefree(__s);
      local_2c = local_2c + 1;
    } while (nlines != local_2c);
  }
  *bloblen = iVar3;
  return ptr;
}



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

int __regparm3 FUN_000540c0(undefined4 param_1,int param_2,int *param_3)

{
  int iVar1;
  char *__s;
  size_t sVar2;
  int iVar3;
  int iVar4;
  char *pcVar5;
  int local_2c;
  
  if (0x1554 < param_2) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("nlines < MAX_KEY_BLOB_LINES","sshpubk.c",0x24e,"read_blob");
  }
  iVar1 = FUN_0001a9b0(param_2 * 0x30,1);
  if (param_2 < 1) {
    iVar4 = 0;
  }
  else {
    local_2c = 0;
    iVar4 = 0;
    do {
      __s = (char *)FUN_00053fe0();
      if (__s == (char *)0x0) {
        FUN_0001b240(iVar1);
        return 0;
      }
      sVar2 = strlen(__s);
      if (((sVar2 & 3) != 0) || (0x40 < sVar2)) {
        FUN_0001b240(iVar1);
        FUN_0001b240(__s);
        return 0;
      }
      if (sVar2 != 0) {
        pcVar5 = __s;
        do {
          iVar3 = FUN_0001a610(pcVar5,iVar1 + iVar4);
          if (iVar3 == 0) {
            FUN_0001b240(__s);
            FUN_0001b240(iVar1);
            return 0;
          }
          iVar4 = iVar4 + iVar3;
          pcVar5 = pcVar5 + 4;
        } while (pcVar5 != __s + (sVar2 - 1 & 0xfffffffc) + 4);
      }
      FUN_0001b240(__s);
      local_2c = local_2c + 1;
    } while (param_2 != local_2c);
  }
  *param_3 = iVar4;
  return iVar1;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014970
ADD EBX,0x55cc7
SUB ESP,0x2c
MOV dword ptr [ESP + 0x18],EAX
MOV dword ptr [ESP + 0x14],EDX
MOV dword ptr [ESP + 0x1c],ECX
CMP EDX,0x1554
JG 0x00054208
SUB ESP,0x8
PUSH 0x1
MOV EDI,dword ptr [ESP + 0x20]
LEA EAX,[EDI + EDI*0x2]
SHL EAX,0x4
PUSH EAX
CALL 0x0001a9b0
ADD ESP,0x10
MOV ESI,EAX
TEST EDI,EDI
JLE 0x00054204
MOV dword ptr [ESP + 0x10],0x0
XOR EBP,EBP
MOV EAX,dword ptr [ESP + 0x18]
CALL 0x00053fe0
MOV dword ptr [ESP + 0xc],EAX
TEST EAX,EAX
JZ 0x000541f4
SUB ESP,0xc
PUSH dword ptr [ESP + 0x18]
CALL 0x00014470
ADD ESP,0x10
TEST AL,0x3
JNZ 0x000541da
CMP EAX,0x40
JA 0x000541da
TEST EAX,EAX
JZ 0x000541b0
MOV EDX,dword ptr [ESP + 0xc]
SUB EAX,0x1
AND EAX,0xfffffffc
LEA EAX,[EDX + EAX*0x1 + 0x4]
MOV EDI,EDX
MOV dword ptr [ESP + 0x8],EAX
JMP 0x00054173
ADD EBP,EAX
ADD EDI,0x4
CMP EDI,dword ptr [ESP + 0x8]
JZ 0x000541b0
SUB ESP,0x8
LEA EAX,[ESI + EBP*0x1]
PUSH EAX
PUSH EDI
CALL 0x0001a610
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00054168
SUB ESP,0xc
PUSH dword ptr [ESP + 0x18]
CALL 0x0001b240
MOV dword ptr [ESP],ESI
XOR ESI,ESI
CALL 0x0001b240
ADD ESP,0x10
ADD ESP,0x2c
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH dword ptr [ESP + 0x18]
CALL 0x0001b240
ADD dword ptr [ESP + 0x20],0x1
MOV EAX,dword ptr [ESP + 0x20]
ADD ESP,0x10
CMP dword ptr [ESP + 0x14],EAX
JNZ 0x00054116
MOV EAX,dword ptr [ESP + 0x1c]
MOV dword ptr [EAX],EBP
JMP 0x000541a0
SUB ESP,0xc
PUSH ESI
XOR ESI,ESI
CALL 0x0001b240
POP EAX
PUSH dword ptr [ESP + 0x18]
CALL 0x0001b240
ADD ESP,0x10
JMP 0x000541a0
SUB ESP,0xc
PUSH ESI
XOR ESI,ESI
CALL 0x0001b240
ADD ESP,0x10
JMP 0x000541a0
XOR EBP,EBP
JMP 0x000541d2
LEA EAX,[EBX + 0xfffd5588]
PUSH EAX
LEA EAX,[EBX + 0xfffd4ea9]
PUSH 0x24e
PUSH EAX
LEA EAX,[EBX + 0xfffd4eb3]
PUSH EAX
CALL 0x00014870
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 FUN_000540c0(undefined4 param_1,int param_2,int *param_3)\n\n{\n  int iVar1;\n  char *__s;\n  size_t sVar2;\n  int iVar3;\n  int iVar4;\n  char *pcVar5;\n  int local_2c;\n  \n  if (0x1554 < param_2) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("nlines < MAX_KEY_BLOB_LINES","sshpubk.c",0x24e,"read_blob");\n  }\n  iVar1 = FUN_0001a9b0(param_2 * 0x30,1);\n  if (param_2 < 1) {\n    iVar4 = 0;\n  }\n  else {\n    local_2c = 0;\n    iVar4 = 0;\n    do {\n      __s = (char *)FUN_00053fe0();\n      if (__s == (char *)0x0) {\n        FUN_0001b240(iVar1);\n        return 0;\n      }\n      sVar2 = strlen(__s);\n      if (((sVar2 & 3) != 0) || (0x40 < sVar2)) {\n        FUN_0001b240(iVar1);\n        FUN_0001b240(__s);\n        return 0;\n      }\n      if (sVar2 != 0) {\n        pcVar5 = __s;\n        do {\n          iVar3 = FUN_0001a610(pcVar5,iVar1 + iVar4);\n          if (iVar3 == 0) {\n            FUN_0001b240(__s);\n            FUN_0001b240(iVar1);\n            return 0;\n          }\n          iVar4 = iVar4 + iVar3;\n          pcVar5 = pcVar5 + 4;\n        } while (pcVar5 != __s + (sVar2 - 1 & 0xfffffffc) + 4);\n      }\n      FUN_0001b240(__s);\n      local_2c = local_2c + 1;\n    } while (param_2 != local_2c);\n  }\n  *param_3 = iVar4;\n  return iVar1;\n}\n\n" comment (function_definition "int __regparm3 FUN_000540c0(undefined4 param_1,int param_2,int *param_3)\n\n{\n  int iVar1;\n  char *__s;\n  size_t sVar2;\n  int iVar3;\n  int iVar4;\n  char *pcVar5;\n  int local_2c;\n  \n  if (0x1554 < param_2) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("nlines < MAX_KEY_BLOB_LINES","sshpubk.c",0x24e,"read_blob");\n  }\n  iVar1 = FUN_0001a9b0(param_2 * 0x30,1);\n  if (param_2 < 1) {\n    iVar4 = 0;\n  }\n  else {\n    local_2c = 0;\n    iVar4 = 0;\n    do {\n      __s = (char *)FUN_00053fe0();\n      if (__s == (char *)0x0) {\n        FUN_0001b240(iVar1);\n        return 0;\n      }\n      sVar2 = strlen(__s);\n      if (((sVar2 & 3) != 0) || (0x40 < sVar2)) {\n        FUN_0001b240(iVar1);\n        FUN_0001b240(__s);\n        return 0;\n      }\n      if (sVar2 != 0) {\n        pcVar5 = __s;\n        do {\n          iVar3 = FUN_0001a610(pcVar5,iVar1 + iVar4);\n          if (iVar3 == 0) {\n            FUN_0001b240(__s);\n            FUN_0001b240(iVar1);\n            return 0;\n          }\n          iVar4 = iVar4 + iVar3;\n          pcVar5 = pcVar5 + 4;\n        } while (pcVar5 != __s + (sVar2 - 1 & 0xfffffffc) + 4);\n      }\n      FUN_0001b240(__s);\n      local_2c = local_2c + 1;\n    } while (param_2 != local_2c);\n  }\n  *param_3 = iVar4;\n  return iVar1;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000540c0(undefined4 param_1,int param_2,int *param_3)" identifier (parameter_list "(undefined4 param_1,int param_2,int *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  char *__s;\n  size_t sVar2;\n  int iVar3;\n  int iVar4;\n  char *pcVar5;\n  int local_2c;\n  \n  if (0x1554 < param_2) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("nlines < MAX_KEY_BLOB_LINES","sshpubk.c",0x24e,"read_blob");\n  }\n  iVar1 = FUN_0001a9b0(param_2 * 0x30,1);\n  if (param_2 < 1) {\n    iVar4 = 0;\n  }\n  else {\n    local_2c = 0;\n    iVar4 = 0;\n    do {\n      __s = (char *)FUN_00053fe0();\n      if (__s == (char *)0x0) {\n        FUN_0001b240(iVar1);\n        return 0;\n      }\n      sVar2 = strlen(__s);\n      if (((sVar2 & 3) != 0) || (0x40 < sVar2)) {\n        FUN_0001b240(iVar1);\n        FUN_0001b240(__s);\n        return 0;\n      }\n      if (sVar2 != 0) {\n        pcVar5 = __s;\n        do {\n          iVar3 = FUN_0001a610(pcVar5,iVar1 + iVar4);\n          if (iVar3 == 0) {\n            FUN_0001b240(__s);\n            FUN_0001b240(iVar1);\n            return 0;\n          }\n          iVar4 = iVar4 + iVar3;\n          pcVar5 = pcVar5 + 4;\n        } while (pcVar5 != __s + (sVar2 - 1 & 0xfffffffc) + 4);\n      }\n      FUN_0001b240(__s);\n      local_2c = local_2c + 1;\n    } while (param_2 != local_2c);\n  }\n  *param_3 = iVar4;\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "int local_2c;" primitive_type identifier ;) (if_statement "if (0x1554 < param_2) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("nlines < MAX_KEY_BLOB_LINES","sshpubk.c",0x24e,"read_blob");\n  }" if (parenthesized_expression "(0x1554 < param_2)" ( (binary_expression "0x1554 < param_2" number_literal < identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("nlines < MAX_KEY_BLOB_LINES","sshpubk.c",0x24e,"read_blob");\n  }" { comment (expression_statement "__assert_fail("nlines < MAX_KEY_BLOB_LINES","sshpubk.c",0x24e,"read_blob");" (call_expression "__assert_fail("nlines < MAX_KEY_BLOB_LINES","sshpubk.c",0x24e,"read_blob")" identifier (argument_list "("nlines < MAX_KEY_BLOB_LINES","sshpubk.c",0x24e,"read_blob")" ( (string_literal ""nlines < MAX_KEY_BLOB_LINES"" " string_content ") , (string_literal ""sshpubk.c"" " string_content ") , number_literal , (string_literal ""read_blob"" " string_content ") ))) ;) })) (expression_statement "iVar1 = FUN_0001a9b0(param_2 * 0x30,1);" (assignment_expression "iVar1 = FUN_0001a9b0(param_2 * 0x30,1)" identifier = (call_expression "FUN_0001a9b0(param_2 * 0x30,1)" identifier (argument_list "(param_2 * 0x30,1)" ( (binary_expression "param_2 * 0x30" identifier * number_literal) , number_literal )))) ;) (if_statement "if (param_2 < 1) {\n    iVar4 = 0;\n  }\n  else {\n    local_2c = 0;\n    iVar4 = 0;\n    do {\n      __s = (char *)FUN_00053fe0();\n      if (__s == (char *)0x0) {\n        FUN_0001b240(iVar1);\n        return 0;\n      }\n      sVar2 = strlen(__s);\n      if (((sVar2 & 3) != 0) || (0x40 < sVar2)) {\n        FUN_0001b240(iVar1);\n        FUN_0001b240(__s);\n        return 0;\n      }\n      if (sVar2 != 0) {\n        pcVar5 = __s;\n        do {\n          iVar3 = FUN_0001a610(pcVar5,iVar1 + iVar4);\n          if (iVar3 == 0) {\n            FUN_0001b240(__s);\n            FUN_0001b240(iVar1);\n            return 0;\n          }\n          iVar4 = iVar4 + iVar3;\n          pcVar5 = pcVar5 + 4;\n        } while (pcVar5 != __s + (sVar2 - 1 & 0xfffffffc) + 4);\n      }\n      FUN_0001b240(__s);\n      local_2c = local_2c + 1;\n    } while (param_2 != local_2c);\n  }" if (parenthesized_expression "(param_2 < 1)" ( (binary_expression "param_2 < 1" identifier < number_literal) )) (compound_statement "{\n    iVar4 = 0;\n  }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    local_2c = 0;\n    iVar4 = 0;\n    do {\n      __s = (char *)FUN_00053fe0();\n      if (__s == (char *)0x0) {\n        FUN_0001b240(iVar1);\n        return 0;\n      }\n      sVar2 = strlen(__s);\n      if (((sVar2 & 3) != 0) || (0x40 < sVar2)) {\n        FUN_0001b240(iVar1);\n        FUN_0001b240(__s);\n        return 0;\n      }\n      if (sVar2 != 0) {\n        pcVar5 = __s;\n        do {\n          iVar3 = FUN_0001a610(pcVar5,iVar1 + iVar4);\n          if (iVar3 == 0) {\n            FUN_0001b240(__s);\n            FUN_0001b240(iVar1);\n            return 0;\n          }\n          iVar4 = iVar4 + iVar3;\n          pcVar5 = pcVar5 + 4;\n        } while (pcVar5 != __s + (sVar2 - 1 & 0xfffffffc) + 4);\n      }\n      FUN_0001b240(__s);\n      local_2c = local_2c + 1;\n    } while (param_2 != local_2c);\n  }" else (compound_statement "{\n    local_2c = 0;\n    iVar4 = 0;\n    do {\n      __s = (char *)FUN_00053fe0();\n      if (__s == (char *)0x0) {\n        FUN_0001b240(iVar1);\n        return 0;\n      }\n      sVar2 = strlen(__s);\n      if (((sVar2 & 3) != 0) || (0x40 < sVar2)) {\n        FUN_0001b240(iVar1);\n        FUN_0001b240(__s);\n        return 0;\n      }\n      if (sVar2 != 0) {\n        pcVar5 = __s;\n        do {\n          iVar3 = FUN_0001a610(pcVar5,iVar1 + iVar4);\n          if (iVar3 == 0) {\n            FUN_0001b240(__s);\n            FUN_0001b240(iVar1);\n            return 0;\n          }\n          iVar4 = iVar4 + iVar3;\n          pcVar5 = pcVar5 + 4;\n        } while (pcVar5 != __s + (sVar2 - 1 & 0xfffffffc) + 4);\n      }\n      FUN_0001b240(__s);\n      local_2c = local_2c + 1;\n    } while (param_2 != local_2c);\n  }" { (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" identifier = number_literal) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n      __s = (char *)FUN_00053fe0();\n      if (__s == (char *)0x0) {\n        FUN_0001b240(iVar1);\n        return 0;\n      }\n      sVar2 = strlen(__s);\n      if (((sVar2 & 3) != 0) || (0x40 < sVar2)) {\n        FUN_0001b240(iVar1);\n        FUN_0001b240(__s);\n        return 0;\n      }\n      if (sVar2 != 0) {\n        pcVar5 = __s;\n        do {\n          iVar3 = FUN_0001a610(pcVar5,iVar1 + iVar4);\n          if (iVar3 == 0) {\n            FUN_0001b240(__s);\n            FUN_0001b240(iVar1);\n            return 0;\n          }\n          iVar4 = iVar4 + iVar3;\n          pcVar5 = pcVar5 + 4;\n        } while (pcVar5 != __s + (sVar2 - 1 & 0xfffffffc) + 4);\n      }\n      FUN_0001b240(__s);\n      local_2c = local_2c + 1;\n    } while (param_2 != local_2c);" do (compound_statement "{\n      __s = (char *)FUN_00053fe0();\n      if (__s == (char *)0x0) {\n        FUN_0001b240(iVar1);\n        return 0;\n      }\n      sVar2 = strlen(__s);\n      if (((sVar2 & 3) != 0) || (0x40 < sVar2)) {\n        FUN_0001b240(iVar1);\n        FUN_0001b240(__s);\n        return 0;\n      }\n      if (sVar2 != 0) {\n        pcVar5 = __s;\n        do {\n          iVar3 = FUN_0001a610(pcVar5,iVar1 + iVar4);\n          if (iVar3 == 0) {\n            FUN_0001b240(__s);\n            FUN_0001b240(iVar1);\n            return 0;\n          }\n          iVar4 = iVar4 + iVar3;\n          pcVar5 = pcVar5 + 4;\n        } while (pcVar5 != __s + (sVar2 - 1 & 0xfffffffc) + 4);\n      }\n      FUN_0001b240(__s);\n      local_2c = local_2c + 1;\n    }" { (expression_statement "__s = (char *)FUN_00053fe0();" (assignment_expression "__s = (char *)FUN_00053fe0()" identifier = (cast_expression "(char *)FUN_00053fe0()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00053fe0()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (__s == (char *)0x0) {\n        FUN_0001b240(iVar1);\n        return 0;\n      }" if (parenthesized_expression "(__s == (char *)0x0)" ( (binary_expression "__s == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        FUN_0001b240(iVar1);\n        return 0;\n      }" { (expression_statement "FUN_0001b240(iVar1);" (call_expression "FUN_0001b240(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "sVar2 = strlen(__s);" (assignment_expression "sVar2 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (if_statement "if (((sVar2 & 3) != 0) || (0x40 < sVar2)) {\n        FUN_0001b240(iVar1);\n        FUN_0001b240(__s);\n        return 0;\n      }" if (parenthesized_expression "(((sVar2 & 3) != 0) || (0x40 < sVar2))" ( (binary_expression "((sVar2 & 3) != 0) || (0x40 < sVar2)" (parenthesized_expression "((sVar2 & 3) != 0)" ( (binary_expression "(sVar2 & 3) != 0" (parenthesized_expression "(sVar2 & 3)" ( (binary_expression "sVar2 & 3" identifier & number_literal) )) != number_literal) )) || (parenthesized_expression "(0x40 < sVar2)" ( (binary_expression "0x40 < sVar2" number_literal < identifier) ))) )) (compound_statement "{\n        FUN_0001b240(iVar1);\n        FUN_0001b240(__s);\n        return 0;\n      }" { (expression_statement "FUN_0001b240(iVar1);" (call_expression "FUN_0001b240(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "FUN_0001b240(__s);" (call_expression "FUN_0001b240(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (sVar2 != 0) {\n        pcVar5 = __s;\n        do {\n          iVar3 = FUN_0001a610(pcVar5,iVar1 + iVar4);\n          if (iVar3 == 0) {\n            FUN_0001b240(__s);\n            FUN_0001b240(iVar1);\n            return 0;\n          }\n          iVar4 = iVar4 + iVar3;\n          pcVar5 = pcVar5 + 4;\n        } while (pcVar5 != __s + (sVar2 - 1 & 0xfffffffc) + 4);\n      }" if (parenthesized_expression "(sVar2 != 0)" ( (binary_expression "sVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        pcVar5 = __s;\n        do {\n          iVar3 = FUN_0001a610(pcVar5,iVar1 + iVar4);\n          if (iVar3 == 0) {\n            FUN_0001b240(__s);\n            FUN_0001b240(iVar1);\n            return 0;\n          }\n          iVar4 = iVar4 + iVar3;\n          pcVar5 = pcVar5 + 4;\n        } while (pcVar5 != __s + (sVar2 - 1 & 0xfffffffc) + 4);\n      }" { (expression_statement "pcVar5 = __s;" (assignment_expression "pcVar5 = __s" identifier = identifier) ;) (do_statement "do {\n          iVar3 = FUN_0001a610(pcVar5,iVar1 + iVar4);\n          if (iVar3 == 0) {\n            FUN_0001b240(__s);\n            FUN_0001b240(iVar1);\n            return 0;\n          }\n          iVar4 = iVar4 + iVar3;\n          pcVar5 = pcVar5 + 4;\n        } while (pcVar5 != __s + (sVar2 - 1 & 0xfffffffc) + 4);" do (compound_statement "{\n          iVar3 = FUN_0001a610(pcVar5,iVar1 + iVar4);\n          if (iVar3 == 0) {\n            FUN_0001b240(__s);\n            FUN_0001b240(iVar1);\n            return 0;\n          }\n          iVar4 = iVar4 + iVar3;\n          pcVar5 = pcVar5 + 4;\n        }" { (expression_statement "iVar3 = FUN_0001a610(pcVar5,iVar1 + iVar4);" (assignment_expression "iVar3 = FUN_0001a610(pcVar5,iVar1 + iVar4)" identifier = (call_expression "FUN_0001a610(pcVar5,iVar1 + iVar4)" identifier (argument_list "(pcVar5,iVar1 + iVar4)" ( identifier , (binary_expression "iVar1 + iVar4" identifier + identifier) )))) ;) (if_statement "if (iVar3 == 0) {\n            FUN_0001b240(__s);\n            FUN_0001b240(iVar1);\n            return 0;\n          }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n            FUN_0001b240(__s);\n            FUN_0001b240(iVar1);\n            return 0;\n          }" { (expression_statement "FUN_0001b240(__s);" (call_expression "FUN_0001b240(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (expression_statement "FUN_0001b240(iVar1);" (call_expression "FUN_0001b240(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar4 = iVar4 + iVar3;" (assignment_expression "iVar4 = iVar4 + iVar3" identifier = (binary_expression "iVar4 + iVar3" identifier + identifier)) ;) (expression_statement "pcVar5 = pcVar5 + 4;" (assignment_expression "pcVar5 = pcVar5 + 4" identifier = (binary_expression "pcVar5 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(pcVar5 != __s + (sVar2 - 1 & 0xfffffffc) + 4)" ( (binary_expression "pcVar5 != __s + (sVar2 - 1 & 0xfffffffc) + 4" identifier != (binary_expression "__s + (sVar2 - 1 & 0xfffffffc) + 4" (binary_expression "__s + (sVar2 - 1 & 0xfffffffc)" identifier + (parenthesized_expression "(sVar2 - 1 & 0xfffffffc)" ( (binary_expression "sVar2 - 1 & 0xfffffffc" (binary_expression "sVar2 - 1" identifier - number_literal) & number_literal) ))) + number_literal)) )) ;) })) (expression_statement "FUN_0001b240(__s);" (call_expression "FUN_0001b240(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (expression_statement "local_2c = local_2c + 1;" (assignment_expression "local_2c = local_2c + 1" identifier = (binary_expression "local_2c + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(param_2 != local_2c)" ( (binary_expression "param_2 != local_2c" identifier != identifier) )) ;) }))) (expression_statement "*param_3 = iVar4;" (assignment_expression "*param_3 = iVar4" (pointer_expression "*param_3" * identifier) = identifier) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nuchar * __regparm3 read_blob(FILE *fp,int nlines,int *bloblen)\n\n{\n  uchar *ptr;\n  char *__s;\n  size_t sVar1;\n  int iVar2;\n  int iVar3;\n  char *atom;\n  int local_2c;\n  \n  if (0x1554 < nlines) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("nlines < MAX_KEY_BLOB_LINES","sshpubk.c",0x24e,"read_blob");\n  }\n  ptr = (uchar *)safemalloc(nlines * 0x30,1);\n  if (nlines < 1) {\n    iVar3 = 0;\n  }\n  else {\n    local_2c = 0;\n    iVar3 = 0;\n    do {\n      __s = read_body(fp);\n      if (__s == (char *)0x0) {\n        safefree(ptr);\n        return (uchar *)0x0;\n      }\n      sVar1 = strlen(__s);\n      if (((sVar1 & 3) != 0) || (0x40 < sVar1)) {\n        safefree(ptr);\n        safefree(__s);\n        return (uchar *)0x0;\n      }\n      if (sVar1 != 0) {\n        atom = __s;\n        do {\n          iVar2 = base64_decode_atom(atom,ptr + iVar3);\n          if (iVar2 == 0) {\n            safefree(__s);\n            safefree(ptr);\n            return (uchar *)0x0;\n          }\n          iVar3 = iVar3 + iVar2;\n          atom = atom + 4;\n        } while (atom != __s + (sVar1 - 1 & 0xfffffffc) + 4);\n      }\n      safefree(__s);\n      local_2c = local_2c + 1;\n    } while (nlines != local_2c);\n  }\n  *bloblen = iVar3;\n  return ptr;\n}\n\n" comment (ERROR "uchar * __regparm3 read_blob(FILE *fp,int nlines,int *bloblen)" (binary_expression "uchar * __regparm3 read_blob(FILE *fp,int nlines,int *bloblen)" identifier * (ERROR "__regparm3" identifier) (call_expression "read_blob(FILE *fp,int nlines,int *bloblen)" identifier (argument_list "(FILE *fp,int nlines,int *bloblen)" ( (binary_expression "FILE *fp" identifier * identifier) , (ERROR "int" identifier) identifier , (binary_expression "int *bloblen" identifier * identifier) ))))) (compound_statement "{\n  uchar *ptr;\n  char *__s;\n  size_t sVar1;\n  int iVar2;\n  int iVar3;\n  char *atom;\n  int local_2c;\n  \n  if (0x1554 < nlines) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("nlines < MAX_KEY_BLOB_LINES","sshpubk.c",0x24e,"read_blob");\n  }\n  ptr = (uchar *)safemalloc(nlines * 0x30,1);\n  if (nlines < 1) {\n    iVar3 = 0;\n  }\n  else {\n    local_2c = 0;\n    iVar3 = 0;\n    do {\n      __s = read_body(fp);\n      if (__s == (char *)0x0) {\n        safefree(ptr);\n        return (uchar *)0x0;\n      }\n      sVar1 = strlen(__s);\n      if (((sVar1 & 3) != 0) || (0x40 < sVar1)) {\n        safefree(ptr);\n        safefree(__s);\n        return (uchar *)0x0;\n      }\n      if (sVar1 != 0) {\n        atom = __s;\n        do {\n          iVar2 = base64_decode_atom(atom,ptr + iVar3);\n          if (iVar2 == 0) {\n            safefree(__s);\n            safefree(ptr);\n            return (uchar *)0x0;\n          }\n          iVar3 = iVar3 + iVar2;\n          atom = atom + 4;\n        } while (atom != __s + (sVar1 - 1 & 0xfffffffc) + 4);\n      }\n      safefree(__s);\n      local_2c = local_2c + 1;\n    } while (nlines != local_2c);\n  }\n  *bloblen = iVar3;\n  return ptr;\n}" { (declaration "uchar *ptr;" type_identifier (pointer_declarator "*ptr" * identifier) ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "size_t sVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char *atom;" primitive_type (pointer_declarator "*atom" * identifier) ;) (declaration "int local_2c;" primitive_type identifier ;) (if_statement "if (0x1554 < nlines) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("nlines < MAX_KEY_BLOB_LINES","sshpubk.c",0x24e,"read_blob");\n  }" if (parenthesized_expression "(0x1554 < nlines)" ( (binary_expression "0x1554 < nlines" number_literal < identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("nlines < MAX_KEY_BLOB_LINES","sshpubk.c",0x24e,"read_blob");\n  }" { comment (expression_statement "__assert_fail("nlines < MAX_KEY_BLOB_LINES","sshpubk.c",0x24e,"read_blob");" (call_expression "__assert_fail("nlines < MAX_KEY_BLOB_LINES","sshpubk.c",0x24e,"read_blob")" identifier (argument_list "("nlines < MAX_KEY_BLOB_LINES","sshpubk.c",0x24e,"read_blob")" ( (string_literal ""nlines < MAX_KEY_BLOB_LINES"" " string_content ") , (string_literal ""sshpubk.c"" " string_content ") , number_literal , (string_literal ""read_blob"" " string_content ") ))) ;) })) (expression_statement "ptr = (uchar *)safemalloc(nlines * 0x30,1);" (assignment_expression "ptr = (uchar *)safemalloc(nlines * 0x30,1)" identifier = (cast_expression "(uchar *)safemalloc(nlines * 0x30,1)" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "safemalloc(nlines * 0x30,1)" identifier (argument_list "(nlines * 0x30,1)" ( (binary_expression "nlines * 0x30" identifier * number_literal) , number_literal ))))) ;) (if_statement "if (nlines < 1) {\n    iVar3 = 0;\n  }\n  else {\n    local_2c = 0;\n    iVar3 = 0;\n    do {\n      __s = read_body(fp);\n      if (__s == (char *)0x0) {\n        safefree(ptr);\n        return (uchar *)0x0;\n      }\n      sVar1 = strlen(__s);\n      if (((sVar1 & 3) != 0) || (0x40 < sVar1)) {\n        safefree(ptr);\n        safefree(__s);\n        return (uchar *)0x0;\n      }\n      if (sVar1 != 0) {\n        atom = __s;\n        do {\n          iVar2 = base64_decode_atom(atom,ptr + iVar3);\n          if (iVar2 == 0) {\n            safefree(__s);\n            safefree(ptr);\n            return (uchar *)0x0;\n          }\n          iVar3 = iVar3 + iVar2;\n          atom = atom + 4;\n        } while (atom != __s + (sVar1 - 1 & 0xfffffffc) + 4);\n      }\n      safefree(__s);\n      local_2c = local_2c + 1;\n    } while (nlines != local_2c);\n  }" if (parenthesized_expression "(nlines < 1)" ( (binary_expression "nlines < 1" identifier < number_literal) )) (compound_statement "{\n    iVar3 = 0;\n  }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    local_2c = 0;\n    iVar3 = 0;\n    do {\n      __s = read_body(fp);\n      if (__s == (char *)0x0) {\n        safefree(ptr);\n        return (uchar *)0x0;\n      }\n      sVar1 = strlen(__s);\n      if (((sVar1 & 3) != 0) || (0x40 < sVar1)) {\n        safefree(ptr);\n        safefree(__s);\n        return (uchar *)0x0;\n      }\n      if (sVar1 != 0) {\n        atom = __s;\n        do {\n          iVar2 = base64_decode_atom(atom,ptr + iVar3);\n          if (iVar2 == 0) {\n            safefree(__s);\n            safefree(ptr);\n            return (uchar *)0x0;\n          }\n          iVar3 = iVar3 + iVar2;\n          atom = atom + 4;\n        } while (atom != __s + (sVar1 - 1 & 0xfffffffc) + 4);\n      }\n      safefree(__s);\n      local_2c = local_2c + 1;\n    } while (nlines != local_2c);\n  }" else (compound_statement "{\n    local_2c = 0;\n    iVar3 = 0;\n    do {\n      __s = read_body(fp);\n      if (__s == (char *)0x0) {\n        safefree(ptr);\n        return (uchar *)0x0;\n      }\n      sVar1 = strlen(__s);\n      if (((sVar1 & 3) != 0) || (0x40 < sVar1)) {\n        safefree(ptr);\n        safefree(__s);\n        return (uchar *)0x0;\n      }\n      if (sVar1 != 0) {\n        atom = __s;\n        do {\n          iVar2 = base64_decode_atom(atom,ptr + iVar3);\n          if (iVar2 == 0) {\n            safefree(__s);\n            safefree(ptr);\n            return (uchar *)0x0;\n          }\n          iVar3 = iVar3 + iVar2;\n          atom = atom + 4;\n        } while (atom != __s + (sVar1 - 1 & 0xfffffffc) + 4);\n      }\n      safefree(__s);\n      local_2c = local_2c + 1;\n    } while (nlines != local_2c);\n  }" { (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" identifier = number_literal) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n      __s = read_body(fp);\n      if (__s == (char *)0x0) {\n        safefree(ptr);\n        return (uchar *)0x0;\n      }\n      sVar1 = strlen(__s);\n      if (((sVar1 & 3) != 0) || (0x40 < sVar1)) {\n        safefree(ptr);\n        safefree(__s);\n        return (uchar *)0x0;\n      }\n      if (sVar1 != 0) {\n        atom = __s;\n        do {\n          iVar2 = base64_decode_atom(atom,ptr + iVar3);\n          if (iVar2 == 0) {\n            safefree(__s);\n            safefree(ptr);\n            return (uchar *)0x0;\n          }\n          iVar3 = iVar3 + iVar2;\n          atom = atom + 4;\n        } while (atom != __s + (sVar1 - 1 & 0xfffffffc) + 4);\n      }\n      safefree(__s);\n      local_2c = local_2c + 1;\n    } while (nlines != local_2c);" do (compound_statement "{\n      __s = read_body(fp);\n      if (__s == (char *)0x0) {\n        safefree(ptr);\n        return (uchar *)0x0;\n      }\n      sVar1 = strlen(__s);\n      if (((sVar1 & 3) != 0) || (0x40 < sVar1)) {\n        safefree(ptr);\n        safefree(__s);\n        return (uchar *)0x0;\n      }\n      if (sVar1 != 0) {\n        atom = __s;\n        do {\n          iVar2 = base64_decode_atom(atom,ptr + iVar3);\n          if (iVar2 == 0) {\n            safefree(__s);\n            safefree(ptr);\n            return (uchar *)0x0;\n          }\n          iVar3 = iVar3 + iVar2;\n          atom = atom + 4;\n        } while (atom != __s + (sVar1 - 1 & 0xfffffffc) + 4);\n      }\n      safefree(__s);\n      local_2c = local_2c + 1;\n    }" { (expression_statement "__s = read_body(fp);" (assignment_expression "__s = read_body(fp)" identifier = (call_expression "read_body(fp)" identifier (argument_list "(fp)" ( identifier )))) ;) (if_statement "if (__s == (char *)0x0) {\n        safefree(ptr);\n        return (uchar *)0x0;\n      }" if (parenthesized_expression "(__s == (char *)0x0)" ( (binary_expression "__s == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        safefree(ptr);\n        return (uchar *)0x0;\n      }" { (expression_statement "safefree(ptr);" (call_expression "safefree(ptr)" identifier (argument_list "(ptr)" ( identifier ))) ;) (return_statement "return (uchar *)0x0;" return (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "sVar1 = strlen(__s);" (assignment_expression "sVar1 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (if_statement "if (((sVar1 & 3) != 0) || (0x40 < sVar1)) {\n        safefree(ptr);\n        safefree(__s);\n        return (uchar *)0x0;\n      }" if (parenthesized_expression "(((sVar1 & 3) != 0) || (0x40 < sVar1))" ( (binary_expression "((sVar1 & 3) != 0) || (0x40 < sVar1)" (parenthesized_expression "((sVar1 & 3) != 0)" ( (binary_expression "(sVar1 & 3) != 0" (parenthesized_expression "(sVar1 & 3)" ( (binary_expression "sVar1 & 3" identifier & number_literal) )) != number_literal) )) || (parenthesized_expression "(0x40 < sVar1)" ( (binary_expression "0x40 < sVar1" number_literal < identifier) ))) )) (compound_statement "{\n        safefree(ptr);\n        safefree(__s);\n        return (uchar *)0x0;\n      }" { (expression_statement "safefree(ptr);" (call_expression "safefree(ptr)" identifier (argument_list "(ptr)" ( identifier ))) ;) (expression_statement "safefree(__s);" (call_expression "safefree(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (return_statement "return (uchar *)0x0;" return (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (if_statement "if (sVar1 != 0) {\n        atom = __s;\n        do {\n          iVar2 = base64_decode_atom(atom,ptr + iVar3);\n          if (iVar2 == 0) {\n            safefree(__s);\n            safefree(ptr);\n            return (uchar *)0x0;\n          }\n          iVar3 = iVar3 + iVar2;\n          atom = atom + 4;\n        } while (atom != __s + (sVar1 - 1 & 0xfffffffc) + 4);\n      }" if (parenthesized_expression "(sVar1 != 0)" ( (binary_expression "sVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        atom = __s;\n        do {\n          iVar2 = base64_decode_atom(atom,ptr + iVar3);\n          if (iVar2 == 0) {\n            safefree(__s);\n            safefree(ptr);\n            return (uchar *)0x0;\n          }\n          iVar3 = iVar3 + iVar2;\n          atom = atom + 4;\n        } while (atom != __s + (sVar1 - 1 & 0xfffffffc) + 4);\n      }" { (expression_statement "atom = __s;" (assignment_expression "atom = __s" identifier = identifier) ;) (do_statement "do {\n          iVar2 = base64_decode_atom(atom,ptr + iVar3);\n          if (iVar2 == 0) {\n            safefree(__s);\n            safefree(ptr);\n            return (uchar *)0x0;\n          }\n          iVar3 = iVar3 + iVar2;\n          atom = atom + 4;\n        } while (atom != __s + (sVar1 - 1 & 0xfffffffc) + 4);" do (compound_statement "{\n          iVar2 = base64_decode_atom(atom,ptr + iVar3);\n          if (iVar2 == 0) {\n            safefree(__s);\n            safefree(ptr);\n            return (uchar *)0x0;\n          }\n          iVar3 = iVar3 + iVar2;\n          atom = atom + 4;\n        }" { (expression_statement "iVar2 = base64_decode_atom(atom,ptr + iVar3);" (assignment_expression "iVar2 = base64_decode_atom(atom,ptr + iVar3)" identifier = (call_expression "base64_decode_atom(atom,ptr + iVar3)" identifier (argument_list "(atom,ptr + iVar3)" ( identifier , (binary_expression "ptr + iVar3" identifier + identifier) )))) ;) (if_statement "if (iVar2 == 0) {\n            safefree(__s);\n            safefree(ptr);\n            return (uchar *)0x0;\n          }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n            safefree(__s);\n            safefree(ptr);\n            return (uchar *)0x0;\n          }" { (expression_statement "safefree(__s);" (call_expression "safefree(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (expression_statement "safefree(ptr);" (call_expression "safefree(ptr)" identifier (argument_list "(ptr)" ( identifier ))) ;) (return_statement "return (uchar *)0x0;" return (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "iVar3 = iVar3 + iVar2;" (assignment_expression "iVar3 = iVar3 + iVar2" identifier = (binary_expression "iVar3 + iVar2" identifier + identifier)) ;) (expression_statement "atom = atom + 4;" (assignment_expression "atom = atom + 4" identifier = (binary_expression "atom + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(atom != __s + (sVar1 - 1 & 0xfffffffc) + 4)" ( (binary_expression "atom != __s + (sVar1 - 1 & 0xfffffffc) + 4" identifier != (binary_expression "__s + (sVar1 - 1 & 0xfffffffc) + 4" (binary_expression "__s + (sVar1 - 1 & 0xfffffffc)" identifier + (parenthesized_expression "(sVar1 - 1 & 0xfffffffc)" ( (binary_expression "sVar1 - 1 & 0xfffffffc" (binary_expression "sVar1 - 1" identifier - number_literal) & number_literal) ))) + number_literal)) )) ;) })) (expression_statement "safefree(__s);" (call_expression "safefree(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (expression_statement "local_2c = local_2c + 1;" (assignment_expression "local_2c = local_2c + 1" identifier = (binary_expression "local_2c + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(nlines != local_2c)" ( (binary_expression "nlines != local_2c" identifier != identifier) )) ;) }))) (expression_statement "*bloblen = iVar3;" (assignment_expression "*bloblen = iVar3" (pointer_expression "*bloblen" * identifier) = identifier) ;) (return_statement "return ptr;" return identifier ;) }))
(translation_unit "int __regparm3 FUN_000540c0(undefined4 param_1,int param_2,int *param_3)\n\n{\n  int iVar1;\n  char *__s;\n  size_t sVar2;\n  int iVar3;\n  int iVar4;\n  char *pcVar5;\n  int local_2c;\n  \n  if (0x1554 < param_2) {\n                    \n    __assert_fail("nlines < MAX_KEY_BLOB_LINES","sshpubk.c",0x24e,"read_blob");\n  }\n  iVar1 = FUN_0001a9b0(param_2 * 0x30,1);\n  if (param_2 < 1) {\n    iVar4 = 0;\n  }\n  else {\n    local_2c = 0;\n    iVar4 = 0;\n    do {\n      __s = (char *)FUN_00053fe0();\n      if (__s == (char *)0x0) {\n        FUN_0001b240(iVar1);\n        return 0;\n      }\n      sVar2 = strlen(__s);\n      if (((sVar2 & 3) != 0) || (0x40 < sVar2)) {\n        FUN_0001b240(iVar1);\n        FUN_0001b240(__s);\n        return 0;\n      }\n      if (sVar2 != 0) {\n        pcVar5 = __s;\n        do {\n          iVar3 = FUN_0001a610(pcVar5,iVar1 + iVar4);\n          if (iVar3 == 0) {\n            FUN_0001b240(__s);\n            FUN_0001b240(iVar1);\n            return 0;\n          }\n          iVar4 = iVar4 + iVar3;\n          pcVar5 = pcVar5 + 4;\n        } while (pcVar5 != __s + (sVar2 - 1 & 0xfffffffc) + 4);\n      }\n      FUN_0001b240(__s);\n      local_2c = local_2c + 1;\n    } while (param_2 != local_2c);\n  }\n  *param_3 = iVar4;\n  return iVar1;\n}\n\n" (function_definition "int __regparm3 FUN_000540c0(undefined4 param_1,int param_2,int *param_3)\n\n{\n  int iVar1;\n  char *__s;\n  size_t sVar2;\n  int iVar3;\n  int iVar4;\n  char *pcVar5;\n  int local_2c;\n  \n  if (0x1554 < param_2) {\n                    \n    __assert_fail("nlines < MAX_KEY_BLOB_LINES","sshpubk.c",0x24e,"read_blob");\n  }\n  iVar1 = FUN_0001a9b0(param_2 * 0x30,1);\n  if (param_2 < 1) {\n    iVar4 = 0;\n  }\n  else {\n    local_2c = 0;\n    iVar4 = 0;\n    do {\n      __s = (char *)FUN_00053fe0();\n      if (__s == (char *)0x0) {\n        FUN_0001b240(iVar1);\n        return 0;\n      }\n      sVar2 = strlen(__s);\n      if (((sVar2 & 3) != 0) || (0x40 < sVar2)) {\n        FUN_0001b240(iVar1);\n        FUN_0001b240(__s);\n        return 0;\n      }\n      if (sVar2 != 0) {\n        pcVar5 = __s;\n        do {\n          iVar3 = FUN_0001a610(pcVar5,iVar1 + iVar4);\n          if (iVar3 == 0) {\n            FUN_0001b240(__s);\n            FUN_0001b240(iVar1);\n            return 0;\n          }\n          iVar4 = iVar4 + iVar3;\n          pcVar5 = pcVar5 + 4;\n        } while (pcVar5 != __s + (sVar2 - 1 & 0xfffffffc) + 4);\n      }\n      FUN_0001b240(__s);\n      local_2c = local_2c + 1;\n    } while (param_2 != local_2c);\n  }\n  *param_3 = iVar4;\n  return iVar1;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000540c0(undefined4 param_1,int param_2,int *param_3)" identifier (parameter_list "(undefined4 param_1,int param_2,int *param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  char *__s;\n  size_t sVar2;\n  int iVar3;\n  int iVar4;\n  char *pcVar5;\n  int local_2c;\n  \n  if (0x1554 < param_2) {\n                    \n    __assert_fail("nlines < MAX_KEY_BLOB_LINES","sshpubk.c",0x24e,"read_blob");\n  }\n  iVar1 = FUN_0001a9b0(param_2 * 0x30,1);\n  if (param_2 < 1) {\n    iVar4 = 0;\n  }\n  else {\n    local_2c = 0;\n    iVar4 = 0;\n    do {\n      __s = (char *)FUN_00053fe0();\n      if (__s == (char *)0x0) {\n        FUN_0001b240(iVar1);\n        return 0;\n      }\n      sVar2 = strlen(__s);\n      if (((sVar2 & 3) != 0) || (0x40 < sVar2)) {\n        FUN_0001b240(iVar1);\n        FUN_0001b240(__s);\n        return 0;\n      }\n      if (sVar2 != 0) {\n        pcVar5 = __s;\n        do {\n          iVar3 = FUN_0001a610(pcVar5,iVar1 + iVar4);\n          if (iVar3 == 0) {\n            FUN_0001b240(__s);\n            FUN_0001b240(iVar1);\n            return 0;\n          }\n          iVar4 = iVar4 + iVar3;\n          pcVar5 = pcVar5 + 4;\n        } while (pcVar5 != __s + (sVar2 - 1 & 0xfffffffc) + 4);\n      }\n      FUN_0001b240(__s);\n      local_2c = local_2c + 1;\n    } while (param_2 != local_2c);\n  }\n  *param_3 = iVar4;\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "size_t sVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "int local_2c;" primitive_type identifier ;) (if_statement "if (0x1554 < param_2) {\n                    \n    __assert_fail("nlines < MAX_KEY_BLOB_LINES","sshpubk.c",0x24e,"read_blob");\n  }" if (parenthesized_expression "(0x1554 < param_2)" ( (binary_expression "0x1554 < param_2" number_literal < identifier) )) (compound_statement "{\n                    \n    __assert_fail("nlines < MAX_KEY_BLOB_LINES","sshpubk.c",0x24e,"read_blob");\n  }" { (expression_statement "__assert_fail("nlines < MAX_KEY_BLOB_LINES","sshpubk.c",0x24e,"read_blob");" (call_expression "__assert_fail("nlines < MAX_KEY_BLOB_LINES","sshpubk.c",0x24e,"read_blob")" identifier (argument_list "("nlines < MAX_KEY_BLOB_LINES","sshpubk.c",0x24e,"read_blob")" ( (string_literal ""nlines < MAX_KEY_BLOB_LINES"" " string_content ") , (string_literal ""sshpubk.c"" " string_content ") , number_literal , (string_literal ""read_blob"" " string_content ") ))) ;) })) (expression_statement "iVar1 = FUN_0001a9b0(param_2 * 0x30,1);" (assignment_expression "iVar1 = FUN_0001a9b0(param_2 * 0x30,1)" identifier = (call_expression "FUN_0001a9b0(param_2 * 0x30,1)" identifier (argument_list "(param_2 * 0x30,1)" ( (binary_expression "param_2 * 0x30" identifier * number_literal) , number_literal )))) ;) (if_statement "if (param_2 < 1) {\n    iVar4 = 0;\n  }\n  else {\n    local_2c = 0;\n    iVar4 = 0;\n    do {\n      __s = (char *)FUN_00053fe0();\n      if (__s == (char *)0x0) {\n        FUN_0001b240(iVar1);\n        return 0;\n      }\n      sVar2 = strlen(__s);\n      if (((sVar2 & 3) != 0) || (0x40 < sVar2)) {\n        FUN_0001b240(iVar1);\n        FUN_0001b240(__s);\n        return 0;\n      }\n      if (sVar2 != 0) {\n        pcVar5 = __s;\n        do {\n          iVar3 = FUN_0001a610(pcVar5,iVar1 + iVar4);\n          if (iVar3 == 0) {\n            FUN_0001b240(__s);\n            FUN_0001b240(iVar1);\n            return 0;\n          }\n          iVar4 = iVar4 + iVar3;\n          pcVar5 = pcVar5 + 4;\n        } while (pcVar5 != __s + (sVar2 - 1 & 0xfffffffc) + 4);\n      }\n      FUN_0001b240(__s);\n      local_2c = local_2c + 1;\n    } while (param_2 != local_2c);\n  }" if (parenthesized_expression "(param_2 < 1)" ( (binary_expression "param_2 < 1" identifier < number_literal) )) (compound_statement "{\n    iVar4 = 0;\n  }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    local_2c = 0;\n    iVar4 = 0;\n    do {\n      __s = (char *)FUN_00053fe0();\n      if (__s == (char *)0x0) {\n        FUN_0001b240(iVar1);\n        return 0;\n      }\n      sVar2 = strlen(__s);\n      if (((sVar2 & 3) != 0) || (0x40 < sVar2)) {\n        FUN_0001b240(iVar1);\n        FUN_0001b240(__s);\n        return 0;\n      }\n      if (sVar2 != 0) {\n        pcVar5 = __s;\n        do {\n          iVar3 = FUN_0001a610(pcVar5,iVar1 + iVar4);\n          if (iVar3 == 0) {\n            FUN_0001b240(__s);\n            FUN_0001b240(iVar1);\n            return 0;\n          }\n          iVar4 = iVar4 + iVar3;\n          pcVar5 = pcVar5 + 4;\n        } while (pcVar5 != __s + (sVar2 - 1 & 0xfffffffc) + 4);\n      }\n      FUN_0001b240(__s);\n      local_2c = local_2c + 1;\n    } while (param_2 != local_2c);\n  }" else (compound_statement "{\n    local_2c = 0;\n    iVar4 = 0;\n    do {\n      __s = (char *)FUN_00053fe0();\n      if (__s == (char *)0x0) {\n        FUN_0001b240(iVar1);\n        return 0;\n      }\n      sVar2 = strlen(__s);\n      if (((sVar2 & 3) != 0) || (0x40 < sVar2)) {\n        FUN_0001b240(iVar1);\n        FUN_0001b240(__s);\n        return 0;\n      }\n      if (sVar2 != 0) {\n        pcVar5 = __s;\n        do {\n          iVar3 = FUN_0001a610(pcVar5,iVar1 + iVar4);\n          if (iVar3 == 0) {\n            FUN_0001b240(__s);\n            FUN_0001b240(iVar1);\n            return 0;\n          }\n          iVar4 = iVar4 + iVar3;\n          pcVar5 = pcVar5 + 4;\n        } while (pcVar5 != __s + (sVar2 - 1 & 0xfffffffc) + 4);\n      }\n      FUN_0001b240(__s);\n      local_2c = local_2c + 1;\n    } while (param_2 != local_2c);\n  }" { (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" identifier = number_literal) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (do_statement "do {\n      __s = (char *)FUN_00053fe0();\n      if (__s == (char *)0x0) {\n        FUN_0001b240(iVar1);\n        return 0;\n      }\n      sVar2 = strlen(__s);\n      if (((sVar2 & 3) != 0) || (0x40 < sVar2)) {\n        FUN_0001b240(iVar1);\n        FUN_0001b240(__s);\n        return 0;\n      }\n      if (sVar2 != 0) {\n        pcVar5 = __s;\n        do {\n          iVar3 = FUN_0001a610(pcVar5,iVar1 + iVar4);\n          if (iVar3 == 0) {\n            FUN_0001b240(__s);\n            FUN_0001b240(iVar1);\n            return 0;\n          }\n          iVar4 = iVar4 + iVar3;\n          pcVar5 = pcVar5 + 4;\n        } while (pcVar5 != __s + (sVar2 - 1 & 0xfffffffc) + 4);\n      }\n      FUN_0001b240(__s);\n      local_2c = local_2c + 1;\n    } while (param_2 != local_2c);" do (compound_statement "{\n      __s = (char *)FUN_00053fe0();\n      if (__s == (char *)0x0) {\n        FUN_0001b240(iVar1);\n        return 0;\n      }\n      sVar2 = strlen(__s);\n      if (((sVar2 & 3) != 0) || (0x40 < sVar2)) {\n        FUN_0001b240(iVar1);\n        FUN_0001b240(__s);\n        return 0;\n      }\n      if (sVar2 != 0) {\n        pcVar5 = __s;\n        do {\n          iVar3 = FUN_0001a610(pcVar5,iVar1 + iVar4);\n          if (iVar3 == 0) {\n            FUN_0001b240(__s);\n            FUN_0001b240(iVar1);\n            return 0;\n          }\n          iVar4 = iVar4 + iVar3;\n          pcVar5 = pcVar5 + 4;\n        } while (pcVar5 != __s + (sVar2 - 1 & 0xfffffffc) + 4);\n      }\n      FUN_0001b240(__s);\n      local_2c = local_2c + 1;\n    }" { (expression_statement "__s = (char *)FUN_00053fe0();" (assignment_expression "__s = (char *)FUN_00053fe0()" identifier = (cast_expression "(char *)FUN_00053fe0()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00053fe0()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (__s == (char *)0x0) {\n        FUN_0001b240(iVar1);\n        return 0;\n      }" if (parenthesized_expression "(__s == (char *)0x0)" ( (binary_expression "__s == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        FUN_0001b240(iVar1);\n        return 0;\n      }" { (expression_statement "FUN_0001b240(iVar1);" (call_expression "FUN_0001b240(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "sVar2 = strlen(__s);" (assignment_expression "sVar2 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (if_statement "if (((sVar2 & 3) != 0) || (0x40 < sVar2)) {\n        FUN_0001b240(iVar1);\n        FUN_0001b240(__s);\n        return 0;\n      }" if (parenthesized_expression "(((sVar2 & 3) != 0) || (0x40 < sVar2))" ( (binary_expression "((sVar2 & 3) != 0) || (0x40 < sVar2)" (parenthesized_expression "((sVar2 & 3) != 0)" ( (binary_expression "(sVar2 & 3) != 0" (parenthesized_expression "(sVar2 & 3)" ( (binary_expression "sVar2 & 3" identifier & number_literal) )) != number_literal) )) || (parenthesized_expression "(0x40 < sVar2)" ( (binary_expression "0x40 < sVar2" number_literal < identifier) ))) )) (compound_statement "{\n        FUN_0001b240(iVar1);\n        FUN_0001b240(__s);\n        return 0;\n      }" { (expression_statement "FUN_0001b240(iVar1);" (call_expression "FUN_0001b240(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "FUN_0001b240(__s);" (call_expression "FUN_0001b240(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (if_statement "if (sVar2 != 0) {\n        pcVar5 = __s;\n        do {\n          iVar3 = FUN_0001a610(pcVar5,iVar1 + iVar4);\n          if (iVar3 == 0) {\n            FUN_0001b240(__s);\n            FUN_0001b240(iVar1);\n            return 0;\n          }\n          iVar4 = iVar4 + iVar3;\n          pcVar5 = pcVar5 + 4;\n        } while (pcVar5 != __s + (sVar2 - 1 & 0xfffffffc) + 4);\n      }" if (parenthesized_expression "(sVar2 != 0)" ( (binary_expression "sVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        pcVar5 = __s;\n        do {\n          iVar3 = FUN_0001a610(pcVar5,iVar1 + iVar4);\n          if (iVar3 == 0) {\n            FUN_0001b240(__s);\n            FUN_0001b240(iVar1);\n            return 0;\n          }\n          iVar4 = iVar4 + iVar3;\n          pcVar5 = pcVar5 + 4;\n        } while (pcVar5 != __s + (sVar2 - 1 & 0xfffffffc) + 4);\n      }" { (expression_statement "pcVar5 = __s;" (assignment_expression "pcVar5 = __s" identifier = identifier) ;) (do_statement "do {\n          iVar3 = FUN_0001a610(pcVar5,iVar1 + iVar4);\n          if (iVar3 == 0) {\n            FUN_0001b240(__s);\n            FUN_0001b240(iVar1);\n            return 0;\n          }\n          iVar4 = iVar4 + iVar3;\n          pcVar5 = pcVar5 + 4;\n        } while (pcVar5 != __s + (sVar2 - 1 & 0xfffffffc) + 4);" do (compound_statement "{\n          iVar3 = FUN_0001a610(pcVar5,iVar1 + iVar4);\n          if (iVar3 == 0) {\n            FUN_0001b240(__s);\n            FUN_0001b240(iVar1);\n            return 0;\n          }\n          iVar4 = iVar4 + iVar3;\n          pcVar5 = pcVar5 + 4;\n        }" { (expression_statement "iVar3 = FUN_0001a610(pcVar5,iVar1 + iVar4);" (assignment_expression "iVar3 = FUN_0001a610(pcVar5,iVar1 + iVar4)" identifier = (call_expression "FUN_0001a610(pcVar5,iVar1 + iVar4)" identifier (argument_list "(pcVar5,iVar1 + iVar4)" ( identifier , (binary_expression "iVar1 + iVar4" identifier + identifier) )))) ;) (if_statement "if (iVar3 == 0) {\n            FUN_0001b240(__s);\n            FUN_0001b240(iVar1);\n            return 0;\n          }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n            FUN_0001b240(__s);\n            FUN_0001b240(iVar1);\n            return 0;\n          }" { (expression_statement "FUN_0001b240(__s);" (call_expression "FUN_0001b240(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (expression_statement "FUN_0001b240(iVar1);" (call_expression "FUN_0001b240(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar4 = iVar4 + iVar3;" (assignment_expression "iVar4 = iVar4 + iVar3" identifier = (binary_expression "iVar4 + iVar3" identifier + identifier)) ;) (expression_statement "pcVar5 = pcVar5 + 4;" (assignment_expression "pcVar5 = pcVar5 + 4" identifier = (binary_expression "pcVar5 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(pcVar5 != __s + (sVar2 - 1 & 0xfffffffc) + 4)" ( (binary_expression "pcVar5 != __s + (sVar2 - 1 & 0xfffffffc) + 4" identifier != (binary_expression "__s + (sVar2 - 1 & 0xfffffffc) + 4" (binary_expression "__s + (sVar2 - 1 & 0xfffffffc)" identifier + (parenthesized_expression "(sVar2 - 1 & 0xfffffffc)" ( (binary_expression "sVar2 - 1 & 0xfffffffc" (binary_expression "sVar2 - 1" identifier - number_literal) & number_literal) ))) + number_literal)) )) ;) })) (expression_statement "FUN_0001b240(__s);" (call_expression "FUN_0001b240(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (expression_statement "local_2c = local_2c + 1;" (assignment_expression "local_2c = local_2c + 1" identifier = (binary_expression "local_2c + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(param_2 != local_2c)" ( (binary_expression "param_2 != local_2c" identifier != identifier) )) ;) }))) (expression_statement "*param_3 = iVar4;" (assignment_expression "*param_3 = iVar4" (pointer_expression "*param_3" * identifier) = identifier) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT * LIT) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (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 (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) || (parenthesized_expression ( (binary_expression LIT < IDENT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (binary_expression (binary_expression IDENT + (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) & LIT) ))) + LIT)) )) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) }))) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return IDENT ;) })))
(function_definition "int __regparm3 FUN_000540c0(undefined4 param_1,int param_2,int *param_3)\n\n{\n  int iVar1;\n  char *__s;\n  size_t sVar2;\n  int iVar3;\n  int iVar4;\n  char *pcVar5;\n  int local_2c;\n  \n  if (0x1554 < param_2) {\n                    \n    __assert_fail("nlines < MAX_KEY_BLOB_LINES","sshpubk.c",0x24e,"read_blob");\n  }\n  iVar1 = FUN_0001a9b0(param_2 * 0x30,1);\n  if (param_2 < 1) {\n    iVar4 = 0;\n  }\n  else {\n    local_2c = 0;\n    iVar4 = 0;\n    do {\n      __s = (char *)FUN_00053fe0();\n      if (__s == (char *)0x0) {\n        FUN_0001b240(iVar1);\n        return 0;\n      }\n      sVar2 = strlen(__s);\n      if (((sVar2 & 3) != 0) || (0x40 < sVar2)) {\n        FUN_0001b240(iVar1);\n        FUN_0001b240(__s);\n        return 0;\n      }\n      if (sVar2 != 0) {\n        pcVar5 = __s;\n        do {\n          iVar3 = FUN_0001a610(pcVar5,iVar1 + iVar4);\n          if (iVar3 == 0) {\n            FUN_0001b240(__s);\n            FUN_0001b240(iVar1);\n            return 0;\n          }\n          iVar4 = iVar4 + iVar3;\n          pcVar5 = pcVar5 + 4;\n        } while (pcVar5 != __s + (sVar2 - 1 & 0xfffffffc) + 4);\n      }\n      FUN_0001b240(__s);\n      local_2c = local_2c + 1;\n    } while (param_2 != local_2c);\n  }\n  *param_3 = iVar4;\n  return iVar1;\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000540c0(undefined4 param_1,int param_2,int *param_3)" (identifier "FUN_000540c0") (parameter_list "(undefined4 param_1,int param_2,int *param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int *param_3" (primitive_type "int") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")"))) (compound_statement "{\n  int iVar1;\n  char *__s;\n  size_t sVar2;\n  int iVar3;\n  int iVar4;\n  char *pcVar5;\n  int local_2c;\n  \n  if (0x1554 < param_2) {\n                    \n    __assert_fail("nlines < MAX_KEY_BLOB_LINES","sshpubk.c",0x24e,"read_blob");\n  }\n  iVar1 = FUN_0001a9b0(param_2 * 0x30,1);\n  if (param_2 < 1) {\n    iVar4 = 0;\n  }\n  else {\n    local_2c = 0;\n    iVar4 = 0;\n    do {\n      __s = (char *)FUN_00053fe0();\n      if (__s == (char *)0x0) {\n        FUN_0001b240(iVar1);\n        return 0;\n      }\n      sVar2 = strlen(__s);\n      if (((sVar2 & 3) != 0) || (0x40 < sVar2)) {\n        FUN_0001b240(iVar1);\n        FUN_0001b240(__s);\n        return 0;\n      }\n      if (sVar2 != 0) {\n        pcVar5 = __s;\n        do {\n          iVar3 = FUN_0001a610(pcVar5,iVar1 + iVar4);\n          if (iVar3 == 0) {\n            FUN_0001b240(__s);\n            FUN_0001b240(iVar1);\n            return 0;\n          }\n          iVar4 = iVar4 + iVar3;\n          pcVar5 = pcVar5 + 4;\n        } while (pcVar5 != __s + (sVar2 - 1 & 0xfffffffc) + 4);\n      }\n      FUN_0001b240(__s);\n      local_2c = local_2c + 1;\n    } while (param_2 != local_2c);\n  }\n  *param_3 = iVar4;\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "char *__s;" (primitive_type "char") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "size_t sVar2;" (primitive_type "size_t") (identifier "sVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "char *pcVar5;" (primitive_type "char") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (declaration "int local_2c;" (primitive_type "int") (identifier "local_2c") (; ";")) (if_statement "if (0x1554 < param_2) {\n                    \n    __assert_fail("nlines < MAX_KEY_BLOB_LINES","sshpubk.c",0x24e,"read_blob");\n  }" (if "if") (parenthesized_expression "(0x1554 < param_2)" (( "(") (binary_expression "0x1554 < param_2" (number_literal "0x1554") (< "<") (identifier "param_2")) () ")")) (compound_statement "{\n                    \n    __assert_fail("nlines < MAX_KEY_BLOB_LINES","sshpubk.c",0x24e,"read_blob");\n  }" ({ "{") (expression_statement "__assert_fail("nlines < MAX_KEY_BLOB_LINES","sshpubk.c",0x24e,"read_blob");" (call_expression "__assert_fail("nlines < MAX_KEY_BLOB_LINES","sshpubk.c",0x24e,"read_blob")" (identifier "__assert_fail") (argument_list "("nlines < MAX_KEY_BLOB_LINES","sshpubk.c",0x24e,"read_blob")" (( "(") (string_literal ""nlines < MAX_KEY_BLOB_LINES"" (" """) (string_content "nlines < MAX_KEY_BLOB_LINES") (" """)) (, ",") (string_literal ""sshpubk.c"" (" """) (string_content "sshpubk.c") (" """)) (, ",") (number_literal "0x24e") (, ",") (string_literal ""read_blob"" (" """) (string_content "read_blob") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "iVar1 = FUN_0001a9b0(param_2 * 0x30,1);" (assignment_expression "iVar1 = FUN_0001a9b0(param_2 * 0x30,1)" (identifier "iVar1") (= "=") (call_expression "FUN_0001a9b0(param_2 * 0x30,1)" (identifier "FUN_0001a9b0") (argument_list "(param_2 * 0x30,1)" (( "(") (binary_expression "param_2 * 0x30" (identifier "param_2") (* "*") (number_literal "0x30")) (, ",") (number_literal "1") () ")")))) (; ";")) (if_statement "if (param_2 < 1) {\n    iVar4 = 0;\n  }\n  else {\n    local_2c = 0;\n    iVar4 = 0;\n    do {\n      __s = (char *)FUN_00053fe0();\n      if (__s == (char *)0x0) {\n        FUN_0001b240(iVar1);\n        return 0;\n      }\n      sVar2 = strlen(__s);\n      if (((sVar2 & 3) != 0) || (0x40 < sVar2)) {\n        FUN_0001b240(iVar1);\n        FUN_0001b240(__s);\n        return 0;\n      }\n      if (sVar2 != 0) {\n        pcVar5 = __s;\n        do {\n          iVar3 = FUN_0001a610(pcVar5,iVar1 + iVar4);\n          if (iVar3 == 0) {\n            FUN_0001b240(__s);\n            FUN_0001b240(iVar1);\n            return 0;\n          }\n          iVar4 = iVar4 + iVar3;\n          pcVar5 = pcVar5 + 4;\n        } while (pcVar5 != __s + (sVar2 - 1 & 0xfffffffc) + 4);\n      }\n      FUN_0001b240(__s);\n      local_2c = local_2c + 1;\n    } while (param_2 != local_2c);\n  }" (if "if") (parenthesized_expression "(param_2 < 1)" (( "(") (binary_expression "param_2 < 1" (identifier "param_2") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n    iVar4 = 0;\n  }" ({ "{") (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    local_2c = 0;\n    iVar4 = 0;\n    do {\n      __s = (char *)FUN_00053fe0();\n      if (__s == (char *)0x0) {\n        FUN_0001b240(iVar1);\n        return 0;\n      }\n      sVar2 = strlen(__s);\n      if (((sVar2 & 3) != 0) || (0x40 < sVar2)) {\n        FUN_0001b240(iVar1);\n        FUN_0001b240(__s);\n        return 0;\n      }\n      if (sVar2 != 0) {\n        pcVar5 = __s;\n        do {\n          iVar3 = FUN_0001a610(pcVar5,iVar1 + iVar4);\n          if (iVar3 == 0) {\n            FUN_0001b240(__s);\n            FUN_0001b240(iVar1);\n            return 0;\n          }\n          iVar4 = iVar4 + iVar3;\n          pcVar5 = pcVar5 + 4;\n        } while (pcVar5 != __s + (sVar2 - 1 & 0xfffffffc) + 4);\n      }\n      FUN_0001b240(__s);\n      local_2c = local_2c + 1;\n    } while (param_2 != local_2c);\n  }" (else "else") (compound_statement "{\n    local_2c = 0;\n    iVar4 = 0;\n    do {\n      __s = (char *)FUN_00053fe0();\n      if (__s == (char *)0x0) {\n        FUN_0001b240(iVar1);\n        return 0;\n      }\n      sVar2 = strlen(__s);\n      if (((sVar2 & 3) != 0) || (0x40 < sVar2)) {\n        FUN_0001b240(iVar1);\n        FUN_0001b240(__s);\n        return 0;\n      }\n      if (sVar2 != 0) {\n        pcVar5 = __s;\n        do {\n          iVar3 = FUN_0001a610(pcVar5,iVar1 + iVar4);\n          if (iVar3 == 0) {\n            FUN_0001b240(__s);\n            FUN_0001b240(iVar1);\n            return 0;\n          }\n          iVar4 = iVar4 + iVar3;\n          pcVar5 = pcVar5 + 4;\n        } while (pcVar5 != __s + (sVar2 - 1 & 0xfffffffc) + 4);\n      }\n      FUN_0001b240(__s);\n      local_2c = local_2c + 1;\n    } while (param_2 != local_2c);\n  }" ({ "{") (expression_statement "local_2c = 0;" (assignment_expression "local_2c = 0" (identifier "local_2c") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      __s = (char *)FUN_00053fe0();\n      if (__s == (char *)0x0) {\n        FUN_0001b240(iVar1);\n        return 0;\n      }\n      sVar2 = strlen(__s);\n      if (((sVar2 & 3) != 0) || (0x40 < sVar2)) {\n        FUN_0001b240(iVar1);\n        FUN_0001b240(__s);\n        return 0;\n      }\n      if (sVar2 != 0) {\n        pcVar5 = __s;\n        do {\n          iVar3 = FUN_0001a610(pcVar5,iVar1 + iVar4);\n          if (iVar3 == 0) {\n            FUN_0001b240(__s);\n            FUN_0001b240(iVar1);\n            return 0;\n          }\n          iVar4 = iVar4 + iVar3;\n          pcVar5 = pcVar5 + 4;\n        } while (pcVar5 != __s + (sVar2 - 1 & 0xfffffffc) + 4);\n      }\n      FUN_0001b240(__s);\n      local_2c = local_2c + 1;\n    } while (param_2 != local_2c);" (do "do") (compound_statement "{\n      __s = (char *)FUN_00053fe0();\n      if (__s == (char *)0x0) {\n        FUN_0001b240(iVar1);\n        return 0;\n      }\n      sVar2 = strlen(__s);\n      if (((sVar2 & 3) != 0) || (0x40 < sVar2)) {\n        FUN_0001b240(iVar1);\n        FUN_0001b240(__s);\n        return 0;\n      }\n      if (sVar2 != 0) {\n        pcVar5 = __s;\n        do {\n          iVar3 = FUN_0001a610(pcVar5,iVar1 + iVar4);\n          if (iVar3 == 0) {\n            FUN_0001b240(__s);\n            FUN_0001b240(iVar1);\n            return 0;\n          }\n          iVar4 = iVar4 + iVar3;\n          pcVar5 = pcVar5 + 4;\n        } while (pcVar5 != __s + (sVar2 - 1 & 0xfffffffc) + 4);\n      }\n      FUN_0001b240(__s);\n      local_2c = local_2c + 1;\n    }" ({ "{") (expression_statement "__s = (char *)FUN_00053fe0();" (assignment_expression "__s = (char *)FUN_00053fe0()" (identifier "__s") (= "=") (cast_expression "(char *)FUN_00053fe0()" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00053fe0()" (identifier "FUN_00053fe0") (argument_list "()" (( "(") () ")"))))) (; ";")) (if_statement "if (__s == (char *)0x0) {\n        FUN_0001b240(iVar1);\n        return 0;\n      }" (if "if") (parenthesized_expression "(__s == (char *)0x0)" (( "(") (binary_expression "__s == (char *)0x0" (identifier "__s") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n        FUN_0001b240(iVar1);\n        return 0;\n      }" ({ "{") (expression_statement "FUN_0001b240(iVar1);" (call_expression "FUN_0001b240(iVar1)" (identifier "FUN_0001b240") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "sVar2 = strlen(__s);" (assignment_expression "sVar2 = strlen(__s)" (identifier "sVar2") (= "=") (call_expression "strlen(__s)" (identifier "strlen") (argument_list "(__s)" (( "(") (identifier "__s") () ")")))) (; ";")) (if_statement "if (((sVar2 & 3) != 0) || (0x40 < sVar2)) {\n        FUN_0001b240(iVar1);\n        FUN_0001b240(__s);\n        return 0;\n      }" (if "if") (parenthesized_expression "(((sVar2 & 3) != 0) || (0x40 < sVar2))" (( "(") (binary_expression "((sVar2 & 3) != 0) || (0x40 < sVar2)" (parenthesized_expression "((sVar2 & 3) != 0)" (( "(") (binary_expression "(sVar2 & 3) != 0" (parenthesized_expression "(sVar2 & 3)" (( "(") (binary_expression "sVar2 & 3" (identifier "sVar2") (& "&") (number_literal "3")) () ")")) (!= "!=") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(0x40 < sVar2)" (( "(") (binary_expression "0x40 < sVar2" (number_literal "0x40") (< "<") (identifier "sVar2")) () ")"))) () ")")) (compound_statement "{\n        FUN_0001b240(iVar1);\n        FUN_0001b240(__s);\n        return 0;\n      }" ({ "{") (expression_statement "FUN_0001b240(iVar1);" (call_expression "FUN_0001b240(iVar1)" (identifier "FUN_0001b240") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (expression_statement "FUN_0001b240(__s);" (call_expression "FUN_0001b240(__s)" (identifier "FUN_0001b240") (argument_list "(__s)" (( "(") (identifier "__s") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (sVar2 != 0) {\n        pcVar5 = __s;\n        do {\n          iVar3 = FUN_0001a610(pcVar5,iVar1 + iVar4);\n          if (iVar3 == 0) {\n            FUN_0001b240(__s);\n            FUN_0001b240(iVar1);\n            return 0;\n          }\n          iVar4 = iVar4 + iVar3;\n          pcVar5 = pcVar5 + 4;\n        } while (pcVar5 != __s + (sVar2 - 1 & 0xfffffffc) + 4);\n      }" (if "if") (parenthesized_expression "(sVar2 != 0)" (( "(") (binary_expression "sVar2 != 0" (identifier "sVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        pcVar5 = __s;\n        do {\n          iVar3 = FUN_0001a610(pcVar5,iVar1 + iVar4);\n          if (iVar3 == 0) {\n            FUN_0001b240(__s);\n            FUN_0001b240(iVar1);\n            return 0;\n          }\n          iVar4 = iVar4 + iVar3;\n          pcVar5 = pcVar5 + 4;\n        } while (pcVar5 != __s + (sVar2 - 1 & 0xfffffffc) + 4);\n      }" ({ "{") (expression_statement "pcVar5 = __s;" (assignment_expression "pcVar5 = __s" (identifier "pcVar5") (= "=") (identifier "__s")) (; ";")) (do_statement "do {\n          iVar3 = FUN_0001a610(pcVar5,iVar1 + iVar4);\n          if (iVar3 == 0) {\n            FUN_0001b240(__s);\n            FUN_0001b240(iVar1);\n            return 0;\n          }\n          iVar4 = iVar4 + iVar3;\n          pcVar5 = pcVar5 + 4;\n        } while (pcVar5 != __s + (sVar2 - 1 & 0xfffffffc) + 4);" (do "do") (compound_statement "{\n          iVar3 = FUN_0001a610(pcVar5,iVar1 + iVar4);\n          if (iVar3 == 0) {\n            FUN_0001b240(__s);\n            FUN_0001b240(iVar1);\n            return 0;\n          }\n          iVar4 = iVar4 + iVar3;\n          pcVar5 = pcVar5 + 4;\n        }" ({ "{") (expression_statement "iVar3 = FUN_0001a610(pcVar5,iVar1 + iVar4);" (assignment_expression "iVar3 = FUN_0001a610(pcVar5,iVar1 + iVar4)" (identifier "iVar3") (= "=") (call_expression "FUN_0001a610(pcVar5,iVar1 + iVar4)" (identifier "FUN_0001a610") (argument_list "(pcVar5,iVar1 + iVar4)" (( "(") (identifier "pcVar5") (, ",") (binary_expression "iVar1 + iVar4" (identifier "iVar1") (+ "+") (identifier "iVar4")) () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n            FUN_0001b240(__s);\n            FUN_0001b240(iVar1);\n            return 0;\n          }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            FUN_0001b240(__s);\n            FUN_0001b240(iVar1);\n            return 0;\n          }" ({ "{") (expression_statement "FUN_0001b240(__s);" (call_expression "FUN_0001b240(__s)" (identifier "FUN_0001b240") (argument_list "(__s)" (( "(") (identifier "__s") () ")"))) (; ";")) (expression_statement "FUN_0001b240(iVar1);" (call_expression "FUN_0001b240(iVar1)" (identifier "FUN_0001b240") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar4 = iVar4 + iVar3;" (assignment_expression "iVar4 = iVar4 + iVar3" (identifier "iVar4") (= "=") (binary_expression "iVar4 + iVar3" (identifier "iVar4") (+ "+") (identifier "iVar3"))) (; ";")) (expression_statement "pcVar5 = pcVar5 + 4;" (assignment_expression "pcVar5 = pcVar5 + 4" (identifier "pcVar5") (= "=") (binary_expression "pcVar5 + 4" (identifier "pcVar5") (+ "+") (number_literal "4"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(pcVar5 != __s + (sVar2 - 1 & 0xfffffffc) + 4)" (( "(") (binary_expression "pcVar5 != __s + (sVar2 - 1 & 0xfffffffc) + 4" (identifier "pcVar5") (!= "!=") (binary_expression "__s + (sVar2 - 1 & 0xfffffffc) + 4" (binary_expression "__s + (sVar2 - 1 & 0xfffffffc)" (identifier "__s") (+ "+") (parenthesized_expression "(sVar2 - 1 & 0xfffffffc)" (( "(") (binary_expression "sVar2 - 1 & 0xfffffffc" (binary_expression "sVar2 - 1" (identifier "sVar2") (- "-") (number_literal "1")) (& "&") (number_literal "0xfffffffc")) () ")"))) (+ "+") (number_literal "4"))) () ")")) (; ";")) (} "}"))) (expression_statement "FUN_0001b240(__s);" (call_expression "FUN_0001b240(__s)" (identifier "FUN_0001b240") (argument_list "(__s)" (( "(") (identifier "__s") () ")"))) (; ";")) (expression_statement "local_2c = local_2c + 1;" (assignment_expression "local_2c = local_2c + 1" (identifier "local_2c") (= "=") (binary_expression "local_2c + 1" (identifier "local_2c") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_2 != local_2c)" (( "(") (binary_expression "param_2 != local_2c" (identifier "param_2") (!= "!=") (identifier "local_2c")) () ")")) (; ";")) (} "}")))) (expression_statement "*param_3 = iVar4;" (assignment_expression "*param_3 = iVar4" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (identifier "iVar4")) (; ";")) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))

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

type_1 * __regparm3 read_blob(FILE *fp,int var_1,int *bloblen)

{
  type_1 *var_10;
  char *var_5;
  size_t var_8;
  int var_12;
  int var_11;
  char *var_13;
  int var_14;
  
  if (0x1554 < var_1) {
                    /* WARNING: Subroutine does not return */
    var_2("nlines < MAX_KEY_BLOB_LINES","sshpubk.c",0x24e,"read_blob");
  }
  var_10 = (type_1 *)var_3(var_1 * 0x30,1);
  if (var_1 < 1) {
    var_11 = 0;
  }
  else {
    var_14 = 0;
    var_11 = 0;
    do {
      var_5 = var_4(fp);
      if (var_5 == (char *)0x0) {
        var_6(var_10);
        return (type_1 *)0x0;
      }
      var_8 = var_7(var_5);
      if (((var_8 & 3) != 0) || (0x40 < var_8)) {
        var_6(var_10);
        var_6(var_5);
        return (type_1 *)0x0;
      }
      if (var_8 != 0) {
        var_13 = var_5;
        do {
          var_12 = var_9(var_13,var_10 + var_11);
          if (var_12 == 0) {
            var_6(var_5);
            var_6(var_10);
            return (type_1 *)0x0;
          }
          var_11 = var_11 + var_12;
          var_13 = var_13 + 4;
        } while (var_13 != var_5 + (var_8 - 1 & 0xfffffffc) + 4);
      }
      var_6(var_5);
      var_14 = var_14 + 1;
    } while (var_1 != var_14);
  }
  *bloblen = var_11;
  return var_10;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (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: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (string_literal (string_content)) (number_literal) (string_literal (string_content))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (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 (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement (number_literal)))) (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))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal)))) right: (number_literal))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (return_statement (identifier)))))

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

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

{
  int iVar1;
  char *__s;
  size_t sVar2;
  int iVar3;
  int iVar4;
  char *pcVar5;
  int local_2c;
  
  if (0x1554 < param_2) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("nlines < MAX_KEY_BLOB_LINES","sshpubk.c",0x24e,"read_blob");
  }
  iVar1 = FUN_0001a9b0(param_2 * 0x30,1);
  if (param_2 < 1) {
    iVar4 = 0;
  }
  else {
    local_2c = 0;
    iVar4 = 0;
    do {
      __s = (char *)FUN_00053fe0();
      if (__s == (char *)0x0) {
        FUN_0001b240(iVar1);
        return 0;
      }
      sVar2 = strlen(__s);
      if (((sVar2 & 3) != 0) || (0x40 < sVar2)) {
        FUN_0001b240(iVar1);
        FUN_0001b240(__s);
        return 0;
      }
      if (sVar2 != 0) {
        pcVar5 = __s;
        do {
          iVar3 = FUN_0001a610(pcVar5,iVar1 + iVar4);
          if (iVar3 == 0) {
            FUN_0001b240(__s);
            FUN_0001b240(iVar1);
            return 0;
          }
          iVar4 = iVar4 + iVar3;
          pcVar5 = pcVar5 + 4;
        } while (pcVar5 != __s + (sVar2 - 1 & 0xfffffffc) + 4);
      }
      FUN_0001b240(__s);
      local_2c = local_2c + 1;
    } while (param_2 != local_2c);
  }
  *param_3 = iVar4;
  return iVar1;
}

