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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffba0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x460], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x66b556
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
add eax, 4
mov edx, dword [0x66a208]
call fcn.0040f2c4
mov byte [ebp - 0x21], 0
mov eax, dword [0x8dda48]
cmp byte [eax], 0
je 0x66b2d1
mov eax, dword [ebp - 8]
cmp byte [eax + 0x35], 0
jne 0x66b2d1
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0xc], 0
je 0x66b1f0
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 0xc]
mov edx, dword [0x8dceb4]
mov edx, dword [edx]
mov dword [ebp - 0x45c], ebx
mov eax, dword [ebp - 0x45c]
call fcn.0042f86c
test eax, eax
sete al
test al, al
jne 0x66b1f0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
call fcn.0040c824
mov dword [ebp - 0x24c], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
call fcn.0040c824
mov dword [ebp - 0x248], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x38]
call fcn.0040c824
mov dword [ebp - 0x240], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x40]
call fcn.0040c824
mov dword [ebp - 0x244], eax
xor eax, eax
mov dword [ebp - 0x23c], eax
push 0
push 0
lea eax, [ebp - 0x24c]
push eax
push 1
call fcn.00669a14
mov dword [ebp - 0x1c], eax
push 0
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00669ea4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
seta byte [ebp - 0x21]
xor eax, eax
push ebp
push 0x66b2ca
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x66b287
mov eax, dword [ebp - 8]
mov edi, dword [eax + 4]
mov ebx, edi
test ebx, ebx
je 0x66b225
mov ebx, dword [ebx - 4]
inc ebx
push ebx
mov eax, dword [ebp - 8]
add eax, 4
mov ecx, 1
mov edx, dword [0x66a208]
call fcn.0040f1a0
add esp, 4
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x28], eax
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x66b253
mov esi, dword [esi - 4]
dec esi
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
lea eax, [eax + esi*8]
push eax
lea eax, [ebp - 0x460]
lea edx, [ebp - 0x456]
mov ecx, 0x105
call fcn.0040c8d8
mov eax, dword [ebp - 0x460]
mov ecx, dword [ebp - 0x18]
mov edx, 1
call fcn.0040cc5c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x456]
push eax
push 0x20a
mov eax, dword [ebp - 0x20]
push eax
call fcn.00669f34
test eax, eax
jne 0x66b216
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x66b2d1
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00669aa4
mov eax, dword [ebp - 0x20]
push eax
call fcn.00669aa4
pop eax
jmp eax
cmp byte [ebp - 0x21], 0
jne 0x66b533
lea eax, [ebp - 4]
call fcn.0040b8b4
mov eax, dword [ebp - 8]
cmp dword [eax + 0xc], 0
je 0x66b32a
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov ecx, 1
mov edx, eax
mov eax, 0x66b574
call fcn.0040cdb0
test eax, eax
jne 0x66b31c
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
lea eax, [ebp - 4]
mov edx, 0x66b574
call fcn.0040ca8c
jmp 0x66b32a
lea eax, [ebp - 4]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0xc]
call fcn.0040bcec
mov dword [ebp - 0x18], 0x200
xor eax, eax
push ebp
push 0x66b52c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
cmp dword [eax + 0x14], 0
jne 0x66b3c6
mov eax, dword [ebp - 8]
add eax, 0x14
push eax
push 0x80000002
mov eax, dword [ebp - 4]
call fcn.0040c824
push eax
call sub.advapi32.dll_RegConnectRegistryW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x66b3c6
push 3
mov eax, dword [ebp - 8]
add eax, 4
mov ecx, 1
mov edx, dword [0x66a208]
call fcn.0040f1a0
add esp, 4
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
mov edx, 0x66b588
call fcn.0040bca4
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
add eax, 8
mov edx, 0x66b5ac
call fcn.0040bca4
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
add eax, 0x10
mov edx, 0x66b5cc
call fcn.0040bca4
call fcn.0040b014
jmp 0x66b533
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x66b5dc
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
push eax
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x66b510
xor ebx, ebx
jmp 0x66b4e2
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x238]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x66b4d8
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x2c], eax
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x66b427
mov esi, dword [esi - 4]
inc esi
push esi
mov eax, dword [ebp - 8]
add eax, 4
mov ecx, 1
mov edx, dword [0x66a208]
call fcn.0040f1a0
add esp, 4
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x30], eax
mov edi, dword [ebp - 0x30]
test edi, edi
je 0x66b455
mov edi, dword [edi - 4]
dec edi
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
lea eax, [eax + edi*8]
lea edx, [ebp - 0x238]
mov ecx, pe_nt_image_headers32
call fcn.0040c8d8
mov word [ebp - 0x238], 0
mov dword [ebp - 0x18], 0x200
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x238]
push eax
push 0
push 0
push 0x66b634
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x66b4ba
mov eax, dword [ebp - 0x38]
mov eax, dword [eax - 4]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
dec eax
mov edx, dword [ebp - 8]
mov edx, dword [edx + 4]
lea eax, [edx + eax*8 + 4]
lea edx, [ebp - 0x238]
mov ecx, pe_nt_image_headers32
call fcn.0040c8d8
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey
inc ebx
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x238]
push eax
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegEnumKeyExW
test eax, eax
je 0x66b3f1
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x66b533
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x66b55d
lea eax, [ebp - 0x460]
call fcn.0040b8b4
lea eax, [ebp - 4]
call fcn.0040b8b4
pop eax
jmp eax