//
// sub_881A88 from 0x881a88 to 0x881b14 (140 bytes)
//
// 1 xrefs:
// > ??> @ 0xa3a298
//
// 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_881A88(int a1, int a2, _DWORD *a3, int a4, int a5)
{
int v5; // r12
int v6; // r0
int v10; // r5
int result; // r0
int v12; // [sp+Ch] [bp-4h] BYREF
v5 = *(_DWORD *)(a1 + 8);
v6 = *(_DWORD *)(*(_DWORD *)(a1 + 20) + 20);
v10 = *(_DWORD *)(v5 + 20);
if ( v6 )
{
if ( EVP_MD_size(v6) != a5 )
return 0;
}
else if ( a5 != 20 )
{
return 0;
}
result = DSA_sign(0, a4, a5, a2, &v12, v10);
if ( result > 0 )
{
*a3 = v12;
return 1;
}
return result;
}