//
// X509_LOOKUP_ctrl from 0x83f5f4 to 0x83f62c (56 bytes)
//
// 7 xrefs:
// > SSL_CTX_set_default_verify_dir @ 0x7998fc
// > SSL_CTX_set_default_verify_file @ 0x799948
// > X509_STORE_set_default_paths @ 0x83f0e0
// > X509_STORE_set_default_paths @ 0x83f10c
// > X509_STORE_load_locations @ 0x83f170
// > X509_STORE_load_locations @ 0x83f1bc
// > ??> @ 0x5c22c
//
// 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 X509_LOOKUP_ctrl(int a1)
{
int v1; // r12
int (*v2)(void); // r12
v1 = *(_DWORD *)(a1 + 8);
if ( !v1 )
return -1;
v2 = *(int (**)(void))(v1 + 20);
if ( v2 )
return v2();
else
return 1;
}