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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b7f93
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 0x422c08
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 0x422bfe
cmp dword [esp + 0x10], ebx
je 0x422bfe
cmp dword [esp + 0x20], ebx
je 0x422bfe
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x10], ebx
jbe 0x422bfe
mov eax, dword [esp + 0x20]
add eax, 2
push eax
lea esi, [esp + 0x78]
mov dword [esp + 0x28], eax
call fcn.0042c1b4
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.0042c1b4
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.00425dd6
push eax
lea eax, [esp + 0x1c]
push eax
push ebx
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x88]
call fcn.00425dd6
push eax
push dword [esp + 0x34]
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x422bc5
mov edi, dword [esp + 0x24]
cmp edi, ebx
je 0x422bc5
cmp dword [esp + 0x14], 1
je 0x422af3
cmp dword [esp + 0x14], 7
je 0x422af3
cmp dword [esp + 0x14], 2
jne 0x422bc5
lea eax, [esp + 0x74]
call fcn.00425dd6
xor ecx, ecx
mov word [eax], cx
mov edi, dword [esp + 0x2c]
shr edi, 1
lea eax, [esp + 0x58]
call fcn.00425dd6
xor ecx, ecx
mov word [eax], cx
lea eax, [esp + 0x3c]
push eax
call fcn.0041b7c2
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.004085bd
cmp dword [esp + 0x8c], 8
mov eax, dword [esp + 0x78]
jae 0x422b4f
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.004085bd
cmp dword [esp + 0x70], 8
mov eax, dword [esp + 0x5c]
jae 0x422b69
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.004085bd
mov byte [esp + 0x54], bl
lea eax, [esp + 0x4c]
cmp esi, 0x80000001
jne 0x422b8b
push str.User
jmp 0x422b90
push 0x689910
push eax
call fcn.004085bd
push str.Enabled
lea eax, [esp + 0x54]
push eax
call fcn.004085bd
mov esi, dword [esp + 0x38]
lea eax, [esp + 0x3c]
push eax
call fcn.0042735c
mov byte [esp + 0xa0], 1
lea eax, [esp + 0x3c]
push eax
call fcn.00422c2c
mov byte [esp + 0xa0], bl
push ebx
push 1
lea esi, [esp + 0x60]
call fcn.00409bf1
or dword [esp + 0xa0], 0xffffffff
push ebx
push 1
lea esi, [esp + 0x7c]
call fcn.00409bf1
inc dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x10]
jb 0x422a4d
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.005796dc
mov esp, ebp
pop ebp
ret