Function at 0x408cb0
Capabilities:
Get thread local storage value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a803e
mov eax, dword fs:[0]
push eax
sub esp, 0x398
mov eax, dword [0x4dc6e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
push 2
mov dword [ebp - 0x354], edi
mov dword [ebp - 0x340], eax
mov dword [ebp - 0x380], esi
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x374], eax
mov word [eax], cx
push 2
mov dword [ebp - 4], ecx
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x378], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x390], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x37c], eax
add esp, 0x10
mov word [eax], cx
cmp dword [ebp + 0x14], 0xffffffff
mov ebx, 0x4af9b8
mov byte [ebp - 4], 3
jne 0x408f1c
push ebx
call fcn.0048faa4
mov dword [ebp - 0x334], eax
push ebx
call fcn.0048faa4
mov dword [ebp - 0x338], eax
push ebx
call fcn.0048faa4
mov dword [ebp - 0x344], eax
push ebx
call fcn.0048faa4
mov dword [ebp - 0x358], eax
push ebx
call fcn.0048faa4
mov dword [ebp - 0x368], eax
push ebx
call fcn.0048faa4
mov dword [ebp - 0x36c], eax
push ebx
call fcn.0048faa4
mov dword [ebp - 0x360], eax
test esi, esi
mov eax, ebx
cmovne eax, esi
push eax
call fcn.0048faa4
mov ebx, eax
mov dword [ebp - 0x370], ebx
push 0x4b0580
call fcn.0048faa4
mov edi, eax
mov dword [ebp - 0x35c], edi
test esi, esi
mov eax, 0x4af9b8
cmovne eax, esi
push eax
call fcn.0048faa4
mov esi, eax
mov dword [ebp - 0x364], esi
lea eax, [ebp - 0x360]
push eax
lea eax, [ebp - 0x370]
push eax
push dword [ebp - 0x340]
lea eax, [ebp - 0x33c]
push eax
call fcn.00407620
mov dword [ebp - 0x350], eax
lea eax, [ebp - 0x35c]
push eax
lea eax, [ebp - 0x364]
push eax
push dword [ebp - 0x340]
lea eax, [ebp - 0x34c]
push eax
call fcn.00407620
add esp, 0x48
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x334]
mov byte [ebp - 4], 0xf
push ecx
movzx ecx, byte [ebp + 0x18]
push ecx
lea ecx, [ebp - 0x338]
push 0
push ecx
lea ecx, [ebp - 0x344]
push ecx
lea ecx, [ebp - 0x358]
push ecx
lea ecx, [ebp - 0x368]
push ecx
lea ecx, [ebp - 0x36c]
push ecx
push dword [ebp - 0x350]
push eax
push 0
push 0xffffffffffffffff
push 0
push dword [ebp - 0x354]
call fcn.00403eb0
push dword [ebp - 0x34c]
mov dword [ebp + 0x14], eax
call fcn.0048faf7
add esp, 0x48
push dword [ebp - 0x33c]
call fcn.0048faf7
push esi
call fcn.0048faf7
push edi
call fcn.0048faf7
push ebx
call fcn.0048faf7
push dword [ebp - 0x360]
call fcn.0048faf7
push dword [ebp - 0x36c]
call fcn.0048faf7
push dword [ebp - 0x368]
call fcn.0048faf7
push dword [ebp - 0x358]
call fcn.0048faf7
push dword [ebp - 0x344]
call fcn.0048faf7
push dword [ebp - 0x338]
call fcn.0048faf7
push dword [ebp - 0x334]
mov byte [ebp - 4], 3
call fcn.0048faf7
mov esi, dword [ebp - 0x380]
add esp, 0x2c
mov edi, dword [ebp - 0x354]
mov ebx, 0x4af9b8
lea eax, [ebp - 0x38c]
push eax
push dword [0x4de020]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
push eax
push 0
push esi
push dword [ebp - 0x340]
call fcn.00406320
add esp, 0x14
test eax, eax
jne 0x4094a0
lea eax, [ebp - 0x388]
mov dword [ebp - 0x388], 0x320
push eax
lea eax, [ebp - 0x330]
push eax
push 0
push 0
push 0x4af9b8
push dword [ebp - 0x38c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x409494
cmp dword [ebp - 0x388], eax
je 0x409494
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x3a4], eax
mov dword [ebp - 0x3a0], ecx
mov dword [ebp - 0x39c], ecx
mov word [eax], cx
mov dword [ebp - 0x398], ecx
lea eax, [ebp - 0x3a4]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x330]
push eax
call fcn.00406840
add esp, 0xc
test al, al
je 0x409489
mov eax, dword [ebp - 0x3a0]
mov ecx, 0x4b04f0
mov eax, dword [eax]
mov dword [ebp - 0x370], eax
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40900e
test dx, dx
je 0x40900a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40900e
add eax, 4
add ecx, 4
test dx, dx
jne 0x408fe8
xor eax, eax
jmp 0x409013
sbb eax, eax
or eax, 1
test eax, eax
je 0x409489
push 0
lea eax, [ebp - 0x3a4]
push eax
lea eax, [ebp - 0x33c]
push edi
push eax
call fcn.00404cf0
add esp, 0x10
lea ecx, [ebp - 0x374]
push eax
call fcn.00402190
push dword [ebp - 0x33c]
call fcn.0048faf7
push 0x4b0580
call fcn.0048faa4
mov dword [ebp - 0x338], eax
test esi, esi
mov eax, ebx
cmovne eax, esi
push eax
call fcn.0048faa4
mov ebx, eax
mov dword [ebp - 0x33c], ebx
push 0x4af9b8
call fcn.0048faa4
mov edi, eax
mov dword [ebp - 0x34c], edi
test esi, esi
mov eax, 0x4af9b8
cmovne eax, esi
push eax
call fcn.0048faa4
mov esi, eax
mov dword [ebp - 0x350], esi
mov ecx, dword [ebp - 0x370]
mov eax, 0x4af9b8
test ecx, ecx
cmovne eax, ecx
push eax
call fcn.0048faa4
mov dword [ebp - 0x334], eax
lea eax, [ebp - 0x338]
push eax
lea eax, [ebp - 0x33c]
push eax
push dword [ebp - 0x340]
lea eax, [ebp - 0x344]
push eax
call fcn.00407620
mov dword [ebp - 0x364], eax
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x350]
push eax
push dword [ebp - 0x340]
lea eax, [ebp - 0x35c]
push eax
call fcn.00407620
lea ecx, [ebp - 0x394]
mov byte [ebp - 4], 0x17
push ecx
lea ecx, [ebp - 0x37c]
push ecx
lea ecx, [ebp - 0x378]
push ecx
lea ecx, [ebp - 0x374]
push ecx
push dword [ebp - 0x364]
push eax
lea eax, [ebp - 0x334]
push eax
push dword [ebp - 0x354]
call fcn.00403c00
add esp, 0x58
push dword [ebp - 0x35c]
mov byte [ebp - 0x345], al
call fcn.0048faf7
push dword [ebp - 0x344]
call fcn.0048faf7
push dword [ebp - 0x334]
call fcn.0048faf7
push esi
call fcn.0048faf7
push edi
call fcn.0048faf7
push ebx
call fcn.0048faf7
push dword [ebp - 0x338]
mov byte [ebp - 4], 0x10
call fcn.0048faf7
add esp, 0x1c
cmp byte [ebp - 0x345], 0
je 0x409489
cmp dword [ebp + 0x14], 0xffffffff
jne 0x40936c
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x360], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x36c], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x368], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x358], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x344], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x338], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x334], eax
mov esi, dword [ebp - 0x380]
mov eax, 0x4af9b8
test esi, esi
cmovne eax, esi
push eax
call fcn.0048faa4
mov ebx, eax
mov dword [ebp - 0x33c], ebx
push 0x4b0580
call fcn.0048faa4
mov edi, eax
mov dword [ebp - 0x34c], edi
test esi, esi
mov eax, 0x4af9b8
cmovne eax, esi
push eax
call fcn.0048faa4
mov esi, eax
mov dword [ebp - 0x350], esi
lea eax, [ebp - 0x334]
push eax
lea eax, [ebp - 0x33c]
push eax
push dword [ebp - 0x340]
lea eax, [ebp - 0x384]
push eax
call fcn.00407620
mov dword [ebp - 0x364], eax
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x350]
push eax
push dword [ebp - 0x340]
lea eax, [ebp - 0x35c]
push eax
call fcn.00407620
add esp, 0x48
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x360]
mov byte [ebp - 4], 0x23
push ecx
movzx ecx, byte [ebp + 0x18]
push ecx
push 0
lea ecx, [ebp - 0x36c]
push ecx
lea ecx, [ebp - 0x368]
push ecx
lea ecx, [ebp - 0x358]
push ecx
lea ecx, [ebp - 0x344]
push ecx
lea ecx, [ebp - 0x338]
push ecx
push dword [ebp - 0x364]
push eax
push 0
push 0xffffffffffffffff
push 0
push dword [ebp - 0x354]
call fcn.00403eb0
push dword [ebp - 0x35c]
mov dword [ebp + 0x14], eax
call fcn.0048faf7
add esp, 0x48
push dword [ebp - 0x384]
call fcn.0048faf7
push esi
call fcn.0048faf7
push edi
call fcn.0048faf7
push ebx
call fcn.0048faf7
push dword [ebp - 0x334]
call fcn.0048faf7
push dword [ebp - 0x338]
call fcn.0048faf7
push dword [ebp - 0x344]
call fcn.0048faf7
push dword [ebp - 0x358]
call fcn.0048faf7
push dword [ebp - 0x368]
call fcn.0048faf7
push dword [ebp - 0x36c]
call fcn.0048faf7
push dword [ebp - 0x360]
call fcn.0048faf7
add esp, 0x2c
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x338], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x334], eax
push 0x4b0580
call fcn.0048faa4
mov ebx, eax
mov dword [ebp - 0x384], ebx
mov ecx, dword [ebp - 0x380]
mov esi, 0x4af9b8
test ecx, ecx
mov eax, esi
cmovne eax, ecx
push eax
call fcn.0048faa4
mov edi, eax
mov dword [ebp - 0x33c], edi
mov eax, dword [ebp - 0x370]
test eax, eax
cmovne esi, eax
push esi
call fcn.0048faa4
mov esi, eax
mov dword [ebp - 0x34c], esi
lea eax, [ebp - 0x384]
push eax
lea eax, [ebp - 0x33c]
push eax
push dword [ebp - 0x340]
lea eax, [ebp - 0x350]
push eax
call fcn.00407620
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x338]
mov byte [ebp - 4], 0x29
push ecx
movzx ecx, byte [ebp + 0x18]
push ecx
push dword [ebp - 0x394]
lea ecx, [ebp - 0x334]
push ecx
lea ecx, [ebp - 0x37c]
push ecx
lea ecx, [ebp - 0x390]
push ecx
lea ecx, [ebp - 0x378]
push ecx
lea ecx, [ebp - 0x374]
push ecx
push eax
lea eax, [ebp - 0x34c]
push eax
push 0xc
push dword [ebp + 0x14]
push 0xffffffffffffffff
push dword [ebp - 0x354]
call fcn.00403eb0
add esp, 0x68
push dword [ebp - 0x350]
call fcn.0048faf7
push esi
call fcn.0048faf7
push edi
call fcn.0048faf7
push ebx
call fcn.0048faf7
push dword [ebp - 0x334]
call fcn.0048faf7
push dword [ebp - 0x338]
call fcn.0048faf7
add esp, 0x18
lea ecx, [ebp - 0x3a4]
call fcn.00402130
push dword [ebp - 0x38c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x37c]
call fcn.0048faf7
push dword [ebp - 0x390]
call fcn.0048faf7
push dword [ebp - 0x378]
call fcn.0048faf7
push dword [ebp - 0x374]
call fcn.0048faf7
mov eax, dword [ebp + 0x14]
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048fc6c
mov esp, ebp
pop ebp
ret