Function at 0x422720
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56f8c8
mov eax, dword fs:[0]
push eax
mov eax, 0x2028
call fcn.005563f0
mov eax, dword [0x5c3678]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x2030], eax
mov dword [ebp - 0x2024], ebx
mov eax, dword [edi]
cmp eax, ebx
jne 0x422772
xor eax, eax
jmp 0x422a24
mov ecx, dword [edi + 8]
lea edx, [edi + 8]
mov dword [ebp - 0x2018], ebx
mov dword [ebp - 0x201c], ebx
cmp dword [ecx - 0xc], ebx
jne 0x42286f
mov ecx, dword [edi + 4]
lea edx, [ebp - 0x2018]
push edx
mov edx, dword [edi + 0xc]
or edx, 8
push edx
push ebx
push ecx
push eax
mov dword [ebp - 0x2028], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x422a1e
mov edx, dword [ebp - 0x2018]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x2028]
push eax
lea ecx, [ebp - 0x2014]
push ecx
push ebx
push edx
call esi
test eax, eax
jne 0x422a07
lea eax, [ebp - 0x2024]
push eax
lea ecx, [ebp - 0x2014]
call fcn.00423950
mov edi, dword [ebp - 0x2030]
lea ecx, [ebp - 0x2024]
push ecx
mov dword [ebp - 4], 0
call fcn.004226a0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2024]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x422837
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x2018]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x2028]
push ecx
lea edx, [ebp - 0x2014]
push edx
inc ebx
push ebx
push eax
mov dword [ebp - 0x2028], 0x1000
call esi
test eax, eax
je 0x4227e3
jmp 0x422a07
mov ecx, dword [edi + 4]
mov ecx, dword [ecx - 0xc]
lea eax, [edi + 4]
cmp ecx, ebx
je 0x4228b7
push eax
lea edx, [ebp - 0x2034]
push edx
mov esi, 0x58a630
call fcn.00421fe0
mov ecx, 1
mov dword [ebp - 4], ecx
mov dword [ebp - 0x2024], ecx
lea ecx, [edi + 8]
push ecx
push eax
lea eax, [ebp - 0x2028]
push eax
call fcn.00421ed0
add esp, 0x14
mov ebx, 3
jmp 0x4228b9
mov eax, edx
mov edx, dword [edi + 0xc]
mov eax, dword [eax]
lea ecx, [ebp - 0x2018]
push ecx
or edx, 1
push edx
push 0
push eax
mov eax, dword [edi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
sete byte [ebp - 0x201d]
test bl, 2
je 0x42290e
mov eax, dword [ebp - 0x2028]
and ebx, 0xfffffffd
add eax, 0xfffffff0
mov dword [ebp - 0x2024], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42290e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x42293c
mov eax, dword [ebp - 0x2034]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42293c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0x201d], 0
je 0x422a1e
mov eax, dword [ebp - 0x2018]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x201c]
push ecx
lea edx, [ebp - 0x2014]
push edx
push ebx
push eax
mov dword [ebp - 0x201c], 0x1000
call esi
test eax, eax
jne 0x422a07
nop
lea ecx, [ebp - 0x202c]
push ecx
lea ecx, [ebp - 0x2014]
call fcn.00423950
mov edi, dword [ebp - 0x2030]
lea edx, [ebp - 0x202c]
push edx
mov dword [ebp - 4], 2
call fcn.004226a0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x202c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4229d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x2018]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x201c]
push ecx
lea edx, [ebp - 0x2014]
push edx
inc ebx
push ebx
push eax
mov dword [ebp - 0x201c], 0x1000
call esi
test eax, eax
je 0x422980
mov ecx, dword [ebp - 0x2018]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x201c], 1
mov eax, dword [ebp - 0x201c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0053c15d
mov esp, ebp
pop ebp
ret