Function at 0x42aae2
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x64
mov eax, 0x488b40
call fcn.0046a143
mov esi, edx
push 7
pop edx
xor ebx, ebx
mov dword [ebp - 0x30], edx
xor eax, eax
mov dword [ebp - 0x34], ebx
mov word [ebp - 0x44], ax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
lea edx, [ebp - 0x44]
call fcn.0042b780
pop ecx
test al, al
je 0x42ad0c
mov edx, 0x20119
lea ecx, [ebp - 0x44]
call fcn.0042b66b
mov dword [ebp - 0x70], eax
test eax, eax
je 0x42ad0c
and dword [ebp - 0x60], 0
lea edx, [ebp - 0x60]
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov bh, bl
cmovae ecx, dword [ebp - 0x2c]
push edx
xor edx, edx
push edx
push edx
push edx
push ecx
push eax
call edi
test eax, eax
jne 0x42aca2
cmp dword [ebp - 0x60], eax
je 0x42aca2
push dword [ebp - 0x60]
and dword [ebp - 0x6c], eax
and dword [ebp - 0x68], eax
call fcn.00436d65
cmp dword [ebp - 0x18], 8
lea edx, [ebp - 0x60]
pop ecx
push edx
push eax
mov dword [ebp - 0x64], eax
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x68]
push eax
push 0
push ecx
push dword [ebp - 0x70]
call edi
test eax, eax
jne 0x42ac99
cmp dword [ebp - 0x68], 1
jne 0x42ac05
mov eax, dword [ebp - 0x60]
mov edi, dword [esi + 0x10]
add eax, 0xfffffffe
shr eax, 1
cmp eax, edi
jne 0x42ac99
xor edx, edx
mov bh, 1
test edi, edi
je 0x42ac99
mov eax, dword [ebp - 0x64]
movzx ecx, byte [eax + edx*2 + 1]
movzx eax, byte [eax + edx*2]
shl cx, 8
or cx, ax
cmp dword [esi + 0x14], 8
movzx ecx, cx
jb 0x42abef
mov eax, dword [esi]
jmp 0x42abf1
mov eax, esi
cmp cx, word [eax + edx*2]
jne 0x42ac97
inc edx
cmp edx, edi
jb 0x42abcf
jmp 0x42ac99
cmp dword [ebp - 0x68], 4
jne 0x42acad
cmp dword [ebp - 0x60], 4
jne 0x42ac99
mov ecx, dword [ebp - 0x64]
mov bh, 1
movzx edi, byte [ecx + 3]
movzx eax, byte [ecx + 2]
shl edi, 8
add edi, eax
movzx eax, byte [ecx + 1]
shl edi, 8
add edi, eax
movzx eax, byte [ecx]
shl edi, 8
add edi, eax
cmp dword [esi + 0x10], 2
jbe 0x42ac6c
push 0x4a423c
call fcn.0040c2ec
pop ecx
push eax
push 0
push 0x4a423c
mov ecx, esi
call fcn.00413eff
test eax, eax
jne 0x42ac6c
cmp dword [esi + 0x14], 8
jb 0x42ac68
mov esi, dword [esi]
push 0x10
jmp 0x42ac76
cmp dword [esi + 0x14], 8
jb 0x42ac74
mov esi, dword [esi]
push 0xa
lea eax, [ebp - 0x6c]
push eax
push esi
call fcn.004677fc
mov ecx, eax
add esp, 0xc
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x42ac97
xor edx, edx
cmp dx, word [eax]
jne 0x42ac97
cmp edi, ecx
je 0x42ac99
xor bh, bh
push dword [ebp - 0x64]
call fcn.00436d6e
pop ecx
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42ad0e
cmp dword [ebp - 0x68], 3
jne 0x42ac99
mov eax, dword [esi + 0x10]
shr eax, 1
cmp dword [ebp - 0x60], eax
jne 0x42ac99
xor edi, edi
mov bh, 1
cmp dword [ebp - 0x60], edi
jbe 0x42ac99
push 2
lea eax, [edi + edi]
mov ecx, esi
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0040d0d6
cmp dword [eax + 0x14], 8
jb 0x42acdf
mov eax, dword [eax]
push 0x10
lea ecx, [ebp - 0x6c]
push ecx
push eax
call fcn.004677e4
add esp, 0xc
lea ecx, [ebp - 0x5c]
mov bl, al
push 0
push 1
call fcn.0040d2b7
mov eax, dword [ebp - 0x64]
cmp byte [edi + eax], bl
jne 0x42ac97
inc edi
cmp edi, dword [ebp - 0x60]
jb 0x42acc6
jmp 0x42ac99
mov bh, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040d2b7
push 0
push 1
lea ecx, [ebp - 0x44]
call fcn.0040d2b7
mov al, bh
call fcn.0046a0f2
ret