Function at 0x5fa660
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x38
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [esp + 0x10], edi
mov ecx, dword [eax + 0x2c]
mov dword [esp + 0x18], ecx
mov ecx, dword [eax + 0x1c]
test ecx, ecx
jne 0x5fa688
xor eax, eax
jmp 0x5fa68d
call fcn.005cca00
mov ecx, dword [eax + 0x2c]
push dword [0x884adc]
mov dword [esp + 0x10], eax
mov esi, dword [ecx + 0x1c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
lea eax, [esi + esi*2]
shl eax, 4
add eax, 0x7f
and eax, 0xffffff80
mov esi, dword [ecx + 0xc]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], esi
lea edx, [esi + eax]
cmp eax, dword [ecx + 8]
jg 0x5fa6ce
cmp edx, dword [ecx + 0x10]
ja 0x5fa6ce
mov dword [ecx + 0xc], edx
jmp 0x5fa6da
push eax
call fcn.0046a3c0
mov esi, eax
mov dword [esp + 0x14], eax
cmp byte [edi + 0x4c], 0
mov edi, dword [ebp + 0xc]
mov ecx, dword [edi]
je 0x5fa6f8
movsx edx, word [ecx + 0x14]
add edx, ecx
mov ecx, dword [esp + 0xc]
push edx
push esi
call fcn.0058a320
jmp 0x5fa70f
mov eax, dword [esp + 0x18]
push esi
push dword [eax + 0x1c]
movsx eax, word [ecx + 0x34]
add eax, ecx
push eax
call fcn.00606f50
add esp, 0xc
mov eax, dword [edi]
mov edi, dword [esp + 0x10]
add edi, 0x60
push edi
movsx ecx, word [eax + 0x14]
add ecx, eax
push ecx
push esi
push dword [esp + 0x18]
call fcn.00606b20
mov edx, dword [esp + 0x20]
add esp, 0xc
mov eax, esp
fstp dword [edx + 0x50]
mov byte [eax], 0
lea esi, [edx + 0x70]
mov eax, dword [ebp + 0xc]
movss xmm0, dword [edx + 0x30]
push esi
mov eax, dword [eax]
movsx ecx, word [eax + 0x14]
add ecx, eax
movsx eax, word [edx + 0x2e]
push ecx
movss dword [esp], xmm0
push eax
movsx eax, word [edx + 0x2c]
push eax
push ecx
push dword [esp + 0x2c]
push dword [esp + 0x28]
call fcn.00606db0
mov edx, dword [ebp + 0xc]
xorps xmm0, xmm0
mov eax, dword [esp + 0x30]
add esp, 0x20
mov ecx, dword [edx]
movss xmm6, dword [eax + 0x48]
unpcklps xmm6, xmm0
unpcklps xmm6, xmm0
movsx eax, word [ecx + 0x14]
movaps xmm3, xmm6
movaps xmm4, xmmword [eax + ecx + 0x10]
mulps xmm3, xmm4
movaps xmm2, xmm4
shufps xmm2, xmm4, 0xc9
movaps xmm1, xmm4
shufps xmm1, xmm4, 0xd2
movaps xmm5, xmm4
shufps xmm5, xmm4, 0xff
movaps xmm0, xmm3
shufps xmm0, xmm3, 0x55
addss xmm0, xmm3
shufps xmm3, xmm3, 0xaa
addss xmm3, xmm0
movaps xmm0, xmm6
shufps xmm0, xmm6, 0xd2
mulps xmm2, xmm0
movaps xmm0, xmm6
shufps xmm0, xmm6, 0xc9
mulps xmm1, xmm0
shufps xmm3, xmm3, 0
mulps xmm3, xmm4
subps xmm2, xmm1
mulps xmm2, xmm5
mulps xmm5, xmm5
addps xmm5, xmmword [0x7195c0]
mulps xmm5, xmm6
addps xmm5, xmm3
addps xmm2, xmm5
addps xmm2, xmm2
addps xmm2, xmmword [esi]
movaps xmmword [esi], xmm2
movaps xmm0, xmmword [edi]
mov edi, dword [esp + 0x10]
movaps xmmword [esp + 0x20], xmm0
movaps xmm0, xmmword [esi]
movaps xmmword [esp + 0x30], xmm0
mov eax, dword [edi + 0x44]
mov dword [esp + eax*4 + 0x20], 0
mov dword [esp + eax*4 + 0x30], 0
movaps xmm6, xmmword [esp + 0x20]
subps xmm6, xmmword [esp + 0x30]
movaps xmm1, xmm6
movaps xmm3, xmm6
mulps xmm1, xmm6
movaps xmm0, xmm1
shufps xmm0, xmm1, 0x55
addss xmm0, xmm1
shufps xmm1, xmm1, 0xaa
addss xmm1, xmm0
sqrtss xmm1, xmm1
movss dword [edi + 0x80], xmm1
mov ecx, dword [edx]
movsx eax, word [ecx + 0x14]
movaps xmm4, xmmword [eax + ecx + 0x10]
mulps xmm3, xmm4
movaps xmm1, xmm4
shufps xmm1, xmm4, 0xc9
movaps xmm2, xmm4
shufps xmm2, xmm4, 0xd2
movaps xmm5, xmm4
shufps xmm5, xmm4, 0xff
movaps xmm0, xmm3
shufps xmm0, xmm3, 0x55
addss xmm0, xmm3
shufps xmm3, xmm3, 0xaa
addss xmm3, xmm0
movaps xmm0, xmm6
shufps xmm0, xmm6, 0xd2
mulps xmm1, xmm0
movaps xmm0, xmm6
shufps xmm0, xmm6, 0xc9
mulps xmm2, xmm0
shufps xmm3, xmm3, 0
mulps xmm3, xmm4
subps xmm2, xmm1
mulps xmm2, xmm5
mulps xmm5, xmm5
addps xmm5, xmmword [0x7195c0]
mulps xmm5, xmm6
addps xmm5, xmm3
addps xmm2, xmm5
addps xmm2, xmm2
movaps xmmword [edi + 0x90], xmm2
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 0x1c]
mov edx, eax
mov eax, dword [esp + 0x14]
lea esi, [ecx + 0xf]
and esi, 0xfffffff0
cmp ecx, dword [edx + 8]
jg 0x5fa8ff
lea ecx, [esi + eax]
cmp ecx, dword [edx + 0xc]
jne 0x5fa8ff
cmp dword [edx + 0x14], eax
je 0x5fa8ff
mov dword [edx + 0xc], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push esi
push eax
mov ecx, edx
call fcn.0046a590
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8