{"type": "func", "start": 6443329040, "end": 6443329220, "name": "sub_1800D6610", "pseudocode": "// \n// sub_1800D6610 from 0x1800d6610 to 0x1800d66c4 (180 bytes)\n// \n// 3 xrefs:\n// > sub_1800D44F0 @ 0x1800d47db\n// > sub_1800D4950 @ 0x1800d49d9\n// > <???> @ 0x1801ba8d8\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_1800D6610(__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_1800D8570();\n  v2 = *(__int64 (__fastcall **)(__int64))(a1 + 624);\n  if ( v2 )\n    LODWORD(v2) = v2(a1);\n  if ( qword_1801ABFE8 == a1 )\n    LODWORD(v2) = sub_1800D7F00(a1);\n  if ( qword_1801ABFF0 == a1 )\n  {\n    LODWORD(v2) = ClipCursor(nullptr);\n    qword_1801ABFF0 = 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_1800D6610 from 0x1800d6610 to 0x1800d66c4 (180 bytes)\n; \n; 3 xrefs:\n; > sub_1800D44F0 @ 0x1800d47db\n; > sub_1800D4950 @ 0x1800d49d9\n; > <???> @ 0x1801ba8d8\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    rbx                                                            ; +0x0, 0x1800d6610\nsub     rsp, 20h                                                       ; +0x2, 0x1800d6612\ncmp     qword ptr [rcx+48h], 0                                         ; +0x6, 0x1800d6616\nmov     rbx, rcx                                                       ; +0xb, 0x1800d661b\njz      short loc_1800D6625                                            ; +0xe, 0x1800d661e\ncall    sub_1800D8570                                                  ; +0x10, 0x1800d6620\nmov     rax, [rbx+270h]                                                ; +0x15, 0x1800d6625\ntest    rax, rax                                                       ; +0x1c, 0x1800d662c\njz      short loc_1800D6636                                            ; +0x1f, 0x1800d662f\nmov     rcx, rbx                                                       ; +0x21, 0x1800d6631\ncall    rax                                                            ; +0x24, 0x1800d6634\ncmp     cs:qword_1801ABFE8, rbx                                        ; +0x26, 0x1800d6636\njnz     short loc_1800D6647                                            ; +0x2d, 0x1800d663d\nmov     rcx, rbx                                                       ; +0x2f, 0x1800d663f\ncall    sub_1800D7F00                                                  ; +0x32, 0x1800d6642\ncmp     cs:qword_1801ABFF0, rbx                                        ; +0x37, 0x1800d6647\njnz     short loc_1800D6663                                            ; +0x3e, 0x1800d664e\nxor     ecx, ecx; lpRect                                               ; +0x40, 0x1800d6650\ncall    cs:ClipCursor                                                  ; +0x42, 0x1800d6652\nmov     cs:qword_1801ABFF0, 0                                          ; +0x48, 0x1800d6658\nmov     rcx, [rbx+370h]; hWnd                                          ; +0x53, 0x1800d6663\ntest    rcx, rcx                                                       ; +0x5a, 0x1800d666a\njz      short loc_1800D6694                                            ; +0x5d, 0x1800d666d\nlea     rdx, String; \"GLFW\"                                            ; +0x5f, 0x1800d666f\ncall    cs:RemovePropW                                                 ; +0x66, 0x1800d6676\nmov     rcx, [rbx+370h]; hWnd                                          ; +0x6c, 0x1800d667c\ncall    cs:DestroyWindow                                               ; +0x73, 0x1800d6683\nmov     qword ptr [rbx+370h], 0                                        ; +0x79, 0x1800d6689\nmov     rcx, [rbx+378h]; hIcon                                         ; +0x84, 0x1800d6694\ntest    rcx, rcx                                                       ; +0x8b, 0x1800d669b\njz      short loc_1800D66A6                                            ; +0x8e, 0x1800d669e\ncall    cs:DestroyIcon                                                 ; +0x90, 0x1800d66a0\nmov     rcx, [rbx+380h]                                                ; +0x96, 0x1800d66a6\ntest    rcx, rcx                                                       ; +0x9d, 0x1800d66ad\njz      short loc_1800D66BE                                            ; +0xa0, 0x1800d66b0\nadd     rsp, 20h                                                       ; +0xa2, 0x1800d66b2\npop     rbx                                                            ; +0xa6, 0x1800d66b6\njmp     cs:DestroyIcon                                                 ; +0xa7, 0x1800d66b7\nadd     rsp, 20h                                                       ; +0xae, 0x1800d66be\npop     rbx                                                            ; +0xb2, 0x1800d66c2\nretn                                                                   ; +0xb3, 0x1800d66c3", "xrefs": ["sub_1800D44F0 @ 0x1800d47db", "sub_1800D4950 @ 0x1800d49d9", "<???> @ 0x1801ba8d8"], "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"}