// // bn_cmp_words from 0x7d4194 to 0x7d421c (136 bytes) // // 5 xrefs: // > bn_cmp_part_words @ 0x7d424c // > bn_mul_high @ 0x7d6600 // > bn_mul_high @ 0x7d6618 // > bn_sqr_recursive @ 0x7d8474 // > @ 0x5faec // // 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 bn_cmp_words(int a1, int a2, int a3) { unsigned int v3; // r12 unsigned int v4; // lr int v5; // r3 int v7; // r2 int v8; // r3 unsigned int v9; // lr unsigned int v10; // r12 int v11; // r0 int v12; // r1 unsigned int v13; // t1 unsigned int v14; // t1 v3 = *(_DWORD *)(a2 + 4 * (a3 + 0x3FFFFFFF)); v4 = *(_DWORD *)(a1 + 4 * (a3 + 0x3FFFFFFF)); v5 = 4 * (a3 + 0x3FFFFFFF); if ( v4 != v3 ) { if ( v4 > v3 ) return 1; else return -1; } v7 = a3 - 2; if ( v7 < 0 ) return 0; v8 = v5 - 4; v9 = *(_DWORD *)(a1 + v8); v10 = *(_DWORD *)(a2 + v8); if ( v9 == v10 ) { v11 = a1 + v8; v12 = a2 + v8; while ( v7-- != 0 ) { v13 = *(_DWORD *)(v11 - 4); v11 -= 4; v9 = v13; v14 = *(_DWORD *)(v12 - 4); v12 -= 4; v10 = v14; if ( v9 != v14 ) goto LABEL_12; } return 0; } LABEL_12: if ( v9 > v10 ) return 1; else return -1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source