Function at 0x10005a00
Capabilities:
Get process heap flags
Get thread local storage value
Set thread local storage value
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
lea ecx, [ebp + 8]
sub esp, 0x28
mov eax, dword [ecx]
mov esi, dword [ecx + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [0x10008058]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x10005ad8
mov eax, dword [ebx + 4]
mov ecx, 1
mov dword [ebp - 0x18], eax
mov eax, dword [ebx]
test eax, eax
je 0x10005a44
mov ecx, dword [eax + 4]
test byte [0x10008064], 8
jne 0x10005a70
mov eax, dword [ebx + 0x2c]
cmp eax, 1
je 0x10005aad
sub eax, 2
xor edx, edx
cmp eax, 1
jbe 0x10005b68
lea esp, [ebp - 0x10]
mov eax, edx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x1c], ecx
mov dword [esp + 0x14], esi
mov eax, dword [ebp - 0x14]
mov dword [esp + 0xc], str.__p___p__n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str._vcomp_for_dynamic_next
mov dword [esp + 4], 0x10008064
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov eax, dword [ebx + 0x2c]
mov ecx, dword [ebp - 0x1c]
cmp eax, 1
jne 0x10005a55
mov eax, dword [ebx + 0x30]
mov edi, dword [ebp - 0x14]
mov edx, 1
mov dword [edi], eax
mov eax, dword [ebx + 0x34]
mov dword [esi], eax
mov eax, edx
mov dword [ebx + 0x2c], 0
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], 0x60
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 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 0x10005c20
movdqu xmm0, xmmword [0x1000a7e0]
mov dword [eax], 0
lea eax, [eax + 0x38]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 0x10], 0
mov dword [ebx + 4], eax
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
movups xmmword [ebx + 0x20], xmm0
mov dword [esp + 4], ebx
mov eax, dword [0x10008058]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
sub esp, 8
jmp 0x10005a30
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], ecx
mov dword [esp], 0x10008040
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
sub esp, 4
mov edx, dword [ebp - 0x20]
mov eax, dword [eax + 0x10]
cmp dword [ebx + 0x28], eax
je 0x10005bb0
mov dword [ebp - 0x14], edx
mov dword [esp], 0x10008040
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov edx, dword [ebp - 0x14]
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [ebp - 0x18]
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x10005b8f
mov edx, dword [edi + 0x24]
cmp eax, edx
mov edi, edx
cmovbe edi, eax
cmp dword [ebx + 0x2c], 3
mov dword [ebp - 0x1c], edi
je 0x10005c0c
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
mov edx, dword [edi + 0x14]
mov dword [eax], edx
lea eax, [ebx - 1]
imul eax, dword [edi + 0x20]
add eax, edx
mov dword [esi], eax
mov eax, dword [edi + 0x1c]
mov edx, dword [edi + 0x20]
mov dword [ebp - 0x14], eax
sub eax, ebx
imul edx, ebx
add dword [edi + 0x14], edx
xor edx, edx
test ebx, ebx
mov dword [edi + 0x1c], eax
setne dl
test eax, eax
jne 0x10005b8f
mov eax, dword [edi + 0x18]
mov dword [esi], eax
jmp 0x10005b8f
imul edx, ecx
cmp edx, eax
jae 0x10005bcd
lea eax, [eax + ecx - 1]
xor edx, edx
div ecx
mov dword [ebp - 0x1c], eax
jmp 0x10005bcd
test byte [0x10008064], 2
jne 0x10005c36
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov dword [esp + 0xc], str.could_not_create_thread_data_n
mov dword [esp + 8], str.vcomp_init_thread_data
mov dword [esp + 4], 0x10008064
mov dword [esp], 1
call sym._wine_dbg_log.constprop.1
jmp 0x10005c29