//
// X509_NAME_hash_old from 0xde687c to 0xde6948 (204 bytes)
//
// 3 xrefs:
// > X509_issuer_name_hash_old @ 0xde694c
// > X509_subject_name_hash_old @ 0xde6954
// > ??> @ 0x89aa8
//
// 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
//
__int64 __fastcall X509_NAME_hash_old(__int64 a1)
{
__int64 result; // x0
__int64 *v3; // x19
void *v4; // x0
unsigned __int64 v5; // x20
_BYTE v6[16]; // [xsp+20h] [xbp+20h] BYREF
result = EVP_MD_CTX_new();
v3 = (__int64 *)result;
if ( result )
{
i2d_X509_NAME(a1, 0);
EVP_MD_CTX_set_flags((__int64)v3, 8);
v4 = EVP_md5();
if ( (unsigned int)EVP_DigestInit_ex(v3, (__int64)v4, 0)
&& (unsigned int)EVP_DigestUpdate((__int64)v3)
&& (unsigned int)EVP_DigestFinal_ex((int **)v3, (__int64)v6, nullptr) )
{
v5 = ((unsigned __int64)v6[2] << 16) | ((unsigned __int64)v6[1] << 8) | v6[0] | ((unsigned __int64)v6[3] << 24);
}
else
{
v5 = 0;
}
EVP_MD_CTX_free(v3);
return v5;
}
return result;
}