Function at 0x5c8c50
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xf8
push esi
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp + 0x14]
add ecx, 0x10
mov edx, dword [ebp + 0xc]
mov eax, dword [esi]
mov dword [esp + 0x1c], ecx
push edi
movaps xmm4, xmmword [ecx]
mov eax, dword [eax + 0x2c]
movaps xmm5, xmm4
shufps xmm5, xmm4, 0xff
mov eax, dword [eax + 0x24]
movaps xmm2, xmmword [eax + 0x40]
mov edi, dword [eax + 0x6c]
movaps xmm3, xmm2
mulps xmm3, xmm4
movaps xmm1, xmm2
mov dword [esp + 0x1c], edi
shufps xmm1, xmm2, 0xc9
movaps xmm6, xmm2
shufps xmm6, xmm2, 0xd2
movaps xmm0, xmm3
shufps xmm0, xmm3, 0x55
addss xmm0, xmm3
shufps xmm3, xmm3, 0xaa
addss xmm3, xmm0
movaps xmm0, xmm4
shufps xmm0, xmm4, 0xd2
mulps xmm1, xmm0
movaps xmm0, xmm4
shufps xmm0, xmm4, 0xc9
mulps xmm6, xmm0
shufps xmm3, xmm3, 0
mulps xmm3, xmm4
subps xmm6, xmm1
mulps xmm6, xmm5
mulps xmm5, xmm5
addps xmm5, xmmword [0x7195c0]
mulps xmm5, xmm2
addps xmm5, xmm3
addps xmm6, xmm5
addps xmm6, xmm6
movaps xmm3, xmm6
mulps xmm3, xmm6
movaps xmm0, xmm3
shufps xmm0, xmm3, 0x55
addss xmm0, xmm3
shufps xmm3, xmm3, 0xaa
addss xmm3, xmm0
xorps xmm0, xmm0
movaps xmm5, xmm0
movss xmm0, dword [0x719764]
movaps xmmword [esp + 0x40], xmm5
movaps xmm1, xmm0
movss xmm0, dword [0x719760]
movaps xmmword [esp + 0x60], xmm1
movaps xmm7, xmm0
shufps xmm3, xmm3, 0
movaps xmmword [esp + 0xa0], xmm7
movaps xmm2, xmm3
movaps xmm4, xmm3
cmpeqss xmm4, xmm5
rsqrtss xmm2, xmm2
mulss xmm3, xmm2
mulss xmm0, xmm2
mulss xmm3, xmm2
subss xmm1, xmm3
mulss xmm0, xmm1
andnps xmm4, xmm0
shufps xmm4, xmm4, 0
mulps xmm4, xmm6
movaps xmmword [esp + 0x30], xmm4
test edx, edx
jle 0x5c8da4
mov eax, dword [ebp + 8]
mov ecx, edx
movaps xmm2, xmmword [eax]
movaps xmm1, xmm4
mulps xmm1, xmm2
movaps xmm0, xmm1
shufps xmm0, xmm1, 0x55
addss xmm0, xmm1
shufps xmm1, xmm1, 0xaa
addss xmm1, xmm0
shufps xmm1, xmm1, 0
mulps xmm1, xmm4
subps xmm2, xmm1
movaps xmmword [eax], xmm2
add eax, 0x10
sub ecx, 1
jne 0x5c8d73
mov eax, dword [ebp + 0x18]
lea ecx, [esp + 0x90]
movaps xmm1, xmm4
movaps xmm2, xmm4
shufps xmm1, xmm4, 0xd2
shufps xmm2, xmm4, 0xc9
movaps xmm5, xmmword [eax]
movaps xmm0, xmm5
movaps xmmword [esp + 0x80], xmm2
shufps xmm0, xmm5, 0xd2
mulps xmm0, xmm2
push ecx
shufps xmm5, xmm5, 0xc9
mulps xmm5, xmm1
mov ecx, dword [esp + 0x18]
movaps xmmword [esp + 0x74], xmm1
movaps xmm1, xmmword [esp + 0x64]
push eax
subps xmm5, xmm0
lea eax, [esp + 0xb8]
push eax
push edx
push dword [ebp + 8]
movaps xmm4, xmm5
mulps xmm4, xmm5
movaps xmm0, xmm4
shufps xmm0, xmm4, 0x55
addss xmm0, xmm4
shufps xmm4, xmm4, 0xaa
addss xmm4, xmm0
movaps xmm0, xmm7
shufps xmm4, xmm4, 0
movaps xmm2, xmm4
movaps xmm3, xmm4
cmpeqss xmm3, dword [esp + 0x54]
rsqrtss xmm2, xmm2
mulss xmm4, xmm2
mulss xmm0, xmm2
mulss xmm4, xmm2
subss xmm1, xmm4
mulss xmm0, xmm1
andnps xmm3, xmm0
shufps xmm3, xmm3, 0
mulps xmm3, xmm5
movaps xmmword [esp + 0xc4], xmm3
call fcn.005ca390
test al, al
jne 0x5c8ee2
mov eax, dword [esi]
mov ecx, dword [esp + 0x20]
mov eax, dword [eax + 0x2c]
movaps xmm4, xmmword [ecx]
movaps xmm5, xmm4
shufps xmm5, xmm4, 0xff
mov eax, dword [eax + 0x24]
movaps xmm2, xmmword [eax + 0x30]
movaps xmm3, xmm2
movaps xmm1, xmm2
mulps xmm3, xmm4
movaps xmm6, xmm2
shufps xmm1, xmm2, 0xc9
shufps xmm6, xmm2, 0xd2
movaps xmm0, xmm3
shufps xmm0, xmm3, 0x55
addss xmm0, xmm3
shufps xmm3, xmm3, 0xaa
addss xmm3, xmm0
movaps xmm0, xmm4
shufps xmm0, xmm4, 0xd2
mulps xmm1, xmm0
movaps xmm0, xmm4
shufps xmm0, xmm4, 0xc9
mulps xmm6, xmm0
shufps xmm3, xmm3, 0
mulps xmm3, xmm4
subps xmm6, xmm1
mulps xmm6, xmm5
mulps xmm5, xmm5
addps xmm5, xmmword [0x7195c0]
mulps xmm5, xmm2
addps xmm5, xmm3
addps xmm6, xmm5
addps xmm6, xmm6
movaps xmmword [esp + 0x50], xmm6
movaps xmmword [esp + 0x90], xmm6
jmp 0x5c8eef
movaps xmm0, xmmword [esp + 0x90]
movaps xmmword [esp + 0x50], xmm0
mov ecx, esi
call fcn.005c60d0
movaps xmm1, xmmword [esp + 0x30]
movaps xmm5, xmmword [eax]
mulps xmm1, xmm5
movaps xmm0, xmm1
shufps xmm0, xmm1, 0x55
addss xmm0, xmm1
shufps xmm1, xmm1, 0xaa
addss xmm1, xmm0
comiss xmm1, dword [0x7a4d78]
jb 0x5c9616
movss xmm0, dword [0x7a4d74]
comiss xmm0, xmm1
jb 0x5c9616
movaps xmm0, xmm5
movaps xmm1, xmmword [esp + 0x60]
shufps xmm0, xmm5, 0xd2
mov ecx, esi
mulps xmm0, xmmword [esp + 0x80]
shufps xmm5, xmm5, 0xc9
mulps xmm5, xmmword [esp + 0x70]
subps xmm5, xmm0
movaps xmm4, xmm5
mulps xmm4, xmm5
movaps xmm0, xmm4
shufps xmm0, xmm4, 0x55
addss xmm0, xmm4
shufps xmm4, xmm4, 0xaa
addss xmm4, xmm0
movaps xmm0, xmmword [esp + 0xa0]
shufps xmm4, xmm4, 0
movaps xmm2, xmm4
movaps xmm3, xmm4
cmpeqss xmm3, dword [esp + 0x40]
rsqrtss xmm2, xmm2
mulss xmm4, xmm2
mulss xmm0, xmm2
mulss xmm4, xmm2
subss xmm1, xmm4
mulss xmm0, xmm1
andnps xmm3, xmm0
shufps xmm3, xmm3, 0
mulps xmm3, xmm5
movaps xmmword [esp + 0xc0], xmm3
call fcn.005c60d0
movaps xmm1, xmmword [esp + 0xc0]
movaps xmm2, xmm1
shufps xmm2, xmm1, 0xc9
movaps xmm3, xmmword [eax]
movaps xmm0, xmm3
shufps xmm1, xmm1, 0xd2
shufps xmm0, xmm3, 0xd2
mulps xmm2, xmm0
movss xmm0, dword [edi + 0x30]
ucomiss xmm0, dword [0x718814]
shufps xmm3, xmm3, 0xc9
mulps xmm1, xmm3
lahf
subps xmm2, xmm1
movaps xmmword [esp + 0x80], xmm2
test ah, 0x44
jp 0x5c917d
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax + 8]
movaps xmm4, xmmword [eax + 0x10]
cmp ecx, 1
jle 0x5c901f
add eax, 0x40
dec ecx
addps xmm4, xmmword [eax]
add eax, 0x30
sub ecx, 1
jne 0x5c9014
movaps xmm3, xmm4
movaps xmm7, xmmword [esp + 0x60]
mulps xmm3, xmm4
movaps xmm1, xmm7
movaps xmm6, xmmword [esp + 0xa0]
movaps xmm0, xmm3
shufps xmm0, xmm3, 0x55
addss xmm0, xmm3
shufps xmm3, xmm3, 0xaa
addss xmm3, xmm0
movaps xmm0, xmm6
shufps xmm3, xmm3, 0
movaps xmm2, xmm3
movaps xmm5, xmm3
cmpeqss xmm5, dword [esp + 0x40]
rsqrtss xmm2, xmm2
mulss xmm3, xmm2
mulss xmm0, xmm2
mulss xmm3, xmm2
movaps xmm2, xmmword [esp + 0x50]
subss xmm1, xmm3
mulss xmm0, xmm1
andnps xmm5, xmm0
shufps xmm5, xmm5, 0
mulps xmm5, xmm4
movaps xmm1, xmm5
mulps xmm1, xmm2
movaps xmm0, xmm1
shufps xmm0, xmm1, 0x55
addss xmm0, xmm1
shufps xmm1, xmm1, 0xaa
addss xmm1, xmm0
comiss xmm1, dword [0x7a4d78]
jb 0x5c915f
movss xmm0, dword [0x7a4d74]
comiss xmm0, xmm1
jb 0x5c915f
movaps xmm1, xmm5
lea eax, [esp + 0x30]
shufps xmm1, xmm5, 0xc9
movaps xmm0, xmm2
shufps xmm0, xmm2, 0xd2
mulps xmm1, xmm0
push eax
shufps xmm2, xmm2, 0xc9
lea eax, [esp + 0x84]
shufps xmm5, xmm5, 0xd2
mulps xmm5, xmm2
push eax
push ecx
subps xmm5, xmm1
movaps xmm1, xmm7
movaps xmm4, xmm5
mulps xmm4, xmm5
movaps xmm0, xmm4
shufps xmm0, xmm4, 0x55
addss xmm0, xmm4
shufps xmm4, xmm4, 0xaa
addss xmm4, xmm0
movaps xmm0, xmm6
shufps xmm4, xmm4, 0
movaps xmm2, xmm4
movaps xmm3, xmm4
cmpeqss xmm3, dword [esp + 0x4c]
rsqrtss xmm2, xmm2
mulss xmm4, xmm2
mulss xmm0, xmm2
mulss xmm4, xmm2
subss xmm1, xmm4
mulss xmm0, xmm1
andnps xmm3, xmm0
movss xmm0, dword [edi + 0x2c]
shufps xmm3, xmm3, 0
mulps xmm3, xmm5
movss dword [esp], xmm0
movaps xmmword [esp + 0x3c], xmm3
call fcn.005ca670
movaps xmm0, xmmword [esp + 0x3c]
add esp, 0xc
movaps xmmword [esp + 0x30], xmm0
jmp 0x5c94a8
mov eax, dword [esi]
mov ecx, dword [esp + 0x20]
mov eax, dword [eax + 0x2c]
movaps xmm5, xmmword [ecx]
movaps xmm4, xmm5
mov eax, dword [eax + 0x24]
movaps xmm3, xmmword [eax + 0x20]
mulps xmm4, xmm3
jmp 0x5c962f
mov ecx, esi
call fcn.005c60d0
movss xmm0, dword [edi + 0x14]
mov ecx, esi
shufps xmm0, xmm0, 0
mulps xmm0, xmmword [eax]
movaps xmmword [esp + 0xd0], xmm0
call fcn.005c60d0
movss xmm0, dword [edi + 0x18]
xorps xmm0, xmmword [0x719730]
push dword [0x884adc]
shufps xmm0, xmm0, 0
mulps xmm0, xmmword [eax]
movaps xmmword [esp + 0xe4], xmm0
movss xmm0, dword [edi + 0x30]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
shufps xmm0, xmm0, 0
mulps xmm0, xmmword [esp + 0x84]
movaps xmmword [esp + 0x54], xmm0
call edi
mov esi, dword [eax + 0xc]
mov dword [esp + 0x14], esi
sub esi, 0xffffff80
cmp dword [eax + 8], 0x80
jl 0x5c91fb
cmp esi, dword [eax + 0x10]
ja 0x5c91fb
mov dword [eax + 0xc], esi
jmp 0x5c920b
push 0x80
mov ecx, eax
call fcn.0046a3c0
mov dword [esp + 0x14], eax
push dword [0x884adc]
call edi
cmp dword [eax + 8], 0x80
mov edi, dword [eax + 0xc]
mov dword [esp + 0x18], edi
lea ecx, [edi + 0x80]
jl 0x5c9233
cmp ecx, dword [eax + 0x10]
ja 0x5c9233
mov dword [eax + 0xc], ecx
jmp 0x5c9245
push 0x80
mov ecx, eax
call fcn.0046a3c0
mov edi, eax
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x10]
xor edx, edx
mov ecx, dword [0x8d45f0]
mov dword [esp + 0x28], edx
mov esi, dword [eax]
test ecx, ecx
je 0x5c926b
mov eax, dword [ecx]
push esi
mov eax, dword [eax + 4]
call eax
mov edx, eax
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x10]
test edx, edx
jne 0x5c927a
mov ecx, dword [eax]
call fcn.00596340
mov dword [esp + 0x28], eax
movaps xmm0, xmmword [esp + 0x50]
xor esi, esi
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x2c], 0x7f7fffee
movaps xmm1, xmmword [eax]
addps xmm1, xmm0
movaps xmm0, xmm1
addps xmm0, xmmword [esp + 0xd0]
addps xmm1, xmmword [esp + 0xe0]
movaps xmmword [esp + 0x70], xmm0
movaps xmm0, xmmword [0x719320]
movaps xmmword [esp + 0xb0], xmm1
movaps xmmword [esp + 0xf0], xmm0
call fcn.005c62e0
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0xf0]
push edx
lea edx, [esp + 0x30]
push edx
mov edx, dword [esp + 0x24]
mov eax, dword [ecx]
push dword [edx + 0x24]
mov eax, dword [eax + 4]
lea edx, [esp + 0xbc]
push edx
lea edx, [esp + 0x80]
push edx
lea edx, [esp + 0x3b]
push edx
call eax
mov ecx, dword [ebp + 0x10]
cmp byte [eax], 0
setne byte [esp + 0x13]
call fcn.005c62e0
cmp byte [esp + 0x13], 0
je 0x5c9346
movaps xmm0, xmmword [esp + 0x70]
mov eax, dword [esp + 0x14]
movaps xmmword [edi], xmm0
movaps xmm2, xmmword [esp + 0xb0]
subps xmm2, xmmword [esp + 0x70]
movss xmm0, dword [esp + 0x2c]
shufps xmm0, xmm0, 0
mulps xmm2, xmm0
addps xmm2, xmmword [esp + 0x70]
movaps xmmword [edi], xmm2
mov byte [eax + esi], 1
movaps xmm0, xmmword [esp + 0x50]
inc esi
mulps xmm0, xmmword [0x719780]
add edi, 0x10
movaps xmmword [esp + 0x50], xmm0
cmp esi, 2
jl 0x5c9281
mov esi, dword [esp + 0x14]
mov al, byte [esi]
test al, al
jne 0x5c937c
cmp byte [esi + 1], al
jne 0x5c9382
mov edi, dword [esp + 0x18]
jmp 0x5c9433
cmp byte [esi + 1], 0
je 0x5c9397
mov edi, dword [esp + 0x18]
test al, al
mov eax, dword [ebp + 0x14]
cmovne eax, edi
movaps xmm0, xmmword [edi + 0x10]
movaps xmm5, xmmword [eax]
jmp 0x5c93a4
mov eax, dword [ebp + 0x14]
mov edi, dword [esp + 0x18]
movaps xmm0, xmmword [eax]
movaps xmm5, xmmword [edi]
subps xmm5, xmm0
movaps xmm1, xmmword [esp + 0x60]
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x84]
push eax
movaps xmm4, xmm5
mov eax, dword [esp + 0x24]
mulps xmm4, xmm5
push ecx
movaps xmm0, xmm4
shufps xmm0, xmm4, 0x55
addss xmm0, xmm4
shufps xmm4, xmm4, 0xaa
addss xmm4, xmm0
movaps xmm0, xmmword [esp + 0xac]
shufps xmm4, xmm4, 0
movaps xmm2, xmm4
movaps xmm3, xmm4
cmpeqss xmm3, dword [esp + 0x4c]
rsqrtss xmm2, xmm2
mulss xmm4, xmm2
mulss xmm0, xmm2
mulss xmm4, xmm2
subss xmm1, xmm4
mulss xmm0, xmm1
andnps xmm3, xmm0
movss xmm0, dword [eax + 0x2c]
shufps xmm3, xmm3, 0
mulps xmm3, xmm5
movss dword [esp], xmm0
movaps xmmword [esp + 0x3c], xmm3
call fcn.005ca670
movaps xmm0, xmmword [esp + 0x3c]
add esp, 0xc
movaps xmmword [esp + 0x30], xmm0
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 8], 0x80
jl 0x5c945d
lea ecx, [edi + 0x80]
cmp ecx, dword [eax + 0xc]
jne 0x5c945d
cmp dword [eax + 0x14], edi
je 0x5c945d
mov dword [eax + 0xc], edi
jmp 0x5c946a
push 0x80
push edi
mov ecx, eax
call fcn.0046a590
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 8], 0x80
jl 0x5c9494
lea ecx, [esi + 0x80]
cmp ecx, dword [eax + 0xc]
jne 0x5c9494
cmp dword [eax + 0x14], esi
je 0x5c9494
mov dword [eax + 0xc], esi
jmp 0x5c94a1
push 0x80
push esi
mov ecx, eax
call fcn.0046a590
mov edi, dword [esp + 0x1c]
mov esi, dword [ebp + 0x10]
movss xmm0, dword [edi + 0x28]
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0xc4]
push eax
push ecx
movss dword [esp], xmm0
call fcn.005ca670
movaps xmm2, xmmword [esp + 0x3c]
add esp, 0xc
movaps xmm3, xmmword [esp + 0x90]
movaps xmm1, xmm2
mulps xmm1, xmm3
movaps xmm0, xmm1
shufps xmm0, xmm1, 0x55
addss xmm0, xmm1
shufps xmm1, xmm1, 0xaa
addss xmm1, xmm0
comiss xmm1, dword [0x7a4d78]
jb 0x5c9531
movss xmm0, dword [0x7a4d74]
comiss xmm0, xmm1
jb 0x5c9531
mov eax, dword [ebp + 0x1c]
movaps xmm1, xmm2
shufps xmm1, xmm2, 0xc9
movaps xmm0, xmm3
shufps xmm0, xmm3, 0xd2
shufps xmm2, xmm2, 0xd2
shufps xmm3, xmm3, 0xc9
mulps xmm1, xmm0
mulps xmm2, xmm3
subps xmm1, xmm2
movaps xmmword [eax], xmm1
jmp 0x5c95af
mov eax, dword [esi]
mov ecx, dword [esp + 0x20]
mov eax, dword [eax + 0x2c]
movaps xmm5, xmmword [ecx]
movaps xmm6, xmm5
shufps xmm6, xmm5, 0xff
mov eax, dword [eax + 0x24]
movaps xmm3, xmmword [eax + 0x20]
movaps xmm4, xmm3
mov eax, dword [ebp + 0x1c]
mulps xmm4, xmm5
movaps xmm1, xmm3
shufps xmm1, xmm3, 0xc9
movaps xmm2, xmm3
shufps xmm2, xmm3, 0xd2
movaps xmm0, xmm4
shufps xmm0, xmm4, 0x55
addss xmm0, xmm4
shufps xmm4, xmm4, 0xaa
addss xmm4, xmm0
movaps xmm0, xmm5
shufps xmm0, xmm5, 0xd2
mulps xmm1, xmm0
movaps xmm0, xmm5
shufps xmm0, xmm5, 0xc9
mulps xmm2, xmm0
shufps xmm4, xmm4, 0
mulps xmm4, xmm5
subps xmm2, xmm1
mulps xmm2, xmm6
mulps xmm6, xmm6
addps xmm6, xmmword [0x7195c0]
mulps xmm6, xmm3
addps xmm6, xmm4
addps xmm2, xmm6
addps xmm2, xmm2
movaps xmmword [eax], xmm2
movaps xmm3, xmmword [eax]
movaps xmm2, xmm3
movaps xmm4, xmmword [esp + 0x60]
mulps xmm2, xmm3
movaps xmm0, xmm2
shufps xmm0, xmm2, 0x55
addss xmm0, xmm2
shufps xmm2, xmm2, 0xaa
addss xmm2, xmm0
shufps xmm2, xmm2, 0
movaps xmm0, xmm2
movaps xmm1, xmm2
cmpeqss xmm1, dword [esp + 0x40]
rsqrtss xmm0, xmm0
mulss xmm2, xmm0
mulss xmm2, xmm0
subss xmm4, xmm2
movaps xmm2, xmmword [esp + 0xa0]
mulss xmm2, xmm0
mulss xmm2, xmm4
andnps xmm1, xmm2
shufps xmm1, xmm1, 0
mulps xmm1, xmm3
movaps xmmword [eax], xmm1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [esi]
mov ecx, dword [esp + 0x20]
mov eax, dword [eax + 0x2c]
movaps xmm5, xmmword [ecx]
mov eax, dword [eax + 0x24]
movaps xmm3, xmmword [eax + 0x20]
movaps xmm4, xmm3
mulps xmm4, xmm5
movaps xmm0, xmm4
mov eax, dword [ebp + 0x1c]
shufps xmm0, xmm4, 0x55
movaps xmm2, xmm5
addss xmm0, xmm4
shufps xmm2, xmm5, 0xc9
shufps xmm4, xmm4, 0xaa
movaps xmm1, xmm5
shufps xmm1, xmm5, 0xd2
movaps xmm6, xmm5
shufps xmm6, xmm5, 0xff
pop edi
addss xmm4, xmm0
movaps xmm0, xmm3
shufps xmm0, xmm3, 0xd2
mulps xmm2, xmm0
movaps xmm0, xmm3
pop esi
shufps xmm0, xmm3, 0xc9
mulps xmm1, xmm0
shufps xmm4, xmm4, 0
mulps xmm4, xmm5
subps xmm2, xmm1
mulps xmm2, xmm6
mulps xmm6, xmm6
addps xmm6, xmmword [0x7195c0]
mulps xmm6, xmm3
addps xmm6, xmm4
addps xmm2, xmm6
addps xmm2, xmm2
movaps xmmword [eax], xmm2
mov esp, ebp
pop ebp
ret 0x18