{"type": "func", "start": 6443332656, "end": 6443333036, "name": "sub_1800D7430", "pseudocode": "// \n// sub_1800D7430 from 0x1800d7430 to 0x1800d75ac (380 bytes)\n// \n// 6 xrefs:\n// > sub_1800D4C40 @ 0x1800d4c5c\n// > sub_1800D76D0 @ 0x1800d7727\n// > sub_1800D8740 @ 0x1800d8a8e\n// > <???> @ 0x180142dd4\n// > <???> @ 0x180142de4\n// > <???> @ 0x1801ba9d4\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\nint __fastcall sub_1800D7430(__int64 a1, LONG a2, LONG a3)\n{\n  __int64 v3; // rax\n  int v5; // eax\n  __int64 v6; // rcx\n  DWORD v7; // esi\n  unsigned int v8; // ebx\n  int v9; // eax\n  DWORD v10; // ebx\n  struct tagRECT Rect; // [rsp+40h] [rbp-38h] BYREF\n\n  v3 = *(_QWORD *)(a1 + 72);\n  if ( v3 )\n  {\n    if ( *(_QWORD *)(v3 + 144) == a1 )\n    {\n      sub_1800D7750(a1);\n      LODWORD(v3) = sub_1800D8050(a1);\n    }\n  }\n  else\n  {\n    *(_QWORD *)&Rect.left = 0;\n    Rect.right = a2;\n    Rect.bottom = a3;\n    v5 = sub_1800D9CB0(14393);\n    v6 = *(_QWORD *)(a1 + 72);\n    v7 = 0x40000;\n    if ( v5 )\n    {\n      if ( (v6 || *(_DWORD *)(a1 + 20)) && (v7 = 262152, v6) )\n      {\n        v8 = -2046820352;\n      }\n      else if ( *(_DWORD *)(a1 + 12) )\n      {\n        v8 = 114229248;\n        if ( !*(_DWORD *)(a1 + 8) )\n          v8 = 113901568;\n      }\n      else\n      {\n        v8 = -2046164992;\n      }\n      v9 = qword_1801AC060(*(_QWORD *)(a1 + 880));\n      qword_1801AC068(&Rect, v8, 0, v7, v9);\n    }\n    else\n    {\n      if ( (v6 || *(_DWORD *)(a1 + 20)) && (v7 = 262152, v6) )\n      {\n        v10 = -2046820352;\n      }\n      else if ( *(_DWORD *)(a1 + 12) )\n      {\n        v10 = 114229248;\n        if ( !*(_DWORD *)(a1 + 8) )\n          v10 = 113901568;\n      }\n      else\n      {\n        v10 = -2046164992;\n      }\n      AdjustWindowRectEx(&Rect, v10, 0, v7);\n    }\n    LODWORD(v3) = SetWindowPos(\n                    *(HWND *)(a1 + 880),\n                    nullptr,\n                    0,\n                    0,\n                    Rect.right - Rect.left,\n                    Rect.bottom - Rect.top,\n                    0x216u);\n  }\n  return v3;\n}", "assembly": "; \n; sub_1800D7430 from 0x1800d7430 to 0x1800d75ac (380 bytes)\n; \n; 6 xrefs:\n; > sub_1800D4C40 @ 0x1800d4c5c\n; > sub_1800D76D0 @ 0x1800d7727\n; > sub_1800D8740 @ 0x1800d8a8e\n; > <???> @ 0x180142dd4\n; > <???> @ 0x180142de4\n; > <???> @ 0x1801ba9d4\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    rdi                                                            ; +0x0, 0x1800d7430\nsub     rsp, 70h                                                       ; +0x2, 0x1800d7432\nmov     rax, cs:__security_cookie                                      ; +0x6, 0x1800d7436\nxor     rax, rsp                                                       ; +0xd, 0x1800d743d\nmov     [rsp+78h+var_28], rax                                          ; +0x10, 0x1800d7440\nmov     rax, [rcx+48h]                                                 ; +0x15, 0x1800d7445\nmov     rdi, rcx                                                       ; +0x19, 0x1800d7449\ntest    rax, rax                                                       ; +0x1c, 0x1800d744c\njz      short loc_1800D747E                                            ; +0x1f, 0x1800d744f\ncmp     [rax+90h], rcx                                                 ; +0x21, 0x1800d7451\njnz     loc_1800D7599                                                  ; +0x28, 0x1800d7458\ncall    sub_1800D7750                                                  ; +0x2e, 0x1800d745e\nmov     rcx, rdi                                                       ; +0x33, 0x1800d7463\ncall    sub_1800D8050                                                  ; +0x36, 0x1800d7466\nmov     rcx, [rsp+78h+var_28]                                          ; +0x3b, 0x1800d746b\nxor     rcx, rsp; StackCookie                                          ; +0x40, 0x1800d7470\ncall    __security_check_cookie                                        ; +0x43, 0x1800d7473\nadd     rsp, 70h                                                       ; +0x48, 0x1800d7478\npop     rdi                                                            ; +0x4c, 0x1800d747c\nretn                                                                   ; +0x4d, 0x1800d747d\nxor     eax, eax                                                       ; +0x4e, 0x1800d747e\nmov     [rsp+78h+var_10], rbx                                          ; +0x50, 0x1800d7480\nmov     ecx, 3839h                                                     ; +0x55, 0x1800d7485\nmov     qword ptr [rsp+78h+Rect.left], rax                             ; +0x5a, 0x1800d748a\nmov     [rsp+78h+var_18], rsi                                          ; +0x5f, 0x1800d748f\nmov     [rsp+78h+Rect.right], edx                                      ; +0x64, 0x1800d7494\nmov     [rsp+78h+Rect.bottom], r8d                                     ; +0x68, 0x1800d7498\ncall    sub_1800D9CB0                                                  ; +0x6d, 0x1800d749d\nmov     rcx, [rdi+48h]                                                 ; +0x72, 0x1800d74a2\nmov     esi, 40000h                                                    ; +0x76, 0x1800d74a6\ntest    eax, eax                                                       ; +0x7b, 0x1800d74ab\njz      short loc_1800D750E                                            ; +0x7d, 0x1800d74ad\ntest    rcx, rcx                                                       ; +0x7f, 0x1800d74af\njnz     short loc_1800D74B9                                            ; +0x82, 0x1800d74b2\ncmp     [rdi+14h], ecx                                                 ; +0x84, 0x1800d74b4\njz      short loc_1800D74CA                                            ; +0x87, 0x1800d74b7\nmov     esi, 40008h                                                    ; +0x89, 0x1800d74b9\ntest    rcx, rcx                                                       ; +0x8e, 0x1800d74be\njz      short loc_1800D74CA                                            ; +0x91, 0x1800d74c1\nmov     ebx, 86000000h                                                 ; +0x93, 0x1800d74c3\njmp     short loc_1800D74E8                                            ; +0x98, 0x1800d74c8\ncmp     dword ptr [rdi+0Ch], 0                                         ; +0x9a, 0x1800d74ca\njz      short loc_1800D74E3                                            ; +0x9e, 0x1800d74ce\ncmp     dword ptr [rdi+8], 0                                           ; +0xa0, 0x1800d74d0\nmov     ebx, 6CF0000h                                                  ; +0xa4, 0x1800d74d4\nmov     eax, 6CA0000h                                                  ; +0xa9, 0x1800d74d9\ncmovz   ebx, eax                                                       ; +0xae, 0x1800d74de\njmp     short loc_1800D74E8                                            ; +0xb1, 0x1800d74e1\nmov     ebx, 860A0000h                                                 ; +0xb3, 0x1800d74e3\nmov     rcx, [rdi+370h]                                                ; +0xb8, 0x1800d74e8\ncall    cs:qword_1801AC060                                             ; +0xbf, 0x1800d74ef\nmov     r9d, esi                                                       ; +0xc5, 0x1800d74f5\nlea     rcx, [rsp+78h+Rect]                                            ; +0xc8, 0x1800d74f8\nxor     r8d, r8d                                                       ; +0xcd, 0x1800d74fd\nmov     [rsp+78h+var_58], eax                                          ; +0xd0, 0x1800d7500\nmov     edx, ebx                                                       ; +0xd4, 0x1800d7504\ncall    cs:qword_1801AC068                                             ; +0xd6, 0x1800d7506\njmp     short loc_1800D755A                                            ; +0xdc, 0x1800d750c\ntest    rcx, rcx                                                       ; +0xde, 0x1800d750e\njnz     short loc_1800D7518                                            ; +0xe1, 0x1800d7511\ncmp     [rdi+14h], ecx                                                 ; +0xe3, 0x1800d7513\njz      short loc_1800D7529                                            ; +0xe6, 0x1800d7516\nmov     esi, 40008h                                                    ; +0xe8, 0x1800d7518\ntest    rcx, rcx                                                       ; +0xed, 0x1800d751d\njz      short loc_1800D7529                                            ; +0xf0, 0x1800d7520\nmov     ebx, 86000000h                                                 ; +0xf2, 0x1800d7522\njmp     short loc_1800D7547                                            ; +0xf7, 0x1800d7527\ncmp     dword ptr [rdi+0Ch], 0                                         ; +0xf9, 0x1800d7529\njz      short loc_1800D7542                                            ; +0xfd, 0x1800d752d\ncmp     dword ptr [rdi+8], 0                                           ; +0xff, 0x1800d752f\nmov     ebx, 6CF0000h                                                  ; +0x103, 0x1800d7533\nmov     eax, 6CA0000h                                                  ; +0x108, 0x1800d7538\ncmovz   ebx, eax                                                       ; +0x10d, 0x1800d753d\njmp     short loc_1800D7547                                            ; +0x110, 0x1800d7540\nmov     ebx, 860A0000h                                                 ; +0x112, 0x1800d7542\nmov     r9d, esi; dwExStyle                                            ; +0x117, 0x1800d7547\nlea     rcx, [rsp+78h+Rect]; lpRect                                    ; +0x11a, 0x1800d754a\nxor     r8d, r8d; bMenu                                                ; +0x11f, 0x1800d754f\nmov     edx, ebx; dwStyle                                              ; +0x122, 0x1800d7552\ncall    cs:AdjustWindowRectEx                                          ; +0x124, 0x1800d7554\nmov     ecx, [rsp+78h+Rect.bottom]                                     ; +0x12a, 0x1800d755a\nxor     r9d, r9d; Y                                                    ; +0x12e, 0x1800d755e\nsub     ecx, [rsp+78h+Rect.top]                                        ; +0x131, 0x1800d7561\nxor     r8d, r8d; X                                                    ; +0x135, 0x1800d7565\nmov     eax, [rsp+78h+Rect.right]                                      ; +0x138, 0x1800d7568\nxor     edx, edx; hWndInsertAfter                                      ; +0x13c, 0x1800d756c\nsub     eax, [rsp+78h+Rect.left]                                       ; +0x13e, 0x1800d756e\nmov     [rsp+78h+uFlags], 216h; uFlags                                 ; +0x142, 0x1800d7572\nmov     [rsp+78h+cy], ecx; cy                                          ; +0x14a, 0x1800d757a\nmov     rcx, [rdi+370h]; hWnd                                          ; +0x14e, 0x1800d757e\nmov     [rsp+78h+var_58], eax; cx                                      ; +0x155, 0x1800d7585\ncall    cs:SetWindowPos                                                ; +0x159, 0x1800d7589\nmov     rsi, [rsp+78h+var_18]                                          ; +0x15f, 0x1800d758f\nmov     rbx, [rsp+78h+var_10]                                          ; +0x164, 0x1800d7594\nmov     rcx, [rsp+78h+var_28]                                          ; +0x169, 0x1800d7599\nxor     rcx, rsp; StackCookie                                          ; +0x16e, 0x1800d759e\ncall    __security_check_cookie                                        ; +0x171, 0x1800d75a1\nadd     rsp, 70h                                                       ; +0x176, 0x1800d75a6\npop     rdi                                                            ; +0x17a, 0x1800d75aa\nretn                                                                   ; +0x17b, 0x1800d75ab", "xrefs": ["sub_1800D4C40 @ 0x1800d4c5c", "sub_1800D76D0 @ 0x1800d7727", "sub_1800D8740 @ 0x1800d8a8e", "<???> @ 0x180142dd4", "<???> @ 0x180142de4", "<???> @ 0x1801ba9d4"], "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"}