//
// sub_1800E2C50 from 0x1800e2c50 to 0x1800e2d04 (180 bytes)
//
// 4 xrefs:
// > sub_1800DBF20 @ 0x1800dbf4f
// > sub_1800E2D10 @ 0x1800e2ef2
// > sub_1800E3490 @ 0x1800e34c2
// > ??> @ 0x1801c52bc
//
// 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:37 +0000
//
__int64 __fastcall sub_1800E2C50(__int64 a1, int *a2)
{
DWORD dmBitsPerPel; // ecx
DEVMODEW DevMode; // [rsp+20h] [rbp-F8h] BYREF
memset(&DevMode, 0, sizeof(DevMode));
DevMode.dmSize = 220;
EnumDisplaySettingsW((LPCWSTR)(a1 + 264), 0xFFFFFFFF, &DevMode);
dmBitsPerPel = DevMode.dmBitsPerPel;
*a2 = DevMode.dmPelsWidth;
a2[1] = DevMode.dmPelsHeight;
a2[5] = DevMode.dmDisplayFrequency;
return sub_1800DBE10(dmBitsPerPel, a2 + 2, a2 + 3, a2 + 4);
}