Function at 0x422ed1
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x518
mov eax, 0x46c971
call fcn.00449971
mov eax, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x460], esi
mov dword [ebp - 0x438], eax
xor edi, edi
inc edi
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x438]
xor ebx, ebx
lea ecx, [ebp - 0x444]
mov dword [ebp - 0x440], ebx
mov dword [ebp - 0x450], 0x104
mov dword [ebp - 0x458], eax
call fcn.004013f4
mov byte [ebp - 4], 2
cmp dword [ebp + 0x24], 0x10
mov eax, dword [ebp + 0x10]
jae 0x422f30
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x444]
push 0x473a60
push eax
call fcn.00403835
add esp, 0xc
lea eax, [ebp - 0x438]
push eax
push 0x20019
push ebx
push dword [ebp - 0x444]
push dword [ebp - 0x438]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42323d
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x440]
push eax
push ebx
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x410]
push eax
push dword [ebp - 0x438]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x42323d
mov eax, dword [ebp - 0x440]
add dword [ebp + 0x44], eax
mov dword [ebp - 0x43c], ebx
cmp eax, ebx
jbe 0x42323d
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x44c]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x43c]
mov dword [ebp - 0x44c], 0xff
push dword [ebp - 0x438]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x423225
lea ecx, [ebp - 0x434]
call fcn.004013f4
mov byte [ebp - 4], 3
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x434]
call fcn.004085b6
push ebx
lea ecx, [ebp - 0x42c]
mov dword [ebp - 0x414], 0xf
call fcn.004013c2
mov byte [ebp - 4], 4
push dword [ebp - 0x434]
lea ecx, [ebp - 0x524]
call fcn.00407bde
mov byte [ebp - 4], 5
push dword [eax]
lea ecx, [ebp - 0x42c]
call fcn.004018f1
mov byte [ebp - 4], 4
lea eax, [ebp - 0x520]
cmp dword [ebp - 0x524], eax
je 0x423065
push dword [ebp - 0x524]
call fcn.0044b877
pop ecx
push edi
push ebx
lea eax, [ebp - 0x45c]
push eax
lea ecx, [ebp - 0x434]
call fcn.00408227
mov byte [ebp - 4], 6
push 0x474e48
push eax
call fcn.0041416b
pop ecx
pop ecx
mov byte [ebp - 0x42d], al
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x45c]
call fcn.0040141e
cmp byte [ebp - 0x42d], bl
je 0x42313d
mov eax, dword [ebp - 0x434]
push dword [eax - 0xc]
lea eax, [ebp - 0x454]
push edi
push eax
lea ecx, [ebp - 0x434]
call fcn.00408227
mov byte [ebp - 4], 7
mov eax, dword [eax]
push ebx
add esi, 4
push eax
mov ecx, esi
call fcn.00406184
cmp eax, 0xffffffff
sete byte [ebp - 0x42d]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x454]
call fcn.0040141e
cmp byte [ebp - 0x42d], bl
je 0x42313d
mov eax, dword [ebp - 0x434]
push dword [eax - 0xc]
lea eax, [ebp - 0x448]
push edi
push eax
lea ecx, [ebp - 0x434]
call fcn.00408227
mov byte [ebp - 4], 8
push eax
mov ecx, esi
call fcn.00403907
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x448]
call fcn.0040141e
push 0x474e44
mov ecx, esi
call fcn.004085b6
lea eax, [ebp + 0xc]
push 0x47091b
push eax
call fcn.00408462
pop ecx
pop ecx
test al, al
je 0x4231b6
push 0x473e0c
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x4a0]
push eax
call fcn.00422e2f
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x42c]
push ecx
push eax
lea eax, [ebp - 0x484]
push eax
call fcn.00422e7e
add esp, 0x18
mov byte [ebp - 4], 0xa
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x42c]
call fcn.004017b9
mov byte [ebp - 4], 9
push ebx
push edi
lea ecx, [ebp - 0x484]
call fcn.0040148e
mov byte [ebp - 4], 4
push ebx
push edi
lea ecx, [ebp - 0x4a0]
call fcn.0040148e
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x468], esp
push str.nothing
call fcn.00401925
mov byte [ebp - 4], 0xb
sub esp, 0x1c
lea eax, [ebp - 0x42c]
mov ecx, esp
mov dword [ebp - 0x464], esp
push eax
call fcn.00403a54
mov byte [ebp - 4], 0xc
push dword [ebp - 0x458]
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x460]
mov ecx, esi
call fcn.00423426
add dword [ebp + 0x44], eax
mov byte [ebp - 4], 3
push ebx
push edi
lea ecx, [ebp - 0x42c]
call fcn.0040148e
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x434]
call fcn.0040141e
inc dword [ebp - 0x43c]
mov eax, dword [ebp - 0x43c]
cmp eax, dword [ebp - 0x440]
jb 0x422fb4
push dword [ebp - 0x438]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x444]
call fcn.0040141e
mov byte [ebp - 4], bl
push ebx
push edi
lea ecx, [ebp + 0xc]
call fcn.0040148e
or dword [ebp - 4], 0xffffffff
push ebx
push edi
lea ecx, [ebp + 0x28]
call fcn.0040148e
mov eax, dword [ebp + 0x44]
call fcn.004499f4
ret 0x40