//
// X509_LOOKUP_new from 0xde7428 to 0xde749c (116 bytes)
//
// 2 xrefs:
// > X509_STORE_add_lookup @ 0xde78e0
// > ??> @ 0x951a8
//
// 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
//
void *__fastcall X509_LOOKUP_new(__int64 a1)
{
_QWORD *v2; // x0
void *v3; // x19
unsigned int (*v4)(void); // x1
void *v6; // x0
v2 = CRYPTO_zalloc(&qword_20, (__int64)"crypto/x509/x509_lu.c", 22);
v3 = v2;
if ( v2 )
{
v4 = *(unsigned int (**)(void))(a1 + 8);
v2[1] = a1;
if ( v4 )
{
if ( !v4() )
{
v6 = v3;
v3 = nullptr;
CRYPTO_free(v6, (__int64)"crypto/x509/x509_lu.c", 28);
}
}
}
return v3;
}