// // sub_1800D6300 from 0x1800d6300 to 0x1800d6480 (384 bytes) // // 4 xrefs: // > sub_1800D44D0 @ 0x1800d44e5 // > sub_1800D7860 @ 0x1800d7cc8 // > sub_1800D8740 @ 0x1800d8a96 // > @ 0x1801ba8c0 // // 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 // void __fastcall sub_1800D6300(__int64 a1) { HWND DesktopWindow; // rax HWND v3; // rcx HMONITOR v4; // rax LONG left; // r8d LONG top; // r9d struct tagRECT v7; // [rsp+40h] [rbp-58h] BYREF struct tagRECT Rect; // [rsp+50h] [rbp-48h] BYREF struct tagMONITORINFO mi; // [rsp+60h] [rbp-38h] BYREF if ( a1 ) { DesktopWindow = GetDesktopWindow(); GetWindowRect(DesktopWindow, &Rect); GetWindowRect(*(HWND *)(a1 + 880), &v7); v3 = *(HWND *)(a1 + 880); mi.cbSize = 40; memset(&mi.rcMonitor, 0, 36); v4 = MonitorFromWindow(v3, 2u); if ( GetMonitorInfoW(v4, &mi) ) { left = (int)(float)((float)((float)((float)((float)mi.rcMonitor.right - (float)mi.rcMonitor.left) - (float)(v7.right - v7.left)) * 0.5) + (float)mi.rcMonitor.left); top = (int)(float)((float)((float)((float)((float)mi.rcMonitor.bottom - (float)mi.rcMonitor.top) - (float)(v7.bottom - v7.top)) * 0.5) + (float)mi.rcMonitor.top); } else { left = Rect.left; top = Rect.top; if ( Rect.left + (v7.left + Rect.right - Rect.left - v7.right) / 2 > 0 ) left = Rect.left + (v7.left + Rect.right - Rect.left - v7.right) / 2; if ( Rect.top + (v7.top + Rect.bottom - Rect.top - v7.bottom) / 2 > 0 ) top = Rect.top + (v7.top + Rect.bottom - Rect.top - v7.bottom) / 2; } SetWindowPos(*(HWND *)(a1 + 880), nullptr, left, top, 0, 0, 0x15u); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source