//
// X509_REQ_get1_email from 0x85ded4 to 0x85df34 (96 bytes)
//
// 1 xrefs:
// > ??> @ 0x697fc
//
// 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_REQ_get1_email(int a1)
{
_DWORD *extensions; // r6
_DWORD *d2i; // r4
int *subject_name; // r0
int *v5; // r5
extensions = (_DWORD *)X509_REQ_get_extensions();
d2i = (_DWORD *)X509V3_get_d2i(extensions, (_BYTE *)&dword_54 + 1, nullptr, nullptr);
subject_name = (int *)X509_REQ_get_subject_name(a1);
v5 = sub_85DCC8(subject_name, d2i);
OPENSSL_sk_pop_free((int)d2i, (void (__fastcall *)(int))GENERAL_NAME_free);
OPENSSL_sk_pop_free((int)extensions, (void (__fastcall *)(int))X509_EXTENSION_free);
return v5;
}