Function at 0x53ea20
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x14
push esi
mov esi, dword [esp + 0x1c]
movzx eax, word [esi + 0x18]
test ax, ax
je 0x53edb6
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 0x53ea64
cmp ecx, dword [eax + 0x10]
ja 0x53ea64
mov dword [eax + 0xc], ecx
jmp 0x53ea76
push 0x80
mov ecx, eax
call fcn.0046a3c0
mov edx, eax
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x18], 1
mov word [edx], ax
movaps xmm5, xmmword [0x719550]
mov edx, dword [esp + 0x24]
nop
mov ecx, dword [esi]
movaps xmm1, xmm5
movzx esi, di
shl esi, 5
add esi, ecx
shufps xmm1, xmm5, 0
shufps xmm1, xmm1, 0
movaps xmm2, xmmword [esi + 0x10]
movaps xmm4, xmmword [esi]
movaps xmm0, xmm2
subps xmm4, xmmword [edx + 0x60]
unpckhps xmm0, xmm1
shufps xmm2, xmm0, 0xc4
addps xmm2, xmmword [edx + 0x60]
subps xmm4, xmmword [edx + 0x10]
subps xmm2, xmmword [edx + 0x10]
mulps xmm4, xmmword [edx + 0x30]
mulps xmm2, xmmword [edx + 0x30]
movaps xmm3, xmm4
maxps xmm4, xmm2
minps xmm3, xmm2
movaps xmm2, xmmword [edx + 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 0x53ed1f
movzx eax, word [esi + 0x1c]
test ax, ax
je 0x53ed6f
cmp dword [esp + 0x18], 0x20
jge 0x53eb59
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov ax, word [esi + 0x1e]
mov word [edi + ecx*2], ax
inc ecx
movzx edi, word [esi + 0x1c]
movaps xmm5, xmmword [0x719550]
mov dword [esp + 0x18], ecx
jmp 0x53ed30
mov edx, eax
mov dword [esp + 0x10], edx
nop
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 + 0x60]
unpckhps xmm0, xmm1
shufps xmm2, xmm0, 0xc4
addps xmm2, xmmword [eax + 0x60]
subps xmm4, xmmword [eax + 0x10]
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 0x53ecb2
cmp word [esi + ecx + 0x1c], 0
je 0x53ec76
test dx, dx
je 0x53ed1b
movzx eax, word [esi + ecx + 0x1c]
test ax, ax
jne 0x53ed0c
mov eax, dword [esp + 0xc]
movzx esi, dx
movzx edx, word [eax + ecx + 0xc]
cmp dx, di
je 0x53ec4a
nop word [eax + eax]
movzx eax, dx
shl eax, 5
cmp word [eax + ecx + 0x1e], si
jne 0x53ec4a
movzx esi, dx
movzx edx, word [eax + ecx + 0xc]
cmp dx, di
jne 0x53ec30
test dx, dx
je 0x53ec5c
movzx eax, dx
shl eax, 5
movzx eax, word [eax + ecx + 0x1e]
jmp 0x53ec5f
movzx eax, si
movzx eax, ax
cmp dx, di
jne 0x53ec6e
cmp ax, si
jne 0x53ec6e
xor eax, eax
movzx edx, ax
jmp 0x53ed0e
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 0x53ed1b
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov eax, dword [esp + 0xc]
movzx edx, word [eax + ecx + 0xc]
cmp dx, di
je 0x53ecea
nop
movzx eax, dx
shl eax, 5
cmp word [eax + ecx + 0x1e], si
jne 0x53ecea
movzx esi, dx
movzx edx, word [eax + ecx + 0xc]
cmp dx, di
jne 0x53ecd0
test dx, dx
je 0x53ecfc
movzx eax, dx
shl eax, 5
movzx eax, word [eax + ecx + 0x1e]
jmp 0x53ecff
movzx eax, si
movzx eax, ax
cmp dx, di
jne 0x53ed0c
cmp ax, si
je 0x53ed1b
mov edx, eax
mov dword [esp + 0x10], edx
test dx, dx
jne 0x53eb60
mov edx, dword [esp + 0x24]
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 + 0x20]
test di, di
jne 0x53ea90
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [esp + 0x14]
pop edi
cmp dword [eax + 8], 0x80
jl 0x53eda9
lea ecx, [edx + 0x80]
cmp ecx, dword [eax + 0xc]
jne 0x53eda9
cmp dword [eax + 0x14], edx
je 0x53eda9
mov dword [eax + 0xc], edx
pop esi
add esp, 0x14
ret
mov edi, dword [esp + 0x24]
movzx esi, word [esi + 0x1e]
mov edx, dword [edx]
mov ecx, dword [edi + 0x50]
push dword [edi + 0x54]
push dword [edx + esi*8]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
fstp dword [esp + 8]
movss xmm0, dword [esp + 8]
mov edx, edi
shufps xmm0, xmm0, 0
movups xmmword [edx + 0x40], xmm0
movaps xmm5, xmmword [0x719550]
jmp 0x53ed1f
push 0x80
push edx
mov ecx, eax
call fcn.0046a590
pop esi
add esp, 0x14
ret