//
// ASN1_OBJECT_free from 0xfe2560 to 0xfe260c (172 bytes)
//
// 54 xrefs:
// > c2i_ASN1_OBJECT @ 0xfe27d0
// > c2i_ASN1_OBJECT @ 0xfe2864
// > sub_FE7A94 @ 0xfe7c1c
// > asn1_primitive_free @ 0xfecc60
// > X509_ALGOR_set0 @ 0xfeeb80
// > X509_ALGOR_set0 @ 0xfeebbc
// > sub_100A660 @ 0x100a758
// > EC_GROUP_get_ecparameters @ 0x100b5f0
// > EC_GROUP_get_ecpkparameters @ 0x100bf04
// > EVP_CIPHER_type @ 0x1028afc
// > sub_103FAB0 @ 0x103fad4
// > OBJ_txt2nid @ 0x1040e5c
// > OBJ_create @ 0x1040f1c
// > OBJ_dup @ 0x10411c4
// > OCSP_cert_id_new @ 0x1042834
// > X509_ATTRIBUTE_set1_object @ 0x1064210
// > X509_ATTRIBUTE_create_by_NID @ 0x10645b4
// > X509_ATTRIBUTE_create_by_txt @ 0x1064684
// > X509_EXTENSION_set_object @ 0x1067ca8
// > X509_EXTENSION_create_by_NID @ 0x1067eb4
// > X509_VERIFY_PARAM_set1_policies @ 0x106c978
// > X509_NAME_ENTRY_set_object @ 0x106d998
// > X509_NAME_ENTRY_create_by_txt @ 0x106dc90
// > X509_NAME_ENTRY_create_by_NID @ 0x106dd98
// > X509_add1_trust_object @ 0x1071048
// > X509_add1_reject_object @ 0x10710f8
// > policy_data_free @ 0x107159c
// > policy_data_new @ 0x10716e4
// > X509v3_asid_validate_resource_set @ 0x1078d4c
// > sub_1079F2C @ 0x107a6b0
// > sub_107D9D0 @ 0x107db30
// > sub_107E144 @ 0x107e258
// > sub_107E144 @ 0x107e260
// > ASN1_sign @ 0x108a0a4
// > ASN1_sign @ 0x108a2c4
// > ASN1_sign @ 0x108a32c
// > CMS_EnvelopedData_create @ 0x109bca8
// > CMS_set1_eContentType @ 0x109e0b4
// > CMS_SignedData_init @ 0x109f5a4
// > CMS_add1_signer @ 0x10a0f68
// > sub_10A7E24 @ 0x10a7f48
// > sub_10A8018 @ 0x10a8048
// > PKCS7_simple_smimecap @ 0x10e435c
// > ??> @ 0xf1e70
// > OCSP_accept_responses_new @ 0x1042620
// > X509_VERIFY_PARAM_free @ 0x106c5e4
// > X509_VERIFY_PARAM_new @ 0x106c704
// > X509_VERIFY_PARAM_set1_policies @ 0x106c8d0
// > X509_trust_clear @ 0x1071148
// > X509_reject_clear @ 0x1071184
// > policy_data_free @ 0x10715b0
// > sub_107F63C @ 0x107f888
// > sub_10EE1B8 @ 0x10ee248
// > ??> @ 0x1547528
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:15:38 +0000
//
__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;
}