{"type": "func", "start": 6443329408, "end": 6443329503, "name": "sub_1800D6780", "pseudocode": "// \n// sub_1800D6780 from 0x1800d6780 to 0x1800d67df (95 bytes)\n// \n// 5 xrefs:\n// > sub_1800D3E80 @ 0x1800d3f46\n// > sub_1800D4A20 @ 0x1800d4a45\n// > sub_1800D5230 @ 0x1800d5243\n// > sub_1800DF1F0 @ 0x1800df20c\n// > <???> @ 0x1801ba8fc\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_1800D6780(__int64 a1, LONG *a2, LONG *a3)\n{\n  int result; // eax\n  struct tagRECT Rect; // [rsp+20h] [rbp-28h] BYREF\n\n  result = GetClientRect(*(HWND *)(a1 + 880), &Rect);\n  if ( a2 )\n  {\n    result = Rect.right;\n    *a2 = Rect.right;\n  }\n  if ( a3 )\n  {\n    result = Rect.bottom;\n    *a3 = Rect.bottom;\n  }\n  return result;\n}", "assembly": "; \n; sub_1800D6780 from 0x1800d6780 to 0x1800d67df (95 bytes)\n; \n; 5 xrefs:\n; > sub_1800D3E80 @ 0x1800d3f46\n; > sub_1800D4A20 @ 0x1800d4a45\n; > sub_1800D5230 @ 0x1800d5243\n; > sub_1800DF1F0 @ 0x1800df20c\n; > <???> @ 0x1801ba8fc\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     [rsp+arg_18], rbx                                              ; +0x0, 0x1800d6780\npush    rdi                                                            ; +0x5, 0x1800d6785\nsub     rsp, 40h                                                       ; +0x6, 0x1800d6786\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x1800d678a\nxor     rax, rsp                                                       ; +0x11, 0x1800d6791\nmov     [rsp+48h+var_18], rax                                          ; +0x14, 0x1800d6794\nmov     rcx, [rcx+370h]; hWnd                                          ; +0x19, 0x1800d6799\nmov     rdi, rdx                                                       ; +0x20, 0x1800d67a0\nlea     rdx, [rsp+48h+Rect]; lpRect                                    ; +0x23, 0x1800d67a3\nmov     rbx, r8                                                        ; +0x28, 0x1800d67a8\ncall    cs:GetClientRect                                               ; +0x2b, 0x1800d67ab\ntest    rdi, rdi                                                       ; +0x31, 0x1800d67b1\njz      short loc_1800D67BC                                            ; +0x34, 0x1800d67b4\nmov     eax, [rsp+48h+Rect.right]                                      ; +0x36, 0x1800d67b6\nmov     [rdi], eax                                                     ; +0x3a, 0x1800d67ba\ntest    rbx, rbx                                                       ; +0x3c, 0x1800d67bc\njz      short loc_1800D67C7                                            ; +0x3f, 0x1800d67bf\nmov     eax, [rsp+48h+Rect.bottom]                                     ; +0x41, 0x1800d67c1\nmov     [rbx], eax                                                     ; +0x45, 0x1800d67c5\nmov     rcx, [rsp+48h+var_18]                                          ; +0x47, 0x1800d67c7\nxor     rcx, rsp; StackCookie                                          ; +0x4c, 0x1800d67cc\ncall    __security_check_cookie                                        ; +0x4f, 0x1800d67cf\nmov     rbx, [rsp+48h+arg_18]                                          ; +0x54, 0x1800d67d4\nadd     rsp, 40h                                                       ; +0x59, 0x1800d67d9\npop     rdi                                                            ; +0x5d, 0x1800d67dd\nretn                                                                   ; +0x5e, 0x1800d67de", "xrefs": ["sub_1800D3E80 @ 0x1800d3f46", "sub_1800D4A20 @ 0x1800d4a45", "sub_1800D5230 @ 0x1800d5243", "sub_1800DF1F0 @ 0x1800df20c", "<???> @ 0x1801ba8fc"], "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"}