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

char * ssh1_pubkey_str(RSAKey *key)

{
  char *ptr;
  char *ptr_00;
  int iVar1;
  char *pcVar2;
  char *pcVar3;
  
  ptr = bignum_decimal((Bignum_conflict)key->exponent);
  ptr_00 = bignum_decimal((Bignum_conflict)key->modulus);
  pcVar2 = " ";
  pcVar3 = key->comment;
  if (key->comment == (char *)0x0) {
    pcVar2 = "";
    pcVar3 = pcVar2;
  }
  iVar1 = bignum_bitcount((Bignum_conflict)key->modulus);
  pcVar2 = dupprintf("%d %s %s%s%s",iVar1,ptr,ptr_00,pcVar2,pcVar3);
  safefree(ptr);
  safefree(ptr_00);
  return pcVar2;
}



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

undefined4 FUN_00037910(int param_1)

{
  undefined4 uVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  char *pcVar4;
  char *pcVar5;
  
  uVar1 = FUN_0002a9b0(*(undefined4 *)(param_1 + 0xc));
  uVar2 = FUN_0002a9b0(*(undefined4 *)(param_1 + 8));
  pcVar4 = " ";
  pcVar5 = *(char **)(param_1 + 0x20);
  if (*(char **)(param_1 + 0x20) == (char *)0x0) {
    pcVar4 = "";
    pcVar5 = pcVar4;
  }
  uVar3 = FUN_00028b00(*(undefined4 *)(param_1 + 8));
  uVar3 = FUN_00019ef0("%d %s %s%s%s",uVar3,uVar1,uVar2,pcVar4,pcVar5);
  FUN_0001a110(uVar1);
  FUN_0001a110(uVar2);
  return uVar3;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000152d0
ADD EBX,0x373cf
SUB ESP,0x28
MOV ESI,dword ptr [ESP + 0x3c]
PUSH dword ptr [ESI + 0xc]
CALL 0x0002a9b0
POP EDI
PUSH dword ptr [ESI + 0x8]
MOV EBP,EAX
CALL 0x0002a9b0
MOV EDX,dword ptr [ESI + 0x20]
ADD ESP,0x10
LEA ECX,[EBX + 0xfffe2bd1]
MOV EDI,EAX
TEST EDX,EDX
JZ 0x000379a0
MOV dword ptr [ESP + 0xc],ECX
SUB ESP,0xc
MOV dword ptr [ESP + 0x14],EDX
PUSH dword ptr [ESI + 0x8]
CALL 0x00028b00
POP EDX
POP ECX
MOV EDX,dword ptr [ESP + 0x10]
PUSH EDX
MOV ECX,dword ptr [ESP + 0x18]
PUSH ECX
PUSH EDI
PUSH EBP
PUSH EAX
LEA EAX,[EBX + 0xfffe2bd3]
PUSH EAX
CALL 0x00019ef0
ADD ESP,0x14
PUSH EBP
MOV ESI,EAX
CALL 0x0001a110
MOV dword ptr [ESP],EDI
CALL 0x0001a110
ADD ESP,0x2c
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EDX,[EBX + 0xfffdd115]
MOV ECX,EDX
JMP 0x0003794b
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_00037910(int param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  char *pcVar5;\n  \n  uVar1 = FUN_0002a9b0(*(undefined4 *)(param_1 + 0xc));\n  uVar2 = FUN_0002a9b0(*(undefined4 *)(param_1 + 8));\n  pcVar4 = " ";\n  pcVar5 = *(char **)(param_1 + 0x20);\n  if (*(char **)(param_1 + 0x20) == (char *)0x0) {\n    pcVar4 = "";\n    pcVar5 = pcVar4;\n  }\n  uVar3 = FUN_00028b00(*(undefined4 *)(param_1 + 8));\n  uVar3 = FUN_00019ef0("%d %s %s%s%s",uVar3,uVar1,uVar2,pcVar4,pcVar5);\n  FUN_0001a110(uVar1);\n  FUN_0001a110(uVar2);\n  return uVar3;\n}\n\n" comment (function_definition "undefined4 FUN_00037910(int param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  char *pcVar5;\n  \n  uVar1 = FUN_0002a9b0(*(undefined4 *)(param_1 + 0xc));\n  uVar2 = FUN_0002a9b0(*(undefined4 *)(param_1 + 8));\n  pcVar4 = " ";\n  pcVar5 = *(char **)(param_1 + 0x20);\n  if (*(char **)(param_1 + 0x20) == (char *)0x0) {\n    pcVar4 = "";\n    pcVar5 = pcVar4;\n  }\n  uVar3 = FUN_00028b00(*(undefined4 *)(param_1 + 8));\n  uVar3 = FUN_00019ef0("%d %s %s%s%s",uVar3,uVar1,uVar2,pcVar4,pcVar5);\n  FUN_0001a110(uVar1);\n  FUN_0001a110(uVar2);\n  return uVar3;\n}" type_identifier (function_declarator "FUN_00037910(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  char *pcVar5;\n  \n  uVar1 = FUN_0002a9b0(*(undefined4 *)(param_1 + 0xc));\n  uVar2 = FUN_0002a9b0(*(undefined4 *)(param_1 + 8));\n  pcVar4 = " ";\n  pcVar5 = *(char **)(param_1 + 0x20);\n  if (*(char **)(param_1 + 0x20) == (char *)0x0) {\n    pcVar4 = "";\n    pcVar5 = pcVar4;\n  }\n  uVar3 = FUN_00028b00(*(undefined4 *)(param_1 + 8));\n  uVar3 = FUN_00019ef0("%d %s %s%s%s",uVar3,uVar1,uVar2,pcVar4,pcVar5);\n  FUN_0001a110(uVar1);\n  FUN_0001a110(uVar2);\n  return uVar3;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (expression_statement "uVar1 = FUN_0002a9b0(*(undefined4 *)(param_1 + 0xc));" (assignment_expression "uVar1 = FUN_0002a9b0(*(undefined4 *)(param_1 + 0xc))" identifier = (call_expression "FUN_0002a9b0(*(undefined4 *)(param_1 + 0xc))" identifier (argument_list "(*(undefined4 *)(param_1 + 0xc))" ( (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) )))) ;) (expression_statement "uVar2 = FUN_0002a9b0(*(undefined4 *)(param_1 + 8));" (assignment_expression "uVar2 = FUN_0002a9b0(*(undefined4 *)(param_1 + 8))" identifier = (call_expression "FUN_0002a9b0(*(undefined4 *)(param_1 + 8))" identifier (argument_list "(*(undefined4 *)(param_1 + 8))" ( (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) )))) ;) (expression_statement "pcVar4 = " ";" (assignment_expression "pcVar4 = " "" identifier = (string_literal "" "" " string_content ")) ;) (expression_statement "pcVar5 = *(char **)(param_1 + 0x20);" (assignment_expression "pcVar5 = *(char **)(param_1 + 0x20)" identifier = (pointer_expression "*(char **)(param_1 + 0x20)" * (cast_expression "(char **)(param_1 + 0x20)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))))) ;) (if_statement "if (*(char **)(param_1 + 0x20) == (char *)0x0) {\n    pcVar4 = "";\n    pcVar5 = pcVar4;\n  }" if (parenthesized_expression "(*(char **)(param_1 + 0x20) == (char *)0x0)" ( (binary_expression "*(char **)(param_1 + 0x20) == (char *)0x0" (pointer_expression "*(char **)(param_1 + 0x20)" * (cast_expression "(char **)(param_1 + 0x20)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar4 = "";\n    pcVar5 = pcVar4;\n  }" { (expression_statement "pcVar4 = "";" (assignment_expression "pcVar4 = """ identifier = (string_literal """" " ")) ;) (expression_statement "pcVar5 = pcVar4;" (assignment_expression "pcVar5 = pcVar4" identifier = identifier) ;) })) (expression_statement "uVar3 = FUN_00028b00(*(undefined4 *)(param_1 + 8));" (assignment_expression "uVar3 = FUN_00028b00(*(undefined4 *)(param_1 + 8))" identifier = (call_expression "FUN_00028b00(*(undefined4 *)(param_1 + 8))" identifier (argument_list "(*(undefined4 *)(param_1 + 8))" ( (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) )))) ;) (expression_statement "uVar3 = FUN_00019ef0("%d %s %s%s%s",uVar3,uVar1,uVar2,pcVar4,pcVar5);" (assignment_expression "uVar3 = FUN_00019ef0("%d %s %s%s%s",uVar3,uVar1,uVar2,pcVar4,pcVar5)" identifier = (call_expression "FUN_00019ef0("%d %s %s%s%s",uVar3,uVar1,uVar2,pcVar4,pcVar5)" identifier (argument_list "("%d %s %s%s%s",uVar3,uVar1,uVar2,pcVar4,pcVar5)" ( (string_literal ""%d %s %s%s%s"" " string_content ") , identifier , identifier , identifier , identifier , identifier )))) ;) (expression_statement "FUN_0001a110(uVar1);" (call_expression "FUN_0001a110(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) (expression_statement "FUN_0001a110(uVar2);" (call_expression "FUN_0001a110(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nchar * ssh1_pubkey_str(RSAKey *key)\n\n{\n  char *ptr;\n  char *ptr_00;\n  int iVar1;\n  char *pcVar2;\n  char *pcVar3;\n  \n  ptr = bignum_decimal((Bignum_conflict)key->exponent);\n  ptr_00 = bignum_decimal((Bignum_conflict)key->modulus);\n  pcVar2 = " ";\n  pcVar3 = key->comment;\n  if (key->comment == (char *)0x0) {\n    pcVar2 = "";\n    pcVar3 = pcVar2;\n  }\n  iVar1 = bignum_bitcount((Bignum_conflict)key->modulus);\n  pcVar2 = dupprintf("%d %s %s%s%s",iVar1,ptr,ptr_00,pcVar2,pcVar3);\n  safefree(ptr);\n  safefree(ptr_00);\n  return pcVar2;\n}\n\n" comment comment (function_definition "char * ssh1_pubkey_str(RSAKey *key)\n\n{\n  char *ptr;\n  char *ptr_00;\n  int iVar1;\n  char *pcVar2;\n  char *pcVar3;\n  \n  ptr = bignum_decimal((Bignum_conflict)key->exponent);\n  ptr_00 = bignum_decimal((Bignum_conflict)key->modulus);\n  pcVar2 = " ";\n  pcVar3 = key->comment;\n  if (key->comment == (char *)0x0) {\n    pcVar2 = "";\n    pcVar3 = pcVar2;\n  }\n  iVar1 = bignum_bitcount((Bignum_conflict)key->modulus);\n  pcVar2 = dupprintf("%d %s %s%s%s",iVar1,ptr,ptr_00,pcVar2,pcVar3);\n  safefree(ptr);\n  safefree(ptr_00);\n  return pcVar2;\n}" primitive_type (pointer_declarator "* ssh1_pubkey_str(RSAKey *key)" * (function_declarator "ssh1_pubkey_str(RSAKey *key)" identifier (parameter_list "(RSAKey *key)" ( (parameter_declaration "RSAKey *key" type_identifier (pointer_declarator "*key" * identifier)) )))) (compound_statement "{\n  char *ptr;\n  char *ptr_00;\n  int iVar1;\n  char *pcVar2;\n  char *pcVar3;\n  \n  ptr = bignum_decimal((Bignum_conflict)key->exponent);\n  ptr_00 = bignum_decimal((Bignum_conflict)key->modulus);\n  pcVar2 = " ";\n  pcVar3 = key->comment;\n  if (key->comment == (char *)0x0) {\n    pcVar2 = "";\n    pcVar3 = pcVar2;\n  }\n  iVar1 = bignum_bitcount((Bignum_conflict)key->modulus);\n  pcVar2 = dupprintf("%d %s %s%s%s",iVar1,ptr,ptr_00,pcVar2,pcVar3);\n  safefree(ptr);\n  safefree(ptr_00);\n  return pcVar2;\n}" { (declaration "char *ptr;" primitive_type (pointer_declarator "*ptr" * identifier) ;) (declaration "char *ptr_00;" primitive_type (pointer_declarator "*ptr_00" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (expression_statement "ptr = bignum_decimal((Bignum_conflict)key->exponent);" (assignment_expression "ptr = bignum_decimal((Bignum_conflict)key->exponent)" identifier = (call_expression "bignum_decimal((Bignum_conflict)key->exponent)" identifier (argument_list "((Bignum_conflict)key->exponent)" ( (cast_expression "(Bignum_conflict)key->exponent" ( (type_descriptor "Bignum_conflict" type_identifier) ) (field_expression "key->exponent" identifier -> field_identifier)) )))) ;) (expression_statement "ptr_00 = bignum_decimal((Bignum_conflict)key->modulus);" (assignment_expression "ptr_00 = bignum_decimal((Bignum_conflict)key->modulus)" identifier = (call_expression "bignum_decimal((Bignum_conflict)key->modulus)" identifier (argument_list "((Bignum_conflict)key->modulus)" ( (cast_expression "(Bignum_conflict)key->modulus" ( (type_descriptor "Bignum_conflict" type_identifier) ) (field_expression "key->modulus" identifier -> field_identifier)) )))) ;) (expression_statement "pcVar2 = " ";" (assignment_expression "pcVar2 = " "" identifier = (string_literal "" "" " string_content ")) ;) (expression_statement "pcVar3 = key->comment;" (assignment_expression "pcVar3 = key->comment" identifier = (field_expression "key->comment" identifier -> field_identifier)) ;) (if_statement "if (key->comment == (char *)0x0) {\n    pcVar2 = "";\n    pcVar3 = pcVar2;\n  }" if (parenthesized_expression "(key->comment == (char *)0x0)" ( (binary_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)) )) (compound_statement "{\n    pcVar2 = "";\n    pcVar3 = pcVar2;\n  }" { (expression_statement "pcVar2 = "";" (assignment_expression "pcVar2 = """ identifier = (string_literal """" " ")) ;) (expression_statement "pcVar3 = pcVar2;" (assignment_expression "pcVar3 = pcVar2" identifier = identifier) ;) })) (expression_statement "iVar1 = bignum_bitcount((Bignum_conflict)key->modulus);" (assignment_expression "iVar1 = bignum_bitcount((Bignum_conflict)key->modulus)" identifier = (call_expression "bignum_bitcount((Bignum_conflict)key->modulus)" identifier (argument_list "((Bignum_conflict)key->modulus)" ( (cast_expression "(Bignum_conflict)key->modulus" ( (type_descriptor "Bignum_conflict" type_identifier) ) (field_expression "key->modulus" identifier -> field_identifier)) )))) ;) (expression_statement "pcVar2 = dupprintf("%d %s %s%s%s",iVar1,ptr,ptr_00,pcVar2,pcVar3);" (assignment_expression "pcVar2 = dupprintf("%d %s %s%s%s",iVar1,ptr,ptr_00,pcVar2,pcVar3)" identifier = (call_expression "dupprintf("%d %s %s%s%s",iVar1,ptr,ptr_00,pcVar2,pcVar3)" identifier (argument_list "("%d %s %s%s%s",iVar1,ptr,ptr_00,pcVar2,pcVar3)" ( (string_literal ""%d %s %s%s%s"" " string_content ") , identifier , identifier , identifier , identifier , identifier )))) ;) (expression_statement "safefree(ptr);" (call_expression "safefree(ptr)" identifier (argument_list "(ptr)" ( identifier ))) ;) (expression_statement "safefree(ptr_00);" (call_expression "safefree(ptr_00)" identifier (argument_list "(ptr_00)" ( identifier ))) ;) (return_statement "return pcVar2;" return identifier ;) })))
(translation_unit "undefined4 FUN_00037910(int param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  char *pcVar5;\n  \n  uVar1 = FUN_0002a9b0(*(undefined4 *)(param_1 + 0xc));\n  uVar2 = FUN_0002a9b0(*(undefined4 *)(param_1 + 8));\n  pcVar4 = " ";\n  pcVar5 = *(char **)(param_1 + 0x20);\n  if (*(char **)(param_1 + 0x20) == (char *)0x0) {\n    pcVar4 = "";\n    pcVar5 = pcVar4;\n  }\n  uVar3 = FUN_00028b00(*(undefined4 *)(param_1 + 8));\n  uVar3 = FUN_00019ef0("%d %s %s%s%s",uVar3,uVar1,uVar2,pcVar4,pcVar5);\n  FUN_0001a110(uVar1);\n  FUN_0001a110(uVar2);\n  return uVar3;\n}\n\n" (function_definition "undefined4 FUN_00037910(int param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  char *pcVar5;\n  \n  uVar1 = FUN_0002a9b0(*(undefined4 *)(param_1 + 0xc));\n  uVar2 = FUN_0002a9b0(*(undefined4 *)(param_1 + 8));\n  pcVar4 = " ";\n  pcVar5 = *(char **)(param_1 + 0x20);\n  if (*(char **)(param_1 + 0x20) == (char *)0x0) {\n    pcVar4 = "";\n    pcVar5 = pcVar4;\n  }\n  uVar3 = FUN_00028b00(*(undefined4 *)(param_1 + 8));\n  uVar3 = FUN_00019ef0("%d %s %s%s%s",uVar3,uVar1,uVar2,pcVar4,pcVar5);\n  FUN_0001a110(uVar1);\n  FUN_0001a110(uVar2);\n  return uVar3;\n}" type_identifier (function_declarator "FUN_00037910(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  char *pcVar5;\n  \n  uVar1 = FUN_0002a9b0(*(undefined4 *)(param_1 + 0xc));\n  uVar2 = FUN_0002a9b0(*(undefined4 *)(param_1 + 8));\n  pcVar4 = " ";\n  pcVar5 = *(char **)(param_1 + 0x20);\n  if (*(char **)(param_1 + 0x20) == (char *)0x0) {\n    pcVar4 = "";\n    pcVar5 = pcVar4;\n  }\n  uVar3 = FUN_00028b00(*(undefined4 *)(param_1 + 8));\n  uVar3 = FUN_00019ef0("%d %s %s%s%s",uVar3,uVar1,uVar2,pcVar4,pcVar5);\n  FUN_0001a110(uVar1);\n  FUN_0001a110(uVar2);\n  return uVar3;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (expression_statement "uVar1 = FUN_0002a9b0(*(undefined4 *)(param_1 + 0xc));" (assignment_expression "uVar1 = FUN_0002a9b0(*(undefined4 *)(param_1 + 0xc))" identifier = (call_expression "FUN_0002a9b0(*(undefined4 *)(param_1 + 0xc))" identifier (argument_list "(*(undefined4 *)(param_1 + 0xc))" ( (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) )))) ;) (expression_statement "uVar2 = FUN_0002a9b0(*(undefined4 *)(param_1 + 8));" (assignment_expression "uVar2 = FUN_0002a9b0(*(undefined4 *)(param_1 + 8))" identifier = (call_expression "FUN_0002a9b0(*(undefined4 *)(param_1 + 8))" identifier (argument_list "(*(undefined4 *)(param_1 + 8))" ( (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) )))) ;) (expression_statement "pcVar4 = " ";" (assignment_expression "pcVar4 = " "" identifier = (string_literal "" "" " string_content ")) ;) (expression_statement "pcVar5 = *(char **)(param_1 + 0x20);" (assignment_expression "pcVar5 = *(char **)(param_1 + 0x20)" identifier = (pointer_expression "*(char **)(param_1 + 0x20)" * (cast_expression "(char **)(param_1 + 0x20)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))))) ;) (if_statement "if (*(char **)(param_1 + 0x20) == (char *)0x0) {\n    pcVar4 = "";\n    pcVar5 = pcVar4;\n  }" if (parenthesized_expression "(*(char **)(param_1 + 0x20) == (char *)0x0)" ( (binary_expression "*(char **)(param_1 + 0x20) == (char *)0x0" (pointer_expression "*(char **)(param_1 + 0x20)" * (cast_expression "(char **)(param_1 + 0x20)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) )))) == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pcVar4 = "";\n    pcVar5 = pcVar4;\n  }" { (expression_statement "pcVar4 = "";" (assignment_expression "pcVar4 = """ identifier = (string_literal """" " ")) ;) (expression_statement "pcVar5 = pcVar4;" (assignment_expression "pcVar5 = pcVar4" identifier = identifier) ;) })) (expression_statement "uVar3 = FUN_00028b00(*(undefined4 *)(param_1 + 8));" (assignment_expression "uVar3 = FUN_00028b00(*(undefined4 *)(param_1 + 8))" identifier = (call_expression "FUN_00028b00(*(undefined4 *)(param_1 + 8))" identifier (argument_list "(*(undefined4 *)(param_1 + 8))" ( (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) )))) ;) (expression_statement "uVar3 = FUN_00019ef0("%d %s %s%s%s",uVar3,uVar1,uVar2,pcVar4,pcVar5);" (assignment_expression "uVar3 = FUN_00019ef0("%d %s %s%s%s",uVar3,uVar1,uVar2,pcVar4,pcVar5)" identifier = (call_expression "FUN_00019ef0("%d %s %s%s%s",uVar3,uVar1,uVar2,pcVar4,pcVar5)" identifier (argument_list "("%d %s %s%s%s",uVar3,uVar1,uVar2,pcVar4,pcVar5)" ( (string_literal ""%d %s %s%s%s"" " string_content ") , identifier , identifier , identifier , identifier , identifier )))) ;) (expression_statement "FUN_0001a110(uVar1);" (call_expression "FUN_0001a110(uVar1)" identifier (argument_list "(uVar1)" ( identifier ))) ;) (expression_statement "FUN_0001a110(uVar2);" (call_expression "FUN_0001a110(uVar2)" identifier (argument_list "(uVar2)" ( identifier ))) ;) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * 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) )))) )))) ;) (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) )))) )))) ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " ")) ;) (expression_statement (assignment_expression IDENT = 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) )))) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (string_literal " string_content ") , IDENT , IDENT , IDENT , IDENT , IDENT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_00037910(int param_1)\n\n{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  char *pcVar5;\n  \n  uVar1 = FUN_0002a9b0(*(undefined4 *)(param_1 + 0xc));\n  uVar2 = FUN_0002a9b0(*(undefined4 *)(param_1 + 8));\n  pcVar4 = " ";\n  pcVar5 = *(char **)(param_1 + 0x20);\n  if (*(char **)(param_1 + 0x20) == (char *)0x0) {\n    pcVar4 = "";\n    pcVar5 = pcVar4;\n  }\n  uVar3 = FUN_00028b00(*(undefined4 *)(param_1 + 8));\n  uVar3 = FUN_00019ef0("%d %s %s%s%s",uVar3,uVar1,uVar2,pcVar4,pcVar5);\n  FUN_0001a110(uVar1);\n  FUN_0001a110(uVar2);\n  return uVar3;\n}" (type_identifier "undefined4") (function_declarator "FUN_00037910(int param_1)" (identifier "FUN_00037910") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  char *pcVar4;\n  char *pcVar5;\n  \n  uVar1 = FUN_0002a9b0(*(undefined4 *)(param_1 + 0xc));\n  uVar2 = FUN_0002a9b0(*(undefined4 *)(param_1 + 8));\n  pcVar4 = " ";\n  pcVar5 = *(char **)(param_1 + 0x20);\n  if (*(char **)(param_1 + 0x20) == (char *)0x0) {\n    pcVar4 = "";\n    pcVar5 = pcVar4;\n  }\n  uVar3 = FUN_00028b00(*(undefined4 *)(param_1 + 8));\n  uVar3 = FUN_00019ef0("%d %s %s%s%s",uVar3,uVar1,uVar2,pcVar4,pcVar5);\n  FUN_0001a110(uVar1);\n  FUN_0001a110(uVar2);\n  return uVar3;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "char *pcVar5;" (primitive_type "char") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (expression_statement "uVar1 = FUN_0002a9b0(*(undefined4 *)(param_1 + 0xc));" (assignment_expression "uVar1 = FUN_0002a9b0(*(undefined4 *)(param_1 + 0xc))" (identifier "uVar1") (= "=") (call_expression "FUN_0002a9b0(*(undefined4 *)(param_1 + 0xc))" (identifier "FUN_0002a9b0") (argument_list "(*(undefined4 *)(param_1 + 0xc))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) () ")")))) (; ";")) (expression_statement "uVar2 = FUN_0002a9b0(*(undefined4 *)(param_1 + 8));" (assignment_expression "uVar2 = FUN_0002a9b0(*(undefined4 *)(param_1 + 8))" (identifier "uVar2") (= "=") (call_expression "FUN_0002a9b0(*(undefined4 *)(param_1 + 8))" (identifier "FUN_0002a9b0") (argument_list "(*(undefined4 *)(param_1 + 8))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) () ")")))) (; ";")) (expression_statement "pcVar4 = " ";" (assignment_expression "pcVar4 = " "" (identifier "pcVar4") (= "=") (string_literal "" "" (" """) (string_content " ") (" """))) (; ";")) (expression_statement "pcVar5 = *(char **)(param_1 + 0x20);" (assignment_expression "pcVar5 = *(char **)(param_1 + 0x20)" (identifier "pcVar5") (= "=") (pointer_expression "*(char **)(param_1 + 0x20)" (* "*") (cast_expression "(char **)(param_1 + 0x20)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")"))))) (; ";")) (if_statement "if (*(char **)(param_1 + 0x20) == (char *)0x0) {\n    pcVar4 = "";\n    pcVar5 = pcVar4;\n  }" (if "if") (parenthesized_expression "(*(char **)(param_1 + 0x20) == (char *)0x0)" (( "(") (binary_expression "*(char **)(param_1 + 0x20) == (char *)0x0" (pointer_expression "*(char **)(param_1 + 0x20)" (* "*") (cast_expression "(char **)(param_1 + 0x20)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")")))) (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    pcVar4 = "";\n    pcVar5 = pcVar4;\n  }" ({ "{") (expression_statement "pcVar4 = "";" (assignment_expression "pcVar4 = """ (identifier "pcVar4") (= "=") (string_literal """" (" """) (" """))) (; ";")) (expression_statement "pcVar5 = pcVar4;" (assignment_expression "pcVar5 = pcVar4" (identifier "pcVar5") (= "=") (identifier "pcVar4")) (; ";")) (} "}"))) (expression_statement "uVar3 = FUN_00028b00(*(undefined4 *)(param_1 + 8));" (assignment_expression "uVar3 = FUN_00028b00(*(undefined4 *)(param_1 + 8))" (identifier "uVar3") (= "=") (call_expression "FUN_00028b00(*(undefined4 *)(param_1 + 8))" (identifier "FUN_00028b00") (argument_list "(*(undefined4 *)(param_1 + 8))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) () ")")))) (; ";")) (expression_statement "uVar3 = FUN_00019ef0("%d %s %s%s%s",uVar3,uVar1,uVar2,pcVar4,pcVar5);" (assignment_expression "uVar3 = FUN_00019ef0("%d %s %s%s%s",uVar3,uVar1,uVar2,pcVar4,pcVar5)" (identifier "uVar3") (= "=") (call_expression "FUN_00019ef0("%d %s %s%s%s",uVar3,uVar1,uVar2,pcVar4,pcVar5)" (identifier "FUN_00019ef0") (argument_list "("%d %s %s%s%s",uVar3,uVar1,uVar2,pcVar4,pcVar5)" (( "(") (string_literal ""%d %s %s%s%s"" (" """) (string_content "%d %s %s%s%s") (" """)) (, ",") (identifier "uVar3") (, ",") (identifier "uVar1") (, ",") (identifier "uVar2") (, ",") (identifier "pcVar4") (, ",") (identifier "pcVar5") () ")")))) (; ";")) (expression_statement "FUN_0001a110(uVar1);" (call_expression "FUN_0001a110(uVar1)" (identifier "FUN_0001a110") (argument_list "(uVar1)" (( "(") (identifier "uVar1") () ")"))) (; ";")) (expression_statement "FUN_0001a110(uVar2);" (call_expression "FUN_0001a110(uVar2)" (identifier "FUN_0001a110") (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")"))) (; ";")) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}")))

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

char * function_1(type_1 *key)

{
  char *ptr;
  char *ptr_00;
  int iVar1;
  char *pcVar2;
  char *pcVar3;
  
  ptr = var_1((type_2)key->exponent);
  ptr_00 = var_1((type_2)key->modulus);
  pcVar2 = " ";
  pcVar3 = key->comment;
  if (key->comment == (char *)0x0) {
    pcVar2 = "";
    pcVar3 = pcVar2;
  }
  iVar1 = var_2((type_2)key->modulus);
  pcVar2 = var_3("%d %s %s%s%s",iVar1,ptr,ptr_00,pcVar2,pcVar3);
  var_4(ptr);
  var_4(ptr_00);
  return pcVar2;
}


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

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

undefined4 MASKED(int param_1)

{
  undefined4 uVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  char *pcVar4;
  char *pcVar5;
  
  uVar1 = FUN_0002a9b0(*(undefined4 *)(param_1 + 0xc));
  uVar2 = FUN_0002a9b0(*(undefined4 *)(param_1 + 8));
  pcVar4 = " ";
  pcVar5 = *(char **)(param_1 + 0x20);
  if (*(char **)(param_1 + 0x20) == (char *)0x0) {
    pcVar4 = "";
    pcVar5 = pcVar4;
  }
  uVar3 = FUN_00028b00(*(undefined4 *)(param_1 + 8));
  uVar3 = FUN_00019ef0("%d %s %s%s%s",uVar3,uVar1,uVar2,pcVar4,pcVar5);
  FUN_0001a110(uVar1);
  FUN_0001a110(uVar2);
  return uVar3;
}

