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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b11d9
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x6bd6f8]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
mov eax, dword [0x6bd6f8]
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 0x422da7
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 0x422d9d
cmp dword [esp + 0x10], ebx
je 0x422d9d
cmp dword [esp + 0x20], ebx
je 0x422d9d
mov dword [esp + 0x1c], ebx
cmp dword [esp + 0x10], ebx
jbe 0x422d9d
mov eax, dword [esp + 0x20]
add eax, 2
push eax
lea esi, [esp + 0x78]
mov dword [esp + 0x28], eax
call fcn.00425d9d
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.00425d9d
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.00425dbf
push eax
lea eax, [esp + 0x1c]
push eax
push ebx
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x88]
call fcn.00425dbf
push eax
push dword [esp + 0x34]
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x422d64
mov edi, dword [esp + 0x24]
cmp edi, ebx
je 0x422d64
cmp dword [esp + 0x14], 1
je 0x422c92
cmp dword [esp + 0x14], 7
je 0x422c92
cmp dword [esp + 0x14], 2
jne 0x422d64
lea eax, [esp + 0x74]
call fcn.00425dbf
xor ecx, ecx
mov word [eax], cx
mov edi, dword [esp + 0x2c]
shr edi, 1
lea eax, [esp + 0x58]
call fcn.00425dbf
xor ecx, ecx
mov word [eax], cx
lea eax, [esp + 0x3c]
push eax
call fcn.0041b8d1
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.004085d2
cmp dword [esp + 0x8c], 8
mov eax, dword [esp + 0x78]
jae 0x422cee
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.004085d2
cmp dword [esp + 0x70], 8
mov eax, dword [esp + 0x5c]
jae 0x422d08
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.004085d2
mov byte [esp + 0x54], bl
lea eax, [esp + 0x4c]
cmp esi, 0x80000001
jne 0x422d2a
push str.User
jmp 0x422d2f
push 0x681fd8
push eax
call fcn.004085d2
push str.Enabled
lea eax, [esp + 0x54]
push eax
call fcn.004085d2
mov esi, dword [esp + 0x38]
lea eax, [esp + 0x3c]
push eax
call fcn.0042713a
mov byte [esp + 0xa0], 1
lea eax, [esp + 0x3c]
push eax
call fcn.00422dcb
mov byte [esp + 0xa0], bl
push ebx
push 1
lea esi, [esp + 0x60]
call fcn.00409bbf
or dword [esp + 0xa0], 0xffffffff
push ebx
push 1
lea esi, [esp + 0x7c]
call fcn.00409bbf
inc dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x10]
jb 0x422bec
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.0057340c
mov esp, ebp
pop ebp
ret