//
// sub_E2BF20 from 0xe2bf20 to 0xe2bfb0 (144 bytes)
//
// 1 xrefs:
// > ??> @ 0x1132e40
//
// 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_E2BF20(__int64 a1, __int64 a2)
{
__int64 v4; // x2
if ( *(_QWORD *)(a1 + 16) )
{
v4 = DSA_new();
if ( v4
&& (EVP_PKEY_assign(a2, 0x74u, v4), (unsigned int)EVP_PKEY_copy_parameters((_DWORD *)a2, *(_QWORD *)(a1 + 16))) )
{
return DSA_generate_key(*(_QWORD *)(a2 + 32));
}
else
{
return 0;
}
}
else
{
ERR_put_error(10, 121, 107, (__int64)"crypto/dsa/dsa_pmeth.c", 229);
return 0;
}
}