Function at 0x660f8ba7
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.660f86db
push dword [ebp + 0x10]
call fcn.660f86db
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.660f86f6
cmp eax, edi
je 0x660f8bf1
push eax
call fcn.66025592
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x364]
push eax
push SysReAllocStringLen
call fcn.660e62c3
cmp eax, edi
jne 0x660f8e38
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 0x660f8df2
mov eax, dword [ebp - 0x2c]
cmp eax, edi
ja 0x660f8c7c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x660f8e38
push 5
pop esi
lea ecx, [ebp - 0x3c]
call sym.MSVBVM60.DLL___vbaFreeVar
cmp esi, edi
je 0x660f8e38
push esi
call fcn.66025592
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 0x660f8df2
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.6600fdd3
cmp eax, edi
mov dword [ebp - 8], eax
je 0x660f8e24
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.660e64b0
cmp eax, edi
jne 0x660f8dcc
mov edi, dword [sym.imp.OLEAUT32.dll_SafeArrayCopy]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp - 0x1c], 1
jne 0x660f8df2
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 0x660f8e24
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 0x660f8e28
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 0x660f8e24
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.660e64b0
test eax, eax
jne 0x660f8e21
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 0x660f8e28
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.660e64b0
cmp eax, ebx
je 0x660f8cfa
cmp eax, 0x103
jne 0x660f8df2
push dword [ebp - 8]
call fcn.660177d3
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x660f8e38
push 5
xor edi, edi
pop esi
jmp 0x660f8c66
push 5
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x660f8e34
xor edi, edi
cmp esi, edi
jne 0x660f8e0b
push 5
pop esi
cmp dword [ebp - 8], edi
je 0x660f8c66
push dword [ebp - 8]
call fcn.660177d3
jmp 0x660f8c66
push ebx
call esi
push 7
jmp 0x660f8df4
push dword [ebp + 0xc]
call fcn.66024c30
mov esi, eax
jmp 0x660f8df5
xor edi, edi
jmp 0x660f8e0b
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