//
// sub_1800C13E0 from 0x1800c13e0 to 0x1800c1475 (149 bytes)
//
// 2 xrefs:
// > sub_1800D4520 @ 0x1800d4540
// > ??> @ 0x1801fdba8
//
// 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
//
__int64 sub_1800C13E0()
{
if ( hLibModule )
{
FreeLibrary(hLibModule);
hLibModule = nullptr;
}
if ( qword_1801EF758 )
{
(*(void (__fastcall **)(LPVOID))(*(_QWORD *)ppv + 56LL))(ppv);
sub_1800B6AA0(*((_QWORD *)off_1801AED20 + 52), (_DWORD *)qword_1801EF758);
qword_1801EF758 = 0;
}
if ( ppv )
{
(*(void (__fastcall **)(LPVOID))(*(_QWORD *)ppv + 16LL))(ppv);
ppv = nullptr;
}
return 0;
}