// // ec_GFp_simple_set_Jprojective_coordinates_GFp from 0x7f33dc to 0x7f3578 (412 bytes) // // 4 xrefs: // > @ 0x61eac // > @ 0xab26e0 // > @ 0xab27a4 // > @ 0xab2868 // // 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_GFp_simple_set_Jprojective_coordinates_GFp(_DWORD *a1, _DWORD *a2, int a3, int a4, int a5, int a6) { int v6; // r4 int v10; // r7 int v11; // r4 int (__fastcall *v13)(_DWORD *, _DWORD, _DWORD, int); // r12 int (__fastcall *v14)(_DWORD *, _DWORD, _DWORD, int); // r12 _BOOL4 is_one; // r0 int (__fastcall *v16)(_DWORD *, _DWORD, _DWORD, int); // r12 _BOOL4 v17; // r8 int (__fastcall *v18)(_DWORD *, _DWORD, int); // r3 int v19; // r0 int v20; // [sp+0h] [bp-8h] int v21; // [sp+4h] [bp-4h] v6 = a6; if ( a6 ) { v10 = 0; LABEL_4: if ( (!a3 || BN_nnmod(a2[1], a3, a1[9], v6, v20) && ((v13 = *(int (__fastcall **)(_DWORD *, _DWORD, _DWORD, int))(*a1 + 148)) == nullptr || v13(a1, a2[1], a2[1], v6))) && (!a4 || BN_nnmod(a2[2], a4, a1[9], v6, v20) && ((v14 = *(int (__fastcall **)(_DWORD *, _DWORD, _DWORD, int))(*a1 + 148)) == nullptr || v14(a1, a2[2], a2[2], v6))) ) { if ( !a5 ) { LABEL_21: v11 = 1; goto LABEL_7; } if ( BN_nnmod(a2[3], a5, a1[9], v6, v20) ) { is_one = BN_is_one(a2[3]); v16 = *(int (__fastcall **)(_DWORD *, _DWORD, _DWORD, int))(*a1 + 148); v17 = is_one; if ( !v16 ) { LABEL_20: a2[4] = v17; goto LABEL_21; } if ( is_one && (v18 = *(int (__fastcall **)(_DWORD *, _DWORD, int))(*a1 + 156)) != nullptr ) { if ( v18(a1, a2[3], v6) ) goto LABEL_20; } else if ( v16(a1, a2[3], a2[3], v6) ) { goto LABEL_20; } } } v11 = 0; LABEL_7: BN_CTX_free(v10); return v11; } v21 = a3; v19 = BN_CTX_new(a1); v6 = v19; if ( v19 ) { v10 = v19; a3 = v21; goto LABEL_4; } return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source