//
// PEM_read_ECPrivateKey from 0x821174 to 0x8211d0 (92 bytes)
//
// 1 xrefs:
// > ??> @ 0x6523c
//
// 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_ECPrivateKey(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_EC_KEY(PrivateKey);
EVP_PKEY_free(v4);
if ( !v5 )
return 0;
if ( a2 )
{
EC_KEY_free(*a2);
*a2 = v5;
}
return v5;
}