//
// sub_8800DC from 0x8800dc to 0x880170 (148 bytes)
//
// 2 xrefs:
// > ??> @ 0xa3a1b8
// > ??> @ 0xa3a224
//
// 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_8800DC(int **a1, _DWORD *a2)
{
_DWORD *v4; // r2
if ( a1[2] )
{
v4 = DH_new();
if ( v4 && (EVP_PKEY_assign(a2, **a1, (int)v4), EVP_PKEY_copy_parameters(a2, a1[2])) )
return DH_generate_key(a2[5]);
else
return 0;
}
else
{
ERR_put_error(5, 113, 107, (int)"crypto/dh/dh_pmeth.c", 364);
return 0;
}
}