//
// sub_1800DA2E0 from 0x1800da2e0 to 0x1800da3c9 (233 bytes)
//
// 2 xrefs:
// > sub_1800D39B0 @ 0x1800d3a9b
// > ??> @ 0x1801babe4
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int sub_1800DA2E0()
{
int result; // eax
if ( Handle )
UnregisterDeviceNotification(Handle);
if ( hRecipient )
DestroyWindow((HWND)hRecipient);
sub_1800D7730();
SystemParametersInfoW(0x2001u, 0, (PVOID)(unsigned int)pvParam, 2u);
free(qword_1801AB240);
free(pData);
sub_1800DD130();
sub_1800DE660();
sub_1800DF150();
result = sub_1800DC0C0();
if ( hLibModule )
result = FreeLibrary(hLibModule);
if ( qword_1801AC008 )
result = FreeLibrary(qword_1801AC008);
if ( hModule )
result = FreeLibrary(hModule);
if ( qword_1801AC078 )
result = FreeLibrary(qword_1801AC078);
if ( qword_1801AC0A0 )
result = FreeLibrary(qword_1801AC0A0);
if ( qword_1801AC0B8 )
return FreeLibrary((HMODULE)qword_1801AC0B8);
return result;
}