Function at 0x422570
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
mov ecx, dword [esp + 4]
push 0xffffffffffffffff
push 0x459a40
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
push edi
call fcn.0043792d
xor ebx, ebx
push ebx
lea eax, [esp + 0x1c]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push 0x47b2f8
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x422799
mov dword [esp + 0x14], 1
call fcn.0042ae70
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x42273c
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], ebx
call fcn.0042ae70
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x42273c
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push 0x46445c
push edx
mov byte [esp + 0x38], 1
call fcn.00404fe0
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
add esp, 0xc
lea eax, [esp + 0x20]
push eax
push ebx
push ebx
push ebx
push esi
push ecx
call ebp
test eax, eax
jne 0x422746
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
mov edi, dword [esp + 0x20]
mov edx, 1
sub edx, dword [ecx - 4]
sub eax, edi
or eax, edx
jge 0x422677
push edi
lea ecx, [esp + 0x14]
call fcn.004052a0
mov ecx, dword [esp + 0x10]
mov edi, 1
cmp dword [ecx - 4], edi
jle 0x422692
mov edx, dword [ecx - 0xc]
push edx
lea ecx, [esp + 0x14]
call fcn.004051d0
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
push ecx
mov ecx, dword [esp + 0x20]
push ebx
push ebx
push esi
push ecx
call ebp
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.0043f4ef
add esp, 8
cmp eax, ebx
jl 0x4227b2
mov ecx, dword [esp + 0x10]
cmp eax, dword [ecx - 8]
jg 0x4227b2
mov dword [ecx - 0xc], eax
mov ecx, dword [esp + 0x10]
xor edx, edx
mov word [ecx + eax*2], dx
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x10]
push edx
call fcn.00437a8a
mov byte [esp + 0x2c], bl
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x422707
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42272b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add dword [esp + 0x14], edi
call fcn.0042ae70
cmp eax, ebx
jne 0x4225e0
push 0x80004005
call fcn.00405760
mov byte [esp + 0x2c], bl
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42276a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42278e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4
push 0x80070057
call fcn.00405760
int3