//
// sub_7BB4F4 from 0x7bb4f4 to 0x7bb5dc (232 bytes)
//
// 1 xrefs:
// > ??> @ 0xa30280
//
// 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
//
bool __fastcall sub_7BB4F4(_DWORD *a1, int a2)
{
_DWORD *v3; // r0
int v5; // r0
int v6; // r3
_DWORD *v7; // r2
bool v8; // cc
_DWORD *v10; // r4
int v11; // r0
v3 = (_DWORD *)a1[3];
if ( v3 )
{
v5 = SSL_CTX_use_certificate_chain_file(v3, a2);
v6 = a1[4];
v7 = *(_DWORD **)(a1[3] + 176);
if ( !v6 )
goto LABEL_4;
}
else
{
v6 = a1[4];
if ( !v6 )
return 1;
}
v5 = SSL_use_certificate_chain_file(v6, a2);
v7 = *(_DWORD **)(a1[4] + 200);
LABEL_4:
v8 = (int)v7 <= 0;
if ( v7 )
v8 = v5 <= 0;
if ( v8 )
return v5 > 0;
if ( (*a1 & 0x40) == 0 )
return 1;
v10 = &a1[214748365 * ((*v7 - (int)(v7 + 5)) >> 2)];
CRYPTO_free(v10[6], "ssl/ssl_conf.c", 390);
v11 = CRYPTO_strdup(a2, "ssl/ssl_conf.c", 391);
v10[6] = v11;
return v11 != 0;
}