Function at 0x53edc0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x14
push edi
mov edi, dword [esp + 0x1c]
movzx eax, word [edi + 0x18]
test ax, ax
je 0x53f0ed
push esi
push dword [0x884adc]
mov esi, 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 0x53ee04
cmp ecx, dword [eax + 0x10]
ja 0x53ee04
mov dword [eax + 0xc], ecx
jmp 0x53ee16
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 xmm4, xmmword [0x719550]
mov edx, dword [esp + 0x24]
nop
mov edi, dword [edi]
movaps xmm1, xmm4
movzx ecx, si
shl ecx, 5
add ecx, edi
shufps xmm1, xmm4, 0
shufps xmm1, xmm1, 0
movaps xmm2, xmmword [ecx + 0x10]
movaps xmm3, xmmword [ecx]
movaps xmm0, xmm2
cmpleps xmm3, xmmword [edx + 0x20]
unpckhps xmm0, xmm1
shufps xmm2, xmm0, 0xc4
movaps xmm0, xmmword [edx + 0x10]
cmpleps xmm0, xmm2
andps xmm3, xmm0
movmskps eax, xmm3
and eax, 7
cmp al, 7
jne 0x53f090
movzx eax, word [ecx + 0x1c]
test ax, ax
je 0x53f03f
cmp dword [esp + 0x18], 0x20
jge 0x53eead
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov ax, word [ecx + 0x1e]
mov word [esi + edi*2], ax
inc edi
movzx esi, word [ecx + 0x1c]
movaps xmm4, xmmword [0x719550]
mov dword [esp + 0x18], edi
jmp 0x53f0a1
mov ecx, eax
mov dword [esp + 0x10], ecx
movzx eax, cx
movaps xmm2, xmm4
shl eax, 5
movaps xmm1, xmmword [eax + edi + 0x10]
lea edx, [eax + edi]
movaps xmm3, xmmword [edx]
movaps xmm0, xmm1
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x24]
shufps xmm2, xmm4, 0
shufps xmm2, xmm2, 0
unpckhps xmm0, xmm2
cmpleps xmm3, xmmword [eax + 0x20]
shufps xmm1, xmm0, 0xc4
movaps xmm0, xmmword [eax + 0x10]
cmpleps xmm0, xmm1
andps xmm0, xmm3
movmskps eax, xmm0
and eax, 7
cmp al, 7
jne 0x53efd4
cmp word [edx + 0x1c], 0
je 0x53ef76
test cx, cx
je 0x53f08c
movzx eax, word [edx + 0x1c]
test ax, ax
je 0x53ef1f
mov ecx, eax
jmp 0x53f030
mov eax, dword [esp + 0xc]
movzx edx, cx
movzx ecx, word [eax + edi + 0xc]
cmp cx, si
je 0x53ef4a
movzx eax, cx
shl eax, 5
cmp word [eax + edi + 0x1e], dx
jne 0x53ef4a
movzx edx, cx
movzx ecx, word [eax + edi + 0xc]
cmp cx, si
jne 0x53ef30
test cx, cx
je 0x53ef5c
movzx eax, cx
shl eax, 5
movzx eax, word [eax + edi + 0x1e]
jmp 0x53ef5f
movzx eax, dx
movzx eax, ax
cmp cx, si
jne 0x53ef6e
cmp ax, dx
jne 0x53ef6e
xor eax, eax
movzx ecx, ax
jmp 0x53f030
mov edi, dword [esp + 0x24]
movzx eax, word [edx + 0x1e]
mov dword [esp + 8], eax
mov edi, dword [edi + 0x30]
mov eax, dword [edi + 8]
and eax, 0x3fffffff
cmp dword [edi + 4], eax
jne 0x53efa2
push 8
push edi
push 0x7d8954
call fcn.00467c00
add esp, 0xc
mov ecx, dword [edi + 4]
mov eax, dword [edi]
lea edx, [eax + ecx*8]
lea eax, [ecx + 1]
mov dword [edi + 4], eax
mov eax, dword [esp + 8]
movzx ecx, ax
mov eax, dword [esp + 0x24]
mov dword [edx], 0
mov eax, dword [eax]
mov eax, dword [eax + ecx*8]
mov ecx, dword [esp + 0x10]
mov dword [edx + 4], eax
movaps xmm4, xmmword [0x719550]
movzx edx, cx
test cx, cx
je 0x53f08c
mov eax, dword [esp + 0x20]
mov edi, dword [eax]
mov eax, dword [esp + 0xc]
movzx eax, word [eax + edi + 0xc]
cmp ax, si
je 0x53f00e
movzx ecx, ax
shl ecx, 5
cmp word [ecx + edi + 0x1e], dx
jne 0x53f00e
movzx edx, ax
movzx eax, word [ecx + edi + 0xc]
cmp ax, si
jne 0x53eff4
test ax, ax
je 0x53f020
movzx ecx, ax
shl ecx, 5
movzx ecx, word [ecx + edi + 0x1e]
jmp 0x53f023
movzx ecx, dx
movzx ecx, cx
cmp ax, si
jne 0x53f030
cmp cx, dx
je 0x53f08c
mov dword [esp + 0x10], ecx
test cx, cx
jne 0x53eeb3
jmp 0x53f08c
mov esi, dword [edx + 0x30]
movzx edi, word [ecx + 0x1e]
mov eax, dword [esi + 8]
and eax, 0x3fffffff
cmp dword [esi + 4], eax
jne 0x53f063
push 8
push esi
push 0x7d8954
call fcn.00467c00
add esp, 0xc
mov ecx, dword [esi + 4]
mov eax, dword [esi]
lea edx, [eax + ecx*8]
lea eax, [ecx + 1]
mov ecx, edi
mov dword [esi + 4], eax
mov eax, dword [esp + 0x24]
mov dword [edx], 0
mov eax, dword [eax]
mov eax, dword [eax + ecx*8]
mov dword [edx + 4], eax
movaps xmm4, xmmword [0x719550]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
dec eax
mov dword [esp + 0x18], eax
movzx esi, word [ecx + eax*2]
mov edi, dword [esp + 0x20]
test si, si
jne 0x53ee30
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [esp + 0x14]
pop esi
cmp dword [eax + 8], 0x80
jl 0x53f0e0
lea ecx, [edx + 0x80]
cmp ecx, dword [eax + 0xc]
jne 0x53f0e0
cmp dword [eax + 0x14], edx
je 0x53f0e0
mov dword [eax + 0xc], edx
pop edi
add esp, 0x14
ret
push 0x80
push edx
mov ecx, eax
call fcn.0046a590
pop edi
add esp, 0x14
ret