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

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x1c4
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x88], ebx
mov dword [ebp + 0x4c], edi
jne 0x50147477
mov eax, dword [ebp + 0x7c]
mov dword [edi + 0x80], eax
lea eax, [ebp + 0x64]
push eax
push 0x500069a8
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp + 0x58], 0x3e8
mov dword [ebp + 0x50], ebx
mov dword [ebp + 0x54], ebx
call fcn.50272bbe
cmp eax, ebx
jne 0x501472e5
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp + 0x48]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 0x64]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp eax, ebx
je 0x501472f2
push eax
call fcn.5006846c
mov esi, eax
jmp 0x5014746b
cmp dword [ebp + 0x48], ebx
mov dword [ebp + 0x6c], ebx
jbe 0x5014744c
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp - 0x150]
push eax
push dword [ebp + 0x6c]
mov dword [ebp + 0x5c], 0x104
push dword [ebp + 0x64]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [ebp + 0x34]
push eax
lea eax, [ebp - 0x150]
push eax
call fcn.50272bbe
cmp eax, ebx
jl 0x501472eb
mov eax, dword [ebp + 0x5c]
mov ecx, dword [ebp + 0x7c]
mov byte [ebp + eax - 0x150], 0x5c
inc eax
mov dword [ebp + 0x5c], eax
sub eax, ecx
lea edx, [ebp + eax - 0x150]
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
cmp al, bl
jne 0x5014734f
lea eax, [ebp + 0x70]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x150]
push eax
push dword [ebp + 0x64]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5014743d
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp + 0x44]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 0x70]
mov dword [ebp + 0x68], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x50147434
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp - 0x4c]
push eax
push ebx
push dword [ebp + 0x70]
mov dword [ebp + 0x60], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
je 0x50147434
inc dword [ebp + 0x60]
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp + 0x50]
call fcn.5003ed99
lea ecx, [ebp + 0x50]
call fcn.5003edc9
push eax
call fcn.50146fa0
sub esp, 0x10
mov edi, esp
push dword [ebp + 0x68]
lea esi, [ebp + 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x4c]
push ecx
push dword [ebp + 0x58]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0x4c]
push eax
mov ecx, edi
call fcn.50272bbe
inc dword [ebp + 0x58]
mov esi, eax
cmp esi, ebx
jl 0x5014746b
inc dword [edi + 0x84]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebp + 0x60]
mov dword [ebp + 0x68], 0x80
push dword [ebp + 0x70]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
jne 0x501473c1
push dword [ebp + 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp + 0x6c]
mov eax, dword [ebp + 0x6c]
cmp eax, dword [ebp + 0x48]
jb 0x501472fe
push dword [ebp + 0x64]
call sub.ADVAPI32.dll_RegCloseKey
mov ecx, edi
call fcn.501470a7
mov esi, eax
cmp esi, ebx
jl 0x5014746b
mov dword [edi + 0x88], 1
lea ecx, [ebp + 0x50]
call fcn.5003ed37
mov eax, esi
jmp 0x50147479
xor eax, eax
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret 4