//
// sub_7F5400 from 0x7f5400 to 0x7f5508 (264 bytes)
//
// 1 xrefs:
// > ??> @ 0xa30fb4
//
// 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_7F5400(int a1, int a2)
{
int v3; // r6
int v4; // r0
int v5; // r4
if ( *(_DWORD *)(a2 + 20) )
{
v3 = CRYPTO_memdup(*(_DWORD *)(a2 + 20), 32, "crypto/ec/ecx_meth.c", 102);
if ( v3 )
{
v4 = OBJ_nid2obj(1034);
if ( !X509_PUBKEY_set0_param(a1, v4, -1, 0, v3, 32) )
{
CRYPTO_free(v3, "crypto/ec/ecx_meth.c", 110);
ERR_put_error(16, 268, 65, "crypto/ec/ecx_meth.c", 111);
return 0;
}
return 1;
}
else
{
v5 = 0;
ERR_put_error(16, 268, 65, "crypto/ec/ecx_meth.c", 104);
}
return v5;
}
else
{
ERR_put_error(16, 268, 116, "crypto/ec/ecx_meth.c", 98);
return 0;
}
}