//
// X509_LOOKUP_by_subject from 0xde75ac to 0xde75f8 (76 bytes)
//
// 2 xrefs:
// > X509_STORE_CTX_get_by_subject @ 0xde7b5c
// > ??> @ 0x5c520
//
// 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 X509_LOOKUP_by_subject(__int64 a1)
{
__int64 v1; // x4
unsigned int (*v2)(void); // x6
v1 = *(_QWORD *)(a1 + 8);
if ( !v1 )
return (unsigned int)v1;
v2 = *(unsigned int (**)(void))(v1 + 48);
if ( !v2 )
{
LODWORD(v1) = 0;
return (unsigned int)v1;
}
LODWORD(v1) = 0;
if ( *(_DWORD *)(a1 + 4) )
return (unsigned int)v1;
return v2();
}