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

void * __regparm3
rsa2_createkey(ssh_signkey *self,uchar *pub_blob,int pub_len,uchar *priv_blob,int priv_len)

{
  RSAKey *key;
  Bignum pvVar1;
  int iVar2;
  Bignum_conflict a;
  int in_GS_OFFSET;
  char *in_stack_0000000c;
  char *pb;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x701c9;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  key = (RSAKey *)rsa2_newkey((ssh_signkey *)priv_len,in_stack_0000000c,pub_len);
  pvVar1 = getmp(&pb,(int *)&stack0x00000014);
  key->private_exponent = pvVar1;
  pvVar1 = getmp(&pb,(int *)&stack0x00000014);
  key->p = pvVar1;
  pvVar1 = getmp(&pb,(int *)&stack0x00000014);
  key->q = pvVar1;
  pvVar1 = getmp(&pb,(int *)&stack0x00000014);
  key->iqmp = pvVar1;
  iVar2 = bignum_cmp((Bignum_conflict)key->modulus,Zero);
  if (iVar2 != 0) {
    a = bigmul((Bignum_conflict)key->p,(Bignum_conflict)key->q);
    iVar2 = bignum_cmp(a,(Bignum_conflict)key->modulus);
    freebn(a);
    if ((iVar2 == 0) && (iVar2 = rsa_verify(key), iVar2 != 0)) goto LAB_0007025d;
  }
  freersakey(key);
  safefree(key);
  key = (RSAKey *)0x0;
LAB_0007025d:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return key;
}



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

int FUN_000701c0(void)

{
  int iVar1;
  int iVar2;
  undefined4 uVar3;
  int iVar4;
  int in_GS_OFFSET;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  iVar2 = FUN_00070090();
  uVar3 = FUN_0006e990();
  *(undefined4 *)(iVar2 + 0x10) = uVar3;
  uVar3 = FUN_0006e990();
  *(undefined4 *)(iVar2 + 0x14) = uVar3;
  uVar3 = FUN_0006e990();
  *(undefined4 *)(iVar2 + 0x18) = uVar3;
  uVar3 = FUN_0006e990();
  *(undefined4 *)(iVar2 + 0x1c) = uVar3;
  iVar4 = FUN_00056bd0(*(undefined4 *)(iVar2 + 8),PTR_DAT_000cd0e8);
  if (iVar4 != 0) {
    uVar3 = FUN_00057430(*(undefined4 *)(iVar2 + 0x14),*(undefined4 *)(iVar2 + 0x18));
    iVar4 = FUN_00056bd0(uVar3,*(undefined4 *)(iVar2 + 8));
    FUN_00055350(uVar3);
    if ((iVar4 == 0) && (iVar4 = FUN_0006e840(), iVar4 != 0)) goto LAB_0007025d;
  }
  FUN_0006fda0(iVar2);
  FUN_0001dd30(iVar2);
  iVar2 = 0;
LAB_0007025d:
  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_0008d800();
  }
  return iVar2;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000149a0
