//
// unknown_libname_61 from 0x180130984 to 0x1801309ea (102 bytes)
//
// 2 xrefs:
// > _beginthreadex @ 0x180130b00
// > ??> @ 0x180202e58
//
// 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:54:58 +0000
//
// Microsoft VisualC 64bit universal runtime
void __fastcall __noreturn unknown_libname_61(_BYTE *lpThreadParameter)
{
DWORD LastError; // eax
unsigned int v3; // eax
if ( !lpThreadParameter )
{
LastError = GetLastError();
ExitThread(LastError);
}
*(_QWORD *)(_acrt_getptd() + 960) = lpThreadParameter;
if ( (unsigned int)_acrt_get_begin_thread_init_policy() == 2 )
lpThreadParameter[32] = (unsigned int)_acrt_RoInitialize(1) == 0;
v3 = (*(__int64 (__fastcall **)(_QWORD))lpThreadParameter)(*((_QWORD *)lpThreadParameter + 1));
endthreadex(v3);
}