//
// sub_840B40 from 0x840b40 to 0x840b94 (84 bytes)
//
// 3 xrefs:
// > X509_TRUST_cleanup @ 0x841120
// > X509_TRUST_cleanup @ 0x841128
// > ??> @ 0x841144
//
// 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_840B40(int a1)
{
int v1; // r3
if ( a1 )
{
v1 = *(_DWORD *)(a1 + 4);
if ( (v1 & 1) != 0 )
{
if ( (v1 & 2) != 0 )
CRYPTO_free(*(void **)(a1 + 12), (int)"crypto/x509/x509_trs.c", 190);
CRYPTO_free((void *)a1, (int)"crypto/x509/x509_trs.c", 191);
}
}
}