Function at 0x660e66e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
push ebx
xor ebx, ebx
cmp dword [0x6610fd90], ebx
push esi
push edi
je 0x660e68fb
push dword [ebp + 0xc]
call fcn.66026741
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
inc eax
cmp eax, 1
pop ecx
jbe 0x660e6729
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call esi
mov edi, eax
cmp edi, ebx
jne 0x660e672c
mov eax, 0x8007000e
jmp 0x660e67a7
mov edi, dword [ebp + 0x1c]
push 1
lea eax, [ebp - 0xa8]
push ebx
push eax
push edi
push ebx
push 0x78
lea ecx, [ebp - 0x14]
call fcn.660daf6c
mov eax, dword [ebp - 0x10]
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x660e683f
push ebx
push ebx
push edi
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call esi
test eax, eax
je 0x660e683f
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
je 0x660e67b3
cmp dword [ebp + 0x18], ebx
je 0x660e67ae
mov eax, dword [eax]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
mov dword [ebp + 0xc], eax
push dword [ebp + 0xc]
lea eax, [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x18]
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x18]
push dword [ebp + 8]
call esi
mov edi, eax
cmp edi, ebx
je 0x660e67b8
lea ecx, [ebp - 0x14]
call fcn.66029f67
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x18
mov dword [ebp - 4], ebx
jmp 0x660e6776
mov dword [ebp + 0xc], ebx
jmp 0x660e677c
cmp dword [ebp - 8], ebx
jbe 0x660e68ed
cmp dword [ebp - 8], 2
jbe 0x660e67d1
cmp dword [ebp - 8], 7
jne 0x660e68ed
cmp dword [ebp + 0x1c], ebx
je 0x660e68d2
push 1
lea eax, [ebp - 0x120]
push ebx
push eax
push dword [ebp - 4]
lea ecx, [ebp - 0x24]
push ebx
push 0x78
call fcn.660daf6c
mov eax, dword [ebp - 0x20]
cmp eax, ebx
mov dword [ebp + 0x10], eax
je 0x660e6837
cmp dword [ebp + 0x18], ebx
je 0x660e684c
mov ecx, dword [ebp - 4]
mov esi, dword [ebp + 0x18]
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x1c]
mov ecx, dword [ecx]
shr ecx, 1
push ecx
push dword [ebp + 0x18]
push 0xffffffffffffffff
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
cmp esi, ebx
jne 0x660e68c2
lea ecx, [ebp - 0x24]
call fcn.66029f67
lea ecx, [ebp - 0x14]
call fcn.66029f67
jmp 0x660e6722
push dword [ebp + 0xc]
push eax
push ebx
push ebx
push dword [ebp - 0x18]
push dword [ebp + 8]
call esi
mov esi, eax
cmp esi, ebx
je 0x660e6877
lea ecx, [ebp - 0x24]
call fcn.66029f67
lea ecx, [ebp - 0x14]
call fcn.66029f67
mov eax, esi
jmp 0x660e67a7
push 1
lea eax, [ebp - 0x198]
push ebx
push eax
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x30]
add eax, eax
push eax
push ebx
push 0x78
call fcn.660daf6c
cmp dword [ebp - 0x2c], ebx
jne 0x660e68a1
lea ecx, [ebp - 0x30]
call fcn.66029f67
jmp 0x660e6837
push dword [ebp - 4]
push dword [ebp - 0x2c]
push 0xffffffffffffffff
push dword [ebp + 0x10]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
lea ecx, [ebp - 0x30]
cmp esi, ebx
je 0x660e689a
call fcn.66029f67
mov ecx, dword [ebp + 0x1c]
lea eax, [esi + esi]
mov dword [ecx], eax
lea ecx, [ebp - 0x24]
call fcn.66029f67
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x660e68de
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
lea ecx, [ebp - 0x14]
call fcn.66029f67
xor eax, eax
jmp 0x660e67a7
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
je 0x660e68d2
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
jmp 0x660e68d2
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jmp 0x660e67a7