Function at 0x68785660
Capabilities:
Create thread
Get thread local storage value
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, 0xd8
mov eax, dword [ecx + 8]
mov edi, dword [ecx]
mov esi, dword [ecx + 4]
mov dword [ebp - 0xac], eax
mov eax, dword [0x68788058]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov dword [ebp - 0xbc], eax
sub esp, 4
test eax, eax
je 0x68785c50
test byte [0x68788064], 8
jne 0x68785c10
mov eax, dword [ebp - 0xbc]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x68785820
mov edx, dword [section..bss]
test edx, edx
jne 0x68785820
mov eax, dword [sym.imp.kernel32.dll_InitializeConditionVariable]
lea edi, [ebp - 0x98]
add ebx, 0xc
mov dword [esp], edi
mov dword [ebp - 0xb0], eax
call eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x8c], esi
lea edx, [ebp - 0x78]
mov dword [ebp - 0x84], ebx
sub esp, 4
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x68], 0
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x4c], edx
xor edx, edx
test eax, eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x50], edi
setne dl
mov dword [ebp - 0xac], eax
mov dword [ebp - 0x44], edx
lea edx, [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x94], 1
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], 0
mov dword [esp], edx
call eax
sub esp, 4
lea eax, [ebp - 0x50]
mov ebx, dword [sym.imp.kernel32.dll_TlsSetValue]
mov dword [esp + 4], eax
mov eax, dword [0x68788058]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x84]
sub esp, 8
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x8c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x88]
mov dword [esp], eax
call sym.__vcomp_fork_call_wrapper
mov esi, dword [ebp - 0xbc]
mov eax, dword [0x68788058]
mov dword [esp + 4], esi
mov dword [esp], eax
call ebx
mov dword [esi + 0x10], 0
sub esp, 8
cmp dword [ebp - 0x94], 1
jg 0x687859e8
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
test edi, edi
je 0x687856d2
mov eax, dword [ebp - 0xbc]
mov ecx, dword [sym.imp.kernel32.dll_InitializeConditionVariable]
lea edi, [ebp - 0x98]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0xb8], ecx
mov dword [esp], edi
test eax, eax
cmove eax, dword [0x6878d008]
add ebx, 0xc
mov dword [ebp - 0xb0], eax
call ecx
mov edx, dword [ebp - 0xac]
lea eax, [ebp - 0x34]
mov dword [ebp - 0x50], edi
sub esp, 4
mov dword [ebp - 0x8c], esi
mov ecx, dword [ebp - 0xb8]
mov dword [ebp - 0x88], edx
lea edx, [ebp - 0x78]
mov dword [ebp - 0x4c], edx
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x94], 1
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], 0
mov dword [ebp - 0xac], edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x3c], edx
mov dword [esp], eax
call ecx
mov esi, dword [ebp - 0xb0]
sub esp, 4
cmp esi, 1
jle 0x687857a3
mov dword [esp], 0x68788040
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov ebx, dword [sym.imp.kernel32.dll_WakeAllConditionVariable]
sub esp, 4
cmp dword [ebp - 0x94], esi
jge 0x687859d0
mov esi, dword [ebp - 0xb0]
mov eax, dword [0x6878805c]
cmp eax, 0x6878805c
je 0x68785a90
test eax, eax
je 0x68785a90
lea ecx, [ebp - 0x78]
mov dword [eax - 0x14], edi
mov dword [eax - 0x10], ecx
mov edx, dword [ebp - 0x94]
mov dword [eax + 0x10], 1
lea ecx, [edx + 1]
mov dword [eax + 0x14], 1
mov dword [ebp - 0x94], ecx
mov ecx, dword [eax]
mov dword [eax - 0xc], edx
mov edx, dword [ebp - 0x44]
mov dword [eax + 0x18], 0
mov dword [eax - 8], edx
mov edx, dword [eax + 4]
mov dword [eax - 4], 0
mov dword [eax + 0xc], 1
mov dword [ecx + 4], edx
mov ecx, dword [eax]
mov dword [edx], ecx
mov edx, dword [ebp - 0xac]
mov dword [eax], edx
mov edx, dword [ebp - 0x38]
mov dword [eax + 4], edx
mov dword [edx], eax
mov dword [ebp - 0x38], eax
add eax, 8
mov dword [esp], eax
call ebx
sub esp, 4
cmp dword [ebp - 0x94], esi
jl 0x6878593d
nop
mov dword [esp], 0x68788040
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
jmp 0x687857a3
mov dword [esp], 0x68788040
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x90]
sub esp, 4
inc eax
mov dword [ebp - 0x90], eax
cmp eax, dword [ebp - 0x94]
jge 0x68785a3e
mov ebx, dword [sym.imp.kernel32.dll_SleepConditionVariableCS]
lea esi, [esi]
nop
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 0x68788040
mov dword [esp], edi
call ebx
mov eax, dword [ebp - 0x94]
sub esp, 0xc
cmp dword [ebp - 0x90], eax
jl 0x68785a18
mov dword [esp], 0x68788040
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0xac]
sub esp, 4
cmp dword [ebp - 0x3c], eax
je 0x6878580a
mov dword [esp + 8], 0x6a1
mov dword [esp + 4], str..._src_wine_dlls_vcomp_main.c
mov dword [esp], str.list_empty_thread_data.entry_
call dword [sym.imp.ucrtbase.dll__assert]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov eax, dword [ebp - 0xb0]
cmp dword [ebp - 0x94], eax
jge 0x687859d0
mov eax, dword fs:[0x18]
mov dword [ebp - 0xb4], edi
mov esi, eax
mov dword [ebp - 0xc0], eax
jmp 0x68785b1e
lea eax, [ebp - 0x9c]
mov dword [esp], 4
mov dword [esp + 8], eax
mov eax, dword [0x6878d010]
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_GetModuleHandleExW]
mov ecx, dword [ebp - 0x38]
lea eax, [ebx + 0x14]
mov edx, dword [ebp - 0xac]
sub esp, 0xc
inc dword [ebp - 0x94]
mov dword [ebx + 0x14], edx
mov dword [ebx + 0x18], ecx
mov dword [ecx], eax
mov dword [ebp - 0x38], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 0xb0]
sub esp, 4
cmp dword [ebp - 0x94], eax
jge 0x68785c60
mov dword [esp + 8], 0x38
mov dword [esp + 4], 0
mov eax, dword [esi + 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 0x68785c60
mov eax, dword [ebp - 0xb4]
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x20], 1
mov dword [ebx], eax
lea eax, [ebp - 0x78]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x94]
mov dword [ebx + 0x24], 1
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x44]
mov dword [ebx + 0x28], 1
mov dword [ebx + 0xc], eax
lea eax, [ebx + 0x1c]
mov dword [ebx + 0x2c], 0
mov dword [esp], eax
mov eax, dword [ebp - 0xb8]
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 edi, eax
test eax, eax
jne 0x68785ac0
mov eax, dword [ebp - 0xc0]
mov edi, dword [ebp - 0xb4]
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x687859d0
mov eax, dword [ebp - 0xac]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
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], 0x68788064
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x687856b3
call sym._vcomp_init_thread_data.part.0
mov dword [ebp - 0xbc], eax
jmp 0x687856a6
mov edi, dword [ebp - 0xb4]
jmp 0x687859d0