Function at 0x40a550
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a8383
mov eax, dword fs:[0]
push eax
sub esp, 0x88
push ebx
push esi
push edi
mov eax, dword [0x4dc6e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x40], eax
mov word [eax], cx
push 2
mov dword [ebp - 4], ecx
call fcn.0048fb2f
mov edi, eax
xor eax, eax
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
mov word [edi], ax
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x58], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x5c], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x54], eax
add esp, 0x14
mov word [eax], cx
cmp dword [ebp + 0x1c], 0xffffffff
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
mov byte [ebp - 4], 4
jne 0x40a75e
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x14], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x20], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x18], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x3c], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x38], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x48], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x28], eax
test ebx, ebx
mov eax, 0x4af9b8
cmovne eax, ebx
push eax
call fcn.0048faa4
mov ebx, eax
mov dword [ebp + 0x1c], ebx
test esi, esi
mov eax, 0x4af9b8
cmovne eax, esi
push eax
call fcn.0048faa4
mov edi, eax
mov dword [ebp - 0x50], edi
mov ecx, dword [ebp + 0x10]
mov eax, 0x4af9b8
test ecx, ecx
cmovne eax, ecx
push eax
call fcn.0048faa4
mov esi, eax
mov dword [ebp - 0x4c], esi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0x1c]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x44]
push eax
call fcn.00407620
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push eax
call fcn.00407620
add esp, 0x48
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x10
push ecx
movzx ecx, byte [ebp + 0x20]
push ecx
push 0
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x48]
push ecx
push dword [ebp - 0x24]
push eax
push 0
push 0xffffffffffffffff
push 0
push dword [ebp + 8]
call fcn.00403eb0
push dword [ebp - 0x1c]
mov dword [ebp + 0x1c], eax
call fcn.0048faf7
add esp, 0x48
push dword [ebp - 0x44]
call fcn.0048faf7
push esi
call fcn.0048faf7
push edi
call fcn.0048faf7
push ebx
call fcn.0048faf7
push dword [ebp - 0x28]
call fcn.0048faf7
push dword [ebp - 0x48]
call fcn.0048faf7
push dword [ebp - 0x38]
call fcn.0048faf7
push dword [ebp - 0x3c]
call fcn.0048faf7
push dword [ebp - 0x18]
call fcn.0048faf7
push dword [ebp - 0x20]
call fcn.0048faf7
push dword [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.0048faf7
mov esi, dword [ebp + 0x14]
add esp, 0x2c
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0x60]
push eax
push dword [0x4de020]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
push eax
push 0
push ebx
push dword [ebp + 0xc]
call fcn.00406320
add esp, 0x14
test eax, eax
jne 0x40ac21
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x28], eax
mov word [eax], cx
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0x11
push eax
push ecx
push ecx
push esi
push dword [ebp - 0x60]
call fcn.00410620
add esp, 0x18
test eax, eax
jne 0x40ac0d
mov eax, dword [ebp - 0x28]
mov edx, eax
lea ecx, [edx + 2]
mov dword [ebp - 0x44], ecx
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x40a7c2
sub edx, dword [ebp - 0x44]
sar edx, 1
je 0x40ac0d
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
push 0
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0x12
push ecx
push dword [ebp + 0x18]
push eax
call fcn.00406950
mov edx, dword [ebp - 0x68]
add esp, 0x10
mov ecx, dword [ebp - 0x6c]
mov eax, edx
sub eax, ecx
sar eax, 4
mov dword [ebp - 0x50], eax
test eax, eax
je 0x40abf0
lea edi, [ecx + 4]
mov dword [ebp - 0x4c], edi
mov eax, dword [edi]
push dword [eax]
call fcn.0048faa4
push dword [ebp - 0x34]
mov dword [ebp - 0x30], eax
call fcn.0048faf7
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x8c], ecx
mov word [eax], cx
mov dword [ebp - 0x88], ecx
mov eax, dword [edi]
lea ecx, [ebp - 0x94]
push ecx
mov byte [ebp - 4], 0x13
push dword [eax]
call fcn.00406840
push 0
lea eax, [ebp - 0x94]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x44]
push eax
call fcn.00404cf0
push dword [eax]
call fcn.0048faa4
push dword [ebp - 0x2c]
mov dword [ebp - 0x40], eax
call fcn.0048faf7
push dword [ebp - 0x44]
call fcn.0048faf7
test esi, esi
mov eax, 0x4af9b8
cmovne eax, esi
push eax
call fcn.0048faa4
mov dword [ebp - 0x14], eax
test ebx, ebx
mov eax, 0x4af9b8
cmovne eax, ebx
push eax
call fcn.0048faa4
mov ebx, eax
mov dword [ebp - 0x1c], ebx
test esi, esi
mov eax, 0x4af9b8
cmovne eax, esi
push eax
call fcn.0048faa4
mov edi, eax
mov dword [ebp - 0x24], edi
mov ecx, dword [ebp + 0x10]
mov eax, 0x4af9b8
test ecx, ecx
cmovne eax, ecx
push eax
call fcn.0048faa4
mov esi, eax
add esp, 0x40
mov dword [ebp - 0x20], esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x74]
push eax
call fcn.00407620
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x78]
push eax
call fcn.00407620
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x19
push ecx
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x30]
push ecx
push dword [ebp - 0x18]
push eax
push dword [ebp + 8]
call fcn.00403c00
add esp, 0x40
mov byte [ebp - 0xd], al
push dword [ebp - 0x78]
call fcn.0048faf7
push dword [ebp - 0x74]
call fcn.0048faf7
push esi
call fcn.0048faf7
push edi
call fcn.0048faf7
push ebx
call fcn.0048faf7
push dword [ebp - 0x14]
call fcn.0048faf7
add esp, 0x18
cmp byte [ebp - 0xd], 0
je 0x40abb3
cmp dword [ebp + 0x1c], 0xffffffff
jne 0x40aaf9
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x34], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x48], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x38], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x3c], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x18], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x20], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x14], eax
mov esi, dword [ebp + 0x10]
mov eax, 0x4af9b8
test esi, esi
cmovne eax, esi
push eax
call fcn.0048faa4
mov ebx, eax
mov dword [ebp + 0x1c], ebx
mov ecx, dword [ebp + 0x14]
mov eax, 0x4af9b8
test ecx, ecx
cmovne eax, ecx
push eax
call fcn.0048faa4
mov edi, eax
mov dword [ebp - 0x1c], edi
test esi, esi
mov eax, 0x4af9b8
cmovne eax, esi
push eax
call fcn.0048faa4
mov esi, eax
mov dword [ebp - 0x24], esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x1c]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x7c]
push eax
call fcn.00407620
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x80]
push eax
call fcn.00407620
add esp, 0x48
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x25
push 0
push ecx
movzx ecx, byte [ebp + 0x20]
push ecx
push 0
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x20]
push ecx
push dword [ebp - 0x2c]
push eax
push 0
push 0xffffffffffffffff
push 0
push dword [ebp + 8]
call fcn.00403eb0
push dword [ebp - 0x80]
mov dword [ebp + 0x1c], eax
call fcn.0048faf7
add esp, 0x48
push dword [ebp - 0x7c]
call fcn.0048faf7
push esi
call fcn.0048faf7
push edi
call fcn.0048faf7
push ebx
call fcn.0048faf7
push dword [ebp - 0x14]
call fcn.0048faf7
push dword [ebp - 0x20]
call fcn.0048faf7
push dword [ebp - 0x18]
call fcn.0048faf7
push dword [ebp - 0x3c]
call fcn.0048faf7
push dword [ebp - 0x38]
call fcn.0048faf7
push dword [ebp - 0x48]
call fcn.0048faf7
push dword [ebp - 0x34]
call fcn.0048faf7
add esp, 0x2c
mov esi, dword [ebp + 0x14]
mov eax, 0x4af9b8
test esi, esi
cmovne eax, esi
push eax
call fcn.0048faa4
mov ebx, eax
mov dword [ebp - 0x14], ebx
test esi, esi
mov eax, 0x4af9b8
cmovne eax, esi
push eax
call fcn.0048faa4
mov edi, eax
mov dword [ebp - 0x1c], edi
mov ecx, dword [ebp + 0x10]
mov eax, 0x4af9b8
test ecx, ecx
cmovne eax, ecx
push eax
call fcn.0048faa4
mov esi, eax
mov dword [ebp - 0x24], esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x70]
push eax
call fcn.00407620
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x29
push ecx
movzx ecx, byte [ebp + 0x20]
push ecx
push dword [ebp - 0x84]
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x40]
push ecx
push eax
lea eax, [ebp - 0x30]
push eax
push 1
push dword [ebp + 0x1c]
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00403eb0
add esp, 0x60
push dword [ebp - 0x70]
call fcn.0048faf7
push esi
call fcn.0048faf7
push edi
call fcn.0048faf7
push ebx
call fcn.0048faf7
add esp, 0x10
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0x12
call fcn.00402130
mov edi, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x40]
add edi, 0x10
dec dword [ebp - 0x50]
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x2c], eax
je 0x40abe7
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x34], eax
jmp 0x40a821
mov edi, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x68]
test ecx, ecx
je 0x40ac0d
push dword [ebp + 0x1c]
lea eax, [ebp - 0xd]
push eax
push edx
push ecx
call fcn.00402b30
push dword [ebp - 0x6c]
call fcn.0048f453
add esp, 0x14
push dword [ebp - 0x60]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x28]
call fcn.0048faf7
add esp, 4
push dword [ebp - 0x54]
call fcn.0048faf7
push dword [ebp - 0x5c]
call fcn.0048faf7
push dword [ebp - 0x58]
call fcn.0048faf7
push edi
call fcn.0048faf7
push dword [ebp - 0x2c]
call fcn.0048faf7
mov eax, dword [ebp + 0x1c]
add esp, 0x14
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret