Function at 0x660e5220
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
push ebx
xor ebx, ebx
cmp dword [0x6610ed74], ebx
push esi
push edi
je 0x660e543b
push dword [ebp + 0xc]
call fcn.6602618b
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
inc eax
cmp eax, 1
pop ecx
jbe 0x660e5269
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 0x660e526c
mov eax, 0x8007000e
jmp 0x660e52e7
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.660d9ad7
mov eax, dword [ebp - 0x10]
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x660e537f
push ebx
push ebx
push edi
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push ebx
push ebx
call esi
test eax, eax
je 0x660e537f
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
je 0x660e52f3
cmp dword [ebp + 0x18], ebx
je 0x660e52ee
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 0x660e52f8
lea ecx, [ebp - 0x14]
call fcn.66029978
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x18
mov dword [ebp - 4], ebx
jmp 0x660e52b6
mov dword [ebp + 0xc], ebx
jmp 0x660e52bc
cmp dword [ebp - 8], ebx
jbe 0x660e542d
cmp dword [ebp - 8], 2
jbe 0x660e5311
cmp dword [ebp - 8], 7
jne 0x660e542d
cmp dword [ebp + 0x1c], ebx
je 0x660e5412
push 1
lea eax, [ebp - 0x120]
push ebx
push eax
push dword [ebp - 4]
lea ecx, [ebp - 0x24]
push ebx
push 0x78
call fcn.660d9ad7
mov eax, dword [ebp - 0x20]
cmp eax, ebx
mov dword [ebp + 0x10], eax
je 0x660e5377
cmp dword [ebp + 0x18], ebx
je 0x660e538c
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 0x660e5402
lea ecx, [ebp - 0x24]
call fcn.66029978
lea ecx, [ebp - 0x14]
call fcn.66029978
jmp 0x660e5262
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 0x660e53b7
lea ecx, [ebp - 0x24]
call fcn.66029978
lea ecx, [ebp - 0x14]
call fcn.66029978
mov eax, esi
jmp 0x660e52e7
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.660d9ad7
cmp dword [ebp - 0x2c], ebx
jne 0x660e53e1
lea ecx, [ebp - 0x30]
call fcn.66029978
jmp 0x660e5377
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 0x660e53da
call fcn.66029978
mov ecx, dword [ebp + 0x1c]
lea eax, [esi + esi]
mov dword [ecx], eax
lea ecx, [ebp - 0x24]
call fcn.66029978
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x660e541e
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
lea ecx, [ebp - 0x14]
call fcn.66029978
xor eax, eax
jmp 0x660e52e7
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
je 0x660e5412
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
jmp 0x660e5412
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 0x660e52e7