//
// sub_881B14 from 0x881b14 to 0x881bd0 (188 bytes)
//
// 1 xrefs:
// > ??> @ 0xa3a288
//
// 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_881B14(int a1, _DWORD *a2)
{
int v2; // r4
int v5; // r6
_DWORD *v6; // r0
int *v8; // r0
int v9; // r7
int v10; // r5
v2 = *(_DWORD *)(a1 + 28);
v5 = *(_DWORD *)(a1 + 20);
if ( v2 )
{
v6 = (_DWORD *)BN_GENCB_new();
v2 = (int)v6;
if ( !v6 )
return 0;
evp_pkey_set_cb_translate(v6, a1);
}
v8 = DSA_new();
v9 = (int)v8;
if ( v8 )
{
v10 = dsa_builtin_paramgen(
v8,
*(_DWORD *)v5,
*(_DWORD *)(v5 + 4),
*(_DWORD *)(v5 + 8),
nullptr,
0,
nullptr,
nullptr,
nullptr,
v2);
BN_GENCB_free(v2);
if ( v10 )
{
EVP_PKEY_assign(a2, 116, v9);
return v10;
}
else
{
DSA_free(v9);
return 0;
}
}
else
{
BN_GENCB_free(v2);
return 0;
}
}