Function at 0x406290
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ee615
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x535a40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 2
call fcn.004c8d7a
mov esi, eax
xor eax, eax
mov word [esi], ax
push 2
mov dword [ebp - 4], eax
call fcn.004c8d7a
xor ecx, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov word [eax], cx
mov ecx, dword [ebp + 0xc]
mov edi, 0x4f9d20
test ecx, ecx
mov byte [ebp - 4], 1
mov edx, edi
cmovne edx, ecx
push edx
call fcn.004c8d00
push esi
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x1c], eax
call fcn.004c8d5f
add esp, 0x10
push dword [0x539fd0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 0x100
jne 0x4063a8
mov ecx, dword [ebp + 0xc]
mov eax, edi
test ecx, ecx
cmovne eax, ecx
push eax
call fcn.004c8d00
push 0
mov esi, eax
call fcn.004c8d5f
push esi
call fcn.004c9a7c
push 0x4fa494
push esi
call fcn.004c580a
add esp, 0x14
test eax, eax
je 0x40639f
push 0x4fa494
push esi
call fcn.004c580a
mov edx, dword [ebp + 0xc]
sub eax, esi
movups xmm0, xmmword [0x4fa29c]
sar eax, 1
add esp, 8
lea ecx, [eax + eax]
movups xmmword [ecx + edx], xmm0
movq xmm0, qword [0x4fa2ac]
movq qword [ecx + edx + 0x10], xmm0
mov eax, dword [0x4fa2b4]
mov dword [ecx + edx + 0x18], eax
add ecx, 0x1c
add ecx, edx
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
test ax, ax
jne 0x406390
push esi
call fcn.004c8d5f
add esp, 4
push dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push eax
call fcn.00414b20
mov ecx, edi
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
call fcn.004c8d00
push dword [ebp - 0x10]
mov esi, eax
mov dword [ebp - 0x14], esi
call fcn.004c8d5f
push dword [ebp - 0x18]
call fcn.004c8d5f
test esi, esi
mov eax, edi
cmovne eax, esi
push eax
call fcn.004c8d00
push dword [ebp + 0xc]
mov edi, eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x1c], edi
call fcn.004c8d5f
add esp, 0x1c
cmp word [esi], 0x22
jne 0x406468
lea eax, [esi + 2]
push 0x22
push eax
mov dword [ebp + 0xc], eax
call fcn.004c56b8
mov edx, dword [ebp + 0xc]
add esp, 8
mov dword [ebp - 0x1c], eax
mov esi, edi
test eax, eax
je 0x40644b
xor ecx, ecx
test edx, edx
mov word [eax], cx
mov ecx, 0x4f9d20
cmovne ecx, edx
push ecx
call fcn.004c8d00
push esi
mov edi, eax
call fcn.004c8d5f
mov eax, dword [ebp - 0x1c]
mov ecx, 0x22
add esp, 8
mov word [eax], cx
jmp 0x4064d3
test edx, edx
mov eax, 0x4f9d20
cmovne eax, edx
push eax
call fcn.004c8d00
push esi
mov edi, eax
call fcn.004c8d5f
add esp, 8
jmp 0x4064d3
push esi
call fcn.00414c20
add esp, 4
cmp eax, 0xffffffff
jne 0x4064d3
push 0x20
push esi
xor edi, edi
call fcn.004c5767
mov esi, eax
add esp, 8
test esi, esi
je 0x4064d0
mov eax, 0x20
test edi, edi
je 0x406495
mov word [edi], ax
mov edi, dword [ebp - 0x14]
xor eax, eax
push edi
mov word [esi], ax
call fcn.00414c20
add esp, 4
cmp eax, 0xffffffff
je 0x4064af
test al, 0x10
je 0x406519
push 0x20
push dword [ebp - 0x14]
mov edi, esi
call fcn.004c5767
mov esi, eax
add esp, 8
test esi, esi
jne 0x406489
test edi, edi
je 0x4064d0
mov eax, 0x20
mov word [edi], ax
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp + 8]
test edi, edi
mov eax, 0x4f9d20
cmovne eax, edi
push eax
mov dword [esi], 0
call fcn.004c8d00
push 0
mov dword [esi], eax
call fcn.004c8d5f
push dword [ebp - 0x14]
call fcn.004c8d5f
push edi
call fcn.004c8d5f
mov eax, esi
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
push edi
mov dword [esi], 0
call fcn.004c8d00
push 0
mov dword [esi], eax
call fcn.004c8d5f
push edi
call fcn.004c8d5f
push dword [ebp - 0x10]
jmp 0x4064fe