Function at 0x42e650
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54cef8
mov eax, dword fs:[0]
push eax
sub esp, 0x86c
mov eax, dword [0x5a7774]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x860]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x874], eax
cmp dword [ebp - 0x874], 0
je 0x42e6cd
mov byte [ebp - 0x866], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.0040dc10
mov al, byte [ebp - 0x866]
jmp 0x42e90b
push 0
push 0
push 0
lea ecx, [ebp - 0x844]
push ecx
lea edx, [ebp - 0x840]
push edx
push 0
lea eax, [ebp - 0x83c]
push eax
lea ecx, [ebp - 0x834]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp - 0x860]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [ebp - 0x834], 0
jbe 0x42e8b7
mov dword [ebp - 0x870], 0
jmp 0x42e72c
mov eax, dword [ebp - 0x870]
add eax, 1
mov dword [ebp - 0x870], eax
mov ecx, dword [ebp - 0x870]
cmp ecx, dword [ebp - 0x834]
jae 0x42e8b5
mov dword [ebp - 0x838], 0x104
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x838]
push edx
lea eax, [ebp - 0x830]
push eax
mov ecx, dword [ebp - 0x870]
push ecx
mov edx, dword [ebp - 0x860]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x874], eax
cmp dword [ebp - 0x874], 0
jne 0x42e885
xor eax, eax
mov word [ebp - 0x628], ax
push 0x616
push 0
lea ecx, [ebp - 0x626]
push ecx
call fcn.0050fef0
add esp, 0xc
lea edx, [ebp - 0x830]
push edx
mov eax, dword [ebp + 0xc]
push eax
push str._s_s
lea ecx, [ebp - 0x628]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea edx, [ebp - 0x864]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0
lea ecx, [ebp - 0x628]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x878], eax
cmp dword [ebp - 0x878], 0
jne 0x42e876
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x628]
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
lea edx, [ebp - 0x85c]
push edx
call fcn.0042e550
add esp, 0x10
lea ecx, [ebp - 0x85c]
call fcn.0040ffe0
movzx eax, al
test eax, eax
jne 0x42e86b
push 0
lea ecx, [ebp + 0x14]
push ecx
lea ecx, [ebp - 0x85c]
call fcn.00439dd0
cmp eax, dword [0x58a308]
je 0x42e86b
mov byte [ebp - 0x869], 1
lea ecx, [ebp - 0x85c]
call fcn.0040dc10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.0040dc10
mov al, byte [ebp - 0x869]
jmp 0x42e90b
lea ecx, [ebp - 0x85c]
call fcn.0040dc10
mov edx, dword [ebp - 0x864]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42e8b0
mov eax, dword [ebp - 0x860]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x867], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.0040dc10
mov al, byte [ebp - 0x867]
jmp 0x42e90b
jmp 0x42e71d
jmp 0x42e8e2
mov ecx, dword [ebp - 0x860]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x865], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.0040dc10
mov al, byte [ebp - 0x865]
jmp 0x42e90b
mov edx, dword [ebp - 0x860]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x868], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.0040dc10
mov al, byte [ebp - 0x868]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0050bf8a
mov esp, ebp
pop ebp
ret