
int rsaencrypt(uchar *data,int length,RSAKey *key)

{
  int iVar1;
  uint uVar2;
  Bignum_conflict base_in;
  Bignum_conflict bn;
  uchar *puVar3;
  
  if (key->bytes <= length + 3) {
    return 0;
  }
  (*(code *)PTR_memmove_00111fe8)(data + (key->bytes - length),data,length);
  *data = '\0';
  data[1] = '\x02';
  iVar1 = key->bytes - length;
  if (3 < iVar1) {
    puVar3 = data;
    do {
      do {
        uVar2 = random_byte();
        puVar3[2] = (uchar)uVar2;
      } while ((uVar2 & 0xff) == 0);
      puVar3 = puVar3 + 1;
      iVar1 = key->bytes - length;
    } while ((int)(puVar3 + (2 - (int)data)) < iVar1 + -1);
  }
  data[iVar1 + -1] = '\0';
  base_in = bignum_from_bytes(data,key->bytes);
  bn = modpow(base_in,(Bignum_conflict)key->exponent,(Bignum_conflict)key->modulus);
  if (key->bytes == 0) {
                    /* WARNING: Subroutine does not return */
    freebn(base_in);
  }
                    /* WARNING: Subroutine does not return */
  bignum_byte(bn,key->bytes + -1);
}



undefined4 rsaencrypt(undefined1 *param_1,int param_2,int param_3)

{
  int iVar1;
  char cVar4;
  undefined4 uVar2;
  undefined4 uVar3;
  undefined1 uVar5;
  undefined1 *puVar6;
  int iVar7;
  
  if (param_2 + 3 < *(int *)(param_3 + 4)) {
    (*(code *)PTR_memmove_00111fe8)(param_1 + (*(int *)(param_3 + 4) - param_2),param_1,param_2);
    *param_1 = 0;
    param_1[1] = 2;
    iVar1 = *(int *)(param_3 + 4) - param_2;
    if (3 < iVar1) {
      puVar6 = param_1;
      do {
        do {
          cVar4 = random_byte();
          puVar6[2] = cVar4;
        } while (cVar4 == '\0');
        puVar6 = puVar6 + 1;
        iVar1 = *(int *)(param_3 + 4) - param_2;
      } while ((int)(puVar6 + (2 - (int)param_1)) < iVar1 + -1);
    }
    param_1[iVar1 + -1] = 0;
    uVar2 = bignum_from_bytes(param_1,*(undefined4 *)(param_3 + 4));
    uVar3 = modpow(uVar2,*(undefined4 *)(param_3 + 0xc),*(undefined4 *)(param_3 + 8));
    iVar1 = *(int *)(param_3 + 4) + -1;
    if (*(int *)(param_3 + 4) != 0) {
      do {
        iVar7 = iVar1 + -1;
        uVar5 = bignum_byte(uVar3,iVar1);
        *param_1 = uVar5;
        iVar1 = iVar7;
        param_1 = param_1 + 1;
      } while (iVar7 != -1);
    }
    freebn(uVar2);
    freebn(uVar3);
    return 1;
  }
  return 0;
}


