//
// sub_808724 from 0x808724 to 0x8087e0 (188 bytes)
//
// 1 xrefs:
// > ??> @ 0xa32340
//
// 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_808724(_DWORD *a1, int a2, int a3, int a4)
{
_DWORD *v4; // lr
_BOOL4 v6; // r1
v4 = (_DWORD *)a1[5];
switch ( a2 )
{
case 6:
v6 = a4 == 0;
if ( a3 <= 0 )
v6 = 0;
return a3 >= -1 && !v6 && ASN1_OCTET_STRING_set(v4 + 1, a4, a3) != 0;
case 7:
return HMAC_Init_ex(v4[5], *(_DWORD *)(*(_DWORD *)(a1[2] + 20) + 8), **(_DWORD **)(a1[2] + 20), *v4, a1[1]) != 0;
case 1:
*v4 = a4;
return 1;
default:
return -2;
}
}