Function at 0x53f100
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x14
movzx eax, word [eax + 0x18]
test ax, ax
je 0x53f47f
push esi
push edi
push dword [0x884adc]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 8], 0x80
mov edx, dword [eax + 0xc]
mov dword [esp + 0x14], edx
lea ecx, [edx + 0x80]
jl 0x53f144
cmp ecx, dword [eax + 0x10]
ja 0x53f144
mov dword [eax + 0xc], ecx
jmp 0x53f156
push 0x80
mov ecx, eax
call fcn.0046a3c0
mov edx, eax
mov dword [esp + 0x14], eax
xor eax, eax
mov esi, 1
mov word [edx], ax
movaps xmm5, xmmword [0x719550]
mov dword [esp + 0x18], esi
nop dword [eax + eax]
mov eax, dword [esp + 0x20]
movaps xmm1, xmm5
movzx edx, di
shl edx, 5
shufps xmm1, xmm5, 0
mov ecx, dword [eax]
mov eax, dword [esp + 0x24]
add edx, ecx
shufps xmm1, xmm1, 0
movaps xmm2, xmmword [edx + 0x10]
movaps xmm4, xmmword [edx]
movaps xmm0, xmm2
subps xmm4, xmmword [eax + 0x10]
unpckhps xmm0, xmm1
shufps xmm2, xmm0, 0xc4
subps xmm2, xmmword [eax + 0x10]
mulps xmm4, xmmword [eax + 0x30]
mulps xmm2, xmmword [eax + 0x30]
movaps xmm3, xmm4
maxps xmm4, xmm2
minps xmm3, xmm2
movaps xmm2, xmmword [eax + 0x40]
movaps xmm0, xmm4
shufps xmm0, xmm4, 0xaa
movaps xmm1, xmm4
shufps xmm1, xmm4, 0x55
minps xmm1, xmm0
shufps xmm2, xmm2, 0
movaps xmm0, xmm3
minps xmm4, xmm2
shufps xmm0, xmm3, 0xaa
minps xmm4, xmm1
movaps xmm1, xmm3
shufps xmm1, xmm3, 0x55
maxps xmm3, xmmword [0x719320]
maxps xmm1, xmm0
maxps xmm3, xmm1
cmpleps xmm3, xmm4
movmskps eax, xmm3
test al, 1
je 0x53f422
movzx eax, word [edx + 0x1c]
test ax, ax
je 0x53f3ef
cmp esi, 0x20
jge 0x53f237
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov ax, word [edx + 0x1e]
mov word [esi + ecx*2], ax
inc ecx
movzx edi, word [edx + 0x1c]
movaps xmm5, xmmword [0x719550]
mov dword [esp + 0x18], ecx
jmp 0x53f433
mov edx, eax
mov dword [esp + 0x10], edx
nop dword [eax]
mov eax, dword [esp + 0x24]
movaps xmm1, xmm5
movzx esi, dx
shl esi, 5
shufps xmm1, xmm5, 0
shufps xmm1, xmm1, 0
mov dword [esp + 0xc], esi
movaps xmm2, xmmword [esi + ecx + 0x10]
movaps xmm4, xmmword [esi + ecx]
movaps xmm0, xmm2
subps xmm4, xmmword [eax + 0x10]
unpckhps xmm0, xmm1
shufps xmm2, xmm0, 0xc4
subps xmm2, xmmword [eax + 0x10]
mulps xmm4, xmmword [eax + 0x30]
mulps xmm2, xmmword [eax + 0x30]
movaps xmm3, xmm4
maxps xmm4, xmm2
minps xmm3, xmm2
movaps xmm2, xmmword [eax + 0x40]
movaps xmm0, xmm4
shufps xmm0, xmm4, 0xaa
movaps xmm1, xmm4
shufps xmm1, xmm4, 0x55
minps xmm1, xmm0
shufps xmm2, xmm2, 0
movaps xmm0, xmm3
minps xmm4, xmm2
shufps xmm0, xmm3, 0xaa
minps xmm4, xmm1
movaps xmm1, xmm3
shufps xmm1, xmm3, 0x55
maxps xmm3, xmmword [0x719320]
maxps xmm1, xmm0
maxps xmm3, xmm1
cmpleps xmm3, xmm4
movmskps eax, xmm3
test al, 1
je 0x53f382
cmp word [esi + ecx + 0x1c], 0
je 0x53f346
test dx, dx
je 0x53f422
movzx eax, word [esi + ecx + 0x1c]
test ax, ax
jne 0x53f3de
mov eax, dword [esp + 0xc]
movzx esi, dx
movzx edx, word [eax + ecx + 0xc]
cmp dx, di
je 0x53f31a
nop
movzx eax, dx
shl eax, 5
cmp word [eax + ecx + 0x1e], si
jne 0x53f31a
movzx esi, dx
movzx edx, word [eax + ecx + 0xc]
cmp dx, di
jne 0x53f300
test dx, dx
je 0x53f32c
movzx eax, dx
shl eax, 5
movzx eax, word [eax + ecx + 0x1e]
jmp 0x53f32f
movzx eax, si
movzx eax, ax
cmp dx, di
jne 0x53f33e
cmp ax, si
jne 0x53f33e
xor eax, eax
movzx edx, ax
jmp 0x53f3e0
mov eax, dword [esp + 0x24]
movzx esi, word [esi + ecx + 0x1e]
mov ecx, dword [eax + 0x50]
mov edx, dword [eax]
push dword [eax + 0x54]
mov eax, dword [ecx]
push dword [edx + esi*8]
mov eax, dword [eax + 4]
call eax
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
fstp dword [esp + 8]
movss xmm0, dword [esp + 8]
shufps xmm0, xmm0, 0
movups xmmword [eax + 0x40], xmm0
movaps xmm5, xmmword [0x719550]
movzx esi, dx
test dx, dx
je 0x53f422
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov eax, dword [esp + 0xc]
movzx edx, word [eax + ecx + 0xc]
cmp dx, di
je 0x53f3bc
movzx eax, dx
shl eax, 5
cmp word [eax + ecx + 0x1e], si
jne 0x53f3bc
movzx esi, dx
movzx edx, word [eax + ecx + 0xc]
cmp dx, di
jne 0x53f3a2
test dx, dx
je 0x53f3ce
movzx eax, dx
shl eax, 5
movzx eax, word [eax + ecx + 0x1e]
jmp 0x53f3d1
movzx eax, si
movzx eax, ax
cmp dx, di
jne 0x53f3de
cmp ax, si
je 0x53f422
mov edx, eax
mov dword [esp + 0x10], edx
test dx, dx
jne 0x53f240
jmp 0x53f422
mov edi, dword [esp + 0x24]
movzx esi, word [edx + 0x1e]
mov ecx, dword [edi + 0x50]
mov edx, dword [edi]
push dword [edi + 0x54]
mov eax, dword [ecx]
push dword [edx + esi*8]
mov eax, dword [eax + 4]
call eax
fstp dword [esp + 8]
movss xmm0, dword [esp + 8]
shufps xmm0, xmm0, 0
movups xmmword [edi + 0x40], xmm0
movaps xmm5, xmmword [0x719550]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
dec eax
mov dword [esp + 0x18], eax
movzx edi, word [ecx + eax*2]
mov esi, dword [esp + 0x18]
test di, di
jne 0x53f170
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [esp + 0x14]
pop edi
pop esi
cmp dword [eax + 8], 0x80
jl 0x53f472
lea ecx, [edx + 0x80]
cmp ecx, dword [eax + 0xc]
jne 0x53f472
cmp dword [eax + 0x14], edx
je 0x53f472
mov dword [eax + 0xc], edx
add esp, 0x14
ret
push 0x80
push edx
mov ecx, eax
call fcn.0046a590
add esp, 0x14
ret