Function at 0x42cc83
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ebx
shl esi, 2
push esi
lea eax, [ebp - 0xc]
push eax
call fcn.0042bfac
test eax, eax
je 0x42ce80
push edi
mov edi, dword [ebp - 0xc]
push esi
push 0
push edi
call fcn.0041b964
xor esi, esi
add esp, 0xc
mov dword [ebp - 0x14], esi
test ebx, ebx
jle 0x42ce79
mov edx, dword [ebp + 8]
add edx, 0x10
mov dword [ebp + 8], edx
cmp dword [edx - 0x10], 0
jne 0x42ce67
cmp dword [edi + esi*4], 0
jne 0x42ce67
mov eax, dword [edx]
cmp byte [eax], 0
jne 0x42ccee
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 4], ecx
jmp 0x42cd11
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
push eax
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edx, dword [ebp + 8]
test eax, eax
je 0x42cd0e
xor ecx, ecx
jmp 0x42cce9
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], esi
cmp esi, ebx
jge 0x42ce54
lea esi, [edx - 8]
mov edx, dword [edx]
mov eax, dword [esi + 8]
mov bl, byte [eax]
cmp bl, byte [edx]
jne 0x42cd46
test bl, bl
je 0x42cd40
mov bl, byte [eax + 1]
cmp bl, byte [edx + 1]
jne 0x42cd46
add eax, 2
add edx, 2
test bl, bl
jne 0x42cd24
xor ebx, ebx
mov eax, ebx
jmp 0x42cd4d
sbb eax, eax
sbb eax, 0xffffffff
xor ebx, ebx
test eax, eax
jne 0x42ce36
mov eax, dword [ebp - 8]
xor edx, edx
inc edx
mov dword [edi + eax*4], edx
cmp dword [esi - 8], ebx
jne 0x42ce33
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x42ce36
mov eax, dword [esi + 4]
sub eax, ebx
je 0x42ce0d
dec eax
je 0x42ce0a
dec eax
je 0x42cdf4
dec eax
jne 0x42ce36
push edx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [esi + 0xc]
mov dword [ebp - 0x10], ebx
push ecx
call fcn.0042ce86
test eax, eax
je 0x42ce33
mov edi, dword [ebp - 0x10]
push ebx
push ebx
push 0xffffffffffffffff
push edi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
lea eax, [ebx + ebx]
push eax
call fcn.00416fe4
mov dword [esi - 4], eax
test eax, eax
je 0x42cde8
push ebx
push eax
push 0xffffffffffffffff
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebx + ebx]
mov dword [esi], eax
mov dword [esi - 8], 1
test edi, edi
je 0x42ce33
push edi
call fcn.00416ff4
jmp 0x42ce33
push 3
push esi
lea eax, [esi - 4]
push eax
push dword [esi + 0xc]
push ecx
call fcn.0042ce86
test eax, eax
je 0x42ce33
jmp 0x42ce2c
push edx
jmp 0x42cdf6
lea eax, [ebp - 0x18]
push eax
lea eax, [esi - 4]
push eax
push ebx
push ebx
push dword [esi + 0xc]
mov dword [ebp - 0x18], 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x42ce33
mov dword [esi - 8], 1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
inc eax
add esi, 0x18
mov dword [ebp - 8], eax
cmp eax, ebx
jl 0x42cd1f
mov esi, dword [ebp - 0x14]
cmp ecx, dword [ebp + 0x10]
je 0x42ce64
test ecx, ecx
je 0x42ce64
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 8]
inc esi
add edx, 0x18
mov dword [ebp - 0x14], esi
mov dword [ebp + 8], edx
cmp esi, ebx
jl 0x42cccb
push edi
call fcn.00416ff4
pop edi
pop esi
pop ebx
leave
ret 0xc