//
// sub_1800E2230 from 0x1800e2230 to 0x1800e2319 (233 bytes)
//
// 2 xrefs:
// > sub_1800DB6E0 @ 0x1800db7cb
// > ??> @ 0x1801c5268
//
// 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
//
unsigned int sub_1800E2230()
{
__int64 v0; // rdx
__int64 v1; // rcx
__int64 v2; // r8
unsigned int result; // eax
if ( Handle )
UnregisterDeviceNotification(Handle);
if ( hRecipient )
DestroyWindow(hRecipient);
sub_1800D90C0();
SystemParametersInfoW(0x2001u, 0, (PVOID)(unsigned int)pvParam, 2u);
free(qword_1801B52C0);
free(pData);
sub_1800DF7A0();
sub_1800E0CD0(v1, v0, v2);
sub_1800E17C0();
result = (unsigned int)sub_1800DE730();
if ( qword_1801B60A0 )
result = FreeLibrary(qword_1801B60A0);
if ( qword_1801B6088 )
result = FreeLibrary(qword_1801B6088);
if ( qword_1801B60B8 )
result = FreeLibrary(qword_1801B60B8);
if ( qword_1801B60F8 )
result = FreeLibrary(qword_1801B60F8);
if ( qword_1801B6120 )
result = FreeLibrary(qword_1801B6120);
if ( qword_1801B6138 )
return FreeLibrary((HMODULE)qword_1801B6138);
return result;
}