Function at 0x42d026
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 8]
mov ebx, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x38], ebx
cmp byte [edi], bl
jne 0x42d047
xor eax, eax
jmp 0x42d369
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x30]
push eax
push edi
call fcn.0046f380
test eax, eax
je 0x42d040
lea eax, [ebp - 8]
push eax
push 0x20019
push esi
push dword [ebp - 0x14]
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42d040
push esi
push esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
push esi
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x28]
push eax
push esi
push esi
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x42d0a5
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x42d040
mov eax, dword [ebp - 4]
cmp eax, 0xa
ja 0x42d0b0
push 0xa
pop eax
push dword [ebp - 0x1c]
inc eax
mov dword [ebp - 4], eax
call fcn.0044a635
mov dword [ebp - 0x10], eax
test eax, eax
je 0x42d35e
push dword [ebp - 4]
call fcn.0044a635
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x42d33f
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
push esi
add eax, 5
push eax
push edi
call fcn.0042981d
mov ecx, eax
cmp ecx, 0xffffffff
je 0x42d33f
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
cmp ecx, edx
jb 0x42d13a
push esi
push 0x8000
push edx
push 1
call fcn.0043e6f3
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
je 0x42d33f
push eax
mov eax, dword [ebp + 0xc]
push dword [eax]
call fcn.0044a655
test eax, eax
je 0x42d33f
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x18]
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
mov dword [eax], edx
jmp 0x42d13d
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
mov edx, dword [edx]
mov dword [ebp - 0x18], edx
mov edx, dword [eax]
sub edx, dword [ebp - 0x18]
cmp edx, dword [eax]
ja 0x42d33f
mov eax, dword [ecx]
add eax, dword [ebp - 0x18]
push edi
push 0x40402c
push 0xffffffffffffffff
push edx
push eax
call fcn.0045d4de
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x14]
add eax, dword [ecx]
add esp, 0x14
push eax
call fcn.0042025c
mov ecx, dword [ebp + 0x14]
add eax, dword [ecx]
mov dword [ebp - 0x18], esi
mov dword [ecx], eax
mov ecx, esi
cmp dword [ebp - 0x24], ecx
jbe 0x42d205
mov edi, dword [ebp - 0x2c]
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x34]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push edi
push ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x42d1f4
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x42d1dd
push dword [ebp - 4]
push edi
push 0x403eec
call fcn.0041f22d
push 0x403eec
call fcn.0042025c
mov dword [ebp - 0xc], eax
push dword [ebp + 0xc]
push ebx
push dword [ebp + 0x14]
push dword [ebp - 0x10]
push dword [ebp - 0x20]
push edi
push eax
push dword [ebp - 0x34]
call fcn.0042cbb7
mov ecx, dword [ebp - 0x18]
inc ecx
mov dword [ebp - 0x18], ecx
cmp ecx, dword [ebp - 0x24]
jb 0x42d190
mov edi, dword [ebp + 8]
mov ebx, esi
cmp dword [ebp + 0x18], esi
je 0x42d33c
push edi
call fcn.0042025c
mov ecx, eax
mov eax, dword [ebp - 0x3c]
push SysReAllocString
add eax, 2
push eax
push ecx
mov dword [ebp + 8], ecx
call fcn.004297fb
mov dword [ebp + 0x18], eax
cmp eax, 0xffffffff
je 0x42d33f
push eax
call fcn.0044a635
mov ebx, eax
test ebx, ebx
je 0x42d33f
push dword [ebp + 0x18]
push ebx
push edi
call fcn.0041f22d
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 8]
mov edi, eax
sub edi, edx
lea ecx, [edx + ebx]
mov dword [ebp + 8], ecx
cmp edi, eax
jae 0x42d33f
push edi
push ecx
push 0x404034
call fcn.0041f22d
mov eax, dword [ebp + 8]
inc eax
mov ecx, esi
dec edi
mov dword [ebp + 8], eax
mov dword [ebp + 0x18], esi
cmp dword [ebp - 0x28], ecx
jbe 0x42d33c
push esi
push esi
push esi
push esi
lea edx, [ebp - 0x38]
push edx
push eax
push ecx
push dword [ebp - 8]
mov dword [ebp - 0x38], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x42d35e
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx]
add eax, 3
cmp eax, edx
jb 0x42d2e4
lea eax, [edx + 0x8000]
push eax
mov eax, dword [ebp + 0xc]
push dword [eax]
call fcn.0044a655
mov ecx, eax
test ecx, ecx
je 0x42d33f
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
add dword [eax], 0x8000
mov ecx, dword [ebp + 0x14]
jmp 0x42d2e7
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
sub eax, dword [ecx]
push 0x403fe0
push 0xffffffffffffffff
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
add eax, dword [ecx]
push eax
call fcn.0045d4de
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x14]
add eax, dword [ecx]
add esp, 0x10
push eax
call fcn.0042025c
mov ecx, dword [ebp + 0x14]
add eax, dword [ecx]
push 1
push ecx
push dword [ebp + 0x10]
mov dword [ecx], eax
push dword [ebp + 0xc]
push ebx
call fcn.0042d026
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 8]
inc ecx
mov dword [ebp + 0x18], ecx
cmp ecx, dword [ebp - 0x28]
jb 0x42d28b
xor esi, esi
inc esi
push dword [ebp - 0x10]
call fcn.0044a645
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x42d354
push eax
call fcn.0044a645
test ebx, ebx
je 0x42d35e
push ebx
call fcn.0044a645
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x14