lui gp,0x9
addiu gp,gp,0x7cec
addu gp,gp,t9
lw v1,0x4(a2)
addiu v0,a1,0x3
slt v0,v0,v1
bne v0,zero,0x000815ec
_or v0,zero,zero
jr ra
_nop
addiu sp,sp,-0x30
lw t9,-0x72c8(gp)
subu v1,v1,a1
sw s1,0x1c(sp)
or s1,a0,zero
addu a0,a0,v1
sw gp,0x10(sp)
sw s3,0x24(sp)
or s3,a1,zero
sw s2,0x20(sp)
or s2,a2,zero
sw ra,0x2c(sp)
or a2,a1,zero
sw s4,0x28(sp)
or a1,s1,zero
jalr t9
_sw s0,0x18(sp)
li v0,0x2
lw gp,0x10(sp)
sb zero,0x0(s1)
sb v0,0x1(s1)
lw v0,0x4(s2)
subu v0,v0,s3
slti v1,v0,0x4
bne v1,zero,0x00081698
_li s4,0x2
or s0,s1,zero
subu s4,s4,s1
lw t9,-0x7af8(gp)
bal 0x000800b0
_nop
andi v0,v0,0xff
lw gp,0x10(sp)
beq v0,zero,0x0008165c
_sb v0,0x2(s0)
lw v0,0x4(s2)
addiu s0,s0,0x1
addu a0,s4,s0
subu v0,v0,s3
addiu v1,v0,-0x1
slt v1,a0,v1
bne v1,zero,0x00081660
_lw t9,-0x7af8(gp)
addu v0,s1,v0
lw t9,-0x7b54(gp)
or a0,s1,zero
li s3,-0x1
sb zero,-0x1(v0)
bal 0x00067f70
_lw a1,0x4(s2)
lw gp,0x10(sp)
or a0,v0,zero
lw a2,0x8(s2)
or s4,v0,zero
lw t9,-0x78f4(gp)
bal 0x0006a604
_lw a1,0xc(s2)
lw v1,0x4(s2)
or s2,v0,zero
lw gp,0x10(sp)
beq v1,zero,0x00081708
_addiu s0,v1,-0x1
lw t9,-0x7b4c(gp)
addiu s1,s1,0x1
or a1,s0,zero
or a0,s2,zero
bal 0x00068410
_addiu s0,s0,-0x1
lw gp,0x10(sp)
bne s0,s3,0x000816e4
_sb v0,-0x1(s1)
lw t9,-0x7a34(gp)
bal 0x000679c4
_or a0,s4,zero
lw gp,0x10(sp)
lw t9,-0x7a34(gp)
bal 0x000679c4
_or a0,s2,zero
li v0,0x1
lw ra,0x2c(sp)
lw s4,0x28(sp)
lw s3,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x30
(translation_unit "undefined4 rsaencrypt(undefined1 *param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  char cVar4;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined1 uVar5;\n  undefined1 *puVar6;\n  int iVar7;\n  \n  if (param_2 + 3 < *(int *)(param_3 + 4)) {\n    (*(code *)PTR_memmove_00111fe8)(param_1 + (*(int *)(param_3 + 4) - param_2),param_1,param_2);\n    *param_1 = 0;\n    param_1[1] = 2;\n    iVar1 = *(int *)(param_3 + 4) - param_2;\n    if (3 < iVar1) {\n      puVar6 = param_1;\n      do {\n        do {\n          cVar4 = random_byte();\n          puVar6[2] = cVar4;\n        } while (cVar4 == '\0');\n        puVar6 = puVar6 + 1;\n        iVar1 = *(int *)(param_3 + 4) - param_2;\n      } while ((int)(puVar6 + (2 - (int)param_1)) < iVar1 + -1);\n    }\n    param_1[iVar1 + -1] = 0;\n    uVar2 = bignum_from_bytes(param_1,*(undefined4 *)(param_3 + 4));\n    uVar3 = modpow(uVar2,*(undefined4 *)(param_3 + 0xc),*(undefined4 *)(param_3 + 8));\n    iVar1 = *(int *)(param_3 + 4) + -1;\n    if (*(int *)(param_3 + 4) != 0) {\n      do {\n        iVar7 = iVar1 + -1;\n        uVar5 = bignum_byte(uVar3,iVar1);\n        *param_1 = uVar5;\n        iVar1 = iVar7;\n        param_1 = param_1 + 1;\n      } while (iVar7 != -1);\n    }\n    freebn(uVar2);\n    freebn(uVar3);\n    return 1;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 rsaencrypt(undefined1 *param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  char cVar4;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined1 uVar5;\n  undefined1 *puVar6;\n  int iVar7;\n  \n  if (param_2 + 3 < *(int *)(param_3 + 4)) {\n    (*(code *)PTR_memmove_00111fe8)(param_1 + (*(int *)(param_3 + 4) - param_2),param_1,param_2);\n    *param_1 = 0;\n    param_1[1] = 2;\n    iVar1 = *(int *)(param_3 + 4) - param_2;\n    if (3 < iVar1) {\n      puVar6 = param_1;\n      do {\n        do {\n          cVar4 = random_byte();\n          puVar6[2] = cVar4;\n        } while (cVar4 == '\0');\n        puVar6 = puVar6 + 1;\n        iVar1 = *(int *)(param_3 + 4) - param_2;\n      } while ((int)(puVar6 + (2 - (int)param_1)) < iVar1 + -1);\n    }\n    param_1[iVar1 + -1] = 0;\n    uVar2 = bignum_from_bytes(param_1,*(undefined4 *)(param_3 + 4));\n    uVar3 = modpow(uVar2,*(undefined4 *)(param_3 + 0xc),*(undefined4 *)(param_3 + 8));\n    iVar1 = *(int *)(param_3 + 4) + -1;\n    if (*(int *)(param_3 + 4) != 0) {\n      do {\n        iVar7 = iVar1 + -1;\n        uVar5 = bignum_byte(uVar3,iVar1);\n        *param_1 = uVar5;\n        iVar1 = iVar7;\n        param_1 = param_1 + 1;\n      } while (iVar7 != -1);\n    }\n    freebn(uVar2);\n    freebn(uVar3);\n    return 1;\n  }\n  return 0;\n}" type_identifier (function_declarator "rsaencrypt(undefined1 *param_1,int param_2,int param_3)" identifier (parameter_list "(undefined1 *param_1,int param_2,int param_3)" ( (parameter_declaration "undefined1 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  char cVar4;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined1 uVar5;\n  undefined1 *puVar6;\n  int iVar7;\n  \n  if (param_2 + 3 < *(int *)(param_3 + 4)) {\n    (*(code *)PTR_memmove_00111fe8)(param_1 + (*(int *)(param_3 + 4) - param_2),param_1,param_2);\n    *param_1 = 0;\n    param_1[1] = 2;\n    iVar1 = *(int *)(param_3 + 4) - param_2;\n    if (3 < iVar1) {\n      puVar6 = param_1;\n      do {\n        do {\n          cVar4 = random_byte();\n          puVar6[2] = cVar4;\n        } while (cVar4 == '\0');\n        puVar6 = puVar6 + 1;\n        iVar1 = *(int *)(param_3 + 4) - param_2;\n      } while ((int)(puVar6 + (2 - (int)param_1)) < iVar1 + -1);\n    }\n    param_1[iVar1 + -1] = 0;\n    uVar2 = bignum_from_bytes(param_1,*(undefined4 *)(param_3 + 4));\n    uVar3 = modpow(uVar2,*(undefined4 *)(param_3 + 0xc),*(undefined4 *)(param_3 + 8));\n    iVar1 = *(int *)(param_3 + 4) + -1;\n    if (*(int *)(param_3 + 4) != 0) {\n      do {\n        iVar7 = iVar1 + -1;\n        uVar5 = bignum_byte(uVar3,iVar1);\n        *param_1 = uVar5;\n        iVar1 = iVar7;\n        param_1 = param_1 + 1;\n      } while (iVar7 != -1);\n    }\n    freebn(uVar2);\n    freebn(uVar3);\n    return 1;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char cVar4;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined1 uVar5;" type_identifier identifier ;) (declaration "undefined1 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (if_statement "if (param_2 + 3 < *(int *)(param_3 + 4)) {\n    (*(code *)PTR_memmove_00111fe8)(param_1 + (*(int *)(param_3 + 4) - param_2),param_1,param_2);\n    *param_1 = 0;\n    param_1[1] = 2;\n    iVar1 = *(int *)(param_3 + 4) - param_2;\n    if (3 < iVar1) {\n      puVar6 = param_1;\n      do {\n        do {\n          cVar4 = random_byte();\n          puVar6[2] = cVar4;\n        } while (cVar4 == '\0');\n        puVar6 = puVar6 + 1;\n        iVar1 = *(int *)(param_3 + 4) - param_2;\n      } while ((int)(puVar6 + (2 - (int)param_1)) < iVar1 + -1);\n    }\n    param_1[iVar1 + -1] = 0;\n    uVar2 = bignum_from_bytes(param_1,*(undefined4 *)(param_3 + 4));\n    uVar3 = modpow(uVar2,*(undefined4 *)(param_3 + 0xc),*(undefined4 *)(param_3 + 8));\n    iVar1 = *(int *)(param_3 + 4) + -1;\n    if (*(int *)(param_3 + 4) != 0) {\n      do {\n        iVar7 = iVar1 + -1;\n        uVar5 = bignum_byte(uVar3,iVar1);\n        *param_1 = uVar5;\n        iVar1 = iVar7;\n        param_1 = param_1 + 1;\n      } while (iVar7 != -1);\n    }\n    freebn(uVar2);\n    freebn(uVar3);\n    return 1;\n  }" if (parenthesized_expression "(param_2 + 3 < *(int *)(param_3 + 4))" ( (binary_expression "param_2 + 3 < *(int *)(param_3 + 4)" (binary_expression "param_2 + 3" identifier + number_literal) < (pointer_expression "*(int *)(param_3 + 4)" * (cast_expression "(int *)(param_3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) ))))) )) (compound_statement "{\n    (*(code *)PTR_memmove_00111fe8)(param_1 + (*(int *)(param_3 + 4) - param_2),param_1,param_2);\n    *param_1 = 0;\n    param_1[1] = 2;\n    iVar1 = *(int *)(param_3 + 4) - param_2;\n    if (3 < iVar1) {\n      puVar6 = param_1;\n      do {\n        do {\n          cVar4 = random_byte();\n          puVar6[2] = cVar4;\n        } while (cVar4 == '\0');\n        puVar6 = puVar6 + 1;\n        iVar1 = *(int *)(param_3 + 4) - param_2;\n      } while ((int)(puVar6 + (2 - (int)param_1)) < iVar1 + -1);\n    }\n    param_1[iVar1 + -1] = 0;\n    uVar2 = bignum_from_bytes(param_1,*(undefined4 *)(param_3 + 4));\n    uVar3 = modpow(uVar2,*(undefined4 *)(param_3 + 0xc),*(undefined4 *)(param_3 + 8));\n    iVar1 = *(int *)(param_3 + 4) + -1;\n    if (*(int *)(param_3 + 4) != 0) {\n      do {\n        iVar7 = iVar1 + -1;\n        uVar5 = bignum_byte(uVar3,iVar1);\n        *param_1 = uVar5;\n        iVar1 = iVar7;\n        param_1 = param_1 + 1;\n      } while (iVar7 != -1);\n    }\n    freebn(uVar2);\n    freebn(uVar3);\n    return 1;\n  }" { (expression_statement "(*(code *)PTR_memmove_00111fe8)(param_1 + (*(int *)(param_3 + 4) - param_2),param_1,param_2);" (call_expression "(*(code *)PTR_memmove_00111fe8)(param_1 + (*(int *)(param_3 + 4) - param_2),param_1,param_2)" (parenthesized_expression "(*(code *)PTR_memmove_00111fe8)" ( (pointer_expression "*(code *)PTR_memmove_00111fe8" * (cast_expression "(code *)PTR_memmove_00111fe8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + (*(int *)(param_3 + 4) - param_2),param_1,param_2)" ( (binary_expression "param_1 + (*(int *)(param_3 + 4) - param_2)" identifier + (parenthesized_expression "(*(int *)(param_3 + 4) - param_2)" ( (binary_expression "*(int *)(param_3 + 4) - param_2" (pointer_expression "*(int *)(param_3 + 4)" * (cast_expression "(int *)(param_3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))) - identifier) ))) , identifier , identifier ))) ;) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "param_1[1] = 2;" (assignment_expression "param_1[1] = 2" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar1 = *(int *)(param_3 + 4) - param_2;" (assignment_expression "iVar1 = *(int *)(param_3 + 4) - param_2" identifier = (binary_expression "*(int *)(param_3 + 4) - param_2" (pointer_expression "*(int *)(param_3 + 4)" * (cast_expression "(int *)(param_3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))) - identifier)) ;) (if_statement "if (3 < iVar1) {\n      puVar6 = param_1;\n      do {\n        do {\n          cVar4 = random_byte();\n          puVar6[2] = cVar4;\n        } while (cVar4 == '\0');\n        puVar6 = puVar6 + 1;\n        iVar1 = *(int *)(param_3 + 4) - param_2;\n      } while ((int)(puVar6 + (2 - (int)param_1)) < iVar1 + -1);\n    }" if (parenthesized_expression "(3 < iVar1)" ( (binary_expression "3 < iVar1" number_literal < identifier) )) (compound_statement "{\n      puVar6 = param_1;\n      do {\n        do {\n          cVar4 = random_byte();\n          puVar6[2] = cVar4;\n        } while (cVar4 == '\0');\n        puVar6 = puVar6 + 1;\n        iVar1 = *(int *)(param_3 + 4) - param_2;\n      } while ((int)(puVar6 + (2 - (int)param_1)) < iVar1 + -1);\n    }" { (expression_statement "puVar6 = param_1;" (assignment_expression "puVar6 = param_1" identifier = identifier) ;) (do_statement "do {\n        do {\n          cVar4 = random_byte();\n          puVar6[2] = cVar4;\n        } while (cVar4 == '\0');\n        puVar6 = puVar6 + 1;\n        iVar1 = *(int *)(param_3 + 4) - param_2;\n      } while ((int)(puVar6 + (2 - (int)param_1)) < iVar1 + -1);" do (compound_statement "{\n        do {\n          cVar4 = random_byte();\n          puVar6[2] = cVar4;\n        } while (cVar4 == '\0');\n        puVar6 = puVar6 + 1;\n        iVar1 = *(int *)(param_3 + 4) - param_2;\n      }" { (do_statement "do {\n          cVar4 = random_byte();\n          puVar6[2] = cVar4;\n        } while (cVar4 == '\0');" do (compound_statement "{\n          cVar4 = random_byte();\n          puVar6[2] = cVar4;\n        }" { (expression_statement "cVar4 = random_byte();" (assignment_expression "cVar4 = random_byte()" identifier = (call_expression "random_byte()" identifier (argument_list "()" ( )))) ;) (expression_statement "puVar6[2] = cVar4;" (assignment_expression "puVar6[2] = cVar4" (subscript_expression "puVar6[2]" identifier [ number_literal ]) = identifier) ;) }) while (parenthesized_expression "(cVar4 == '\0')" ( (binary_expression "cVar4 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "puVar6 = puVar6 + 1;" (assignment_expression "puVar6 = puVar6 + 1" identifier = (binary_expression "puVar6 + 1" identifier + number_literal)) ;) (expression_statement "iVar1 = *(int *)(param_3 + 4) - param_2;" (assignment_expression "iVar1 = *(int *)(param_3 + 4) - param_2" identifier = (binary_expression "*(int *)(param_3 + 4) - param_2" (pointer_expression "*(int *)(param_3 + 4)" * (cast_expression "(int *)(param_3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))) - identifier)) ;) }) while (parenthesized_expression "((int)(puVar6 + (2 - (int)param_1)) < iVar1 + -1)" ( (binary_expression "(int)(puVar6 + (2 - (int)param_1)) < iVar1 + -1" (cast_expression "(int)(puVar6 + (2 - (int)param_1))" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(puVar6 + (2 - (int)param_1))" ( (binary_expression "puVar6 + (2 - (int)param_1)" identifier + (parenthesized_expression "(2 - (int)param_1)" ( (binary_expression "2 - (int)param_1" number_literal - (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ))) < (binary_expression "iVar1 + -1" identifier + number_literal)) )) ;) })) (expression_statement "param_1[iVar1 + -1] = 0;" (assignment_expression "param_1[iVar1 + -1] = 0" (subscript_expression "param_1[iVar1 + -1]" identifier [ (binary_expression "iVar1 + -1" identifier + number_literal) ]) = number_literal) ;) (expression_statement "uVar2 = bignum_from_bytes(param_1,*(undefined4 *)(param_3 + 4));" (assignment_expression "uVar2 = bignum_from_bytes(param_1,*(undefined4 *)(param_3 + 4))" identifier = (call_expression "bignum_from_bytes(param_1,*(undefined4 *)(param_3 + 4))" identifier (argument_list "(param_1,*(undefined4 *)(param_3 + 4))" ( identifier , (pointer_expression "*(undefined4 *)(param_3 + 4)" * (cast_expression "(undefined4 *)(param_3 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))) )))) ;) (expression_statement "uVar3 = modpow(uVar2,*(undefined4 *)(param_3 + 0xc),*(undefined4 *)(param_3 + 8));" (assignment_expression "uVar3 = modpow(uVar2,*(undefined4 *)(param_3 + 0xc),*(undefined4 *)(param_3 + 8))" identifier = (call_expression "modpow(uVar2,*(undefined4 *)(param_3 + 0xc),*(undefined4 *)(param_3 + 8))" identifier (argument_list "(uVar2,*(undefined4 *)(param_3 + 0xc),*(undefined4 *)(param_3 + 8))" ( identifier , (pointer_expression "*(undefined4 *)(param_3 + 0xc)" * (cast_expression "(undefined4 *)(param_3 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xc)" ( (binary_expression "param_3 + 0xc" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_3 + 8)" * (cast_expression "(undefined4 *)(param_3 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 8)" ( (binary_expression "param_3 + 8" identifier + number_literal) )))) )))) ;) (expression_statement "iVar1 = *(int *)(param_3 + 4) + -1;" (assignment_expression "iVar1 = *(int *)(param_3 + 4) + -1" identifier = (binary_expression "*(int *)(param_3 + 4) + -1" (pointer_expression "*(int *)(param_3 + 4)" * (cast_expression "(int *)(param_3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))) + number_literal)) ;) (if_statement "if (*(int *)(param_3 + 4) != 0) {\n      do {\n        iVar7 = iVar1 + -1;\n        uVar5 = bignum_byte(uVar3,iVar1);\n        *param_1 = uVar5;\n        iVar1 = iVar7;\n        param_1 = param_1 + 1;\n      } while (iVar7 != -1);\n    }" if (parenthesized_expression "(*(int *)(param_3 + 4) != 0)" ( (binary_expression "*(int *)(param_3 + 4) != 0" (pointer_expression "*(int *)(param_3 + 4)" * (cast_expression "(int *)(param_3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      do {\n        iVar7 = iVar1 + -1;\n        uVar5 = bignum_byte(uVar3,iVar1);\n        *param_1 = uVar5;\n        iVar1 = iVar7;\n        param_1 = param_1 + 1;\n      } while (iVar7 != -1);\n    }" { (do_statement "do {\n        iVar7 = iVar1 + -1;\n        uVar5 = bignum_byte(uVar3,iVar1);\n        *param_1 = uVar5;\n        iVar1 = iVar7;\n        param_1 = param_1 + 1;\n      } while (iVar7 != -1);" do (compound_statement "{\n        iVar7 = iVar1 + -1;\n        uVar5 = bignum_byte(uVar3,iVar1);\n        *param_1 = uVar5;\n        iVar1 = iVar7;\n        param_1 = param_1 + 1;\n      }" { (expression_statement "iVar7 = iVar1 + -1;" (assignment_expression "iVar7 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) (expression_statement "uVar5 = bignum_byte(uVar3,iVar1);" (assignment_expression "uVar5 = bignum_byte(uVar3,iVar1)" identifier = (call_expression "bignum_byte(uVar3,iVar1)" identifier (argument_list "(uVar3,iVar1)" ( identifier , identifier )))) ;) (expression_statement "*param_1 = uVar5;" (assignment_expression "*param_1 = uVar5" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "iVar1 = iVar7;" (assignment_expression "iVar1 = iVar7" identifier = identifier) ;) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar7 != -1)" ( (binary_expression "iVar7 != -1" identifier != number_literal) )) ;) })) (expression_statement "freebn(uVar2);" (call_expression "freebn(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (expression_statement "freebn(uVar3);" (call_expression "freebn(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) (return_statement "return 1;" return number_literal ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int rsaencrypt(uchar *data,int length,RSAKey *key)\n\n{\n  int iVar1;\n  uint uVar2;\n  Bignum_conflict base_in;\n  Bignum_conflict bn;\n  uchar *puVar3;\n  \n  if (key->bytes <= length + 3) {\n    return 0;\n  }\n  (*(code *)PTR_memmove_00111fe8)(data + (key->bytes - length),data,length);\n  *data = '\0';\n  data[1] = '\x02';\n  iVar1 = key->bytes - length;\n  if (3 < iVar1) {\n    puVar3 = data;\n    do {\n      do {\n        uVar2 = random_byte();\n        puVar3[2] = (uchar)uVar2;\n      } while ((uVar2 & 0xff) == 0);\n      puVar3 = puVar3 + 1;\n      iVar1 = key->bytes - length;\n    } while ((int)(puVar3 + (2 - (int)data)) < iVar1 + -1);\n  }\n  data[iVar1 + -1] = '\0';\n  base_in = bignum_from_bytes(data,key->bytes);\n  bn = modpow(base_in,(Bignum_conflict)key->exponent,(Bignum_conflict)key->modulus);\n  if (key->bytes == 0) {\n                    /* WARNING: Subroutine does not return */\n    freebn(base_in);\n  }\n                    /* WARNING: Subroutine does not return */\n  bignum_byte(bn,key->bytes + -1);\n}\n\n" (function_definition "int rsaencrypt(uchar *data,int length,RSAKey *key)\n\n{\n  int iVar1;\n  uint uVar2;\n  Bignum_conflict base_in;\n  Bignum_conflict bn;\n  uchar *puVar3;\n  \n  if (key->bytes <= length + 3) {\n    return 0;\n  }\n  (*(code *)PTR_memmove_00111fe8)(data + (key->bytes - length),data,length);\n  *data = '\0';\n  data[1] = '\x02';\n  iVar1 = key->bytes - length;\n  if (3 < iVar1) {\n    puVar3 = data;\n    do {\n      do {\n        uVar2 = random_byte();\n        puVar3[2] = (uchar)uVar2;\n      } while ((uVar2 & 0xff) == 0);\n      puVar3 = puVar3 + 1;\n      iVar1 = key->bytes - length;\n    } while ((int)(puVar3 + (2 - (int)data)) < iVar1 + -1);\n  }\n  data[iVar1 + -1] = '\0';\n  base_in = bignum_from_bytes(data,key->bytes);\n  bn = modpow(base_in,(Bignum_conflict)key->exponent,(Bignum_conflict)key->modulus);\n  if (key->bytes == 0) {\n                    /* WARNING: Subroutine does not return */\n    freebn(base_in);\n  }\n                    /* WARNING: Subroutine does not return */\n  bignum_byte(bn,key->bytes + -1);\n}" primitive_type (function_declarator "rsaencrypt(uchar *data,int length,RSAKey *key)" identifier (parameter_list "(uchar *data,int length,RSAKey *key)" ( (parameter_declaration "uchar *data" type_identifier (pointer_declarator "*data" * identifier)) , (parameter_declaration "int length" primitive_type identifier) , (parameter_declaration "RSAKey *key" type_identifier (pointer_declarator "*key" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  Bignum_conflict base_in;\n  Bignum_conflict bn;\n  uchar *puVar3;\n  \n  if (key->bytes <= length + 3) {\n    return 0;\n  }\n  (*(code *)PTR_memmove_00111fe8)(data + (key->bytes - length),data,length);\n  *data = '\0';\n  data[1] = '\x02';\n  iVar1 = key->bytes - length;\n  if (3 < iVar1) {\n    puVar3 = data;\n    do {\n      do {\n        uVar2 = random_byte();\n        puVar3[2] = (uchar)uVar2;\n      } while ((uVar2 & 0xff) == 0);\n      puVar3 = puVar3 + 1;\n      iVar1 = key->bytes - length;\n    } while ((int)(puVar3 + (2 - (int)data)) < iVar1 + -1);\n  }\n  data[iVar1 + -1] = '\0';\n  base_in = bignum_from_bytes(data,key->bytes);\n  bn = modpow(base_in,(Bignum_conflict)key->exponent,(Bignum_conflict)key->modulus);\n  if (key->bytes == 0) {\n                    /* WARNING: Subroutine does not return */\n    freebn(base_in);\n  }\n                    /* WARNING: Subroutine does not return */\n  bignum_byte(bn,key->bytes + -1);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "Bignum_conflict base_in;" type_identifier identifier ;) (declaration "Bignum_conflict bn;" type_identifier identifier ;) (declaration "uchar *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (if_statement "if (key->bytes <= length + 3) {\n    return 0;\n  }" if (parenthesized_expression "(key->bytes <= length + 3)" ( (binary_expression "key->bytes <= length + 3" (field_expression "key->bytes" identifier -> field_identifier) <= (binary_expression "length + 3" identifier + number_literal)) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "(*(code *)PTR_memmove_00111fe8)(data + (key->bytes - length),data,length);" (call_expression "(*(code *)PTR_memmove_00111fe8)(data + (key->bytes - length),data,length)" (parenthesized_expression "(*(code *)PTR_memmove_00111fe8)" ( (pointer_expression "*(code *)PTR_memmove_00111fe8" * (cast_expression "(code *)PTR_memmove_00111fe8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(data + (key->bytes - length),data,length)" ( (binary_expression "data + (key->bytes - length)" identifier + (parenthesized_expression "(key->bytes - length)" ( (binary_expression "key->bytes - length" (field_expression "key->bytes" identifier -> field_identifier) - identifier) ))) , identifier , identifier ))) ;) (expression_statement "*data = '\0';" (assignment_expression "*data = '\0'" (pointer_expression "*data" * identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "data[1] = '\x02';" (assignment_expression "data[1] = '\x02'" (subscript_expression "data[1]" identifier [ number_literal ]) = (char_literal "'\x02'" ' escape_sequence ')) ;) (expression_statement "iVar1 = key->bytes - length;" (assignment_expression "iVar1 = key->bytes - length" identifier = (binary_expression "key->bytes - length" (field_expression "key->bytes" identifier -> field_identifier) - identifier)) ;) (if_statement "if (3 < iVar1) {\n    puVar3 = data;\n    do {\n      do {\n        uVar2 = random_byte();\n        puVar3[2] = (uchar)uVar2;\n      } while ((uVar2 & 0xff) == 0);\n      puVar3 = puVar3 + 1;\n      iVar1 = key->bytes - length;\n    } while ((int)(puVar3 + (2 - (int)data)) < iVar1 + -1);\n  }" if (parenthesized_expression "(3 < iVar1)" ( (binary_expression "3 < iVar1" number_literal < identifier) )) (compound_statement "{\n    puVar3 = data;\n    do {\n      do {\n        uVar2 = random_byte();\n        puVar3[2] = (uchar)uVar2;\n      } while ((uVar2 & 0xff) == 0);\n      puVar3 = puVar3 + 1;\n      iVar1 = key->bytes - length;\n    } while ((int)(puVar3 + (2 - (int)data)) < iVar1 + -1);\n  }" { (expression_statement "puVar3 = data;" (assignment_expression "puVar3 = data" identifier = identifier) ;) (do_statement "do {\n      do {\n        uVar2 = random_byte();\n        puVar3[2] = (uchar)uVar2;\n      } while ((uVar2 & 0xff) == 0);\n      puVar3 = puVar3 + 1;\n      iVar1 = key->bytes - length;\n    } while ((int)(puVar3 + (2 - (int)data)) < iVar1 + -1);" do (compound_statement "{\n      do {\n        uVar2 = random_byte();\n        puVar3[2] = (uchar)uVar2;\n      } while ((uVar2 & 0xff) == 0);\n      puVar3 = puVar3 + 1;\n      iVar1 = key->bytes - length;\n    }" { (do_statement "do {\n        uVar2 = random_byte();\n        puVar3[2] = (uchar)uVar2;\n      } while ((uVar2 & 0xff) == 0);" do (compound_statement "{\n        uVar2 = random_byte();\n        puVar3[2] = (uchar)uVar2;\n      }" { (expression_statement "uVar2 = random_byte();" (assignment_expression "uVar2 = random_byte()" identifier = (call_expression "random_byte()" identifier (argument_list "()" ( )))) ;) (expression_statement "puVar3[2] = (uchar)uVar2;" (assignment_expression "puVar3[2] = (uchar)uVar2" (subscript_expression "puVar3[2]" identifier [ number_literal ]) = (cast_expression "(uchar)uVar2" ( (type_descriptor "uchar" type_identifier) ) identifier)) ;) }) while (parenthesized_expression "((uVar2 & 0xff) == 0)" ( (binary_expression "(uVar2 & 0xff) == 0" (parenthesized_expression "(uVar2 & 0xff)" ( (binary_expression "uVar2 & 0xff" identifier & number_literal) )) == number_literal) )) ;) (expression_statement "puVar3 = puVar3 + 1;" (assignment_expression "puVar3 = puVar3 + 1" identifier = (binary_expression "puVar3 + 1" identifier + number_literal)) ;) (expression_statement "iVar1 = key->bytes - length;" (assignment_expression "iVar1 = key->bytes - length" identifier = (binary_expression "key->bytes - length" (field_expression "key->bytes" identifier -> field_identifier) - identifier)) ;) }) while (parenthesized_expression "((int)(puVar3 + (2 - (int)data)) < iVar1 + -1)" ( (binary_expression "(int)(puVar3 + (2 - (int)data)) < iVar1 + -1" (cast_expression "(int)(puVar3 + (2 - (int)data))" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(puVar3 + (2 - (int)data))" ( (binary_expression "puVar3 + (2 - (int)data)" identifier + (parenthesized_expression "(2 - (int)data)" ( (binary_expression "2 - (int)data" number_literal - (cast_expression "(int)data" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ))) < (binary_expression "iVar1 + -1" identifier + number_literal)) )) ;) })) (expression_statement "data[iVar1 + -1] = '\0';" (assignment_expression "data[iVar1 + -1] = '\0'" (subscript_expression "data[iVar1 + -1]" identifier [ (binary_expression "iVar1 + -1" identifier + number_literal) ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "base_in = bignum_from_bytes(data,key->bytes);" (assignment_expression "base_in = bignum_from_bytes(data,key->bytes)" identifier = (call_expression "bignum_from_bytes(data,key->bytes)" identifier (argument_list "(data,key->bytes)" ( identifier , (field_expression "key->bytes" identifier -> field_identifier) )))) ;) (expression_statement "bn = modpow(base_in,(Bignum_conflict)key->exponent,(Bignum_conflict)key->modulus);" (assignment_expression "bn = modpow(base_in,(Bignum_conflict)key->exponent,(Bignum_conflict)key->modulus)" identifier = (call_expression "modpow(base_in,(Bignum_conflict)key->exponent,(Bignum_conflict)key->modulus)" identifier (argument_list "(base_in,(Bignum_conflict)key->exponent,(Bignum_conflict)key->modulus)" ( identifier , (cast_expression "(Bignum_conflict)key->exponent" ( (type_descriptor "Bignum_conflict" type_identifier) ) (field_expression "key->exponent" identifier -> field_identifier)) , (cast_expression "(Bignum_conflict)key->modulus" ( (type_descriptor "Bignum_conflict" type_identifier) ) (field_expression "key->modulus" identifier -> field_identifier)) )))) ;) (if_statement "if (key->bytes == 0) {\n                    /* WARNING: Subroutine does not return */\n    freebn(base_in);\n  }" if (parenthesized_expression "(key->bytes == 0)" ( (binary_expression "key->bytes == 0" (field_expression "key->bytes" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    freebn(base_in);\n  }" { comment (expression_statement "freebn(base_in);" (call_expression "freebn(base_in)" identifier (argument_list "(base_in)" ( identifier ))) ;) })) comment (expression_statement "bignum_byte(bn,key->bytes + -1);" (call_expression "bignum_byte(bn,key->bytes + -1)" identifier (argument_list "(bn,key->bytes + -1)" ( identifier , (binary_expression "key->bytes + -1" (field_expression "key->bytes" identifier -> field_identifier) + number_literal) ))) ;) })))
(translation_unit "undefined4 rsaencrypt(undefined1 *param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  char cVar4;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined1 uVar5;\n  undefined1 *puVar6;\n  int iVar7;\n  \n  if (param_2 + 3 < *(int *)(param_3 + 4)) {\n    (*(code *)PTR_memmove_00111fe8)(param_1 + (*(int *)(param_3 + 4) - param_2),param_1,param_2);\n    *param_1 = 0;\n    param_1[1] = 2;\n    iVar1 = *(int *)(param_3 + 4) - param_2;\n    if (3 < iVar1) {\n      puVar6 = param_1;\n      do {\n        do {\n          cVar4 = random_byte();\n          puVar6[2] = cVar4;\n        } while (cVar4 == '\0');\n        puVar6 = puVar6 + 1;\n        iVar1 = *(int *)(param_3 + 4) - param_2;\n      } while ((int)(puVar6 + (2 - (int)param_1)) < iVar1 + -1);\n    }\n    param_1[iVar1 + -1] = 0;\n    uVar2 = bignum_from_bytes(param_1,*(undefined4 *)(param_3 + 4));\n    uVar3 = modpow(uVar2,*(undefined4 *)(param_3 + 0xc),*(undefined4 *)(param_3 + 8));\n    iVar1 = *(int *)(param_3 + 4) + -1;\n    if (*(int *)(param_3 + 4) != 0) {\n      do {\n        iVar7 = iVar1 + -1;\n        uVar5 = bignum_byte(uVar3,iVar1);\n        *param_1 = uVar5;\n        iVar1 = iVar7;\n        param_1 = param_1 + 1;\n      } while (iVar7 != -1);\n    }\n    freebn(uVar2);\n    freebn(uVar3);\n    return 1;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 rsaencrypt(undefined1 *param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  char cVar4;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined1 uVar5;\n  undefined1 *puVar6;\n  int iVar7;\n  \n  if (param_2 + 3 < *(int *)(param_3 + 4)) {\n    (*(code *)PTR_memmove_00111fe8)(param_1 + (*(int *)(param_3 + 4) - param_2),param_1,param_2);\n    *param_1 = 0;\n    param_1[1] = 2;\n    iVar1 = *(int *)(param_3 + 4) - param_2;\n    if (3 < iVar1) {\n      puVar6 = param_1;\n      do {\n        do {\n          cVar4 = random_byte();\n          puVar6[2] = cVar4;\n        } while (cVar4 == '\0');\n        puVar6 = puVar6 + 1;\n        iVar1 = *(int *)(param_3 + 4) - param_2;\n      } while ((int)(puVar6 + (2 - (int)param_1)) < iVar1 + -1);\n    }\n    param_1[iVar1 + -1] = 0;\n    uVar2 = bignum_from_bytes(param_1,*(undefined4 *)(param_3 + 4));\n    uVar3 = modpow(uVar2,*(undefined4 *)(param_3 + 0xc),*(undefined4 *)(param_3 + 8));\n    iVar1 = *(int *)(param_3 + 4) + -1;\n    if (*(int *)(param_3 + 4) != 0) {\n      do {\n        iVar7 = iVar1 + -1;\n        uVar5 = bignum_byte(uVar3,iVar1);\n        *param_1 = uVar5;\n        iVar1 = iVar7;\n        param_1 = param_1 + 1;\n      } while (iVar7 != -1);\n    }\n    freebn(uVar2);\n    freebn(uVar3);\n    return 1;\n  }\n  return 0;\n}" type_identifier (function_declarator "rsaencrypt(undefined1 *param_1,int param_2,int param_3)" identifier (parameter_list "(undefined1 *param_1,int param_2,int param_3)" ( (parameter_declaration "undefined1 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  char cVar4;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined1 uVar5;\n  undefined1 *puVar6;\n  int iVar7;\n  \n  if (param_2 + 3 < *(int *)(param_3 + 4)) {\n    (*(code *)PTR_memmove_00111fe8)(param_1 + (*(int *)(param_3 + 4) - param_2),param_1,param_2);\n    *param_1 = 0;\n    param_1[1] = 2;\n    iVar1 = *(int *)(param_3 + 4) - param_2;\n    if (3 < iVar1) {\n      puVar6 = param_1;\n      do {\n        do {\n          cVar4 = random_byte();\n          puVar6[2] = cVar4;\n        } while (cVar4 == '\0');\n        puVar6 = puVar6 + 1;\n        iVar1 = *(int *)(param_3 + 4) - param_2;\n      } while ((int)(puVar6 + (2 - (int)param_1)) < iVar1 + -1);\n    }\n    param_1[iVar1 + -1] = 0;\n    uVar2 = bignum_from_bytes(param_1,*(undefined4 *)(param_3 + 4));\n    uVar3 = modpow(uVar2,*(undefined4 *)(param_3 + 0xc),*(undefined4 *)(param_3 + 8));\n    iVar1 = *(int *)(param_3 + 4) + -1;\n    if (*(int *)(param_3 + 4) != 0) {\n      do {\n        iVar7 = iVar1 + -1;\n        uVar5 = bignum_byte(uVar3,iVar1);\n        *param_1 = uVar5;\n        iVar1 = iVar7;\n        param_1 = param_1 + 1;\n      } while (iVar7 != -1);\n    }\n    freebn(uVar2);\n    freebn(uVar3);\n    return 1;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char cVar4;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "undefined1 uVar5;" type_identifier identifier ;) (declaration "undefined1 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (if_statement "if (param_2 + 3 < *(int *)(param_3 + 4)) {\n    (*(code *)PTR_memmove_00111fe8)(param_1 + (*(int *)(param_3 + 4) - param_2),param_1,param_2);\n    *param_1 = 0;\n    param_1[1] = 2;\n    iVar1 = *(int *)(param_3 + 4) - param_2;\n    if (3 < iVar1) {\n      puVar6 = param_1;\n      do {\n        do {\n          cVar4 = random_byte();\n          puVar6[2] = cVar4;\n        } while (cVar4 == '\0');\n        puVar6 = puVar6 + 1;\n        iVar1 = *(int *)(param_3 + 4) - param_2;\n      } while ((int)(puVar6 + (2 - (int)param_1)) < iVar1 + -1);\n    }\n    param_1[iVar1 + -1] = 0;\n    uVar2 = bignum_from_bytes(param_1,*(undefined4 *)(param_3 + 4));\n    uVar3 = modpow(uVar2,*(undefined4 *)(param_3 + 0xc),*(undefined4 *)(param_3 + 8));\n    iVar1 = *(int *)(param_3 + 4) + -1;\n    if (*(int *)(param_3 + 4) != 0) {\n      do {\n        iVar7 = iVar1 + -1;\n        uVar5 = bignum_byte(uVar3,iVar1);\n        *param_1 = uVar5;\n        iVar1 = iVar7;\n        param_1 = param_1 + 1;\n      } while (iVar7 != -1);\n    }\n    freebn(uVar2);\n    freebn(uVar3);\n    return 1;\n  }" if (parenthesized_expression "(param_2 + 3 < *(int *)(param_3 + 4))" ( (binary_expression "param_2 + 3 < *(int *)(param_3 + 4)" (binary_expression "param_2 + 3" identifier + number_literal) < (pointer_expression "*(int *)(param_3 + 4)" * (cast_expression "(int *)(param_3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) ))))) )) (compound_statement "{\n    (*(code *)PTR_memmove_00111fe8)(param_1 + (*(int *)(param_3 + 4) - param_2),param_1,param_2);\n    *param_1 = 0;\n    param_1[1] = 2;\n    iVar1 = *(int *)(param_3 + 4) - param_2;\n    if (3 < iVar1) {\n      puVar6 = param_1;\n      do {\n        do {\n          cVar4 = random_byte();\n          puVar6[2] = cVar4;\n        } while (cVar4 == '\0');\n        puVar6 = puVar6 + 1;\n        iVar1 = *(int *)(param_3 + 4) - param_2;\n      } while ((int)(puVar6 + (2 - (int)param_1)) < iVar1 + -1);\n    }\n    param_1[iVar1 + -1] = 0;\n    uVar2 = bignum_from_bytes(param_1,*(undefined4 *)(param_3 + 4));\n    uVar3 = modpow(uVar2,*(undefined4 *)(param_3 + 0xc),*(undefined4 *)(param_3 + 8));\n    iVar1 = *(int *)(param_3 + 4) + -1;\n    if (*(int *)(param_3 + 4) != 0) {\n      do {\n        iVar7 = iVar1 + -1;\n        uVar5 = bignum_byte(uVar3,iVar1);\n        *param_1 = uVar5;\n        iVar1 = iVar7;\n        param_1 = param_1 + 1;\n      } while (iVar7 != -1);\n    }\n    freebn(uVar2);\n    freebn(uVar3);\n    return 1;\n  }" { (expression_statement "(*(code *)PTR_memmove_00111fe8)(param_1 + (*(int *)(param_3 + 4) - param_2),param_1,param_2);" (call_expression "(*(code *)PTR_memmove_00111fe8)(param_1 + (*(int *)(param_3 + 4) - param_2),param_1,param_2)" (parenthesized_expression "(*(code *)PTR_memmove_00111fe8)" ( (pointer_expression "*(code *)PTR_memmove_00111fe8" * (cast_expression "(code *)PTR_memmove_00111fe8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_1 + (*(int *)(param_3 + 4) - param_2),param_1,param_2)" ( (binary_expression "param_1 + (*(int *)(param_3 + 4) - param_2)" identifier + (parenthesized_expression "(*(int *)(param_3 + 4) - param_2)" ( (binary_expression "*(int *)(param_3 + 4) - param_2" (pointer_expression "*(int *)(param_3 + 4)" * (cast_expression "(int *)(param_3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))) - identifier) ))) , identifier , identifier ))) ;) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" * identifier) = number_literal) ;) (expression_statement "param_1[1] = 2;" (assignment_expression "param_1[1] = 2" (subscript_expression "param_1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar1 = *(int *)(param_3 + 4) - param_2;" (assignment_expression "iVar1 = *(int *)(param_3 + 4) - param_2" identifier = (binary_expression "*(int *)(param_3 + 4) - param_2" (pointer_expression "*(int *)(param_3 + 4)" * (cast_expression "(int *)(param_3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))) - identifier)) ;) (if_statement "if (3 < iVar1) {\n      puVar6 = param_1;\n      do {\n        do {\n          cVar4 = random_byte();\n          puVar6[2] = cVar4;\n        } while (cVar4 == '\0');\n        puVar6 = puVar6 + 1;\n        iVar1 = *(int *)(param_3 + 4) - param_2;\n      } while ((int)(puVar6 + (2 - (int)param_1)) < iVar1 + -1);\n    }" if (parenthesized_expression "(3 < iVar1)" ( (binary_expression "3 < iVar1" number_literal < identifier) )) (compound_statement "{\n      puVar6 = param_1;\n      do {\n        do {\n          cVar4 = random_byte();\n          puVar6[2] = cVar4;\n        } while (cVar4 == '\0');\n        puVar6 = puVar6 + 1;\n        iVar1 = *(int *)(param_3 + 4) - param_2;\n      } while ((int)(puVar6 + (2 - (int)param_1)) < iVar1 + -1);\n    }" { (expression_statement "puVar6 = param_1;" (assignment_expression "puVar6 = param_1" identifier = identifier) ;) (do_statement "do {\n        do {\n          cVar4 = random_byte();\n          puVar6[2] = cVar4;\n        } while (cVar4 == '\0');\n        puVar6 = puVar6 + 1;\n        iVar1 = *(int *)(param_3 + 4) - param_2;\n      } while ((int)(puVar6 + (2 - (int)param_1)) < iVar1 + -1);" do (compound_statement "{\n        do {\n          cVar4 = random_byte();\n          puVar6[2] = cVar4;\n        } while (cVar4 == '\0');\n        puVar6 = puVar6 + 1;\n        iVar1 = *(int *)(param_3 + 4) - param_2;\n      }" { (do_statement "do {\n          cVar4 = random_byte();\n          puVar6[2] = cVar4;\n        } while (cVar4 == '\0');" do (compound_statement "{\n          cVar4 = random_byte();\n          puVar6[2] = cVar4;\n        }" { (expression_statement "cVar4 = random_byte();" (assignment_expression "cVar4 = random_byte()" identifier = (call_expression "random_byte()" identifier (argument_list "()" ( )))) ;) (expression_statement "puVar6[2] = cVar4;" (assignment_expression "puVar6[2] = cVar4" (subscript_expression "puVar6[2]" identifier [ number_literal ]) = identifier) ;) }) while (parenthesized_expression "(cVar4 == '\0')" ( (binary_expression "cVar4 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) ;) (expression_statement "puVar6 = puVar6 + 1;" (assignment_expression "puVar6 = puVar6 + 1" identifier = (binary_expression "puVar6 + 1" identifier + number_literal)) ;) (expression_statement "iVar1 = *(int *)(param_3 + 4) - param_2;" (assignment_expression "iVar1 = *(int *)(param_3 + 4) - param_2" identifier = (binary_expression "*(int *)(param_3 + 4) - param_2" (pointer_expression "*(int *)(param_3 + 4)" * (cast_expression "(int *)(param_3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))) - identifier)) ;) }) while (parenthesized_expression "((int)(puVar6 + (2 - (int)param_1)) < iVar1 + -1)" ( (binary_expression "(int)(puVar6 + (2 - (int)param_1)) < iVar1 + -1" (cast_expression "(int)(puVar6 + (2 - (int)param_1))" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(puVar6 + (2 - (int)param_1))" ( (binary_expression "puVar6 + (2 - (int)param_1)" identifier + (parenthesized_expression "(2 - (int)param_1)" ( (binary_expression "2 - (int)param_1" number_literal - (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ))) < (binary_expression "iVar1 + -1" identifier + number_literal)) )) ;) })) (expression_statement "param_1[iVar1 + -1] = 0;" (assignment_expression "param_1[iVar1 + -1] = 0" (subscript_expression "param_1[iVar1 + -1]" identifier [ (binary_expression "iVar1 + -1" identifier + number_literal) ]) = number_literal) ;) (expression_statement "uVar2 = bignum_from_bytes(param_1,*(undefined4 *)(param_3 + 4));" (assignment_expression "uVar2 = bignum_from_bytes(param_1,*(undefined4 *)(param_3 + 4))" identifier = (call_expression "bignum_from_bytes(param_1,*(undefined4 *)(param_3 + 4))" identifier (argument_list "(param_1,*(undefined4 *)(param_3 + 4))" ( identifier , (pointer_expression "*(undefined4 *)(param_3 + 4)" * (cast_expression "(undefined4 *)(param_3 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))) )))) ;) (expression_statement "uVar3 = modpow(uVar2,*(undefined4 *)(param_3 + 0xc),*(undefined4 *)(param_3 + 8));" (assignment_expression "uVar3 = modpow(uVar2,*(undefined4 *)(param_3 + 0xc),*(undefined4 *)(param_3 + 8))" identifier = (call_expression "modpow(uVar2,*(undefined4 *)(param_3 + 0xc),*(undefined4 *)(param_3 + 8))" identifier (argument_list "(uVar2,*(undefined4 *)(param_3 + 0xc),*(undefined4 *)(param_3 + 8))" ( identifier , (pointer_expression "*(undefined4 *)(param_3 + 0xc)" * (cast_expression "(undefined4 *)(param_3 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xc)" ( (binary_expression "param_3 + 0xc" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(param_3 + 8)" * (cast_expression "(undefined4 *)(param_3 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 8)" ( (binary_expression "param_3 + 8" identifier + number_literal) )))) )))) ;) (expression_statement "iVar1 = *(int *)(param_3 + 4) + -1;" (assignment_expression "iVar1 = *(int *)(param_3 + 4) + -1" identifier = (binary_expression "*(int *)(param_3 + 4) + -1" (pointer_expression "*(int *)(param_3 + 4)" * (cast_expression "(int *)(param_3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))) + number_literal)) ;) (if_statement "if (*(int *)(param_3 + 4) != 0) {\n      do {\n        iVar7 = iVar1 + -1;\n        uVar5 = bignum_byte(uVar3,iVar1);\n        *param_1 = uVar5;\n        iVar1 = iVar7;\n        param_1 = param_1 + 1;\n      } while (iVar7 != -1);\n    }" if (parenthesized_expression "(*(int *)(param_3 + 4) != 0)" ( (binary_expression "*(int *)(param_3 + 4) != 0" (pointer_expression "*(int *)(param_3 + 4)" * (cast_expression "(int *)(param_3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4)" ( (binary_expression "param_3 + 4" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n      do {\n        iVar7 = iVar1 + -1;\n        uVar5 = bignum_byte(uVar3,iVar1);\n        *param_1 = uVar5;\n        iVar1 = iVar7;\n        param_1 = param_1 + 1;\n      } while (iVar7 != -1);\n    }" { (do_statement "do {\n        iVar7 = iVar1 + -1;\n        uVar5 = bignum_byte(uVar3,iVar1);\n        *param_1 = uVar5;\n        iVar1 = iVar7;\n        param_1 = param_1 + 1;\n      } while (iVar7 != -1);" do (compound_statement "{\n        iVar7 = iVar1 + -1;\n        uVar5 = bignum_byte(uVar3,iVar1);\n        *param_1 = uVar5;\n        iVar1 = iVar7;\n        param_1 = param_1 + 1;\n      }" { (expression_statement "iVar7 = iVar1 + -1;" (assignment_expression "iVar7 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) (expression_statement "uVar5 = bignum_byte(uVar3,iVar1);" (assignment_expression "uVar5 = bignum_byte(uVar3,iVar1)" identifier = (call_expression "bignum_byte(uVar3,iVar1)" identifier (argument_list "(uVar3,iVar1)" ( identifier , identifier )))) ;) (expression_statement "*param_1 = uVar5;" (assignment_expression "*param_1 = uVar5" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "iVar1 = iVar7;" (assignment_expression "iVar1 = iVar7" identifier = identifier) ;) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar7 != -1)" ( (binary_expression "iVar7 != -1" identifier != number_literal) )) ;) })) (expression_statement "freebn(uVar2);" (call_expression "freebn(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (expression_statement "freebn(uVar3);" (call_expression "freebn(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) (return_statement "return 1;" return number_literal ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE 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 (binary_expression IDENT + LIT) < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - IDENT) ))) , IDENT , IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_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 LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) - IDENT)) ;) }) while (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + (parenthesized_expression ( (binary_expression LIT - (cast_expression ( (type_descriptor TYPE) ) IDENT)) ))) ))) < (binary_expression IDENT + LIT)) )) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return LIT ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 rsaencrypt(undefined1 *param_1,int param_2,int param_3)\n\n{\n  int iVar1;\n  char cVar4;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined1 uVar5;\n  undefined1 *puVar6;\n  int iVar7;\n  \n  if (param_2 + 3 < *(int *)(param_3 + 4)) {\n    (*(code *)PTR_memmove_00111fe8)(param_1 + (*(int *)(param_3 + 4) - param_2),param_1,param_2);\n    *param_1 = 0;\n    param_1[1] = 2;\n    iVar1 = *(int *)(param_3 + 4) - param_2;\n    if (3 < iVar1) {\n      puVar6 = param_1;\n      do {\n        do {\n          cVar4 = random_byte();\n          puVar6[2] = cVar4;\n        } while (cVar4 == '\0');\n        puVar6 = puVar6 + 1;\n        iVar1 = *(int *)(param_3 + 4) - param_2;\n      } while ((int)(puVar6 + (2 - (int)param_1)) < iVar1 + -1);\n    }\n    param_1[iVar1 + -1] = 0;\n    uVar2 = bignum_from_bytes(param_1,*(undefined4 *)(param_3 + 4));\n    uVar3 = modpow(uVar2,*(undefined4 *)(param_3 + 0xc),*(undefined4 *)(param_3 + 8));\n    iVar1 = *(int *)(param_3 + 4) + -1;\n    if (*(int *)(param_3 + 4) != 0) {\n      do {\n        iVar7 = iVar1 + -1;\n        uVar5 = bignum_byte(uVar3,iVar1);\n        *param_1 = uVar5;\n        iVar1 = iVar7;\n        param_1 = param_1 + 1;\n      } while (iVar7 != -1);\n    }\n    freebn(uVar2);\n    freebn(uVar3);\n    return 1;\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "rsaencrypt(undefined1 *param_1,int param_2,int param_3)" (identifier "rsaencrypt") (parameter_list "(undefined1 *param_1,int param_2,int param_3)" (( "(") (parameter_declaration "undefined1 *param_1" (type_identifier "undefined1") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  char cVar4;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  undefined1 uVar5;\n  undefined1 *puVar6;\n  int iVar7;\n  \n  if (param_2 + 3 < *(int *)(param_3 + 4)) {\n    (*(code *)PTR_memmove_00111fe8)(param_1 + (*(int *)(param_3 + 4) - param_2),param_1,param_2);\n    *param_1 = 0;\n    param_1[1] = 2;\n    iVar1 = *(int *)(param_3 + 4) - param_2;\n    if (3 < iVar1) {\n      puVar6 = param_1;\n      do {\n        do {\n          cVar4 = random_byte();\n          puVar6[2] = cVar4;\n        } while (cVar4 == '\0');\n        puVar6 = puVar6 + 1;\n        iVar1 = *(int *)(param_3 + 4) - param_2;\n      } while ((int)(puVar6 + (2 - (int)param_1)) < iVar1 + -1);\n    }\n    param_1[iVar1 + -1] = 0;\n    uVar2 = bignum_from_bytes(param_1,*(undefined4 *)(param_3 + 4));\n    uVar3 = modpow(uVar2,*(undefined4 *)(param_3 + 0xc),*(undefined4 *)(param_3 + 8));\n    iVar1 = *(int *)(param_3 + 4) + -1;\n    if (*(int *)(param_3 + 4) != 0) {\n      do {\n        iVar7 = iVar1 + -1;\n        uVar5 = bignum_byte(uVar3,iVar1);\n        *param_1 = uVar5;\n        iVar1 = iVar7;\n        param_1 = param_1 + 1;\n      } while (iVar7 != -1);\n    }\n    freebn(uVar2);\n    freebn(uVar3);\n    return 1;\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "char cVar4;" (primitive_type "char") (identifier "cVar4") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "undefined1 uVar5;" (type_identifier "undefined1") (identifier "uVar5") (; ";")) (declaration "undefined1 *puVar6;" (type_identifier "undefined1") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (if_statement "if (param_2 + 3 < *(int *)(param_3 + 4)) {\n    (*(code *)PTR_memmove_00111fe8)(param_1 + (*(int *)(param_3 + 4) - param_2),param_1,param_2);\n    *param_1 = 0;\n    param_1[1] = 2;\n    iVar1 = *(int *)(param_3 + 4) - param_2;\n    if (3 < iVar1) {\n      puVar6 = param_1;\n      do {\n        do {\n          cVar4 = random_byte();\n          puVar6[2] = cVar4;\n        } while (cVar4 == '\0');\n        puVar6 = puVar6 + 1;\n        iVar1 = *(int *)(param_3 + 4) - param_2;\n      } while ((int)(puVar6 + (2 - (int)param_1)) < iVar1 + -1);\n    }\n    param_1[iVar1 + -1] = 0;\n    uVar2 = bignum_from_bytes(param_1,*(undefined4 *)(param_3 + 4));\n    uVar3 = modpow(uVar2,*(undefined4 *)(param_3 + 0xc),*(undefined4 *)(param_3 + 8));\n    iVar1 = *(int *)(param_3 + 4) + -1;\n    if (*(int *)(param_3 + 4) != 0) {\n      do {\n        iVar7 = iVar1 + -1;\n        uVar5 = bignum_byte(uVar3,iVar1);\n        *param_1 = uVar5;\n        iVar1 = iVar7;\n        param_1 = param_1 + 1;\n      } while (iVar7 != -1);\n    }\n    freebn(uVar2);\n    freebn(uVar3);\n    return 1;\n  }" (if "if") (parenthesized_expression "(param_2 + 3 < *(int *)(param_3 + 4))" (( "(") (binary_expression "param_2 + 3 < *(int *)(param_3 + 4)" (binary_expression "param_2 + 3" (identifier "param_2") (+ "+") (number_literal "3")) (< "<") (pointer_expression "*(int *)(param_3 + 4)" (* "*") (cast_expression "(int *)(param_3 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 4)" (( "(") (binary_expression "param_3 + 4" (identifier "param_3") (+ "+") (number_literal "4")) () ")"))))) () ")")) (compound_statement "{\n    (*(code *)PTR_memmove_00111fe8)(param_1 + (*(int *)(param_3 + 4) - param_2),param_1,param_2);\n    *param_1 = 0;\n    param_1[1] = 2;\n    iVar1 = *(int *)(param_3 + 4) - param_2;\n    if (3 < iVar1) {\n      puVar6 = param_1;\n      do {\n        do {\n          cVar4 = random_byte();\n          puVar6[2] = cVar4;\n        } while (cVar4 == '\0');\n        puVar6 = puVar6 + 1;\n        iVar1 = *(int *)(param_3 + 4) - param_2;\n      } while ((int)(puVar6 + (2 - (int)param_1)) < iVar1 + -1);\n    }\n    param_1[iVar1 + -1] = 0;\n    uVar2 = bignum_from_bytes(param_1,*(undefined4 *)(param_3 + 4));\n    uVar3 = modpow(uVar2,*(undefined4 *)(param_3 + 0xc),*(undefined4 *)(param_3 + 8));\n    iVar1 = *(int *)(param_3 + 4) + -1;\n    if (*(int *)(param_3 + 4) != 0) {\n      do {\n        iVar7 = iVar1 + -1;\n        uVar5 = bignum_byte(uVar3,iVar1);\n        *param_1 = uVar5;\n        iVar1 = iVar7;\n        param_1 = param_1 + 1;\n      } while (iVar7 != -1);\n    }\n    freebn(uVar2);\n    freebn(uVar3);\n    return 1;\n  }" ({ "{") (expression_statement "(*(code *)PTR_memmove_00111fe8)(param_1 + (*(int *)(param_3 + 4) - param_2),param_1,param_2);" (call_expression "(*(code *)PTR_memmove_00111fe8)(param_1 + (*(int *)(param_3 + 4) - param_2),param_1,param_2)" (parenthesized_expression "(*(code *)PTR_memmove_00111fe8)" (( "(") (pointer_expression "*(code *)PTR_memmove_00111fe8" (* "*") (cast_expression "(code *)PTR_memmove_00111fe8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memmove_00111fe8"))) () ")")) (argument_list "(param_1 + (*(int *)(param_3 + 4) - param_2),param_1,param_2)" (( "(") (binary_expression "param_1 + (*(int *)(param_3 + 4) - param_2)" (identifier "param_1") (+ "+") (parenthesized_expression "(*(int *)(param_3 + 4) - param_2)" (( "(") (binary_expression "*(int *)(param_3 + 4) - param_2" (pointer_expression "*(int *)(param_3 + 4)" (* "*") (cast_expression "(int *)(param_3 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 4)" (( "(") (binary_expression "param_3 + 4" (identifier "param_3") (+ "+") (number_literal "4")) () ")")))) (- "-") (identifier "param_2")) () ")"))) (, ",") (identifier "param_1") (, ",") (identifier "param_2") () ")"))) (; ";")) (expression_statement "*param_1 = 0;" (assignment_expression "*param_1 = 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[1] = 2;" (assignment_expression "param_1[1] = 2" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "2")) (; ";")) (expression_statement "iVar1 = *(int *)(param_3 + 4) - param_2;" (assignment_expression "iVar1 = *(int *)(param_3 + 4) - param_2" (identifier "iVar1") (= "=") (binary_expression "*(int *)(param_3 + 4) - param_2" (pointer_expression "*(int *)(param_3 + 4)" (* "*") (cast_expression "(int *)(param_3 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 4)" (( "(") (binary_expression "param_3 + 4" (identifier "param_3") (+ "+") (number_literal "4")) () ")")))) (- "-") (identifier "param_2"))) (; ";")) (if_statement "if (3 < iVar1) {\n      puVar6 = param_1;\n      do {\n        do {\n          cVar4 = random_byte();\n          puVar6[2] = cVar4;\n        } while (cVar4 == '\0');\n        puVar6 = puVar6 + 1;\n        iVar1 = *(int *)(param_3 + 4) - param_2;\n      } while ((int)(puVar6 + (2 - (int)param_1)) < iVar1 + -1);\n    }" (if "if") (parenthesized_expression "(3 < iVar1)" (( "(") (binary_expression "3 < iVar1" (number_literal "3") (< "<") (identifier "iVar1")) () ")")) (compound_statement "{\n      puVar6 = param_1;\n      do {\n        do {\n          cVar4 = random_byte();\n          puVar6[2] = cVar4;\n        } while (cVar4 == '\0');\n        puVar6 = puVar6 + 1;\n        iVar1 = *(int *)(param_3 + 4) - param_2;\n      } while ((int)(puVar6 + (2 - (int)param_1)) < iVar1 + -1);\n    }" ({ "{") (expression_statement "puVar6 = param_1;" (assignment_expression "puVar6 = param_1" (identifier "puVar6") (= "=") (identifier "param_1")) (; ";")) (do_statement "do {\n        do {\n          cVar4 = random_byte();\n          puVar6[2] = cVar4;\n        } while (cVar4 == '\0');\n        puVar6 = puVar6 + 1;\n        iVar1 = *(int *)(param_3 + 4) - param_2;\n      } while ((int)(puVar6 + (2 - (int)param_1)) < iVar1 + -1);" (do "do") (compound_statement "{\n        do {\n          cVar4 = random_byte();\n          puVar6[2] = cVar4;\n        } while (cVar4 == '\0');\n        puVar6 = puVar6 + 1;\n        iVar1 = *(int *)(param_3 + 4) - param_2;\n      }" ({ "{") (do_statement "do {\n          cVar4 = random_byte();\n          puVar6[2] = cVar4;\n        } while (cVar4 == '\0');" (do "do") (compound_statement "{\n          cVar4 = random_byte();\n          puVar6[2] = cVar4;\n        }" ({ "{") (expression_statement "cVar4 = random_byte();" (assignment_expression "cVar4 = random_byte()" (identifier "cVar4") (= "=") (call_expression "random_byte()" (identifier "random_byte") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "puVar6[2] = cVar4;" (assignment_expression "puVar6[2] = cVar4" (subscript_expression "puVar6[2]" (identifier "puVar6") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "cVar4")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(cVar4 == '\0')" (( "(") (binary_expression "cVar4 == '\0'" (identifier "cVar4") (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (; ";")) (expression_statement "puVar6 = puVar6 + 1;" (assignment_expression "puVar6 = puVar6 + 1" (identifier "puVar6") (= "=") (binary_expression "puVar6 + 1" (identifier "puVar6") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar1 = *(int *)(param_3 + 4) - param_2;" (assignment_expression "iVar1 = *(int *)(param_3 + 4) - param_2" (identifier "iVar1") (= "=") (binary_expression "*(int *)(param_3 + 4) - param_2" (pointer_expression "*(int *)(param_3 + 4)" (* "*") (cast_expression "(int *)(param_3 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 4)" (( "(") (binary_expression "param_3 + 4" (identifier "param_3") (+ "+") (number_literal "4")) () ")")))) (- "-") (identifier "param_2"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((int)(puVar6 + (2 - (int)param_1)) < iVar1 + -1)" (( "(") (binary_expression "(int)(puVar6 + (2 - (int)param_1)) < iVar1 + -1" (cast_expression "(int)(puVar6 + (2 - (int)param_1))" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(puVar6 + (2 - (int)param_1))" (( "(") (binary_expression "puVar6 + (2 - (int)param_1)" (identifier "puVar6") (+ "+") (parenthesized_expression "(2 - (int)param_1)" (( "(") (binary_expression "2 - (int)param_1" (number_literal "2") (- "-") (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1"))) () ")"))) () ")"))) (< "<") (binary_expression "iVar1 + -1" (identifier "iVar1") (+ "+") (number_literal "-1"))) () ")")) (; ";")) (} "}"))) (expression_statement "param_1[iVar1 + -1] = 0;" (assignment_expression "param_1[iVar1 + -1] = 0" (subscript_expression "param_1[iVar1 + -1]" (identifier "param_1") ([ "[") (binary_expression "iVar1 + -1" (identifier "iVar1") (+ "+") (number_literal "-1")) (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar2 = bignum_from_bytes(param_1,*(undefined4 *)(param_3 + 4));" (assignment_expression "uVar2 = bignum_from_bytes(param_1,*(undefined4 *)(param_3 + 4))" (identifier "uVar2") (= "=") (call_expression "bignum_from_bytes(param_1,*(undefined4 *)(param_3 + 4))" (identifier "bignum_from_bytes") (argument_list "(param_1,*(undefined4 *)(param_3 + 4))" (( "(") (identifier "param_1") (, ",") (pointer_expression "*(undefined4 *)(param_3 + 4)" (* "*") (cast_expression "(undefined4 *)(param_3 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 4)" (( "(") (binary_expression "param_3 + 4" (identifier "param_3") (+ "+") (number_literal "4")) () ")")))) () ")")))) (; ";")) (expression_statement "uVar3 = modpow(uVar2,*(undefined4 *)(param_3 + 0xc),*(undefined4 *)(param_3 + 8));" (assignment_expression "uVar3 = modpow(uVar2,*(undefined4 *)(param_3 + 0xc),*(undefined4 *)(param_3 + 8))" (identifier "uVar3") (= "=") (call_expression "modpow(uVar2,*(undefined4 *)(param_3 + 0xc),*(undefined4 *)(param_3 + 8))" (identifier "modpow") (argument_list "(uVar2,*(undefined4 *)(param_3 + 0xc),*(undefined4 *)(param_3 + 8))" (( "(") (identifier "uVar2") (, ",") (pointer_expression "*(undefined4 *)(param_3 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_3 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0xc)" (( "(") (binary_expression "param_3 + 0xc" (identifier "param_3") (+ "+") (number_literal "0xc")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(param_3 + 8)" (* "*") (cast_expression "(undefined4 *)(param_3 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 8)" (( "(") (binary_expression "param_3 + 8" (identifier "param_3") (+ "+") (number_literal "8")) () ")")))) () ")")))) (; ";")) (expression_statement "iVar1 = *(int *)(param_3 + 4) + -1;" (assignment_expression "iVar1 = *(int *)(param_3 + 4) + -1" (identifier "iVar1") (= "=") (binary_expression "*(int *)(param_3 + 4) + -1" (pointer_expression "*(int *)(param_3 + 4)" (* "*") (cast_expression "(int *)(param_3 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 4)" (( "(") (binary_expression "param_3 + 4" (identifier "param_3") (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "-1"))) (; ";")) (if_statement "if (*(int *)(param_3 + 4) != 0) {\n      do {\n        iVar7 = iVar1 + -1;\n        uVar5 = bignum_byte(uVar3,iVar1);\n        *param_1 = uVar5;\n        iVar1 = iVar7;\n        param_1 = param_1 + 1;\n      } while (iVar7 != -1);\n    }" (if "if") (parenthesized_expression "(*(int *)(param_3 + 4) != 0)" (( "(") (binary_expression "*(int *)(param_3 + 4) != 0" (pointer_expression "*(int *)(param_3 + 4)" (* "*") (cast_expression "(int *)(param_3 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 4)" (( "(") (binary_expression "param_3 + 4" (identifier "param_3") (+ "+") (number_literal "4")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      do {\n        iVar7 = iVar1 + -1;\n        uVar5 = bignum_byte(uVar3,iVar1);\n        *param_1 = uVar5;\n        iVar1 = iVar7;\n        param_1 = param_1 + 1;\n      } while (iVar7 != -1);\n    }" ({ "{") (do_statement "do {\n        iVar7 = iVar1 + -1;\n        uVar5 = bignum_byte(uVar3,iVar1);\n        *param_1 = uVar5;\n        iVar1 = iVar7;\n        param_1 = param_1 + 1;\n      } while (iVar7 != -1);" (do "do") (compound_statement "{\n        iVar7 = iVar1 + -1;\n        uVar5 = bignum_byte(uVar3,iVar1);\n        *param_1 = uVar5;\n        iVar1 = iVar7;\n        param_1 = param_1 + 1;\n      }" ({ "{") (expression_statement "iVar7 = iVar1 + -1;" (assignment_expression "iVar7 = iVar1 + -1" (identifier "iVar7") (= "=") (binary_expression "iVar1 + -1" (identifier "iVar1") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "uVar5 = bignum_byte(uVar3,iVar1);" (assignment_expression "uVar5 = bignum_byte(uVar3,iVar1)" (identifier "uVar5") (= "=") (call_expression "bignum_byte(uVar3,iVar1)" (identifier "bignum_byte") (argument_list "(uVar3,iVar1)" (( "(") (identifier "uVar3") (, ",") (identifier "iVar1") () ")")))) (; ";")) (expression_statement "*param_1 = uVar5;" (assignment_expression "*param_1 = uVar5" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "uVar5")) (; ";")) (expression_statement "iVar1 = iVar7;" (assignment_expression "iVar1 = iVar7" (identifier "iVar1") (= "=") (identifier "iVar7")) (; ";")) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" (identifier "param_1") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar7 != -1)" (( "(") (binary_expression "iVar7 != -1" (identifier "iVar7") (!= "!=") (number_literal "-1")) () ")")) (; ";")) (} "}"))) (expression_statement "freebn(uVar2);" (call_expression "freebn(uVar2)" (identifier "freebn") (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")"))) (; ";")) (expression_statement "freebn(uVar3);" (call_expression "freebn(uVar3)" (identifier "freebn") (argument_list "(uVar3)" (( "(") (identifier "uVar3") () ")"))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))
(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier)))) (identifier) (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))))) condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (parenthesized_expression (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))))) right: (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (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) (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))))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (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))))) (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))))))))) (expression_statement (assignment_expression left: (identifier) right: (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)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_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: (number_literal)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement (number_literal)))) (return_statement (number_literal)))))

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

{
  int iVar1;
  char cVar4;
  undefined4 uVar2;
  undefined4 uVar3;
  undefined1 uVar5;
  undefined1 *puVar6;
  int iVar7;
  
  if (param_2 + 3 < *(int *)(param_3 + 4)) {
    (*(code *)PTR_memmove_00111fe8)(param_1 + (*(int *)(param_3 + 4) - param_2),param_1,param_2);
    *param_1 = 0;
    param_1[1] = 2;
    iVar1 = *(int *)(param_3 + 4) - param_2;
    if (3 < iVar1) {
      puVar6 = param_1;
      do {
        do {
          cVar4 = random_byte();
          puVar6[2] = cVar4;
        } while (cVar4 == '\0');
        puVar6 = puVar6 + 1;
        iVar1 = *(int *)(param_3 + 4) - param_2;
      } while ((int)(puVar6 + (2 - (int)param_1)) < iVar1 + -1);
    }
    param_1[iVar1 + -1] = 0;
    uVar2 = bignum_from_bytes(param_1,*(undefined4 *)(param_3 + 4));
    uVar3 = modpow(uVar2,*(undefined4 *)(param_3 + 0xc),*(undefined4 *)(param_3 + 8));
    iVar1 = *(int *)(param_3 + 4) + -1;
    if (*(int *)(param_3 + 4) != 0) {
      do {
        iVar7 = iVar1 + -1;
        uVar5 = bignum_byte(uVar3,iVar1);
        *param_1 = uVar5;
        iVar1 = iVar7;
        param_1 = param_1 + 1;
      } while (iVar7 != -1);
    }
    freebn(uVar2);
    freebn(uVar3);
    return 1;
  }
  return 0;
}

