//
// create_thread_parameter from 0x180130a50 to 0x180130aad (93 bytes)
//
// 2 xrefs:
// > _beginthreadex @ 0x180130ae6
// > ??> @ 0x180202e70
//
// 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
//
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;
}