Function at 0x4e5be0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xd8
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [esp + 0x10], edi
mov ecx, dword [edi + 0xc]
shr esi, cl
mov ecx, dword [edi + 8]
mov dword [esp + 0xc], esi
mov esi, dword [edi + 0x10]
and esi, dword [ebp + 8]
mov eax, esi
sar eax, cl
mov ecx, 0x20
sub ecx, dword [edi + 0xc]
mov dword [esp + 0x18], eax
mov eax, 1
shl eax, cl
dec eax
cmp dword [esp + 0xc], eax
jne 0x4e5ef6
movaps xmm0, xmmword [0x884c20]
mov ecx, dword [ebp + 0xc]
movaps xmmword [esp + 0x60], xmm0
movaps xmm0, xmmword [0x884c30]
movaps xmmword [esp + 0x70], xmm0
movaps xmm0, xmmword [0x884c40]
movaps xmmword [esp + 0x80], xmm0
test ecx, ecx
je 0x4e5c6b
movss xmm0, dword [edi + 0x18]
push ecx
movss dword [esp], xmm0
call fcn.004e7240
jmp 0x4e5c6d
xor eax, eax
mov ecx, esi
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x74]
shl ecx, 6
movzx edx, word [ecx + eax + 0x36]
mov dword [esp + 0xc], edx
mov edx, 0xffff
cmp word [esp + 0xc], dx
je 0x4e5cbe
mov eax, dword [esp + 0xc]
movzx eax, ax
lea eax, [eax + eax*2]
shl eax, 4
add eax, dword [edi + 0x44]
movaps xmm0, xmmword [eax]
movaps xmmword [esp + 0x60], xmm0
movaps xmm0, xmmword [eax + 0x10]
movaps xmmword [esp + 0x70], xmm0
movaps xmm0, xmmword [eax + 0x20]
mov eax, dword [edi + 0x74]
movaps xmmword [esp + 0x80], xmm0
movzx ecx, word [ecx + eax + 0x34]
cmp cx, dx
je 0x4e5cca
mov esi, ecx
push dword [0x8d7860]
shl esi, 6
add esi, eax
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
movss xmm4, dword [edi + 0x80]
movaps xmm7, xmmword [0x77fb00]
movaps xmm6, xmmword [0x77fb10]
lea ecx, [eax + eax*2]
shufps xmm4, xmm4, 0
mov eax, 0x55555556
shl ecx, 7
imul dword [esi + 0x14]
movaps xmmword [esp + 0x40], xmm7
movaps xmmword [esp + 0x30], xmm6
movaps xmmword [esp + 0x90], xmm4
mov esi, dword [esi + 0x10]
add ecx, 0x8ccc40
mov eax, edx
mov dword [esp + 0x20], ecx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0xc], 0
mov dword [esp + 0x2c], eax
lea edx, [eax + 3]
sar edx, 2
mov dword [esp + 0x14], edx
test edx, edx
jle 0x4e5ea2
lea eax, [ecx + 0x20]
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], eax
nop word [eax + eax]
lea edi, [esp + 0xa0]
mov dword [esp + 0x10], 4
nop
movzx eax, word [esi]
xorps xmm1, xmm1
mov ecx, edi
movd xmm3, eax
movzx eax, word [esi + 2]
cvtdq2ps xmm3, xmm3
movd xmm2, eax
movzx eax, word [esi + 4]
cvtdq2ps xmm2, xmm2
movd xmm0, eax
mov eax, dword [esp + 0x1c]
cvtdq2ps xmm0, xmm0
unpcklps xmm2, xmm1
unpcklps xmm3, xmm0
unpcklps xmm3, xmm2
mulps xmm3, xmm4
addps xmm3, xmmword [eax]
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x64]
push eax
movaps xmmword [esp + 0x58], xmm3
call fcn.0046eb90
movaps xmm7, xmmword [esp + 0x40]
movaps xmm6, xmmword [esp + 0x30]
minps xmm7, xmmword [esp + 0x50]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0xc]
dec ecx
maxps xmm6, xmmword [esp + 0x50]
movaps xmmword [esp + 0x40], xmm7
movaps xmmword [esp + 0x30], xmm6
cmp eax, ecx
jge 0x4e5def
inc eax
add esi, 6
mov dword [esp + 0xc], eax
movaps xmm4, xmmword [esp + 0x90]
add edi, 0x10
sub dword [esp + 0x10], 1
jne 0x4e5d70
movaps xmm4, xmmword [esp + 0xa0]
movaps xmm3, xmmword [esp + 0xc0]
movaps xmm5, xmm4
shufps xmm4, xmmword [esp + 0xb0], 0xee
movaps xmm1, xmm3
mov eax, dword [esp + 0x24]
movaps xmm0, xmm4
shufps xmm5, xmmword [esp + 0xb0], 0x44
shufps xmm1, xmmword [esp + 0xd0], 0x44
movaps xmm2, xmm5
shufps xmm3, xmmword [esp + 0xd0], 0xee
shufps xmm2, xmm1, 0x88
shufps xmm5, xmm1, 0xdd
shufps xmm0, xmm3, 0x88
shufps xmm4, xmm3, 0xdd
movaps xmmword [eax - 0x20], xmm2
movaps xmmword [eax - 0x10], xmm5
movaps xmmword [eax], xmm0
add eax, 0x30
sub dword [esp + 0x28], 1
movaps xmmword [esp + 0xd0], xmm4
movaps xmm4, xmmword [esp + 0x90]
movaps xmmword [esp + 0xa0], xmm2
movaps xmmword [esp + 0xb0], xmm5
movaps xmmword [esp + 0xc0], xmm0
mov dword [esp + 0x24], eax
jne 0x4e5d60
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
movaps xmm0, xmm6
mov edx, dword [esp + 0x20]
subps xmm0, xmm7
addps xmm6, xmm7
mov dword [ecx + 0x40], edx
mov edx, dword [esp + 0x14]
mov dword [ecx + 0x44], edx
mov dword [ecx + 0x48], 8
mov dword [ecx + 0x4c], eax
mov eax, dword [esp + 0x1c]
mov dword [ecx + 0x50], eax
mov eax, dword [0x8ccc30]
mov dword [ecx + 0x54], eax
mov eax, ecx
mulps xmm0, xmmword [0x719700]
movaps xmmword [ecx + 0x20], xmm0
mulps xmm6, xmmword [0x719700]
movaps xmmword [ecx + 0x30], xmm6
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov edi, dword [ebp + 0xc]
mov edx, 0xffff
test edi, edi
je 0x4e5f3a
movss xmm0, dword [0x8732f0]
movss dword [edi + 0x10], xmm0
xorps xmm0, xmm0
mov dword [edi + 4], 0x1ffff
mov dword [edi + 8], 0
mov dword [edi + 0xc], 3
mov dword [edi], vtable.hkpTriangleShape.0
mov dword [edi + 0x14], 0x60000
movaps xmmword [edi + 0x50], xmm0
jmp 0x4e5f3c
xor edi, edi
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x18]
mov dword [edi + 0x10], eax
mov al, byte [ecx + 0x1c]
mov byte [edi + 0x16], al
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x4e6053
shl esi, 4
add esi, dword [ecx + 0x5c]
mov ecx, dword [ecx + 0x50]
movzx eax, word [esi + 0xc]
mov dword [esp + 0x14], eax
movzx eax, word [esi]
add eax, eax
movaps xmm0, xmmword [ecx + eax*8]
movaps xmmword [esp + 0x50], xmm0
movzx eax, word [esi + 2]
add eax, eax
movaps xmm1, xmmword [ecx + eax*8]
movaps xmmword [esp + 0x40], xmm1
movzx eax, word [esi + 4]
add eax, eax
movaps xmm2, xmmword [ecx + eax*8]
movaps xmmword [esp + 0x30], xmm2
movzx eax, word [esi + 0xe]
mov esi, dword [esp + 0x10]
cmp ax, dx
je 0x4e6010
lea eax, [eax + eax*2]
shl eax, 4
lea ecx, [esp + 0x50]
add eax, dword [esi + 0x44]
movaps xmm0, xmmword [eax]
movaps xmmword [esp + 0x60], xmm0
movaps xmm0, xmmword [eax + 0x10]
movaps xmmword [esp + 0x70], xmm0
movaps xmm0, xmmword [eax + 0x20]
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x64]
movaps xmmword [esp + 0x84], xmm0
push eax
call fcn.0046eb90
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x48]
call fcn.0046eb90
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x38]
call fcn.0046eb90
movaps xmm2, xmmword [esp + 0x30]
movaps xmm1, xmmword [esp + 0x40]
movaps xmm0, xmmword [esp + 0x50]
mov eax, dword [esp + 0x14]
mov word [edi + 0x14], ax
mov eax, edi
movaps xmmword [edi + 0x20], xmm0
movaps xmmword [edi + 0x30], xmm1
movaps xmmword [edi + 0x40], xmm2
movups xmm1, xmmword [esi + 0xd0]
movaps xmm0, xmm1
mulps xmm0, xmmword [edi + 0x20]
movaps xmmword [edi + 0x20], xmm0
movaps xmm0, xmmword [edi + 0x30]
mulps xmm0, xmm1
movaps xmmword [edi + 0x30], xmm0
mulps xmm1, xmmword [edi + 0x40]
movaps xmmword [edi + 0x40], xmm1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ecx + 0x68]
dec eax
and esi, dword [ecx + 0x14]
xorps xmm0, xmm0
movaps xmmword [esp + 0x60], xmm0
movaps xmm0, xmmword [0x7195b0]
lea ecx, [eax + eax*4]
movaps xmmword [esp + 0x70], xmm0
movaps xmm0, xmmword [0x719da0]
shl ecx, 4
mov dword [esp + 0x20], ecx
movaps xmmword [esp + 0x80], xmm0
mov dword [esp + 0x1c], edx
movzx ecx, word [ecx + edx + 0x46]
mov edx, 0xffff
mov dword [esp + 0x14], ecx
cmp cx, dx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xc], eax
je 0x4e60d3
mov eax, dword [esp + 0x14]
movzx eax, ax
lea eax, [eax + eax*2]
shl eax, 4
add eax, dword [ecx + 0x44]
movaps xmm0, xmmword [eax]
movaps xmmword [esp + 0x60], xmm0
movaps xmm0, xmmword [eax + 0x10]
movaps xmmword [esp + 0x70], xmm0
movaps xmm0, xmmword [eax + 0x20]
movaps xmmword [esp + 0x80], xmm0
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
movzx eax, word [ecx + eax + 0x44]
mov ecx, dword [esp + 0x10]
cmp ax, dx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xc]
je 0x4e60f8
mov eax, dword [esp + 0x14]
movzx eax, ax
lea edx, [eax + eax*4]
shl edx, 4
add edx, dword [ecx + 0x68]
cmp byte [ecx + 0x1c], 6
mov dword [esp + 0x14], edx
je 0x4e6116
mov eax, dword [edx + 0x34]
mov ax, word [eax + esi*2]
mov word [edi + 0x14], ax
mov edx, dword [edx + 0x1c]
lea eax, [esp + 0x30]
movss xmm0, dword [ecx + 0x80]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x58]
push eax
movzx eax, word [edx + esi*2 + 4]
push ecx
mov ecx, dword [esp + 0x24]
movss dword [esp], xmm0
lea eax, [eax + eax*2]
push eax
movzx eax, word [edx + esi*2 + 2]
lea eax, [eax + eax*2]
push eax
movzx eax, word [edx + esi*2]
lea eax, [eax + eax*2]
push eax
call fcn.004e6790
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x58]
call fcn.0046eb90
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x48]
call fcn.0046eb90
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x38]
call fcn.0046eb90
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
movaps xmm2, xmmword [esp + 0x50]
movaps xmm1, xmmword [esp + 0x40]
movups xmm0, xmmword [esi + 0xd0]
lea ecx, [eax + 1]
xor eax, 1
movaps xmm3, xmmword [esp + 0x30]
inc eax
mulps xmm2, xmm0
shl ecx, 5
mulps xmm1, xmm0
shl eax, 5
mulps xmm3, xmm0
movaps xmmword [ecx + edi], xmm2
movaps xmmword [edi + 0x30], xmm1
movaps xmmword [eax + edi], xmm3
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8