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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a96ad
mov eax, dword fs:[0]
push eax
sub esp, 0x51c
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 esi, dword [ebp + 0x14]
xor ecx, ecx
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x444], edi
mov dword [ebp - 0x460], ebx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x450], ecx
cmp esi, 0xffffffff
jne 0x4142ba
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x45c], eax
push 0x4af9b8
mov dword [ebp - 4], 0
call fcn.0048faa4
mov dword [ebp - 0x424], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x464], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x454], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x458], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x434], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x43c], eax
test ebx, ebx
mov eax, 0x4af9b8
cmovne eax, ebx
push eax
call fcn.0048faa4
mov dword [ebp - 0x438], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x448], eax
test ebx, ebx
mov eax, 0x4af9b8
cmovne eax, ebx
push eax
call fcn.0048faa4
mov dword [ebp - 0x430], eax
lea eax, [ebp - 0x43c]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x468]
push edi
push eax
call fcn.00407620
mov esi, eax
lea eax, [ebp - 0x448]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x46c]
push edi
push eax
call fcn.00407620
add esp, 0x48
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x45c]
mov byte [ebp - 4], 0xb
push ecx
push 1
push 0
lea ecx, [ebp - 0x424]
push ecx
lea ecx, [ebp - 0x464]
push ecx
lea ecx, [ebp - 0x454]
push ecx
lea ecx, [ebp - 0x458]
push ecx
lea ecx, [ebp - 0x434]
push ecx
push esi
push eax
push 0
push 0xffffffffffffffff
push 0
push dword [ebp - 0x440]
call fcn.00403eb0
push dword [ebp - 0x46c]
mov esi, eax
mov dword [ebp + 0x14], esi
call fcn.0048faf7
add esp, 0x48
push dword [ebp - 0x468]
call fcn.0048faf7
push dword [ebp - 0x430]
call fcn.0048faf7
push dword [ebp - 0x448]
call fcn.0048faf7
push dword [ebp - 0x438]
call fcn.0048faf7
push dword [ebp - 0x43c]
call fcn.0048faf7
push dword [ebp - 0x434]
call fcn.0048faf7
push dword [ebp - 0x458]
call fcn.0048faf7
push dword [ebp - 0x454]
call fcn.0048faf7
push dword [ebp - 0x464]
call fcn.0048faf7
push dword [ebp - 0x424]
call fcn.0048faf7
push dword [ebp - 0x45c]
mov dword [ebp - 4], 0xffffffff
call fcn.0048faf7
add esp, 0x2c
lea eax, [ebp - 0x44c]
mov dword [ebp - 0x44c], 0
push eax
push dword [0x4de020]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
push eax
push 0
push ebx
push edi
call fcn.00406320
add esp, 0x14
test eax, eax
je 0x4142f4
mov eax, esi
jmp 0x414e7e
push 0x104
lea eax, [ebp - 0x218]
mov dword [ebp - 0x46c], 0
push eax
push 0
push dword [ebp - 0x44c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x414e6f
mov ebx, dword [ebp - 0x424]
jmp 0x414330
cmp byte [ebp + 0x18], 0
mov dword [ebp - 0x434], 0
je 0x414352
mov edi, dword [ebp - 0x45c]
mov dword [ebp - 0x424], 0x4af9b8
jmp 0x41439f
push 0x4b4ae4
call fcn.0048faa4
mov edi, eax
mov dword [ebp - 0x45c], edi
mov esi, dword [ebp - 0x42c]
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x4f0]
or esi, 1
push 0x4afa48
push eax
call fcn.00417070
add esp, 0x10
mov eax, dword [eax]
or esi, 2
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x450], esi
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x218]
push eax
call fcn.0048faa4
mov esi, eax
mov dword [ebp - 0x430], esi
push dword [ebp - 0x424]
lea eax, [ebp - 0x430]
mov dword [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x4d8]
push eax
call fcn.00418660
add esp, 0x10
mov eax, dword [eax]
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x434]
push eax
push dword [0x4de020]
mov byte [ebp - 4], 0xf
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
push eax
push 0
push dword [ebp - 0x424]
push dword [ebp - 0x44c]
call fcn.00406320
push dword [ebp - 0x4d8]
test eax, eax
sete byte [ebp - 0x425]
call fcn.0048faf7
push esi
call fcn.0048faf7
mov eax, dword [ebp - 0x42c]
add esp, 0x1c
test al, 2
je 0x414458
push dword [ebp - 0x4f0]
and eax, 0xfffffffd
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x450], eax
call fcn.0048faf7
mov eax, dword [ebp - 0x42c]
add esp, 4
mov dword [ebp - 4], 0xffffffff
test al, 1
je 0x41447b
and eax, 0xfffffffe
push edi
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x450], eax
call fcn.0048faf7
add esp, 4
cmp byte [ebp - 0x425], 0
je 0x414a56
lea eax, [ebp - 0x474]
mov dword [ebp - 0x474], 0x208
push eax
lea eax, [ebp - 0x420]
push eax
push 0
push 0
push 0x4b4cec
push dword [ebp - 0x434]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x414a4a
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x438], eax
mov word [eax], cx
push 2
mov dword [ebp - 4], 0x10
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x430], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x448], eax
mov word [eax], cx
push 2
call fcn.0048fb2f
xor ecx, ecx
mov dword [ebp - 0x528], eax
mov word [eax], cx
mov dword [ebp - 0x524], ecx
mov dword [ebp - 0x520], ecx
mov dword [ebp - 0x51c], ecx
lea eax, [ebp - 0x528]
mov byte [ebp - 4], 0x13
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.00406bd0
mov esi, dword [ebp - 0x440]
lea eax, [ebp - 0x528]
push 0
push eax
lea eax, [ebp - 0x43c]
push esi
push eax
call fcn.00404cf0
lea eax, [ebp - 0x430]
mov byte [ebp - 4], 0x14
push eax
lea eax, [ebp - 0x438]
push eax
push dword [ebp - 0x43c]
push esi
call fcn.00404ce0
mov dword [ebp - 0x470], eax
lea eax, [ebp - 0x218]
push eax
call fcn.0048faa4
mov dword [ebp - 0x4a0], eax
mov esi, dword [ebp - 0x460]
mov ecx, 0x4af9b8
test esi, esi
cmovne ecx, esi
push ecx
call fcn.0048faa4
add esp, 0x40
mov dword [ebp - 0x458], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x454], eax
test esi, esi
mov eax, 0x4af9b8
cmovne eax, esi
push eax
call fcn.0048faa4
mov dword [ebp - 0x464], eax
lea eax, [ebp - 0x218]
push eax
call fcn.0048faa4
mov esi, eax
mov dword [ebp - 0x424], esi
push 0x4b4d00
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x4e0]
push eax
call fcn.00418660
push eax
lea eax, [ebp - 0x458]
mov byte [ebp - 4], 0x1a
push eax
push dword [ebp - 0x444]
lea eax, [ebp - 0x514]
push eax
call fcn.00407620
mov edi, eax
lea eax, [ebp - 0x454]
mov byte [ebp - 4], 0x1b
push eax
lea eax, [ebp - 0x464]
push eax
push dword [ebp - 0x444]
lea eax, [ebp - 0x518]
push eax
call fcn.00407620
lea ecx, [ebp - 0x510]
mov byte [ebp - 4], 0x1c
push ecx
lea ecx, [ebp - 0x448]
push ecx
lea ecx, [ebp - 0x438]
push ecx
lea ecx, [ebp - 0x43c]
push ecx
lea ecx, [ebp - 0x4a0]
push ecx
push edi
push eax
push dword [ebp - 0x440]
call fcn.00403c00
add esp, 0x58
mov byte [ebp - 0x425], al
push dword [ebp - 0x518]
call fcn.0048faf7
push dword [ebp - 0x514]
call fcn.0048faf7
push dword [ebp - 0x4e0]
call fcn.0048faf7
push esi
call fcn.0048faf7
push dword [ebp - 0x464]
call fcn.0048faf7
push dword [ebp - 0x454]
call fcn.0048faf7
push dword [ebp - 0x458]
call fcn.0048faf7
push dword [ebp - 0x4a0]
call fcn.0048faf7
add esp, 0x20
cmp byte [ebp - 0x425], 0
je 0x414a06
cmp dword [ebp + 0x14], 0xffffffff
jne 0x4148bf
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x490], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x4b0], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x488], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x4c0], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x4c4], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x480], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x4d4], eax
mov edi, dword [ebp - 0x460]
mov eax, 0x4af9b8
test edi, edi
cmovne eax, edi
push eax
call fcn.0048faa4
mov dword [ebp - 0x4cc], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x4bc], eax
test edi, edi
mov eax, 0x4af9b8
cmovne eax, edi
push eax
call fcn.0048faa4
mov dword [ebp - 0x4b4], eax
lea eax, [ebp - 0x4d4]
mov byte [ebp - 4], 0x26
push eax
lea eax, [ebp - 0x4cc]
push eax
push dword [ebp - 0x444]
lea eax, [ebp - 0x4e8]
push eax
call fcn.00407620
mov esi, eax
lea eax, [ebp - 0x4bc]
mov byte [ebp - 4], 0x27
push eax
lea eax, [ebp - 0x4b4]
push eax
push dword [ebp - 0x444]
lea eax, [ebp - 0x500]
push eax
call fcn.00407620
add esp, 0x48
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x490]
mov byte [ebp - 4], 0x28
push ecx
push 1
push 0
lea ecx, [ebp - 0x4b0]
push ecx
lea ecx, [ebp - 0x488]
push ecx
lea ecx, [ebp - 0x4c0]
push ecx
lea ecx, [ebp - 0x4c4]
push ecx
lea ecx, [ebp - 0x480]
push ecx
push esi
push eax
push 0
push 0xffffffffffffffff
push 0
push dword [ebp - 0x440]
call fcn.00403eb0
push dword [ebp - 0x500]
mov dword [ebp + 0x14], eax
call fcn.0048faf7
add esp, 0x48
push dword [ebp - 0x4e8]
call fcn.0048faf7
push dword [ebp - 0x4b4]
call fcn.0048faf7
push dword [ebp - 0x4bc]
call fcn.0048faf7
push dword [ebp - 0x4cc]
call fcn.0048faf7
push dword [ebp - 0x4d4]
call fcn.0048faf7
push dword [ebp - 0x480]
call fcn.0048faf7
push dword [ebp - 0x4c4]
call fcn.0048faf7
push dword [ebp - 0x4c0]
call fcn.0048faf7
push dword [ebp - 0x488]
call fcn.0048faf7
push dword [ebp - 0x4b0]
call fcn.0048faf7
push dword [ebp - 0x490]
call fcn.0048faf7
add esp, 0x2c
jmp 0x4148c5
mov edi, dword [ebp - 0x460]
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x478], eax
lea eax, [ebp - 0x420]
push eax
call fcn.0048faa4
mov dword [ebp - 0x4b8], eax
test edi, edi
mov eax, 0x4af9b8
cmovne eax, edi
push eax
call fcn.0048faa4
mov dword [ebp - 0x498], eax
lea eax, [ebp - 0x218]
push eax
call fcn.0048faa4
mov dword [ebp - 0x4d0], eax
lea eax, [ebp - 0x218]
push eax
call fcn.0048faa4
mov esi, eax
mov dword [ebp - 0x424], esi
push 0x4b4d00
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x4f8]
push eax
call fcn.00418660
push eax
lea eax, [ebp - 0x498]
mov byte [ebp - 4], 0x2e
push eax
push dword [ebp - 0x444]
lea eax, [ebp - 0x508]
push eax
call fcn.00407620
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x478]
mov byte [ebp - 4], 0x2f
push ecx
mov ecx, dword [ebp + 0x18]
movzx ecx, cl
push ecx
push dword [ebp - 0x510]
lea ecx, [ebp - 0x4b8]
push ecx
lea ecx, [ebp - 0x448]
push ecx
lea ecx, [ebp - 0x430]
push ecx
lea ecx, [ebp - 0x438]
push ecx
lea ecx, [ebp - 0x43c]
push ecx
push eax
lea eax, [ebp - 0x4d0]
push eax
push 1
push dword [ebp + 0x14]
push dword [ebp - 0x470]
push dword [ebp - 0x440]
call fcn.00403eb0
add esp, 0x74
push dword [ebp - 0x508]
call fcn.0048faf7
push dword [ebp - 0x4f8]
call fcn.0048faf7
push esi
call fcn.0048faf7
push dword [ebp - 0x4d0]
call fcn.0048faf7
push dword [ebp - 0x498]
call fcn.0048faf7
push dword [ebp - 0x4b8]
call fcn.0048faf7
push dword [ebp - 0x478]
call fcn.0048faf7
add esp, 0x1c
push dword [ebp - 0x43c]
call fcn.0048faf7
add esp, 4
lea ecx, [ebp - 0x528]
call fcn.00402130
push dword [ebp - 0x448]
call fcn.0048faf7
push dword [ebp - 0x430]
call fcn.0048faf7
push dword [ebp - 0x438]
mov dword [ebp - 4], 0xffffffff
call fcn.0048faf7
add esp, 0xc
push dword [ebp - 0x434]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x434]
push eax
push dword [0x4de020]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
push eax
push 0
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x44c]
call fcn.00406320
add esp, 0x14
test eax, eax
jne 0x414e41
lea eax, [ebp - 0x474]
mov dword [ebp - 0x474], 4
push eax
lea eax, [ebp - 0x50c]
push eax
push 0
push 0
push 0x4b4d14
push dword [ebp - 0x434]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x414e35
test dword [ebp - 0x50c], 0x100
je 0x414e35
cmp dword [ebp + 0x14], 0xffffffff
jne 0x414cb7
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x468], eax
push 0x4af9b8
mov dword [ebp - 4], 0x30
call fcn.0048faa4
mov dword [ebp - 0x4ac], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x4a4], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x49c], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x494], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x48c], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x484], eax
mov esi, dword [ebp - 0x460]
mov eax, 0x4af9b8
test esi, esi
cmovne eax, esi
push eax
call fcn.0048faa4
mov dword [ebp - 0x47c], eax
push 0x4af9b8
call fcn.0048faa4
mov dword [ebp - 0x4a8], eax
test esi, esi
mov eax, 0x4af9b8
cmovne eax, esi
push eax
call fcn.0048faa4
mov dword [ebp - 0x4c8], eax
mov edi, dword [ebp - 0x444]
lea eax, [ebp - 0x484]
push eax
lea eax, [ebp - 0x47c]
mov byte [ebp - 4], 0x39
push eax
lea eax, [ebp - 0x4e4]
push edi
push eax
call fcn.00407620
mov esi, eax
lea eax, [ebp - 0x4a8]
mov byte [ebp - 4], 0x3a
push eax
lea eax, [ebp - 0x4c8]
push eax
lea eax, [ebp - 0x4dc]
push edi
push eax
call fcn.00407620
add esp, 0x48
push 0xffffffffffffffff
push 0
push 0
lea ecx, [ebp - 0x468]
mov byte [ebp - 4], 0x3b
push ecx
push 1
push 0
lea ecx, [ebp - 0x4ac]
push ecx
lea ecx, [ebp - 0x4a4]
push ecx
lea ecx, [ebp - 0x49c]
push ecx
lea ecx, [ebp - 0x494]
push ecx
lea ecx, [ebp - 0x48c]
push ecx
push esi
push eax
push 0
push 0xffffffffffffffff
push 0
push dword [ebp - 0x440]
call fcn.00403eb0
push dword [ebp - 0x4dc]
mov dword [ebp + 0x14], eax
call fcn.0048faf7
add esp, 0x48
push dword [ebp - 0x4e4]
call fcn.0048faf7
push dword [ebp - 0x4c8]
call fcn.0048faf7
push dword [ebp - 0x4a8]
call fcn.0048faf7
push dword [ebp - 0x47c]
call fcn.0048faf7
push dword [ebp - 0x484]
call fcn.0048faf7
push dword [ebp - 0x48c]
call fcn.0048faf7
push dword [ebp - 0x494]
call fcn.0048faf7
push dword [ebp - 0x49c]
call fcn.0048faf7
push dword [ebp - 0x4a4]
call fcn.0048faf7
push dword [ebp - 0x4ac]
call fcn.0048faf7
push dword [ebp - 0x468]
call fcn.0048faf7
add esp, 0x2c
cmp byte [ebp + 0x18], 0
je 0x414cc9
mov dword [ebp - 0x424], 0x4af9b8
jmp 0x414d13
push 0x4b4ae4
call fcn.0048faa4
mov ebx, eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x4fc]
mov dword [ebp - 0x424], ebx
push 0x4afa48
push eax
call fcn.00417070
mov ecx, dword [ebp - 0x42c]
add esp, 0x10
or ecx, 0xc
mov dword [ebp - 0x42c], ecx
mov eax, dword [eax]
mov dword [ebp - 0x450], ecx
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x218]
push eax
call fcn.0048faa4
mov ecx, dword [ebp - 0x460]
mov edi, eax
test ecx, ecx
mov dword [ebp - 0x430], edi
mov eax, 0x4af9b8
cmovne eax, ecx
push eax
call fcn.0048faa4
mov esi, eax
lea eax, [ebp - 0x470]
push 0x4afa48
push eax
lea eax, [ebp - 0x4f4]
mov dword [ebp - 0x470], esi
push eax
call fcn.00418660
lea ecx, [ebp - 0x430]
push ecx
push eax
lea eax, [ebp - 0x4ec]
push eax
call fcn.0041ca30
push dword [ebp - 0x424]
push eax
lea eax, [ebp - 0x504]
push eax
call fcn.00418660
push dword [ebp - 0x4ec]
mov dword [ebp - 4], 0x3c
call fcn.0048faf7
push dword [ebp - 0x4f4]
call fcn.0048faf7
push esi
call fcn.0048faf7
push edi
call fcn.0048faf7
mov eax, dword [ebp - 0x42c]
add esp, 0x3c
test al, 8
je 0x414ddd
push dword [ebp - 0x4fc]
and eax, 0xfffffff7
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x450], eax
call fcn.0048faf7
mov eax, dword [ebp - 0x42c]
add esp, 4
test al, 4
je 0x414df9
and eax, 0xfffffffb
push ebx
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x450], eax
call fcn.0048faf7
add esp, 4
push dword [ebp + 0x18]
mov esi, dword [ebp - 0x504]
lea eax, [ebp - 0x218]
push dword [ebp + 0x14]
push 0x20
push eax
push 0x4b4d2c
push esi
push dword [ebp - 0x444]
push dword [ebp - 0x440]
call fcn.00415aa0
push esi
mov dword [ebp - 4], 0xffffffff
call fcn.0048faf7
add esp, 0x24
push dword [ebp - 0x434]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x46c]
lea eax, [ebp - 0x218]
push 0x104
push eax
inc esi
push esi
push dword [ebp - 0x44c]
mov dword [ebp - 0x46c], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x414330
push dword [ebp - 0x44c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0x14]
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