Function at 0x10005210
Capabilities:
Create thread
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
push ebx
mov ebx, ecx
push ecx
sub esp, 0xc4
mov eax, dword [ecx + 8]
mov esi, dword [ecx]
mov edi, dword [ecx + 4]
mov dword [ebp - 0xa8], eax
call sym._vcomp_init_thread_data
mov dword [ebp - 0xb8], eax
test byte [0x10007064], 8
jne 0x10005758
mov eax, dword [ebp - 0xb8]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x100053b0
mov edx, dword [section..bss]
test edx, edx
jne 0x100053b0
mov eax, dword [sym.imp.kernel32.dll_InitializeConditionVariable]
lea esi, [ebp - 0xa0]
mov dword [esp], esi
mov dword [ebp - 0xac], eax
call eax
mov eax, dword [ebp - 0xa8]
lea ecx, [ebx + 0xc]
lea edx, [ebp - 0x80]
mov dword [ebp - 0x94], edi
sub esp, 4
movdqu xmm0, xmmword [0x100097e0]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x70], 0
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x54], edx
xor edx, edx
test eax, eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x58], esi
setne dl
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x4c], edx
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x9c], 1
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x48], 0
mov dword [esp], edx
movups xmmword [ebp - 0x38], xmm0
call eax
sub esp, 4
lea eax, [ebp - 0x58]
mov ebx, dword [sym.imp.kernel32.dll_TlsSetValue]
mov dword [esp + 4], eax
mov eax, dword [0x10007058]
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 edi, dword [ebp - 0xb8]
mov eax, dword [0x10007058]
mov dword [esp + 4], edi
mov dword [esp], eax
call ebx
mov dword [edi + 0x10], 0
sub esp, 8
cmp dword [ebp - 0x9c], 1
jg 0x10005560
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
test esi, esi
je 0x1000526e
mov eax, dword [ebp - 0xb8]
mov ecx, dword [sym.imp.kernel32.dll_InitializeConditionVariable]
lea esi, [ebp - 0xa0]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0xb4], ecx
mov dword [esp], esi
test eax, eax
cmove eax, dword [0x1000d008]
mov dword [ebp - 0xac], eax
call ecx
mov edx, dword [ebp - 0xa8]
lea ecx, [ebx + 0xc]
lea eax, [ebp - 0x3c]
movdqu xmm3, xmmword [0x100097e0]
sub esp, 4
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x90], edx
lea edx, [ebp - 0x80]
mov dword [ebp - 0x54], edx
lea edx, [ebp - 0x44]
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x8c], ecx
mov ecx, dword [ebp - 0xb4]
mov dword [ebp - 0x9c], 1
mov dword [ebp - 0x98], 0
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
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x44], edx
mov dword [esp], eax
movups xmmword [ebp - 0x38], xmm3
call ecx
mov edi, dword [ebp - 0xac]
sub esp, 4
cmp edi, 1
jle 0x10005335
mov dword [esp], 0x10007040
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov ebx, dword [sym.imp.kernel32.dll_WakeAllConditionVariable]
sub esp, 4
cmp dword [ebp - 0x9c], edi
jge 0x10005548
mov edi, dword [ebp - 0xac]
mov eax, dword [0x1000705c]
cmp eax, 0x1000705c
je 0x100055f8
test eax, eax
je 0x100055f8
movdqu xmm2, xmmword [0x100097e0]
lea ecx, [ebp - 0x80]
mov dword [eax - 0x14], esi
mov dword [eax - 0x10], ecx
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], xmm2
mov dword [ecx + 4], edx
mov ecx, dword [eax]
mov dword [edx], ecx
mov edx, dword [ebp - 0xa8]
mov dword [eax], edx
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
sub esp, 4
cmp dword [ebp - 0x9c], edi
jl 0x100054c3
lea esi, [esi]
mov dword [esp], 0x10007040
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
jmp 0x10005335
mov dword [esp], 0x10007040
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x98]
sub esp, 4
add eax, 1
mov dword [ebp - 0x98], eax
cmp eax, dword [ebp - 0x9c]
jge 0x100055b6
mov ebx, dword [sym.imp.kernel32.dll_SleepConditionVariableCS]
lea esi, [esi]
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 0x10007040
mov dword [esp], esi
call ebx
mov eax, dword [ebp - 0x9c]
sub esp, 0xc
cmp dword [ebp - 0x98], eax
jl 0x10005590
mov dword [esp], 0x10007040
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0xa8]
sub esp, 4
cmp dword [ebp - 0x44], eax
je 0x1000539c
mov dword [esp + 8], 0x6a4
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 - 0xac]
cmp dword [ebp - 0x9c], eax
jge 0x10005548
mov dword [ebp - 0xb0], esi
mov edi, dword fs:[0x18]
jmp 0x1000567f
lea eax, [ebp - 0xa4]
mov dword [esp], 4
mov dword [esp + 8], eax
mov eax, dword [0x1000d010]
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_GetModuleHandleExW]
mov ecx, dword [ebp - 0x40]
lea eax, [ebx + 0x14]
mov edx, dword [ebp - 0xa8]
sub esp, 0xc
add dword [ebp - 0x9c], 1
mov dword [ebx + 0x14], edx
mov dword [ebx + 0x18], ecx
mov dword [ecx], eax
mov dword [ebp - 0x40], eax
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 0xac]
sub esp, 4
cmp dword [ebp - 0x9c], eax
jge 0x10005798
mov dword [esp + 8], 0x38
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x10005798
mov eax, dword [ebp - 0xb0]
mov dword [ebx + 0x10], 0
movdqu xmm1, xmmword [0x100097e0]
mov dword [ebx], eax
lea eax, [ebp - 0x80]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x9c]
movups xmmword [ebx + 0x20], xmm1
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebx + 0xc], eax
lea eax, [ebx + 0x1c]
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], ebx
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 0x10005620
mov dword [esp + 8], ebx
mov esi, dword [ebp - 0xb0]
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x10005548
mov eax, dword [ebp - 0xa8]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], str.__d___d___p__...__n
mov dword [esp + 8], str._vcomp_fork
mov dword [esp + 4], 0x10007064
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x1000524f
mov esi, dword [ebp - 0xb0]
jmp 0x10005548