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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b14dc
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x6b06f8]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
mov eax, dword [0x6b06f8]
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 0x4230a4
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 0x42309a
cmp dword [esp + 0x10], ebx
je 0x42309a
cmp dword [esp + 0x20], ebx
je 0x42309a
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x10], ebx
jbe 0x42309a
mov eax, dword [esp + 0x20]
add eax, 2
push eax
lea esi, [esp + 0x78]
mov dword [esp + 0x28], eax
call fcn.0042b336
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.0042b336
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.004260b2
push eax
lea eax, [esp + 0x1c]
push eax
push ebx
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x88]
call fcn.004260b2
push eax
push dword [esp + 0x34]
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x423061
mov edi, dword [esp + 0x24]
cmp edi, ebx
je 0x423061
cmp dword [esp + 0x14], 1
je 0x422f8f
cmp dword [esp + 0x14], 7
je 0x422f8f
cmp dword [esp + 0x14], 2
jne 0x423061
lea eax, [esp + 0x74]
call fcn.004260b2
xor ecx, ecx
mov word [eax], cx
mov edi, dword [esp + 0x2c]
shr edi, 1
lea eax, [esp + 0x58]
call fcn.004260b2
xor ecx, ecx
mov word [eax], cx
lea eax, [esp + 0x3c]
push eax
call fcn.0041bc51
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.00408606
cmp dword [esp + 0x8c], 8
mov eax, dword [esp + 0x78]
jae 0x422feb
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.00408606
cmp dword [esp + 0x70], 8
mov eax, dword [esp + 0x5c]
jae 0x423005
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.00408606
mov byte [esp + 0x54], bl
lea eax, [esp + 0x4c]
cmp esi, 0x80000001
jne 0x423027
push str.User
jmp 0x42302c
push str.System
push eax
call fcn.00408606
push str.Enabled
lea eax, [esp + 0x54]
push eax
call fcn.00408606
mov esi, dword [esp + 0x38]
lea eax, [esp + 0x3c]
push eax
call fcn.004273d2
mov byte [esp + 0xa0], 1
lea eax, [esp + 0x3c]
push eax
call fcn.004230c8
mov byte [esp + 0xa0], bl
push ebx
push 1
lea esi, [esp + 0x60]
call fcn.00409c0f
or dword [esp + 0xa0], 0xffffffff
push ebx
push 1
lea esi, [esp + 0x7c]
call fcn.00409c0f
inc dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x10]
jb 0x422ee9
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.0057372c
mov esp, ebp
pop ebp
ret