{"type": "func", "start": 6443333072, "end": 6443333320, "name": "sub_1800D75D0", "pseudocode": "// \n// sub_1800D75D0 from 0x1800d75d0 to 0x1800d76c8 (248 bytes)\n// \n// 2 xrefs:\n// > sub_1800D9E40 @ 0x1800da174\n// > <???> @ 0x1801ba9f8\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\n__int64 sub_1800D75D0()\n{\n  HMODULE ModuleHandleW; // rax\n  WNDCLASSEXW v2; // [rsp+30h] [rbp-58h] BYREF\n\n  v2.cbSize = 80;\n  v2.lpfnWndProc = (WNDPROC)sub_1800D8740;\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_1800D9BA0(65544, \"Win32: Failed to register window class\");\n  return 0;\n}", "assembly": "; \n; sub_1800D75D0 from 0x1800d75d0 to 0x1800d76c8 (248 bytes)\n; \n; 2 xrefs:\n; > sub_1800D9E40 @ 0x1800da174\n; > <???> @ 0x1801ba9f8\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, 0x1800d75d0\nsub     rsp, 80h                                                       ; +0x2, 0x1800d75d2\nlea     rax, sub_1800D8740                                             ; +0x9, 0x1800d75d9\nmov     [rsp+88h+var_58.cbSize], 50h ; 'P'                             ; +0x10, 0x1800d75e0\nmov     [rsp+88h+var_58.lpfnWndProc], rax                              ; +0x18, 0x1800d75e8\nxor     ebx, ebx                                                       ; +0x1d, 0x1800d75ed\nmov     rax, cs:phModule                                               ; +0x1f, 0x1800d75ef\nxorps   xmm0, xmm0                                                     ; +0x26, 0x1800d75f6\nmov     edx, 7F00h; lpCursorName                                       ; +0x29, 0x1800d75f9\nmov     [rsp+88h+var_58.hInstance], rax                                ; +0x2e, 0x1800d75fe\nxor     ecx, ecx; hInstance                                            ; +0x33, 0x1800d7603\nmov     qword ptr [rsp+88h+var_58.cbClsExtra], rbx                     ; +0x35, 0x1800d7605\nmovdqa  xmmword ptr [rsp+88h+var_58.hbrBackground], xmm0               ; +0x3a, 0x1800d760a\nmov     [rsp+88h+var_58.hIconSm], rbx                                  ; +0x40, 0x1800d7610\nmov     [rsp+88h+var_58.style], 23h ; '#'                              ; +0x45, 0x1800d7615\ncall    cs:LoadCursorW                                                 ; +0x4d, 0x1800d761d\nmov     [rsp+88h+var_58.hCursor], rax                                  ; +0x53, 0x1800d7623\nxor     ecx, ecx; lpModuleName                                         ; +0x58, 0x1800d7628\nlea     rax, aGlfw30; \"GLFW30\"                                         ; +0x5a, 0x1800d762a\nmov     [rsp+88h+var_58.lpszClassName], rax                            ; +0x61, 0x1800d7631\ncall    cs:GetModuleHandleW                                            ; +0x66, 0x1800d7636\nmov     [rsp+88h+fuLoad], 8040h; fuLoad                                ; +0x6c, 0x1800d763c\nlea     r8d, [rbx+1]; type                                             ; +0x74, 0x1800d7644\nmov     rcx, rax; hInst                                                ; +0x78, 0x1800d7648\nmov     [rsp+88h+cy], ebx; cy                                          ; +0x7b, 0x1800d764b\nxor     r9d, r9d; cx                                                   ; +0x7f, 0x1800d764f\nlea     rdx, name; \"GLFW_ICON\"                                         ; +0x82, 0x1800d7652\ncall    cs:LoadImageW                                                  ; +0x89, 0x1800d7659\nmov     [rsp+88h+var_58.hIcon], rax                                    ; +0x8f, 0x1800d765f\ntest    rax, rax                                                       ; +0x94, 0x1800d7664\njnz     short loc_1800D768E                                            ; +0x97, 0x1800d7667\nmov     [rsp+88h+fuLoad], 8040h; fuLoad                                ; +0x99, 0x1800d7669\nlea     r8d, [rbx+1]; type                                             ; +0xa1, 0x1800d7671\nxor     r9d, r9d; cx                                                   ; +0xa5, 0x1800d7675\nmov     [rsp+88h+cy], ebx; cy                                          ; +0xa8, 0x1800d7678\nmov     edx, 7F00h; name                                               ; +0xac, 0x1800d767c\nxor     ecx, ecx; hInst                                                ; +0xb1, 0x1800d7681\ncall    cs:LoadImageW                                                  ; +0xb3, 0x1800d7683\nmov     [rsp+88h+var_58.hIcon], rax                                    ; +0xb9, 0x1800d7689\nlea     rcx, [rsp+88h+var_58]; WNDCLASSEXW *                           ; +0xbe, 0x1800d768e\ncall    cs:RegisterClassExW                                            ; +0xc3, 0x1800d7693\ntest    ax, ax                                                         ; +0xc9, 0x1800d7699\njnz     short loc_1800D76BA                                            ; +0xcc, 0x1800d769c\nlea     rdx, aWin32FailedToR_1; \"Win32: Failed to register window class\" ; +0xce, 0x1800d769e\nmov     ecx, 10008h                                                    ; +0xd5, 0x1800d76a5\ncall    sub_1800D9BA0                                                  ; +0xda, 0x1800d76aa\nxor     eax, eax                                                       ; +0xdf, 0x1800d76af\nadd     rsp, 80h                                                       ; +0xe1, 0x1800d76b1\npop     rbx                                                            ; +0xe8, 0x1800d76b8\nretn                                                                   ; +0xe9, 0x1800d76b9\nmov     eax, 1                                                         ; +0xea, 0x1800d76ba\nadd     rsp, 80h                                                       ; +0xef, 0x1800d76bf\npop     rbx                                                            ; +0xf6, 0x1800d76c6\nretn                                                                   ; +0xf7, 0x1800d76c7", "xrefs": ["sub_1800D9E40 @ 0x1800da174", "<???> @ 0x1801ba9f8"], "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"}