// // sub_10042DDAC from 0x10042ddac to 0x10042de10 (100 bytes) // // 10 xrefs: // > sub_1004ED490 @ 0x1004ed7e0 // > sub_1004ED8FC @ 0x1004edb20 // > sub_1004ED8FC @ 0x1004edb68 // > sub_1004ED8FC @ 0x1004edbe0 // > sub_1004EE094 @ 0x1004ee100 // > sub_1004EE454 @ 0x1004ee4ac // > sub_1004EE548 @ 0x1004ee5f0 // > sub_1004EEA24 @ 0x1004eeaa0 // > sub_1004EEBDC @ 0x1004eeda4 // > sub_1004EF0B0 @ 0x1004ef278 // // 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_10042DDAC(__int64 a1, _QWORD *a2) { __int64 v2; // x8 int v3; // w9 __int64 v4; // x11 __int64 v5; // x10 __int64 v6; // x11 v2 = *(unsigned int *)(a1 + 32); if ( (v2 & 0x80000000) != 0 ) return 0; v3 = *(_DWORD *)(a1 + 28); if ( v3 <= (int)v2 ) return 0; if ( a2 ) { v4 = *(unsigned int *)(*(_QWORD *)a1 + 4LL); if ( (int)v4 >= 1 ) { v5 = 0; v6 = 8 * v4; do { *(_QWORD *)(*(_QWORD *)(a1 + 16) + v5) = *(_QWORD *)(*(_QWORD *)(a1 + 8) + v5) + 4 * v2; v5 += 8; } while ( v6 != v5 ); } *a2 = *(_QWORD *)(a1 + 16); } return (unsigned int)(v3 - v2); }
GD Web Decomp Icon

GD Web Decomp

Raw Source