{"type": "func", "start": 6443336064, "end": 6443336503, "name": "sub_1800D8180", "pseudocode": "// \n// sub_1800D8180 from 0x1800d8180 to 0x1800d8337 (439 bytes)\n// \n// 7 xrefs:\n// > sub_1800DBBB0 @ 0x1800dbcb7\n// > <???> @ 0x18014c0ac\n// > <???> @ 0x18014c0c8\n// > <???> @ 0x18014c0e0\n// > <???> @ 0x18014c0f4\n// > <???> @ 0x18014c104\n// > <???> @ 0x1801c49c8\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\nint __fastcall sub_1800D8180(__int64 a1, _DWORD *a2, _DWORD *a3, _DWORD *a4, _DWORD *a5)\n{\n  LONG bottom; // r13d\n  int v10; // eax\n  __int64 v11; // rcx\n  DWORD v12; // edi\n  unsigned int v13; // ebx\n  int v14; // eax\n  int result; // eax\n  DWORD v16; // ebx\n  struct tagRECT rc; // [rsp+30h] [rbp-78h] BYREF\n  struct tagRECT yBottom; // [rsp+40h] [rbp-68h] BYREF\n\n  GetClientRect(*(HWND *)(a1 + 880), &yBottom);\n  bottom = yBottom.bottom;\n  SetRect(&rc, 0, 0, yBottom.right, yBottom.bottom);\n  v10 = sub_1800E1C00(14393);\n  v11 = *(_QWORD *)(a1 + 72);\n  v12 = 0x40000;\n  if ( v10 )\n  {\n    if ( v11 || *(_DWORD *)(a1 + 20) )\n      v12 = 262152;\n    if ( v11 )\n    {\n      v13 = -2046820352;\n    }\n    else if ( *(_DWORD *)(a1 + 12) )\n    {\n      v13 = 114229248;\n      if ( !*(_DWORD *)(a1 + 8) )\n        v13 = 113901568;\n    }\n    else\n    {\n      v13 = -2046164992;\n    }\n    v14 = qword_1801B60E0(*(_QWORD *)(a1 + 880));\n    result = qword_1801B60E8(&rc, v13, 0, v12, v14);\n  }\n  else\n  {\n    if ( v11 || *(_DWORD *)(a1 + 20) )\n      v12 = 262152;\n    if ( v11 )\n    {\n      v16 = -2046820352;\n    }\n    else if ( *(_DWORD *)(a1 + 12) )\n    {\n      v16 = 114229248;\n      if ( !*(_DWORD *)(a1 + 8) )\n        v16 = 113901568;\n    }\n    else\n    {\n      v16 = -2046164992;\n    }\n    result = AdjustWindowRectEx(&rc, v16, 0, v12);\n  }\n  if ( a2 )\n  {\n    result = -rc.left;\n    *a2 = -rc.left;\n  }\n  if ( a3 )\n  {\n    result = -rc.top;\n    *a3 = -rc.top;\n  }\n  if ( a4 )\n  {\n    result = rc.right - yBottom.right;\n    *a4 = rc.right - yBottom.right;\n  }\n  if ( a5 )\n  {\n    result = rc.bottom - bottom;\n    *a5 = rc.bottom - bottom;\n  }\n  return result;\n}", "assembly": "; \n; sub_1800D8180 from 0x1800d8180 to 0x1800d8337 (439 bytes)\n; \n; 7 xrefs:\n; > sub_1800DBBB0 @ 0x1800dbcb7\n; > <???> @ 0x18014c0ac\n; > <???> @ 0x18014c0c8\n; > <???> @ 0x18014c0e0\n; > <???> @ 0x18014c0f4\n; > <???> @ 0x18014c104\n; > <???> @ 0x1801c49c8\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; \nmov     r11, rsp                                                       ; +0x0, 0x1800d8180\npush    r13                                                            ; +0x3, 0x1800d8183\npush    r14                                                            ; +0x5, 0x1800d8185\nsub     rsp, 98h                                                       ; +0x7, 0x1800d8187\nmov     rax, cs:__security_cookie                                      ; +0xe, 0x1800d818e\nxor     rax, rsp                                                       ; +0x15, 0x1800d8195\nmov     [rsp+0A8h+var_58], rax                                         ; +0x18, 0x1800d8198\nmov     r14, [rsp+0A8h+arg_20]                                         ; +0x1d, 0x1800d819d\nmov     [r11-18h], rbx                                                 ; +0x25, 0x1800d81a5\nmov     [r11-20h], rbp                                                 ; +0x29, 0x1800d81a9\nmov     rbp, r8                                                        ; +0x2d, 0x1800d81ad\nmov     [r11-28h], rsi                                                 ; +0x30, 0x1800d81b0\nmov     rsi, rcx                                                       ; +0x34, 0x1800d81b4\nmov     rcx, [rcx+370h]; hWnd                                          ; +0x37, 0x1800d81b7\nmov     [r11-30h], rdi                                                 ; +0x3e, 0x1800d81be\nmov     [r11-38h], r12                                                 ; +0x42, 0x1800d81c2\nmov     r12, rdx                                                       ; +0x46, 0x1800d81c6\nmov     [r11-40h], r15                                                 ; +0x49, 0x1800d81c9\nlea     rdx, [r11-68h]; lpRect                                         ; +0x4d, 0x1800d81cd\nmov     r15, r9                                                        ; +0x51, 0x1800d81d1\ncall    cs:GetClientRect                                               ; +0x54, 0x1800d81d4\nmov     r9d, [rsp+0A8h+xRight]; xRight                                 ; +0x5a, 0x1800d81da\nlea     rcx, [rsp+0A8h+rc]; lprc                                       ; +0x5f, 0x1800d81df\nmov     r13d, [rsp+0A8h+var_5C]                                        ; +0x64, 0x1800d81e4\nxor     r8d, r8d; yTop                                                 ; +0x69, 0x1800d81e9\nxor     edx, edx; xLeft                                                ; +0x6c, 0x1800d81ec\nmov     [rsp+0A8h+yBottom], r13d; yBottom                              ; +0x6e, 0x1800d81ee\ncall    cs:SetRect                                                     ; +0x73, 0x1800d81f3\nmov     ecx, 3839h                                                     ; +0x79, 0x1800d81f9\ncall    sub_1800E1C00                                                  ; +0x7e, 0x1800d81fe\nmov     rcx, [rsi+48h]                                                 ; +0x83, 0x1800d8203\nmov     edi, 40000h                                                    ; +0x87, 0x1800d8207\ntest    eax, eax                                                       ; +0x8c, 0x1800d820c\njz      short loc_1800D826F                                            ; +0x8e, 0x1800d820e\ntest    rcx, rcx                                                       ; +0x90, 0x1800d8210\njnz     short loc_1800D821A                                            ; +0x93, 0x1800d8213\ncmp     [rsi+14h], ecx                                                 ; +0x95, 0x1800d8215\njz      short loc_1800D821F                                            ; +0x98, 0x1800d8218\nmov     edi, 40008h                                                    ; +0x9a, 0x1800d821a\ntest    rcx, rcx                                                       ; +0x9f, 0x1800d821f\njz      short loc_1800D822B                                            ; +0xa2, 0x1800d8222\nmov     ebx, 86000000h                                                 ; +0xa4, 0x1800d8224\njmp     short loc_1800D8249                                            ; +0xa9, 0x1800d8229\ncmp     dword ptr [rsi+0Ch], 0                                         ; +0xab, 0x1800d822b\njz      short loc_1800D8244                                            ; +0xaf, 0x1800d822f\ncmp     dword ptr [rsi+8], 0                                           ; +0xb1, 0x1800d8231\nmov     ebx, 6CF0000h                                                  ; +0xb5, 0x1800d8235\nmov     eax, 6CA0000h                                                  ; +0xba, 0x1800d823a\ncmovz   ebx, eax                                                       ; +0xbf, 0x1800d823f\njmp     short loc_1800D8249                                            ; +0xc2, 0x1800d8242\nmov     ebx, 860A0000h                                                 ; +0xc4, 0x1800d8244\nmov     rcx, [rsi+370h]                                                ; +0xc9, 0x1800d8249\ncall    cs:qword_1801B60E0                                             ; +0xd0, 0x1800d8250\nmov     r9d, edi                                                       ; +0xd6, 0x1800d8256\nlea     rcx, [rsp+0A8h+rc]                                             ; +0xd9, 0x1800d8259\nxor     r8d, r8d                                                       ; +0xde, 0x1800d825e\nmov     [rsp+0A8h+yBottom], eax                                        ; +0xe1, 0x1800d8261\nmov     edx, ebx                                                       ; +0xe5, 0x1800d8265\ncall    cs:qword_1801B60E8                                             ; +0xe7, 0x1800d8267\njmp     short loc_1800D82BB                                            ; +0xed, 0x1800d826d\ntest    rcx, rcx                                                       ; +0xef, 0x1800d826f\njnz     short loc_1800D8279                                            ; +0xf2, 0x1800d8272\ncmp     [rsi+14h], ecx                                                 ; +0xf4, 0x1800d8274\njz      short loc_1800D827E                                            ; +0xf7, 0x1800d8277\nmov     edi, 40008h                                                    ; +0xf9, 0x1800d8279\ntest    rcx, rcx                                                       ; +0xfe, 0x1800d827e\njz      short loc_1800D828A                                            ; +0x101, 0x1800d8281\nmov     ebx, 86000000h                                                 ; +0x103, 0x1800d8283\njmp     short loc_1800D82A8                                            ; +0x108, 0x1800d8288\ncmp     dword ptr [rsi+0Ch], 0                                         ; +0x10a, 0x1800d828a\njz      short loc_1800D82A3                                            ; +0x10e, 0x1800d828e\ncmp     dword ptr [rsi+8], 0                                           ; +0x110, 0x1800d8290\nmov     ebx, 6CF0000h                                                  ; +0x114, 0x1800d8294\nmov     eax, 6CA0000h                                                  ; +0x119, 0x1800d8299\ncmovz   ebx, eax                                                       ; +0x11e, 0x1800d829e\njmp     short loc_1800D82A8                                            ; +0x121, 0x1800d82a1\nmov     ebx, 860A0000h                                                 ; +0x123, 0x1800d82a3\nmov     r9d, edi; dwExStyle                                            ; +0x128, 0x1800d82a8\nlea     rcx, [rsp+0A8h+rc]; lpRect                                     ; +0x12b, 0x1800d82ab\nxor     r8d, r8d; bMenu                                                ; +0x130, 0x1800d82b0\nmov     edx, ebx; dwStyle                                              ; +0x133, 0x1800d82b3\ncall    cs:AdjustWindowRectEx                                          ; +0x135, 0x1800d82b5\nmov     rdi, [rsp+0A8h+var_30]                                         ; +0x13b, 0x1800d82bb\nmov     rsi, [rsp+0A8h+var_28]                                         ; +0x140, 0x1800d82c0\nmov     rbx, [rsp+0A8h+var_18]                                         ; +0x148, 0x1800d82c8\ntest    r12, r12                                                       ; +0x150, 0x1800d82d0\njz      short loc_1800D82DF                                            ; +0x153, 0x1800d82d3\nmov     eax, [rsp+0A8h+rc.left]                                        ; +0x155, 0x1800d82d5\nneg     eax                                                            ; +0x159, 0x1800d82d9\nmov     [r12], eax                                                     ; +0x15b, 0x1800d82db\nmov     r12, [rsp+0A8h+var_38]                                         ; +0x15f, 0x1800d82df\ntest    rbp, rbp                                                       ; +0x164, 0x1800d82e4\njz      short loc_1800D82F2                                            ; +0x167, 0x1800d82e7\nmov     eax, [rsp+0A8h+rc.top]                                         ; +0x169, 0x1800d82e9\nneg     eax                                                            ; +0x16d, 0x1800d82ed\nmov     [rbp+0], eax                                                   ; +0x16f, 0x1800d82ef\nmov     rbp, [rsp+0A8h+var_20]                                         ; +0x172, 0x1800d82f2\ntest    r15, r15                                                       ; +0x17a, 0x1800d82fa\njz      short loc_1800D830A                                            ; +0x17d, 0x1800d82fd\nmov     eax, [rsp+0A8h+rc.right]                                       ; +0x17f, 0x1800d82ff\nsub     eax, [rsp+0A8h+xRight]                                         ; +0x183, 0x1800d8303\nmov     [r15], eax                                                     ; +0x187, 0x1800d8307\nmov     r15, [rsp+0A8h+var_40]                                         ; +0x18a, 0x1800d830a\ntest    r14, r14                                                       ; +0x18f, 0x1800d830f\njz      short loc_1800D831E                                            ; +0x192, 0x1800d8312\nmov     eax, [rsp+0A8h+rc.bottom]                                      ; +0x194, 0x1800d8314\nsub     eax, r13d                                                      ; +0x198, 0x1800d8318\nmov     [r14], eax                                                     ; +0x19b, 0x1800d831b\nmov     rcx, [rsp+0A8h+var_58]                                         ; +0x19e, 0x1800d831e\nxor     rcx, rsp; StackCookie                                          ; +0x1a3, 0x1800d8323\ncall    __security_check_cookie                                        ; +0x1a6, 0x1800d8326\nadd     rsp, 98h                                                       ; +0x1ab, 0x1800d832b\npop     r14                                                            ; +0x1b2, 0x1800d8332\npop     r13                                                            ; +0x1b4, 0x1800d8334\nretn                                                                   ; +0x1b6, 0x1800d8336", "xrefs": ["sub_1800DBBB0 @ 0x1800dbcb7", "<???> @ 0x18014c0ac", "<???> @ 0x18014c0c8", "<???> @ 0x18014c0e0", "<???> @ 0x18014c0f4", "<???> @ 0x18014c104", "<???> @ 0x1801c49c8"], "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"}