// // ASN1_item_free from 0xfed330 to 0xfed64c (796 bytes) // // 123 xrefs: // > d2i_SSL_SESSION @ 0xfde00c // > d2i_SSL_SESSION @ 0xfde2dc // > d2i_SSL_SESSION @ 0xfde300 // > d2i_SSL_SESSION @ 0xfde378 // > ASN1_TIME_free @ 0xfe5b44 // > PKCS8_PRIV_KEY_INFO_free @ 0xfe8998 // > sub_FE9B88 @ 0xfe9e18 // > sub_FE9B88 @ 0xfea500 // > ASN1_NULL_free @ 0xfee54c // > ASN1_TYPE_free @ 0xfee57c // > ASN1_PRINTABLE_free @ 0xfee5ac // > DISPLAYTEXT_free @ 0xfee5dc // > DIRECTORYSTRING_free @ 0xfee60c // > X509_ALGOR_free @ 0xfeeb14 // > X9_62_PENTANOMIAL_free @ 0x100b4f8 // > X9_62_CHARACTERISTIC_TWO_free @ 0x100b518 // > ECPARAMETERS_free @ 0x100b530 // > ECPKPARAMETERS_free @ 0x100b560 // > EC_PRIVATEKEY_free @ 0x100b5a0 // > OCSP_SIGNATURE_free @ 0x10415c4 // > OCSP_CERTID_free @ 0x10415f4 // > OCSP_ONEREQ_free @ 0x1041624 // > OCSP_REQINFO_free @ 0x1041654 // > OCSP_REQUEST_free @ 0x1041684 // > OCSP_RESPBYTES_free @ 0x10416b4 // > OCSP_RESPONSE_free @ 0x10416e4 // > OCSP_RESPID_free @ 0x1041714 // > OCSP_REVOKEDINFO_free @ 0x1041744 // > OCSP_CERTSTATUS_free @ 0x1041774 // > OCSP_SINGLERESP_free @ 0x10417a4 // > OCSP_RESPDATA_free @ 0x10417d4 // > OCSP_BASICRESP_free @ 0x1041804 // > OCSP_CRLID_free @ 0x1041834 // > OCSP_SERVICELOC_free @ 0x1041864 // > PKCS12_free @ 0x1047a60 // > PKCS12_MAC_DATA_free @ 0x1047a90 // > PKCS12_BAGS_free @ 0x1047ac0 // > PKCS12_SAFEBAG_free @ 0x1047af0 // > PKCS7_free @ 0x104a2c8 // > PKCS7_SIGNED_free @ 0x104a314 // > PKCS7_SIGNER_INFO_free @ 0x104a344 // > PKCS7_ISSUER_AND_SERIAL_free @ 0x104a374 // > PKCS7_ENVELOPE_free @ 0x104a3a4 // > PKCS7_RECIP_INFO_free @ 0x104a3d4 // > PKCS7_ENC_CONTENT_free @ 0x104a404 // > PKCS7_SIGN_ENVELOPE_free @ 0x104a434 // > PKCS7_ENCRYPT_free @ 0x104a464 // > PKCS7_DIGEST_free @ 0x104a494 // > RSA_PSS_PARAMS_free @ 0x1051ba0 // > RSA_OAEP_PARAMS_free @ 0x1051bd0 // > X509_ATTRIBUTE_free @ 0x106e990 // > X509_REVOKED_free @ 0x106f174 // > X509_CRL_INFO_free @ 0x106f1b4 // > X509_CRL_free @ 0x106f1e4 // > X509_EXTENSION_free @ 0x106f448 // > X509_NAME_ENTRY_free @ 0x106f47c // > X509_NAME_free @ 0x106fbf8 // > X509_PUBKEY_free @ 0x10702e0 // > X509_REQ_INFO_free @ 0x10709e8 // > X509_REQ_free @ 0x1070a18 // > X509_CINF_free @ 0x1070b40 // > X509_free @ 0x1070b70 // > X509_CERT_AUX_free @ 0x1070e14 // > IPAddressFamily_free @ 0x1072374 // > IPAddressRange_free @ 0x10737a4 // > IPAddressOrRange_free @ 0x10737d4 // > IPAddressChoice_free @ 0x1073bcc // > AUTHORITY_KEYID_free @ 0x10760d4 // > ASRange_free @ 0x1077980 // > ASIdOrRange_free @ 0x10779b0 // > ASIdentifierChoice_free @ 0x1077d64 // > ASIdentifiers_free @ 0x1077d94 // > sub_1078E7C @ 0x1078f94 // > POLICYINFO_free @ 0x1079e50 // > CERTIFICATEPOLICIES_free @ 0x1079e80 // > POLICYQUALINFO_free @ 0x1079ed4 // > USERNOTICE_free @ 0x1079f04 // > NOTICEREF_free @ 0x107a7f4 // > DIST_POINT_free @ 0x107aa14 // > DIST_POINT_NAME_free @ 0x107afe0 // > CRL_DIST_POINTS_free @ 0x107b59c // > ISSUING_DIST_POINT_free @ 0x107b5cc // > OTHERNAME_free @ 0x107bb18 // > EDIPARTYNAME_free @ 0x107bb48 // > GENERAL_NAME_free @ 0x107bb60 // > GENERAL_NAMES_free @ 0x107bb90 // > ACCESS_DESCRIPTION_free @ 0x107bf2c // > AUTHORITY_INFO_ACCESS_free @ 0x107c1d8 // > GENERAL_SUBTREE_free @ 0x107cfcc // > NAME_CONSTRAINTS_free @ 0x107cfe4 // > PROXY_POLICY_free @ 0x107dd90 // > PROXY_CERT_INFO_EXTENSION_free @ 0x107ddc0 // > POLICY_CONSTRAINTS_free @ 0x107de28 // > PKEY_USAGE_PERIOD_free @ 0x107e08c // > POLICY_MAPPING_free @ 0x107e134 // > X509V3_EXT_print @ 0x107e5fc // > SXNETID_free @ 0x10803c8 // > SXNET_free @ 0x10803f8 // > TLS_FEATURE_free @ 0x1080bec // > ASN1_TYPE_get_int_octetstring @ 0x108ce38 // > ASN1_TYPE_get_int_octetstring @ 0x108cee0 // > NETSCAPE_CERT_SEQUENCE_free @ 0x108d9bc // > PBEPARAM_free @ 0x108d9ec // > X509_SIG_free @ 0x108fcd0 // > NETSCAPE_SPKAC_free @ 0x108fd38 // > NETSCAPE_SPKI_free @ 0x108fd68 // > X509_VAL_free @ 0x108fd98 // > CMS_add0_recipient_key @ 0x109bf1c // > CMS_add1_recipient_cert @ 0x109cd38 // > cms_RecipientInfo_kari_init @ 0x109d7a8 // > CMS_ContentInfo_free @ 0x109db04 // > CMS_add0_CertificateChoices @ 0x109e43c // > CMS_add0_RevocationInfoChoice @ 0x109e674 // > cms_set1_ias @ 0x109eab0 // > cms_set1_ias @ 0x109eb0c // > CMS_add0_recipient_password @ 0x109ef24 // > CMS_add1_signer @ 0x10a0dd8 // > BASIC_CONSTRAINTS_free @ 0x10eddac // > EXTENDED_KEY_USAGE_free @ 0x10ee394 // > PBE2PARAM_free @ 0x10f0964 // > PBKDF2PARAM_free @ 0x10f0994 // > SCRYPT_PARAMS_free @ 0x10f0e08 // > @ 0x94228 // // 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:43 +0000 // __int64 __fastcall ASN1_item_free(__int64 result, unsigned __int8 *a2) { int v3; // w1 __int64 v4; // x2 void (__fastcall *v5)(__int64, __int64 *, unsigned __int8 *, _QWORD); // x24 __int64 (__fastcall *v6)(__int64 *, unsigned __int8 *); // x2 int v7; // w0 __int64 v8; // x2 __int64 v9; // x20 __int64 v10; // x22 __int64 v11; // x0 __int64 *v12; // x21 _QWORD *field_ptr; // x0 int choice_selector; // w0 __int64 *v16; // x19 _QWORD *v17; // x0 __int64 v18; // x2 __int64 *v19; // x20 _QWORD *v20; // x0 __int64 v21; // [xsp+48h] [xbp+48h] BYREF v21 = result; v3 = *a2; v4 = *((_QWORD *)a2 + 4); if ( v3 ) { if ( !result ) return result; if ( v4 ) goto LABEL_4; switch ( v3 ) { case 1: case 6: v5 = nullptr; LABEL_35: result = asn1_do_lock(&v21, 0xFFFFFFFFLL, a2); if ( !(_DWORD)result ) { asn1_enc_free(&v21, a2); v18 = *((_QWORD *)a2 + 3); v9 = *((_QWORD *)a2 + 2) + 40 * v18; if ( v18 > 0 ) { LABEL_22: v10 = 1; do { v9 -= 40; v11 = asn1_do_adb(&v21, v9, 0); v12 = (__int64 *)v11; if ( v11 ) { field_ptr = (_QWORD *)asn1_get_field_ptr(&v21, v11); asn1_template_free(field_ptr, v12); } } while ( v10++ < *((_QWORD *)a2 + 3) ); if ( v5 ) LABEL_27: v5(3, &v21, a2, 0); } result = CRYPTO_free(v21, "crypto/asn1/tasn_fre.c", 119); } break; case 2: LABEL_30: choice_selector = asn1_get_choice_selector(&v21, a2); if ( (choice_selector & 0x80000000) == 0 && choice_selector < *((_QWORD *)a2 + 3) ) { v16 = (__int64 *)(*((_QWORD *)a2 + 2) + 40LL * choice_selector); v17 = (_QWORD *)asn1_get_field_ptr(&v21, v16); asn1_template_free(v17, v16); } LABEL_18: result = CRYPTO_free(v21, "crypto/asn1/tasn_fre.c", 79); break; case 5: return asn1_primitive_free(&v21, (__int64)a2, 0); default: return result; } } else { if ( v4 ) { LABEL_4: v5 = *(void (__fastcall **)(__int64, __int64 *, unsigned __int8 *, _QWORD))(v4 + 24); if ( v5 ) { switch ( v3 ) { case 0: goto LABEL_8; case 1: case 6: result = asn1_do_lock(&v21, 0xFFFFFFFFLL, a2); if ( (_DWORD)result ) return result; result = ((__int64 (__fastcall *)(__int64, __int64 *, unsigned __int8 *, _QWORD))v5)(2, &v21, a2, 0); if ( (_DWORD)result == 2 ) return result; asn1_enc_free(&v21, a2); v8 = *((_QWORD *)a2 + 3); v9 = *((_QWORD *)a2 + 2) + 40 * v8; if ( v8 > 0 ) goto LABEL_22; goto LABEL_27; case 2: result = ((__int64 (__fastcall *)(__int64, __int64 *, unsigned __int8 *, _QWORD))v5)(2, &v21, a2, 0); if ( (_DWORD)result == 2 ) return result; v7 = asn1_get_choice_selector(&v21, a2); if ( (v7 & 0x80000000) == 0 && v7 < *((_QWORD *)a2 + 3) ) { v19 = (__int64 *)(*((_QWORD *)a2 + 2) + 40LL * v7); v20 = (_QWORD *)asn1_get_field_ptr(&v21, v19); asn1_template_free(v20, v19); } v5(3, &v21, a2, 0); goto LABEL_18; case 4: goto LABEL_11; case 5: return asn1_primitive_free(&v21, (__int64)a2, 0); default: return result; } } switch ( v3 ) { case 0: goto LABEL_8; case 1: case 6: goto LABEL_35; case 2: goto LABEL_30; case 4: LABEL_11: v6 = *(__int64 (__fastcall **)(__int64 *, unsigned __int8 *))(v4 + 16); if ( v6 ) result = v6(&v21, a2); break; case 5: return asn1_primitive_free(&v21, (__int64)a2, 0); default: return result; } return result; } LABEL_8: if ( *((_QWORD *)a2 + 2) ) return asn1_template_free(&v21, *((__int64 **)a2 + 2)); else return asn1_primitive_free(&v21, (__int64)a2, 0); } return result; }