Function at 0x4eb940
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x68
push esi
mov esi, ecx
push edi
mov dword [esp + 0x20], esi
call fcn.004ea960
push dword [0x884adc]
mov edi, eax
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0x2c
mov ecx, dword [eax + 0x2c]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
call edx
add esi, 0xfc
mov dword [esp + 0x1c], eax
mov dword [eax + 4], 0x1ffff
mov dword [eax], vtable.hkpStorageExtendedMeshShape::ShapeSubpartStorage.0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], connect
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], connect
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
mov dword [eax + 0x28], connect
mov eax, dword [esi + 8]
and eax, 0x3fffffff
cmp dword [esi + 4], eax
jne 0x4eb9e7
push 4
push esi
push 0x7d8954
call fcn.00467c00
add esp, 0xc
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov edx, dword [esp + 0x1c]
mov dword [eax + ecx*4], edx
inc dword [esi + 4]
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov esi, dword [ebp + 8]
push esi
mov eax, dword [eax + ecx*4 - 4]
mov ecx, edi
mov dword [esp + 0x18], eax
call fcn.004eaad0
mov al, byte [esi + 1]
mov byte [edi + 1], al
mov eax, dword [esi + 4]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4ebc26
cmp byte [esi + 1], 1
jne 0x4ebb0a
cmp word [esi + 8], 0
jne 0x4eba7e
mov edx, dword [esp + 0x14]
add edx, 8
mov dword [esp + 0x24], edx
mov eax, dword [edx + 8]
and eax, 0x3fffffff
cmp dword [edx + 4], eax
jne 0x4eba60
push 1
push edx
push 0x7d8954
call fcn.00467c00
mov edx, dword [esp + 0x30]
add esp, 0xc
mov ecx, dword [edx + 4]
mov eax, dword [esp + 0x1c]
add ecx, dword [edx]
mov al, byte [eax]
mov byte [ecx], al
inc dword [edx + 4]
mov eax, dword [edx]
dec eax
add eax, dword [edx + 4]
mov dword [edi + 4], eax
jmp 0x4ebbfd
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 0x18]
add ecx, 8
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], ecx
mov edx, dword [ecx + 4]
mov edi, dword [ecx + 8]
and edi, 0x3fffffff
mov dword [esp + 0x2c], edx
add edx, eax
mov dword [esp + 0x24], edi
cmp edi, edx
mov edi, dword [esp + 0x18]
jge 0x4ebad2
mov eax, dword [esp + 0x24]
add eax, eax
cmp edx, eax
push 1
cmovl edx, eax
push edx
push ecx
push 0x7d8954
call fcn.00467b80
mov eax, dword [esp + 0x2c]
add esp, 0x10
mov ecx, dword [esp + 0x28]
add dword [ecx + 4], eax
mov eax, dword [ecx]
xor ecx, ecx
add eax, dword [esp + 0x2c]
mov dword [edi + 4], eax
mov edx, dword [esi + 4]
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x1c], ecx
jle 0x4ebbfd
mov edi, eax
mov al, byte [edx]
mov byte [ecx + edi], al
inc ecx
movzx eax, word [esi + 8]
add edx, eax
cmp ecx, dword [esp + 0x1c]
jl 0x4ebaf3
jmp 0x4ebbf9
mov ecx, dword [esp + 0x14]
add ecx, 0x20
cmp word [esi + 8], 0
jne 0x4ebb68
mov eax, dword [ecx + 8]
and eax, 0x3fffffff
mov dword [esp + 0x2c], ecx
cmp dword [ecx + 4], eax
jne 0x4ebb3d
push 2
push ecx
push 0x7d8954
call fcn.00467c00
mov ecx, dword [esp + 0x38]
add esp, 0xc
mov edx, dword [ecx + 4]
mov eax, dword [esp + 0x1c]
mov ecx, dword [ecx]
mov ax, word [eax]
mov word [ecx + edx*2], ax
mov eax, dword [esp + 0x14]
inc dword [eax + 0x24]
mov ecx, dword [eax + 0x24]
mov eax, dword [eax + 0x20]
lea eax, [eax + ecx*2]
add eax, 0xfffffffe
mov dword [edi + 4], eax
jmp 0x4ebbfd
mov edx, dword [ecx + 4]
mov eax, dword [esi + 0x18]
mov edi, dword [ecx + 8]
and edi, 0x3fffffff
mov dword [esp + 0x24], edx
add edx, eax
mov dword [esp + 0x2c], edi
cmp edi, edx
mov dword [esp + 0x1c], eax
mov edi, dword [esp + 0x18]
mov dword [esp + 0x28], ecx
jge 0x4ebbb5
mov eax, dword [esp + 0x2c]
add eax, eax
cmp edx, eax
push 2
cmovl edx, eax
push edx
push ecx
push 0x7d8954
call fcn.00467b80
mov eax, dword [esp + 0x2c]
add esp, 0x10
mov ecx, dword [esp + 0x28]
add dword [ecx + 4], eax
mov eax, dword [ecx]
mov ecx, dword [esp + 0x24]
lea eax, [eax + ecx*2]
xor ecx, ecx
mov dword [edi + 4], eax
mov edx, dword [esi + 4]
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x1c], ecx
jle 0x4ebbfd
mov edi, dword [esp + 0x1c]
nop word [eax + eax]
mov esi, dword [esp + 0x2c]
mov ax, word [edx]
mov word [esi + ecx*2], ax
inc ecx
mov esi, dword [ebp + 8]
movzx eax, word [esi + 8]
add edx, eax
cmp ecx, edi
jl 0x4ebbe0
mov edi, dword [esp + 0x18]
movzx eax, word [esi + 8]
mov word [edi + 8], ax
test ax, ax
je 0x4ebc33
movsx eax, byte [edi + 1]
sub eax, 1
je 0x4ebc1f
sub eax, 1
jne 0x4ebc33
mov eax, 2
jmp 0x4ebc2f
mov eax, 1
jmp 0x4ebc2f
mov dword [edi + 4], 0
xor eax, eax
mov word [edi + 8], ax
cmp dword [edi + 4], 0
je 0x4ebd4f
mov edi, dword [esp + 0x14]
movzx eax, word [esi + 0xa]
add edi, 0x14
mov dword [esp + 0x28], eax
mov edx, dword [edi + 4]
mov dword [esp + 0x2c], edx
lea ecx, [eax + edx]
mov eax, dword [edi + 8]
and eax, 0x3fffffff
cmp eax, ecx
jge 0x4ebc7e
add eax, eax
cmp ecx, eax
push 0xc
cmovl ecx, eax
push ecx
push edi
push 0x7d8954
call fcn.00467b80
mov edx, dword [esp + 0x3c]
add esp, 0x10
mov eax, dword [esp + 0x28]
lea ecx, [edx + edx*2]
add dword [edi + 4], eax
mov eax, dword [edi]
mov edi, dword [esi + 0xc]
mov dword [esp + 0x1c], 0
lea edx, [eax + ecx*4]
xor eax, eax
cmp ax, word [esi + 0xa]
jae 0x4ebd1c
test edx, edx
je 0x4ebcb6
xorps xmm0, xmm0
mov ecx, edx
movq qword [edx], xmm0
mov dword [edx + 8], 0
jmp 0x4ebcb8
xor ecx, ecx
mov eax, dword [esp + 0x20]
cmp dword [eax + 0xb0], 0x8cc78c
jne 0x4ebcd8
movq xmm0, qword [edi]
movq qword [ecx], xmm0
mov eax, dword [edi + 8]
mov dword [ecx + 8], eax
jmp 0x4ebd02
mov eax, dword [edi]
mov dword [ecx], eax
mov dword [esp + 0x2c], 0x3f800000
mov eax, dword [esp + 0x2c]
sar eax, 0x10
mov word [ecx + 6], ax
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x2c]
sar eax, 0x10
mov word [ecx + 4], ax
movsx eax, word [esi + 2]
add edx, 0xc
mov ecx, dword [esp + 0x1c]
add edi, eax
movzx eax, word [esi + 0xa]
inc ecx
mov dword [esp + 0x1c], ecx
cmp ecx, eax
jl 0x4ebca0
cmp word [esi + 2], 0
mov edi, dword [esp + 0x18]
je 0x4ebd36
mov eax, 0xc
mov word [edi + 2], ax
mov ax, word [esi + 0xa]
jmp 0x4ebd41
xor eax, eax
mov word [edi + 2], ax
mov eax, 1
mov word [edi + 0xa], ax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x14]
mov dword [edi + 0xc], eax
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x50]
push eax
push edi
movaps xmm0, xmmword [esi + 0xa0]
movaps xmm2, xmmword [esi + 0x90]
movaps xmm1, xmm0
subps xmm1, xmm2
addps xmm2, xmm0
movaps xmmword [esp + 0x38], xmm1
movaps xmmword [esp + 0x48], xmm2
call fcn.004ea500
movaps xmm2, xmmword [esp + 0x48]
add esp, 8
maxps xmm2, xmmword [esp + 0x60]
mov ecx, esi
push edi
movaps xmm1, xmmword [esp + 0x34]
minps xmm1, xmmword [esp + 0x54]
movaps xmm0, xmm2
addps xmm0, xmm1
subps xmm2, xmm1
mulps xmm0, xmmword [0x719700]
movaps xmmword [esi + 0xa0], xmm0
mulps xmm2, xmmword [0x719700]
movaps xmmword [esi + 0x90], xmm2
call fcn.004eaa90
add dword [esi + 0xe4], eax
mov eax, dword [esi + 0xc8]
pop edi
dec eax
pop esi
mov esp, ebp
pop ebp
ret 4