// // ec_GF2m_simple_make_affine from 0x88a108 to 0x88a210 (264 bytes) // // 2 xrefs: // > @ 0x6a9fc // > @ 0xab4fe0 // // 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_GF2m_simple_make_affine(int a1, int a2, int ***a3) { int v4; // r4 void **v8; // r8 int **v9; // r9 int **v10; // r4 void **v11; // r0 if ( *(_DWORD *)(a2 + 16) ) return 1; v4 = EC_POINT_is_at_infinity(a1, (_DWORD *)a2); if ( v4 ) return 1; if ( !a3 ) { v11 = (void **)BN_CTX_new(); v8 = v11; if ( v11 ) { a3 = (int ***)v11; goto LABEL_8; } return v4; } v8 = nullptr; LABEL_8: BN_CTX_start((int)a3); v9 = BN_CTX_get(a3); v10 = BN_CTX_get(a3); if ( v10 ) { if ( EC_POINT_get_affine_coordinates_GF2m(a1, (_DWORD *)a2) && BN_copy(*(_DWORD *)(a2 + 4), (int)v9) && BN_copy(*(_DWORD *)(a2 + 8), (int)v10) && BN_set_word(*(int ***)(a2 + 12), 1) ) { v10 = (int **)(&dword_0 + 1); *(_DWORD *)(a2 + 16) = 1; } else { v10 = nullptr; } } BN_CTX_end(a3); BN_CTX_free(v8); return (int)v10; }
GD Web Decomp Icon

GD Web Decomp

Raw Source