//
// sub_88AFA8 from 0x88afa8 to 0x88b040 (152 bytes)
//
// 1 xrefs:
// > ??> @ 0xa3a2f4
//
// 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_88AFA8(int a1, _DWORD *a2)
{
int *v2; // r5
_DWORD *v4; // r0
int v5; // r6
int v7; // r4
v2 = *(int **)(a1 + 20);
if ( *v2 )
{
v4 = (_DWORD *)EC_KEY_new();
v5 = (int)v4;
if ( v4 )
{
v7 = EC_KEY_set_group(v4, *v2);
if ( v7 )
{
EVP_PKEY_assign(a2, 408, v5);
return v7;
}
else
{
EC_KEY_free(v5);
return 0;
}
}
else
{
return 0;
}
}
else
{
ERR_put_error(16, 219, 139, (int)"crypto/ec/ec_pmeth.c", 391);
return 0;
}
}