//
// PEM_read_RSAPrivateKey from 0x82077c to 0x8207d8 (92 bytes)
//
// 1 xrefs:
// > ??> @ 0x64f7c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int __fastcall PEM_read_RSAPrivateKey(int a1, int *a2)
{
_DWORD *PrivateKey; // r0
int v4; // r6
int v5; // r4
PrivateKey = (_DWORD *)PEM_read_PrivateKey(a1, 0);
v4 = (int)PrivateKey;
if ( !PrivateKey )
return 0;
v5 = EVP_PKEY_get1_RSA(PrivateKey);
EVP_PKEY_free(v4);
if ( !v5 )
return 0;
if ( a2 )
{
RSA_free(*a2);
*a2 = v5;
}
return v5;
}