//
// X509_STORE_load_locations from 0xde7020 to 0xde70e0 (192 bytes)
//
// 6 xrefs:
// > SSL_CTX_load_verify_locations @ 0xd42438
// > sub_D62540 @ 0xd62564
// > sub_D62828 @ 0xd62850
// > sub_D628A0 @ 0xd628c8
// > sub_D62918 @ 0xd6293c
// > ??> @ 0x54ed0
//
// 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 X509_STORE_load_locations(__int64 a1, __int64 a2, __int64 a3)
{
char **v6; // x0
__int64 v7; // x0
char **v9; // x0
__int64 v10; // x0
if ( (!a2
|| (v6 = X509_LOOKUP_file(), (v7 = X509_STORE_add_lookup(a1, v6)) != 0)
&& (unsigned int)X509_LOOKUP_ctrl(v7, 1, a2, 1, 0) == 1)
&& (!a3
|| (v9 = X509_LOOKUP_hash_dir(), (v10 = X509_STORE_add_lookup(a1, v9)) != 0)
&& (unsigned int)X509_LOOKUP_ctrl(v10, 2, a3, 1, 0) == 1) )
{
return a2 != 0 || a3 != 0;
}
else
{
return 0;
}
}