//
// X509_get1_email from 0xe044ec to 0xe04544 (88 bytes)
//
// 1 xrefs:
// > ??> @ 0x8b338
//
// 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 X509_get1_email(__int64 a1)
{
unsigned int *ext_d2i; // x19
unsigned int **subject_name; // x0
int *v4; // x20
ext_d2i = (unsigned int *)X509_get_ext_d2i(a1);
subject_name = (unsigned int **)X509_get_subject_name(a1);
v4 = sub_E04310(subject_name, ext_d2i);
OPENSSL_sk_pop_free((int *)ext_d2i, (void (__fastcall *)(__int64))GENERAL_NAME_free);
return v4;
}