
void * rsa2_openssh_createkey(ssh_signkey *self,uchar **blob,int *len)

{
  RSAKey *key;
  Bignum pvVar1;
  int iVar2;
  
  key = (RSAKey *)(*(code *)PTR_safemalloc_000790d0)(1,0x24);
  key->comment = (char *)0x0;
  pvVar1 = getmp((char **)blob,len);
  key->modulus = pvVar1;
  pvVar1 = getmp((char **)blob,len);
  key->exponent = pvVar1;
  pvVar1 = getmp((char **)blob,len);
  key->private_exponent = pvVar1;
  pvVar1 = getmp((char **)blob,len);
  key->iqmp = pvVar1;
  pvVar1 = getmp((char **)blob,len);
  key->p = pvVar1;
  pvVar1 = getmp((char **)blob,len);
  key->q = pvVar1;
  if ((((key->modulus != (Bignum)0x0) && (key->exponent != (Bignum)0x0)) &&
      (key->private_exponent != (Bignum)0x0)) &&
     (((key->iqmp != (Bignum)0x0 && (key->p != (Bignum)0x0)) && (pvVar1 != (Bignum)0x0)))) {
    iVar2 = rsa_verify(key);
    if (iVar2 == 0) {
      freersakey(key);
      (*(code *)PTR_safefree_000790f0)(key);
      key = (RSAKey *)0x0;
    }
    return key;
  }
  freersakey(key);
  (*(code *)PTR_safefree_000790f0)(key);
  return (void *)0x0;
}



int FUN_00047bc0(undefined4 param_1,undefined4 param_2,undefined4 param_3)

{
  int iVar1;
  undefined4 uVar2;
  int iVar3;
  
  iVar1 = (*(code *)PTR_safemalloc_000790d0)(1,0x24);
  *(undefined4 *)(iVar1 + 0x20) = 0;
  uVar2 = FUN_00045bbc(param_2,param_3);
  *(undefined4 *)(iVar1 + 8) = uVar2;
  uVar2 = FUN_00045bbc(param_2,param_3);
  *(undefined4 *)(iVar1 + 0xc) = uVar2;
  uVar2 = FUN_00045bbc(param_2,param_3);
  *(undefined4 *)(iVar1 + 0x10) = uVar2;
  uVar2 = FUN_00045bbc(param_2,param_3);
  *(undefined4 *)(iVar1 + 0x1c) = uVar2;
  uVar2 = FUN_00045bbc(param_2,param_3);
  *(undefined4 *)(iVar1 + 0x14) = uVar2;
  iVar3 = FUN_00045bbc(param_2,param_3);
  *(int *)(iVar1 + 0x18) = iVar3;
  if ((((*(int *)(iVar1 + 8) != 0) && (*(int *)(iVar1 + 0xc) != 0)) && (*(int *)(iVar1 + 0x10) != 0)
      ) && (((*(int *)(iVar1 + 0x1c) != 0 && (*(int *)(iVar1 + 0x14) != 0)) && (iVar3 != 0)))) {
    iVar3 = rsa_verify(iVar1);
    if (iVar3 == 0) {
      freersakey(iVar1);
      (*(code *)PTR_safefree_000790f0)(iVar1);
      iVar1 = 0;
    }
    return iVar1;
  }
  freersakey(iVar1);
  (*(code *)PTR_safefree_000790f0)(iVar1);
  return 0;
}


