// // sub_1008DA4B0 from 0x1008da4b0 to 0x1008da60b (347 bytes) // // 1 xrefs: // > Dropdown::openList @ 0x1008da1aa // // 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 12:37:43 +0000 // void __fastcall sub_1008DA4B0(__int64 *a1, unsigned __int64 a2) { __int64 v2; // rbx __int64 v3; // r13 char *v4; // r12 __int64 v5; // rax __int64 v6; // rcx char *v7; // [rsp+0h] [rbp-30h] v2 = *a1; if ( 0x6DB6DB6DB6DB6DB7LL * ((a1[2] - *a1) >> 3) < a2 ) { if ( a2 >= 0x492492492492493LL ) sub_1008DC450(a1); v3 = a1[1]; v4 = (char *)operator new(56 * a2); v7 = &v4[v3 - v2]; if ( v3 != v2 ) { v5 = 0; do { *(_DWORD *)&v4[v5] = *(_DWORD *)(v2 + v5); *(_QWORD *)&v4[v5 + 24] = *(_QWORD *)(v2 + v5 + 24); *(_OWORD *)&v4[v5 + 8] = *(_OWORD *)(v2 + v5 + 8); *(_OWORD *)(v2 + v5 + 8) = 0; *(_QWORD *)(v2 + v5 + 24) = 0; *(_QWORD *)&v4[v5 + 48] = *(_QWORD *)(v2 + v5 + 48); *(_OWORD *)&v4[v5 + 32] = *(_OWORD *)(v2 + v5 + 32); *(_OWORD *)(v2 + v5 + 32) = 0; *(_QWORD *)(v2 + v5 + 48) = 0; v6 = v2 + v5 + 56; v5 += 56; } while ( v6 != v3 ); while ( 1 ) { if ( (*(_BYTE *)(v2 + 32) & 1) != 0 ) { operator delete(*(void **)(v2 + 48)); if ( (*(_BYTE *)(v2 + 8) & 1) != 0 ) LABEL_12: operator delete(*(void **)(v2 + 24)); } else if ( (*(_BYTE *)(v2 + 8) & 1) != 0 ) { goto LABEL_12; } v2 += 56; if ( v2 == v3 ) { v2 = *a1; break; } } } *a1 = (__int64)v4; a1[1] = (__int64)v7; a1[2] = (__int64)&v4[56 * a2]; if ( v2 ) operator delete((void *)v2); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source