Function at 0x10004970
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, 0x3c
mov eax, dword [ecx + 4]
mov ebx, dword [ecx]
mov esi, dword [ecx + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x10008058]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov edi, eax
test eax, eax
je 0x10004ad0
mov edx, dword [edi + 8]
mov eax, dword [edi]
mov dword [ebp - 0x24], edx
movzx edx, byte [0x10008064]
and edx, 8
test eax, eax
je 0x10004a78
mov edi, dword [eax + 4]
test dl, dl
jne 0x10004a81
cmp edi, 1
je 0x10004a25
test esi, esi
jle 0x10004b60
mov eax, dword [ebp - 0x20]
mov ecx, esi
test eax, eax
jne 0x10004a40
mov esi, dword [ebp - 0x14]
mov eax, ebx
xor edx, edx
sub eax, esi
div ecx
xor edx, edx
neg ecx
lea esi, [eax + 1]
mov eax, esi
div edi
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x24], edx
jae 0x10004a5a
lea edx, [eax + 1]
mov esi, dword [ebp - 0x24]
imul esi, ecx
imul ecx, eax
imul esi, edx
add ebx, esi
lea eax, [ecx + ebx]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
mov dword [eax], ebx
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
mov dword [eax], ebx
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x14]
xor edx, edx
sub eax, ebx
div esi
xor edx, edx
lea esi, [eax + 1]
mov eax, esi
div edi
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x24], edx
jb 0x10004a0e
mov edx, ebx
sub edx, ecx
mov dword [ebp - 0x14], edx
cmp esi, edi
jb 0x10004a25
mov edx, dword [ebp - 0x20]
imul edx, ecx
add ebx, edx
mov edx, eax
sub eax, 1
jmp 0x10004a11
test dl, dl
je 0x10004a25
mov edi, 1
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x24], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.__u___u___d___u___p___p__n
mov dword [esp + 8], str._vcomp_for_static_simple_init
mov dword [esp + 4], 0x10008064
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x100049da
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 edi, eax
test eax, eax
je 0x10004b74
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 [edi + 4], eax
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
movups xmmword [edi + 0x20], xmm0
mov dword [esp + 4], edi
mov eax, dword [0x10008058]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
sub esp, 8
jmp 0x100049b5
mov eax, dword [ebp - 0x20]
neg eax
sbb eax, eax
xor ebx, ebx
or eax, 1
mov dword [ebp - 0x14], eax
jmp 0x10004a25
test byte [0x10008064], 2
jne 0x10004b8a
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 0x10004b7d