//
// X509_get1_email from 0x85de88 to 0x85ded0 (72 bytes)
//
// 1 xrefs:
// > ??> @ 0x697ec
//
// 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(int a1)
{
_DWORD *ext_d2i; // r4
int *subject_name; // r0
int *v4; // r5
ext_d2i = (_DWORD *)X509_get_ext_d2i(a1);
subject_name = (int *)X509_get_subject_name(a1);
v4 = sub_85DCC8(subject_name, ext_d2i);
OPENSSL_sk_pop_free((int)ext_d2i, (void (__fastcall *)(int))GENERAL_NAME_free);
return v4;
}