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

void * rsa2_newkey(ssh_signkey *self,char *data,int len)

{
  RSAKey *key;
  Bignum pvVar1;
  RSAKey *pRVar2;
  int in_GS_OFFSET;
  char *local_30 [2];
  char *p;
  int slen;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x59e19;
  local_30[0] = data;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  key = (RSAKey *)safemalloc(1,0x24);
  getstring(local_30,&len,&p,&slen);
  if ((((p == (char *)0x0) || (slen != 7)) || (*(int *)p != 0x2d687373)) ||
     ((*(short *)(p + 4) != 0x7372 || (p[6] != 'a')))) {
    safefree(key);
    pRVar2 = (RSAKey *)0x0;
  }
  else {
    pvVar1 = getmp(local_30,&len);
    key->exponent = pvVar1;
    pvVar1 = getmp(local_30,&len);
    key->private_exponent = (Bignum)0x0;
    key->modulus = pvVar1;
    key->iqmp = (Bignum)0x0;
    key->q = (Bignum)0x0;
    key->p = (Bignum)0x0;
    key->comment = (char *)0x0;
    if ((key->exponent == (Bignum)0x0) || (pRVar2 = key, pvVar1 == (Bignum)0x0)) {
      freersakey(key);
      pRVar2 = (RSAKey *)0x0;
      safefree(key);
    }
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return pRVar2;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

int FUN_00059e10(void)

{
  int iVar1;
  undefined4 uVar2;
  int iVar3;
  int iVar4;
  int in_GS_OFFSET;
  int *local_28;
  int local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x59e19;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  iVar1 = FUN_0001a9b0(1,0x24);
  FUN_00058480(&local_24);
  if ((((local_28 == (int *)0x0) || (local_24 != 7)) || (*local_28 != 0x2d687373)) ||
     (((short)local_28[1] != 0x7372 || (*(char *)((int)local_28 + 6) != 'a')))) {
    FUN_0001b240(iVar1);
    iVar4 = 0;
  }
  else {
    uVar2 = FUN_00058500();
    *(undefined4 *)(iVar1 + 0xc) = uVar2;
    iVar3 = FUN_00058500();
    *(undefined4 *)(iVar1 + 0x10) = 0;
    *(int *)(iVar1 + 8) = iVar3;
    *(undefined4 *)(iVar1 + 0x1c) = 0;
    *(undefined4 *)(iVar1 + 0x18) = 0;
    *(undefined4 *)(iVar1 + 0x14) = 0;
    *(undefined4 *)(iVar1 + 0x20) = 0;
    if ((*(int *)(iVar1 + 0xc) == 0) || (iVar4 = iVar1, iVar3 == 0)) {
      FUN_00059c90(iVar1);
      iVar4 = 0;
      FUN_0001b240(iVar1);
    }
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar4;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0006f430();
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014970
ADD EBX,0x4ff77
SUB ESP,0x34
MOV EAX,dword ptr [ESP + 0x4c]
MOV dword ptr [ESP + 0x14],EAX
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x24],EAX
XOR EAX,EAX
PUSH 0x24
PUSH 0x1
CALL 0x0001a9b0
LEA EBP,[ESP + 0x58]
LEA ECX,[ESP + 0x24]
LEA EDI,[ESP + 0x1c]
MOV ESI,EAX
POP EAX
MOV EDX,EBP
LEA EAX,[ESP + 0x24]
PUSH EAX
MOV EAX,EDI
CALL 0x00058480
MOV EAX,dword ptr [ESP + 0x24]
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00059e76
CMP dword ptr [ESP + 0x18],0x7
JNZ 0x00059e76
CMP dword ptr [EAX],0x2d687373
JZ 0x00059ea0
SUB ESP,0xc
PUSH ESI
XOR ESI,ESI
CALL 0x0001b240
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0x1c]
XOR EDX,dword ptr GS:[0x14]
MOV EAX,ESI
JNZ 0x00059f0f
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
CMP word ptr [EAX + 0x4],0x7372
JNZ 0x00059e76
CMP byte ptr [EAX + 0x6],0x61
JNZ 0x00059e76
MOV EDX,EBP
MOV EAX,EDI
CALL 0x00058500
MOV EDX,EBP
MOV dword ptr [ESI + 0xc],EAX
MOV EAX,EDI
CALL 0x00058500
MOV EDX,dword ptr [ESI + 0xc]
MOV dword ptr [ESI + 0x10],0x0
MOV dword ptr [ESI + 0x8],EAX
MOV dword ptr [ESI + 0x1c],0x0
MOV dword ptr [ESI + 0x18],0x0
MOV dword ptr [ESI + 0x14],0x0
MOV dword ptr [ESI + 0x20],0x0
TEST EDX,EDX
JZ 0x00059ef4
TEST EAX,EAX
JNZ 0x00059e84
SUB ESP,0xc
PUSH ESI
CALL 0x00059c90
MOV dword ptr [ESP],ESI
XOR ESI,ESI
CALL 0x0001b240
ADD ESP,0x10
JMP 0x00059e84
CALL 0x0006f430
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_00059e10(void)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int in_GS_OFFSET;\n  int *local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x59e19;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = FUN_0001a9b0(1,0x24);\n  FUN_00058480(&local_24);\n  if ((((local_28 == (int *)0x0) || (local_24 != 7)) || (*local_28 != 0x2d687373)) ||\n     (((short)local_28[1] != 0x7372 || (*(char *)((int)local_28 + 6) != 'a')))) {\n    FUN_0001b240(iVar1);\n    iVar4 = 0;\n  }\n  else {\n    uVar2 = FUN_00058500();\n    *(undefined4 *)(iVar1 + 0xc) = uVar2;\n    iVar3 = FUN_00058500();\n    *(undefined4 *)(iVar1 + 0x10) = 0;\n    *(int *)(iVar1 + 8) = iVar3;\n    *(undefined4 *)(iVar1 + 0x1c) = 0;\n    *(undefined4 *)(iVar1 + 0x18) = 0;\n    *(undefined4 *)(iVar1 + 0x14) = 0;\n    *(undefined4 *)(iVar1 + 0x20) = 0;\n    if ((*(int *)(iVar1 + 0xc) == 0) || (iVar4 = iVar1, iVar3 == 0)) {\n      FUN_00059c90(iVar1);\n      iVar4 = 0;\n      FUN_0001b240(iVar1);\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006f430();\n}\n\n" comment (function_definition "int FUN_00059e10(void)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int in_GS_OFFSET;\n  int *local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x59e19;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = FUN_0001a9b0(1,0x24);\n  FUN_00058480(&local_24);\n  if ((((local_28 == (int *)0x0) || (local_24 != 7)) || (*local_28 != 0x2d687373)) ||\n     (((short)local_28[1] != 0x7372 || (*(char *)((int)local_28 + 6) != 'a')))) {\n    FUN_0001b240(iVar1);\n    iVar4 = 0;\n  }\n  else {\n    uVar2 = FUN_00058500();\n    *(undefined4 *)(iVar1 + 0xc) = uVar2;\n    iVar3 = FUN_00058500();\n    *(undefined4 *)(iVar1 + 0x10) = 0;\n    *(int *)(iVar1 + 8) = iVar3;\n    *(undefined4 *)(iVar1 + 0x1c) = 0;\n    *(undefined4 *)(iVar1 + 0x18) = 0;\n    *(undefined4 *)(iVar1 + 0x14) = 0;\n    *(undefined4 *)(iVar1 + 0x20) = 0;\n    if ((*(int *)(iVar1 + 0xc) == 0) || (iVar4 = iVar1, iVar3 == 0)) {\n      FUN_00059c90(iVar1);\n      iVar4 = 0;\n      FUN_0001b240(iVar1);\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006f430();\n}" primitive_type (function_declarator "FUN_00059e10(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int in_GS_OFFSET;\n  int *local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x59e19;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = FUN_0001a9b0(1,0x24);\n  FUN_00058480(&local_24);\n  if ((((local_28 == (int *)0x0) || (local_24 != 7)) || (*local_28 != 0x2d687373)) ||\n     (((short)local_28[1] != 0x7372 || (*(char *)((int)local_28 + 6) != 'a')))) {\n    FUN_0001b240(iVar1);\n    iVar4 = 0;\n  }\n  else {\n    uVar2 = FUN_00058500();\n    *(undefined4 *)(iVar1 + 0xc) = uVar2;\n    iVar3 = FUN_00058500();\n    *(undefined4 *)(iVar1 + 0x10) = 0;\n    *(int *)(iVar1 + 8) = iVar3;\n    *(undefined4 *)(iVar1 + 0x1c) = 0;\n    *(undefined4 *)(iVar1 + 0x18) = 0;\n    *(undefined4 *)(iVar1 + 0x14) = 0;\n    *(undefined4 *)(iVar1 + 0x20) = 0;\n    if ((*(int *)(iVar1 + 0xc) == 0) || (iVar4 = iVar1, iVar3 == 0)) {\n      FUN_00059c90(iVar1);\n      iVar4 = 0;\n      FUN_0001b240(iVar1);\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_0006f430();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int *local_28;" primitive_type (pointer_declarator "*local_28" * identifier) ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x59e19;" (assignment_expression "uStack_14 = 0x59e19" 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 "iVar1 = FUN_0001a9b0(1,0x24);" (assignment_expression "iVar1 = FUN_0001a9b0(1,0x24)" identifier = (call_expression "FUN_0001a9b0(1,0x24)" identifier (argument_list "(1,0x24)" ( number_literal , number_literal )))) ;) (expression_statement "FUN_00058480(&local_24);" (call_expression "FUN_00058480(&local_24)" identifier (argument_list "(&local_24)" ( (pointer_expression "&local_24" & identifier) ))) ;) (if_statement "if ((((local_28 == (int *)0x0) || (local_24 != 7)) || (*local_28 != 0x2d687373)) ||\n     (((short)local_28[1] != 0x7372 || (*(char *)((int)local_28 + 6) != 'a')))) {\n    FUN_0001b240(iVar1);\n    iVar4 = 0;\n  }\n  else {\n    uVar2 = FUN_00058500();\n    *(undefined4 *)(iVar1 + 0xc) = uVar2;\n    iVar3 = FUN_00058500();\n    *(undefined4 *)(iVar1 + 0x10) = 0;\n    *(int *)(iVar1 + 8) = iVar3;\n    *(undefined4 *)(iVar1 + 0x1c) = 0;\n    *(undefined4 *)(iVar1 + 0x18) = 0;\n    *(undefined4 *)(iVar1 + 0x14) = 0;\n    *(undefined4 *)(iVar1 + 0x20) = 0;\n    if ((*(int *)(iVar1 + 0xc) == 0) || (iVar4 = iVar1, iVar3 == 0)) {\n      FUN_00059c90(iVar1);\n      iVar4 = 0;\n      FUN_0001b240(iVar1);\n    }\n  }" if (parenthesized_expression "((((local_28 == (int *)0x0) || (local_24 != 7)) || (*local_28 != 0x2d687373)) ||\n     (((short)local_28[1] != 0x7372 || (*(char *)((int)local_28 + 6) != 'a'))))" ( (binary_expression "(((local_28 == (int *)0x0) || (local_24 != 7)) || (*local_28 != 0x2d687373)) ||\n     (((short)local_28[1] != 0x7372 || (*(char *)((int)local_28 + 6) != 'a')))" (parenthesized_expression "(((local_28 == (int *)0x0) || (local_24 != 7)) || (*local_28 != 0x2d687373))" ( (binary_expression "((local_28 == (int *)0x0) || (local_24 != 7)) || (*local_28 != 0x2d687373)" (parenthesized_expression "((local_28 == (int *)0x0) || (local_24 != 7))" ( (binary_expression "(local_28 == (int *)0x0) || (local_24 != 7)" (parenthesized_expression "(local_28 == (int *)0x0)" ( (binary_expression "local_28 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(local_24 != 7)" ( (binary_expression "local_24 != 7" identifier != number_literal) ))) )) || (parenthesized_expression "(*local_28 != 0x2d687373)" ( (binary_expression "*local_28 != 0x2d687373" (pointer_expression "*local_28" * identifier) != number_literal) ))) )) || (parenthesized_expression "(((short)local_28[1] != 0x7372 || (*(char *)((int)local_28 + 6) != 'a')))" ( (parenthesized_expression "((short)local_28[1] != 0x7372 || (*(char *)((int)local_28 + 6) != 'a'))" ( (binary_expression "(short)local_28[1] != 0x7372 || (*(char *)((int)local_28 + 6) != 'a')" (binary_expression "(short)local_28[1] != 0x7372" (cast_expression "(short)local_28[1]" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) (subscript_expression "local_28[1]" identifier [ number_literal ])) != number_literal) || (parenthesized_expression "(*(char *)((int)local_28 + 6) != 'a')" ( (binary_expression "*(char *)((int)local_28 + 6) != 'a'" (pointer_expression "*(char *)((int)local_28 + 6)" * (cast_expression "(char *)((int)local_28 + 6)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_28 + 6)" ( (binary_expression "(int)local_28 + 6" (cast_expression "(int)local_28" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != (char_literal "'a'" ' character ')) ))) )) ))) )) (compound_statement "{\n    FUN_0001b240(iVar1);\n    iVar4 = 0;\n  }" { (expression_statement "FUN_0001b240(iVar1);" (call_expression "FUN_0001b240(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    uVar2 = FUN_00058500();\n    *(undefined4 *)(iVar1 + 0xc) = uVar2;\n    iVar3 = FUN_00058500();\n    *(undefined4 *)(iVar1 + 0x10) = 0;\n    *(int *)(iVar1 + 8) = iVar3;\n    *(undefined4 *)(iVar1 + 0x1c) = 0;\n    *(undefined4 *)(iVar1 + 0x18) = 0;\n    *(undefined4 *)(iVar1 + 0x14) = 0;\n    *(undefined4 *)(iVar1 + 0x20) = 0;\n    if ((*(int *)(iVar1 + 0xc) == 0) || (iVar4 = iVar1, iVar3 == 0)) {\n      FUN_00059c90(iVar1);\n      iVar4 = 0;\n      FUN_0001b240(iVar1);\n    }\n  }" else (compound_statement "{\n    uVar2 = FUN_00058500();\n    *(undefined4 *)(iVar1 + 0xc) = uVar2;\n    iVar3 = FUN_00058500();\n    *(undefined4 *)(iVar1 + 0x10) = 0;\n    *(int *)(iVar1 + 8) = iVar3;\n    *(undefined4 *)(iVar1 + 0x1c) = 0;\n    *(undefined4 *)(iVar1 + 0x18) = 0;\n    *(undefined4 *)(iVar1 + 0x14) = 0;\n    *(undefined4 *)(iVar1 + 0x20) = 0;\n    if ((*(int *)(iVar1 + 0xc) == 0) || (iVar4 = iVar1, iVar3 == 0)) {\n      FUN_00059c90(iVar1);\n      iVar4 = 0;\n      FUN_0001b240(iVar1);\n    }\n  }" { (expression_statement "uVar2 = FUN_00058500();" (assignment_expression "uVar2 = FUN_00058500()" identifier = (call_expression "FUN_00058500()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(undefined4 *)(iVar1 + 0xc) = uVar2;" (assignment_expression "*(undefined4 *)(iVar1 + 0xc) = uVar2" (pointer_expression "*(undefined4 *)(iVar1 + 0xc)" * (cast_expression "(undefined4 *)(iVar1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar3 = FUN_00058500();" (assignment_expression "iVar3 = FUN_00058500()" identifier = (call_expression "FUN_00058500()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x10) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x10)" * (cast_expression "(undefined4 *)(iVar1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(int *)(iVar1 + 8) = iVar3;" (assignment_expression "*(int *)(iVar1 + 8) = iVar3" (pointer_expression "*(int *)(iVar1 + 8)" * (cast_expression "(int *)(iVar1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x1c) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x1c) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x1c)" * (cast_expression "(undefined4 *)(iVar1 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x1c)" ( (binary_expression "iVar1 + 0x1c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x18) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x18)" * (cast_expression "(undefined4 *)(iVar1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x18)" ( (binary_expression "iVar1 + 0x18" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x14) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x14) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x14)" * (cast_expression "(undefined4 *)(iVar1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x20) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x20) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x20)" * (cast_expression "(undefined4 *)(iVar1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) )))) = number_literal) ;) (if_statement "if ((*(int *)(iVar1 + 0xc) == 0) || (iVar4 = iVar1, iVar3 == 0)) {\n      FUN_00059c90(iVar1);\n      iVar4 = 0;\n      FUN_0001b240(iVar1);\n    }" if (parenthesized_expression "((*(int *)(iVar1 + 0xc) == 0) || (iVar4 = iVar1, iVar3 == 0))" ( (binary_expression "(*(int *)(iVar1 + 0xc) == 0) || (iVar4 = iVar1, iVar3 == 0)" (parenthesized_expression "(*(int *)(iVar1 + 0xc) == 0)" ( (binary_expression "*(int *)(iVar1 + 0xc) == 0" (pointer_expression "*(int *)(iVar1 + 0xc)" * (cast_expression "(int *)(iVar1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) == number_literal) )) || (parenthesized_expression "(iVar4 = iVar1, iVar3 == 0)" ( (comma_expression "iVar4 = iVar1, iVar3 == 0" (assignment_expression "iVar4 = iVar1" identifier = identifier) , (binary_expression "iVar3 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n      FUN_00059c90(iVar1);\n      iVar4 = 0;\n      FUN_0001b240(iVar1);\n    }" { (expression_statement "FUN_00059c90(iVar1);" (call_expression "FUN_00059c90(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "FUN_0001b240(iVar1);" (call_expression "FUN_0001b240(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) })) }))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar4;\n  }" { (return_statement "return iVar4;" return identifier ;) })) comment (expression_statement "FUN_0006f430();" (call_expression "FUN_0006f430()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid * rsa2_newkey(ssh_signkey *self,char *data,int len)\n\n{\n  RSAKey *key;\n  Bignum pvVar1;\n  RSAKey *pRVar2;\n  int in_GS_OFFSET;\n  char *local_30 [2];\n  char *p;\n  int slen;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x59e19;\n  local_30[0] = data;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  key = (RSAKey *)safemalloc(1,0x24);\n  getstring(local_30,&len,&p,&slen);\n  if ((((p == (char *)0x0) || (slen != 7)) || (*(int *)p != 0x2d687373)) ||\n     ((*(short *)(p + 4) != 0x7372 || (p[6] != 'a')))) {\n    safefree(key);\n    pRVar2 = (RSAKey *)0x0;\n  }\n  else {\n    pvVar1 = getmp(local_30,&len);\n    key->exponent = pvVar1;\n    pvVar1 = getmp(local_30,&len);\n    key->private_exponent = (Bignum)0x0;\n    key->modulus = pvVar1;\n    key->iqmp = (Bignum)0x0;\n    key->q = (Bignum)0x0;\n    key->p = (Bignum)0x0;\n    key->comment = (char *)0x0;\n    if ((key->exponent == (Bignum)0x0) || (pRVar2 = key, pvVar1 == (Bignum)0x0)) {\n      freersakey(key);\n      pRVar2 = (RSAKey *)0x0;\n      safefree(key);\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pRVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" comment (function_definition "void * rsa2_newkey(ssh_signkey *self,char *data,int len)\n\n{\n  RSAKey *key;\n  Bignum pvVar1;\n  RSAKey *pRVar2;\n  int in_GS_OFFSET;\n  char *local_30 [2];\n  char *p;\n  int slen;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x59e19;\n  local_30[0] = data;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  key = (RSAKey *)safemalloc(1,0x24);\n  getstring(local_30,&len,&p,&slen);\n  if ((((p == (char *)0x0) || (slen != 7)) || (*(int *)p != 0x2d687373)) ||\n     ((*(short *)(p + 4) != 0x7372 || (p[6] != 'a')))) {\n    safefree(key);\n    pRVar2 = (RSAKey *)0x0;\n  }\n  else {\n    pvVar1 = getmp(local_30,&len);\n    key->exponent = pvVar1;\n    pvVar1 = getmp(local_30,&len);\n    key->private_exponent = (Bignum)0x0;\n    key->modulus = pvVar1;\n    key->iqmp = (Bignum)0x0;\n    key->q = (Bignum)0x0;\n    key->p = (Bignum)0x0;\n    key->comment = (char *)0x0;\n    if ((key->exponent == (Bignum)0x0) || (pRVar2 = key, pvVar1 == (Bignum)0x0)) {\n      freersakey(key);\n      pRVar2 = (RSAKey *)0x0;\n      safefree(key);\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pRVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (pointer_declarator "* rsa2_newkey(ssh_signkey *self,char *data,int len)" * (function_declarator "rsa2_newkey(ssh_signkey *self,char *data,int len)" identifier (parameter_list "(ssh_signkey *self,char *data,int len)" ( (parameter_declaration "ssh_signkey *self" type_identifier (pointer_declarator "*self" * identifier)) , (parameter_declaration "char *data" primitive_type (pointer_declarator "*data" * identifier)) , (parameter_declaration "int len" primitive_type identifier) )))) (compound_statement "{\n  RSAKey *key;\n  Bignum pvVar1;\n  RSAKey *pRVar2;\n  int in_GS_OFFSET;\n  char *local_30 [2];\n  char *p;\n  int slen;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x59e19;\n  local_30[0] = data;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  key = (RSAKey *)safemalloc(1,0x24);\n  getstring(local_30,&len,&p,&slen);\n  if ((((p == (char *)0x0) || (slen != 7)) || (*(int *)p != 0x2d687373)) ||\n     ((*(short *)(p + 4) != 0x7372 || (p[6] != 'a')))) {\n    safefree(key);\n    pRVar2 = (RSAKey *)0x0;\n  }\n  else {\n    pvVar1 = getmp(local_30,&len);\n    key->exponent = pvVar1;\n    pvVar1 = getmp(local_30,&len);\n    key->private_exponent = (Bignum)0x0;\n    key->modulus = pvVar1;\n    key->iqmp = (Bignum)0x0;\n    key->q = (Bignum)0x0;\n    key->p = (Bignum)0x0;\n    key->comment = (char *)0x0;\n    if ((key->exponent == (Bignum)0x0) || (pRVar2 = key, pvVar1 == (Bignum)0x0)) {\n      freersakey(key);\n      pRVar2 = (RSAKey *)0x0;\n      safefree(key);\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pRVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "RSAKey *key;" type_identifier (pointer_declarator "*key" * identifier) ;) (declaration "Bignum pvVar1;" type_identifier identifier ;) (declaration "RSAKey *pRVar2;" type_identifier (pointer_declarator "*pRVar2" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "char *local_30 [2];" primitive_type (pointer_declarator "*local_30 [2]" * (array_declarator "local_30 [2]" identifier [ number_literal ])) ;) (declaration "char *p;" primitive_type (pointer_declarator "*p" * identifier) ;) (declaration "int slen;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x59e19;" (assignment_expression "uStack_14 = 0x59e19" identifier = number_literal) ;) (expression_statement "local_30[0] = data;" (assignment_expression "local_30[0] = data" (subscript_expression "local_30[0]" identifier [ number_literal ]) = identifier) ;) (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 *)safemalloc(1,0x24);" (assignment_expression "key = (RSAKey *)safemalloc(1,0x24)" identifier = (cast_expression "(RSAKey *)safemalloc(1,0x24)" ( (type_descriptor "RSAKey *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "safemalloc(1,0x24)" identifier (argument_list "(1,0x24)" ( number_literal , number_literal ))))) ;) (expression_statement "getstring(local_30,&len,&p,&slen);" (call_expression "getstring(local_30,&len,&p,&slen)" identifier (argument_list "(local_30,&len,&p,&slen)" ( identifier , (pointer_expression "&len" & identifier) , (pointer_expression "&p" & identifier) , (pointer_expression "&slen" & identifier) ))) ;) (if_statement "if ((((p == (char *)0x0) || (slen != 7)) || (*(int *)p != 0x2d687373)) ||\n     ((*(short *)(p + 4) != 0x7372 || (p[6] != 'a')))) {\n    safefree(key);\n    pRVar2 = (RSAKey *)0x0;\n  }\n  else {\n    pvVar1 = getmp(local_30,&len);\n    key->exponent = pvVar1;\n    pvVar1 = getmp(local_30,&len);\n    key->private_exponent = (Bignum)0x0;\n    key->modulus = pvVar1;\n    key->iqmp = (Bignum)0x0;\n    key->q = (Bignum)0x0;\n    key->p = (Bignum)0x0;\n    key->comment = (char *)0x0;\n    if ((key->exponent == (Bignum)0x0) || (pRVar2 = key, pvVar1 == (Bignum)0x0)) {\n      freersakey(key);\n      pRVar2 = (RSAKey *)0x0;\n      safefree(key);\n    }\n  }" if (parenthesized_expression "((((p == (char *)0x0) || (slen != 7)) || (*(int *)p != 0x2d687373)) ||\n     ((*(short *)(p + 4) != 0x7372 || (p[6] != 'a'))))" ( (binary_expression "(((p == (char *)0x0) || (slen != 7)) || (*(int *)p != 0x2d687373)) ||\n     ((*(short *)(p + 4) != 0x7372 || (p[6] != 'a')))" (parenthesized_expression "(((p == (char *)0x0) || (slen != 7)) || (*(int *)p != 0x2d687373))" ( (binary_expression "((p == (char *)0x0) || (slen != 7)) || (*(int *)p != 0x2d687373)" (parenthesized_expression "((p == (char *)0x0) || (slen != 7))" ( (binary_expression "(p == (char *)0x0) || (slen != 7)" (parenthesized_expression "(p == (char *)0x0)" ( (binary_expression "p == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(slen != 7)" ( (binary_expression "slen != 7" identifier != number_literal) ))) )) || (parenthesized_expression "(*(int *)p != 0x2d687373)" ( (binary_expression "*(int *)p != 0x2d687373" (pointer_expression "*(int *)p" * (cast_expression "(int *)p" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) != number_literal) ))) )) || (parenthesized_expression "((*(short *)(p + 4) != 0x7372 || (p[6] != 'a')))" ( (parenthesized_expression "(*(short *)(p + 4) != 0x7372 || (p[6] != 'a'))" ( (binary_expression "*(short *)(p + 4) != 0x7372 || (p[6] != 'a')" (binary_expression "*(short *)(p + 4) != 0x7372" (pointer_expression "*(short *)(p + 4)" * (cast_expression "(short *)(p + 4)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(p + 4)" ( (binary_expression "p + 4" identifier + number_literal) )))) != number_literal) || (parenthesized_expression "(p[6] != 'a')" ( (binary_expression "p[6] != 'a'" (subscript_expression "p[6]" identifier [ number_literal ]) != (char_literal "'a'" ' character ')) ))) )) ))) )) (compound_statement "{\n    safefree(key);\n    pRVar2 = (RSAKey *)0x0;\n  }" { (expression_statement "safefree(key);" (call_expression "safefree(key)" identifier (argument_list "(key)" ( identifier ))) ;) (expression_statement "pRVar2 = (RSAKey *)0x0;" (assignment_expression "pRVar2 = (RSAKey *)0x0" identifier = (cast_expression "(RSAKey *)0x0" ( (type_descriptor "RSAKey *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }) (else_clause "else {\n    pvVar1 = getmp(local_30,&len);\n    key->exponent = pvVar1;\n    pvVar1 = getmp(local_30,&len);\n    key->private_exponent = (Bignum)0x0;\n    key->modulus = pvVar1;\n    key->iqmp = (Bignum)0x0;\n    key->q = (Bignum)0x0;\n    key->p = (Bignum)0x0;\n    key->comment = (char *)0x0;\n    if ((key->exponent == (Bignum)0x0) || (pRVar2 = key, pvVar1 == (Bignum)0x0)) {\n      freersakey(key);\n      pRVar2 = (RSAKey *)0x0;\n      safefree(key);\n    }\n  }" else (compound_statement "{\n    pvVar1 = getmp(local_30,&len);\n    key->exponent = pvVar1;\n    pvVar1 = getmp(local_30,&len);\n    key->private_exponent = (Bignum)0x0;\n    key->modulus = pvVar1;\n    key->iqmp = (Bignum)0x0;\n    key->q = (Bignum)0x0;\n    key->p = (Bignum)0x0;\n    key->comment = (char *)0x0;\n    if ((key->exponent == (Bignum)0x0) || (pRVar2 = key, pvVar1 == (Bignum)0x0)) {\n      freersakey(key);\n      pRVar2 = (RSAKey *)0x0;\n      safefree(key);\n    }\n  }" { (expression_statement "pvVar1 = getmp(local_30,&len);" (assignment_expression "pvVar1 = getmp(local_30,&len)" identifier = (call_expression "getmp(local_30,&len)" identifier (argument_list "(local_30,&len)" ( identifier , (pointer_expression "&len" & identifier) )))) ;) (expression_statement "key->exponent = pvVar1;" (assignment_expression "key->exponent = pvVar1" (field_expression "key->exponent" identifier -> field_identifier) = identifier) ;) (expression_statement "pvVar1 = getmp(local_30,&len);" (assignment_expression "pvVar1 = getmp(local_30,&len)" identifier = (call_expression "getmp(local_30,&len)" identifier (argument_list "(local_30,&len)" ( identifier , (pointer_expression "&len" & identifier) )))) ;) (expression_statement "key->private_exponent = (Bignum)0x0;" (assignment_expression "key->private_exponent = (Bignum)0x0" (field_expression "key->private_exponent" identifier -> field_identifier) = (cast_expression "(Bignum)0x0" ( (type_descriptor "Bignum" type_identifier) ) number_literal)) ;) (expression_statement "key->modulus = pvVar1;" (assignment_expression "key->modulus = pvVar1" (field_expression "key->modulus" identifier -> field_identifier) = identifier) ;) (expression_statement "key->iqmp = (Bignum)0x0;" (assignment_expression "key->iqmp = (Bignum)0x0" (field_expression "key->iqmp" identifier -> field_identifier) = (cast_expression "(Bignum)0x0" ( (type_descriptor "Bignum" type_identifier) ) number_literal)) ;) (expression_statement "key->q = (Bignum)0x0;" (assignment_expression "key->q = (Bignum)0x0" (field_expression "key->q" identifier -> field_identifier) = (cast_expression "(Bignum)0x0" ( (type_descriptor "Bignum" type_identifier) ) number_literal)) ;) (expression_statement "key->p = (Bignum)0x0;" (assignment_expression "key->p = (Bignum)0x0" (field_expression "key->p" identifier -> field_identifier) = (cast_expression "(Bignum)0x0" ( (type_descriptor "Bignum" type_identifier) ) number_literal)) ;) (expression_statement "key->comment = (char *)0x0;" (assignment_expression "key->comment = (char *)0x0" (field_expression "key->comment" identifier -> field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if ((key->exponent == (Bignum)0x0) || (pRVar2 = key, pvVar1 == (Bignum)0x0)) {\n      freersakey(key);\n      pRVar2 = (RSAKey *)0x0;\n      safefree(key);\n    }" if (parenthesized_expression "((key->exponent == (Bignum)0x0) || (pRVar2 = key, pvVar1 == (Bignum)0x0))" ( (binary_expression "(key->exponent == (Bignum)0x0) || (pRVar2 = key, pvVar1 == (Bignum)0x0)" (parenthesized_expression "(key->exponent == (Bignum)0x0)" ( (binary_expression "key->exponent == (Bignum)0x0" (field_expression "key->exponent" identifier -> field_identifier) == (cast_expression "(Bignum)0x0" ( (type_descriptor "Bignum" type_identifier) ) number_literal)) )) || (parenthesized_expression "(pRVar2 = key, pvVar1 == (Bignum)0x0)" ( (comma_expression "pRVar2 = key, pvVar1 == (Bignum)0x0" (assignment_expression "pRVar2 = key" identifier = identifier) , (binary_expression "pvVar1 == (Bignum)0x0" identifier == (cast_expression "(Bignum)0x0" ( (type_descriptor "Bignum" type_identifier) ) number_literal))) ))) )) (compound_statement "{\n      freersakey(key);\n      pRVar2 = (RSAKey *)0x0;\n      safefree(key);\n    }" { (expression_statement "freersakey(key);" (call_expression "freersakey(key)" identifier (argument_list "(key)" ( identifier ))) ;) (expression_statement "pRVar2 = (RSAKey *)0x0;" (assignment_expression "pRVar2 = (RSAKey *)0x0" identifier = (cast_expression "(RSAKey *)0x0" ( (type_descriptor "RSAKey *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "safefree(key);" (call_expression "safefree(key)" identifier (argument_list "(key)" ( identifier ))) ;) })) }))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pRVar2;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return pRVar2;\n  }" { (return_statement "return pRVar2;" return identifier ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "int FUN_00059e10(void)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int in_GS_OFFSET;\n  int *local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x59e19;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = FUN_0001a9b0(1,0x24);\n  FUN_00058480(&local_24);\n  if ((((local_28 == (int *)0x0) || (local_24 != 7)) || (*local_28 != 0x2d687373)) ||\n     (((short)local_28[1] != 0x7372 || (*(char *)((int)local_28 + 6) != 'a')))) {\n    FUN_0001b240(iVar1);\n    iVar4 = 0;\n  }\n  else {\n    uVar2 = FUN_00058500();\n    *(undefined4 *)(iVar1 + 0xc) = uVar2;\n    iVar3 = FUN_00058500();\n    *(undefined4 *)(iVar1 + 0x10) = 0;\n    *(int *)(iVar1 + 8) = iVar3;\n    *(undefined4 *)(iVar1 + 0x1c) = 0;\n    *(undefined4 *)(iVar1 + 0x18) = 0;\n    *(undefined4 *)(iVar1 + 0x14) = 0;\n    *(undefined4 *)(iVar1 + 0x20) = 0;\n    if ((*(int *)(iVar1 + 0xc) == 0) || (iVar4 = iVar1, iVar3 == 0)) {\n      FUN_00059c90(iVar1);\n      iVar4 = 0;\n      FUN_0001b240(iVar1);\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4;\n  }\n                    \n  FUN_0006f430();\n}\n\n" (function_definition "int FUN_00059e10(void)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int in_GS_OFFSET;\n  int *local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x59e19;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = FUN_0001a9b0(1,0x24);\n  FUN_00058480(&local_24);\n  if ((((local_28 == (int *)0x0) || (local_24 != 7)) || (*local_28 != 0x2d687373)) ||\n     (((short)local_28[1] != 0x7372 || (*(char *)((int)local_28 + 6) != 'a')))) {\n    FUN_0001b240(iVar1);\n    iVar4 = 0;\n  }\n  else {\n    uVar2 = FUN_00058500();\n    *(undefined4 *)(iVar1 + 0xc) = uVar2;\n    iVar3 = FUN_00058500();\n    *(undefined4 *)(iVar1 + 0x10) = 0;\n    *(int *)(iVar1 + 8) = iVar3;\n    *(undefined4 *)(iVar1 + 0x1c) = 0;\n    *(undefined4 *)(iVar1 + 0x18) = 0;\n    *(undefined4 *)(iVar1 + 0x14) = 0;\n    *(undefined4 *)(iVar1 + 0x20) = 0;\n    if ((*(int *)(iVar1 + 0xc) == 0) || (iVar4 = iVar1, iVar3 == 0)) {\n      FUN_00059c90(iVar1);\n      iVar4 = 0;\n      FUN_0001b240(iVar1);\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4;\n  }\n                    \n  FUN_0006f430();\n}" primitive_type (function_declarator "FUN_00059e10(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int in_GS_OFFSET;\n  int *local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x59e19;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = FUN_0001a9b0(1,0x24);\n  FUN_00058480(&local_24);\n  if ((((local_28 == (int *)0x0) || (local_24 != 7)) || (*local_28 != 0x2d687373)) ||\n     (((short)local_28[1] != 0x7372 || (*(char *)((int)local_28 + 6) != 'a')))) {\n    FUN_0001b240(iVar1);\n    iVar4 = 0;\n  }\n  else {\n    uVar2 = FUN_00058500();\n    *(undefined4 *)(iVar1 + 0xc) = uVar2;\n    iVar3 = FUN_00058500();\n    *(undefined4 *)(iVar1 + 0x10) = 0;\n    *(int *)(iVar1 + 8) = iVar3;\n    *(undefined4 *)(iVar1 + 0x1c) = 0;\n    *(undefined4 *)(iVar1 + 0x18) = 0;\n    *(undefined4 *)(iVar1 + 0x14) = 0;\n    *(undefined4 *)(iVar1 + 0x20) = 0;\n    if ((*(int *)(iVar1 + 0xc) == 0) || (iVar4 = iVar1, iVar3 == 0)) {\n      FUN_00059c90(iVar1);\n      iVar4 = 0;\n      FUN_0001b240(iVar1);\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4;\n  }\n                    \n  FUN_0006f430();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int *local_28;" primitive_type (pointer_declarator "*local_28" * identifier) ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x59e19;" (assignment_expression "uStack_14 = 0x59e19" 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 "iVar1 = FUN_0001a9b0(1,0x24);" (assignment_expression "iVar1 = FUN_0001a9b0(1,0x24)" identifier = (call_expression "FUN_0001a9b0(1,0x24)" identifier (argument_list "(1,0x24)" ( number_literal , number_literal )))) ;) (expression_statement "FUN_00058480(&local_24);" (call_expression "FUN_00058480(&local_24)" identifier (argument_list "(&local_24)" ( (pointer_expression "&local_24" & identifier) ))) ;) (if_statement "if ((((local_28 == (int *)0x0) || (local_24 != 7)) || (*local_28 != 0x2d687373)) ||\n     (((short)local_28[1] != 0x7372 || (*(char *)((int)local_28 + 6) != 'a')))) {\n    FUN_0001b240(iVar1);\n    iVar4 = 0;\n  }\n  else {\n    uVar2 = FUN_00058500();\n    *(undefined4 *)(iVar1 + 0xc) = uVar2;\n    iVar3 = FUN_00058500();\n    *(undefined4 *)(iVar1 + 0x10) = 0;\n    *(int *)(iVar1 + 8) = iVar3;\n    *(undefined4 *)(iVar1 + 0x1c) = 0;\n    *(undefined4 *)(iVar1 + 0x18) = 0;\n    *(undefined4 *)(iVar1 + 0x14) = 0;\n    *(undefined4 *)(iVar1 + 0x20) = 0;\n    if ((*(int *)(iVar1 + 0xc) == 0) || (iVar4 = iVar1, iVar3 == 0)) {\n      FUN_00059c90(iVar1);\n      iVar4 = 0;\n      FUN_0001b240(iVar1);\n    }\n  }" if (parenthesized_expression "((((local_28 == (int *)0x0) || (local_24 != 7)) || (*local_28 != 0x2d687373)) ||\n     (((short)local_28[1] != 0x7372 || (*(char *)((int)local_28 + 6) != 'a'))))" ( (binary_expression "(((local_28 == (int *)0x0) || (local_24 != 7)) || (*local_28 != 0x2d687373)) ||\n     (((short)local_28[1] != 0x7372 || (*(char *)((int)local_28 + 6) != 'a')))" (parenthesized_expression "(((local_28 == (int *)0x0) || (local_24 != 7)) || (*local_28 != 0x2d687373))" ( (binary_expression "((local_28 == (int *)0x0) || (local_24 != 7)) || (*local_28 != 0x2d687373)" (parenthesized_expression "((local_28 == (int *)0x0) || (local_24 != 7))" ( (binary_expression "(local_28 == (int *)0x0) || (local_24 != 7)" (parenthesized_expression "(local_28 == (int *)0x0)" ( (binary_expression "local_28 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(local_24 != 7)" ( (binary_expression "local_24 != 7" identifier != number_literal) ))) )) || (parenthesized_expression "(*local_28 != 0x2d687373)" ( (binary_expression "*local_28 != 0x2d687373" (pointer_expression "*local_28" * identifier) != number_literal) ))) )) || (parenthesized_expression "(((short)local_28[1] != 0x7372 || (*(char *)((int)local_28 + 6) != 'a')))" ( (parenthesized_expression "((short)local_28[1] != 0x7372 || (*(char *)((int)local_28 + 6) != 'a'))" ( (binary_expression "(short)local_28[1] != 0x7372 || (*(char *)((int)local_28 + 6) != 'a')" (binary_expression "(short)local_28[1] != 0x7372" (cast_expression "(short)local_28[1]" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) (subscript_expression "local_28[1]" identifier [ number_literal ])) != number_literal) || (parenthesized_expression "(*(char *)((int)local_28 + 6) != 'a')" ( (binary_expression "*(char *)((int)local_28 + 6) != 'a'" (pointer_expression "*(char *)((int)local_28 + 6)" * (cast_expression "(char *)((int)local_28 + 6)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_28 + 6)" ( (binary_expression "(int)local_28 + 6" (cast_expression "(int)local_28" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != (char_literal "'a'" ' character ')) ))) )) ))) )) (compound_statement "{\n    FUN_0001b240(iVar1);\n    iVar4 = 0;\n  }" { (expression_statement "FUN_0001b240(iVar1);" (call_expression "FUN_0001b240(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    uVar2 = FUN_00058500();\n    *(undefined4 *)(iVar1 + 0xc) = uVar2;\n    iVar3 = FUN_00058500();\n    *(undefined4 *)(iVar1 + 0x10) = 0;\n    *(int *)(iVar1 + 8) = iVar3;\n    *(undefined4 *)(iVar1 + 0x1c) = 0;\n    *(undefined4 *)(iVar1 + 0x18) = 0;\n    *(undefined4 *)(iVar1 + 0x14) = 0;\n    *(undefined4 *)(iVar1 + 0x20) = 0;\n    if ((*(int *)(iVar1 + 0xc) == 0) || (iVar4 = iVar1, iVar3 == 0)) {\n      FUN_00059c90(iVar1);\n      iVar4 = 0;\n      FUN_0001b240(iVar1);\n    }\n  }" else (compound_statement "{\n    uVar2 = FUN_00058500();\n    *(undefined4 *)(iVar1 + 0xc) = uVar2;\n    iVar3 = FUN_00058500();\n    *(undefined4 *)(iVar1 + 0x10) = 0;\n    *(int *)(iVar1 + 8) = iVar3;\n    *(undefined4 *)(iVar1 + 0x1c) = 0;\n    *(undefined4 *)(iVar1 + 0x18) = 0;\n    *(undefined4 *)(iVar1 + 0x14) = 0;\n    *(undefined4 *)(iVar1 + 0x20) = 0;\n    if ((*(int *)(iVar1 + 0xc) == 0) || (iVar4 = iVar1, iVar3 == 0)) {\n      FUN_00059c90(iVar1);\n      iVar4 = 0;\n      FUN_0001b240(iVar1);\n    }\n  }" { (expression_statement "uVar2 = FUN_00058500();" (assignment_expression "uVar2 = FUN_00058500()" identifier = (call_expression "FUN_00058500()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(undefined4 *)(iVar1 + 0xc) = uVar2;" (assignment_expression "*(undefined4 *)(iVar1 + 0xc) = uVar2" (pointer_expression "*(undefined4 *)(iVar1 + 0xc)" * (cast_expression "(undefined4 *)(iVar1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar3 = FUN_00058500();" (assignment_expression "iVar3 = FUN_00058500()" identifier = (call_expression "FUN_00058500()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x10) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x10)" * (cast_expression "(undefined4 *)(iVar1 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(int *)(iVar1 + 8) = iVar3;" (assignment_expression "*(int *)(iVar1 + 8) = iVar3" (pointer_expression "*(int *)(iVar1 + 8)" * (cast_expression "(int *)(iVar1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x1c) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x1c) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x1c)" * (cast_expression "(undefined4 *)(iVar1 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x1c)" ( (binary_expression "iVar1 + 0x1c" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x18) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x18)" * (cast_expression "(undefined4 *)(iVar1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x18)" ( (binary_expression "iVar1 + 0x18" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x14) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x14) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x14)" * (cast_expression "(undefined4 *)(iVar1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x20) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x20) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x20)" * (cast_expression "(undefined4 *)(iVar1 + 0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) )))) = number_literal) ;) (if_statement "if ((*(int *)(iVar1 + 0xc) == 0) || (iVar4 = iVar1, iVar3 == 0)) {\n      FUN_00059c90(iVar1);\n      iVar4 = 0;\n      FUN_0001b240(iVar1);\n    }" if (parenthesized_expression "((*(int *)(iVar1 + 0xc) == 0) || (iVar4 = iVar1, iVar3 == 0))" ( (binary_expression "(*(int *)(iVar1 + 0xc) == 0) || (iVar4 = iVar1, iVar3 == 0)" (parenthesized_expression "(*(int *)(iVar1 + 0xc) == 0)" ( (binary_expression "*(int *)(iVar1 + 0xc) == 0" (pointer_expression "*(int *)(iVar1 + 0xc)" * (cast_expression "(int *)(iVar1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) == number_literal) )) || (parenthesized_expression "(iVar4 = iVar1, iVar3 == 0)" ( (comma_expression "iVar4 = iVar1, iVar3 == 0" (assignment_expression "iVar4 = iVar1" identifier = identifier) , (binary_expression "iVar3 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n      FUN_00059c90(iVar1);\n      iVar4 = 0;\n      FUN_0001b240(iVar1);\n    }" { (expression_statement "FUN_00059c90(iVar1);" (call_expression "FUN_00059c90(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "FUN_0001b240(iVar1);" (call_expression "FUN_0001b240(iVar1)" identifier (argument_list "(iVar1)" ( identifier ))) ;) })) }))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar4;\n  }" { (return_statement "return iVar4;" return identifier ;) })) (expression_statement "FUN_0006f430();" (call_expression "FUN_0006f430()" identifier (argument_list "()" ( ))) ;) })))
(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 ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression & IDENT) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) || (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) || (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) ))) )) || (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier short)) ) (subscript_expression IDENT [ LIT ])) != LIT) || (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) != (char_literal ' character ')) ))) )) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (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) )))) = LIT) ;) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_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 (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression IDENT == LIT)) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "int FUN_00059e10(void)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int in_GS_OFFSET;\n  int *local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x59e19;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = FUN_0001a9b0(1,0x24);\n  FUN_00058480(&local_24);\n  if ((((local_28 == (int *)0x0) || (local_24 != 7)) || (*local_28 != 0x2d687373)) ||\n     (((short)local_28[1] != 0x7372 || (*(char *)((int)local_28 + 6) != 'a')))) {\n    FUN_0001b240(iVar1);\n    iVar4 = 0;\n  }\n  else {\n    uVar2 = FUN_00058500();\n    *(undefined4 *)(iVar1 + 0xc) = uVar2;\n    iVar3 = FUN_00058500();\n    *(undefined4 *)(iVar1 + 0x10) = 0;\n    *(int *)(iVar1 + 8) = iVar3;\n    *(undefined4 *)(iVar1 + 0x1c) = 0;\n    *(undefined4 *)(iVar1 + 0x18) = 0;\n    *(undefined4 *)(iVar1 + 0x14) = 0;\n    *(undefined4 *)(iVar1 + 0x20) = 0;\n    if ((*(int *)(iVar1 + 0xc) == 0) || (iVar4 = iVar1, iVar3 == 0)) {\n      FUN_00059c90(iVar1);\n      iVar4 = 0;\n      FUN_0001b240(iVar1);\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4;\n  }\n                    \n  FUN_0006f430();\n}" (primitive_type "int") (function_declarator "FUN_00059e10(void)" (identifier "FUN_00059e10") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  int iVar3;\n  int iVar4;\n  int in_GS_OFFSET;\n  int *local_28;\n  int local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x59e19;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar1 = FUN_0001a9b0(1,0x24);\n  FUN_00058480(&local_24);\n  if ((((local_28 == (int *)0x0) || (local_24 != 7)) || (*local_28 != 0x2d687373)) ||\n     (((short)local_28[1] != 0x7372 || (*(char *)((int)local_28 + 6) != 'a')))) {\n    FUN_0001b240(iVar1);\n    iVar4 = 0;\n  }\n  else {\n    uVar2 = FUN_00058500();\n    *(undefined4 *)(iVar1 + 0xc) = uVar2;\n    iVar3 = FUN_00058500();\n    *(undefined4 *)(iVar1 + 0x10) = 0;\n    *(int *)(iVar1 + 8) = iVar3;\n    *(undefined4 *)(iVar1 + 0x1c) = 0;\n    *(undefined4 *)(iVar1 + 0x18) = 0;\n    *(undefined4 *)(iVar1 + 0x14) = 0;\n    *(undefined4 *)(iVar1 + 0x20) = 0;\n    if ((*(int *)(iVar1 + 0xc) == 0) || (iVar4 = iVar1, iVar3 == 0)) {\n      FUN_00059c90(iVar1);\n      iVar4 = 0;\n      FUN_0001b240(iVar1);\n    }\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4;\n  }\n                    \n  FUN_0006f430();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "int *local_28;" (primitive_type "int") (pointer_declarator "*local_28" (* "*") (identifier "local_28")) (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x59e19;" (assignment_expression "uStack_14 = 0x59e19" (identifier "uStack_14") (= "=") (number_literal "0x59e19")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "iVar1 = FUN_0001a9b0(1,0x24);" (assignment_expression "iVar1 = FUN_0001a9b0(1,0x24)" (identifier "iVar1") (= "=") (call_expression "FUN_0001a9b0(1,0x24)" (identifier "FUN_0001a9b0") (argument_list "(1,0x24)" (( "(") (number_literal "1") (, ",") (number_literal "0x24") () ")")))) (; ";")) (expression_statement "FUN_00058480(&local_24);" (call_expression "FUN_00058480(&local_24)" (identifier "FUN_00058480") (argument_list "(&local_24)" (( "(") (pointer_expression "&local_24" (& "&") (identifier "local_24")) () ")"))) (; ";")) (if_statement "if ((((local_28 == (int *)0x0) || (local_24 != 7)) || (*local_28 != 0x2d687373)) ||\n     (((short)local_28[1] != 0x7372 || (*(char *)((int)local_28 + 6) != 'a')))) {\n    FUN_0001b240(iVar1);\n    iVar4 = 0;\n  }\n  else {\n    uVar2 = FUN_00058500();\n    *(undefined4 *)(iVar1 + 0xc) = uVar2;\n    iVar3 = FUN_00058500();\n    *(undefined4 *)(iVar1 + 0x10) = 0;\n    *(int *)(iVar1 + 8) = iVar3;\n    *(undefined4 *)(iVar1 + 0x1c) = 0;\n    *(undefined4 *)(iVar1 + 0x18) = 0;\n    *(undefined4 *)(iVar1 + 0x14) = 0;\n    *(undefined4 *)(iVar1 + 0x20) = 0;\n    if ((*(int *)(iVar1 + 0xc) == 0) || (iVar4 = iVar1, iVar3 == 0)) {\n      FUN_00059c90(iVar1);\n      iVar4 = 0;\n      FUN_0001b240(iVar1);\n    }\n  }" (if "if") (parenthesized_expression "((((local_28 == (int *)0x0) || (local_24 != 7)) || (*local_28 != 0x2d687373)) ||\n     (((short)local_28[1] != 0x7372 || (*(char *)((int)local_28 + 6) != 'a'))))" (( "(") (binary_expression "(((local_28 == (int *)0x0) || (local_24 != 7)) || (*local_28 != 0x2d687373)) ||\n     (((short)local_28[1] != 0x7372 || (*(char *)((int)local_28 + 6) != 'a')))" (parenthesized_expression "(((local_28 == (int *)0x0) || (local_24 != 7)) || (*local_28 != 0x2d687373))" (( "(") (binary_expression "((local_28 == (int *)0x0) || (local_24 != 7)) || (*local_28 != 0x2d687373)" (parenthesized_expression "((local_28 == (int *)0x0) || (local_24 != 7))" (( "(") (binary_expression "(local_28 == (int *)0x0) || (local_24 != 7)" (parenthesized_expression "(local_28 == (int *)0x0)" (( "(") (binary_expression "local_28 == (int *)0x0" (identifier "local_28") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (|| "||") (parenthesized_expression "(local_24 != 7)" (( "(") (binary_expression "local_24 != 7" (identifier "local_24") (!= "!=") (number_literal "7")) () ")"))) () ")")) (|| "||") (parenthesized_expression "(*local_28 != 0x2d687373)" (( "(") (binary_expression "*local_28 != 0x2d687373" (pointer_expression "*local_28" (* "*") (identifier "local_28")) (!= "!=") (number_literal "0x2d687373")) () ")"))) () ")")) (|| "||") (parenthesized_expression "(((short)local_28[1] != 0x7372 || (*(char *)((int)local_28 + 6) != 'a')))" (( "(") (parenthesized_expression "((short)local_28[1] != 0x7372 || (*(char *)((int)local_28 + 6) != 'a'))" (( "(") (binary_expression "(short)local_28[1] != 0x7372 || (*(char *)((int)local_28 + 6) != 'a')" (binary_expression "(short)local_28[1] != 0x7372" (cast_expression "(short)local_28[1]" (( "(") (type_descriptor "short" (sized_type_specifier "short" (short "short"))) () ")") (subscript_expression "local_28[1]" (identifier "local_28") ([ "[") (number_literal "1") (] "]"))) (!= "!=") (number_literal "0x7372")) (|| "||") (parenthesized_expression "(*(char *)((int)local_28 + 6) != 'a')" (( "(") (binary_expression "*(char *)((int)local_28 + 6) != 'a'" (pointer_expression "*(char *)((int)local_28 + 6)" (* "*") (cast_expression "(char *)((int)local_28 + 6)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)local_28 + 6)" (( "(") (binary_expression "(int)local_28 + 6" (cast_expression "(int)local_28" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_28")) (+ "+") (number_literal "6")) () ")")))) (!= "!=") (char_literal "'a'" (' "'") (character "a") (' "'"))) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n    FUN_0001b240(iVar1);\n    iVar4 = 0;\n  }" ({ "{") (expression_statement "FUN_0001b240(iVar1);" (call_expression "FUN_0001b240(iVar1)" (identifier "FUN_0001b240") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    uVar2 = FUN_00058500();\n    *(undefined4 *)(iVar1 + 0xc) = uVar2;\n    iVar3 = FUN_00058500();\n    *(undefined4 *)(iVar1 + 0x10) = 0;\n    *(int *)(iVar1 + 8) = iVar3;\n    *(undefined4 *)(iVar1 + 0x1c) = 0;\n    *(undefined4 *)(iVar1 + 0x18) = 0;\n    *(undefined4 *)(iVar1 + 0x14) = 0;\n    *(undefined4 *)(iVar1 + 0x20) = 0;\n    if ((*(int *)(iVar1 + 0xc) == 0) || (iVar4 = iVar1, iVar3 == 0)) {\n      FUN_00059c90(iVar1);\n      iVar4 = 0;\n      FUN_0001b240(iVar1);\n    }\n  }" (else "else") (compound_statement "{\n    uVar2 = FUN_00058500();\n    *(undefined4 *)(iVar1 + 0xc) = uVar2;\n    iVar3 = FUN_00058500();\n    *(undefined4 *)(iVar1 + 0x10) = 0;\n    *(int *)(iVar1 + 8) = iVar3;\n    *(undefined4 *)(iVar1 + 0x1c) = 0;\n    *(undefined4 *)(iVar1 + 0x18) = 0;\n    *(undefined4 *)(iVar1 + 0x14) = 0;\n    *(undefined4 *)(iVar1 + 0x20) = 0;\n    if ((*(int *)(iVar1 + 0xc) == 0) || (iVar4 = iVar1, iVar3 == 0)) {\n      FUN_00059c90(iVar1);\n      iVar4 = 0;\n      FUN_0001b240(iVar1);\n    }\n  }" ({ "{") (expression_statement "uVar2 = FUN_00058500();" (assignment_expression "uVar2 = FUN_00058500()" (identifier "uVar2") (= "=") (call_expression "FUN_00058500()" (identifier "FUN_00058500") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0xc) = uVar2;" (assignment_expression "*(undefined4 *)(iVar1 + 0xc) = uVar2" (pointer_expression "*(undefined4 *)(iVar1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0xc)" (( "(") (binary_expression "iVar1 + 0xc" (identifier "iVar1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "iVar3 = FUN_00058500();" (assignment_expression "iVar3 = FUN_00058500()" (identifier "iVar3") (= "=") (call_expression "FUN_00058500()" (identifier "FUN_00058500") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0x10) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x10) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x10)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x10)" (( "(") (binary_expression "iVar1 + 0x10" (identifier "iVar1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(int *)(iVar1 + 8) = iVar3;" (assignment_expression "*(int *)(iVar1 + 8) = iVar3" (pointer_expression "*(int *)(iVar1 + 8)" (* "*") (cast_expression "(int *)(iVar1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 8)" (( "(") (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0x1c) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x1c) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x1c)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x1c)" (( "(") (binary_expression "iVar1 + 0x1c" (identifier "iVar1") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0x18) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x18) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x18)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x18)" (( "(") (binary_expression "iVar1 + 0x18" (identifier "iVar1") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0x14) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x14) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x14)" (( "(") (binary_expression "iVar1 + 0x14" (identifier "iVar1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0x20) = 0;" (assignment_expression "*(undefined4 *)(iVar1 + 0x20) = 0" (pointer_expression "*(undefined4 *)(iVar1 + 0x20)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x20)" (( "(") (binary_expression "iVar1 + 0x20" (identifier "iVar1") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (number_literal "0")) (; ";")) (if_statement "if ((*(int *)(iVar1 + 0xc) == 0) || (iVar4 = iVar1, iVar3 == 0)) {\n      FUN_00059c90(iVar1);\n      iVar4 = 0;\n      FUN_0001b240(iVar1);\n    }" (if "if") (parenthesized_expression "((*(int *)(iVar1 + 0xc) == 0) || (iVar4 = iVar1, iVar3 == 0))" (( "(") (binary_expression "(*(int *)(iVar1 + 0xc) == 0) || (iVar4 = iVar1, iVar3 == 0)" (parenthesized_expression "(*(int *)(iVar1 + 0xc) == 0)" (( "(") (binary_expression "*(int *)(iVar1 + 0xc) == 0" (pointer_expression "*(int *)(iVar1 + 0xc)" (* "*") (cast_expression "(int *)(iVar1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0xc)" (( "(") (binary_expression "iVar1 + 0xc" (identifier "iVar1") (+ "+") (number_literal "0xc")) () ")")))) (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(iVar4 = iVar1, iVar3 == 0)" (( "(") (comma_expression "iVar4 = iVar1, iVar3 == 0" (assignment_expression "iVar4 = iVar1" (identifier "iVar4") (= "=") (identifier "iVar1")) (, ",") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n      FUN_00059c90(iVar1);\n      iVar4 = 0;\n      FUN_0001b240(iVar1);\n    }" ({ "{") (expression_statement "FUN_00059c90(iVar1);" (call_expression "FUN_00059c90(iVar1)" (identifier "FUN_00059c90") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_0001b240(iVar1);" (call_expression "FUN_0001b240(iVar1)" (identifier "FUN_0001b240") (argument_list "(iVar1)" (( "(") (identifier "iVar1") () ")"))) (; ";")) (} "}"))) (} "}")))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar4;\n  }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return iVar4;\n  }" ({ "{") (return_statement "return iVar4;" (return "return") (identifier "iVar4") (; ";")) (} "}"))) (expression_statement "FUN_0006f430();" (call_expression "FUN_0006f430()" (identifier "FUN_0006f430") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

void * function_1(type_1 *self,char *data,int len)

{
  type_2 *key;
  type_3 var_8;
  type_2 *pRVar2;
  int var_1;
  char *local_30 [2];
  char *var_4;
  int var_5;
  int var_10;
  type_4 uStack_14;
  
  uStack_14 = 0x59e19;
  local_30[0] = data;
  var_10 = *(int *)(var_1 + 0x14);
  key = (type_2 *)var_2(1,0x24);
  var_3(local_30,&len,&var_4,&var_5);
  if ((((var_4 == (char *)0x0) || (var_5 != 7)) || (*(int *)var_4 != 0x2d687373)) ||
     ((*(short *)(var_4 + 4) != 0x7372 || (var_4[6] != 'a')))) {
    var_6(key);
    pRVar2 = (type_2 *)0x0;
  }
  else {
    var_8 = var_7(local_30,&len);
    key->exponent = var_8;
    var_8 = var_7(local_30,&len);
    key->private_exponent = (type_3)0x0;
    key->modulus = var_8;
    key->iqmp = (type_3)0x0;
    key->q = (type_3)0x0;
    key->var_4 = (type_3)0x0;
    key->comment = (char *)0x0;
    if ((key->exponent == (type_3)0x0) || (pRVar2 = key, var_8 == (type_3)0x0)) {
      var_9(key);
      pRVar2 = (type_2 *)0x0;
      var_6(key);
    }
  }
  if (var_10 == *(int *)(var_1 + 0x14)) {
    return pRVar2;
  }
                    /* WARNING: Subroutine does not return */
  var_11();
}


(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: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (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 (number_literal) (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))))) right: (parenthesized_expression (parenthesized_expression (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (number_literal)) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) right: (char_literal (character))))))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (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: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (return_statement (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list))))))

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

int MASKED(void)

{
  int iVar1;
  undefined4 uVar2;
  int iVar3;
  int iVar4;
  int in_GS_OFFSET;
  int *local_28;
  int local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x59e19;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  iVar1 = FUN_0001a9b0(1,0x24);
  FUN_00058480(&local_24);
  if ((((local_28 == (int *)0x0) || (local_24 != 7)) || (*local_28 != 0x2d687373)) ||
     (((short)local_28[1] != 0x7372 || (*(char *)((int)local_28 + 6) != 'a')))) {
    FUN_0001b240(iVar1);
    iVar4 = 0;
  }
  else {
    uVar2 = FUN_00058500();
    *(undefined4 *)(iVar1 + 0xc) = uVar2;
    iVar3 = FUN_00058500();
    *(undefined4 *)(iVar1 + 0x10) = 0;
    *(int *)(iVar1 + 8) = iVar3;
    *(undefined4 *)(iVar1 + 0x1c) = 0;
    *(undefined4 *)(iVar1 + 0x18) = 0;
    *(undefined4 *)(iVar1 + 0x14) = 0;
    *(undefined4 *)(iVar1 + 0x20) = 0;
    if ((*(int *)(iVar1 + 0xc) == 0) || (iVar4 = iVar1, iVar3 == 0)) {
      FUN_00059c90(iVar1);
      iVar4 = 0;
      FUN_0001b240(iVar1);
    }
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar4;
  }
                    /* WARNING: Subroutine does not return */
  FUN_0006f430();
}

