// // bn_cmp_part_words from 0x7d421c to 0x7d4288 (108 bytes) // // 5 xrefs: // > bn_mul_recursive @ 0x7d61ac // > bn_mul_recursive @ 0x7d61c4 // > bn_mul_part_recursive @ 0x7d6a9c // > bn_mul_part_recursive @ 0x7d6ab4 // > @ 0x5fafc // // 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_part_words(int a1, int a2, int a3, int a4) { int v4; // r12 int v5; // t1 int v7; // r12 int v8; // r12 int v9; // t1 int v10; // t1 if ( a4 < 0 ) { v7 = a2 + 4 * (a3 - a4); v9 = *(_DWORD *)(v7 - 4); v8 = v7 - 4; if ( v9 ) return -1; while ( ++a4 ) { v10 = *(_DWORD *)(v8 - 4); v8 -= 4; if ( v10 ) return -1; } return bn_cmp_words(a1, a2, a3); } if ( !a4 ) return bn_cmp_words(a1, a2, a3); v4 = a1 + 4 * (a3 + a4); while ( 1 ) { v5 = *(_DWORD *)(v4 - 4); v4 -= 4; if ( v5 ) break; if ( !--a4 ) return bn_cmp_words(a1, a2, a3); } return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source