{"type": "func", "start": 6443335584, "end": 6443335764, "name": "sub_1800D7FA0", "pseudocode": "// \n// sub_1800D7FA0 from 0x1800d7fa0 to 0x1800d8054 (180 bytes)\n// \n// 3 xrefs:\n// > sub_1800DC220 @ 0x1800dc50b\n// > sub_1800DC680 @ 0x1800dc709\n// > <???> @ 0x1801c4998\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_1800D7FA0(__int64 a1)\n{\n  __int64 (__fastcall *v2)(__int64); // rax\n  HWND v3; // rcx\n  HICON v4; // rcx\n  HICON v5; // rcx\n\n  if ( *(_QWORD *)(a1 + 72) )\n    sub_1800D9F00();\n  v2 = *(__int64 (__fastcall **)(__int64))(a1 + 624);\n  if ( v2 )\n    LODWORD(v2) = v2(a1);\n  if ( qword_1801B6068 == a1 )\n    LODWORD(v2) = sub_1800D9890(a1);\n  if ( qword_1801B6070 == a1 )\n  {\n    LODWORD(v2) = ClipCursor(nullptr);\n    qword_1801B6070 = 0;\n  }\n  v3 = *(HWND *)(a1 + 880);\n  if ( v3 )\n  {\n    RemovePropW(v3, L\"GLFW\");\n    LODWORD(v2) = DestroyWindow(*(HWND *)(a1 + 880));\n    *(_QWORD *)(a1 + 880) = 0;\n  }\n  v4 = *(HICON *)(a1 + 888);\n  if ( v4 )\n    LODWORD(v2) = DestroyIcon(v4);\n  v5 = *(HICON *)(a1 + 896);\n  if ( v5 )\n    LODWORD(v2) = DestroyIcon(v5);\n  return (int)v2;\n}", "assembly": "; \n; sub_1800D7FA0 from 0x1800d7fa0 to 0x1800d8054 (180 bytes)\n; \n; 3 xrefs:\n; > sub_1800DC220 @ 0x1800dc50b\n; > sub_1800DC680 @ 0x1800dc709\n; > <???> @ 0x1801c4998\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; \npush    rbx                                                            ; +0x0, 0x1800d7fa0\nsub     rsp, 20h                                                       ; +0x2, 0x1800d7fa2\ncmp     qword ptr [rcx+48h], 0                                         ; +0x6, 0x1800d7fa6\nmov     rbx, rcx                                                       ; +0xb, 0x1800d7fab\njz      short loc_1800D7FB5                                            ; +0xe, 0x1800d7fae\ncall    sub_1800D9F00                                                  ; +0x10, 0x1800d7fb0\nmov     rax, [rbx+270h]                                                ; +0x15, 0x1800d7fb5\ntest    rax, rax                                                       ; +0x1c, 0x1800d7fbc\njz      short loc_1800D7FC6                                            ; +0x1f, 0x1800d7fbf\nmov     rcx, rbx                                                       ; +0x21, 0x1800d7fc1\ncall    rax                                                            ; +0x24, 0x1800d7fc4\ncmp     cs:qword_1801B6068, rbx                                        ; +0x26, 0x1800d7fc6\njnz     short loc_1800D7FD7                                            ; +0x2d, 0x1800d7fcd\nmov     rcx, rbx                                                       ; +0x2f, 0x1800d7fcf\ncall    sub_1800D9890                                                  ; +0x32, 0x1800d7fd2\ncmp     cs:qword_1801B6070, rbx                                        ; +0x37, 0x1800d7fd7\njnz     short loc_1800D7FF3                                            ; +0x3e, 0x1800d7fde\nxor     ecx, ecx; lpRect                                               ; +0x40, 0x1800d7fe0\ncall    cs:ClipCursor                                                  ; +0x42, 0x1800d7fe2\nmov     cs:qword_1801B6070, 0                                          ; +0x48, 0x1800d7fe8\nmov     rcx, [rbx+370h]; hWnd                                          ; +0x53, 0x1800d7ff3\ntest    rcx, rcx                                                       ; +0x5a, 0x1800d7ffa\njz      short loc_1800D8024                                            ; +0x5d, 0x1800d7ffd\nlea     rdx, String; \"GLFW\"                                            ; +0x5f, 0x1800d7fff\ncall    cs:RemovePropW                                                 ; +0x66, 0x1800d8006\nmov     rcx, [rbx+370h]; hWnd                                          ; +0x6c, 0x1800d800c\ncall    cs:DestroyWindow                                               ; +0x73, 0x1800d8013\nmov     qword ptr [rbx+370h], 0                                        ; +0x79, 0x1800d8019\nmov     rcx, [rbx+378h]; hIcon                                         ; +0x84, 0x1800d8024\ntest    rcx, rcx                                                       ; +0x8b, 0x1800d802b\njz      short loc_1800D8036                                            ; +0x8e, 0x1800d802e\ncall    cs:DestroyIcon                                                 ; +0x90, 0x1800d8030\nmov     rcx, [rbx+380h]                                                ; +0x96, 0x1800d8036\ntest    rcx, rcx                                                       ; +0x9d, 0x1800d803d\njz      short loc_1800D804E                                            ; +0xa0, 0x1800d8040\nadd     rsp, 20h                                                       ; +0xa2, 0x1800d8042\npop     rbx                                                            ; +0xa6, 0x1800d8046\njmp     cs:DestroyIcon                                                 ; +0xa7, 0x1800d8047\nadd     rsp, 20h                                                       ; +0xae, 0x1800d804e\npop     rbx                                                            ; +0xb2, 0x1800d8052\nretn                                                                   ; +0xb3, 0x1800d8053", "xrefs": ["sub_1800DC220 @ 0x1800dc50b", "sub_1800DC680 @ 0x1800dc709", "<???> @ 0x1801c4998"], "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"}