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

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x2d8
push ebx
xor ebx, ebx
cmp dword [0x5029a8bc], ebx
mov dword [ebp + 0x6c], ebx
mov dword [ebp + 0x70], ebx
je 0x501a8ea7
lea eax, [ebp + 0x70]
push eax
push 0x5001ecdc
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.50272bbe
cmp eax, ebx
je 0x501a8c5a
push eax
call fcn.5006846c
mov dword [ebp + 0x6c], eax
jmp 0x501a8e9a
mov ecx, dword [0x5029a8bc]
push esi
push edi
push 1
call fcn.501acf87
push 0xc
pop ecx
push ebx
push ebx
push ebx
push ebx
xor eax, eax
mov byte [ebp], bl
push ebx
lea edi, [ebp + 1]
rep stosd dword es:[edi], eax
push ebx
push ebx
stosb byte es:[edi], al
lea eax, [ebp + 0x74]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 0x70]
mov dword [ebp + 0x74], ebx
mov dword [ebp + 0x64], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x501a8e98
cmp dword [ebp + 0x74], ebx
jbe 0x501a8e98
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push 0x32
lea eax, [ebp]
push eax
push ebx
push dword [ebp + 0x70]
call edi
mov esi, 0x103
jmp 0x501a8d4d
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp]
push eax
push dword [ebp + 0x70]
mov dword [ebp + 0x44], 4
mov dword [ebp + 0x68], ebx
mov dword [ebp + 0x60], ebx
call fcn.50272bbe
test eax, eax
jne 0x501a8d34
lea eax, [ebp + 0x34]
push eax
lea eax, [ebp]
push eax
call fcn.50272bbe
lea eax, [ebp + 0x44]
push eax
lea eax, [ebp + 0x68]
push eax
push ebx
push ebx
push 0x5001ecc8
push dword [ebp + 0x60]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [0x5029a8bc]
xor eax, eax
cmp dword [ebp + 0x68], ebx
setne al
push eax
push ebx
lea eax, [ebp + 0x34]
push eax
call fcn.50272bbe
mov ecx, dword [0x5029a8bc]
push eax
call fcn.501acef4
push dword [ebp + 0x60]
call sub.ADVAPI32.dll_RegCloseKey
inc dword [ebp + 0x64]
mov eax, dword [ebp + 0x64]
cmp eax, dword [ebp + 0x74]
jae 0x501a8d55
push 0x32
lea eax, [ebp]
push eax
push dword [ebp + 0x64]
push dword [ebp + 0x70]
call edi
cmp eax, esi
jne 0x501a8cc1
mov esi, 0x50001f20
lea edi, [ebp + 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 6
pop ecx
xor eax, eax
lea edi, [ebp + 0x48]
rep stosd dword es:[edi], eax
mov dword [ebp + 0x74], ebx
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [0x5029a8bc]
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0xe0]
push eax
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x1e0]
push eax
push ebx
lea eax, [ebp + 0x34]
push eax
lea eax, [ebp + 0x34]
push eax
lea eax, [ebp + 0x34]
push eax
push 0x20
push dword [ebp + 0x74]
add ecx, 8
call fcn.50272bbe
cmp eax, ebx
mov dword [ebp + 0x68], eax
je 0x501a8e8c
xor esi, esi
cmp eax, ebx
jle 0x501a8e7d
mov ecx, dword [0x5029a8bc]
mov edi, esi
push ebx
shl edi, 2
push dword [ebp + edi - 0xe0]
call fcn.50272bbe
mov ecx, dword [0x5029a8bc]
push ebx
push dword [ebp + edi - 0x1e0]
mov dword [ebp + 0x48], eax
call fcn.50272bbe
mov ecx, dword [0x5029a8bc]
push ebx
push dword [ebp + edi - 0x160]
mov dword [ebp + 0x50], eax
call fcn.50272bbe
cmp dword [ebp + 0x48], ebx
mov ecx, dword [ebp + edi - 0x260]
mov dword [ebp + 0x4c], ecx
mov cl, byte [ebp + esi - 0x40]
mov byte [ebp + 0x58], cl
mov cl, byte [ebp + esi - 0x60]
mov byte [ebp + 0x59], cl
mov cl, byte [ebp + esi - 0x20]
mov byte [ebp + 0x5a], cl
mov cl, byte [ebp + esi + 0x10]
mov dword [ebp + 0x54], eax
mov byte [ebp + 0x5b], cl
je 0x501a8eb0
cmp dword [ebp + 0x50], ebx
je 0x501a8eb0
cmp eax, ebx
je 0x501a8eb0
mov ecx, dword [0x5029a8bc]
push ebx
push eax
call fcn.501acef4
test eax, eax
je 0x501a8eb0
mov ecx, dword [0x5029a8bc]
lea eax, [ebp + 0x48]
push eax
push 0xf
call fcn.50272bbe
cmp eax, ebx
mov dword [ebp + 0x6c], eax
jl 0x501a8e98
inc esi
cmp esi, dword [ebp + 0x68]
jl 0x501a8dcf
mov eax, dword [ebp + 0x68]
add dword [ebp + 0x74], eax
cmp eax, 0x20
je 0x501a8d6e
mov ecx, dword [0x5029a8bc]
push ebx
call fcn.501a8abc
pop edi
pop esi
cmp dword [ebp + 0x70], ebx
je 0x501a8ea7
push dword [ebp + 0x70]
call sub.ADVAPI32.dll_RegCloseKey
mov eax, dword [ebp + 0x6c]
pop ebx
add ebp, 0x78
leave
ret
mov dword [ebp + 0x6c], 0x80004005
jmp 0x501a8e98