//
// create_thread_parameter from 0x180130a50 to 0x180130aad (93 bytes)
//
// 2 xrefs:
// > _beginthreadex @ 0x180130ae6
// > ??> @ 0x180202e70
//
// 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
//
struct __acrt_thread_parameter *__fastcall create_thread_parameter(LPCWSTR lpModuleName, void *const a2)
{
void *v4; // rbx
struct __acrt_thread_parameter *result; // rax
v4 = calloc_base(1u, 0x28u);
free_base(nullptr);
result = nullptr;
if ( v4 )
{
*(_QWORD *)v4 = lpModuleName;
*((_QWORD *)v4 + 1) = a2;
GetModuleHandleExW(4u, lpModuleName, (HMODULE *)v4 + 3);
return (struct __acrt_thread_parameter *)v4;
}
return result;
}