lui gp,0x4
addiu gp,gp,-0x6b50
addu gp,gp,t9
addiu sp,sp,-0x30
lw t9,-0x7fa0(gp)
li a0,0x1
sw s2,0x24(sp)
or s2,a1,zero
li a1,0x24
sw ra,0x2c(sp)
sw gp,0x10(sp)
sw s3,0x28(sp)
or s3,a2,zero
sw s1,0x20(sp)
jalr t9
_sw s0,0x1c(sp)
or a1,s3,zero
lw gp,0x10(sp)
or s0,v0,zero
or a0,s2,zero
lw s1,-0x7b8c(gp)
addiu s1,s1,0x5bbc
or t9,s1,zero
bal 0x00045bbc
_sw zero,0x20(v0)
or a1,s3,zero
or a0,s2,zero
or t9,s1,zero
bal 0x00045bbc
_sw v0,0x8(s0)
or a1,s3,zero
or a0,s2,zero
or t9,s1,zero
bal 0x00045bbc
_sw v0,0xc(s0)
or a1,s3,zero
or a0,s2,zero
or t9,s1,zero
bal 0x00045bbc
_sw v0,0x10(s0)
or a1,s3,zero
or a0,s2,zero
or t9,s1,zero
bal 0x00045bbc
_sw v0,0x1c(s0)
or a1,s3,zero
sw v0,0x14(s0)
or t9,s1,zero
bal 0x00045bbc
_or a0,s2,zero
lw v1,0x8(s0)
lw gp,0x10(sp)
beq v1,zero,0x00047d00
_sw v0,0x18(s0)
lw v1,0xc(s0)
beq v1,zero,0x00047d04
_lw t9,-0x7f1c(gp)
lw v1,0x10(s0)
beq v1,zero,0x00047d04
_nop
lw v1,0x1c(s0)
beq v1,zero,0x00047d04
_nop
lw v1,0x14(s0)
beq v1,zero,0x00047d04
_nop
beq v0,zero,0x00047d00
_lw t9,-0x7b40(gp)
bal 0x000476e4
_or a0,s0,zero
beq v0,zero,0x00047d40
_lw gp,0x10(sp)
lw ra,0x2c(sp)
or v0,s0,zero
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x30
lw t9,-0x7f1c(gp)
bal 0x00047ae8
_or a0,s0,zero
or a0,s0,zero
lw gp,0x10(sp)
lw t9,-0x7f80(gp)
jalr t9
_or s0,zero,zero
or v0,s0,zero
lw ra,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x30
lw t9,-0x7f1c(gp)
bal 0x00047ae8
_or a0,s0,zero
or a0,s0,zero
lw gp,0x10(sp)
lw t9,-0x7f80(gp)
jalr t9
_or s0,zero,zero
b 0x00047ce4
_lw ra,0x2c(sp)
(translation_unit "int FUN_00047bc0(undefined4 param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  iVar1 = (*(code *)PTR_safemalloc_000790d0)(1,0x24);\n  *(undefined4 *)(iVar1 + 0x20) = 0;\n  uVar2 = FUN_00045bbc(param_2,param_3);\n  *(undefined4 *)(iVar1 + 8) = uVar2;\n  uVar2 = FUN_00045bbc(param_2,param_3);\n  *(undefined4 *)(iVar1 + 0xc) = uVar2;\n  uVar2 = FUN_00045bbc(param_2,param_3);\n  *(undefined4 *)(iVar1 + 0x10) = uVar2;\n  uVar2 = FUN_00045bbc(param_2,param_3);\n  *(undefined4 *)(iVar1 + 0x1c) = uVar2;\n  uVar2 = FUN_00045bbc(param_2,param_3);\n  *(undefined4 *)(iVar1 + 0x14) = uVar2;\n  iVar3 = FUN_00045bbc(param_2,param_3);\n  *(int *)(iVar1 + 0x18) = iVar3;\n  if ((((*(int *)(iVar1 + 8) != 0) && (*(int *)(iVar1 + 0xc) != 0)) && (*(int *)(iVar1 + 0x10) != 0)\n      ) && (((*(int *)(iVar1 + 0x1c) != 0 && (*(int *)(iVar1 + 0x14) != 0)) && (iVar3 != 0)))) {\n    iVar3 = rsa_verify(iVar1);\n    if (iVar3 == 0) {\n      freersakey(iVar1);\n      (*(code *)PTR_safefree_000790f0)(iVar1);\n      iVar1 = 0;\n    }\n    return iVar1;\n  }\n  freersakey(iVar1);\n  (*(code *)PTR_safefree_000790f0)(iVar1);\n  return 0;\n}\n\n" (function_definition "int FUN_00047bc0(undefined4 param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  iVar1 = (*(code *)PTR_safemalloc_000790d0)(1,0x24);\n  *(undefined4 *)(iVar1 + 0x20) = 0;\n  uVar2 = FUN_00045bbc(param_2,param_3);\n  *(undefined4 *)(iVar1 + 8) = uVar2;\n  uVar2 = FUN_00045bbc(param_2,param_3);\n  *(undefined4 *)(iVar1 + 0xc) = uVar2;\n  uVar2 = FUN_00045bbc(param_2,param_3);\n  *(undefined4 *)(iVar1 + 0x10) = uVar2;\n  uVar2 = FUN_00045bbc(param_2,param_3);\n  *(undefined4 *)(iVar1 + 0x1c) = uVar2;\n  uVar2 = FUN_00045bbc(param_2,param_3);\n  *(undefined4 *)(iVar1 + 0x14) = uVar2;\n  iVar3 = FUN_00045bbc(param_2,param_3);\n  *(int *)(iVar1 + 0x18) = iVar3;\n  if ((((*(int *)(iVar1 + 8) != 0) && (*(int *)(iVar1 + 0xc) != 0)) && (*(int *)(iVar1 + 0x10) != 0)\n      ) && (((*(int *)(iVar1 + 0x1c) != 0 && (*(int *)(iVar1 + 0x14) != 0)) && (iVar3 != 0)))) {\n    iVar3 = rsa_verify(iVar1);\n    if (iVar3 == 0) {\n      freersakey(iVar1);\n      (*(code *)PTR_safefree_000790f0)(iVar1);\n      iVar1 = 0;\n    }\n    return iVar1;\n  }\n  freersakey(iVar1);\n  (*(code *)PTR_safefree_000790f0)(iVar1);\n  return 0;\n}" primitive_type (function_declarator "FUN_00047bc0(undefined4 param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  iVar1 = (*(code *)PTR_safemalloc_000790d0)(1,0x24);\n  *(undefined4 *)(iVar1 + 0x20) = 0;\n  uVar2 = FUN_00045bbc(param_2,param_3);\n  *(undefined4 *)(iVar1 + 8) = uVar2;\n  uVar2 = FUN_00045bbc(param_2,param_3);\n  *(undefined4 *)(iVar1 + 0xc) = uVar2;\n  uVar2 = FUN_00045bbc(param_2,param_3);\n  *(undefined4 *)(iVar1 + 0x10) = uVar2;\n  uVar2 = FUN_00045bbc(param_2,param_3);\n  *(undefined4 *)(iVar1 + 0x1c) = uVar2;\n  uVar2 = FUN_00045bbc(param_2,param_3);\n  *(undefined4 *)(iVar1 + 0x14) = uVar2;\n  iVar3 = FUN_00045bbc(param_2,param_3);\n  *(int *)(iVar1 + 0x18) = iVar3;\n  if ((((*(int *)(iVar1 + 8) != 0) && (*(int *)(iVar1 + 0xc) != 0)) && (*(int *)(iVar1 + 0x10) != 0)\n      ) && (((*(int *)(iVar1 + 0x1c) != 0 && (*(int *)(iVar1 + 0x14) != 0)) && (iVar3 != 0)))) {\n    iVar3 = rsa_verify(iVar1);\n    if (iVar3 == 0) {\n      freersakey(iVar1);\n      (*(code *)PTR_safefree_000790f0)(iVar1);\n      iVar1 = 0;\n    }\n    return iVar1;\n  }\n  freersakey(iVar1);\n  (*(code *)PTR_safefree_000790f0)(iVar1);\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar1 = (*(code *)PTR_safemalloc_000790d0)(1,0x24);" (assignment_expression "iVar1 = (*(code *)PTR_safemalloc_000790d0)(1,0x24)" identifier = (call_expression "(*(code *)PTR_safemalloc_000790d0)(1,0x24)" (parenthesized_expression "(*(code *)PTR_safemalloc_000790d0)" ( (pointer_expression "*(code *)PTR_safemalloc_000790d0" * (cast_expression "(code *)PTR_safemalloc_000790d0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,0x24)" ( number_literal , number_literal )))) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x20) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x20) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x20)" * (cast_expression "(undefined4 *)(iVar1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar2 = FUN_00045bbc(param_2,param_3);" (assignment_expression "uVar2 = FUN_00045bbc(param_2,param_3)" identifier = (call_expression "FUN_00045bbc(param_2,param_3)" identifier (argument_list "(param_2,param_3)" ( identifier , identifier )))) ;) (expression_statement "*(undefined4 *)(iVar1 + 8) = uVar2;" (assignment_expression "*(undefined4 *)(iVar1 + 8) = uVar2" (pointer_expression "*(undefined4 *)(iVar1 + 8)" * (cast_expression "(undefined4 *)(iVar1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar2 = FUN_00045bbc(param_2,param_3);" (assignment_expression "uVar2 = FUN_00045bbc(param_2,param_3)" identifier = (call_expression "FUN_00045bbc(param_2,param_3)" identifier (argument_list "(param_2,param_3)" ( identifier , identifier )))) ;) (expression_statement "*(undefined4 *)(iVar1 + 0xc) = uVar2;" (assignment_expression "*(undefined4 *)(iVar1 + 0xc) = uVar2" (pointer_expression "*(undefined4 *)(iVar1 + 0xc)" * (cast_expression "(undefined4 *)(iVar1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar2 = FUN_00045bbc(param_2,param_3);" (assignment_expression "uVar2 = FUN_00045bbc(param_2,param_3)" identifier = (call_expression "FUN_00045bbc(param_2,param_3)" identifier (argument_list "(param_2,param_3)" ( identifier , identifier )))) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x10) = uVar2;" (assignment_expression "*(undefined4 *)(iVar1 + 0x10) = uVar2" (pointer_expression "*(undefined4 *)(iVar1 + 0x10)" * (cast_expression "(undefined4 *)(iVar1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar2 = FUN_00045bbc(param_2,param_3);" (assignment_expression "uVar2 = FUN_00045bbc(param_2,param_3)" identifier = (call_expression "FUN_00045bbc(param_2,param_3)" identifier (argument_list "(param_2,param_3)" ( identifier , identifier )))) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x1c) = uVar2;" (assignment_expression "*(undefined4 *)(iVar1 + 0x1c) = uVar2" (pointer_expression "*(undefined4 *)(iVar1 + 0x1c)" * (cast_expression "(undefined4 *)(iVar1 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x1c)" ( (binary_expression "iVar1 + 0x1c" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar2 = FUN_00045bbc(param_2,param_3);" (assignment_expression "uVar2 = FUN_00045bbc(param_2,param_3)" identifier = (call_expression "FUN_00045bbc(param_2,param_3)" identifier (argument_list "(param_2,param_3)" ( identifier , identifier )))) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x14) = uVar2;" (assignment_expression "*(undefined4 *)(iVar1 + 0x14) = uVar2" (pointer_expression "*(undefined4 *)(iVar1 + 0x14)" * (cast_expression "(undefined4 *)(iVar1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar3 = FUN_00045bbc(param_2,param_3);" (assignment_expression "iVar3 = FUN_00045bbc(param_2,param_3)" identifier = (call_expression "FUN_00045bbc(param_2,param_3)" identifier (argument_list "(param_2,param_3)" ( identifier , identifier )))) ;) (expression_statement "*(int *)(iVar1 + 0x18) = iVar3;" (assignment_expression "*(int *)(iVar1 + 0x18) = iVar3" (pointer_expression "*(int *)(iVar1 + 0x18)" * (cast_expression "(int *)(iVar1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x18)" ( (binary_expression "iVar1 + 0x18" identifier + number_literal) )))) = identifier) ;) (if_statement "if ((((*(int *)(iVar1 + 8) != 0) && (*(int *)(iVar1 + 0xc) != 0)) && (*(int *)(iVar1 + 0x10) != 0)\n      ) && (((*(int *)(iVar1 + 0x1c) != 0 && (*(int *)(iVar1 + 0x14) != 0)) && (iVar3 != 0)))) {\n    iVar3 = rsa_verify(iVar1);\n    if (iVar3 == 0) {\n      freersakey(iVar1);\n      (*(code *)PTR_safefree_000790f0)(iVar1);\n      iVar1 = 0;\n    }\n    return iVar1;\n  }" if (parenthesized_expression "((((*(int *)(iVar1 + 8) != 0) && (*(int *)(iVar1 + 0xc) != 0)) && (*(int *)(iVar1 + 0x10) != 0)\n      ) && (((*(int *)(iVar1 + 0x1c) != 0 && (*(int *)(iVar1 + 0x14) != 0)) && (iVar3 != 0))))" ( (binary_expression "(((*(int *)(iVar1 + 8) != 0) && (*(int *)(iVar1 + 0xc) != 0)) && (*(int *)(iVar1 + 0x10) != 0)\n      ) && (((*(int *)(iVar1 + 0x1c) != 0 && (*(int *)(iVar1 + 0x14) != 0)) && (iVar3 != 0)))" (parenthesized_expression "(((*(int *)(iVar1 + 8) != 0) && (*(int *)(iVar1 + 0xc) != 0)) && (*(int *)(iVar1 + 0x10) != 0)\n      )" ( (binary_expression "((*(int *)(iVar1 + 8) != 0) && (*(int *)(iVar1 + 0xc) != 0)) && (*(int *)(iVar1 + 0x10) != 0)" (parenthesized_expression "((*(int *)(iVar1 + 8) != 0) && (*(int *)(iVar1 + 0xc) != 0))" ( (binary_expression "(*(int *)(iVar1 + 8) != 0) && (*(int *)(iVar1 + 0xc) != 0)" (parenthesized_expression "(*(int *)(iVar1 + 8) != 0)" ( (binary_expression "*(int *)(iVar1 + 8) != 0" (pointer_expression "*(int *)(iVar1 + 8)" * (cast_expression "(int *)(iVar1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "(*(int *)(iVar1 + 0xc) != 0)" ( (binary_expression "*(int *)(iVar1 + 0xc) != 0" (pointer_expression "*(int *)(iVar1 + 0xc)" * (cast_expression "(int *)(iVar1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) != number_literal) ))) )) && (parenthesized_expression "(*(int *)(iVar1 + 0x10) != 0)" ( (binary_expression "*(int *)(iVar1 + 0x10) != 0" (pointer_expression "*(int *)(iVar1 + 0x10)" * (cast_expression "(int *)(iVar1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) )))) != number_literal) ))) )) && (parenthesized_expression "(((*(int *)(iVar1 + 0x1c) != 0 && (*(int *)(iVar1 + 0x14) != 0)) && (iVar3 != 0)))" ( (parenthesized_expression "((*(int *)(iVar1 + 0x1c) != 0 && (*(int *)(iVar1 + 0x14) != 0)) && (iVar3 != 0))" ( (binary_expression "(*(int *)(iVar1 + 0x1c) != 0 && (*(int *)(iVar1 + 0x14) != 0)) && (iVar3 != 0)" (parenthesized_expression "(*(int *)(iVar1 + 0x1c) != 0 && (*(int *)(iVar1 + 0x14) != 0))" ( (binary_expression "*(int *)(iVar1 + 0x1c) != 0 && (*(int *)(iVar1 + 0x14) != 0)" (binary_expression "*(int *)(iVar1 + 0x1c) != 0" (pointer_expression "*(int *)(iVar1 + 0x1c)" * (cast_expression "(int *)(iVar1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x1c)" ( (binary_expression "iVar1 + 0x1c" identifier + number_literal) )))) != number_literal) && (parenthesized_expression "(*(int *)(iVar1 + 0x14) != 0)" ( (binary_expression "*(int *)(iVar1 + 0x14) != 0" (pointer_expression "*(int *)(iVar1 + 0x14)" * (cast_expression "(int *)(iVar1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) )))) != number_literal) ))) )) && (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) ))) )) ))) )) (compound_statement "{\n    iVar3 = rsa_verify(iVar1);\n    if (iVar3 == 0) {\n      freersakey(iVar1);\n      (*(code *)PTR_safefree_000790f0)(iVar1);\n      iVar1 = 0;\n    }\n    return iVar1;\n  }" { (expression_statement "iVar3 = rsa_verify(iVar1);" (assignment_expression "iVar3 = rsa_verify(iVar1)" identifier = (call_expression "rsa_verify(iVar1)" identifier (argument_list "(iVar1)" ( identifier )))) ;) (if_statement "if (iVar3 == 0) {\n      freersakey(iVar1);\n      (*(code *)PTR_safefree_000790f0)(iVar1);\n      iVar1 = 0;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      freersakey(iVar1);\n      (*(code *)PTR_safefree_000790f0)(iVar1);\n      iVar1 = 0;\n    }" { (expression_statement "freersakey(iVar1);" (call_expression "freersakey(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_000790f0)(iVar1);" (call_expression "(*(code *)PTR_safefree_000790f0)(iVar1)" (parenthesized_expression "(*(code *)PTR_safefree_000790f0)" ( (pointer_expression "*(code *)PTR_safefree_000790f0" * (cast_expression "(code *)PTR_safefree_000790f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) })) (return_statement "return iVar1;" return identifier ;) })) (expression_statement "freersakey(iVar1);" (call_expression "freersakey(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_000790f0)(iVar1);" (call_expression "(*(code *)PTR_safefree_000790f0)(iVar1)" (parenthesized_expression "(*(code *)PTR_safefree_000790f0)" ( (pointer_expression "*(code *)PTR_safefree_000790f0" * (cast_expression "(code *)PTR_safefree_000790f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "void * rsa2_openssh_createkey(ssh_signkey *self,uchar **blob,int *len)\n\n{\n  RSAKey *key;\n  Bignum pvVar1;\n  int iVar2;\n  \n  key = (RSAKey *)(*(code *)PTR_safemalloc_000790d0)(1,0x24);\n  key->comment = (char *)0x0;\n  pvVar1 = getmp((char **)blob,len);\n  key->modulus = pvVar1;\n  pvVar1 = getmp((char **)blob,len);\n  key->exponent = pvVar1;\n  pvVar1 = getmp((char **)blob,len);\n  key->private_exponent = pvVar1;\n  pvVar1 = getmp((char **)blob,len);\n  key->iqmp = pvVar1;\n  pvVar1 = getmp((char **)blob,len);\n  key->p = pvVar1;\n  pvVar1 = getmp((char **)blob,len);\n  key->q = pvVar1;\n  if ((((key->modulus != (Bignum)0x0) && (key->exponent != (Bignum)0x0)) &&\n      (key->private_exponent != (Bignum)0x0)) &&\n     (((key->iqmp != (Bignum)0x0 && (key->p != (Bignum)0x0)) && (pvVar1 != (Bignum)0x0)))) {\n    iVar2 = rsa_verify(key);\n    if (iVar2 == 0) {\n      freersakey(key);\n      (*(code *)PTR_safefree_000790f0)(key);\n      key = (RSAKey *)0x0;\n    }\n    return key;\n  }\n  freersakey(key);\n  (*(code *)PTR_safefree_000790f0)(key);\n  return (void *)0x0;\n}\n\n" (function_definition "void * rsa2_openssh_createkey(ssh_signkey *self,uchar **blob,int *len)\n\n{\n  RSAKey *key;\n  Bignum pvVar1;\n  int iVar2;\n  \n  key = (RSAKey *)(*(code *)PTR_safemalloc_000790d0)(1,0x24);\n  key->comment = (char *)0x0;\n  pvVar1 = getmp((char **)blob,len);\n  key->modulus = pvVar1;\n  pvVar1 = getmp((char **)blob,len);\n  key->exponent = pvVar1;\n  pvVar1 = getmp((char **)blob,len);\n  key->private_exponent = pvVar1;\n  pvVar1 = getmp((char **)blob,len);\n  key->iqmp = pvVar1;\n  pvVar1 = getmp((char **)blob,len);\n  key->p = pvVar1;\n  pvVar1 = getmp((char **)blob,len);\n  key->q = pvVar1;\n  if ((((key->modulus != (Bignum)0x0) && (key->exponent != (Bignum)0x0)) &&\n      (key->private_exponent != (Bignum)0x0)) &&\n     (((key->iqmp != (Bignum)0x0 && (key->p != (Bignum)0x0)) && (pvVar1 != (Bignum)0x0)))) {\n    iVar2 = rsa_verify(key);\n    if (iVar2 == 0) {\n      freersakey(key);\n      (*(code *)PTR_safefree_000790f0)(key);\n      key = (RSAKey *)0x0;\n    }\n    return key;\n  }\n  freersakey(key);\n  (*(code *)PTR_safefree_000790f0)(key);\n  return (void *)0x0;\n}" primitive_type (pointer_declarator "* rsa2_openssh_createkey(ssh_signkey *self,uchar **blob,int *len)" * (function_declarator "rsa2_openssh_createkey(ssh_signkey *self,uchar **blob,int *len)" identifier (parameter_list "(ssh_signkey *self,uchar **blob,int *len)" ( (parameter_declaration "ssh_signkey *self" type_identifier (pointer_declarator "*self" * identifier)) , (parameter_declaration "uchar **blob" type_identifier (pointer_declarator "**blob" * (pointer_declarator "*blob" * identifier))) , (parameter_declaration "int *len" primitive_type (pointer_declarator "*len" * identifier)) )))) (compound_statement "{\n  RSAKey *key;\n  Bignum pvVar1;\n  int iVar2;\n  \n  key = (RSAKey *)(*(code *)PTR_safemalloc_000790d0)(1,0x24);\n  key->comment = (char *)0x0;\n  pvVar1 = getmp((char **)blob,len);\n  key->modulus = pvVar1;\n  pvVar1 = getmp((char **)blob,len);\n  key->exponent = pvVar1;\n  pvVar1 = getmp((char **)blob,len);\n  key->private_exponent = pvVar1;\n  pvVar1 = getmp((char **)blob,len);\n  key->iqmp = pvVar1;\n  pvVar1 = getmp((char **)blob,len);\n  key->p = pvVar1;\n  pvVar1 = getmp((char **)blob,len);\n  key->q = pvVar1;\n  if ((((key->modulus != (Bignum)0x0) && (key->exponent != (Bignum)0x0)) &&\n      (key->private_exponent != (Bignum)0x0)) &&\n     (((key->iqmp != (Bignum)0x0 && (key->p != (Bignum)0x0)) && (pvVar1 != (Bignum)0x0)))) {\n    iVar2 = rsa_verify(key);\n    if (iVar2 == 0) {\n      freersakey(key);\n      (*(code *)PTR_safefree_000790f0)(key);\n      key = (RSAKey *)0x0;\n    }\n    return key;\n  }\n  freersakey(key);\n  (*(code *)PTR_safefree_000790f0)(key);\n  return (void *)0x0;\n}" { (declaration "RSAKey *key;" type_identifier (pointer_declarator "*key" * identifier) ;) (declaration "Bignum pvVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "key = (RSAKey *)(*(code *)PTR_safemalloc_000790d0)(1,0x24);" (assignment_expression "key = (RSAKey *)(*(code *)PTR_safemalloc_000790d0)(1,0x24)" identifier = (cast_expression "(RSAKey *)(*(code *)PTR_safemalloc_000790d0)(1,0x24)" ( (type_descriptor "RSAKey *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_safemalloc_000790d0)(1,0x24)" (parenthesized_expression "(*(code *)PTR_safemalloc_000790d0)" ( (pointer_expression "*(code *)PTR_safemalloc_000790d0" * (cast_expression "(code *)PTR_safemalloc_000790d0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,0x24)" ( number_literal , number_literal ))))) ;) (expression_statement "key->comment = (char *)0x0;" (assignment_expression "key->comment = (char *)0x0" (field_expression "key->comment" identifier -> field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pvVar1 = getmp((char **)blob,len);" (assignment_expression "pvVar1 = getmp((char **)blob,len)" identifier = (call_expression "getmp((char **)blob,len)" identifier (argument_list "((char **)blob,len)" ( (cast_expression "(char **)blob" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier) , identifier )))) ;) (expression_statement "key->modulus = pvVar1;" (assignment_expression "key->modulus = pvVar1" (field_expression "key->modulus" identifier -> field_identifier) = identifier) ;) (expression_statement "pvVar1 = getmp((char **)blob,len);" (assignment_expression "pvVar1 = getmp((char **)blob,len)" identifier = (call_expression "getmp((char **)blob,len)" identifier (argument_list "((char **)blob,len)" ( (cast_expression "(char **)blob" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier) , identifier )))) ;) (expression_statement "key->exponent = pvVar1;" (assignment_expression "key->exponent = pvVar1" (field_expression "key->exponent" identifier -> field_identifier) = identifier) ;) (expression_statement "pvVar1 = getmp((char **)blob,len);" (assignment_expression "pvVar1 = getmp((char **)blob,len)" identifier = (call_expression "getmp((char **)blob,len)" identifier (argument_list "((char **)blob,len)" ( (cast_expression "(char **)blob" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier) , identifier )))) ;) (expression_statement "key->private_exponent = pvVar1;" (assignment_expression "key->private_exponent = pvVar1" (field_expression "key->private_exponent" identifier -> field_identifier) = identifier) ;) (expression_statement "pvVar1 = getmp((char **)blob,len);" (assignment_expression "pvVar1 = getmp((char **)blob,len)" identifier = (call_expression "getmp((char **)blob,len)" identifier (argument_list "((char **)blob,len)" ( (cast_expression "(char **)blob" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier) , identifier )))) ;) (expression_statement "key->iqmp = pvVar1;" (assignment_expression "key->iqmp = pvVar1" (field_expression "key->iqmp" identifier -> field_identifier) = identifier) ;) (expression_statement "pvVar1 = getmp((char **)blob,len);" (assignment_expression "pvVar1 = getmp((char **)blob,len)" identifier = (call_expression "getmp((char **)blob,len)" identifier (argument_list "((char **)blob,len)" ( (cast_expression "(char **)blob" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier) , identifier )))) ;) (expression_statement "key->p = pvVar1;" (assignment_expression "key->p = pvVar1" (field_expression "key->p" identifier -> field_identifier) = identifier) ;) (expression_statement "pvVar1 = getmp((char **)blob,len);" (assignment_expression "pvVar1 = getmp((char **)blob,len)" identifier = (call_expression "getmp((char **)blob,len)" identifier (argument_list "((char **)blob,len)" ( (cast_expression "(char **)blob" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier) , identifier )))) ;) (expression_statement "key->q = pvVar1;" (assignment_expression "key->q = pvVar1" (field_expression "key->q" identifier -> field_identifier) = identifier) ;) (if_statement "if ((((key->modulus != (Bignum)0x0) && (key->exponent != (Bignum)0x0)) &&\n      (key->private_exponent != (Bignum)0x0)) &&\n     (((key->iqmp != (Bignum)0x0 && (key->p != (Bignum)0x0)) && (pvVar1 != (Bignum)0x0)))) {\n    iVar2 = rsa_verify(key);\n    if (iVar2 == 0) {\n      freersakey(key);\n      (*(code *)PTR_safefree_000790f0)(key);\n      key = (RSAKey *)0x0;\n    }\n    return key;\n  }" if (parenthesized_expression "((((key->modulus != (Bignum)0x0) && (key->exponent != (Bignum)0x0)) &&\n      (key->private_exponent != (Bignum)0x0)) &&\n     (((key->iqmp != (Bignum)0x0 && (key->p != (Bignum)0x0)) && (pvVar1 != (Bignum)0x0))))" ( (binary_expression "(((key->modulus != (Bignum)0x0) && (key->exponent != (Bignum)0x0)) &&\n      (key->private_exponent != (Bignum)0x0)) &&\n     (((key->iqmp != (Bignum)0x0 && (key->p != (Bignum)0x0)) && (pvVar1 != (Bignum)0x0)))" (parenthesized_expression "(((key->modulus != (Bignum)0x0) && (key->exponent != (Bignum)0x0)) &&\n      (key->private_exponent != (Bignum)0x0))" ( (binary_expression "((key->modulus != (Bignum)0x0) && (key->exponent != (Bignum)0x0)) &&\n      (key->private_exponent != (Bignum)0x0)" (parenthesized_expression "((key->modulus != (Bignum)0x0) && (key->exponent != (Bignum)0x0))" ( (binary_expression "(key->modulus != (Bignum)0x0) && (key->exponent != (Bignum)0x0)" (parenthesized_expression "(key->modulus != (Bignum)0x0)" ( (binary_expression "key->modulus != (Bignum)0x0" (field_expression "key->modulus" identifier -> field_identifier) != (cast_expression "(Bignum)0x0" ( (type_descriptor "Bignum" type_identifier) ) number_literal)) )) && (parenthesized_expression "(key->exponent != (Bignum)0x0)" ( (binary_expression "key->exponent != (Bignum)0x0" (field_expression "key->exponent" identifier -> field_identifier) != (cast_expression "(Bignum)0x0" ( (type_descriptor "Bignum" type_identifier) ) number_literal)) ))) )) && (parenthesized_expression "(key->private_exponent != (Bignum)0x0)" ( (binary_expression "key->private_exponent != (Bignum)0x0" (field_expression "key->private_exponent" identifier -> field_identifier) != (cast_expression "(Bignum)0x0" ( (type_descriptor "Bignum" type_identifier) ) number_literal)) ))) )) && (parenthesized_expression "(((key->iqmp != (Bignum)0x0 && (key->p != (Bignum)0x0)) && (pvVar1 != (Bignum)0x0)))" ( (parenthesized_expression "((key->iqmp != (Bignum)0x0 && (key->p != (Bignum)0x0)) && (pvVar1 != (Bignum)0x0))" ( (binary_expression "(key->iqmp != (Bignum)0x0 && (key->p != (Bignum)0x0)) && (pvVar1 != (Bignum)0x0)" (parenthesized_expression "(key->iqmp != (Bignum)0x0 && (key->p != (Bignum)0x0))" ( (binary_expression "key->iqmp != (Bignum)0x0 && (key->p != (Bignum)0x0)" (binary_expression "key->iqmp != (Bignum)0x0" (field_expression "key->iqmp" identifier -> field_identifier) != (cast_expression "(Bignum)0x0" ( (type_descriptor "Bignum" type_identifier) ) number_literal)) && (parenthesized_expression "(key->p != (Bignum)0x0)" ( (binary_expression "key->p != (Bignum)0x0" (field_expression "key->p" identifier -> field_identifier) != (cast_expression "(Bignum)0x0" ( (type_descriptor "Bignum" type_identifier) ) number_literal)) ))) )) && (parenthesized_expression "(pvVar1 != (Bignum)0x0)" ( (binary_expression "pvVar1 != (Bignum)0x0" identifier != (cast_expression "(Bignum)0x0" ( (type_descriptor "Bignum" type_identifier) ) number_literal)) ))) )) ))) )) (compound_statement "{\n    iVar2 = rsa_verify(key);\n    if (iVar2 == 0) {\n      freersakey(key);\n      (*(code *)PTR_safefree_000790f0)(key);\n      key = (RSAKey *)0x0;\n    }\n    return key;\n  }" { (expression_statement "iVar2 = rsa_verify(key);" (assignment_expression "iVar2 = rsa_verify(key)" identifier = (call_expression "rsa_verify(key)" identifier (argument_list "(key)" ( identifier )))) ;) (if_statement "if (iVar2 == 0) {\n      freersakey(key);\n      (*(code *)PTR_safefree_000790f0)(key);\n      key = (RSAKey *)0x0;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      freersakey(key);\n      (*(code *)PTR_safefree_000790f0)(key);\n      key = (RSAKey *)0x0;\n    }" { (expression_statement "freersakey(key);" (call_expression "freersakey(key)" identifier (argument_list "(key)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_000790f0)(key);" (call_expression "(*(code *)PTR_safefree_000790f0)(key)" (parenthesized_expression "(*(code *)PTR_safefree_000790f0)" ( (pointer_expression "*(code *)PTR_safefree_000790f0" * (cast_expression "(code *)PTR_safefree_000790f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(key)" ( identifier ))) ;) (expression_statement "key = (RSAKey *)0x0;" (assignment_expression "key = (RSAKey *)0x0" identifier = (cast_expression "(RSAKey *)0x0" ( (type_descriptor "RSAKey *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (return_statement "return key;" return identifier ;) })) (expression_statement "freersakey(key);" (call_expression "freersakey(key)" identifier (argument_list "(key)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_000790f0)(key);" (call_expression "(*(code *)PTR_safefree_000790f0)(key)" (parenthesized_expression "(*(code *)PTR_safefree_000790f0)" ( (pointer_expression "*(code *)PTR_safefree_000790f0" * (cast_expression "(code *)PTR_safefree_000790f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(key)" ( identifier ))) ;) (return_statement "return (void *)0x0;" return (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "int FUN_00047bc0(undefined4 param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  iVar1 = (*(code *)PTR_safemalloc_000790d0)(1,0x24);\n  *(undefined4 *)(iVar1 + 0x20) = 0;\n  uVar2 = FUN_00045bbc(param_2,param_3);\n  *(undefined4 *)(iVar1 + 8) = uVar2;\n  uVar2 = FUN_00045bbc(param_2,param_3);\n  *(undefined4 *)(iVar1 + 0xc) = uVar2;\n  uVar2 = FUN_00045bbc(param_2,param_3);\n  *(undefined4 *)(iVar1 + 0x10) = uVar2;\n  uVar2 = FUN_00045bbc(param_2,param_3);\n  *(undefined4 *)(iVar1 + 0x1c) = uVar2;\n  uVar2 = FUN_00045bbc(param_2,param_3);\n  *(undefined4 *)(iVar1 + 0x14) = uVar2;\n  iVar3 = FUN_00045bbc(param_2,param_3);\n  *(int *)(iVar1 + 0x18) = iVar3;\n  if ((((*(int *)(iVar1 + 8) != 0) && (*(int *)(iVar1 + 0xc) != 0)) && (*(int *)(iVar1 + 0x10) != 0)\n      ) && (((*(int *)(iVar1 + 0x1c) != 0 && (*(int *)(iVar1 + 0x14) != 0)) && (iVar3 != 0)))) {\n    iVar3 = rsa_verify(iVar1);\n    if (iVar3 == 0) {\n      freersakey(iVar1);\n      (*(code *)PTR_safefree_000790f0)(iVar1);\n      iVar1 = 0;\n    }\n    return iVar1;\n  }\n  freersakey(iVar1);\n  (*(code *)PTR_safefree_000790f0)(iVar1);\n  return 0;\n}\n\n" (function_definition "int FUN_00047bc0(undefined4 param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  iVar1 = (*(code *)PTR_safemalloc_000790d0)(1,0x24);\n  *(undefined4 *)(iVar1 + 0x20) = 0;\n  uVar2 = FUN_00045bbc(param_2,param_3);\n  *(undefined4 *)(iVar1 + 8) = uVar2;\n  uVar2 = FUN_00045bbc(param_2,param_3);\n  *(undefined4 *)(iVar1 + 0xc) = uVar2;\n  uVar2 = FUN_00045bbc(param_2,param_3);\n  *(undefined4 *)(iVar1 + 0x10) = uVar2;\n  uVar2 = FUN_00045bbc(param_2,param_3);\n  *(undefined4 *)(iVar1 + 0x1c) = uVar2;\n  uVar2 = FUN_00045bbc(param_2,param_3);\n  *(undefined4 *)(iVar1 + 0x14) = uVar2;\n  iVar3 = FUN_00045bbc(param_2,param_3);\n  *(int *)(iVar1 + 0x18) = iVar3;\n  if ((((*(int *)(iVar1 + 8) != 0) && (*(int *)(iVar1 + 0xc) != 0)) && (*(int *)(iVar1 + 0x10) != 0)\n      ) && (((*(int *)(iVar1 + 0x1c) != 0 && (*(int *)(iVar1 + 0x14) != 0)) && (iVar3 != 0)))) {\n    iVar3 = rsa_verify(iVar1);\n    if (iVar3 == 0) {\n      freersakey(iVar1);\n      (*(code *)PTR_safefree_000790f0)(iVar1);\n      iVar1 = 0;\n    }\n    return iVar1;\n  }\n  freersakey(iVar1);\n  (*(code *)PTR_safefree_000790f0)(iVar1);\n  return 0;\n}" primitive_type (function_declarator "FUN_00047bc0(undefined4 param_1,undefined4 param_2,undefined4 param_3)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  iVar1 = (*(code *)PTR_safemalloc_000790d0)(1,0x24);\n  *(undefined4 *)(iVar1 + 0x20) = 0;\n  uVar2 = FUN_00045bbc(param_2,param_3);\n  *(undefined4 *)(iVar1 + 8) = uVar2;\n  uVar2 = FUN_00045bbc(param_2,param_3);\n  *(undefined4 *)(iVar1 + 0xc) = uVar2;\n  uVar2 = FUN_00045bbc(param_2,param_3);\n  *(undefined4 *)(iVar1 + 0x10) = uVar2;\n  uVar2 = FUN_00045bbc(param_2,param_3);\n  *(undefined4 *)(iVar1 + 0x1c) = uVar2;\n  uVar2 = FUN_00045bbc(param_2,param_3);\n  *(undefined4 *)(iVar1 + 0x14) = uVar2;\n  iVar3 = FUN_00045bbc(param_2,param_3);\n  *(int *)(iVar1 + 0x18) = iVar3;\n  if ((((*(int *)(iVar1 + 8) != 0) && (*(int *)(iVar1 + 0xc) != 0)) && (*(int *)(iVar1 + 0x10) != 0)\n      ) && (((*(int *)(iVar1 + 0x1c) != 0 && (*(int *)(iVar1 + 0x14) != 0)) && (iVar3 != 0)))) {\n    iVar3 = rsa_verify(iVar1);\n    if (iVar3 == 0) {\n      freersakey(iVar1);\n      (*(code *)PTR_safefree_000790f0)(iVar1);\n      iVar1 = 0;\n    }\n    return iVar1;\n  }\n  freersakey(iVar1);\n  (*(code *)PTR_safefree_000790f0)(iVar1);\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "iVar1 = (*(code *)PTR_safemalloc_000790d0)(1,0x24);" (assignment_expression "iVar1 = (*(code *)PTR_safemalloc_000790d0)(1,0x24)" identifier = (call_expression "(*(code *)PTR_safemalloc_000790d0)(1,0x24)" (parenthesized_expression "(*(code *)PTR_safemalloc_000790d0)" ( (pointer_expression "*(code *)PTR_safemalloc_000790d0" * (cast_expression "(code *)PTR_safemalloc_000790d0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,0x24)" ( number_literal , number_literal )))) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x20) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x20) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x20)" * (cast_expression "(undefined4 *)(iVar1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) )))) = number_literal) ;) (expression_statement "uVar2 = FUN_00045bbc(param_2,param_3);" (assignment_expression "uVar2 = FUN_00045bbc(param_2,param_3)" identifier = (call_expression "FUN_00045bbc(param_2,param_3)" identifier (argument_list "(param_2,param_3)" ( identifier , identifier )))) ;) (expression_statement "*(undefined4 *)(iVar1 + 8) = uVar2;" (assignment_expression "*(undefined4 *)(iVar1 + 8) = uVar2" (pointer_expression "*(undefined4 *)(iVar1 + 8)" * (cast_expression "(undefined4 *)(iVar1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar2 = FUN_00045bbc(param_2,param_3);" (assignment_expression "uVar2 = FUN_00045bbc(param_2,param_3)" identifier = (call_expression "FUN_00045bbc(param_2,param_3)" identifier (argument_list "(param_2,param_3)" ( identifier , identifier )))) ;) (expression_statement "*(undefined4 *)(iVar1 + 0xc) = uVar2;" (assignment_expression "*(undefined4 *)(iVar1 + 0xc) = uVar2" (pointer_expression "*(undefined4 *)(iVar1 + 0xc)" * (cast_expression "(undefined4 *)(iVar1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar2 = FUN_00045bbc(param_2,param_3);" (assignment_expression "uVar2 = FUN_00045bbc(param_2,param_3)" identifier = (call_expression "FUN_00045bbc(param_2,param_3)" identifier (argument_list "(param_2,param_3)" ( identifier , identifier )))) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x10) = uVar2;" (assignment_expression "*(undefined4 *)(iVar1 + 0x10) = uVar2" (pointer_expression "*(undefined4 *)(iVar1 + 0x10)" * (cast_expression "(undefined4 *)(iVar1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar2 = FUN_00045bbc(param_2,param_3);" (assignment_expression "uVar2 = FUN_00045bbc(param_2,param_3)" identifier = (call_expression "FUN_00045bbc(param_2,param_3)" identifier (argument_list "(param_2,param_3)" ( identifier , identifier )))) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x1c) = uVar2;" (assignment_expression "*(undefined4 *)(iVar1 + 0x1c) = uVar2" (pointer_expression "*(undefined4 *)(iVar1 + 0x1c)" * (cast_expression "(undefined4 *)(iVar1 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x1c)" ( (binary_expression "iVar1 + 0x1c" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar2 = FUN_00045bbc(param_2,param_3);" (assignment_expression "uVar2 = FUN_00045bbc(param_2,param_3)" identifier = (call_expression "FUN_00045bbc(param_2,param_3)" identifier (argument_list "(param_2,param_3)" ( identifier , identifier )))) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x14) = uVar2;" (assignment_expression "*(undefined4 *)(iVar1 + 0x14) = uVar2" (pointer_expression "*(undefined4 *)(iVar1 + 0x14)" * (cast_expression "(undefined4 *)(iVar1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar3 = FUN_00045bbc(param_2,param_3);" (assignment_expression "iVar3 = FUN_00045bbc(param_2,param_3)" identifier = (call_expression "FUN_00045bbc(param_2,param_3)" identifier (argument_list "(param_2,param_3)" ( identifier , identifier )))) ;) (expression_statement "*(int *)(iVar1 + 0x18) = iVar3;" (assignment_expression "*(int *)(iVar1 + 0x18) = iVar3" (pointer_expression "*(int *)(iVar1 + 0x18)" * (cast_expression "(int *)(iVar1 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x18)" ( (binary_expression "iVar1 + 0x18" identifier + number_literal) )))) = identifier) ;) (if_statement "if ((((*(int *)(iVar1 + 8) != 0) && (*(int *)(iVar1 + 0xc) != 0)) && (*(int *)(iVar1 + 0x10) != 0)\n      ) && (((*(int *)(iVar1 + 0x1c) != 0 && (*(int *)(iVar1 + 0x14) != 0)) && (iVar3 != 0)))) {\n    iVar3 = rsa_verify(iVar1);\n    if (iVar3 == 0) {\n      freersakey(iVar1);\n      (*(code *)PTR_safefree_000790f0)(iVar1);\n      iVar1 = 0;\n    }\n    return iVar1;\n  }" if (parenthesized_expression "((((*(int *)(iVar1 + 8) != 0) && (*(int *)(iVar1 + 0xc) != 0)) && (*(int *)(iVar1 + 0x10) != 0)\n      ) && (((*(int *)(iVar1 + 0x1c) != 0 && (*(int *)(iVar1 + 0x14) != 0)) && (iVar3 != 0))))" ( (binary_expression "(((*(int *)(iVar1 + 8) != 0) && (*(int *)(iVar1 + 0xc) != 0)) && (*(int *)(iVar1 + 0x10) != 0)\n      ) && (((*(int *)(iVar1 + 0x1c) != 0 && (*(int *)(iVar1 + 0x14) != 0)) && (iVar3 != 0)))" (parenthesized_expression "(((*(int *)(iVar1 + 8) != 0) && (*(int *)(iVar1 + 0xc) != 0)) && (*(int *)(iVar1 + 0x10) != 0)\n      )" ( (binary_expression "((*(int *)(iVar1 + 8) != 0) && (*(int *)(iVar1 + 0xc) != 0)) && (*(int *)(iVar1 + 0x10) != 0)" (parenthesized_expression "((*(int *)(iVar1 + 8) != 0) && (*(int *)(iVar1 + 0xc) != 0))" ( (binary_expression "(*(int *)(iVar1 + 8) != 0) && (*(int *)(iVar1 + 0xc) != 0)" (parenthesized_expression "(*(int *)(iVar1 + 8) != 0)" ( (binary_expression "*(int *)(iVar1 + 8) != 0" (pointer_expression "*(int *)(iVar1 + 8)" * (cast_expression "(int *)(iVar1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "(*(int *)(iVar1 + 0xc) != 0)" ( (binary_expression "*(int *)(iVar1 + 0xc) != 0" (pointer_expression "*(int *)(iVar1 + 0xc)" * (cast_expression "(int *)(iVar1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) != number_literal) ))) )) && (parenthesized_expression "(*(int *)(iVar1 + 0x10) != 0)" ( (binary_expression "*(int *)(iVar1 + 0x10) != 0" (pointer_expression "*(int *)(iVar1 + 0x10)" * (cast_expression "(int *)(iVar1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) )))) != number_literal) ))) )) && (parenthesized_expression "(((*(int *)(iVar1 + 0x1c) != 0 && (*(int *)(iVar1 + 0x14) != 0)) && (iVar3 != 0)))" ( (parenthesized_expression "((*(int *)(iVar1 + 0x1c) != 0 && (*(int *)(iVar1 + 0x14) != 0)) && (iVar3 != 0))" ( (binary_expression "(*(int *)(iVar1 + 0x1c) != 0 && (*(int *)(iVar1 + 0x14) != 0)) && (iVar3 != 0)" (parenthesized_expression "(*(int *)(iVar1 + 0x1c) != 0 && (*(int *)(iVar1 + 0x14) != 0))" ( (binary_expression "*(int *)(iVar1 + 0x1c) != 0 && (*(int *)(iVar1 + 0x14) != 0)" (binary_expression "*(int *)(iVar1 + 0x1c) != 0" (pointer_expression "*(int *)(iVar1 + 0x1c)" * (cast_expression "(int *)(iVar1 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x1c)" ( (binary_expression "iVar1 + 0x1c" identifier + number_literal) )))) != number_literal) && (parenthesized_expression "(*(int *)(iVar1 + 0x14) != 0)" ( (binary_expression "*(int *)(iVar1 + 0x14) != 0" (pointer_expression "*(int *)(iVar1 + 0x14)" * (cast_expression "(int *)(iVar1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) )))) != number_literal) ))) )) && (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) ))) )) ))) )) (compound_statement "{\n    iVar3 = rsa_verify(iVar1);\n    if (iVar3 == 0) {\n      freersakey(iVar1);\n      (*(code *)PTR_safefree_000790f0)(iVar1);\n      iVar1 = 0;\n    }\n    return iVar1;\n  }" { (expression_statement "iVar3 = rsa_verify(iVar1);" (assignment_expression "iVar3 = rsa_verify(iVar1)" identifier = (call_expression "rsa_verify(iVar1)" identifier (argument_list "(iVar1)" ( identifier )))) ;) (if_statement "if (iVar3 == 0) {\n      freersakey(iVar1);\n      (*(code *)PTR_safefree_000790f0)(iVar1);\n      iVar1 = 0;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      freersakey(iVar1);\n      (*(code *)PTR_safefree_000790f0)(iVar1);\n      iVar1 = 0;\n    }" { (expression_statement "freersakey(iVar1);" (call_expression "freersakey(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_000790f0)(iVar1);" (call_expression "(*(code *)PTR_safefree_000790f0)(iVar1)" (parenthesized_expression "(*(code *)PTR_safefree_000790f0)" ( (pointer_expression "*(code *)PTR_safefree_000790f0" * (cast_expression "(code *)PTR_safefree_000790f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) })) (return_statement "return iVar1;" return identifier ;) })) (expression_statement "freersakey(iVar1);" (call_expression "freersakey(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "(*(code *)PTR_safefree_000790f0)(iVar1);" (call_expression "(*(code *)PTR_safefree_000790f0)(iVar1)" (parenthesized_expression "(*(code *)PTR_safefree_000790f0)" ( (pointer_expression "*(code *)PTR_safefree_000790f0" * (cast_expression "(code *)PTR_safefree_000790f0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar1)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) ))) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) ))) )) && (parenthesized_expression ( (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) ))) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) })) (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (return_statement return LIT ;) })))
(function_definition "int FUN_00047bc0(undefined4 param_1,undefined4 param_2,undefined4 param_3)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  iVar1 = (*(code *)PTR_safemalloc_000790d0)(1,0x24);\n  *(undefined4 *)(iVar1 + 0x20) = 0;\n  uVar2 = FUN_00045bbc(param_2,param_3);\n  *(undefined4 *)(iVar1 + 8) = uVar2;\n  uVar2 = FUN_00045bbc(param_2,param_3);\n  *(undefined4 *)(iVar1 + 0xc) = uVar2;\n  uVar2 = FUN_00045bbc(param_2,param_3);\n  *(undefined4 *)(iVar1 + 0x10) = uVar2;\n  uVar2 = FUN_00045bbc(param_2,param_3);\n  *(undefined4 *)(iVar1 + 0x1c) = uVar2;\n  uVar2 = FUN_00045bbc(param_2,param_3);\n  *(undefined4 *)(iVar1 + 0x14) = uVar2;\n  iVar3 = FUN_00045bbc(param_2,param_3);\n  *(int *)(iVar1 + 0x18) = iVar3;\n  if ((((*(int *)(iVar1 + 8) != 0) && (*(int *)(iVar1 + 0xc) != 0)) && (*(int *)(iVar1 + 0x10) != 0)\n      ) && (((*(int *)(iVar1 + 0x1c) != 0 && (*(int *)(iVar1 + 0x14) != 0)) && (iVar3 != 0)))) {\n    iVar3 = rsa_verify(iVar1);\n    if (iVar3 == 0) {\n      freersakey(iVar1);\n      (*(code *)PTR_safefree_000790f0)(iVar1);\n      iVar1 = 0;\n    }\n    return iVar1;\n  }\n  freersakey(iVar1);\n  (*(code *)PTR_safefree_000790f0)(iVar1);\n  return 0;\n}" (primitive_type "int") (function_declarator "FUN_00047bc0(undefined4 param_1,undefined4 param_2,undefined4 param_3)" (identifier "FUN_00047bc0") (parameter_list "(undefined4 param_1,undefined4 param_2,undefined4 param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  \n  iVar1 = (*(code *)PTR_safemalloc_000790d0)(1,0x24);\n  *(undefined4 *)(iVar1 + 0x20) = 0;\n  uVar2 = FUN_00045bbc(param_2,param_3);\n  *(undefined4 *)(iVar1 + 8) = uVar2;\n  uVar2 = FUN_00045bbc(param_2,param_3);\n  *(undefined4 *)(iVar1 + 0xc) = uVar2;\n  uVar2 = FUN_00045bbc(param_2,param_3);\n  *(undefined4 *)(iVar1 + 0x10) = uVar2;\n  uVar2 = FUN_00045bbc(param_2,param_3);\n  *(undefined4 *)(iVar1 + 0x1c) = uVar2;\n  uVar2 = FUN_00045bbc(param_2,param_3);\n  *(undefined4 *)(iVar1 + 0x14) = uVar2;\n  iVar3 = FUN_00045bbc(param_2,param_3);\n  *(int *)(iVar1 + 0x18) = iVar3;\n  if ((((*(int *)(iVar1 + 8) != 0) && (*(int *)(iVar1 + 0xc) != 0)) && (*(int *)(iVar1 + 0x10) != 0)\n      ) && (((*(int *)(iVar1 + 0x1c) != 0 && (*(int *)(iVar1 + 0x14) != 0)) && (iVar3 != 0)))) {\n    iVar3 = rsa_verify(iVar1);\n    if (iVar3 == 0) {\n      freersakey(iVar1);\n      (*(code *)PTR_safefree_000790f0)(iVar1);\n      iVar1 = 0;\n    }\n    return iVar1;\n  }\n  freersakey(iVar1);\n  (*(code *)PTR_safefree_000790f0)(iVar1);\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (expression_statement "iVar1 = (*(code *)PTR_safemalloc_000790d0)(1,0x24);" (assignment_expression "iVar1 = (*(code *)PTR_safemalloc_000790d0)(1,0x24)" (identifier "iVar1") (= "=") (call_expression "(*(code *)PTR_safemalloc_000790d0)(1,0x24)" (parenthesized_expression "(*(code *)PTR_safemalloc_000790d0)" (( "(") (pointer_expression "*(code *)PTR_safemalloc_000790d0" (* "*") (cast_expression "(code *)PTR_safemalloc_000790d0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safemalloc_000790d0"))) () ")")) (argument_list "(1,0x24)" (( "(") (number_literal "1") (, ",") (number_literal "0x24") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0x20) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x20) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x20)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x20)" (( "(") (binary_expression "iVar1 + 0x20" (identifier "iVar1") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar2 = FUN_00045bbc(param_2,param_3);" (assignment_expression "uVar2 = FUN_00045bbc(param_2,param_3)" (identifier "uVar2") (= "=") (call_expression "FUN_00045bbc(param_2,param_3)" (identifier "FUN_00045bbc") (argument_list "(param_2,param_3)" (( "(") (identifier "param_2") (, ",") (identifier "param_3") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 8) = uVar2;" (assignment_expression "*(undefined4 *)(iVar1 + 8) = uVar2" (pointer_expression "*(undefined4 *)(iVar1 + 8)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 8)" (( "(") (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "uVar2 = FUN_00045bbc(param_2,param_3);" (assignment_expression "uVar2 = FUN_00045bbc(param_2,param_3)" (identifier "uVar2") (= "=") (call_expression "FUN_00045bbc(param_2,param_3)" (identifier "FUN_00045bbc") (argument_list "(param_2,param_3)" (( "(") (identifier "param_2") (, ",") (identifier "param_3") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0xc) = uVar2;" (assignment_expression "*(undefined4 *)(iVar1 + 0xc) = uVar2" (pointer_expression "*(undefined4 *)(iVar1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0xc)" (( "(") (binary_expression "iVar1 + 0xc" (identifier "iVar1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "uVar2 = FUN_00045bbc(param_2,param_3);" (assignment_expression "uVar2 = FUN_00045bbc(param_2,param_3)" (identifier "uVar2") (= "=") (call_expression "FUN_00045bbc(param_2,param_3)" (identifier "FUN_00045bbc") (argument_list "(param_2,param_3)" (( "(") (identifier "param_2") (, ",") (identifier "param_3") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0x10) = uVar2;" (assignment_expression "*(undefined4 *)(iVar1 + 0x10) = uVar2" (pointer_expression "*(undefined4 *)(iVar1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x10)" (( "(") (binary_expression "iVar1 + 0x10" (identifier "iVar1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "uVar2 = FUN_00045bbc(param_2,param_3);" (assignment_expression "uVar2 = FUN_00045bbc(param_2,param_3)" (identifier "uVar2") (= "=") (call_expression "FUN_00045bbc(param_2,param_3)" (identifier "FUN_00045bbc") (argument_list "(param_2,param_3)" (( "(") (identifier "param_2") (, ",") (identifier "param_3") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0x1c) = uVar2;" (assignment_expression "*(undefined4 *)(iVar1 + 0x1c) = uVar2" (pointer_expression "*(undefined4 *)(iVar1 + 0x1c)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x1c)" (( "(") (binary_expression "iVar1 + 0x1c" (identifier "iVar1") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "uVar2 = FUN_00045bbc(param_2,param_3);" (assignment_expression "uVar2 = FUN_00045bbc(param_2,param_3)" (identifier "uVar2") (= "=") (call_expression "FUN_00045bbc(param_2,param_3)" (identifier "FUN_00045bbc") (argument_list "(param_2,param_3)" (( "(") (identifier "param_2") (, ",") (identifier "param_3") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0x14) = uVar2;" (assignment_expression "*(undefined4 *)(iVar1 + 0x14) = uVar2" (pointer_expression "*(undefined4 *)(iVar1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x14)" (( "(") (binary_expression "iVar1 + 0x14" (identifier "iVar1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "iVar3 = FUN_00045bbc(param_2,param_3);" (assignment_expression "iVar3 = FUN_00045bbc(param_2,param_3)" (identifier "iVar3") (= "=") (call_expression "FUN_00045bbc(param_2,param_3)" (identifier "FUN_00045bbc") (argument_list "(param_2,param_3)" (( "(") (identifier "param_2") (, ",") (identifier "param_3") () ")")))) (; ";")) (expression_statement "*(int *)(iVar1 + 0x18) = iVar3;" (assignment_expression "*(int *)(iVar1 + 0x18) = iVar3" (pointer_expression "*(int *)(iVar1 + 0x18)" (* "*") (cast_expression "(int *)(iVar1 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x18)" (( "(") (binary_expression "iVar1 + 0x18" (identifier "iVar1") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (identifier "iVar3")) (; ";")) (if_statement "if ((((*(int *)(iVar1 + 8) != 0) && (*(int *)(iVar1 + 0xc) != 0)) && (*(int *)(iVar1 + 0x10) != 0)\n      ) && (((*(int *)(iVar1 + 0x1c) != 0 && (*(int *)(iVar1 + 0x14) != 0)) && (iVar3 != 0)))) {\n    iVar3 = rsa_verify(iVar1);\n    if (iVar3 == 0) {\n      freersakey(iVar1);\n      (*(code *)PTR_safefree_000790f0)(iVar1);\n      iVar1 = 0;\n    }\n    return iVar1;\n  }" (if "if") (parenthesized_expression "((((*(int *)(iVar1 + 8) != 0) && (*(int *)(iVar1 + 0xc) != 0)) && (*(int *)(iVar1 + 0x10) != 0)\n      ) && (((*(int *)(iVar1 + 0x1c) != 0 && (*(int *)(iVar1 + 0x14) != 0)) && (iVar3 != 0))))" (( "(") (binary_expression "(((*(int *)(iVar1 + 8) != 0) && (*(int *)(iVar1 + 0xc) != 0)) && (*(int *)(iVar1 + 0x10) != 0)\n      ) && (((*(int *)(iVar1 + 0x1c) != 0 && (*(int *)(iVar1 + 0x14) != 0)) && (iVar3 != 0)))" (parenthesized_expression "(((*(int *)(iVar1 + 8) != 0) && (*(int *)(iVar1 + 0xc) != 0)) && (*(int *)(iVar1 + 0x10) != 0)\n      )" (( "(") (binary_expression "((*(int *)(iVar1 + 8) != 0) && (*(int *)(iVar1 + 0xc) != 0)) && (*(int *)(iVar1 + 0x10) != 0)" (parenthesized_expression "((*(int *)(iVar1 + 8) != 0) && (*(int *)(iVar1 + 0xc) != 0))" (( "(") (binary_expression "(*(int *)(iVar1 + 8) != 0) && (*(int *)(iVar1 + 0xc) != 0)" (parenthesized_expression "(*(int *)(iVar1 + 8) != 0)" (( "(") (binary_expression "*(int *)(iVar1 + 8) != 0" (pointer_expression "*(int *)(iVar1 + 8)" (* "*") (cast_expression "(int *)(iVar1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 8)" (( "(") (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (number_literal "8")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(iVar1 + 0xc) != 0)" (( "(") (binary_expression "*(int *)(iVar1 + 0xc) != 0" (pointer_expression "*(int *)(iVar1 + 0xc)" (* "*") (cast_expression "(int *)(iVar1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0xc)" (( "(") (binary_expression "iVar1 + 0xc" (identifier "iVar1") (+ "+") (number_literal "0xc")) () ")")))) (!= "!=") (number_literal "0")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(iVar1 + 0x10) != 0)" (( "(") (binary_expression "*(int *)(iVar1 + 0x10) != 0" (pointer_expression "*(int *)(iVar1 + 0x10)" (* "*") (cast_expression "(int *)(iVar1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x10)" (( "(") (binary_expression "iVar1 + 0x10" (identifier "iVar1") (+ "+") (number_literal "0x10")) () ")")))) (!= "!=") (number_literal "0")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(((*(int *)(iVar1 + 0x1c) != 0 && (*(int *)(iVar1 + 0x14) != 0)) && (iVar3 != 0)))" (( "(") (parenthesized_expression "((*(int *)(iVar1 + 0x1c) != 0 && (*(int *)(iVar1 + 0x14) != 0)) && (iVar3 != 0))" (( "(") (binary_expression "(*(int *)(iVar1 + 0x1c) != 0 && (*(int *)(iVar1 + 0x14) != 0)) && (iVar3 != 0)" (parenthesized_expression "(*(int *)(iVar1 + 0x1c) != 0 && (*(int *)(iVar1 + 0x14) != 0))" (( "(") (binary_expression "*(int *)(iVar1 + 0x1c) != 0 && (*(int *)(iVar1 + 0x14) != 0)" (binary_expression "*(int *)(iVar1 + 0x1c) != 0" (pointer_expression "*(int *)(iVar1 + 0x1c)" (* "*") (cast_expression "(int *)(iVar1 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x1c)" (( "(") (binary_expression "iVar1 + 0x1c" (identifier "iVar1") (+ "+") (number_literal "0x1c")) () ")")))) (!= "!=") (number_literal "0")) (&& "&&") (parenthesized_expression "(*(int *)(iVar1 + 0x14) != 0)" (( "(") (binary_expression "*(int *)(iVar1 + 0x14) != 0" (pointer_expression "*(int *)(iVar1 + 0x14)" (* "*") (cast_expression "(int *)(iVar1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x14)" (( "(") (binary_expression "iVar1 + 0x14" (identifier "iVar1") (+ "+") (number_literal "0x14")) () ")")))) (!= "!=") (number_literal "0")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n    iVar3 = rsa_verify(iVar1);\n    if (iVar3 == 0) {\n      freersakey(iVar1);\n      (*(code *)PTR_safefree_000790f0)(iVar1);\n      iVar1 = 0;\n    }\n    return iVar1;\n  }" ({ "{") (expression_statement "iVar3 = rsa_verify(iVar1);" (assignment_expression "iVar3 = rsa_verify(iVar1)" (identifier "iVar3") (= "=") (call_expression "rsa_verify(iVar1)" (identifier "rsa_verify") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n      freersakey(iVar1);\n      (*(code *)PTR_safefree_000790f0)(iVar1);\n      iVar1 = 0;\n    }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      freersakey(iVar1);\n      (*(code *)PTR_safefree_000790f0)(iVar1);\n      iVar1 = 0;\n    }" ({ "{") (expression_statement "freersakey(iVar1);" (call_expression "freersakey(iVar1)" (identifier "freersakey") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_safefree_000790f0)(iVar1);" (call_expression "(*(code *)PTR_safefree_000790f0)(iVar1)" (parenthesized_expression "(*(code *)PTR_safefree_000790f0)" (( "(") (pointer_expression "*(code *)PTR_safefree_000790f0" (* "*") (cast_expression "(code *)PTR_safefree_000790f0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safefree_000790f0"))) () ")")) (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" (identifier "iVar1") (= "=") (number_literal "0")) (; ";")) (} "}"))) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (expression_statement "freersakey(iVar1);" (call_expression "freersakey(iVar1)" (identifier "freersakey") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (expression_statement "(*(code *)PTR_safefree_000790f0)(iVar1);" (call_expression "(*(code *)PTR_safefree_000790f0)(iVar1)" (parenthesized_expression "(*(code *)PTR_safefree_000790f0)" (( "(") (pointer_expression "*(code *)PTR_safefree_000790f0" (* "*") (cast_expression "(code *)PTR_safefree_000790f0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safefree_000790f0"))) () ")")) (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

void * function_1(type_1 *self,type_2 **blob,int *len)

{
  type_3 *key;
  type_4 var_2;
  int var_4;
  
  key = (type_3 *)(*(type_5 *)PTR_safemalloc_000790d0)(1,0x24);
  key->comment = (char *)0x0;
  var_2 = var_1((char **)blob,len);
  key->modulus = var_2;
  var_2 = var_1((char **)blob,len);
  key->exponent = var_2;
  var_2 = var_1((char **)blob,len);
  key->private_exponent = var_2;
  var_2 = var_1((char **)blob,len);
  key->iqmp = var_2;
  var_2 = var_1((char **)blob,len);
  key->p = var_2;
  var_2 = var_1((char **)blob,len);
  key->q = var_2;
  if ((((key->modulus != (type_4)0x0) && (key->exponent != (type_4)0x0)) &&
      (key->private_exponent != (type_4)0x0)) &&
     (((key->iqmp != (type_4)0x0 && (key->p != (type_4)0x0)) && (var_2 != (type_4)0x0)))) {
    var_4 = var_3(key);
    if (var_4 == 0) {
      var_5(key);
      (*(type_5 *)PTR_safefree_000790f0)(key);
      key = (type_3 *)0x0;
    }
    return key;
  }
  var_5(key);
  (*(type_5 *)PTR_safefree_000790f0)(key);
  return (void *)0x0;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (number_literal) (number_literal))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (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: (identifier) right: (number_literal))))) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))) right: (parenthesized_expression (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (return_statement (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier)))) (return_statement (number_literal)))))

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

{
  int iVar1;
  undefined4 uVar2;
  int iVar3;
  
  iVar1 = (*(code *)PTR_safemalloc_000790d0)(1,0x24);
  *(undefined4 *)(iVar1 + 0x20) = 0;
  uVar2 = FUN_00045bbc(param_2,param_3);
  *(undefined4 *)(iVar1 + 8) = uVar2;
  uVar2 = FUN_00045bbc(param_2,param_3);
  *(undefined4 *)(iVar1 + 0xc) = uVar2;
  uVar2 = FUN_00045bbc(param_2,param_3);
  *(undefined4 *)(iVar1 + 0x10) = uVar2;
  uVar2 = FUN_00045bbc(param_2,param_3);
  *(undefined4 *)(iVar1 + 0x1c) = uVar2;
  uVar2 = FUN_00045bbc(param_2,param_3);
  *(undefined4 *)(iVar1 + 0x14) = uVar2;
  iVar3 = FUN_00045bbc(param_2,param_3);
  *(int *)(iVar1 + 0x18) = iVar3;
  if ((((*(int *)(iVar1 + 8) != 0) && (*(int *)(iVar1 + 0xc) != 0)) && (*(int *)(iVar1 + 0x10) != 0)
      ) && (((*(int *)(iVar1 + 0x1c) != 0 && (*(int *)(iVar1 + 0x14) != 0)) && (iVar3 != 0)))) {
    iVar3 = rsa_verify(iVar1);
    if (iVar3 == 0) {
      freersakey(iVar1);
      (*(code *)PTR_safefree_000790f0)(iVar1);
      iVar1 = 0;
    }
    return iVar1;
  }
  freersakey(iVar1);
  (*(code *)PTR_safefree_000790f0)(iVar1);
  return 0;
}

