//
// sub_1800E1090 from 0x1800e1090 to 0x1800e1104 (116 bytes)
//
// 3 xrefs:
// > sub_1800E0280 @ 0x1800e0721
// > ??> @ 0x1801c5154
// > ??> @ 0x1801c5160
//
// 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:36 +0000
//
int __fastcall sub_1800E1090(_QWORD *a1)
{
HMODULE v2; // rcx
int result; // eax
v2 = (HMODULE)a1[85];
if ( v2 )
{
result = FreeLibrary(v2);
a1[85] = 0;
}
if ( a1[84] )
{
result = eglDestroySurface(qword_1801B61E8);
a1[84] = 0;
}
if ( a1[83] )
{
result = eglDestroyContext(qword_1801B61E8);
a1[83] = 0;
}
return result;
}