{"type": "func", "start": 6443337280, "end": 6443337528, "name": "sub_1800D8640", "pseudocode": "// \n// sub_1800D8640 from 0x1800d8640 to 0x1800d8738 (248 bytes)\n// \n// 5 xrefs:\n// > sub_1800D7860 @ 0x1800d7c36\n// > sub_1800D8740 @ 0x1800d96a1\n// > <???> @ 0x180142f08\n// > <???> @ 0x180142f18\n// > <???> @ 0x1801baadc\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_1800D8640(__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_1800D9D60(6);\n  if ( result )\n  {\n    result = qword_1801AC080(&v9);\n    if ( result >= 0 )\n    {\n      if ( v9 )\n      {\n        if ( (unsigned int)sub_1800D9D60(6) || (int)qword_1801AC098(&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_1801AC090(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_1801AC090(v3, &v7);\n        }\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_1800D8640 from 0x1800d8640 to 0x1800d8738 (248 bytes)\n; \n; 5 xrefs:\n; > sub_1800D7860 @ 0x1800d7c36\n; > sub_1800D8740 @ 0x1800d96a1\n; > <???> @ 0x180142f08\n; > <???> @ 0x180142f18\n; > <???> @ 0x1801baadc\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, 0x1800d8640\nsub     rsp, 40h                                                       ; +0x2, 0x1800d8642\nxor     edx, edx                                                       ; +0x6, 0x1800d8646\nmov     rdi, rcx                                                       ; +0x8, 0x1800d8648\nxor     r8d, r8d                                                       ; +0xb, 0x1800d864b\nlea     ecx, [rdx+6]                                                   ; +0xe, 0x1800d864e\ncall    sub_1800D9D60                                                  ; +0x11, 0x1800d8651\ntest    eax, eax                                                       ; +0x16, 0x1800d8656\njz      loc_1800D8732                                                  ; +0x18, 0x1800d8658\nlea     rcx, [rsp+48h+arg_8]                                           ; +0x1e, 0x1800d865e\ncall    cs:qword_1801AC080                                             ; +0x23, 0x1800d8663\ntest    eax, eax                                                       ; +0x29, 0x1800d8669\njs      loc_1800D8732                                                  ; +0x2b, 0x1800d866b\ncmp     [rsp+48h+arg_8], 0                                             ; +0x31, 0x1800d8671\njz      loc_1800D8732                                                  ; +0x36, 0x1800d8676\nxor     r8d, r8d                                                       ; +0x3c, 0x1800d867c\nlea     edx, [r8+2]                                                    ; +0x3f, 0x1800d867f\nlea     ecx, [rdx+4]                                                   ; +0x43, 0x1800d8683\ncall    sub_1800D9D60                                                  ; +0x46, 0x1800d8686\ntest    eax, eax                                                       ; +0x4b, 0x1800d868b\njnz     short loc_1800D86D9                                            ; +0x4d, 0x1800d868d\nlea     rdx, [rsp+48h+arg_10]                                          ; +0x4f, 0x1800d868f\nlea     rcx, [rsp+48h+arg_18]                                          ; +0x54, 0x1800d8694\ncall    cs:qword_1801AC098                                             ; +0x59, 0x1800d8699\ntest    eax, eax                                                       ; +0x5f, 0x1800d869f\njs      short loc_1800D86AA                                            ; +0x61, 0x1800d86a1\ncmp     [rsp+48h+arg_10], 0                                            ; +0x63, 0x1800d86a3\njz      short loc_1800D86D9                                            ; +0x68, 0x1800d86a8\nmov     rcx, [rdi+370h]                                                ; +0x6a, 0x1800d86aa\nlea     rdx, [rsp+48h+var_28]                                          ; +0x71, 0x1800d86b1\nxorps   xmm0, xmm0                                                     ; +0x76, 0x1800d86b6\nxor     eax, eax                                                       ; +0x79, 0x1800d86b9\nmovups  [rsp+48h+var_28], xmm0                                         ; +0x7b, 0x1800d86bb\nmov     dword ptr [rsp+48h+var_28], 1                                  ; +0x80, 0x1800d86c0\nmov     [rsp+48h+var_18], rax                                          ; +0x88, 0x1800d86c8\ncall    cs:qword_1801AC090                                             ; +0x8d, 0x1800d86cd\nadd     rsp, 40h                                                       ; +0x93, 0x1800d86d3\npop     rdi                                                            ; +0x97, 0x1800d86d7\nretn                                                                   ; +0x98, 0x1800d86d8\nmov     r9d, 0FFFFFFFFh; y2                                            ; +0x99, 0x1800d86d9\nmov     [rsp+48h+arg_0], rbx                                           ; +0x9f, 0x1800d86df\nmov     r8d, r9d; x2                                                   ; +0xa4, 0x1800d86e4\nxor     edx, edx; y1                                                   ; +0xa7, 0x1800d86e7\nxor     ecx, ecx; x1                                                   ; +0xa9, 0x1800d86e9\ncall    cs:CreateRectRgn                                               ; +0xab, 0x1800d86eb\nmov     rcx, [rdi+370h]                                                ; +0xb1, 0x1800d86f1\nlea     rdx, [rsp+48h+var_28]                                          ; +0xb8, 0x1800d86f8\nmov     rbx, rax                                                       ; +0xbd, 0x1800d86fd\nmov     qword ptr [rsp+48h+var_28+8], rax                              ; +0xc0, 0x1800d8700\nmov     [rsp+48h+var_18], 0                                            ; +0xc5, 0x1800d8705\nmov     dword ptr [rsp+48h+var_28], 3                                  ; +0xce, 0x1800d870e\nmov     dword ptr [rsp+48h+var_28+4], 1                                ; +0xd6, 0x1800d8716\ncall    cs:qword_1801AC090                                             ; +0xde, 0x1800d871e\nmov     rcx, rbx; ho                                                   ; +0xe4, 0x1800d8724\ncall    cs:DeleteObject                                                ; +0xe7, 0x1800d8727\nmov     rbx, [rsp+48h+arg_0]                                           ; +0xed, 0x1800d872d\nadd     rsp, 40h                                                       ; +0xf2, 0x1800d8732\npop     rdi                                                            ; +0xf6, 0x1800d8736\nretn                                                                   ; +0xf7, 0x1800d8737", "xrefs": ["sub_1800D7860 @ 0x1800d7c36", "sub_1800D8740 @ 0x1800d96a1", "<???> @ 0x180142f08", "<???> @ 0x180142f18", "<???> @ 0x1801baadc"], "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"}