// // sub_BF67C0 from 0xbf67c0 to 0xbf68b4 (244 bytes) // // 1 xrefs: // > sub_BF6C60 @ 0xbf72d0 // // 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 // __int64 __fastcall sub_BF67C0(__int64 a1, __int64 a2, __int64 a3, __int64 a4, unsigned int a5, unsigned int a6, int a7) { __int64 v8; // x21 __int64 v10; // x24 __int64 result; // x0 void (__fastcall *v12)(_DWORD *, __int64, _QWORD); // x20 __int64 v13; // x22 __int64 v14; // x19 __int64 i; // x0 int v16; // w1 __int16 v17; // w4 int v18; // w1 int v19; // w2 int v20; // w1 _DWORD v21[64]; // [xsp+50h] [xbp+50h] BYREF v8 = a3 + 8LL * a5; v10 = *(_QWORD *)(a2 + 88); result = *(_QWORD *)(a1 + 552) + 8LL * *(int *)(a2 + 4); v12 = *(void (__fastcall **)(_DWORD *, __int64, _QWORD))(result + 88); if ( a7 ) { v13 = a4; v14 = a4 + (((unsigned int)(a7 - 1) + 1LL) << 7); do { v12(v21, v8, a6); for ( i = 0; i != 64; ++i ) { while ( 1 ) { v18 = v21[i]; v17 = 0; v19 = *(_DWORD *)(v10 + 4 * i); if ( (v18 & 0x80000000) == 0 ) { v16 = v18 + (v19 >> 1); if ( v19 <= v16 ) v17 = v16 / v19; goto LABEL_6; } v20 = (v19 >> 1) - v18; if ( v19 <= v20 ) break; LABEL_6: *(_WORD *)(v13 + 2 * i++) = v17; if ( i == 64 ) goto LABEL_10; } *(_WORD *)(v13 + 2 * i) = -(__int16)(v20 / v19); } LABEL_10: v13 += 128; result = *(unsigned int *)(a2 + 36); a6 += result; } while ( v13 != v14 ); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source