//
// sub_E2BCFC from 0xe2bcfc to 0xe2bda0 (164 bytes)
//
// 1 xrefs:
// > ??> @ 0x1132e50
//
// 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 sub_E2BCFC(__int64 a1, __int64 a2, _QWORD *a3, __int64 a4, __int64 a5)
{
__int64 v5; // x5
__int64 v6; // x0
__int64 v9; // x19
int v10; // w0
__int64 result; // x0
__int64 v12; // [xsp+30h] [xbp+30h]
__int64 v13; // [xsp+38h] [xbp+38h]
unsigned int v14; // [xsp+4Ch] [xbp+4Ch] BYREF
v5 = *(_QWORD *)(a1 + 16);
v6 = *(_QWORD *)(*(_QWORD *)(a1 + 40) + 24LL);
v9 = *(_QWORD *)(v5 + 32);
if ( v6 )
{
v12 = a5;
v13 = a4;
v10 = EVP_MD_size(v6);
LODWORD(a5) = v12;
a4 = v13;
if ( v12 != v10 )
return 0;
}
else if ( a5 != 20 )
{
return 0;
}
result = DSA_sign(0, a4, a5, a2, &v14, v9);
if ( (int)result > 0 )
{
*a3 = v14;
return 1;
}
return result;
}