// // sub_7E51A0 from 0x7e51a0 to 0x7e5340 (416 bytes) // // 1 xrefs: // > @ 0xa30d50 // // 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_7E51A0(int a1, int a2, int a3) { int v3; // r4 int v6; // r8 int conv_form; // r0 int v8; // r4 int v9; // r5 int v11; // r0 int v12; // [sp+Ch] [bp-4h] BYREF v3 = *(_DWORD *)(a2 + 20); v12 = 0; if ( v3 ) { v6 = EC_KEY_get0_group(v3); if ( v6 ) { if ( EC_KEY_get0_public_key(v3) ) { conv_form = EC_KEY_get_conv_form(v3); v8 = EC_KEY_key2buf(v3, conv_form, &v12, 0); if ( !v8 ) goto LABEL_5; } else { v8 = 0; } if ( BIO_indent(a1, a3, 128) ) { v11 = EC_GROUP_order_bits(v6); if ( BIO_printf(a1, "%s: (%d bit)\n", "Public-Key", v11) > 0 && (!v8 || BIO_printf(a1, "%*spub:\n", a3, &byte_9B1912) > 0 && ASN1_buf_print(a1, v12, v8, a3 + 4)) ) { if ( ECPKParameters_print(a1, v6, a3) ) { v9 = 1; goto LABEL_6; } } } LABEL_5: ERR_put_error(16, 221, 16, "crypto/ec/ec_ameth.c", 392); v9 = 0; LABEL_6: CRYPTO_clear_free(0, 0, "crypto/ec/ec_ameth.c", 393); CRYPTO_free(v12, "crypto/ec/ec_ameth.c", 394); return v9; } } ERR_put_error(16, 221, 67, "crypto/ec/ec_ameth.c", 344); return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source