//
// sub_E2BDA0 from 0xe2bda0 to 0xe2bea8 (264 bytes)
//
// 1 xrefs:
// > ??> @ 0x1132e30
//
// 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_E2BDA0(__int64 a1, __int64 a2)
{
__int64 v2; // x19
int *v5; // x21
__int64 result; // x0
__int64 *v7; // x0
__int64 v8; // x22
unsigned int v9; // w20
v2 = *(_QWORD *)(a1 + 56);
v5 = *(int **)(a1 + 40);
if ( v2 )
{
result = BN_GENCB_new();
v2 = result;
if ( !result )
return result;
evp_pkey_set_cb_translate(result, a1);
}
v7 = (__int64 *)DSA_new();
v8 = (__int64)v7;
if ( v7 )
{
v9 = dsa_builtin_paramgen(v7, *v5, v5[1], *((_QWORD *)v5 + 1), nullptr, 0, nullptr, nullptr, nullptr, v2);
BN_GENCB_free(v2);
if ( v9 )
{
EVP_PKEY_assign(a2, 0x74u, v8);
return v9;
}
else
{
DSA_free(v8);
return 0;
}
}
else
{
BN_GENCB_free(v2);
return 0;
}
}