// // ec_GFp_simple_group_get_curve from 0xd99210 to 0xd99360 (336 bytes) // // 4 xrefs: // > @ 0x83af0 // > @ 0x1222128 // > @ 0x12222a8 // > @ 0x1222428 // // 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 // bool __fastcall ec_GFp_simple_group_get_curve( __int64 *a1, unsigned __int64 *a2, unsigned __int64 *a3, unsigned __int64 *a4, __int64 a5) { __int64 v9; // x0 __int64 v10; // x24 _BOOL4 v11; // w20 __int64 v13; // x0 if ( a2 && !BN_copy(a2, a1[8]) ) return 0; if ( !a3 && !a4 ) { LABEL_11: v10 = 0; v11 = 1; goto LABEL_12; } v9 = *(_QWORD *)(*a1 + 296); if ( !v9 ) { if ( a3 && !BN_copy(a3, a1[12]) ) { v10 = 0; v11 = 0; goto LABEL_12; } if ( a4 ) { v10 = 0; v11 = BN_copy(a4, a1[13]) != nullptr; goto LABEL_12; } goto LABEL_11; } v10 = 0; if ( a5 ) { if ( !a3 ) goto LABEL_9; LABEL_8: v11 = 0; if ( (*(unsigned int (__fastcall **)(__int64 *, unsigned __int64 *, __int64, __int64))(*a1 + 296))( a1, a3, a1[12], a5) ) { goto LABEL_9; } LABEL_12: BN_CTX_free(v10); return v11; } v13 = BN_CTX_new(v9, a2, a3); a5 = v13; if ( v13 ) { v10 = v13; if ( !a3 ) { LABEL_9: v11 = 1; if ( a4 ) v11 = (*(__int64 (__fastcall **)(__int64 *, unsigned __int64 *, __int64, __int64))(*a1 + 296))( a1, a4, a1[13], a5) != 0; goto LABEL_12; } goto LABEL_8; } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source