// // sub_180042920 from 0x180042920 to 0x1800429e3 (195 bytes) // // 6 xrefs: // > sub_180044980 @ 0x180044ab4 // > sub_180045B60 @ 0x180045e18 // > sub_180045B60 @ 0x180045f6e // > sub_180045B60 @ 0x180045fa9 // > sub_180046810 @ 0x180046a36 // > @ 0x1801f8058 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 10:53:11 +0000 // __int64 __fastcall sub_180042920(__int64 a1, _DWORD *a2, unsigned int a3) { unsigned int v3; // ebx unsigned int v7; // eax unsigned int v8; // [rsp+40h] [rbp+18h] BYREF v3 = a3; if ( a3 ) { while ( a2[6] ) { if ( !(unsigned int)sub_180041D20(a1, (__int64)a2, &v8, 8u) ) return 0; if ( !--v3 ) return 1; } if ( v3 < 4 ) goto LABEL_12; do { v7 = a2[5]; if ( v7 >= a2[3] ) { if ( !(unsigned int)sub_180042A00(a1, a2) ) return 0; } else { a2[5] = v7 + 1; v3 -= 4; } } while ( v3 >= 4 ); if ( v3 ) { LABEL_12: while ( (unsigned int)sub_180041D20(a1, (__int64)a2, &v8, 8u) ) { if ( !--v3 ) return 1; } return 0; } } return 1; }