//
// sub_859F28 from 0x859f28 to 0x859f90 (104 bytes)
//
// 3 xrefs:
// > X509_PURPOSE_cleanup @ 0x85a9b4
// > X509_PURPOSE_cleanup @ 0x85a9bc
// > ??> @ 0x85a9d8
//
// 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_859F28(int a1)
{
int v1; // r3
if ( a1 )
{
v1 = *(_DWORD *)(a1 + 8);
if ( (v1 & 1) != 0 )
{
if ( (v1 & 2) != 0 )
{
CRYPTO_free(*(void **)(a1 + 16), (int)"crypto/x509v3/v3_purp.c", 223);
CRYPTO_free(*(void **)(a1 + 20), (int)"crypto/x509v3/v3_purp.c", 224);
}
CRYPTO_free((void *)a1, (int)"crypto/x509v3/v3_purp.c", 226);
}
}
}