//
// sub_E5D8E4 from 0xe5d8e4 to 0xe5d958 (116 bytes)
//
// 2 xrefs:
// > engine_load_openssl_int @ 0xe5e0c0
// > engine_load_openssl_int @ 0xe5e0c8
//
// 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
//
__int64 __fastcall sub_E5D8E4(__int64 a1, const char *a2)
{
__int64 result; // x0
_QWORD *v4; // x20
__int64 bio_PrivateKey; // x19
fprintf((FILE *)((char *)&_sF + 304), "(TEST_ENG_OPENSSL_PKEY)Loading Private key %s\n", a2);
result = BIO_new_file(a2, "r");
v4 = (_QWORD *)result;
if ( result )
{
bio_PrivateKey = PEM_read_bio_PrivateKey(result, nullptr, nullptr, nullptr);
BIO_free(v4);
return bio_PrivateKey;
}
return result;
}