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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
cmp byte [edi], bl
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x30], ebx
je 0x3002a680
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
push edi
call fcn.300332ec
test eax, eax
je 0x3002a680
lea eax, [ebp - 0x14]
push eax
push 0x20019
push ebx
push dword [ebp - 0x1c]
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x3002a687
xor eax, eax
jmp 0x3002a923
push esi
push ebx
push ebx
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x3002a6b6
xor esi, esi
jmp 0x3002a917
push 0xa
pop eax
cmp dword [ebp - 4], eax
ja 0x3002a6c1
mov dword [ebp - 4], eax
inc dword [ebp - 4]
mov esi, 0x106
push esi
push dword [ebp - 0x20]
call fcn.3005424c
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x3002a914
push esi
push dword [ebp - 4]
call fcn.3005424c
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x3002a8f2
push edi
call fcn.3004ead5
mov esi, dword [ebp + 0x14]
mov ecx, dword [esi]
push eax
push ecx
call fcn.3002a44e
push 5
push eax
call fcn.3002a44e
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebx]
cmp ecx, eax
mov edi, dword [ebp + 0xc]
jg 0x3002a73a
push 0x8000
push ecx
call fcn.3002a44e
push eax
push dword [edi]
call fcn.3005427f
test eax, eax
je 0x3002a8f0
mov dword [edi], eax
add dword [ebx], 0x8000
push dword [ebp + 8]
mov eax, dword [esi]
mov ecx, dword [ebx]
sub ecx, eax
push 0x30003f60
push ecx
mov ecx, dword [edi]
add ecx, eax
push ecx
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
mov eax, dword [edi]
add eax, dword [esi]
add esp, 0x10
push eax
call fcn.3004ead5
add dword [esi], eax
and dword [ebp + 0x14], 0
cmp dword [ebp - 0x28], 0
jbe 0x3002a7e1
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x38]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0xc]
push dword [ebp + 0x14]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x3002a7d6
cmp dword [ebp - 0x10], eax
jne 0x3002a7bf
push dword [ebp - 4]
push dword [ebp - 0xc]
push 0x30003b00
call fcn.3004feaa
push 0x30003b00
call fcn.3004ead5
mov dword [ebp - 0x10], eax
push edi
push ebx
push esi
push dword [ebp - 0x18]
push dword [ebp - 0x24]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x38]
call fcn.30028013
inc dword [ebp + 0x14]
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebp - 0x28]
jb 0x3002a76d
cmp dword [ebp + 0x18], 0
je 0x3002a8e9
push dword [ebp + 8]
call fcn.3004ead5
mov ecx, dword [ebp - 0x3c]
mov dword [ebp + 0x10], eax
lea eax, [eax + ecx + 2]
push 0x106
push eax
mov dword [ebp + 0x14], eax
call fcn.3005424c
test eax, eax
mov dword [ebp - 8], eax
je 0x3002a8f0
push dword [ebp + 0x14]
push eax
push dword [ebp + 8]
call fcn.3004feaa
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
lea ecx, [edx + eax]
mov eax, dword [ebp + 0x14]
sub eax, edx
push eax
push ecx
push 0x30002958
mov dword [ebp + 0x10], ecx
mov dword [ebp + 8], eax
call fcn.3004feaa
inc dword [ebp + 0x10]
dec dword [ebp + 8]
and dword [ebp + 0x14], 0
cmp dword [ebp - 0x2c], 0
jbe 0x3002a8e9
mov eax, dword [ebp + 8]
mov dword [ebp + 0xc], eax
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0x14]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x3002a6af
mov ecx, dword [esi]
mov eax, dword [ebx]
add ecx, 3
cmp ecx, eax
jl 0x3002a8a7
push 0x8000
push eax
call fcn.3002a44e
push eax
push dword [edi]
call fcn.3005427f
test eax, eax
je 0x3002a8f0
mov dword [edi], eax
add dword [ebx], 0x8000
mov eax, dword [esi]
mov ecx, dword [ebx]
sub ecx, eax
push 0x300029a0
push ecx
mov ecx, dword [edi]
add ecx, eax
push ecx
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
mov eax, dword [edi]
add eax, dword [esi]
add esp, 0xc
push eax
call fcn.3004ead5
add dword [esi], eax
push 1
push esi
push ebx
push edi
push dword [ebp - 8]
call fcn.3002a63a
inc dword [ebp + 0x14]
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebp - 0x2c]
jb 0x3002a856
mov dword [ebp - 0x30], 1
xor ebx, ebx
push dword [ebp - 0x18]
call fcn.30054161
cmp dword [ebp - 0xc], ebx
je 0x3002a907
push dword [ebp - 0xc]
call fcn.30054161
cmp dword [ebp - 8], ebx
je 0x3002a914
push dword [ebp - 8]
call fcn.30054161
mov esi, dword [ebp - 0x30]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop edi
pop ebx
leave
ret 0x14