Function at 0x406250
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f0075
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x53ba20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 2
call fcn.004c8c9a
mov esi, eax
xor eax, eax
mov word [esi], ax
push 2
mov dword [ebp - 4], eax
call fcn.004c8c9a
xor ecx, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov word [eax], cx
mov ecx, dword [ebp + 0xc]
mov edi, 0x4fbd20
test ecx, ecx
mov byte [ebp - 4], 1
mov edx, edi
cmovne edx, ecx
push edx
call fcn.004c8c20
push esi
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x1c], eax
call fcn.004c8c7f
add esp, 0x10
push dword [0x540000]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 0x100
jne 0x406368
mov ecx, dword [ebp + 0xc]
mov eax, edi
test ecx, ecx
cmovne eax, ecx
push eax
call fcn.004c8c20
push 0
mov esi, eax
call fcn.004c8c7f
push esi
call fcn.004c999c
push 0x4fc494
push esi
call fcn.004c5729
add esp, 0x14
test eax, eax
je 0x40635f
push 0x4fc494
push esi
call fcn.004c5729
mov edx, dword [ebp + 0xc]
mov ecx, eax
movups xmm0, xmmword [0x4fc29c]
sub ecx, esi
add esp, 8
sar ecx, 1
movups xmmword [edx + ecx*2], xmm0
movq xmm0, qword [0x4fc2ac]
movq qword [edx + ecx*2 + 0x10], xmm0
mov eax, dword [0x4fc2b4]
mov dword [edx + ecx*2 + 0x18], eax
add ecx, 0xe
lea ecx, [edx + ecx*2]
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
test ax, ax
jne 0x406350
push esi
call fcn.004c8c7f
add esp, 4
push dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push eax
call fcn.00414b30
mov ecx, edi
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
call fcn.004c8c20
push dword [ebp - 0x10]
mov esi, eax
mov dword [ebp - 0x14], esi
call fcn.004c8c7f
push dword [ebp - 0x18]
call fcn.004c8c7f
test esi, esi
mov eax, edi
cmovne eax, esi
push eax
call fcn.004c8c20
push dword [ebp + 0xc]
mov edi, eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x1c], edi
call fcn.004c8c7f
add esp, 0x1c
cmp word [esi], 0x22
jne 0x406428
lea eax, [esi + 2]
push 0x22
push eax
mov dword [ebp + 0xc], eax
call fcn.004c55d8
mov edx, dword [ebp + 0xc]
add esp, 8
mov dword [ebp - 0x1c], eax
mov esi, edi
test eax, eax
je 0x40640b
xor ecx, ecx
test edx, edx
mov word [eax], cx
mov ecx, 0x4fbd20
cmovne ecx, edx
push ecx
call fcn.004c8c20
push esi
mov edi, eax
call fcn.004c8c7f
mov eax, dword [ebp - 0x1c]
mov ecx, 0x22
add esp, 8
mov word [eax], cx
jmp 0x406493
test edx, edx
mov eax, 0x4fbd20
cmovne eax, edx
push eax
call fcn.004c8c20
push esi
mov edi, eax
call fcn.004c8c7f
add esp, 8
jmp 0x406493
push esi
call fcn.00414c30
add esp, 4
cmp eax, 0xffffffff
jne 0x406493
push 0x20
push esi
xor edi, edi
call fcn.004c5688
mov esi, eax
add esp, 8
test esi, esi
je 0x406490
mov eax, 0x20
test edi, edi
je 0x406455
mov word [edi], ax
mov edi, dword [ebp - 0x14]
xor eax, eax
push edi
mov word [esi], ax
call fcn.00414c30
add esp, 4
cmp eax, 0xffffffff
je 0x40646f
test al, 0x10
je 0x4064d9
push 0x20
push dword [ebp - 0x14]
mov edi, esi
call fcn.004c5688
mov esi, eax
add esp, 8
test esi, esi
jne 0x406449
test edi, edi
je 0x406490
mov eax, 0x20
mov word [edi], ax
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp + 8]
test edi, edi
mov eax, 0x4fbd20
cmovne eax, edi
push eax
mov dword [esi], 0
call fcn.004c8c20
push 0
mov dword [esi], eax
call fcn.004c8c7f
push dword [ebp - 0x14]
call fcn.004c8c7f
push edi
call fcn.004c8c7f
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.004c8c20
push 0
mov dword [esi], eax
call fcn.004c8c7f
push edi
call fcn.004c8c7f
push dword [ebp - 0x10]
jmp 0x4064be