// // sub_1800D6860 from 0x1800d6860 to 0x1800d6954 (244 bytes) // // 1 xrefs: // > sub_1800D2A40 @ 0x1800d2ae0 // // 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_1800D6860(_QWORD *a1, __int64 a2) { __int64 result; // rax int v4; // eax __int64 v5; // rcx __int64 v6; // rcx __int64 v7; // r9 _QWORD *v8; // rcx __int64 v9; // rcx __int64 v10; // rcx __int64 v11; // rcx result = *(unsigned int *)(a2 + 24); if ( (result & 0x400) != 0 ) { v4 = result & 0xFFFFFBFF; *(_DWORD *)(a2 + 24) = v4; if ( (v4 & 0x20) != 0 ) { v5 = *(_QWORD *)(a2 + 48); result = *(_QWORD *)(a2 + 72); if ( v5 ) { *(_QWORD *)(v5 + 72) = result; v6 = *(_QWORD *)(a2 + 72); if ( v6 ) { result = *(_QWORD *)(a2 + 48); *(_QWORD *)(v6 + 48) = result; } } else { a1[3] = result; if ( result ) *(_QWORD *)(result + 48) = 0; } } else { result = a1[3]; v7 = *(_QWORD *)(result + 72); a1[3] = v7; if ( v7 ) *(_QWORD *)(v7 + 48) = 0; *(_DWORD *)(result + 24) &= ~0x20u; *(_QWORD *)(result + 72) = 0; *(_OWORD *)result = *(_OWORD *)a2; *(_OWORD *)(result + 16) = *(_OWORD *)(a2 + 16); *(_OWORD *)(result + 32) = *(_OWORD *)(a2 + 32); *(_OWORD *)(result + 48) = *(_OWORD *)(a2 + 48); *(_OWORD *)(result + 64) = *(_OWORD *)(a2 + 64); *(_DWORD *)(result + 24) |= 0x400u; v8 = *(_QWORD **)(result + 48); if ( v8 ) { if ( v8[9] == a2 ) { v8[9] = result; } else if ( v8[7] == a2 ) { v8[7] = result; } else { v8[8] = result; } } else { *a1 = result; } v9 = *(_QWORD *)(result + 72); if ( v9 ) *(_QWORD *)(v9 + 48) = result; v10 = *(_QWORD *)(result + 56); if ( v10 ) *(_QWORD *)(v10 + 48) = result; v11 = *(_QWORD *)(result + 64); if ( v11 ) *(_QWORD *)(v11 + 48) = result; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source