Function at 0x10005d90
Capabilities:
Create thread
Get process heap flags
Set thread local storage value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
lea edx, [ebp - 0xa0]
push ebx
movd xmm4, edx
mov ebx, ecx
push ecx
sub esp, 0xd4
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
mov edi, dword [ecx + 8]
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x80]
movd xmm6, eax
lea eax, [ebp - 0x44]
movd xmm5, eax
punpckldq xmm4, xmm6
punpckldq xmm5, xmm5
movq qword [ebp - 0xb0], xmm4
movq qword [ebp - 0xc8], xmm5
call sym._vcomp_init_thread_data
mov dword [ebp - 0xb8], eax
test byte [0x10008064], 8
jne 0x100062f0
mov eax, dword [ebp - 0xb8]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x10005f50
mov edx, dword [section..bss]
test edx, edx
jne 0x10005f50
lea eax, [ebp - 0xa0]
mov esi, dword [sym.imp.kernel32.dll_InitializeConditionVariable]
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0xbc]
lea edx, [ebx + 0xc]
mov dword [ebp - 0x90], edi
mov dword [ebp - 0x8c], edx
sub esp, 4
movq xmm0, qword [0x1000a7e8]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x70], 0
movq xmm4, qword [ebp - 0xb0]
movq xmm5, qword [ebp - 0xc8]
movq qword [ebp - 0x9c], xmm0
movdqu xmm0, xmmword [0x1000a7e0]
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x80], 0
test eax, eax
mov dword [ebp - 0x7c], 0
setne al
mov dword [ebp - 0x50], 0
movzx eax, al
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x3c]
movq qword [ebp - 0x58], xmm4
movups xmmword [ebp - 0x38], xmm0
movq qword [ebp - 0x44], xmm5
mov dword [esp], eax
call esi
sub esp, 4
lea eax, [ebp - 0x58]
mov ebx, dword [sym.imp.kernel32.dll_TlsSetValue]
mov dword [esp + 4], eax
mov eax, dword [0x10008058]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x8c]
sub esp, 8
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x94]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x90]
mov dword [esp], eax
call sym.__vcomp_fork_call_wrapper
mov esi, dword [ebp - 0xb8]
mov dword [esp + 4], esi
mov eax, dword [0x10008058]
mov dword [esp], eax
call ebx
mov dword [esi + 0x10], 0
sub esp, 8
cmp dword [ebp - 0x9c], 1
jg 0x10006100
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
test esi, esi
je 0x10005e1e
mov eax, dword [ebp - 0xb8]
mov esi, dword [eax + 0x10]
lea eax, [ebp - 0xa0]
test esi, esi
cmove esi, dword [0x1000e008]
mov dword [ebp - 0xa8], esi
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_InitializeConditionVariable]
mov dword [ebp - 0xb4], eax
call eax
movq xmm6, qword [ebp - 0xb0]
lea edx, [ebx + 0xc]
lea eax, [ebp - 0x3c]
mov ecx, dword [ebp - 0xbc]
sub esp, 4
mov dword [ebp - 0x90], edi
movq xmm0, qword [0x1000a7e8]
movq qword [ebp - 0x58], xmm6
movdqu xmm7, xmmword [0x1000a7e0]
movq xmm6, qword [ebp - 0xc8]
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0x8c], edx
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x48], 0
movq qword [ebp - 0x9c], xmm0
movups xmmword [ebp - 0x38], xmm7
movq qword [ebp - 0x44], xmm6
mov dword [esp], eax
mov eax, dword [ebp - 0xb4]
call eax
sub esp, 4
cmp esi, 1
jle 0x10005ed9
mov dword [esp], 0x10008040
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov edx, dword [ebp - 0x9c]
mov ebx, dword [sym.imp.kernel32.dll_WakeAllConditionVariable]
sub esp, 4
cmp edx, esi
jge 0x100060e8
mov esi, dword [ebp - 0xa8]
mov eax, dword [0x1000805c]
test eax, eax
je 0x10006198
cmp eax, 0x1000805c
je 0x10006198
movq xmm6, qword [ebp - 0xb0]
movdqu xmm7, xmmword [0x1000a7e0]
movq qword [eax - 0x14], xmm6
mov edx, dword [ebp - 0x9c]
lea ecx, [edx + 1]
mov dword [ebp - 0x9c], ecx
mov ecx, dword [eax]
mov dword [eax - 0xc], edx
mov edx, dword [ebp - 0x4c]
mov dword [eax - 4], 0
mov dword [eax - 8], edx
mov edx, dword [eax + 4]
movups xmmword [eax + 0xc], xmm7
mov dword [ecx + 4], edx
mov ecx, dword [eax]
mov dword [edx], ecx
lea ecx, [ebp - 0x44]
mov dword [eax], ecx
mov edx, dword [ebp - 0x40]
mov dword [eax + 4], edx
mov dword [edx], eax
mov dword [ebp - 0x40], eax
add eax, 8
mov dword [esp], eax
call ebx
mov edx, dword [ebp - 0x9c]
sub esp, 4
cmp edx, esi
jl 0x1000605c
lea esi, [esi]
mov dword [esp], 0x10008040
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
jmp 0x10005ed9
mov dword [esp], 0x10008040
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x98]
mov ebx, dword [sym.imp.kernel32.dll_SleepConditionVariableCS]
sub esp, 4
add eax, 1
mov dword [ebp - 0x98], eax
cmp eax, dword [ebp - 0x9c]
jge 0x1000615c
lea esi, [esi]
lea eax, [ebp - 0xa0]
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 0x10008040
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x9c]
sub esp, 0xc
cmp dword [ebp - 0x98], eax
jl 0x10006130
mov dword [esp], 0x10008040
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
lea eax, [ebp - 0x44]
sub esp, 4
cmp dword [ebp - 0x44], eax
je 0x10005f40
mov dword [esp + 8], 0x60a
mov dword [esp + 4], str._home_runner_build_wine_wine_dlls_vcomp_main.c
mov dword [esp], str.list_empty_thread_data.entry_
call dword [sym.imp.ucrtbase.dll__assert]
lea esi, [esi]
mov eax, dword [ebp - 0xa8]
cmp edx, eax
jl 0x1000620c
jmp 0x100060e8
lea eax, [ebp - 0xa4]
mov dword [esp + 8], eax
mov eax, dword [0x1000e010]
mov dword [esp], 4
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_GetModuleHandleExW]
mov ebx, dword [ebp - 0x40]
lea eax, [edi + 0x14]
lea ecx, [ebp - 0x44]
sub esp, 0xc
add dword [ebp - 0x9c], 1
mov dword [edi + 0x14], ecx
mov dword [edi + 0x18], ebx
mov dword [ebx], eax
mov dword [ebp - 0x40], eax
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 0xa8]
sub esp, 4
cmp dword [ebp - 0x9c], eax
jge 0x100060e8
mov dword [esp + 8], 0x38
mov dword [esp + 4], 0
mov ebx, dword fs:[0x18]
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov edi, eax
test eax, eax
je 0x100060e8
movd xmm2, dword [ebp - 0x4c]
mov dword [eax + 0x10], 0
lea eax, [eax + 0x1c]
movd xmm0, dword [ebp - 0x9c]
movq xmm1, qword [ebp - 0xb0]
movdqu xmm3, xmmword [0x1000a7e0]
punpckldq xmm0, xmm2
movq qword [eax - 0x1c], xmm1
movq qword [eax - 0x14], xmm0
movups xmmword [eax + 4], xmm3
mov dword [esp], eax
mov eax, dword [ebp - 0xb4]
call eax
sub esp, 4
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], sym.__vcomp_fork_worker_4
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateThread]
sub esp, 0x18
mov esi, eax
test eax, eax
jne 0x100061b0
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x100060e8
mov dword [esp + 0x18], edi
mov eax, dword [ebp - 0xbc]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.__d___d___p__...__n
mov dword [esp + 8], str._vcomp_fork
mov dword [esp + 4], 0x10008064
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x10005dff