Function at 0x428626
Capabilities:
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5bd4a9
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x6c56f8]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
mov eax, dword [0x6c56f8]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x38], edx
lea edx, [esp + 0x18]
push edx
push 0x20019
xor ebx, ebx
push ebx
push ecx
push eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4288a8
push ebx
push ebx
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x20]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [esp + 0x44]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x58], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x42889e
cmp dword [esp + 0x10], ebx
je 0x42889e
cmp dword [esp + 0x20], ebx
je 0x42889e
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x10], ebx
jbe 0x42889e
mov eax, dword [esp + 0x20]
add eax, 2
push eax
lea esi, [esp + 0x78]
mov dword [esp + 0x28], eax
call fcn.0042b233
mov dword [esp + 0xa0], ebx
mov eax, dword [esp + 0x28]
shr eax, 1
inc eax
inc eax
push eax
lea esi, [esp + 0x5c]
call fcn.0042b233
mov byte [esp + 0xa0], 1
mov eax, dword [esp + 0x6c]
add eax, eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
push eax
xor edi, edi
mov eax, esi
mov dword [esp + 0x18], ebx
call fcn.0042b255
push eax
lea eax, [esp + 0x1c]
push eax
push ebx
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x88]
call fcn.0042b255
push eax
push dword [esp + 0x34]
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x428865
mov edi, dword [esp + 0x24]
cmp edi, ebx
je 0x428865
cmp dword [esp + 0x14], 1
je 0x428793
cmp dword [esp + 0x14], 7
je 0x428793
cmp dword [esp + 0x14], 2
jne 0x428865
lea eax, [esp + 0x74]
call fcn.0042b255
xor ecx, ecx
mov word [eax], cx
mov edi, dword [esp + 0x2c]
shr edi, 1
lea eax, [esp + 0x58]
call fcn.0042b255
xor ecx, ecx
mov word [eax], cx
lea eax, [esp + 0x3c]
push eax
call fcn.0042089d
mov byte [esp + 0xa0], 2
push dword [esp + 0x30]
mov esi, dword [esp + 0x38]
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0x44], esi
call fcn.0040865a
cmp dword [esp + 0x8c], 8
mov eax, dword [esp + 0x78]
jae 0x4287ef
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.0040865a
cmp dword [esp + 0x70], 8
mov eax, dword [esp + 0x5c]
jae 0x428809
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.0040865a
mov byte [esp + 0x54], bl
lea eax, [esp + 0x4c]
cmp esi, 0x80000001
jne 0x42882b
push str.User
jmp 0x428830
push str.System
push eax
call fcn.0040865a
push str.Enabled
lea eax, [esp + 0x54]
push eax
call fcn.0040865a
mov esi, dword [esp + 0x38]
lea eax, [esp + 0x3c]
push eax
call fcn.0042cd0e
mov byte [esp + 0xa0], 1
lea eax, [esp + 0x3c]
push eax
call fcn.004288cc
mov byte [esp + 0xa0], bl
push ebx
push 1
lea esi, [esp + 0x60]
call fcn.00409da6
or dword [esp + 0xa0], 0xffffffff
push ebx
push 1
lea esi, [esp + 0x7c]
call fcn.00409da6
inc dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x10]
jb 0x4286ed
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.00581268
mov esp, ebp
pop ebp
ret