{"type": "func", "start": 6443329520, "end": 6443329959, "name": "sub_1800D67F0", "pseudocode": "// \n// sub_1800D67F0 from 0x1800d67f0 to 0x1800d69a7 (439 bytes)\n// \n// 7 xrefs:\n// > sub_1800D3E80 @ 0x1800d3f87\n// > <???> @ 0x180142e20\n// > <???> @ 0x180142e3c\n// > <???> @ 0x180142e54\n// > <???> @ 0x180142e68\n// > <???> @ 0x180142e78\n// > <???> @ 0x1801ba908\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_1800D67F0(__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_1800D9CB0(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_1801AC060(*(_QWORD *)(a1 + 880));\n    result = qword_1801AC068(&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_1800D67F0 from 0x1800d67f0 to 0x1800d69a7 (439 bytes)\n; \n; 7 xrefs:\n; > sub_1800D3E80 @ 0x1800d3f87\n; > <???> @ 0x180142e20\n; > <???> @ 0x180142e3c\n; > <???> @ 0x180142e54\n; > <???> @ 0x180142e68\n; > <???> @ 0x180142e78\n; > <???> @ 0x1801ba908\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\nmov     r11, rsp                                                       ; +0x0, 0x1800d67f0\npush    r13                                                            ; +0x3, 0x1800d67f3\npush    r14                                                            ; +0x5, 0x1800d67f5\nsub     rsp, 98h                                                       ; +0x7, 0x1800d67f7\nmov     rax, cs:__security_cookie                                      ; +0xe, 0x1800d67fe\nxor     rax, rsp                                                       ; +0x15, 0x1800d6805\nmov     [rsp+0A8h+var_58], rax                                         ; +0x18, 0x1800d6808\nmov     r14, [rsp+0A8h+arg_20]                                         ; +0x1d, 0x1800d680d\nmov     [r11-18h], rbx                                                 ; +0x25, 0x1800d6815\nmov     [r11-20h], rbp                                                 ; +0x29, 0x1800d6819\nmov     rbp, r8                                                        ; +0x2d, 0x1800d681d\nmov     [r11-28h], rsi                                                 ; +0x30, 0x1800d6820\nmov     rsi, rcx                                                       ; +0x34, 0x1800d6824\nmov     rcx, [rcx+370h]; hWnd                                          ; +0x37, 0x1800d6827\nmov     [r11-30h], rdi                                                 ; +0x3e, 0x1800d682e\nmov     [r11-38h], r12                                                 ; +0x42, 0x1800d6832\nmov     r12, rdx                                                       ; +0x46, 0x1800d6836\nmov     [r11-40h], r15                                                 ; +0x49, 0x1800d6839\nlea     rdx, [r11-68h]; lpRect                                         ; +0x4d, 0x1800d683d\nmov     r15, r9                                                        ; +0x51, 0x1800d6841\ncall    cs:GetClientRect                                               ; +0x54, 0x1800d6844\nmov     r9d, [rsp+0A8h+xRight]; xRight                                 ; +0x5a, 0x1800d684a\nlea     rcx, [rsp+0A8h+rc]; lprc                                       ; +0x5f, 0x1800d684f\nmov     r13d, [rsp+0A8h+var_5C]                                        ; +0x64, 0x1800d6854\nxor     r8d, r8d; yTop                                                 ; +0x69, 0x1800d6859\nxor     edx, edx; xLeft                                                ; +0x6c, 0x1800d685c\nmov     [rsp+0A8h+yBottom], r13d; yBottom                              ; +0x6e, 0x1800d685e\ncall    cs:SetRect                                                     ; +0x73, 0x1800d6863\nmov     ecx, 3839h                                                     ; +0x79, 0x1800d6869\ncall    sub_1800D9CB0                                                  ; +0x7e, 0x1800d686e\nmov     rcx, [rsi+48h]                                                 ; +0x83, 0x1800d6873\nmov     edi, 40000h                                                    ; +0x87, 0x1800d6877\ntest    eax, eax                                                       ; +0x8c, 0x1800d687c\njz      short loc_1800D68DF                                            ; +0x8e, 0x1800d687e\ntest    rcx, rcx                                                       ; +0x90, 0x1800d6880\njnz     short loc_1800D688A                                            ; +0x93, 0x1800d6883\ncmp     [rsi+14h], ecx                                                 ; +0x95, 0x1800d6885\njz      short loc_1800D688F                                            ; +0x98, 0x1800d6888\nmov     edi, 40008h                                                    ; +0x9a, 0x1800d688a\ntest    rcx, rcx                                                       ; +0x9f, 0x1800d688f\njz      short loc_1800D689B                                            ; +0xa2, 0x1800d6892\nmov     ebx, 86000000h                                                 ; +0xa4, 0x1800d6894\njmp     short loc_1800D68B9                                            ; +0xa9, 0x1800d6899\ncmp     dword ptr [rsi+0Ch], 0                                         ; +0xab, 0x1800d689b\njz      short loc_1800D68B4                                            ; +0xaf, 0x1800d689f\ncmp     dword ptr [rsi+8], 0                                           ; +0xb1, 0x1800d68a1\nmov     ebx, 6CF0000h                                                  ; +0xb5, 0x1800d68a5\nmov     eax, 6CA0000h                                                  ; +0xba, 0x1800d68aa\ncmovz   ebx, eax                                                       ; +0xbf, 0x1800d68af\njmp     short loc_1800D68B9                                            ; +0xc2, 0x1800d68b2\nmov     ebx, 860A0000h                                                 ; +0xc4, 0x1800d68b4\nmov     rcx, [rsi+370h]                                                ; +0xc9, 0x1800d68b9\ncall    cs:qword_1801AC060                                             ; +0xd0, 0x1800d68c0\nmov     r9d, edi                                                       ; +0xd6, 0x1800d68c6\nlea     rcx, [rsp+0A8h+rc]                                             ; +0xd9, 0x1800d68c9\nxor     r8d, r8d                                                       ; +0xde, 0x1800d68ce\nmov     [rsp+0A8h+yBottom], eax                                        ; +0xe1, 0x1800d68d1\nmov     edx, ebx                                                       ; +0xe5, 0x1800d68d5\ncall    cs:qword_1801AC068                                             ; +0xe7, 0x1800d68d7\njmp     short loc_1800D692B                                            ; +0xed, 0x1800d68dd\ntest    rcx, rcx                                                       ; +0xef, 0x1800d68df\njnz     short loc_1800D68E9                                            ; +0xf2, 0x1800d68e2\ncmp     [rsi+14h], ecx                                                 ; +0xf4, 0x1800d68e4\njz      short loc_1800D68EE                                            ; +0xf7, 0x1800d68e7\nmov     edi, 40008h                                                    ; +0xf9, 0x1800d68e9\ntest    rcx, rcx                                                       ; +0xfe, 0x1800d68ee\njz      short loc_1800D68FA                                            ; +0x101, 0x1800d68f1\nmov     ebx, 86000000h                                                 ; +0x103, 0x1800d68f3\njmp     short loc_1800D6918                                            ; +0x108, 0x1800d68f8\ncmp     dword ptr [rsi+0Ch], 0                                         ; +0x10a, 0x1800d68fa\njz      short loc_1800D6913                                            ; +0x10e, 0x1800d68fe\ncmp     dword ptr [rsi+8], 0                                           ; +0x110, 0x1800d6900\nmov     ebx, 6CF0000h                                                  ; +0x114, 0x1800d6904\nmov     eax, 6CA0000h                                                  ; +0x119, 0x1800d6909\ncmovz   ebx, eax                                                       ; +0x11e, 0x1800d690e\njmp     short loc_1800D6918                                            ; +0x121, 0x1800d6911\nmov     ebx, 860A0000h                                                 ; +0x123, 0x1800d6913\nmov     r9d, edi; dwExStyle                                            ; +0x128, 0x1800d6918\nlea     rcx, [rsp+0A8h+rc]; lpRect                                     ; +0x12b, 0x1800d691b\nxor     r8d, r8d; bMenu                                                ; +0x130, 0x1800d6920\nmov     edx, ebx; dwStyle                                              ; +0x133, 0x1800d6923\ncall    cs:AdjustWindowRectEx                                          ; +0x135, 0x1800d6925\nmov     rdi, [rsp+0A8h+var_30]                                         ; +0x13b, 0x1800d692b\nmov     rsi, [rsp+0A8h+var_28]                                         ; +0x140, 0x1800d6930\nmov     rbx, [rsp+0A8h+var_18]                                         ; +0x148, 0x1800d6938\ntest    r12, r12                                                       ; +0x150, 0x1800d6940\njz      short loc_1800D694F                                            ; +0x153, 0x1800d6943\nmov     eax, [rsp+0A8h+rc.left]                                        ; +0x155, 0x1800d6945\nneg     eax                                                            ; +0x159, 0x1800d6949\nmov     [r12], eax                                                     ; +0x15b, 0x1800d694b\nmov     r12, [rsp+0A8h+var_38]                                         ; +0x15f, 0x1800d694f\ntest    rbp, rbp                                                       ; +0x164, 0x1800d6954\njz      short loc_1800D6962                                            ; +0x167, 0x1800d6957\nmov     eax, [rsp+0A8h+rc.top]                                         ; +0x169, 0x1800d6959\nneg     eax                                                            ; +0x16d, 0x1800d695d\nmov     [rbp+0], eax                                                   ; +0x16f, 0x1800d695f\nmov     rbp, [rsp+0A8h+var_20]                                         ; +0x172, 0x1800d6962\ntest    r15, r15                                                       ; +0x17a, 0x1800d696a\njz      short loc_1800D697A                                            ; +0x17d, 0x1800d696d\nmov     eax, [rsp+0A8h+rc.right]                                       ; +0x17f, 0x1800d696f\nsub     eax, [rsp+0A8h+xRight]                                         ; +0x183, 0x1800d6973\nmov     [r15], eax                                                     ; +0x187, 0x1800d6977\nmov     r15, [rsp+0A8h+var_40]                                         ; +0x18a, 0x1800d697a\ntest    r14, r14                                                       ; +0x18f, 0x1800d697f\njz      short loc_1800D698E                                            ; +0x192, 0x1800d6982\nmov     eax, [rsp+0A8h+rc.bottom]                                      ; +0x194, 0x1800d6984\nsub     eax, r13d                                                      ; +0x198, 0x1800d6988\nmov     [r14], eax                                                     ; +0x19b, 0x1800d698b\nmov     rcx, [rsp+0A8h+var_58]                                         ; +0x19e, 0x1800d698e\nxor     rcx, rsp; StackCookie                                          ; +0x1a3, 0x1800d6993\ncall    __security_check_cookie                                        ; +0x1a6, 0x1800d6996\nadd     rsp, 98h                                                       ; +0x1ab, 0x1800d699b\npop     r14                                                            ; +0x1b2, 0x1800d69a2\npop     r13                                                            ; +0x1b4, 0x1800d69a4\nretn                                                                   ; +0x1b6, 0x1800d69a6", "xrefs": ["sub_1800D3E80 @ 0x1800d3f87", "<???> @ 0x180142e20", "<???> @ 0x180142e3c", "<???> @ 0x180142e54", "<???> @ 0x180142e68", "<???> @ 0x180142e78", "<???> @ 0x1801ba908"], "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"}