//
// __acrt_uninitialize_winapi_thunks from 0x180135f18 to 0x180135f59 (65 bytes)
//
// 2 xrefs:
// > ??> @ 0x180173098
// > ??> @ 0x180203494
//
// 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 10:55:00 +0000
//
char __fastcall _acrt_uninitialize_winapi_thunks(char a1)
{
__int64 *v1; // rbx
HMODULE v2; // rcx
if ( !a1 )
{
v1 = qword_1801F4FA0;
do
{
v2 = (HMODULE)*v1;
if ( *v1 )
{
if ( v2 != (HMODULE)-1LL )
FreeLibrary(v2);
*v1 = 0;
}
++v1;
}
while ( v1 != qword_1801F5040 );
}
return 1;
}