// // sub_1800D7C90 from 0x1800d7c90 to 0x1800d7e10 (384 bytes) // // 4 xrefs: // > sub_1800D91F0 @ 0x1800d9658 // > sub_1800DA0D0 @ 0x1800da426 // > sub_1800DC200 @ 0x1800dc215 // > @ 0x1801c4980 // // 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 11:22:33 +0000 // void __fastcall sub_1800D7C90(__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