{"type": "func", "start": 6443343824, "end": 6443344072, "name": "sub_1800D9FD0", "pseudocode": "// \n// sub_1800D9FD0 from 0x1800d9fd0 to 0x1800da0c8 (248 bytes)\n// \n// 5 xrefs:\n// > sub_1800D91F0 @ 0x1800d95c6\n// > sub_1800DA0D0 @ 0x1800db031\n// > <???> @ 0x18014c194\n// > <???> @ 0x18014c1a4\n// > <???> @ 0x1801c4b9c\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:34 +0000\n// \n\nint __fastcall sub_1800D9FD0(__int64 a1)\n{\n  int result; // eax\n  __int64 v3; // rcx\n  HRGN RectRgn; // rax\n  __int64 v5; // rcx\n  HRGN v6; // rbx\n  __int128 v7; // [rsp+20h] [rbp-28h] BYREF\n  __int64 v8; // [rsp+30h] [rbp-18h]\n  int v9; // [rsp+58h] [rbp+10h] BYREF\n  int v10; // [rsp+60h] [rbp+18h] BYREF\n  char v11; // [rsp+68h] [rbp+20h] BYREF\n\n  result = sub_1800E1CB0(6);\n  if ( result )\n  {\n    result = qword_1801B6100(&v9);\n    if ( result >= 0 )\n    {\n      if ( v9 )\n      {\n        if ( (unsigned int)sub_1800E1CB0(6) || (int)qword_1801B6118(&v11, &v10) >= 0 && !v10 )\n        {\n          RectRgn = CreateRectRgn(0, 0, -1, -1);\n          v5 = *(_QWORD *)(a1 + 880);\n          v6 = RectRgn;\n          *((_QWORD *)&v7 + 1) = RectRgn;\n          v8 = 0;\n          *(_QWORD *)&v7 = 0x100000003LL;\n          qword_1801B6110(v5, &v7);\n          return DeleteObject(v6);\n        }\n        else\n        {\n          v3 = *(_QWORD *)(a1 + 880);\n          v7 = 0;\n          LODWORD(v7) = 1;\n          v8 = 0;\n          return qword_1801B6110(v3, &v7);\n        }\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_1800D9FD0 from 0x1800d9fd0 to 0x1800da0c8 (248 bytes)\n; \n; 5 xrefs:\n; > sub_1800D91F0 @ 0x1800d95c6\n; > sub_1800DA0D0 @ 0x1800db031\n; > <???> @ 0x18014c194\n; > <???> @ 0x18014c1a4\n; > <???> @ 0x1801c4b9c\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:34 +0000\n; \npush    rdi                                                            ; +0x0, 0x1800d9fd0\nsub     rsp, 40h                                                       ; +0x2, 0x1800d9fd2\nxor     edx, edx                                                       ; +0x6, 0x1800d9fd6\nmov     rdi, rcx                                                       ; +0x8, 0x1800d9fd8\nxor     r8d, r8d                                                       ; +0xb, 0x1800d9fdb\nlea     ecx, [rdx+6]                                                   ; +0xe, 0x1800d9fde\ncall    sub_1800E1CB0                                                  ; +0x11, 0x1800d9fe1\ntest    eax, eax                                                       ; +0x16, 0x1800d9fe6\njz      loc_1800DA0C2                                                  ; +0x18, 0x1800d9fe8\nlea     rcx, [rsp+48h+arg_8]                                           ; +0x1e, 0x1800d9fee\ncall    cs:qword_1801B6100                                             ; +0x23, 0x1800d9ff3\ntest    eax, eax                                                       ; +0x29, 0x1800d9ff9\njs      loc_1800DA0C2                                                  ; +0x2b, 0x1800d9ffb\ncmp     [rsp+48h+arg_8], 0                                             ; +0x31, 0x1800da001\njz      loc_1800DA0C2                                                  ; +0x36, 0x1800da006\nxor     r8d, r8d                                                       ; +0x3c, 0x1800da00c\nlea     edx, [r8+2]                                                    ; +0x3f, 0x1800da00f\nlea     ecx, [rdx+4]                                                   ; +0x43, 0x1800da013\ncall    sub_1800E1CB0                                                  ; +0x46, 0x1800da016\ntest    eax, eax                                                       ; +0x4b, 0x1800da01b\njnz     short loc_1800DA069                                            ; +0x4d, 0x1800da01d\nlea     rdx, [rsp+48h+arg_10]                                          ; +0x4f, 0x1800da01f\nlea     rcx, [rsp+48h+arg_18]                                          ; +0x54, 0x1800da024\ncall    cs:qword_1801B6118                                             ; +0x59, 0x1800da029\ntest    eax, eax                                                       ; +0x5f, 0x1800da02f\njs      short loc_1800DA03A                                            ; +0x61, 0x1800da031\ncmp     [rsp+48h+arg_10], 0                                            ; +0x63, 0x1800da033\njz      short loc_1800DA069                                            ; +0x68, 0x1800da038\nmov     rcx, [rdi+370h]                                                ; +0x6a, 0x1800da03a\nlea     rdx, [rsp+48h+var_28]                                          ; +0x71, 0x1800da041\nxorps   xmm0, xmm0                                                     ; +0x76, 0x1800da046\nxor     eax, eax                                                       ; +0x79, 0x1800da049\nmovups  [rsp+48h+var_28], xmm0                                         ; +0x7b, 0x1800da04b\nmov     dword ptr [rsp+48h+var_28], 1                                  ; +0x80, 0x1800da050\nmov     [rsp+48h+var_18], rax                                          ; +0x88, 0x1800da058\ncall    cs:qword_1801B6110                                             ; +0x8d, 0x1800da05d\nadd     rsp, 40h                                                       ; +0x93, 0x1800da063\npop     rdi                                                            ; +0x97, 0x1800da067\nretn                                                                   ; +0x98, 0x1800da068\nmov     r9d, 0FFFFFFFFh; y2                                            ; +0x99, 0x1800da069\nmov     [rsp+48h+arg_0], rbx                                           ; +0x9f, 0x1800da06f\nmov     r8d, r9d; x2                                                   ; +0xa4, 0x1800da074\nxor     edx, edx; y1                                                   ; +0xa7, 0x1800da077\nxor     ecx, ecx; x1                                                   ; +0xa9, 0x1800da079\ncall    cs:CreateRectRgn                                               ; +0xab, 0x1800da07b\nmov     rcx, [rdi+370h]                                                ; +0xb1, 0x1800da081\nlea     rdx, [rsp+48h+var_28]                                          ; +0xb8, 0x1800da088\nmov     rbx, rax                                                       ; +0xbd, 0x1800da08d\nmov     qword ptr [rsp+48h+var_28+8], rax                              ; +0xc0, 0x1800da090\nmov     [rsp+48h+var_18], 0                                            ; +0xc5, 0x1800da095\nmov     dword ptr [rsp+48h+var_28], 3                                  ; +0xce, 0x1800da09e\nmov     dword ptr [rsp+48h+var_28+4], 1                                ; +0xd6, 0x1800da0a6\ncall    cs:qword_1801B6110                                             ; +0xde, 0x1800da0ae\nmov     rcx, rbx; ho                                                   ; +0xe4, 0x1800da0b4\ncall    cs:DeleteObject                                                ; +0xe7, 0x1800da0b7\nmov     rbx, [rsp+48h+arg_0]                                           ; +0xed, 0x1800da0bd\nadd     rsp, 40h                                                       ; +0xf2, 0x1800da0c2\npop     rdi                                                            ; +0xf6, 0x1800da0c6\nretn                                                                   ; +0xf7, 0x1800da0c7", "xrefs": ["sub_1800D91F0 @ 0x1800d95c6", "sub_1800DA0D0 @ 0x1800db031", "<???> @ 0x18014c194", "<???> @ 0x18014c1a4", "<???> @ 0x1801c4b9c"], "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"}