//
// X509_REQ_get1_email from 0xe04544 to 0xe045bc (120 bytes)
//
// 1 xrefs:
// > ??> @ 0x48cc0
//
// 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(__int64 a1)
{
unsigned int *extensions; // x21
unsigned int *d2i; // x19
unsigned int **subject_name; // x0
int *v5; // x20
extensions = (unsigned int *)X509_REQ_get_extensions();
d2i = (unsigned int *)X509V3_get_d2i(extensions, 85, nullptr, nullptr);
subject_name = (unsigned int **)X509_REQ_get_subject_name(a1);
v5 = sub_E04310(subject_name, d2i);
OPENSSL_sk_pop_free((int *)d2i, (void (__fastcall *)(__int64))GENERAL_NAME_free);
OPENSSL_sk_pop_free((int *)extensions, (void (__fastcall *)(__int64))X509_EXTENSION_free);
return v5;
}