Function at 0x101feeee
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x20], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
xor eax, eax
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [0x1065a1cc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
lea eax, [edi + 0x20]
mov esi, dword [eax]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x1c], eax
test esi, esi
je 0x101fef3b
add esi, 0xfffffff8
jmp 0x101fef3d
xor esi, esi
test esi, esi
je 0x101fefa1
mov ebx, dword [esi + 8]
test ebx, ebx
je 0x101fef4d
add ebx, 0xfffffff8
jmp 0x101fef4f
xor ebx, ebx
cmp dword [esi + 0x10], ecx
jne 0x101fef98
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
call fcn.1024da69
cmp dword [ebp - 0xc], 0
je 0x101fef95
lea eax, [esi + 8]
push eax
lea ecx, [edi + 0x20]
call fcn.1024c8c7
or dword [esi + 0x4c], 1
lea ecx, [edi + 0x1c]
and dword [esi + 0x18], 0
mov eax, dword [ebp - 8]
mov dword [esi + 0x44], eax
lea eax, [esi + 8]
push eax
mov dword [esi + 0x38], ecx
call fcn.1024c89e
mov ecx, dword [ebp - 4]
mov esi, ebx
test ebx, ebx
jne 0x101fef41
mov ebx, dword [ebp - 8]
lea eax, [edi + 0x1c]
mov esi, dword [eax]
test esi, esi
je 0x101fefaf
add esi, 0xfffffff8
jmp 0x101fefb1
xor esi, esi
mov dword [ebp - 0x10], esi
test esi, esi
je 0x101ff0b7
mov edi, eax
mov eax, dword [esi + 8]
test eax, eax
je 0x101fefcd
add eax, 0xfffffff8
mov dword [ebp - 0x18], eax
jmp 0x101fefd1
and dword [ebp - 0x18], 0
cmp dword [esi + 0x10], ecx
jne 0x101ff0a4
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
call fcn.1024da69
cmp dword [ebp - 0x14], 0
je 0x101ff000
lock inc dword [esi + 4]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x2c]
call fcn.101fec1e
cmp dword [ebp - 0xc], 0
je 0x101ff0a1
and dword [esi + 0x38], 0
lea eax, [esi + 8]
push eax
mov ecx, edi
call fcn.1024c8c7
mov ecx, esi
call fcn.1024da58
cmp dword [esi + 0x24], 0
jne 0x101ff033
or dword [esi + 0x4c], 8
mov ecx, esi
call fcn.1019b687
jmp 0x101ff0a1
movss xmm0, dword [esi + 0x20]
xorps xmm2, xmm2
subss xmm0, dword [esi + 0x1c]
movaps xmm1, xmm0
comiss xmm2, xmm1
jbe 0x101ff04b
movaps xmm1, xmm2
movss xmm3, dword [0x10588644]
xor edx, edx
comiss xmm3, xmm1
seta dl
test edx, edx
je 0x101ff067
mov dword [esi + 0x44], ebx
mov dword [ebp - 0x10], edi
jmp 0x101ff088
comiss xmm2, xmm0
jbe 0x101ff06f
movaps xmm0, xmm2
mulss xmm0, dword [0x10588648]
mov ecx, ebx
cvttss2si eax, xmm0
sub ecx, eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x44], ecx
mov dword [ebp - 0x10], eax
push edx
mov ecx, esi
call fcn.101fee8b
mov eax, dword [ebp - 0x10]
lea ecx, [esi + 8]
push ecx
mov ecx, eax
mov dword [esi + 0x38], eax
call fcn.1024c89e
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
mov esi, eax
mov dword [ebp - 0x10], esi
test eax, eax
jne 0x101fefbe
mov edi, dword [ebp - 0x20]
push ebx
mov ecx, edi
call fcn.101fed1d
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or byte [edi + 0x24], 4
lea eax, [ebp - 0x2c]
push 1
push eax
call fcn.101feea8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
sub ebx, dword [ebp - 8]
test byte [edi + 0x24], 2
je 0x101ff106
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp - 8]
mov ecx, edi
call fcn.101fed1d
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
and byte [edi + 0x24], 0xfd
cmp ebx, esi
jae 0x101ff10e
sub esi, ebx
jmp 0x101ff110
xor esi, esi
and byte [edi + 0x24], 0xfb
lea ecx, [ebp - 0x2c]
call fcn.101fedbe
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret