// // sub_1005DE8E8 from 0x1005de8e8 to 0x1005de958 (112 bytes) // // 2 xrefs: // > sub_10051FB7C @ 0x10051ff80 // > sub_100541CD0 @ 0x100541ea4 // // 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_1005DE8E8(__int64 a1) { int v1; // w10 int v2; // w9 __int64 *v3; // x11 __int64 v4; // x8 bool v5; // vf int v6; // w10 __int64 v7; // x11 if ( !a1 ) return 0; v1 = *(_DWORD *)a1; v2 = *(_DWORD *)a1 - 1; if ( *(int *)a1 < 1 ) return 0; v3 = *(__int64 **)(a1 + 8); v4 = *v3; v5 = __OFSUB__(v1, 2); v6 = v1 - 2; if ( v6 < 0 == v5 ) { *v3 = v3[1]; if ( v6 ) { v7 = 0; do { *(_QWORD *)(*(_QWORD *)(a1 + 8) + 8 * v7 + 8) = *(_QWORD *)(*(_QWORD *)(a1 + 8) + 8 * v7 + 16); ++v7; } while ( v6 != (_DWORD)v7 ); } } *(_DWORD *)a1 = v2; return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source