Function at 0x42aaf4
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x45cf42
call fcn.0044d930
sub esp, 0x10
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x18], bl
mov dword [ebp - 4], ebx
xor esi, esi
inc esi
push esi
push dword [ebp + 0x14]
lea ecx, [ebp - 0x1c]
push dword [ebp + 8]
call fcn.0042aa35
test al, al
jne 0x42ab35
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x42acf0
cmp dword [ebp + 0x18], ebx
jne 0x42ab3d
mov dword [ebp + 0x18], esi
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00404792
mov byte [ebp - 4], 1
push 0x3e8
lea ecx, [ebp + 8]
call fcn.0043252b
mov byte [ebp - 4], 2
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp + 0x14], 0x7d0
push dword [ebp - 0x1c]
call esi
mov edi, eax
cmp edi, 0xea
jne 0x42abaa
mov eax, dword [ebp + 0x14]
shr eax, 1
push eax
lea ecx, [ebp + 8]
call fcn.0043ca1c
lea ecx, [ebp + 0x14]
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp - 0x1c]
call esi
mov edi, eax
cmp edi, ebx
jne 0x42acd3
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp - 0x14]
cmp eax, 1
jne 0x42abf9
cmp edx, eax
je 0x42ac1b
cmp edx, 7
je 0x42ac1b
cmp edx, 2
je 0x42ac1b
mov ecx, dword [ebp - 0x10]
cmp edx, 4
jne 0x42abe2
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.0042b877
jmp 0x42ac83
cmp edx, 0xb
jne 0x42ac0e
mov eax, dword [ebp + 8]
push dword [eax + 4]
push dword [eax]
call fcn.0042b8cd
jmp 0x42ac83
cmp edx, eax
jne 0x42acd0
cmp eax, 7
je 0x42ac1b
cmp eax, 2
je 0x42ac1b
mov ecx, dword [ebp - 0x10]
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.0042c825
jmp 0x42ac83
cmp dword [ebp + 0x14], ebx
jne 0x42ac2a
mov ecx, dword [ebp - 0x10]
call fcn.0042b6e8
jmp 0x42ac6a
shr dword [ebp + 0x14], 1
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
cmp word [ecx + eax*2 - 2], bx
jne 0x42ac3d
dec dword [ebp + 0x14]
cmp edx, 7
jne 0x42ac5e
cmp dword [ebp + 0x14], ebx
je 0x42ac5e
mov eax, dword [ebp + 0x14]
lea eax, [ecx + eax*2]
cmp word [eax - 2], bx
je 0x42ac5e
xor ecx, ecx
mov word [eax], cx
inc dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
push dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.0042a844
cmp dword [ebp - 0x14], 2
jne 0x42ac79
mov ecx, dword [ebp - 0x10]
push ebx
call fcn.0043742e
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
inc eax
mov dword [ebp + 0x14], eax
cmp dword [ebp + 0x14], ebx
jne 0x42ac8f
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [ebp + 0x14]
mov byte [ebp - 4], 1
push dword [ebp + 8]
call fcn.0043c8d4
mov dword [ebp + 8], ebx
mov byte [ebp - 4], bl
push dword [ebp + 0xc]
call fcn.0043c8d4
mov dword [ebp + 0xc], ebx
mov ebx, esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0042a85a
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14
push 0xd
pop edi
mov byte [ebp - 4], 1
push dword [ebp + 8]
call fcn.0043c8d4
mov dword [ebp + 8], ebx
mov byte [ebp - 4], bl
push dword [ebp + 0xc]
call fcn.0043c8d4
mov dword [ebp + 0xc], ebx
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
call fcn.0042ca6f
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x42acb1