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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp byte [esi], 0
mov dword [ebp - 0x1c], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x30], edi
jne 0x3002fdab
xor eax, eax
pop edi
pop esi
leave
ret 0x14
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
push esi
call fcn.3006b34c
test eax, eax
je 0x3002fda3
lea eax, [ebp - 0xc]
push eax
push 0x20019
push edi
push dword [ebp - 0x1c]
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x3002fda3
push edi
push edi
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x28]
push eax
push edi
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x2c]
push eax
push edi
push edi
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x3002fe09
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x3002fda3
push 0xa
pop eax
cmp dword [ebp - 4], eax
ja 0x3002fe14
mov dword [ebp - 4], eax
inc dword [ebp - 4]
push ebx
push dword [ebp - 0x20]
call fcn.30042ff1
cmp eax, edi
mov dword [ebp - 0x18], eax
je 0x30030046
push dword [ebp - 4]
call fcn.30042ff1
cmp eax, edi
mov dword [ebp - 0x10], eax
je 0x30030024
push esi
call fcn.30059d82
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
mov edx, dword [esi]
mov ecx, dword [ebx]
mov edi, dword [ebp + 0xc]
lea eax, [edx + eax + 5]
cmp eax, ecx
jl 0x3002fe77
add ecx, 0x8000
push ecx
push dword [edi]
call fcn.300430bd
test eax, eax
je 0x30030022
mov dword [edi], eax
add dword [ebx], 0x8000
push dword [ebp + 8]
mov eax, dword [esi]
mov ecx, dword [ebx]
sub ecx, eax
push 0x300041d0
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.30059d82
add dword [esi], eax
and dword [ebp + 0x10], 0
cmp dword [ebp - 0x28], 0
jbe 0x3002ff1e
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], 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 - 0x14]
push eax
push dword [ebp - 0x10]
push dword [ebp + 0x10]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x3002ff13
cmp dword [ebp - 0x14], eax
jne 0x3002fefc
push dword [ebp - 4]
push dword [ebp - 0x10]
push 0x30004138
call fcn.3005b2f6
push 0x30004138
call fcn.30059d82
mov dword [ebp - 0x14], eax
push edi
push ebx
push esi
push dword [ebp - 0x18]
push dword [ebp - 0x24]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x38]
call fcn.3002f964
inc dword [ebp + 0x10]
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 0x28]
jb 0x3002feaa
cmp dword [ebp + 0x18], 0
je 0x3003001b
push dword [ebp + 8]
call fcn.30059d82
mov ecx, dword [ebp - 0x3c]
mov dword [ebp + 0x14], eax
lea eax, [eax + ecx + 2]
push eax
mov dword [ebp + 0x10], eax
call fcn.30042ff1
test eax, eax
mov dword [ebp - 8], eax
je 0x30030022
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.3005b2f6
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
lea ecx, [edx + eax]
mov eax, dword [ebp + 0x10]
sub eax, edx
push eax
push ecx
push 0x300041cc
mov dword [ebp + 0x14], ecx
mov dword [ebp + 8], eax
call fcn.3005b2f6
inc dword [ebp + 0x14]
dec dword [ebp + 8]
and dword [ebp + 0x10], 0
cmp dword [ebp - 0x2c], 0
jbe 0x3003001b
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 + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x3003004b
mov ecx, dword [esi]
mov eax, dword [ebx]
add ecx, 3
cmp ecx, eax
jl 0x3002ffd9
add eax, 0x8000
push eax
push dword [edi]
call fcn.300430bd
test eax, eax
je 0x30030022
mov dword [edi], eax
add dword [ebx], 0x8000
mov eax, dword [esi]
mov ecx, dword [ebx]
sub ecx, eax
push 0x300041c0
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.30059d82
add dword [esi], eax
push 1
push esi
push ebx
push edi
push dword [ebp - 8]
call fcn.3002fd88
inc dword [ebp + 0x10]
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 0x2c]
jb 0x3002ff8e
mov dword [ebp - 0x30], 1
xor edi, edi
push dword [ebp - 0x18]
call fcn.3004304e
cmp dword [ebp - 0x10], edi
je 0x30030039
push dword [ebp - 0x10]
call fcn.3004304e
cmp dword [ebp - 8], edi
je 0x30030046
push dword [ebp - 8]
call fcn.3004304e
mov esi, dword [ebp - 0x30]
jmp 0x3003004d
xor esi, esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop ebx
jmp 0x3002fda5