{"type": "func", "start": 6443339616, "end": 6443339864, "name": "sub_1800D8F60", "pseudocode": "// \n// sub_1800D8F60 from 0x1800d8f60 to 0x1800d9058 (248 bytes)\n// \n// 2 xrefs:\n// > sub_1800E1D90 @ 0x1800e20c4\n// > <???> @ 0x1801c4ab8\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\n__int64 sub_1800D8F60()\n{\n  HMODULE ModuleHandleW; // rax\n  WNDCLASSEXW v2; // [rsp+30h] [rbp-58h] BYREF\n\n  v2.cbSize = 80;\n  v2.lpfnWndProc = (WNDPROC)sub_1800DA0D0;\n  v2.hInstance = phModule;\n  *(_QWORD *)&v2.cbClsExtra = 0;\n  *(_OWORD *)&v2.hbrBackground = 0;\n  v2.hIconSm = nullptr;\n  v2.style = 35;\n  v2.hCursor = LoadCursorW(nullptr, (LPCWSTR)0x7F00);\n  v2.lpszClassName = L\"GLFW30\";\n  ModuleHandleW = GetModuleHandleW(nullptr);\n  v2.hIcon = (HICON)LoadImageW(ModuleHandleW, L\"GLFW_ICON\", 1u, 0, 0, 0x8040u);\n  if ( !v2.hIcon )\n    v2.hIcon = (HICON)LoadImageW(nullptr, (LPCWSTR)0x7F00, 1u, 0, 0, 0x8040u);\n  if ( RegisterClassExW(&v2) )\n    return 1;\n  sub_1800E1AF0(65544, \"Win32: Failed to register window class\");\n  return 0;\n}", "assembly": "; \n; sub_1800D8F60 from 0x1800d8f60 to 0x1800d9058 (248 bytes)\n; \n; 2 xrefs:\n; > sub_1800E1D90 @ 0x1800e20c4\n; > <???> @ 0x1801c4ab8\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, 0x1800d8f60\nsub     rsp, 80h                                                       ; +0x2, 0x1800d8f62\nlea     rax, sub_1800DA0D0                                             ; +0x9, 0x1800d8f69\nmov     [rsp+88h+var_58.cbSize], 50h ; 'P'                             ; +0x10, 0x1800d8f70\nmov     [rsp+88h+var_58.lpfnWndProc], rax                              ; +0x18, 0x1800d8f78\nxor     ebx, ebx                                                       ; +0x1d, 0x1800d8f7d\nmov     rax, cs:phModule                                               ; +0x1f, 0x1800d8f7f\nxorps   xmm0, xmm0                                                     ; +0x26, 0x1800d8f86\nmov     edx, 7F00h; lpCursorName                                       ; +0x29, 0x1800d8f89\nmov     [rsp+88h+var_58.hInstance], rax                                ; +0x2e, 0x1800d8f8e\nxor     ecx, ecx; hInstance                                            ; +0x33, 0x1800d8f93\nmov     qword ptr [rsp+88h+var_58.cbClsExtra], rbx                     ; +0x35, 0x1800d8f95\nmovdqa  xmmword ptr [rsp+88h+var_58.hbrBackground], xmm0               ; +0x3a, 0x1800d8f9a\nmov     [rsp+88h+var_58.hIconSm], rbx                                  ; +0x40, 0x1800d8fa0\nmov     [rsp+88h+var_58.style], 23h ; '#'                              ; +0x45, 0x1800d8fa5\ncall    cs:LoadCursorW                                                 ; +0x4d, 0x1800d8fad\nmov     [rsp+88h+var_58.hCursor], rax                                  ; +0x53, 0x1800d8fb3\nxor     ecx, ecx; lpModuleName                                         ; +0x58, 0x1800d8fb8\nlea     rax, aGlfw30; \"GLFW30\"                                         ; +0x5a, 0x1800d8fba\nmov     [rsp+88h+var_58.lpszClassName], rax                            ; +0x61, 0x1800d8fc1\ncall    cs:GetModuleHandleW                                            ; +0x66, 0x1800d8fc6\nmov     [rsp+88h+fuLoad], 8040h; fuLoad                                ; +0x6c, 0x1800d8fcc\nlea     r8d, [rbx+1]; type                                             ; +0x74, 0x1800d8fd4\nmov     rcx, rax; hInst                                                ; +0x78, 0x1800d8fd8\nmov     [rsp+88h+cy], ebx; cy                                          ; +0x7b, 0x1800d8fdb\nxor     r9d, r9d; cx                                                   ; +0x7f, 0x1800d8fdf\nlea     rdx, name; \"GLFW_ICON\"                                         ; +0x82, 0x1800d8fe2\ncall    cs:LoadImageW                                                  ; +0x89, 0x1800d8fe9\nmov     [rsp+88h+var_58.hIcon], rax                                    ; +0x8f, 0x1800d8fef\ntest    rax, rax                                                       ; +0x94, 0x1800d8ff4\njnz     short loc_1800D901E                                            ; +0x97, 0x1800d8ff7\nmov     [rsp+88h+fuLoad], 8040h; fuLoad                                ; +0x99, 0x1800d8ff9\nlea     r8d, [rbx+1]; type                                             ; +0xa1, 0x1800d9001\nxor     r9d, r9d; cx                                                   ; +0xa5, 0x1800d9005\nmov     [rsp+88h+cy], ebx; cy                                          ; +0xa8, 0x1800d9008\nmov     edx, 7F00h; name                                               ; +0xac, 0x1800d900c\nxor     ecx, ecx; hInst                                                ; +0xb1, 0x1800d9011\ncall    cs:LoadImageW                                                  ; +0xb3, 0x1800d9013\nmov     [rsp+88h+var_58.hIcon], rax                                    ; +0xb9, 0x1800d9019\nlea     rcx, [rsp+88h+var_58]; WNDCLASSEXW *                           ; +0xbe, 0x1800d901e\ncall    cs:RegisterClassExW                                            ; +0xc3, 0x1800d9023\ntest    ax, ax                                                         ; +0xc9, 0x1800d9029\njnz     short loc_1800D904A                                            ; +0xcc, 0x1800d902c\nlea     rdx, aWin32FailedToR_1; \"Win32: Failed to register window class\" ; +0xce, 0x1800d902e\nmov     ecx, 10008h                                                    ; +0xd5, 0x1800d9035\ncall    sub_1800E1AF0                                                  ; +0xda, 0x1800d903a\nxor     eax, eax                                                       ; +0xdf, 0x1800d903f\nadd     rsp, 80h                                                       ; +0xe1, 0x1800d9041\npop     rbx                                                            ; +0xe8, 0x1800d9048\nretn                                                                   ; +0xe9, 0x1800d9049\nmov     eax, 1                                                         ; +0xea, 0x1800d904a\nadd     rsp, 80h                                                       ; +0xef, 0x1800d904f\npop     rbx                                                            ; +0xf6, 0x1800d9056\nretn                                                                   ; +0xf7, 0x1800d9057", "xrefs": ["sub_1800E1D90 @ 0x1800e20c4", "<???> @ 0x1801c4ab8"], "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"}