//
// EC_KEY_generate_key from 0x7e8d68 to 0x7e8df8 (144 bytes)
//
// 2 xrefs:
// > sub_88B048 @ 0x88b0ac
// > ??> @ 0x616bc
//
// 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 EC_KEY_generate_key(_DWORD *a1)
{
int (*v1)(void); // r3
if ( a1 && a1[3] )
{
v1 = *(int (**)(void))(*a1 + 32);
if ( v1 )
{
return v1();
}
else
{
ERR_put_error(16, 179, 152, "crypto/ec/ec_key.c", 188);
return 0;
}
}
else
{
ERR_put_error(16, 179, 67, "crypto/ec/ec_key.c", 183);
return 0;
}
}