//
// sub_E006D4 from 0xe006d4 to 0xe00768 (148 bytes)
//
// 2 xrefs:
// > X509_PURPOSE_cleanup @ 0xe01150
// > X509_PURPOSE_cleanup @ 0xe01160
//
// 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 sub_E006D4(__int64 a1)
{
int v1; // w2
if ( a1 )
{
v1 = *(_DWORD *)(a1 + 8);
if ( (v1 & 1) != 0 )
{
if ( (v1 & 2) != 0 )
{
CRYPTO_free(*(void **)(a1 + 24), (__int64)"crypto/x509v3/v3_purp.c", 223);
CRYPTO_free(*(void **)(a1 + 32), (__int64)"crypto/x509v3/v3_purp.c", 224);
CRYPTO_free((void *)a1, (__int64)"crypto/x509v3/v3_purp.c", 226);
}
else
{
CRYPTO_free((void *)a1, (__int64)"crypto/x509v3/v3_purp.c", 226);
}
}
}
}