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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
mov ebx, dword [ebp + 8]
push edi
xor edi, edi
cmp byte [ebx], 0
mov dword [ebp - 0x1c], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x30], edi
jne 0x2e031482
xor eax, eax
pop edi
pop ebx
leave
ret 0x14
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
call fcn.2e07fd91
test eax, eax
je 0x2e03147a
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 0x2e03147a
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 0x2e0314e0
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x2e03147a
push 0xa
pop eax
cmp dword [ebp - 4], eax
ja 0x2e0314eb
mov dword [ebp - 4], eax
inc dword [ebp - 4]
push esi
push dword [ebp - 0x20]
call fcn.2e0441a3
mov dword [ebp - 0x18], eax
cmp eax, edi
je 0x2e03176a
push dword [ebp - 4]
call fcn.2e0441a3
mov dword [ebp - 0x10], eax
cmp eax, edi
je 0x2e031748
mov esi, dword [ebp + 0x14]
mov eax, dword [esi]
push edi
add eax, 5
push eax
push ebx
call fcn.2e05e93b
cmp eax, 0xffffffff
je 0x2e031748
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebx]
mov edi, dword [ebp + 0xc]
cmp eax, ecx
jb 0x2e03156c
push 0
push 0x8000
push ecx
push 1
call fcn.2e05e1b6
mov dword [ebp + 0x14], eax
cmp eax, 0xffffffff
je 0x2e031746
push eax
push dword [edi]
call fcn.2e0442ba
test eax, eax
je 0x2e031746
mov dword [edi], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx], eax
mov ecx, dword [ebx]
mov eax, dword [esi]
mov edx, ecx
sub edx, eax
cmp edx, ecx
ja 0x2e031746
push dword [ebp + 8]
mov ecx, dword [edi]
push 0x2e004430
push edx
add ecx, eax
push ecx
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
mov eax, dword [esi]
mov ecx, dword [edi]
add esp, 0x10
add ecx, eax
push ecx
call fcn.2e027282
add eax, dword [esi]
and dword [ebp + 0x14], 0
cmp dword [ebp - 0x28], 0
mov dword [esi], eax
jbe 0x2e031621
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 + 0x14]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x2e031616
cmp dword [ebp - 0x14], eax
jne 0x2e0315ff
push dword [ebp - 4]
push dword [ebp - 0x10]
push 0x2e004138
call fcn.2e025e30
push 0x2e004138
call fcn.2e027282
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.2e03102f
inc dword [ebp + 0x14]
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebp - 0x28]
jb 0x2e0315ad
cmp dword [ebp + 0x18], 0
je 0x2e03173f
push dword [ebp + 8]
call fcn.2e027282
mov ecx, dword [ebp - 0x3c]
push SysReAllocString
add ecx, 2
push ecx
push eax
mov dword [ebp + 0x10], eax
call fcn.2e05e919
mov dword [ebp + 0x14], eax
cmp eax, 0xffffffff
je 0x2e031746
push eax
call fcn.2e0441a3
mov dword [ebp - 8], eax
test eax, eax
je 0x2e031746
push dword [ebp + 0x14]
push eax
push dword [ebp + 8]
call fcn.2e025e30
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
lea ecx, [edx + eax]
mov eax, dword [ebp + 0x14]
sub eax, edx
mov dword [ebp + 0x10], ecx
cmp eax, dword [ebp + 0x14]
jae 0x2e031746
push eax
push ecx
push 0x2e00442c
mov dword [ebp + 8], eax
call fcn.2e025e30
inc dword [ebp + 0x10]
dec dword [ebp + 8]
and dword [ebp + 0x14], 0
cmp dword [ebp - 0x2c], 0
jbe 0x2e03173f
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 - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x2e03176f
mov ecx, dword [esi]
mov eax, dword [ebx]
add ecx, 3
cmp ecx, eax
jb 0x2e0316f9
add eax, 0x8000
push eax
push dword [edi]
call fcn.2e0442ba
test eax, eax
je 0x2e031746
mov dword [edi], eax
add dword [ebx], 0x8000
mov eax, dword [esi]
mov ecx, dword [ebx]
sub ecx, eax
push 0x2e004420
push ecx
mov ecx, dword [edi]
add ecx, eax
push ecx
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
mov eax, dword [esi]
mov ecx, dword [edi]
add esp, 0xc
add ecx, eax
push ecx
call fcn.2e027282
add eax, dword [esi]
push 1
push esi
push ebx
push edi
push dword [ebp - 8]
mov dword [esi], eax
call fcn.2e03145f
inc dword [ebp + 0x14]
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebp - 0x2c]
jb 0x2e0316ae
mov dword [ebp - 0x30], 1
xor edi, edi
push dword [ebp - 0x18]
call fcn.2e0441d7
cmp dword [ebp - 0x10], edi
je 0x2e03175d
push dword [ebp - 0x10]
call fcn.2e0441d7
cmp dword [ebp - 8], edi
je 0x2e03176a
push dword [ebp - 8]
call fcn.2e0441d7
mov esi, dword [ebp - 0x30]
jmp 0x2e031771
xor esi, esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
jmp 0x2e03147c