// // ec_GF2m_simple_group_copy from 0x889cb8 to 0x889d8c (212 bytes) // // 2 xrefs: // > @ 0x6a9bc // > @ 0xab4f80 // // 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_group_copy(int *a1, int *a2) { int v4; // r3 int v5; // r1 int v6; // r3 int v7; // r1 if ( !BN_copy(a1[9], a2[9]) || !BN_copy(a1[16], a2[16]) || !BN_copy(a1[17], a2[17]) ) return 0; v4 = a2[10]; a1[10] = v4; a1[11] = a2[11]; a1[12] = a2[12]; v5 = v4 + 31; a1[13] = a2[13]; if ( v4 + 31 < 0 ) v5 = v4 + 62; a1[14] = a2[14]; a1[15] = a2[15]; if ( !bn_wexpand(a1[16], v5 >> 5) ) return 0; v6 = a1[10]; v7 = v6 + 31; if ( v6 + 31 < 0 ) v7 = v6 + 62; if ( !bn_wexpand(a1[17], v7 >> 5) ) return 0; bn_set_all_zero((_DWORD *)a1[16]); bn_set_all_zero((_DWORD *)a1[17]); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source