Function at 0x406bd0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f8f20
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push esi
push edi
mov eax, dword [0x591430]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
cmp dword [esi + 4], 0xffffffff
lea edi, [esi + 4]
jne 0x406ecf
mov dword [ebp - 0x2c], 0
call fcn.004b9da0
mov dword [ebp - 0x28], eax
mov ecx, 2
mov eax, dword [ebp + 8]
mov esi, 0x17
cmp word [eax], cx
cmove esi, ecx
cmp dword [edi], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
mov dword [ebp - 0x1c], eax
je 0x406c4c
call fcn.00418490
mov edx, 1
mov edi, eax
mov dword [ebp - 0x18], edx
jmp 0x406d2c
lea eax, [ebp - 0x2c]
push eax
push 6
push 1
push esi
call fcn.0041c8c0
add esp, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
cmp eax, 0xffffffff
jne 0x406c74
mov dword [ebp - 4], eax
jmp 0x406ca7
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ecx + 0x18]
call fcn.0041a920
xor edx, edx
mov ecx, fcn.0040e7c0
cmp dword [eax], edx
cmove ecx, edx
test ecx, ecx
je 0x406cbe
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call fcn.0040f210
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], edx
test edx, edx
jne 0x406cb9
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
jmp 0x406cf9
mov edi, dword [ebp - 0x28]
jmp 0x406d2c
push dword [ebp + 0xc]
mov eax, dword [ebp - 0x18]
lea ecx, [edi + 8]
push 0
mov dword [ebp - 0x14], 0xffffffff
mov dword [edi], eax
mov byte [edi + 4], 0x10
call fcn.00409e00
xor ecx, ecx
mov dword [ebp - 0x18], ecx
call fcn.004b9da0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
call fcn.0040f210
xor edx, edx
xorps xmm1, xmm1
mov dword [edi + 0x20], esi
movups xmmword [ebp - 0x54], xmm1
mov dword [ebp - 0x54], 2
mov dword [ebp - 0x50], 0
movups xmm0, xmmword [ebp - 0x54]
mov byte [edi + 0x24], 0
movups xmmword [edi + 0x28], xmm0
movq qword [edi + 0x38], xmm1
mov dword [edi + 0x40], 0
mov edi, dword [ebp - 0x1c]
xor ecx, ecx
mov eax, fcn.0040e7c0
test edx, edx
cmove eax, ecx
test eax, eax
je 0x406ecc
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov dword [ebp - 0x54], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x50], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x4c], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x48], eax
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x44], eax
mov dword [ecx + 0x10], 0
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], edi
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 1
mov byte [ebp - 0x73], 1
mov dword [ebp - 0x5c], edx
mov esi, dword [eax]
mov eax, dword [ebp - 0x54]
mov dword [ebp + 8], eax
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x50]
mov esi, dword [esi + 0xc]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x58], edi
push dword [0x595c4c]
lea eax, [ebp + 0xf]
mov byte [ebp - 4], 2
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x406df5
mov eax, dword [eax + 4]
jmp 0x406df7
xor eax, eax
push 0x44
push eax
call fcn.004146c0
mov ecx, dword [ebp + 8]
add esp, 8
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0x416bc0
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x1c], 0
mov byte [eax + 0x21], 1
mov dword [eax + 0x24], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 0x28], ecx
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x2c], ecx
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0x30], ecx
mov ecx, dword [ebp - 0x20]
mov dword [eax + 0x34], ecx
mov ecx, dword [ebp - 0x18]
push 0
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], edi
mov ecx, dword [esi + 8]
push eax
call fcn.0041a260
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
call fcn.0041b0c0
mov esi, dword [ebp - 0x48]
test esi, esi
je 0x406fcb
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x406fcb
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x406fcb
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp - 0x10]
mov eax, dword [esi]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push eax
push 0x4c
mov dword [ebp - 0x38], eax
call fcn.00414730
mov edi, eax
add esp, 8
mov dword [ebp - 0x34], edi
mov esi, dword [esi + 4]
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0x416d40
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x1c], 0
mov dword [ebp - 4], 3
mov dword [edi + 0x20], 0
call fcn.004b9da0
mov ecx, dword [ebp + 0xc]
mov edx, 0x1c
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0x417700
mov dword [edi + 0x30], esi
mov byte [edi + 0x34], 0
mov eax, dword [ecx]
mov dword [edi + 0x38], eax
mov eax, dword [ecx + 4]
mov dword [edi + 0x3c], eax
mov eax, dword [ecx + 8]
mov dword [edi + 0x40], eax
mov eax, dword [ecx + 0xc]
mov dword [edi + 0x44], eax
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov eax, dword [ecx + 0x10]
mov dword [edi + 0x48], eax
mov eax, 0x10
mov dword [ecx + 0x10], 0
mov ecx, dword [ebp + 8]
push edi
mov dword [ebp - 0x30], edi
cmp word [ecx], 2
cmovne eax, edx
push eax
mov eax, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x20]
add eax, 4
push 1
add ecx, 0x14
push dword [eax + 0x20]
push eax
call fcn.0041d070
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
call fcn.0041b150
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8