//
// StartAddress from 0x1800c0760 to 0x1800c084d (237 bytes)
//
// 2 xrefs:
// > FMOD_OS_Thread_Create @ 0x1800c1626
// > ??> @ 0x1801fda58
//
// 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
//
void __fastcall __noreturn StartAddress(void (__fastcall **a1)(__int64))
{
void (__fastcall *v2)(__int64); // rdi
void (__fastcall *v3)(__int64); // rsi
const CHAR *v4; // r8
HANDLE CurrentThread; // rax
WCHAR WideCharStr[256]; // [rsp+30h] [rbp-218h] BYREF
v2 = *a1;
v3 = a1[1];
if ( qword_1801EF770 )
{
v4 = (const CHAR *)a1[2];
WideCharStr[255] = 0;
MultiByteToWideChar(0xFDE9u, 0, v4, -1, WideCharStr, 255);
CurrentThread = GetCurrentThread();
qword_1801EF770(CurrentThread, WideCharStr);
}
sub_1800B6AA0(*((_QWORD *)off_1801AED20 + 52), a1);
CoInitializeEx(nullptr, 2u);
v2((__int64)v3);
CoUninitialize();
endthreadex(0);
}