Function at 0x407820
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56b71d
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x5ce180]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 0
je 0x4079a2
lea ecx, [ebp - 0x18]
call fcn.0040e280
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x34], edx
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x407927
mov eax, dword [ebp - 0x24]
mov ecx, 2
mul ecx
mov edx, 0xffffffff
cmovb eax, edx
push eax
call fcn.0041f923
add esp, 4
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.00408030
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x407913
mov ecx, dword [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040e1d0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x28]
push edx
lea ecx, [ebp - 0x18]
call fcn.00403520
nop
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x28]
sub eax, 0x10
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x40], ecx
mov ecx, dword [ebp - 0x40]
call fcn.00404020
nop
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
push eax
call fcn.0041f92c
add esp, 4
jmp 0x407960
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0040e1d0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x18]
call fcn.00403520
nop
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
sub eax, 0x10
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x4c], ecx
mov ecx, dword [ebp - 0x4c]
call fcn.00404020
nop
lea edx, [ebp - 0x18]
push edx
mov ecx, dword [ebp + 8]
call fcn.00403bc0
nop
mov eax, dword [ebp - 0x14]
or eax, 1
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
sub ecx, 0x10
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x54], edx
mov ecx, dword [ebp - 0x54]
call fcn.00404020
nop
mov eax, dword [ebp + 8]
jmp 0x407a25
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x18], 0
je 0x407a0d
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x10], 0x80000001
jne 0x407a0d
mov edx, 2
imul eax, edx, 0
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx + eax]
test edx, edx
jne 0x4079d3
mov dword [ebp - 0x30], 0x57bde8
jmp 0x4079d9
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0x58], edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x58]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x18]
call fcn.0040be10
mov edx, dword [ebp - 0x14]
or edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 8]
jmp 0x407a25
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040e1d0
mov ecx, dword [ebp - 0x14]
or ecx, 1
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0xc