{"type": "func", "start": 6443332352, "end": 6443332654, "name": "sub_1800D7300", "pseudocode": "// \n// sub_1800D7300 from 0x1800d7300 to 0x1800d742e (302 bytes)\n// \n// 2 xrefs:\n// > sub_1800D3E80 @ 0x1800d3f98\n// > <???> @ 0x1801ba9c8\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nBOOL __fastcall sub_1800D7300(__int64 a1, LONG a2, LONG a3)\n{\n  int v4; // eax\n  __int64 v5; // rcx\n  DWORD v6; // esi\n  unsigned int v7; // ebx\n  int v8; // eax\n  DWORD v9; // ebx\n  struct tagRECT Rect; // [rsp+40h] [rbp-38h] BYREF\n\n  Rect.left = a2;\n  Rect.top = a3;\n  Rect.right = a2;\n  Rect.bottom = a3;\n  v4 = sub_1800D9CB0(14393);\n  v5 = *(_QWORD *)(a1 + 72);\n  v6 = 0x40000;\n  if ( v4 )\n  {\n    if ( v5 || *(_DWORD *)(a1 + 20) )\n      v6 = 262152;\n    if ( v5 )\n    {\n      v7 = -2046820352;\n    }\n    else if ( *(_DWORD *)(a1 + 12) )\n    {\n      v7 = 114229248;\n      if ( !*(_DWORD *)(a1 + 8) )\n        v7 = 113901568;\n    }\n    else\n    {\n      v7 = -2046164992;\n    }\n    v8 = qword_1801AC060(*(_QWORD *)(a1 + 880));\n    qword_1801AC068(&Rect, v7, 0, v6, v8);\n  }\n  else\n  {\n    if ( v5 || *(_DWORD *)(a1 + 20) )\n      v6 = 262152;\n    if ( v5 )\n    {\n      v9 = -2046820352;\n    }\n    else if ( *(_DWORD *)(a1 + 12) )\n    {\n      v9 = 114229248;\n      if ( !*(_DWORD *)(a1 + 8) )\n        v9 = 113901568;\n    }\n    else\n    {\n      v9 = -2046164992;\n    }\n    AdjustWindowRectEx(&Rect, v9, 0, v6);\n  }\n  return SetWindowPos(*(HWND *)(a1 + 880), nullptr, Rect.left, Rect.top, 0, 0, 0x15u);\n}", "assembly": "; \n; sub_1800D7300 from 0x1800d7300 to 0x1800d742e (302 bytes)\n; \n; 2 xrefs:\n; > sub_1800D3E80 @ 0x1800d3f98\n; > <???> @ 0x1801ba9c8\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbx                                                            ; +0x0, 0x1800d7300\npush    rsi                                                            ; +0x2, 0x1800d7302\npush    rdi                                                            ; +0x3, 0x1800d7303\nsub     rsp, 60h                                                       ; +0x4, 0x1800d7304\nmov     rax, cs:__security_cookie                                      ; +0x8, 0x1800d7308\nxor     rax, rsp                                                       ; +0xf, 0x1800d730f\nmov     [rsp+78h+var_28], rax                                          ; +0x12, 0x1800d7312\nmov     rdi, rcx                                                       ; +0x17, 0x1800d7317\nmov     [rsp+78h+Rect.left], edx                                       ; +0x1a, 0x1800d731a\nmov     ecx, 3839h                                                     ; +0x1e, 0x1800d731e\nmov     [rsp+78h+Rect.top], r8d                                        ; +0x23, 0x1800d7323\nmov     [rsp+78h+Rect.right], edx                                      ; +0x28, 0x1800d7328\nmov     [rsp+78h+Rect.bottom], r8d                                     ; +0x2c, 0x1800d732c\ncall    sub_1800D9CB0                                                  ; +0x31, 0x1800d7331\nmov     rcx, [rdi+48h]                                                 ; +0x36, 0x1800d7336\nmov     esi, 40000h                                                    ; +0x3a, 0x1800d733a\ntest    eax, eax                                                       ; +0x3f, 0x1800d733f\njz      short loc_1800D73A2                                            ; +0x41, 0x1800d7341\ntest    rcx, rcx                                                       ; +0x43, 0x1800d7343\njnz     short loc_1800D734D                                            ; +0x46, 0x1800d7346\ncmp     [rdi+14h], ecx                                                 ; +0x48, 0x1800d7348\njz      short loc_1800D7352                                            ; +0x4b, 0x1800d734b\nmov     esi, 40008h                                                    ; +0x4d, 0x1800d734d\ntest    rcx, rcx                                                       ; +0x52, 0x1800d7352\njz      short loc_1800D735E                                            ; +0x55, 0x1800d7355\nmov     ebx, 86000000h                                                 ; +0x57, 0x1800d7357\njmp     short loc_1800D737C                                            ; +0x5c, 0x1800d735c\ncmp     dword ptr [rdi+0Ch], 0                                         ; +0x5e, 0x1800d735e\njz      short loc_1800D7377                                            ; +0x62, 0x1800d7362\ncmp     dword ptr [rdi+8], 0                                           ; +0x64, 0x1800d7364\nmov     ebx, 6CF0000h                                                  ; +0x68, 0x1800d7368\nmov     eax, 6CA0000h                                                  ; +0x6d, 0x1800d736d\ncmovz   ebx, eax                                                       ; +0x72, 0x1800d7372\njmp     short loc_1800D737C                                            ; +0x75, 0x1800d7375\nmov     ebx, 860A0000h                                                 ; +0x77, 0x1800d7377\nmov     rcx, [rdi+370h]                                                ; +0x7c, 0x1800d737c\ncall    cs:qword_1801AC060                                             ; +0x83, 0x1800d7383\nmov     r9d, esi                                                       ; +0x89, 0x1800d7389\nlea     rcx, [rsp+78h+Rect]                                            ; +0x8c, 0x1800d738c\nxor     r8d, r8d                                                       ; +0x91, 0x1800d7391\nmov     [rsp+78h+var_58], eax                                          ; +0x94, 0x1800d7394\nmov     edx, ebx                                                       ; +0x98, 0x1800d7398\ncall    cs:qword_1801AC068                                             ; +0x9a, 0x1800d739a\njmp     short loc_1800D73EE                                            ; +0xa0, 0x1800d73a0\ntest    rcx, rcx                                                       ; +0xa2, 0x1800d73a2\njnz     short loc_1800D73AC                                            ; +0xa5, 0x1800d73a5\ncmp     [rdi+14h], ecx                                                 ; +0xa7, 0x1800d73a7\njz      short loc_1800D73B1                                            ; +0xaa, 0x1800d73aa\nmov     esi, 40008h                                                    ; +0xac, 0x1800d73ac\ntest    rcx, rcx                                                       ; +0xb1, 0x1800d73b1\njz      short loc_1800D73BD                                            ; +0xb4, 0x1800d73b4\nmov     ebx, 86000000h                                                 ; +0xb6, 0x1800d73b6\njmp     short loc_1800D73DB                                            ; +0xbb, 0x1800d73bb\ncmp     dword ptr [rdi+0Ch], 0                                         ; +0xbd, 0x1800d73bd\njz      short loc_1800D73D6                                            ; +0xc1, 0x1800d73c1\ncmp     dword ptr [rdi+8], 0                                           ; +0xc3, 0x1800d73c3\nmov     ebx, 6CF0000h                                                  ; +0xc7, 0x1800d73c7\nmov     eax, 6CA0000h                                                  ; +0xcc, 0x1800d73cc\ncmovz   ebx, eax                                                       ; +0xd1, 0x1800d73d1\njmp     short loc_1800D73DB                                            ; +0xd4, 0x1800d73d4\nmov     ebx, 860A0000h                                                 ; +0xd6, 0x1800d73d6\nmov     r9d, esi; dwExStyle                                            ; +0xdb, 0x1800d73db\nlea     rcx, [rsp+78h+Rect]; lpRect                                    ; +0xde, 0x1800d73de\nxor     r8d, r8d; bMenu                                                ; +0xe3, 0x1800d73e3\nmov     edx, ebx; dwStyle                                              ; +0xe6, 0x1800d73e6\ncall    cs:AdjustWindowRectEx                                          ; +0xe8, 0x1800d73e8\nmov     r9d, [rsp+78h+Rect.top]; Y                                     ; +0xee, 0x1800d73ee\nxor     eax, eax                                                       ; +0xf3, 0x1800d73f3\nmov     r8d, [rsp+78h+Rect.left]; X                                    ; +0xf5, 0x1800d73f5\nxor     edx, edx; hWndInsertAfter                                      ; +0xfa, 0x1800d73fa\nmov     rcx, [rdi+370h]; hWnd                                          ; +0xfc, 0x1800d73fc\nmov     [rsp+78h+uFlags], 15h; uFlags                                  ; +0x103, 0x1800d7403\nmov     [rsp+78h+cy], eax; cy                                          ; +0x10b, 0x1800d740b\nmov     [rsp+78h+var_58], eax; cx                                      ; +0x10f, 0x1800d740f\ncall    cs:SetWindowPos                                                ; +0x113, 0x1800d7413\nmov     rcx, [rsp+78h+var_28]                                          ; +0x119, 0x1800d7419\nxor     rcx, rsp; StackCookie                                          ; +0x11e, 0x1800d741e\ncall    __security_check_cookie                                        ; +0x121, 0x1800d7421\nadd     rsp, 60h                                                       ; +0x126, 0x1800d7426\npop     rdi                                                            ; +0x12a, 0x1800d742a\npop     rsi                                                            ; +0x12b, 0x1800d742b\npop     rbx                                                            ; +0x12c, 0x1800d742c\nretn                                                                   ; +0x12d, 0x1800d742d", "xrefs": ["sub_1800D3E80 @ 0x1800d3f98", "<???> @ 0x1801ba9c8"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}