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

Disassembly:
push 0x40
mov eax, 0x44bd55
call fcn.004482ac
mov ecx, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x18], ebx
call fcn.0042ea4f
mov esi, eax
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x40]
mov dword [ebp - 0x4c], esi
call fcn.0042ea17
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x40]
cmp dword [eax - 0xc], ebx
jne 0x42f08f
mov dword [ebp - 0x18], esi
jmp 0x42f0a9
lea ecx, [ebp - 0x18]
push ecx
push 0x20019
push ebx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x42f348
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
lea eax, [ebp - 0x38]
push eax
push ebx
push dword [ebp - 0x18]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, ebx
jne 0x42f348
mov byte [ebp - 0xd], 1
mov edi, section..data
cmp dword [ebp + 0xc], ebx
je 0x42f224
mov eax, dword [section..data]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x3c], eax
cmp dword [ebp + 0x10], ebx
mov byte [ebp - 4], 1
sete byte [ebp - 0xf]
add dword [ebp - 0x1c], 2
push dword [ebp - 0x1c]
lea esi, [ebp - 0x3c]
call fcn.00401520
mov esi, eax
mov dword [ebp - 0x24], ebx
cmp dword [ebp - 0x28], ebx
jbe 0x42f205
mov eax, dword [ebp - 0x1c]
push ebx
push ebx
push ebx
push ebx
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push eax
push esi
push dword [ebp - 0x24]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x42f1f3
cmp byte [ebp - 0xf], bl
jne 0x42f1a7
push dword [ebp + 0x10]
lea eax, [ebp - 0x38]
push eax
call fcn.00401421
push esi
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 2
or dword [ebp - 0x14], 1
push eax
call fcn.00401421
push dword [ebp + 0x14]
mov dword [ebp - 4], 3
push dword [ebp - 0x30]
mov ecx, dword [ebp - 0x38]
or dword [ebp - 0x14], 2
call fcn.00430192
pop ecx
pop ecx
mov byte [ebp - 0xe], bl
test al, al
je 0x42f1ab
mov byte [ebp - 0xe], 1
mov dword [ebp - 4], 2
test byte [ebp - 0x14], 2
je 0x42f1c7
mov eax, dword [ebp - 0x30]
and dword [ebp - 0x14], 0xfffffffd
add eax, 0xfffffff0
call fcn.0040114e
mov dword [ebp - 4], 1
test byte [ebp - 0x14], 1
je 0x42f1e3
mov eax, dword [ebp - 0x38]
and dword [ebp - 0x14], 0xfffffffe
add eax, 0xfffffff0
call fcn.0040114e
cmp byte [ebp - 0xe], bl
je 0x42f1f6
mov ecx, dword [ebp + 0xc]
push esi
call fcn.0040a3d1
jmp 0x42f1f6
mov byte [ebp - 0xd], bl
inc dword [ebp - 0x24]
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x28]
jb 0x42f13f
mov eax, dword [ebp - 0x3c]
cmp dword [eax - 8], ebx
jl 0x42f316
mov dword [eax - 0xc], ebx
xor ecx, ecx
mov word [eax], cx
add eax, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.0040114e
cmp dword [ebp + 0x18], ebx
je 0x42f348
mov eax, dword [section..data]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x30], eax
cmp dword [ebp + 0x1c], ebx
mov byte [ebp - 4], 4
sete byte [ebp - 0xf]
add dword [ebp - 0x20], 2
push dword [ebp - 0x20]
lea esi, [ebp - 0x30]
call fcn.00401520
xor edi, edi
mov esi, eax
cmp dword [ebp - 0x2c], ebx
jbe 0x42f32d
mov eax, dword [ebp - 0x20]
push ebx
push ebx
push ebx
push ebx
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push eax
push esi
push edi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x42f320
cmp byte [ebp - 0xf], bl
jne 0x42f2ca
push dword [ebp + 0x1c]
lea eax, [ebp - 0x38]
push eax
call fcn.00401421
push esi
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 5
or dword [ebp - 0x14], 4
push eax
call fcn.00401421
push dword [ebp + 0x20]
mov dword [ebp - 4], 6
push dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
or dword [ebp - 0x14], 8
call fcn.00430192
pop ecx
pop ecx
mov byte [ebp - 0xe], bl
test al, al
je 0x42f2ce
mov byte [ebp - 0xe], 1
mov dword [ebp - 4], 5
test byte [ebp - 0x14], 8
je 0x42f2ea
mov eax, dword [ebp - 0x3c]
and dword [ebp - 0x14], 0xfffffff7
add eax, 0xfffffff0
call fcn.0040114e
mov dword [ebp - 4], 4
test byte [ebp - 0x14], 4
je 0x42f306
mov eax, dword [ebp - 0x38]
and dword [ebp - 0x14], 0xfffffffb
add eax, 0xfffffff0
call fcn.0040114e
cmp byte [ebp - 0xe], bl
je 0x42f323
mov ecx, dword [ebp + 0x18]
push esi
call fcn.0040a3d1
jmp 0x42f323
push 0x80070057
call fcn.00401000
mov byte [ebp - 0xd], bl
inc edi
cmp edi, dword [ebp - 0x2c]
jb 0x42f264
mov eax, dword [ebp - 0x30]
cmp dword [eax - 8], ebx
jl 0x42f316
mov dword [eax - 0xc], ebx
xor ecx, ecx
mov word [eax], cx
add eax, 0xfffffff0
mov byte [ebp - 4], bl
call fcn.0040114e
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x42f35b
cmp eax, dword [ebp - 0x4c]
je 0x42f35b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x40]
add eax, 0xfffffff0
call fcn.0040114e
mov al, byte [ebp - 0xd]
call fcn.00448384
ret