Function at 0x42b21a
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x64
mov eax, 0x489537
call fcn.0046af73
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.0042c9cb
pop ecx
test al, al
je 0x42b444
mov edx, 0x20119
lea ecx, [ebp - 0x44]
call fcn.0042c8b6
mov dword [ebp - 0x70], eax
test eax, eax
je 0x42b444
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 0x42b3da
cmp dword [ebp - 0x60], eax
je 0x42b3da
push dword [ebp - 0x60]
and dword [ebp - 0x6c], eax
and dword [ebp - 0x68], eax
call fcn.00437b80
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 0x42b3d1
cmp dword [ebp - 0x68], 1
jne 0x42b33d
mov eax, dword [ebp - 0x60]
mov edi, dword [esi + 0x10]
add eax, 0xfffffffe
shr eax, 1
cmp eax, edi
jne 0x42b3d1
xor edx, edx
mov bh, 1
test edi, edi
je 0x42b3d1
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 0x42b327
mov eax, dword [esi]
jmp 0x42b329
mov eax, esi
cmp cx, word [eax + edx*2]
jne 0x42b3cf
inc edx
cmp edx, edi
jb 0x42b307
jmp 0x42b3d1
cmp dword [ebp - 0x68], 4
jne 0x42b3e5
cmp dword [ebp - 0x60], 4
jne 0x42b3d1
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 0x42b3a4
push 0x4a53c4
call fcn.0040ca1c
pop ecx
push eax
push 0
push 0x4a53c4
mov ecx, esi
call fcn.0041462f
test eax, eax
jne 0x42b3a4
cmp dword [esi + 0x14], 8
jb 0x42b3a0
mov esi, dword [esi]
push 0x10
jmp 0x42b3ae
cmp dword [esi + 0x14], 8
jb 0x42b3ac
mov esi, dword [esi]
push 0xa
lea eax, [ebp - 0x6c]
push eax
push esi
call fcn.0046874b
mov ecx, eax
add esp, 0xc
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x42b3cf
xor edx, edx
cmp dx, word [eax]
jne 0x42b3cf
cmp edi, ecx
je 0x42b3d1
xor bh, bh
push dword [ebp - 0x64]
call fcn.00437b89
pop ecx
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42b446
cmp dword [ebp - 0x68], 3
jne 0x42b3d1
mov eax, dword [esi + 0x10]
shr eax, 1
cmp dword [ebp - 0x60], eax
jne 0x42b3d1
xor edi, edi
mov bh, 1
cmp dword [ebp - 0x60], edi
jbe 0x42b3d1
push 2
lea eax, [edi + edi]
mov ecx, esi
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0040d806
cmp dword [eax + 0x14], 8
jb 0x42b417
mov eax, dword [eax]
push 0x10
lea ecx, [ebp - 0x6c]
push ecx
push eax
call fcn.00468733
add esp, 0xc
lea ecx, [ebp - 0x5c]
mov bl, al
push 0
push 1
call fcn.0040d9e7
mov eax, dword [ebp - 0x64]
cmp byte [edi + eax], bl
jne 0x42b3cf
inc edi
cmp edi, dword [ebp - 0x60]
jb 0x42b3fe
jmp 0x42b3d1
mov bh, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040d9e7
push 0
push 1
lea ecx, [ebp - 0x44]
call fcn.0040d9e7
mov al, bh
call fcn.0046af22
ret