Function at 0x42c231
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x78
mov eax, 0x4896fd
call fcn.0046af73
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp + 8]
xor ebx, ebx
push 7
mov dword [ebp - 0x70], eax
xor eax, eax
pop edx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], ax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x3c], ebx
mov word [ebp - 0x4c], ax
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 1
push eax
lea edx, [ebp - 0x64]
call fcn.0042c9cb
pop ecx
test al, al
jne 0x42c299
push ebx
push 1
lea ecx, [ebp - 0x4c]
call fcn.0040d9e7
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.0040d9e7
xor al, al
jmp 0x42c559
xor edx, edx
lea ecx, [ebp - 0x64]
inc edx
call fcn.0042c8b6
mov ecx, eax
mov dword [ebp - 0x7c], ecx
test ecx, ecx
je 0x42c53f
xor esi, esi
mov dword [ebp - 0x68], esi
cmp dword [ebp - 0x3c], esi
jne 0x42c2bf
mov eax, esi
jmp 0x42c2ca
cmp dword [ebp - 0x38], 8
lea eax, [ebp - 0x4c]
cmovae eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x68]
push edx
push esi
push esi
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
push ecx
call esi
test eax, eax
jne 0x42c536
cmp dword [ebp - 0x68], eax
je 0x42c536
push dword [ebp - 0x68]
call fcn.00437b80
cmp dword [ebp - 0x3c], 0
mov edi, eax
pop ecx
mov dword [ebp - 0x80], edi
jne 0x42c306
xor eax, eax
mov ecx, eax
jmp 0x42c311
cmp dword [ebp - 0x38], 8
lea ecx, [ebp - 0x4c]
cmovae ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x68]
push eax
push edi
push dword [ebp - 0x70]
xor eax, eax
push eax
push ecx
push dword [ebp - 0x7c]
call esi
test eax, eax
jne 0x42c52f
mov eax, dword [ebp - 0x70]
cmp dword [eax], 1
jne 0x42c379
xor eax, eax
mov bl, 1
mov esi, eax
mov eax, dword [ebp - 0x68]
add eax, 0xfffffffe
test eax, 0xfffffffe
jbe 0x42c52f
movzx ecx, byte [edi + esi*2 + 1]
movzx eax, byte [edi + esi*2]
shl cx, 8
or cx, ax
movzx eax, cx
mov ecx, dword [ebp - 0x6c]
push eax
push 1
call fcn.00428304
mov eax, dword [ebp - 0x68]
inc esi
add eax, 0xfffffffe
shr eax, 1
cmp esi, eax
jb 0x42c349
jmp 0x42c52f
cmp dword [eax], 4
jne 0x42c459
cmp dword [ebp - 0x68], 4
jne 0x42c52f
mov esi, 0x4a53c4
mov bl, 1
push esi
call fcn.0040ca1c
pop ecx
mov ecx, dword [ebp - 0x6c]
push eax
push esi
call fcn.0040dec8
push 0x10
push 0xb
lea eax, [ebp - 0x34]
push eax
movzx eax, byte [edi + 3]
shl ax, 8
movzx edx, ax
movzx eax, byte [edi + 2]
or edx, eax
movzx eax, byte [edi + 1]
shl ax, 8
movzx ecx, ax
movzx eax, byte [edi]
shl edx, 0x10
or ecx, eax
add edx, ecx
push edx
call fcn.004687f6
add esp, 0x10
lea ecx, [ebp - 0x34]
xor eax, eax
lea edx, [ecx + 2]
mov dword [ebp - 0x74], eax
push 2
pop esi
mov ax, word [ecx]
add ecx, esi
cmp ax, word [ebp - 0x78]
jne 0x42c3e9
sub ecx, edx
push 8
sar ecx, 1
pop eax
sub eax, ecx
je 0x42c43d
mov edi, dword [ebp - 0x74]
push 0x4a53cc
call fcn.0040ca1c
pop ecx
mov ecx, dword [ebp - 0x6c]
push eax
push 0x4a53cc
call fcn.0040dd92
lea ecx, [ebp - 0x34]
inc edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, esi
cmp ax, word [ebp - 0x78]
jne 0x42c422
sub ecx, edx
push 8
sar ecx, 1
pop eax
sub eax, ecx
cmp edi, eax
jb 0x42c402
mov edi, dword [ebp - 0x80]
lea eax, [ebp - 0x34]
push eax
call fcn.0040ca1c
pop ecx
mov ecx, dword [ebp - 0x6c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.0040dd92
jmp 0x42c52f
cmp dword [eax], 3
jne 0x42c52f
xor eax, eax
mov bl, 1
mov dword [ebp - 0x74], eax
cmp dword [ebp - 0x68], eax
jbe 0x42c52f
push 2
pop esi
movzx eax, byte [eax + edi]
lea ecx, [ebp - 0x34]
push 0x10
push 0xb
push ecx
push eax
call fcn.004687f6
push esi
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00468763
add esp, 0x1c
lea ecx, [ebp - 0x1c]
xor eax, eax
lea edx, [ecx + 2]
mov word [ebp - 0x18], ax
mov dword [ebp - 0x70], eax
mov ax, word [ecx]
add ecx, esi
cmp ax, word [ebp - 0x78]
jne 0x42c4a7
sub ecx, edx
mov eax, esi
sar ecx, 1
sub eax, ecx
je 0x42c508
mov edi, dword [ebp - 0x6c]
push 0x4a53cc
call fcn.0040ca1c
pop ecx
push eax
push 0x4a53cc
mov ecx, edi
call fcn.0040dd92
mov edx, dword [ebp - 0x70]
lea ecx, [ebp - 0x1c]
inc edx
lea eax, [ecx + 2]
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x84], eax
mov ax, word [ecx]
add ecx, esi
cmp ax, word [ebp - 0x78]
jne 0x42c4ea
sub ecx, dword [ebp - 0x84]
mov eax, esi
sar ecx, 1
sub eax, ecx
cmp edx, eax
jb 0x42c4bf
mov edi, dword [ebp - 0x80]
lea eax, [ebp - 0x1c]
push eax
call fcn.0040ca1c
pop ecx
mov ecx, dword [ebp - 0x6c]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040dd92
mov eax, dword [ebp - 0x74]
inc eax
mov dword [ebp - 0x74], eax
cmp eax, dword [ebp - 0x68]
jb 0x42c475
push edi
call fcn.00437b89
pop ecx
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
lea ecx, [ebp - 0x4c]
push esi
push 1
call fcn.0040d9e7
push esi
push 1
lea ecx, [ebp - 0x64]
call fcn.0040d9e7
mov al, bl
call fcn.0046af22
ret