{"type": "func", "start": 6443334800, "end": 6443335184, "name": "sub_1800D7C90", "pseudocode": "// \n// sub_1800D7C90 from 0x1800d7c90 to 0x1800d7e10 (384 bytes)\n// \n// 4 xrefs:\n// > sub_1800D91F0 @ 0x1800d9658\n// > sub_1800DA0D0 @ 0x1800da426\n// > sub_1800DC200 @ 0x1800dc215\n// > <???> @ 0x1801c4980\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:22:33 +0000\n// \n\nvoid __fastcall sub_1800D7C90(__int64 a1)\n{\n  HWND DesktopWindow; // rax\n  HWND v3; // rcx\n  HMONITOR v4; // rax\n  LONG left; // r8d\n  LONG top; // r9d\n  struct tagRECT v7; // [rsp+40h] [rbp-58h] BYREF\n  struct tagRECT Rect; // [rsp+50h] [rbp-48h] BYREF\n  struct tagMONITORINFO mi; // [rsp+60h] [rbp-38h] BYREF\n\n  if ( a1 )\n  {\n    DesktopWindow = GetDesktopWindow();\n    GetWindowRect(DesktopWindow, &Rect);\n    GetWindowRect(*(HWND *)(a1 + 880), &v7);\n    v3 = *(HWND *)(a1 + 880);\n    mi.cbSize = 40;\n    memset(&mi.rcMonitor, 0, 36);\n    v4 = MonitorFromWindow(v3, 2u);\n    if ( GetMonitorInfoW(v4, &mi) )\n    {\n      left = (int)(float)((float)((float)((float)((float)mi.rcMonitor.right - (float)mi.rcMonitor.left)\n                                        - (float)(v7.right - v7.left))\n                                * 0.5)\n                        + (float)mi.rcMonitor.left);\n      top = (int)(float)((float)((float)((float)((float)mi.rcMonitor.bottom - (float)mi.rcMonitor.top)\n                                       - (float)(v7.bottom - v7.top))\n                               * 0.5)\n                       + (float)mi.rcMonitor.top);\n    }\n    else\n    {\n      left = Rect.left;\n      top = Rect.top;\n      if ( Rect.left + (v7.left + Rect.right - Rect.left - v7.right) / 2 > 0 )\n        left = Rect.left + (v7.left + Rect.right - Rect.left - v7.right) / 2;\n      if ( Rect.top + (v7.top + Rect.bottom - Rect.top - v7.bottom) / 2 > 0 )\n        top = Rect.top + (v7.top + Rect.bottom - Rect.top - v7.bottom) / 2;\n    }\n    SetWindowPos(*(HWND *)(a1 + 880), nullptr, left, top, 0, 0, 0x15u);\n  }\n}", "assembly": "; \n; sub_1800D7C90 from 0x1800d7c90 to 0x1800d7e10 (384 bytes)\n; \n; 4 xrefs:\n; > sub_1800D91F0 @ 0x1800d9658\n; > sub_1800DA0D0 @ 0x1800da426\n; > sub_1800DC200 @ 0x1800dc215\n; > <???> @ 0x1801c4980\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:22:33 +0000\n; \ntest    rcx, rcx                                                       ; +0x0, 0x1800d7c90\njz      locret_1800D7E0F                                               ; +0x3, 0x1800d7c93\npush    rbx                                                            ; +0x9, 0x1800d7c99\nsub     rsp, 90h                                                       ; +0xa, 0x1800d7c9a\nmov     rax, cs:__security_cookie                                      ; +0x11, 0x1800d7ca1\nxor     rax, rsp                                                       ; +0x18, 0x1800d7ca8\nmov     [rsp+98h+var_10], rax                                          ; +0x1b, 0x1800d7cab\nmov     rbx, rcx                                                       ; +0x23, 0x1800d7cb3\ncall    cs:GetDesktopWindow                                            ; +0x26, 0x1800d7cb6\nmov     rcx, rax; hWnd                                                 ; +0x2c, 0x1800d7cbc\nlea     rdx, [rsp+98h+Rect]; lpRect                                    ; +0x2f, 0x1800d7cbf\ncall    cs:GetWindowRect                                               ; +0x34, 0x1800d7cc4\nmov     rcx, [rbx+370h]; hWnd                                          ; +0x3a, 0x1800d7cca\nlea     rdx, [rsp+98h+var_58]; lpRect                                  ; +0x41, 0x1800d7cd1\ncall    cs:GetWindowRect                                               ; +0x46, 0x1800d7cd6\nmov     rcx, [rbx+370h]; hwnd                                          ; +0x4c, 0x1800d7cdc\nxor     eax, eax                                                       ; +0x53, 0x1800d7ce3\nxorps   xmm0, xmm0                                                     ; +0x55, 0x1800d7ce5\nmov     [rsp+98h+mi.cbSize], 28h ; '('                                 ; +0x58, 0x1800d7ce8\nmovups  xmmword ptr [rsp+98h+mi.rcMonitor.left], xmm0                  ; +0x60, 0x1800d7cf0\nmov     [rsp+98h+mi.dwFlags], eax                                      ; +0x65, 0x1800d7cf5\nlea     edx, [rax+2]; dwFlags                                          ; +0x6c, 0x1800d7cfc\nmovups  xmmword ptr [rsp+98h+mi.rcWork.left], xmm0                     ; +0x6f, 0x1800d7cff\ncall    cs:MonitorFromWindow                                           ; +0x74, 0x1800d7d04\nmov     rcx, rax; hMonitor                                             ; +0x7a, 0x1800d7d0a\nlea     rdx, [rsp+98h+mi]; lpmi                                        ; +0x7d, 0x1800d7d0d\ncall    cs:GetMonitorInfoW                                             ; +0x82, 0x1800d7d12\ntest    eax, eax                                                       ; +0x88, 0x1800d7d18\njz      short loc_1800D7D92                                            ; +0x8a, 0x1800d7d1a\nmov     eax, [rsp+98h+var_58.right]                                    ; +0x8c, 0x1800d7d1c\nxorps   xmm2, xmm2                                                     ; +0x90, 0x1800d7d20\ncvtsi2ss xmm2, [rsp+98h+mi.rcMonitor.right]                            ; +0x93, 0x1800d7d23\nsub     eax, [rsp+98h+var_58.left]                                     ; +0x99, 0x1800d7d29\nxorps   xmm1, xmm1                                                     ; +0x9d, 0x1800d7d2d\nxorps   xmm0, xmm0                                                     ; +0xa0, 0x1800d7d30\ncvtsi2ss xmm1, [rsp+98h+mi.rcMonitor.left]                             ; +0xa3, 0x1800d7d33\ncvtsi2ss xmm0, eax                                                     ; +0xa9, 0x1800d7d39\nmov     eax, [rsp+98h+var_58.bottom]                                   ; +0xad, 0x1800d7d3d\nsub     eax, [rsp+98h+var_58.top]                                      ; +0xb1, 0x1800d7d41\nsubss   xmm2, xmm1                                                     ; +0xb5, 0x1800d7d45\nsubss   xmm2, xmm0                                                     ; +0xb9, 0x1800d7d49\nxorps   xmm0, xmm0                                                     ; +0xbd, 0x1800d7d4d\ncvtsi2ss xmm0, eax                                                     ; +0xc0, 0x1800d7d50\nmulss   xmm2, cs:dword_1800EC358                                       ; +0xc4, 0x1800d7d54\naddss   xmm2, xmm1                                                     ; +0xcc, 0x1800d7d5c\nxorps   xmm1, xmm1                                                     ; +0xd0, 0x1800d7d60\ncvtsi2ss xmm1, [rsp+98h+mi.rcMonitor.top]                              ; +0xd3, 0x1800d7d63\ncvttss2si r8d, xmm2                                                    ; +0xd9, 0x1800d7d69\nxorps   xmm2, xmm2                                                     ; +0xde, 0x1800d7d6e\ncvtsi2ss xmm2, [rsp+98h+mi.rcMonitor.bottom]                           ; +0xe1, 0x1800d7d71\nsubss   xmm2, xmm1                                                     ; +0xe7, 0x1800d7d77\nsubss   xmm2, xmm0                                                     ; +0xeb, 0x1800d7d7b\nmulss   xmm2, cs:dword_1800EC358                                       ; +0xef, 0x1800d7d7f\naddss   xmm2, xmm1                                                     ; +0xf7, 0x1800d7d87\ncvttss2si r9d, xmm2                                                    ; +0xfb, 0x1800d7d8b\njmp     short loc_1800D7DD6                                            ; +0x100, 0x1800d7d90\nmov     r8d, [rsp+98h+Rect.left]                                       ; +0x102, 0x1800d7d92\nmov     r9d, [rsp+98h+Rect.top]                                        ; +0x107, 0x1800d7d97\nmov     eax, [rsp+98h+Rect.right]                                      ; +0x10c, 0x1800d7d9c\nsub     eax, r8d                                                       ; +0x110, 0x1800d7da0\nsub     eax, [rsp+98h+var_58.right]                                    ; +0x113, 0x1800d7da3\nadd     eax, [rsp+98h+var_58.left]                                     ; +0x117, 0x1800d7da7\ncdq                                                                    ; +0x11b, 0x1800d7dab\nsub     eax, edx                                                       ; +0x11c, 0x1800d7dac\nsar     eax, 1                                                         ; +0x11e, 0x1800d7dae\nadd     eax, r8d                                                       ; +0x120, 0x1800d7db0\ntest    eax, eax                                                       ; +0x123, 0x1800d7db3\ncmovg   r8d, eax; X                                                    ; +0x125, 0x1800d7db5\nmov     eax, [rsp+98h+Rect.bottom]                                     ; +0x129, 0x1800d7db9\nsub     eax, r9d                                                       ; +0x12d, 0x1800d7dbd\nsub     eax, [rsp+98h+var_58.bottom]                                   ; +0x130, 0x1800d7dc0\nadd     eax, [rsp+98h+var_58.top]                                      ; +0x134, 0x1800d7dc4\ncdq                                                                    ; +0x138, 0x1800d7dc8\nsub     eax, edx                                                       ; +0x139, 0x1800d7dc9\nsar     eax, 1                                                         ; +0x13b, 0x1800d7dcb\nadd     eax, r9d                                                       ; +0x13d, 0x1800d7dcd\ntest    eax, eax                                                       ; +0x140, 0x1800d7dd0\ncmovg   r9d, eax; Y                                                    ; +0x142, 0x1800d7dd2\nmov     rcx, [rbx+370h]; hWnd                                          ; +0x146, 0x1800d7dd6\nxor     eax, eax                                                       ; +0x14d, 0x1800d7ddd\nmov     [rsp+98h+uFlags], 15h; uFlags                                  ; +0x14f, 0x1800d7ddf\nxor     edx, edx; hWndInsertAfter                                      ; +0x157, 0x1800d7de7\nmov     [rsp+98h+cy], eax; cy                                          ; +0x159, 0x1800d7de9\nmov     [rsp+98h+var_78], eax; cx                                      ; +0x15d, 0x1800d7ded\ncall    cs:SetWindowPos                                                ; +0x161, 0x1800d7df1\nmov     rcx, [rsp+98h+var_10]                                          ; +0x167, 0x1800d7df7\nxor     rcx, rsp; StackCookie                                          ; +0x16f, 0x1800d7dff\ncall    __security_check_cookie                                        ; +0x172, 0x1800d7e02\nadd     rsp, 90h                                                       ; +0x177, 0x1800d7e07\npop     rbx                                                            ; +0x17e, 0x1800d7e0e\nretn                                                                   ; +0x17f, 0x1800d7e0f", "xrefs": ["sub_1800D91F0 @ 0x1800d9658", "sub_1800DA0D0 @ 0x1800da426", "sub_1800DC200 @ 0x1800dc215", "<???> @ 0x1801c4980"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}