//
// sub_8040E8 from 0x8040e8 to 0x80411c (52 bytes)
//
// 1 xrefs:
// > ??> @ 0xa32164
//
// 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 sub_8040E8(int a1, int a2)
{
int v3; // r4
int result; // r0
v3 = EVP_MD_CTX_md_data(a1);
result = MD5_Final(a2, v3);
if ( result )
return SHA1_Final(a2 + 16, v3 + 92);
return result;
}