Function at 0x66ae50
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 0x66b2ae
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 [0x669f60]
call fcn.0040f2c4
mov byte [ebp - 0x21], 0
mov eax, dword [0x8d2aac]
cmp byte [eax], 0
je 0x66b029
mov eax, dword [ebp - 8]
cmp byte [eax + 0x35], 0
jne 0x66b029
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0xc], 0
je 0x66af48
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 0xc]
mov edx, dword [0x8d1f08]
mov edx, dword [edx]
mov dword [ebp - 0x45c], ebx
mov eax, dword [ebp - 0x45c]
call fcn.0042f178
test eax, eax
sete al
test al, al
jne 0x66af48
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.0066976c
mov dword [ebp - 0x1c], eax
push 0
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00669bfc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
seta byte [ebp - 0x21]
xor eax, eax
push ebp
push 0x66b022
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x66afdf
mov eax, dword [ebp - 8]
mov edi, dword [eax + 4]
mov ebx, edi
test ebx, ebx
je 0x66af7d
mov ebx, dword [ebx - 4]
inc ebx
push ebx
mov eax, dword [ebp - 8]
add eax, 4
mov ecx, 1
mov edx, dword [0x669f60]
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 0x66afab
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.00669c8c
test eax, eax
jne 0x66af6e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x66b029
mov eax, dword [ebp - 0x1c]
push eax
call fcn.006697fc
mov eax, dword [ebp - 0x20]
push eax
call fcn.006697fc
pop eax
jmp eax
cmp byte [ebp - 0x21], 0
jne 0x66b28b
lea eax, [ebp - 4]
call fcn.0040b8b4
mov eax, dword [ebp - 8]
cmp dword [eax + 0xc], 0
je 0x66b082
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov ecx, 1
mov edx, eax
mov eax, 0x66b2cc
call fcn.0040cdb0
test eax, eax
jne 0x66b074
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
lea eax, [ebp - 4]
mov edx, 0x66b2cc
call fcn.0040ca8c
jmp 0x66b082
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 0x66b284
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
cmp dword [eax + 0x14], 0
jne 0x66b11e
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 0x66b11e
push 3
mov eax, dword [ebp - 8]
add eax, 4
mov ecx, 1
mov edx, dword [0x669f60]
call fcn.0040f1a0
add esp, 4
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
mov edx, 0x66b2e0
call fcn.0040bca4
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
add eax, 8
mov edx, 0x66b304
call fcn.0040bca4
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
add eax, 0x10
mov edx, 0x66b324
call fcn.0040bca4
call fcn.0040b014
jmp 0x66b28b
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x66b334
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
push eax
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x66b268
xor ebx, ebx
jmp 0x66b23a
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 0x66b230
mov eax, dword [ebp - 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x2c], eax
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x66b17f
mov esi, dword [esi - 4]
inc esi
push esi
mov eax, dword [ebp - 8]
add eax, 4
mov ecx, 1
mov edx, dword [0x669f60]
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 0x66b1ad
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 0x66b38c
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 0x66b212
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 0x66b149
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 0x66b28b
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 0x66b2b5
lea eax, [ebp - 0x460]
call fcn.0040b8b4
lea eax, [ebp - 4]
call fcn.0040b8b4
pop eax
jmp eax