Function at 0x660f7607
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x364
push ebx
push esi
push edi
push dword [ebp + 0xc]
call fcn.660f713b
push dword [ebp + 0x10]
call fcn.660f713b
mov eax, 0x104
xor edi, edi
mov dword [ebp - 0x40], eax
push eax
lea eax, [ebp - 0x364]
mov dword [ebp - 8], edi
push eax
mov word [ebp - 0x3c], di
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.660f7156
cmp eax, edi
je 0x660f7651
push eax
call fcn.66024fdc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x364]
push eax
push SysReAllocStringLen
call fcn.660e4e03
cmp eax, edi
jne 0x660f7898
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x40]
push edi
push eax
lea eax, [ebp - 0x15c]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp eax, edi
jne 0x660f7852
mov eax, dword [ebp - 0x2c]
cmp eax, edi
ja 0x660f76dc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x660f7898
push 5
pop esi
lea ecx, [ebp - 0x3c]
call sym.MSVBVM60.DLL___vbaFreeVar
cmp esi, edi
je 0x660f7898
push esi
call fcn.66024fdc
push 2
mov dword [ebp - 0x50], eax
pop eax
lea ecx, [ebp - 0x50]
push ecx
push eax
push 8
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x4c], edi
call dword [sym.imp.OLEAUT32.dll_SafeArrayDestroy]
cmp eax, edi
mov dword [ebp - 0x20], eax
je 0x660f7852
inc dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0xc]
mov word [ebp - 0x3c], 0x2008
add eax, eax
push eax
call fcn.6600fd50
cmp eax, edi
mov dword [ebp - 8], eax
je 0x660f7884
mov ecx, dword [ebp - 0xc]
mov dword [ebp + 0x10], edi
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x1c]
push edi
push ecx
lea ecx, [ebp - 0x10]
push edi
push ecx
push eax
push edi
push dword [ebp - 4]
call fcn.660e4ff0
cmp eax, edi
jne 0x660f782c
mov edi, dword [sym.imp.OLEAUT32.dll_SafeArrayCopy]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp - 0x1c], 1
jne 0x660f7852
mov eax, dword [ebp + 0x10]
push dword [ebp - 8]
and dword [ebp - 0x24], 0
mov dword [ebp - 0x28], eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ebx, eax
test ebx, ebx
je 0x660f7884
lea eax, [ebp - 0x28]
push ebx
push eax
push dword [ebp - 0x20]
call edi
push ebx
mov dword [ebp + 0xc], eax
call esi
cmp dword [ebp + 0xc], 0
jl 0x660f7888
mov eax, dword [ebp - 0x18]
dec eax
shr eax, 1
push eax
push 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov ebx, eax
test ebx, ebx
je 0x660f7884
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push ebx
push 0
lea eax, [ebp - 0x10]
push 0
push eax
push dword [ebp - 8]
push dword [ebp + 0x10]
push dword [ebp - 4]
call fcn.660e4ff0
test eax, eax
jne 0x660f7881
lea eax, [ebp - 0x28]
push ebx
push eax
mov dword [ebp - 0x24], 1
push dword [ebp - 0x20]
call edi
push ebx
mov dword [ebp + 0xc], eax
call esi
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
jl 0x660f7888
mov eax, dword [ebp - 0xc]
inc dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push ebx
push eax
lea eax, [ebp - 0x10]
push ebx
push eax
push dword [ebp - 8]
push dword [ebp + 0x10]
push dword [ebp - 4]
call fcn.660e4ff0
cmp eax, ebx
je 0x660f775a
cmp eax, 0x103
jne 0x660f7852
push dword [ebp - 8]
call fcn.660175eb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x660f7898
push 5
xor edi, edi
pop esi
jmp 0x660f76c6
push 5
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x660f7894
xor edi, edi
cmp esi, edi
jne 0x660f786b
push 5
pop esi
cmp dword [ebp - 8], edi
je 0x660f76c6
push dword [ebp - 8]
call fcn.660175eb
jmp 0x660f76c6
push ebx
call esi
push 7
jmp 0x660f7854
push dword [ebp + 0xc]
call fcn.6602467a
mov esi, eax
jmp 0x660f7855
xor edi, edi
jmp 0x660f786b
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x3c]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
leave
ret 0xc