//
// sub_FE0114 from 0xfe0114 to 0xfe01f8 (228 bytes)
//
// 1 xrefs:
// > ??> @ 0x13feef0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:15:37 +0000
//
bool __fastcall sub_FE0114(__int64 a1, __int64 a2)
{
__int64 v3; // x0
int v5; // w0
__int64 v6; // x3
_QWORD *v7; // x2
_BOOL8 result; // x0
__int64 v9; // x19
__int64 v10; // x0
v3 = *(_QWORD *)(a1 + 24);
if ( !v3 )
{
v6 = *(_QWORD *)(a1 + 32);
if ( !v6 )
return 1;
goto LABEL_3;
}
v5 = SSL_CTX_use_certificate_chain_file(v3, a2);
v6 = *(_QWORD *)(a1 + 32);
v7 = *(_QWORD **)(*(_QWORD *)(a1 + 24) + 288LL);
if ( v6 )
{
LABEL_3:
v5 = SSL_use_certificate_chain_file(v6, a2);
v7 = *(_QWORD **)(*(_QWORD *)(a1 + 32) + 328LL);
}
result = v5 > 0;
if ( v7 && result )
{
result = 1;
if ( (*(_DWORD *)a1 & 0x40) != 0 )
{
v9 = a1 + 0x6666666666666668LL * ((__int64)(*v7 - (_QWORD)(v7 + 4)) >> 3);
CRYPTO_free(*(_QWORD *)(v9 + 48), "ssl/ssl_conf.c", 390);
v10 = CRYPTO_strdup(a2, "ssl/ssl_conf.c", 391);
*(_QWORD *)(v9 + 48) = v10;
return v10 != 0;
}
}
return result;
}