Function at 0x687851d0
Capabilities:
Get 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
push ecx
sub esp, 0x58
mov eax, dword [ecx]
mov esi, dword [ecx + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x20], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x28], eax
mov eax, dword [0x68788058]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x687853c8
mov eax, dword [ebx]
mov edi, dword [ebx + 4]
mov ecx, 1
test eax, eax
je 0x6878522a
mov ecx, dword [eax + 4]
mov eax, dword [ebx + 8]
mov dword [ebp - 0x2c], eax
test byte [0x68788064], 8
jne 0x68785360
test esi, esi
jle 0x687853b2
test byte [ebp - 0x1c], 0x40
jne 0x687852f0
mov eax, dword [ebp - 0x20]
xor edx, edx
sub eax, dword [ebp - 0x24]
div esi
mov edx, dword [ebp - 0x1c]
and edx, 0xffffffbf
neg esi
inc eax
mov dword [ebp - 0x30], eax
cmp edx, 1
je 0x6878530d
lea eax, [edx - 2]
cmp eax, 1
jbe 0x68785288
mov edx, 3
test byte [0x68788064], 1
jne 0x687853e0
mov dword [ebp - 0x1c], edx
mov dword [esp], 0x68788040
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x28]
mov edx, dword [ebp - 0x1c]
sub esp, 4
inc eax
mov dword [ebx + 0x2c], edx
mov dword [ebx + 0x28], eax
mov edx, eax
sub edx, dword [edi + 0x10]
test edx, edx
jle 0x687852cf
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x20]
mov dword [edi + 0x20], esi
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 0x24]
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0x30]
mov dword [edi + 0x1c], eax
mov eax, dword [ebp - 0x28]
mov dword [edi + 0x24], eax
mov dword [esp], 0x68788040
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov eax, dword [ebp - 0x24]
xor edx, edx
sub eax, dword [ebp - 0x20]
div esi
mov edx, dword [ebp - 0x1c]
and edx, 0xffffffbf
inc eax
mov dword [ebp - 0x30], eax
cmp edx, 1
jne 0x6878526e
mov eax, dword [ebp - 0x30]
xor edx, edx
div ecx
cmp dword [ebp - 0x2c], edx
jb 0x687853d8
cmp ecx, dword [ebp - 0x30]
ja 0x687853b2
imul edx, esi
add dword [ebp - 0x20], edx
mov edx, eax
dec eax
imul eax, esi
mov dword [ebx + 0x2c], 1
imul edx, esi
imul edx, dword [ebp - 0x2c]
add edx, dword [ebp - 0x20]
mov dword [ebx + 0x30], edx
add edx, eax
mov dword [ebx + 0x34], edx
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov eax, dword [ebp - 0x28]
mov dword [esp + 0x1c], esi
mov dword [esp + 0xc], str.__u___u___u___d___u__n
mov dword [esp + 0x20], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 8], str._vcomp_for_dynamic_init
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], 0x68788064
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], 3
mov dword [esp + 0x10], eax
mov dword [ebp - 0x30], ecx
call sym._wine_dbg_log.constprop.0
mov ecx, dword [ebp - 0x30]
test esi, esi
jg 0x68785245
mov dword [ebx + 0x2c], 0
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
call sym._vcomp_init_thread_data.part.0
mov ebx, eax
jmp 0x68785219
lea edx, [eax + 1]
jmp 0x6878532f
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0xc], str.unsupported_flags__u_n
mov dword [esp + 8], str._vcomp_for_dynamic_init
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x68788064
mov dword [esp], 0
mov dword [ebp - 0x2c], edx
call sym._wine_dbg_log.constprop.0
mov edx, dword [ebp - 0x2c]
jmp 0x68785288