//
// sub_1800D8F60 from 0x1800d8f60 to 0x1800d9058 (248 bytes)
//
// 2 xrefs:
// > sub_1800E1D90 @ 0x1800e20c4
// > ??> @ 0x1801c4ab8
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:22:33 +0000
//
__int64 sub_1800D8F60()
{
HMODULE ModuleHandleW; // rax
WNDCLASSEXW v2; // [rsp+30h] [rbp-58h] BYREF
v2.cbSize = 80;
v2.lpfnWndProc = (WNDPROC)sub_1800DA0D0;
v2.hInstance = phModule;
*(_QWORD *)&v2.cbClsExtra = 0;
*(_OWORD *)&v2.hbrBackground = 0;
v2.hIconSm = nullptr;
v2.style = 35;
v2.hCursor = LoadCursorW(nullptr, (LPCWSTR)0x7F00);
v2.lpszClassName = L"GLFW30";
ModuleHandleW = GetModuleHandleW(nullptr);
v2.hIcon = (HICON)LoadImageW(ModuleHandleW, L"GLFW_ICON", 1u, 0, 0, 0x8040u);
if ( !v2.hIcon )
v2.hIcon = (HICON)LoadImageW(nullptr, (LPCWSTR)0x7F00, 1u, 0, 0, 0x8040u);
if ( RegisterClassExW(&v2) )
return 1;
sub_1800E1AF0(65544, "Win32: Failed to register window class");
return 0;
}