//
// ASN1_OBJECT_free from 0xd64200 to 0xd642ac (172 bytes)
//
// 54 xrefs:
// > c2i_ASN1_OBJECT @ 0xd64470
// > c2i_ASN1_OBJECT @ 0xd64504
// > sub_D69734 @ 0xd698bc
// > asn1_primitive_free @ 0xd6e900
// > X509_ALGOR_set0 @ 0xd70820
// > X509_ALGOR_set0 @ 0xd7085c
// > sub_D8C300 @ 0xd8c3f8
// > EC_GROUP_get_ecparameters @ 0xd8d290
// > EC_GROUP_get_ecpkparameters @ 0xd8dba4
// > EVP_CIPHER_type @ 0xdaa79c
// > sub_DC1750 @ 0xdc1774
// > OBJ_txt2nid @ 0xdc2afc
// > OBJ_create @ 0xdc2bbc
// > OBJ_dup @ 0xdc2e64
// > OCSP_cert_id_new @ 0xdc44d4
// > X509_ATTRIBUTE_set1_object @ 0xde5ed0
// > X509_ATTRIBUTE_create_by_NID @ 0xde6274
// > X509_ATTRIBUTE_create_by_txt @ 0xde6344
// > X509_EXTENSION_set_object @ 0xde9968
// > X509_EXTENSION_create_by_NID @ 0xde9b74
// > X509_VERIFY_PARAM_set1_policies @ 0xdee638
// > X509_NAME_ENTRY_set_object @ 0xdef658
// > X509_NAME_ENTRY_create_by_txt @ 0xdef950
// > X509_NAME_ENTRY_create_by_NID @ 0xdefa58
// > X509_add1_trust_object @ 0xdf2d08
// > X509_add1_reject_object @ 0xdf2db8
// > policy_data_free @ 0xdf325c
// > policy_data_new @ 0xdf33a4
// > X509v3_asid_validate_resource_set @ 0xdfaa0c
// > sub_DFBBEC @ 0xdfc370
// > sub_DFF690 @ 0xdff7f0
// > sub_DFFE04 @ 0xdfff18
// > sub_DFFE04 @ 0xdfff20
// > ASN1_sign @ 0xe0bda4
// > ASN1_sign @ 0xe0bfc4
// > ASN1_sign @ 0xe0c02c
// > CMS_EnvelopedData_create @ 0xe1d9a8
// > CMS_set1_eContentType @ 0xe1fdb4
// > CMS_SignedData_init @ 0xe212a4
// > CMS_add1_signer @ 0xe22c68
// > sub_E29B24 @ 0xe29c48
// > sub_E29D18 @ 0xe29d48
// > PKCS7_simple_smimecap @ 0xe6635c
// > ??> @ 0xb9610
// > OCSP_accept_responses_new @ 0xdc42c0
// > X509_VERIFY_PARAM_free @ 0xdee2a4
// > X509_VERIFY_PARAM_new @ 0xdee3c4
// > X509_VERIFY_PARAM_set1_policies @ 0xdee590
// > X509_trust_clear @ 0xdf2e08
// > X509_reject_clear @ 0xdf2e44
// > policy_data_free @ 0xdf3270
// > sub_E012FC @ 0xe01548
// > sub_E701B8 @ 0xe70248
// > ??> @ 0x122e6b8
//
// 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 ASN1_OBJECT_free(__int64 result)
{
__int64 v1; // x19
if ( result )
{
v1 = result;
result = *(unsigned int *)(result + 32);
if ( (result & 4) != 0 )
{
CRYPTO_free(*(_QWORD *)v1, "crypto/asn1/a_object.c", 343);
CRYPTO_free(*(_QWORD *)(v1 + 8), "crypto/asn1/a_object.c", 344);
*(_QWORD *)(v1 + 8) = 0;
result = *(unsigned int *)(v1 + 32);
*(_QWORD *)v1 = 0;
if ( (result & 8) == 0 )
{
LABEL_4:
if ( (result & 1) == 0 )
return result;
return CRYPTO_free(v1, "crypto/asn1/a_object.c", 354);
}
}
else if ( (result & 8) == 0 )
{
goto LABEL_4;
}
CRYPTO_free(*(_QWORD *)(v1 + 24), "crypto/asn1/a_object.c", 349);
*(_QWORD *)(v1 + 24) = 0;
result = *(unsigned int *)(v1 + 32);
*(_DWORD *)(v1 + 20) = 0;
if ( (result & 1) != 0 )
return CRYPTO_free(v1, "crypto/asn1/a_object.c", 354);
}
return result;
}