ADD EBX,0x5cba7
SUB ESP,0x1c
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0xc],EAX
XOR EAX,EAX
MOV EAX,dword ptr [ESP + 0x3c]
MOV EDX,dword ptr [ESP + 0x38]
LEA EBP,[ESP + 0x40]
LEA EDI,[ESP + 0x8]
MOV dword ptr [ESP + 0x8],EAX
MOV EAX,dword ptr [ESP + 0x34]
CALL 0x00070090
MOV EDX,EBP
MOV ESI,EAX
MOV EAX,EDI
CALL 0x0006e990
MOV EDX,EBP
MOV dword ptr [ESI + 0x10],EAX
MOV EAX,EDI
CALL 0x0006e990
MOV EDX,EBP
MOV dword ptr [ESI + 0x14],EAX
MOV EAX,EDI
CALL 0x0006e990
MOV EDX,EBP
MOV dword ptr [ESI + 0x18],EAX
MOV EAX,EDI
CALL 0x0006e990
SUB ESP,0x8
MOV dword ptr [ESI + 0x1c],EAX
LEA EAX,[EBX + 0x378]
PUSH dword ptr [EAX]
PUSH dword ptr [ESI + 0x8]
CALL 0x00056bd0
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00070278
SUB ESP,0xc
PUSH ESI
CALL 0x0006fda0
MOV dword ptr [ESP],ESI
XOR ESI,ESI
CALL 0x0001dd30
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0xc]
XOR ECX,dword ptr GS:[0x14]
MOV EAX,ESI
JNZ 0x000702b1
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x8
PUSH dword ptr [ESI + 0x18]
PUSH dword ptr [ESI + 0x14]
CALL 0x00057430
MOV EDI,EAX
POP EAX
POP EDX
PUSH dword ptr [ESI + 0x8]
PUSH EDI
CALL 0x00056bd0
MOV dword ptr [ESP],EDI
MOV EBP,EAX
CALL 0x00055350
ADD ESP,0x10
TEST EBP,EBP
JNZ 0x00070247
MOV EAX,ESI
CALL 0x0006e840
TEST EAX,EAX
JNZ 0x0007025d
JMP 0x00070247
CALL 0x0008d800
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_000701c0(void)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_00070090();\n  uVar3 = FUN_0006e990();\n  *(undefined4 *)(iVar2 + 0x10) = uVar3;\n  uVar3 = FUN_0006e990();\n  *(undefined4 *)(iVar2 + 0x14) = uVar3;\n  uVar3 = FUN_0006e990();\n  *(undefined4 *)(iVar2 + 0x18) = uVar3;\n  uVar3 = FUN_0006e990();\n  *(undefined4 *)(iVar2 + 0x1c) = uVar3;\n  iVar4 = FUN_00056bd0(*(undefined4 *)(iVar2 + 8),PTR_DAT_000cd0e8);\n  if (iVar4 != 0) {\n    uVar3 = FUN_00057430(*(undefined4 *)(iVar2 + 0x14),*(undefined4 *)(iVar2 + 0x18));\n    iVar4 = FUN_00056bd0(uVar3,*(undefined4 *)(iVar2 + 8));\n    FUN_00055350(uVar3);\n    if ((iVar4 == 0) && (iVar4 = FUN_0006e840(), iVar4 != 0)) goto LAB_0007025d;\n  }\n  FUN_0006fda0(iVar2);\n  FUN_0001dd30(iVar2);\n  iVar2 = 0;\nLAB_0007025d:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0008d800();\n  }\n  return iVar2;\n}\n\n" comment (function_definition "int FUN_000701c0(void)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_00070090();\n  uVar3 = FUN_0006e990();\n  *(undefined4 *)(iVar2 + 0x10) = uVar3;\n  uVar3 = FUN_0006e990();\n  *(undefined4 *)(iVar2 + 0x14) = uVar3;\n  uVar3 = FUN_0006e990();\n  *(undefined4 *)(iVar2 + 0x18) = uVar3;\n  uVar3 = FUN_0006e990();\n  *(undefined4 *)(iVar2 + 0x1c) = uVar3;\n  iVar4 = FUN_00056bd0(*(undefined4 *)(iVar2 + 8),PTR_DAT_000cd0e8);\n  if (iVar4 != 0) {\n    uVar3 = FUN_00057430(*(undefined4 *)(iVar2 + 0x14),*(undefined4 *)(iVar2 + 0x18));\n    iVar4 = FUN_00056bd0(uVar3,*(undefined4 *)(iVar2 + 8));\n    FUN_00055350(uVar3);\n    if ((iVar4 == 0) && (iVar4 = FUN_0006e840(), iVar4 != 0)) goto LAB_0007025d;\n  }\n  FUN_0006fda0(iVar2);\n  FUN_0001dd30(iVar2);\n  iVar2 = 0;\nLAB_0007025d:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0008d800();\n  }\n  return iVar2;\n}" primitive_type (function_declarator "FUN_000701c0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_00070090();\n  uVar3 = FUN_0006e990();\n  *(undefined4 *)(iVar2 + 0x10) = uVar3;\n  uVar3 = FUN_0006e990();\n  *(undefined4 *)(iVar2 + 0x14) = uVar3;\n  uVar3 = FUN_0006e990();\n  *(undefined4 *)(iVar2 + 0x18) = uVar3;\n  uVar3 = FUN_0006e990();\n  *(undefined4 *)(iVar2 + 0x1c) = uVar3;\n  iVar4 = FUN_00056bd0(*(undefined4 *)(iVar2 + 8),PTR_DAT_000cd0e8);\n  if (iVar4 != 0) {\n    uVar3 = FUN_00057430(*(undefined4 *)(iVar2 + 0x14),*(undefined4 *)(iVar2 + 0x18));\n    iVar4 = FUN_00056bd0(uVar3,*(undefined4 *)(iVar2 + 8));\n    FUN_00055350(uVar3);\n    if ((iVar4 == 0) && (iVar4 = FUN_0006e840(), iVar4 != 0)) goto LAB_0007025d;\n  }\n  FUN_0006fda0(iVar2);\n  FUN_0001dd30(iVar2);\n  iVar2 = 0;\nLAB_0007025d:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0008d800();\n  }\n  return iVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = FUN_00070090();" (assignment_expression "iVar2 = FUN_00070090()" identifier = (call_expression "FUN_00070090()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar3 = FUN_0006e990();" (assignment_expression "uVar3 = FUN_0006e990()" identifier = (call_expression "FUN_0006e990()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(undefined4 *)(iVar2 + 0x10) = uVar3;" (assignment_expression "*(undefined4 *)(iVar2 + 0x10) = uVar3" (pointer_expression "*(undefined4 *)(iVar2 + 0x10)" * (cast_expression "(undefined4 *)(iVar2 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar3 = FUN_0006e990();" (assignment_expression "uVar3 = FUN_0006e990()" identifier = (call_expression "FUN_0006e990()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(undefined4 *)(iVar2 + 0x14) = uVar3;" (assignment_expression "*(undefined4 *)(iVar2 + 0x14) = uVar3" (pointer_expression "*(undefined4 *)(iVar2 + 0x14)" * (cast_expression "(undefined4 *)(iVar2 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar3 = FUN_0006e990();" (assignment_expression "uVar3 = FUN_0006e990()" identifier = (call_expression "FUN_0006e990()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(undefined4 *)(iVar2 + 0x18) = uVar3;" (assignment_expression "*(undefined4 *)(iVar2 + 0x18) = uVar3" (pointer_expression "*(undefined4 *)(iVar2 + 0x18)" * (cast_expression "(undefined4 *)(iVar2 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x18)" ( (binary_expression "iVar2 + 0x18" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar3 = FUN_0006e990();" (assignment_expression "uVar3 = FUN_0006e990()" identifier = (call_expression "FUN_0006e990()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(undefined4 *)(iVar2 + 0x1c) = uVar3;" (assignment_expression "*(undefined4 *)(iVar2 + 0x1c) = uVar3" (pointer_expression "*(undefined4 *)(iVar2 + 0x1c)" * (cast_expression "(undefined4 *)(iVar2 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x1c)" ( (binary_expression "iVar2 + 0x1c" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar4 = FUN_00056bd0(*(undefined4 *)(iVar2 + 8),PTR_DAT_000cd0e8);" (assignment_expression "iVar4 = FUN_00056bd0(*(undefined4 *)(iVar2 + 8),PTR_DAT_000cd0e8)" identifier = (call_expression "FUN_00056bd0(*(undefined4 *)(iVar2 + 8),PTR_DAT_000cd0e8)" identifier (argument_list "(*(undefined4 *)(iVar2 + 8),PTR_DAT_000cd0e8)" ( (pointer_expression "*(undefined4 *)(iVar2 + 8)" * (cast_expression "(undefined4 *)(iVar2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) )))) , identifier )))) ;) (if_statement "if (iVar4 != 0) {\n    uVar3 = FUN_00057430(*(undefined4 *)(iVar2 + 0x14),*(undefined4 *)(iVar2 + 0x18));\n    iVar4 = FUN_00056bd0(uVar3,*(undefined4 *)(iVar2 + 8));\n    FUN_00055350(uVar3);\n    if ((iVar4 == 0) && (iVar4 = FUN_0006e840(), iVar4 != 0)) goto LAB_0007025d;\n  }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar3 = FUN_00057430(*(undefined4 *)(iVar2 + 0x14),*(undefined4 *)(iVar2 + 0x18));\n    iVar4 = FUN_00056bd0(uVar3,*(undefined4 *)(iVar2 + 8));\n    FUN_00055350(uVar3);\n    if ((iVar4 == 0) && (iVar4 = FUN_0006e840(), iVar4 != 0)) goto LAB_0007025d;\n  }" { (expression_statement "uVar3 = FUN_00057430(*(undefined4 *)(iVar2 + 0x14),*(undefined4 *)(iVar2 + 0x18));" (assignment_expression "uVar3 = FUN_00057430(*(undefined4 *)(iVar2 + 0x14),*(undefined4 *)(iVar2 + 0x18))" identifier = (call_expression "FUN_00057430(*(undefined4 *)(iVar2 + 0x14),*(undefined4 *)(iVar2 + 0x18))" identifier (argument_list "(*(undefined4 *)(iVar2 + 0x14),*(undefined4 *)(iVar2 + 0x18))" ( (pointer_expression "*(undefined4 *)(iVar2 + 0x14)" * (cast_expression "(undefined4 *)(iVar2 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(iVar2 + 0x18)" * (cast_expression "(undefined4 *)(iVar2 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x18)" ( (binary_expression "iVar2 + 0x18" identifier + number_literal) )))) )))) ;) (expression_statement "iVar4 = FUN_00056bd0(uVar3,*(undefined4 *)(iVar2 + 8));" (assignment_expression "iVar4 = FUN_00056bd0(uVar3,*(undefined4 *)(iVar2 + 8))" identifier = (call_expression "FUN_00056bd0(uVar3,*(undefined4 *)(iVar2 + 8))" identifier (argument_list "(uVar3,*(undefined4 *)(iVar2 + 8))" ( identifier , (pointer_expression "*(undefined4 *)(iVar2 + 8)" * (cast_expression "(undefined4 *)(iVar2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) )))) )))) ;) (expression_statement "FUN_00055350(uVar3);" (call_expression "FUN_00055350(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) (if_statement "if ((iVar4 == 0) && (iVar4 = FUN_0006e840(), iVar4 != 0)) goto LAB_0007025d;" if (parenthesized_expression "((iVar4 == 0) && (iVar4 = FUN_0006e840(), iVar4 != 0))" ( (binary_expression "(iVar4 == 0) && (iVar4 = FUN_0006e840(), iVar4 != 0)" (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) && (parenthesized_expression "(iVar4 = FUN_0006e840(), iVar4 != 0)" ( (comma_expression "iVar4 = FUN_0006e840(), iVar4 != 0" (assignment_expression "iVar4 = FUN_0006e840()" identifier = (call_expression "FUN_0006e840()" identifier (argument_list "()" ( )))) , (binary_expression "iVar4 != 0" identifier != number_literal)) ))) )) (goto_statement "goto LAB_0007025d;" goto statement_identifier ;)) })) (expression_statement "FUN_0006fda0(iVar2);" (call_expression "FUN_0006fda0(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;) (expression_statement "FUN_0001dd30(iVar2);" (call_expression "FUN_0001dd30(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (labeled_statement "LAB_0007025d:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0008d800();\n  }" statement_identifier : (if_statement "if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_0008d800();\n  }" if (parenthesized_expression "(iVar1 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_0008d800();\n  }" { comment (expression_statement "FUN_0008d800();" (call_expression "FUN_0008d800()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid * __regparm3\nrsa2_createkey(ssh_signkey *self,uchar *pub_blob,int pub_len,uchar *priv_blob,int priv_len)\n\n{\n  RSAKey *key;\n  Bignum pvVar1;\n  int iVar2;\n  Bignum_conflict a;\n  int in_GS_OFFSET;\n  char *in_stack_0000000c;\n  char *pb;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x701c9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  key = (RSAKey *)rsa2_newkey((ssh_signkey *)priv_len,in_stack_0000000c,pub_len);\n  pvVar1 = getmp(&pb,(int *)&stack0x00000014);\n  key->private_exponent = pvVar1;\n  pvVar1 = getmp(&pb,(int *)&stack0x00000014);\n  key->p = pvVar1;\n  pvVar1 = getmp(&pb,(int *)&stack0x00000014);\n  key->q = pvVar1;\n  pvVar1 = getmp(&pb,(int *)&stack0x00000014);\n  key->iqmp = pvVar1;\n  iVar2 = bignum_cmp((Bignum_conflict)key->modulus,Zero);\n  if (iVar2 != 0) {\n    a = bigmul((Bignum_conflict)key->p,(Bignum_conflict)key->q);\n    iVar2 = bignum_cmp(a,(Bignum_conflict)key->modulus);\n    freebn(a);\n    if ((iVar2 == 0) && (iVar2 = rsa_verify(key), iVar2 != 0)) goto LAB_0007025d;\n  }\n  freersakey(key);\n  safefree(key);\n  key = (RSAKey *)0x0;\nLAB_0007025d:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return key;\n}\n\n" comment (function_definition "void * __regparm3\nrsa2_createkey(ssh_signkey *self,uchar *pub_blob,int pub_len,uchar *priv_blob,int priv_len)\n\n{\n  RSAKey *key;\n  Bignum pvVar1;\n  int iVar2;\n  Bignum_conflict a;\n  int in_GS_OFFSET;\n  char *in_stack_0000000c;\n  char *pb;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x701c9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  key = (RSAKey *)rsa2_newkey((ssh_signkey *)priv_len,in_stack_0000000c,pub_len);\n  pvVar1 = getmp(&pb,(int *)&stack0x00000014);\n  key->private_exponent = pvVar1;\n  pvVar1 = getmp(&pb,(int *)&stack0x00000014);\n  key->p = pvVar1;\n  pvVar1 = getmp(&pb,(int *)&stack0x00000014);\n  key->q = pvVar1;\n  pvVar1 = getmp(&pb,(int *)&stack0x00000014);\n  key->iqmp = pvVar1;\n  iVar2 = bignum_cmp((Bignum_conflict)key->modulus,Zero);\n  if (iVar2 != 0) {\n    a = bigmul((Bignum_conflict)key->p,(Bignum_conflict)key->q);\n    iVar2 = bignum_cmp(a,(Bignum_conflict)key->modulus);\n    freebn(a);\n    if ((iVar2 == 0) && (iVar2 = rsa_verify(key), iVar2 != 0)) goto LAB_0007025d;\n  }\n  freersakey(key);\n  safefree(key);\n  key = (RSAKey *)0x0;\nLAB_0007025d:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return key;\n}" primitive_type (pointer_declarator "* __regparm3\nrsa2_createkey(ssh_signkey *self,uchar *pub_blob,int pub_len,uchar *priv_blob,int priv_len)" * (ERROR "__regparm3" identifier) (function_declarator "rsa2_createkey(ssh_signkey *self,uchar *pub_blob,int pub_len,uchar *priv_blob,int priv_len)" identifier (parameter_list "(ssh_signkey *self,uchar *pub_blob,int pub_len,uchar *priv_blob,int priv_len)" ( (parameter_declaration "ssh_signkey *self" type_identifier (pointer_declarator "*self" * identifier)) , (parameter_declaration "uchar *pub_blob" type_identifier (pointer_declarator "*pub_blob" * identifier)) , (parameter_declaration "int pub_len" primitive_type identifier) , (parameter_declaration "uchar *priv_blob" type_identifier (pointer_declarator "*priv_blob" * identifier)) , (parameter_declaration "int priv_len" primitive_type identifier) )))) (compound_statement "{\n  RSAKey *key;\n  Bignum pvVar1;\n  int iVar2;\n  Bignum_conflict a;\n  int in_GS_OFFSET;\n  char *in_stack_0000000c;\n  char *pb;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x701c9;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  key = (RSAKey *)rsa2_newkey((ssh_signkey *)priv_len,in_stack_0000000c,pub_len);\n  pvVar1 = getmp(&pb,(int *)&stack0x00000014);\n  key->private_exponent = pvVar1;\n  pvVar1 = getmp(&pb,(int *)&stack0x00000014);\n  key->p = pvVar1;\n  pvVar1 = getmp(&pb,(int *)&stack0x00000014);\n  key->q = pvVar1;\n  pvVar1 = getmp(&pb,(int *)&stack0x00000014);\n  key->iqmp = pvVar1;\n  iVar2 = bignum_cmp((Bignum_conflict)key->modulus,Zero);\n  if (iVar2 != 0) {\n    a = bigmul((Bignum_conflict)key->p,(Bignum_conflict)key->q);\n    iVar2 = bignum_cmp(a,(Bignum_conflict)key->modulus);\n    freebn(a);\n    if ((iVar2 == 0) && (iVar2 = rsa_verify(key), iVar2 != 0)) goto LAB_0007025d;\n  }\n  freersakey(key);\n  safefree(key);\n  key = (RSAKey *)0x0;\nLAB_0007025d:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return key;\n}" { (declaration "RSAKey *key;" type_identifier (pointer_declarator "*key" * identifier) ;) (declaration "Bignum pvVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "Bignum_conflict a;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "char *in_stack_0000000c;" primitive_type (pointer_declarator "*in_stack_0000000c" * identifier) ;) (declaration "char *pb;" primitive_type (pointer_declarator "*pb" * identifier) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x701c9;" (assignment_expression "uStack_14 = 0x701c9" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "key = (RSAKey *)rsa2_newkey((ssh_signkey *)priv_len,in_stack_0000000c,pub_len);" (assignment_expression "key = (RSAKey *)rsa2_newkey((ssh_signkey *)priv_len,in_stack_0000000c,pub_len)" identifier = (cast_expression "(RSAKey *)rsa2_newkey((ssh_signkey *)priv_len,in_stack_0000000c,pub_len)" ( (type_descriptor "RSAKey *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "rsa2_newkey((ssh_signkey *)priv_len,in_stack_0000000c,pub_len)" identifier (argument_list "((ssh_signkey *)priv_len,in_stack_0000000c,pub_len)" ( (cast_expression "(ssh_signkey *)priv_len" ( (type_descriptor "ssh_signkey *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , identifier ))))) ;) (expression_statement "pvVar1 = getmp(&pb,(int *)&stack0x00000014);" (assignment_expression "pvVar1 = getmp(&pb,(int *)&stack0x00000014)" identifier = (call_expression "getmp(&pb,(int *)&stack0x00000014)" identifier (argument_list "(&pb,(int *)&stack0x00000014)" ( (pointer_expression "&pb" & identifier) , (cast_expression "(int *)&stack0x00000014" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&stack0x00000014" & 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(&pb,(int *)&stack0x00000014);" (assignment_expression "pvVar1 = getmp(&pb,(int *)&stack0x00000014)" identifier = (call_expression "getmp(&pb,(int *)&stack0x00000014)" identifier (argument_list "(&pb,(int *)&stack0x00000014)" ( (pointer_expression "&pb" & identifier) , (cast_expression "(int *)&stack0x00000014" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&stack0x00000014" & identifier)) )))) ;) (expression_statement "key->p = pvVar1;" (assignment_expression "key->p = pvVar1" (field_expression "key->p" identifier -> field_identifier) = identifier) ;) (expression_statement "pvVar1 = getmp(&pb,(int *)&stack0x00000014);" (assignment_expression "pvVar1 = getmp(&pb,(int *)&stack0x00000014)" identifier = (call_expression "getmp(&pb,(int *)&stack0x00000014)" identifier (argument_list "(&pb,(int *)&stack0x00000014)" ( (pointer_expression "&pb" & identifier) , (cast_expression "(int *)&stack0x00000014" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&stack0x00000014" & identifier)) )))) ;) (expression_statement "key->q = pvVar1;" (assignment_expression "key->q = pvVar1" (field_expression "key->q" identifier -> field_identifier) = identifier) ;) (expression_statement "pvVar1 = getmp(&pb,(int *)&stack0x00000014);" (assignment_expression "pvVar1 = getmp(&pb,(int *)&stack0x00000014)" identifier = (call_expression "getmp(&pb,(int *)&stack0x00000014)" identifier (argument_list "(&pb,(int *)&stack0x00000014)" ( (pointer_expression "&pb" & identifier) , (cast_expression "(int *)&stack0x00000014" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&stack0x00000014" & identifier)) )))) ;) (expression_statement "key->iqmp = pvVar1;" (assignment_expression "key->iqmp = pvVar1" (field_expression "key->iqmp" identifier -> field_identifier) = identifier) ;) (expression_statement "iVar2 = bignum_cmp((Bignum_conflict)key->modulus,Zero);" (assignment_expression "iVar2 = bignum_cmp((Bignum_conflict)key->modulus,Zero)" identifier = (call_expression "bignum_cmp((Bignum_conflict)key->modulus,Zero)" identifier (argument_list "((Bignum_conflict)key->modulus,Zero)" ( (cast_expression "(Bignum_conflict)key->modulus" ( (type_descriptor "Bignum_conflict" type_identifier) ) (field_expression "key->modulus" identifier -> field_identifier)) , identifier )))) ;) (if_statement "if (iVar2 != 0) {\n    a = bigmul((Bignum_conflict)key->p,(Bignum_conflict)key->q);\n    iVar2 = bignum_cmp(a,(Bignum_conflict)key->modulus);\n    freebn(a);\n    if ((iVar2 == 0) && (iVar2 = rsa_verify(key), iVar2 != 0)) goto LAB_0007025d;\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    a = bigmul((Bignum_conflict)key->p,(Bignum_conflict)key->q);\n    iVar2 = bignum_cmp(a,(Bignum_conflict)key->modulus);\n    freebn(a);\n    if ((iVar2 == 0) && (iVar2 = rsa_verify(key), iVar2 != 0)) goto LAB_0007025d;\n  }" { (expression_statement "a = bigmul((Bignum_conflict)key->p,(Bignum_conflict)key->q);" (assignment_expression "a = bigmul((Bignum_conflict)key->p,(Bignum_conflict)key->q)" identifier = (call_expression "bigmul((Bignum_conflict)key->p,(Bignum_conflict)key->q)" identifier (argument_list "((Bignum_conflict)key->p,(Bignum_conflict)key->q)" ( (cast_expression "(Bignum_conflict)key->p" ( (type_descriptor "Bignum_conflict" type_identifier) ) (field_expression "key->p" identifier -> field_identifier)) , (cast_expression "(Bignum_conflict)key->q" ( (type_descriptor "Bignum_conflict" type_identifier) ) (field_expression "key->q" identifier -> field_identifier)) )))) ;) (expression_statement "iVar2 = bignum_cmp(a,(Bignum_conflict)key->modulus);" (assignment_expression "iVar2 = bignum_cmp(a,(Bignum_conflict)key->modulus)" identifier = (call_expression "bignum_cmp(a,(Bignum_conflict)key->modulus)" identifier (argument_list "(a,(Bignum_conflict)key->modulus)" ( identifier , (cast_expression "(Bignum_conflict)key->modulus" ( (type_descriptor "Bignum_conflict" type_identifier) ) (field_expression "key->modulus" identifier -> field_identifier)) )))) ;) (expression_statement "freebn(a);" (call_expression "freebn(a)" identifier (argument_list "(a)" ( identifier ))) ;) (if_statement "if ((iVar2 == 0) && (iVar2 = rsa_verify(key), iVar2 != 0)) goto LAB_0007025d;" if (parenthesized_expression "((iVar2 == 0) && (iVar2 = rsa_verify(key), iVar2 != 0))" ( (binary_expression "(iVar2 == 0) && (iVar2 = rsa_verify(key), iVar2 != 0)" (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) && (parenthesized_expression "(iVar2 = rsa_verify(key), iVar2 != 0)" ( (comma_expression "iVar2 = rsa_verify(key), iVar2 != 0" (assignment_expression "iVar2 = rsa_verify(key)" identifier = (call_expression "rsa_verify(key)" identifier (argument_list "(key)" ( identifier )))) , (binary_expression "iVar2 != 0" identifier != number_literal)) ))) )) (goto_statement "goto LAB_0007025d;" goto statement_identifier ;)) })) (expression_statement "freersakey(key);" (call_expression "freersakey(key)" identifier (argument_list "(key)" ( identifier ))) ;) (expression_statement "safefree(key);" (call_expression "safefree(key)" 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)) ;) (labeled_statement "LAB_0007025d:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return key;" return identifier ;) })))
(translation_unit "int FUN_000701c0(void)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_00070090();\n  uVar3 = FUN_0006e990();\n  *(undefined4 *)(iVar2 + 0x10) = uVar3;\n  uVar3 = FUN_0006e990();\n  *(undefined4 *)(iVar2 + 0x14) = uVar3;\n  uVar3 = FUN_0006e990();\n  *(undefined4 *)(iVar2 + 0x18) = uVar3;\n  uVar3 = FUN_0006e990();\n  *(undefined4 *)(iVar2 + 0x1c) = uVar3;\n  iVar4 = FUN_00056bd0(*(undefined4 *)(iVar2 + 8),PTR_DAT_000cd0e8);\n  if (iVar4 != 0) {\n    uVar3 = FUN_00057430(*(undefined4 *)(iVar2 + 0x14),*(undefined4 *)(iVar2 + 0x18));\n    iVar4 = FUN_00056bd0(uVar3,*(undefined4 *)(iVar2 + 8));\n    FUN_00055350(uVar3);\n    if ((iVar4 == 0) && (iVar4 = FUN_0006e840(), iVar4 != 0)) goto LAB_0007025d;\n  }\n  FUN_0006fda0(iVar2);\n  FUN_0001dd30(iVar2);\n  iVar2 = 0;\nLAB_0007025d:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0008d800();\n  }\n  return iVar2;\n}\n\n" (function_definition "int FUN_000701c0(void)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_00070090();\n  uVar3 = FUN_0006e990();\n  *(undefined4 *)(iVar2 + 0x10) = uVar3;\n  uVar3 = FUN_0006e990();\n  *(undefined4 *)(iVar2 + 0x14) = uVar3;\n  uVar3 = FUN_0006e990();\n  *(undefined4 *)(iVar2 + 0x18) = uVar3;\n  uVar3 = FUN_0006e990();\n  *(undefined4 *)(iVar2 + 0x1c) = uVar3;\n  iVar4 = FUN_00056bd0(*(undefined4 *)(iVar2 + 8),PTR_DAT_000cd0e8);\n  if (iVar4 != 0) {\n    uVar3 = FUN_00057430(*(undefined4 *)(iVar2 + 0x14),*(undefined4 *)(iVar2 + 0x18));\n    iVar4 = FUN_00056bd0(uVar3,*(undefined4 *)(iVar2 + 8));\n    FUN_00055350(uVar3);\n    if ((iVar4 == 0) && (iVar4 = FUN_0006e840(), iVar4 != 0)) goto LAB_0007025d;\n  }\n  FUN_0006fda0(iVar2);\n  FUN_0001dd30(iVar2);\n  iVar2 = 0;\nLAB_0007025d:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0008d800();\n  }\n  return iVar2;\n}" primitive_type (function_declarator "FUN_000701c0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_00070090();\n  uVar3 = FUN_0006e990();\n  *(undefined4 *)(iVar2 + 0x10) = uVar3;\n  uVar3 = FUN_0006e990();\n  *(undefined4 *)(iVar2 + 0x14) = uVar3;\n  uVar3 = FUN_0006e990();\n  *(undefined4 *)(iVar2 + 0x18) = uVar3;\n  uVar3 = FUN_0006e990();\n  *(undefined4 *)(iVar2 + 0x1c) = uVar3;\n  iVar4 = FUN_00056bd0(*(undefined4 *)(iVar2 + 8),PTR_DAT_000cd0e8);\n  if (iVar4 != 0) {\n    uVar3 = FUN_00057430(*(undefined4 *)(iVar2 + 0x14),*(undefined4 *)(iVar2 + 0x18));\n    iVar4 = FUN_00056bd0(uVar3,*(undefined4 *)(iVar2 + 8));\n    FUN_00055350(uVar3);\n    if ((iVar4 == 0) && (iVar4 = FUN_0006e840(), iVar4 != 0)) goto LAB_0007025d;\n  }\n  FUN_0006fda0(iVar2);\n  FUN_0001dd30(iVar2);\n  iVar2 = 0;\nLAB_0007025d:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0008d800();\n  }\n  return iVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = FUN_00070090();" (assignment_expression "iVar2 = FUN_00070090()" identifier = (call_expression "FUN_00070090()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar3 = FUN_0006e990();" (assignment_expression "uVar3 = FUN_0006e990()" identifier = (call_expression "FUN_0006e990()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(undefined4 *)(iVar2 + 0x10) = uVar3;" (assignment_expression "*(undefined4 *)(iVar2 + 0x10) = uVar3" (pointer_expression "*(undefined4 *)(iVar2 + 0x10)" * (cast_expression "(undefined4 *)(iVar2 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar3 = FUN_0006e990();" (assignment_expression "uVar3 = FUN_0006e990()" identifier = (call_expression "FUN_0006e990()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(undefined4 *)(iVar2 + 0x14) = uVar3;" (assignment_expression "*(undefined4 *)(iVar2 + 0x14) = uVar3" (pointer_expression "*(undefined4 *)(iVar2 + 0x14)" * (cast_expression "(undefined4 *)(iVar2 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar3 = FUN_0006e990();" (assignment_expression "uVar3 = FUN_0006e990()" identifier = (call_expression "FUN_0006e990()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(undefined4 *)(iVar2 + 0x18) = uVar3;" (assignment_expression "*(undefined4 *)(iVar2 + 0x18) = uVar3" (pointer_expression "*(undefined4 *)(iVar2 + 0x18)" * (cast_expression "(undefined4 *)(iVar2 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x18)" ( (binary_expression "iVar2 + 0x18" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar3 = FUN_0006e990();" (assignment_expression "uVar3 = FUN_0006e990()" identifier = (call_expression "FUN_0006e990()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(undefined4 *)(iVar2 + 0x1c) = uVar3;" (assignment_expression "*(undefined4 *)(iVar2 + 0x1c) = uVar3" (pointer_expression "*(undefined4 *)(iVar2 + 0x1c)" * (cast_expression "(undefined4 *)(iVar2 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x1c)" ( (binary_expression "iVar2 + 0x1c" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar4 = FUN_00056bd0(*(undefined4 *)(iVar2 + 8),PTR_DAT_000cd0e8);" (assignment_expression "iVar4 = FUN_00056bd0(*(undefined4 *)(iVar2 + 8),PTR_DAT_000cd0e8)" identifier = (call_expression "FUN_00056bd0(*(undefined4 *)(iVar2 + 8),PTR_DAT_000cd0e8)" identifier (argument_list "(*(undefined4 *)(iVar2 + 8),PTR_DAT_000cd0e8)" ( (pointer_expression "*(undefined4 *)(iVar2 + 8)" * (cast_expression "(undefined4 *)(iVar2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) )))) , identifier )))) ;) (if_statement "if (iVar4 != 0) {\n    uVar3 = FUN_00057430(*(undefined4 *)(iVar2 + 0x14),*(undefined4 *)(iVar2 + 0x18));\n    iVar4 = FUN_00056bd0(uVar3,*(undefined4 *)(iVar2 + 8));\n    FUN_00055350(uVar3);\n    if ((iVar4 == 0) && (iVar4 = FUN_0006e840(), iVar4 != 0)) goto LAB_0007025d;\n  }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar3 = FUN_00057430(*(undefined4 *)(iVar2 + 0x14),*(undefined4 *)(iVar2 + 0x18));\n    iVar4 = FUN_00056bd0(uVar3,*(undefined4 *)(iVar2 + 8));\n    FUN_00055350(uVar3);\n    if ((iVar4 == 0) && (iVar4 = FUN_0006e840(), iVar4 != 0)) goto LAB_0007025d;\n  }" { (expression_statement "uVar3 = FUN_00057430(*(undefined4 *)(iVar2 + 0x14),*(undefined4 *)(iVar2 + 0x18));" (assignment_expression "uVar3 = FUN_00057430(*(undefined4 *)(iVar2 + 0x14),*(undefined4 *)(iVar2 + 0x18))" identifier = (call_expression "FUN_00057430(*(undefined4 *)(iVar2 + 0x14),*(undefined4 *)(iVar2 + 0x18))" identifier (argument_list "(*(undefined4 *)(iVar2 + 0x14),*(undefined4 *)(iVar2 + 0x18))" ( (pointer_expression "*(undefined4 *)(iVar2 + 0x14)" * (cast_expression "(undefined4 *)(iVar2 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) )))) , (pointer_expression "*(undefined4 *)(iVar2 + 0x18)" * (cast_expression "(undefined4 *)(iVar2 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x18)" ( (binary_expression "iVar2 + 0x18" identifier + number_literal) )))) )))) ;) (expression_statement "iVar4 = FUN_00056bd0(uVar3,*(undefined4 *)(iVar2 + 8));" (assignment_expression "iVar4 = FUN_00056bd0(uVar3,*(undefined4 *)(iVar2 + 8))" identifier = (call_expression "FUN_00056bd0(uVar3,*(undefined4 *)(iVar2 + 8))" identifier (argument_list "(uVar3,*(undefined4 *)(iVar2 + 8))" ( identifier , (pointer_expression "*(undefined4 *)(iVar2 + 8)" * (cast_expression "(undefined4 *)(iVar2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 8)" ( (binary_expression "iVar2 + 8" identifier + number_literal) )))) )))) ;) (expression_statement "FUN_00055350(uVar3);" (call_expression "FUN_00055350(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) ;) (if_statement "if ((iVar4 == 0) && (iVar4 = FUN_0006e840(), iVar4 != 0)) goto LAB_0007025d;" if (parenthesized_expression "((iVar4 == 0) && (iVar4 = FUN_0006e840(), iVar4 != 0))" ( (binary_expression "(iVar4 == 0) && (iVar4 = FUN_0006e840(), iVar4 != 0)" (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) && (parenthesized_expression "(iVar4 = FUN_0006e840(), iVar4 != 0)" ( (comma_expression "iVar4 = FUN_0006e840(), iVar4 != 0" (assignment_expression "iVar4 = FUN_0006e840()" identifier = (call_expression "FUN_0006e840()" identifier (argument_list "()" ( )))) , (binary_expression "iVar4 != 0" identifier != number_literal)) ))) )) (goto_statement "goto LAB_0007025d;" goto statement_identifier ;)) })) (expression_statement "FUN_0006fda0(iVar2);" (call_expression "FUN_0006fda0(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;) (expression_statement "FUN_0001dd30(iVar2);" (call_expression "FUN_0001dd30(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (labeled_statement "LAB_0007025d:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0008d800();\n  }" statement_identifier : (if_statement "if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0008d800();\n  }" if (parenthesized_expression "(iVar1 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    FUN_0008d800();\n  }" { (expression_statement "FUN_0008d800();" (call_expression "FUN_0008d800()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (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 ( )))) ;) (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 ( )))) ;) (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 ( )))) ;) (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 ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (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 = (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) , (binary_expression IDENT != LIT)) ))) )) (goto_statement goto statement_identifier ;)) })) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) }))) (return_statement return IDENT ;) })))
(function_definition "int FUN_000701c0(void)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_00070090();\n  uVar3 = FUN_0006e990();\n  *(undefined4 *)(iVar2 + 0x10) = uVar3;\n  uVar3 = FUN_0006e990();\n  *(undefined4 *)(iVar2 + 0x14) = uVar3;\n  uVar3 = FUN_0006e990();\n  *(undefined4 *)(iVar2 + 0x18) = uVar3;\n  uVar3 = FUN_0006e990();\n  *(undefined4 *)(iVar2 + 0x1c) = uVar3;\n  iVar4 = FUN_00056bd0(*(undefined4 *)(iVar2 + 8),PTR_DAT_000cd0e8);\n  if (iVar4 != 0) {\n    uVar3 = FUN_00057430(*(undefined4 *)(iVar2 + 0x14),*(undefined4 *)(iVar2 + 0x18));\n    iVar4 = FUN_00056bd0(uVar3,*(undefined4 *)(iVar2 + 8));\n    FUN_00055350(uVar3);\n    if ((iVar4 == 0) && (iVar4 = FUN_0006e840(), iVar4 != 0)) goto LAB_0007025d;\n  }\n  FUN_0006fda0(iVar2);\n  FUN_0001dd30(iVar2);\n  iVar2 = 0;\nLAB_0007025d:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0008d800();\n  }\n  return iVar2;\n}" (primitive_type "int") (function_declarator "FUN_000701c0(void)" (identifier "FUN_000701c0") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  int in_GS_OFFSET;\n  \n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = FUN_00070090();\n  uVar3 = FUN_0006e990();\n  *(undefined4 *)(iVar2 + 0x10) = uVar3;\n  uVar3 = FUN_0006e990();\n  *(undefined4 *)(iVar2 + 0x14) = uVar3;\n  uVar3 = FUN_0006e990();\n  *(undefined4 *)(iVar2 + 0x18) = uVar3;\n  uVar3 = FUN_0006e990();\n  *(undefined4 *)(iVar2 + 0x1c) = uVar3;\n  iVar4 = FUN_00056bd0(*(undefined4 *)(iVar2 + 8),PTR_DAT_000cd0e8);\n  if (iVar4 != 0) {\n    uVar3 = FUN_00057430(*(undefined4 *)(iVar2 + 0x14),*(undefined4 *)(iVar2 + 0x18));\n    iVar4 = FUN_00056bd0(uVar3,*(undefined4 *)(iVar2 + 8));\n    FUN_00055350(uVar3);\n    if ((iVar4 == 0) && (iVar4 = FUN_0006e840(), iVar4 != 0)) goto LAB_0007025d;\n  }\n  FUN_0006fda0(iVar2);\n  FUN_0001dd30(iVar2);\n  iVar2 = 0;\nLAB_0007025d:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0008d800();\n  }\n  return iVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "iVar2 = FUN_00070090();" (assignment_expression "iVar2 = FUN_00070090()" (identifier "iVar2") (= "=") (call_expression "FUN_00070090()" (identifier "FUN_00070090") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar3 = FUN_0006e990();" (assignment_expression "uVar3 = FUN_0006e990()" (identifier "uVar3") (= "=") (call_expression "FUN_0006e990()" (identifier "FUN_0006e990") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(iVar2 + 0x10) = uVar3;" (assignment_expression "*(undefined4 *)(iVar2 + 0x10) = uVar3" (pointer_expression "*(undefined4 *)(iVar2 + 0x10)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x10)" (( "(") (binary_expression "iVar2 + 0x10" (identifier "iVar2") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "uVar3 = FUN_0006e990();" (assignment_expression "uVar3 = FUN_0006e990()" (identifier "uVar3") (= "=") (call_expression "FUN_0006e990()" (identifier "FUN_0006e990") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(iVar2 + 0x14) = uVar3;" (assignment_expression "*(undefined4 *)(iVar2 + 0x14) = uVar3" (pointer_expression "*(undefined4 *)(iVar2 + 0x14)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x14)" (( "(") (binary_expression "iVar2 + 0x14" (identifier "iVar2") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "uVar3 = FUN_0006e990();" (assignment_expression "uVar3 = FUN_0006e990()" (identifier "uVar3") (= "=") (call_expression "FUN_0006e990()" (identifier "FUN_0006e990") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(iVar2 + 0x18) = uVar3;" (assignment_expression "*(undefined4 *)(iVar2 + 0x18) = uVar3" (pointer_expression "*(undefined4 *)(iVar2 + 0x18)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x18)" (( "(") (binary_expression "iVar2 + 0x18" (identifier "iVar2") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "uVar3 = FUN_0006e990();" (assignment_expression "uVar3 = FUN_0006e990()" (identifier "uVar3") (= "=") (call_expression "FUN_0006e990()" (identifier "FUN_0006e990") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(iVar2 + 0x1c) = uVar3;" (assignment_expression "*(undefined4 *)(iVar2 + 0x1c) = uVar3" (pointer_expression "*(undefined4 *)(iVar2 + 0x1c)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x1c)" (( "(") (binary_expression "iVar2 + 0x1c" (identifier "iVar2") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "iVar4 = FUN_00056bd0(*(undefined4 *)(iVar2 + 8),PTR_DAT_000cd0e8);" (assignment_expression "iVar4 = FUN_00056bd0(*(undefined4 *)(iVar2 + 8),PTR_DAT_000cd0e8)" (identifier "iVar4") (= "=") (call_expression "FUN_00056bd0(*(undefined4 *)(iVar2 + 8),PTR_DAT_000cd0e8)" (identifier "FUN_00056bd0") (argument_list "(*(undefined4 *)(iVar2 + 8),PTR_DAT_000cd0e8)" (( "(") (pointer_expression "*(undefined4 *)(iVar2 + 8)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 8)" (( "(") (binary_expression "iVar2 + 8" (identifier "iVar2") (+ "+") (number_literal "8")) () ")")))) (, ",") (identifier "PTR_DAT_000cd0e8") () ")")))) (; ";")) (if_statement "if (iVar4 != 0) {\n    uVar3 = FUN_00057430(*(undefined4 *)(iVar2 + 0x14),*(undefined4 *)(iVar2 + 0x18));\n    iVar4 = FUN_00056bd0(uVar3,*(undefined4 *)(iVar2 + 8));\n    FUN_00055350(uVar3);\n    if ((iVar4 == 0) && (iVar4 = FUN_0006e840(), iVar4 != 0)) goto LAB_0007025d;\n  }" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar3 = FUN_00057430(*(undefined4 *)(iVar2 + 0x14),*(undefined4 *)(iVar2 + 0x18));\n    iVar4 = FUN_00056bd0(uVar3,*(undefined4 *)(iVar2 + 8));\n    FUN_00055350(uVar3);\n    if ((iVar4 == 0) && (iVar4 = FUN_0006e840(), iVar4 != 0)) goto LAB_0007025d;\n  }" ({ "{") (expression_statement "uVar3 = FUN_00057430(*(undefined4 *)(iVar2 + 0x14),*(undefined4 *)(iVar2 + 0x18));" (assignment_expression "uVar3 = FUN_00057430(*(undefined4 *)(iVar2 + 0x14),*(undefined4 *)(iVar2 + 0x18))" (identifier "uVar3") (= "=") (call_expression "FUN_00057430(*(undefined4 *)(iVar2 + 0x14),*(undefined4 *)(iVar2 + 0x18))" (identifier "FUN_00057430") (argument_list "(*(undefined4 *)(iVar2 + 0x14),*(undefined4 *)(iVar2 + 0x18))" (( "(") (pointer_expression "*(undefined4 *)(iVar2 + 0x14)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x14)" (( "(") (binary_expression "iVar2 + 0x14" (identifier "iVar2") (+ "+") (number_literal "0x14")) () ")")))) (, ",") (pointer_expression "*(undefined4 *)(iVar2 + 0x18)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x18)" (( "(") (binary_expression "iVar2 + 0x18" (identifier "iVar2") (+ "+") (number_literal "0x18")) () ")")))) () ")")))) (; ";")) (expression_statement "iVar4 = FUN_00056bd0(uVar3,*(undefined4 *)(iVar2 + 8));" (assignment_expression "iVar4 = FUN_00056bd0(uVar3,*(undefined4 *)(iVar2 + 8))" (identifier "iVar4") (= "=") (call_expression "FUN_00056bd0(uVar3,*(undefined4 *)(iVar2 + 8))" (identifier "FUN_00056bd0") (argument_list "(uVar3,*(undefined4 *)(iVar2 + 8))" (( "(") (identifier "uVar3") (, ",") (pointer_expression "*(undefined4 *)(iVar2 + 8)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 8)" (( "(") (binary_expression "iVar2 + 8" (identifier "iVar2") (+ "+") (number_literal "8")) () ")")))) () ")")))) (; ";")) (expression_statement "FUN_00055350(uVar3);" (call_expression "FUN_00055350(uVar3)" (identifier "FUN_00055350") (argument_list "(uVar3)" (( "(") (identifier "uVar3") () ")"))) (; ";")) (if_statement "if ((iVar4 == 0) && (iVar4 = FUN_0006e840(), iVar4 != 0)) goto LAB_0007025d;" (if "if") (parenthesized_expression "((iVar4 == 0) && (iVar4 = FUN_0006e840(), iVar4 != 0))" (( "(") (binary_expression "(iVar4 == 0) && (iVar4 = FUN_0006e840(), iVar4 != 0)" (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar4 = FUN_0006e840(), iVar4 != 0)" (( "(") (comma_expression "iVar4 = FUN_0006e840(), iVar4 != 0" (assignment_expression "iVar4 = FUN_0006e840()" (identifier "iVar4") (= "=") (call_expression "FUN_0006e840()" (identifier "FUN_0006e840") (argument_list "()" (( "(") () ")")))) (, ",") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (goto_statement "goto LAB_0007025d;" (goto "goto") (statement_identifier "LAB_0007025d") (; ";"))) (} "}"))) (expression_statement "FUN_0006fda0(iVar2);" (call_expression "FUN_0006fda0(iVar2)" (identifier "FUN_0006fda0") (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")"))) (; ";")) (expression_statement "FUN_0001dd30(iVar2);" (call_expression "FUN_0001dd30(iVar2)" (identifier "FUN_0001dd30") (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")"))) (; ";")) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_0007025d:\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0008d800();\n  }" (statement_identifier "LAB_0007025d") (: ":") (if_statement "if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_0008d800();\n  }" (if "if") (parenthesized_expression "(iVar1 != *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "iVar1 != *(int *)(in_GS_OFFSET + 0x14)" (identifier "iVar1") (!= "!=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n                    \n    FUN_0008d800();\n  }" ({ "{") (expression_statement "FUN_0008d800();" (call_expression "FUN_0008d800()" (identifier "FUN_0008d800") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}")))

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

void * __regparm3
function_1(type_1 *self,type_2 *pub_blob,int pub_len,type_2 *priv_blob,int priv_len)

{
  type_3 *key;
  type_4 pvVar1;
  int var_5;
  type_5 a;
  int var_1;
  char *in_stack_0000000c;
  char *pb;
  int var_11;
  type_6 uStack_14;
  
  uStack_14 = 0x701c9;
  var_11 = *(int *)(var_1 + 0x14);
  key = (type_3 *)var_2((type_1 *)priv_len,in_stack_0000000c,pub_len);
  pvVar1 = var_3(&pb,(int *)&stack0x00000014);
  key->private_exponent = pvVar1;
  pvVar1 = var_3(&pb,(int *)&stack0x00000014);
  key->p = pvVar1;
  pvVar1 = var_3(&pb,(int *)&stack0x00000014);
  key->q = pvVar1;
  pvVar1 = var_3(&pb,(int *)&stack0x00000014);
  key->iqmp = pvVar1;
  var_5 = var_4((type_5)key->modulus,Zero);
  if (var_5 != 0) {
    a = var_6((type_5)key->p,(type_5)key->q);
    var_5 = var_4(a,(type_5)key->modulus);
    var_7(a);
    if ((var_5 == 0) && (var_5 = var_8(key), var_5 != 0)) goto LAB_0007025d;
  }
  var_9(key);
  var_10(key);
  key = (type_3 *)0x0;
LAB_0007025d:
  if (var_11 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_12();
  }
  return key;
}


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

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

int MASKED(void)

{
  int iVar1;
  int iVar2;
  undefined4 uVar3;
  int iVar4;
  int in_GS_OFFSET;
  
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  iVar2 = FUN_00070090();
  uVar3 = FUN_0006e990();
  *(undefined4 *)(iVar2 + 0x10) = uVar3;
  uVar3 = FUN_0006e990();
  *(undefined4 *)(iVar2 + 0x14) = uVar3;
  uVar3 = FUN_0006e990();
  *(undefined4 *)(iVar2 + 0x18) = uVar3;
  uVar3 = FUN_0006e990();
  *(undefined4 *)(iVar2 + 0x1c) = uVar3;
  iVar4 = FUN_00056bd0(*(undefined4 *)(iVar2 + 8),PTR_DAT_000cd0e8);
  if (iVar4 != 0) {
    uVar3 = FUN_00057430(*(undefined4 *)(iVar2 + 0x14),*(undefined4 *)(iVar2 + 0x18));
    iVar4 = FUN_00056bd0(uVar3,*(undefined4 *)(iVar2 + 8));
    FUN_00055350(uVar3);
    if ((iVar4 == 0) && (iVar4 = FUN_0006e840(), iVar4 != 0)) goto LAB_0007025d;
  }
  FUN_0006fda0(iVar2);
  FUN_0001dd30(iVar2);
  iVar2 = 0;
LAB_0007025d:
  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_0008d800();
  }
  return iVar2;
}

