Function at 0x4eb010
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x68
push esi
mov eax, ecx
push edi
mov dword [esp + 0x18], eax
call fcn.004ea8f0
mov esi, dword [ebp + 8]
mov edi, eax
push esi
mov ecx, edi
mov dword [esp + 0x18], edi
call fcn.004eac00
push dword [0x884adc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0x68
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
mov ecx, 0x68
mov word [eax + 4], cx
mov ecx, eax
call fcn.004ebf40
mov edx, dword [esp + 0x18]
add edx, 0xf0
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
mov ecx, dword [edx + 8]
and ecx, 0x3fffffff
cmp dword [edx + 4], ecx
jne 0x4eb093
push 4
push edx
push 0x7d8954
call fcn.00467c00
mov edx, dword [esp + 0x30]
add esp, 0xc
mov ecx, dword [edx + 4]
mov eax, dword [edx]
mov edi, dword [esp + 0x20]
mov dword [eax + ecx*4], edi
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [edx]
mov edx, dword [esi + 0x1c]
mov dword [esp + 0x28], edx
mov eax, dword [eax + ecx*4 - 4]
mov edi, dword [eax + 0x10]
lea ecx, [eax + 8]
mov dword [esp + 0x10], eax
and edi, 0x3fffffff
mov eax, dword [ecx + 4]
add edx, eax
mov dword [esp + 0x24], edi
cmp edi, edx
mov edi, dword [esp + 0x14]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], eax
jge 0x4eb0ff
mov eax, dword [esp + 0x24]
add eax, eax
cmp edx, eax
push 0x10
cmovl edx, eax
push edx
push ecx
push 0x7d8954
call fcn.00467b80
mov eax, dword [esp + 0x2c]
add esp, 0x10
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
add dword [ecx + 4], edx
xor edx, edx
shl eax, 4
add eax, dword [ecx]
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x1c], eax
cmp dword [esi + 0x1c], edx
jle 0x4eb151
mov edi, eax
nop dword [eax + eax]
movss xmm3, dword [ecx]
lea edi, [edi + 0x10]
movss xmm2, dword [ecx + 4]
xorps xmm1, xmm1
movss xmm0, dword [ecx + 8]
inc edx
unpcklps xmm3, xmm0
unpcklps xmm2, xmm1
unpcklps xmm3, xmm2
movaps xmmword [edi - 0x10], xmm3
movzx eax, word [esi + 0x24]
add ecx, eax
cmp edx, dword [esi + 0x1c]
jl 0x4eb120
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 8]
mov dword [edi + 0x18], eax
mov eax, 0x10
mov word [edi + 0x24], ax
mov eax, dword [esi + 0x1c]
mov dword [edi + 0x1c], eax
mov al, byte [esi + 0x2e]
cmp al, 1
jne 0x4eb242
movzx eax, word [esi + 0x2c]
movsx ecx, ax
cmp ax, 2
jle 0x4eb187
mov ecx, 4
mov word [edi + 0x2c], cx
push dword [esi + 0x14]
cwde
push eax
call fcn.004ec3d0
lea ecx, [edx + 0x14]
mov dword [esp + 0x2c], eax
mov edx, dword [ecx + 4]
add esp, 8
mov dword [esp + 0x20], edx
add edx, eax
mov eax, dword [ecx + 8]
and eax, 0x3fffffff
mov dword [esp + 0x28], ecx
cmp eax, edx
jge 0x4eb1d4
add eax, eax
cmp edx, eax
push 1
cmovl edx, eax
push edx
push ecx
push 0x7d8954
call fcn.00467b80
mov ecx, dword [esp + 0x38]
add esp, 0x10
mov edx, dword [esp + 0x24]
mov eax, dword [ecx]
add eax, dword [esp + 0x20]
add dword [ecx + 4], edx
push edx
push 0
push eax
mov dword [esp + 0x34], eax
call fcn.0045d830
mov ecx, dword [esp + 0x34]
add esp, 0xc
cmp dword [esi + 0x14], 0
mov edx, dword [esi + 0x20]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], 0
jle 0x4eb3fa
nop
movzx eax, byte [edx]
mov byte [ecx], al
movzx eax, byte [edx + 1]
mov byte [ecx + 1], al
movzx eax, byte [edx + 2]
mov byte [ecx + 2], al
movzx eax, word [edi + 0x2c]
add ecx, eax
movzx eax, word [esi + 0x2c]
add edx, eax
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
cmp eax, dword [esi + 0x14]
jl 0x4eb210
jmp 0x4eb3fa
cmp al, 2
mov ax, word [esi + 0x2c]
jne 0x4eb328
shr ax, 1
movzx ecx, ax
movsx eax, cx
cmp cx, 2
jle 0x4eb262
mov eax, 4
add eax, eax
mov word [edi + 0x2c], ax
push dword [esi + 0x14]
movsx eax, cx
push eax
call fcn.004ec3d0
lea ecx, [edx + 0x20]
mov dword [esp + 0x2c], eax
mov edx, dword [ecx + 4]
add esp, 8
mov dword [esp + 0x20], edx
add edx, eax
mov eax, dword [ecx + 8]
and eax, 0x3fffffff
mov dword [esp + 0x28], ecx
cmp eax, edx
jge 0x4eb2b3
add eax, eax
cmp edx, eax
push 2
cmovl edx, eax
push edx
push ecx
push 0x7d8954
call fcn.00467b80
mov ecx, dword [esp + 0x38]
add esp, 0x10
mov edx, dword [esp + 0x24]
mov eax, dword [ecx]
add dword [ecx + 4], edx
mov ecx, dword [esp + 0x20]
lea ecx, [eax + ecx*2]
lea eax, [edx + edx]
mov dword [esp + 0x28], ecx
push eax
push 0
push ecx
call fcn.0045d830
mov ecx, dword [esp + 0x34]
add esp, 0xc
cmp dword [esi + 0x14], 0
mov edx, dword [esi + 0x20]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], 0
jle 0x4eb3fa
movzx eax, word [edx]
mov word [ecx], ax
movzx eax, word [edx + 2]
mov word [ecx + 2], ax
movzx eax, word [edx + 4]
mov word [ecx + 4], ax
movzx eax, word [edi + 0x2c]
add ecx, eax
movzx eax, word [esi + 0x2c]
add edx, eax
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
cmp eax, dword [esi + 0x14]
jl 0x4eb2f3
jmp 0x4eb3fa
shr ax, 2
movzx ecx, ax
movsx eax, cx
cmp cx, 2
jle 0x4eb33d
mov eax, 4
shl eax, 2
mov word [edi + 0x2c], ax
push dword [esi + 0x14]
movsx eax, cx
push eax
call fcn.004ec3d0
lea ecx, [edx + 0x2c]
mov dword [esp + 0x2c], eax
mov edx, dword [ecx + 4]
add esp, 8
mov dword [esp + 0x20], edx
add edx, eax
mov eax, dword [ecx + 8]
and eax, 0x3fffffff
mov dword [esp + 0x28], ecx
cmp eax, edx
jge 0x4eb38f
add eax, eax
cmp edx, eax
push 4
cmovl edx, eax
push edx
push ecx
push 0x7d8954
call fcn.00467b80
mov ecx, dword [esp + 0x38]
add esp, 0x10
mov edx, dword [esp + 0x24]
mov eax, dword [ecx]
add dword [ecx + 4], edx
mov ecx, dword [esp + 0x20]
lea ecx, [eax + ecx*4]
lea eax, [edx*4]
mov dword [esp + 0x28], ecx
push eax
push 0
push ecx
call fcn.0045d830
mov ecx, dword [esp + 0x34]
add esp, 0xc
cmp dword [esi + 0x14], 0
mov edx, dword [esi + 0x20]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], 0
jle 0x4eb3fa
nop
mov eax, dword [edx]
mov dword [ecx], eax
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
movzx eax, word [edi + 0x2c]
add ecx, eax
movzx eax, word [esi + 0x2c]
add edx, eax
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
cmp eax, dword [esi + 0x14]
jl 0x4eb3d0
movzx eax, byte [esi + 0x2e]
mov byte [edi + 0x2e], al
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
movzx eax, byte [esi + 0x2f]
mov byte [edi + 0x2f], al
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x20], eax
movzx eax, byte [esi + 1]
mov byte [edi + 1], al
mov eax, dword [esi + 4]
mov dword [esp + 0x20], eax
test eax, eax
je 0x4eb600
cmp byte [esi + 1], 1
jne 0x4eb506
cmp word [esi + 8], 0
jne 0x4eb486
mov edx, dword [esp + 0x10]
add edx, 0x38
mov dword [esp + 0x28], edx
mov eax, dword [edx + 8]
and eax, 0x3fffffff
cmp dword [edx + 4], eax
jne 0x4eb468
push 1
push edx
push 0x7d8954
call fcn.00467c00
mov edx, dword [esp + 0x34]
add esp, 0xc
mov ecx, dword [edx + 4]
mov eax, dword [esp + 0x20]
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 0x4eb5d7
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0x14]
add ecx, 0x38
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
mov edx, dword [ecx + 4]
mov dword [esp + 0x20], edx
add edx, eax
mov eax, dword [ecx + 8]
and eax, 0x3fffffff
cmp eax, edx
jge 0x4eb4c9
add eax, eax
cmp edx, eax
push 1
cmovl edx, eax
push edx
push ecx
push 0x7d8954
call fcn.00467b80
mov ecx, dword [esp + 0x38]
add esp, 0x10
mov eax, dword [esp + 0x24]
add dword [ecx + 4], eax
mov eax, dword [ecx]
xor ecx, ecx
add eax, dword [esp + 0x20]
mov dword [edi + 4], eax
mov edx, dword [esi + 4]
mov dword [esp + 0x28], eax
cmp dword [esi + 0x14], ecx
jle 0x4eb5d7
mov edi, eax
nop dword [eax]
mov al, byte [edx]
mov byte [ecx + edi], al
inc ecx
movzx eax, word [esi + 8]
add edx, eax
cmp ecx, dword [esi + 0x14]
jl 0x4eb4f0
jmp 0x4eb5d3
mov ecx, dword [esp + 0x10]
add ecx, 0x5c
cmp word [esi + 8], 0
mov dword [esp + 0x28], ecx
jne 0x4eb561
mov eax, dword [ecx + 8]
and eax, 0x3fffffff
cmp dword [ecx + 4], eax
jne 0x4eb539
push 2
push ecx
push 0x7d8954
call fcn.00467c00
mov ecx, dword [esp + 0x34]
add esp, 0xc
mov edx, dword [ecx + 4]
mov eax, dword [esp + 0x20]
mov ecx, dword [ecx]
mov ax, word [eax]
mov word [ecx + edx*2], ax
mov eax, dword [esp + 0x10]
inc dword [eax + 0x60]
mov ecx, dword [eax + 0x60]
mov eax, dword [eax + 0x5c]
lea eax, [eax + ecx*2]
add eax, 0xfffffffe
mov dword [edi + 4], eax
jmp 0x4eb5d7
mov eax, dword [esi + 0x14]
mov edx, dword [ecx + 4]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edx
add edx, eax
mov eax, dword [ecx + 8]
and eax, 0x3fffffff
cmp eax, edx
jge 0x4eb599
add eax, eax
cmp edx, eax
push 2
cmovl edx, eax
push edx
push ecx
push 0x7d8954
call fcn.00467b80
mov ecx, dword [esp + 0x38]
add esp, 0x10
mov eax, dword [esp + 0x24]
add dword [ecx + 4], eax
mov eax, dword [ecx]
mov ecx, dword [esp + 0x20]
lea eax, [eax + ecx*2]
xor ecx, ecx
mov dword [edi + 4], eax
mov edx, dword [esi + 4]
mov dword [esp + 0x28], eax
cmp dword [esi + 0x14], ecx
jle 0x4eb5d7
mov edi, eax
nop dword [eax]
mov ax, word [edx]
mov word [edi + ecx*2], ax
inc ecx
movzx eax, word [esi + 8]
add edx, eax
cmp ecx, dword [esi + 0x14]
jl 0x4eb5c0
mov edi, dword [esp + 0x14]
movzx eax, word [esi + 8]
mov word [edi + 8], ax
test ax, ax
je 0x4eb60d
movsx eax, byte [edi + 1]
sub eax, 1
je 0x4eb5f9
sub eax, 1
jne 0x4eb60d
mov eax, 2
jmp 0x4eb609
mov eax, 1
jmp 0x4eb609
mov dword [edi + 4], 0
xor eax, eax
mov word [edi + 8], ax
cmp dword [edi + 4], 0
je 0x4eb88f
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
cmp dword [eax + 0xb0], 0x8cbdb4
jne 0x4eb76e
movzx eax, word [esi + 0xa]
add edx, 0x50
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], edx
mov ecx, dword [edx + 4]
mov dword [esp + 0x2c], ecx
add ecx, eax
mov eax, dword [edx + 8]
and eax, 0x3fffffff
cmp eax, ecx
jge 0x4eb66f
add eax, eax
cmp ecx, eax
push 8
cmovl ecx, eax
push ecx
push edx
push 0x7d8954
call fcn.00467b80
mov edx, dword [esp + 0x2c]
add esp, 0x10
mov ecx, dword [edx + 4]
mov eax, dword [edx]
lea eax, [eax + ecx*8]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
test eax, eax
jle 0x4eb6c3
mov edi, dword [esp + 0x28]
mov dword [esp + 0x20], eax
nop dword [eax + eax]
test edi, edi
je 0x4eb6ab
push str.Default
lea ecx, [edi + 4]
call fcn.0045d8d0
mov eax, dword [esp + 0x20]
mov dword [edi], 0
add edi, 8
sub eax, 1
mov dword [esp + 0x20], eax
jne 0x4eb690
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
add dword [edx + 4], eax
mov eax, dword [edx]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esi + 0xc]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], 0
lea eax, [eax + ecx*8]
mov dword [esp + 0x2c], eax
xor eax, eax
cmp ax, word [esi + 0xa]
jae 0x4eb747
mov edi, dword [esp + 0x2c]
nop
test edi, edi
je 0x4eb70f
push str.Default
lea ecx, [edi + 4]
call fcn.0045d8d0
mov edx, dword [esp + 0x1c]
mov ecx, edi
mov dword [edi], 0
jmp 0x4eb711
xor ecx, ecx
mov eax, dword [edx]
mov dword [ecx], eax
lea eax, [edx + 4]
push eax
add ecx, 4
call fcn.0045d9c0
movsx eax, word [esi + 2]
add edi, 8
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
add edx, eax
movzx eax, word [esi + 0xa]
inc ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], ecx
cmp ecx, eax
jl 0x4eb6f0
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x50]
mov dword [edi + 0xc], eax
cmp word [esi + 2], 0
je 0x4eb880
mov eax, 8
mov word [edi + 2], ax
mov ax, word [esi + 0xa]
jmp 0x4eb88b
movzx ecx, word [esi + 0xa]
add edx, 0x44
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
mov eax, dword [edx + 4]
add ecx, eax
mov dword [esp + 0x24], eax
mov eax, dword [edx + 8]
and eax, 0x3fffffff
cmp eax, ecx
jge 0x4eb7ae
add eax, eax
cmp ecx, eax
push 0xc
cmovl ecx, eax
push ecx
push edx
push 0x7d8954
call fcn.00467b80
mov edx, dword [esp + 0x3c]
add esp, 0x10
mov eax, dword [esp + 0x28]
add dword [edx + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x24], 0
lea ecx, [eax + eax*2]
mov eax, dword [edx]
lea edx, [eax + ecx*4]
mov eax, dword [esi + 0xc]
mov dword [esp + 0x2c], eax
xor eax, eax
cmp ax, word [esi + 0xa]
jae 0x4eb860
mov edi, dword [esp + 0x2c]
test edx, edx
je 0x4eb7f6
xorps xmm0, xmm0
mov ecx, edx
movq qword [edx], xmm0
mov dword [edx + 8], 0
jmp 0x4eb7f8
xor ecx, ecx
mov eax, dword [esp + 0x18]
cmp dword [eax + 0xb0], 0x8cc78c
jne 0x4eb818
movq xmm0, qword [edi]
movq qword [ecx], xmm0
mov eax, dword [edi + 8]
mov dword [ecx + 8], eax
jmp 0x4eb842
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 + 0x24]
add edi, eax
movzx eax, word [esi + 0xa]
inc ecx
mov dword [esp + 0x24], ecx
cmp ecx, eax
jl 0x4eb7e0
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x44]
mov dword [edi + 0xc], eax
cmp word [esi + 2], 0
je 0x4eb880
mov eax, 0xc
mov word [edi + 2], ax
mov ax, word [esi + 0xa]
jmp 0x4eb88b
xor eax, eax
mov word [edi + 2], ax
mov eax, 1
mov word [edi + 0xa], ax
mov esi, dword [esp + 0x18]
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.004ea360
movss xmm0, dword [esi + 0xe8]
add esp, 8
movaps xmm1, xmmword [esp + 0x50]
mov ecx, esi
movaps xmm2, xmmword [esp + 0x60]
movaps xmm3, xmmword [esp + 0x30]
shufps xmm0, xmm0, 0
subps xmm1, xmm0
mov eax, dword [esi + 0xbc]
addps xmm2, xmm0
dec eax
push eax
push edi
minps xmm3, xmm1
movaps xmm1, xmmword [esp + 0x48]
maxps xmm1, xmm2
movaps xmm0, xmm1
subps xmm1, xmm3
addps xmm0, xmm3
mulps xmm0, xmmword [0x719700]
movaps xmmword [esi + 0xa0], xmm0
mulps xmm1, xmmword [0x719700]
movaps xmmword [esi + 0x90], xmm1
call fcn.004eaa00
add dword [esi + 0xe4], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4