//
// sub_8B3B98 from 0x8b3b98 to 0x8b3c58 (192 bytes)
//
// 3 xrefs:
// > engine_load_openssl_int @ 0x8b42a4
// > engine_load_openssl_int @ 0x8b42ac
// > ??> @ 0x8b42fc
//
// 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 sub_8B3B98(int a1, int *a2, _DWORD *a3, int a4)
{
int v5; // r12
int v7; // r0
int v8; // r0
int v9; // r5
int v10; // r0
_DWORD *v11; // [sp+4h] [bp-8h]
if ( a2 )
{
if ( a4 == 64 )
{
v7 = sub_8B3A98();
v5 = 1;
*a2 = v7;
}
else
{
v5 = 0;
*a2 = 0;
}
}
else
{
if ( dword_AD486C )
{
v5 = dword_AD4870;
}
else
{
v11 = a3;
v8 = sub_8B3A98();
a3 = v11;
if ( v8 )
{
v9 = dword_AD4870++;
v10 = EVP_MD_type(v8);
a3 = v11;
dword_AD4868[v9 + 3] = v10;
}
v5 = dword_AD4870;
dword_AD486C = 1;
dword_AD4868[dword_AD4870 + 3] = 0;
}
*a3 = &unk_AD4874;
}
return v5;
}