Function at 0x42ba4b
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x84
mov eax, 0x48962f
call fcn.0046af73
mov edi, edx
mov esi, ecx
push 7
pop ecx
xor ebx, ebx
mov dword [ebp - 0x30], ecx
xor eax, eax
mov dword [ebp - 0x34], ebx
mov word [ebp - 0x44], ax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
push edi
call fcn.00413b07
lea ecx, [ebp - 0x90]
call fcn.0042ccb4
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x44]
mov ecx, esi
call fcn.0042c9cb
add esp, 0x1c
test al, al
je 0x42bcb4
mov edx, 0x20119
lea ecx, [ebp - 0x44]
call fcn.0042c8b6
mov esi, eax
mov dword [ebp - 0x6c], esi
test esi, esi
je 0x42bcb4
xor edx, edx
lea eax, [ebp - 0x64]
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
push eax
cmovae ecx, dword [ebp - 0x2c]
push edx
push edx
push edx
push ecx
push esi
mov dword [ebp - 0x64], edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42bcad
cmp dword [ebp - 0x64], eax
je 0x42bcad
push dword [ebp - 0x64]
and dword [ebp - 0x70], eax
and dword [ebp - 0x68], eax
call fcn.00437b80
cmp dword [ebp - 0x18], 8
lea edx, [ebp - 0x64]
pop ecx
push edx
push eax
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x68]
push eax
push ebx
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42bca3
cmp dword [ebp - 0x68], 1
jne 0x42bc0c
push 0x4a1a28
lea ecx, [ebp - 0x5c]
mov bl, 1
call fcn.0040d781
mov edi, dword [ebp - 0x60]
xor esi, esi
mov byte [ebp - 4], 3
cmp dword [ebp - 0x64], esi
jbe 0x42bb81
movzx ecx, byte [esi + edi + 1]
movzx eax, byte [esi + edi]
shl cx, 8
or cx, ax
movzx eax, cx
lea ecx, [ebp - 0x5c]
push eax
push 1
call fcn.00428304
add esi, 2
cmp esi, dword [ebp - 0x64]
jb 0x42bb5b
sub esp, 0x18
lea eax, [ebp - 0x5c]
mov ecx, esp
push eax
call fcn.00413b07
lea ecx, [ebp - 0x84]
call fcn.0042ccb4
mov edx, dword [ebp - 0x8c]
add esp, 0x18
mov ecx, dword [ebp - 0x90]
xor esi, esi
sub edx, ecx
sar edx, 2
test edx, edx
je 0x42bbed
mov eax, dword [ebp - 0x80]
mov edi, dword [ebp - 0x84]
sub eax, edi
sar eax, 2
sub edi, ecx
mov dword [ebp - 0x78], edi
mov edi, dword [ebp - 0x60]
mov dword [ebp - 0x74], eax
cmp esi, eax
jae 0x42bbe1
mov edi, dword [ebp - 0x78]
mov eax, dword [ecx]
cmp eax, dword [edi + ecx]
mov edi, dword [ebp - 0x60]
jb 0x42bbeb
mov eax, dword [ebp - 0x74]
inc esi
add ecx, 4
cmp esi, edx
jb 0x42bbcd
jmp 0x42bbed
xor bl, bl
lea ecx, [ebp - 0x84]
call fcn.0042cdd7
push 0
push 1
lea ecx, [ebp - 0x5c]
call fcn.0040d9e7
mov esi, dword [ebp - 0x6c]
jmp 0x42bca6
cmp dword [ebp - 0x68], 4
jne 0x42bcdf
cmp dword [ebp - 0x64], 4
jne 0x42bca3
mov ecx, dword [ebp - 0x60]
mov bl, 1
movzx esi, byte [ecx + 3]
movzx eax, byte [ecx + 2]
shl esi, 8
add esi, eax
movzx eax, byte [ecx + 1]
shl esi, 8
add esi, eax
movzx eax, byte [ecx]
shl esi, 8
add esi, eax
cmp dword [edi + 0x10], 2
jbe 0x42bc73
push 0x4a53c4
call fcn.0040ca1c
pop ecx
push eax
push 0
push 0x4a53c4
mov ecx, edi
call fcn.0041462f
test eax, eax
jne 0x42bc73
cmp dword [edi + 0x14], 8
jb 0x42bc6f
mov edi, dword [edi]
push 0x10
jmp 0x42bc7d
cmp dword [edi + 0x14], 8
jb 0x42bc7b
mov edi, dword [edi]
push 0xa
lea eax, [ebp - 0x70]
push eax
push edi
call fcn.0046874b
mov ecx, eax
add esp, 0xc
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x42bc9e
xor edx, edx
cmp dx, word [eax]
jne 0x42bc9e
cmp esi, ecx
jae 0x42bca0
xor bl, bl
mov esi, dword [ebp - 0x6c]
mov edi, dword [ebp - 0x60]
push edi
call fcn.00437b89
pop ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x90]
call fcn.0042cdd7
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040d9e7
push 0
push 1
lea ecx, [ebp - 0x44]
call fcn.0040d9e7
mov al, bl
call fcn.0046af22
ret
xor eax, eax
movzx ebx, bl
cmp dword [ebp - 0x68], 3
cmove ebx, eax
jmp 0x42bca3