//
// PEM_read_PrivateKey from 0x82390c to 0x823998 (140 bytes)
//
// 4 xrefs:
// > PEM_read_RSAPrivateKey @ 0x820788
// > PEM_read_DSAPrivateKey @ 0x820cd8
// > PEM_read_ECPrivateKey @ 0x821180
// > ??> @ 0x64f8c
//
// 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_PrivateKey(
int a1,
int *a2,
int (__fastcall *a3)(char *, int, _DWORD, const char *),
const char *a4)
{
void *v8; // r0
_DWORD *v9; // r0
_DWORD *v10; // r5
int bio_PrivateKey; // r4
v8 = BIO_s_file();
v9 = BIO_new((int)v8);
v10 = v9;
if ( v9 )
{
BIO_ctrl(v9, 106, 0, a1);
bio_PrivateKey = PEM_read_bio_PrivateKey(v10, a2, a3, a4);
BIO_free(v10);
return bio_PrivateKey;
}
else
{
ERR_put_error(9, 124, 7, (int)"crypto/pem/pem_pkey.c", 171);
return 0;
}
}