Function at 0x405550
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428a0a
mov eax, dword fs:[0]
push eax
sub esp, 0x830
mov eax, dword [0x430090]
xor eax, ebp
mov dword [ebp - 0x20], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x830], ecx
mov dword [ebp - 0x82c], 0
mov dword [ebp - 4], 2
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x14], 0x400
mov dword [ebp - 0x1c], 1
xor eax, eax
mov word [ebp - 0x824], ax
push ecx
mov ecx, esp
mov dword [ebp - 0x828], esp
lea edx, [ebp + 0xc]
push edx
call fcn.004067a0
mov dword [ebp - 0x834], eax
mov eax, dword [ebp - 0x834]
mov dword [ebp - 0x838], eax
mov byte [ebp - 4], 3
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x830]
call fcn.004057a0
mov dword [ebp - 0x83c], eax
mov ecx, dword [ebp - 0x83c]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 1
je 0x405643
cmp dword [ebp - 0x10], 2
je 0x405643
cmp dword [ebp - 0x10], 7
je 0x405643
lea edx, [ebp + 0x10]
push edx
mov ecx, dword [ebp + 8]
call fcn.004067a0
mov eax, dword [ebp - 0x82c]
or eax, 1
mov dword [ebp - 0x82c], eax
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.00406900
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.00406900
mov eax, dword [ebp + 8]
jmp 0x405784
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x830]
mov eax, dword [edx + 4]
or eax, 0x20019
push eax
push 0
mov ecx, dword [ebp - 0x830]
add ecx, 0x10
call fcn.004071c0
push eax
mov ecx, dword [ebp - 0x830]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x830]
mov dword [ecx], eax
mov edx, dword [ebp - 0x830]
cmp dword [edx], 0
je 0x4056c5
lea eax, [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
call fcn.004067a0
mov ecx, dword [ebp - 0x82c]
or ecx, 1
mov dword [ebp - 0x82c], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.00406900
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.00406900
mov eax, dword [ebp + 8]
jmp 0x405784
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x824]
push eax
lea ecx, [ebp - 0x10]
push ecx
push 0
lea ecx, [ebp + 0xc]
call fcn.004071c0
push eax
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x830]
mov dword [ecx], eax
mov edx, dword [ebp - 0x830]
cmp dword [edx], 0
je 0x405703
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1c], 0
jne 0x40574b
lea ecx, [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004067a0
mov edx, dword [ebp - 0x82c]
or edx, 1
mov dword [ebp - 0x82c], edx
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.00406900
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.00406900
mov eax, dword [ebp + 8]
jmp 0x405784
lea eax, [ebp - 0x824]
push eax
mov ecx, dword [ebp + 8]
call fcn.00406800
mov ecx, dword [ebp - 0x82c]
or ecx, 1
mov dword [ebp - 0x82c], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.00406900
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.00406900
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.00409b17
mov esp, ebp
pop ebp
ret 0xc