//
// asn1_string_embed_free from 0x7c2c84 to 0x7c2ce4 (96 bytes)
//
// 3 xrefs:
// > ASN1_STRING_free @ 0x7c2d04
// > asn1_primitive_free @ 0x7c86b8
// > ??> @ 0x5e79c
//
// 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
//
int __fastcall asn1_string_embed_free(int result, int a2)
{
int v3; // r4
if ( result )
{
v3 = result;
if ( (*(_DWORD *)(result + 12) & 0x10) != 0 )
{
if ( a2 )
return result;
return CRYPTO_free(v3, "crypto/asn1/asn1_lib.c", 325);
}
result = CRYPTO_free(*(_DWORD *)(result + 8), "crypto/asn1/asn1_lib.c", 323);
if ( !a2 )
return CRYPTO_free(v3, "crypto/asn1/asn1_lib.c", 325);
}
return result;
}