//
// sub_D628A0 from 0xd628a0 to 0xd62918 (120 bytes)
//
// 1 xrefs:
// > ??> @ 0x1121a00
//
// 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_D628A0(__int64 a1)
{
__int64 v1; // x2
__int64 v2; // x19
__int64 result; // x0
__int64 v4; // x0
v1 = *(_QWORD *)(a1 + 24);
if ( v1 )
{
v2 = *(_QWORD *)(v1 + 288);
result = *(_QWORD *)(v2 + 400);
if ( result )
return (int)X509_STORE_load_locations(result) > 0;
}
else
{
v4 = *(_QWORD *)(a1 + 32);
if ( !v4 )
return 1;
v2 = *(_QWORD *)(v4 + 328);
result = *(_QWORD *)(v2 + 400);
if ( result )
return (int)X509_STORE_load_locations(result) > 0;
}
result = X509_STORE_new();
*(_QWORD *)(v2 + 400) = result;
if ( result )
return (int)X509_STORE_load_locations(result) > 0;
return result;
}