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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002dfd8
mov eax, dword fs:[0]
push eax
sub esp, 0x8d0
mov eax, dword [0x1003bcc8]
xor eax, ebp
mov dword [ebp - 0x38], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x8c8], ecx
lea ecx, [ebp - 0x34]
call fcn.10001520
mov dword [ebp - 4], 0
lea eax, [ebp - 0x30]
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetServices
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x10006d38
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.100013e0
jmp 0x10007120
lea ecx, [ebp - 0x20]
push ecx
push 0x20019
push 0
push 0x100341d4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x10006d70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.100013e0
jmp 0x10007120
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
jmp 0x10006d97
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x28], 0x200
xor eax, eax
mov word [ebp - 0x43c], ax
push 0x3fe
push 0
lea ecx, [ebp - 0x43a]
push ecx
call fcn.1001abd0
add esp, 0xc
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x43c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x103
jne 0x10006df7
jmp 0x10007111
lea eax, [ebp - 0x24]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x43c]
push ecx
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x10006e3a
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.100013e0
jmp 0x10007120
mov dword [ebp - 0x28], 0x200
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x43c]
push edx
lea eax, [ebp - 0x18]
push eax
push 0
push str.Group
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 2
jne 0x10006e79
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10006d8e
lea eax, [ebp - 0x43c]
mov dword [ebp - 0x8cc], eax
mov dword [ebp - 0x8d0], str.Video
mov ecx, dword [ebp - 0x8d0]
mov dx, word [ecx]
mov word [ebp - 0x8d2], dx
mov eax, dword [ebp - 0x8cc]
cmp dx, word [eax]
jne 0x10006ef5
cmp word [ebp - 0x8d2], 0
je 0x10006ee9
mov ecx, dword [ebp - 0x8d0]
mov dx, word [ecx + 2]
mov word [ebp - 0x8d4], dx
mov eax, dword [ebp - 0x8cc]
cmp dx, word [eax + 2]
jne 0x10006ef5
add dword [ebp - 0x8d0], 4
add dword [ebp - 0x8cc], 4
cmp word [ebp - 0x8d4], 0
jne 0x10006e8f
mov dword [ebp - 0x8d8], 0
jmp 0x10006f00
sbb ecx, ecx
sbb ecx, 0xffffffff
mov dword [ebp - 0x8d8], ecx
mov edx, dword [ebp - 0x8d8]
mov dword [ebp - 0x8dc], edx
cmp dword [ebp - 0x8dc], 0
je 0x10006f24
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10006d8e
lea ecx, [ebp - 0x2c]
push ecx
push 0x20019
push 0
push str.Enum
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], 4
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 0
push str.Count
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov dword [ebp - 0x440], 0
jmp 0x10006f9b
mov edx, dword [ebp - 0x440]
add edx, 1
mov dword [ebp - 0x440], edx
mov eax, dword [ebp - 0x440]
cmp eax, dword [ebp - 0x10]
jge 0x100070f9
xor ecx, ecx
mov word [ebp - 0x8c4], cx
push 0x3fe
push 0
lea edx, [ebp - 0x8c2]
push edx
call fcn.1001abd0
add esp, 0xc
xor eax, eax
mov word [ebp - 0x4c4], ax
push 0x7e
push 0
lea ecx, [ebp - 0x4c2]
push ecx
call fcn.1001abd0
add esp, 0xc
mov edx, dword [ebp - 0x440]
push edx
push 0x10034284
lea eax, [ebp - 0x4c4]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov dword [ebp - 0x28], 0x400
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x8c4]
push edx
lea eax, [ebp - 0x18]
push eax
push 0
lea ecx, [ebp - 0x4c4]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x2c]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x8c4]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x1c], eax
xor eax, eax
je 0x1000706e
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.100013e0
jmp 0x10007120
mov dword [ebp - 0x28], 0x400
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x8c4]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 0
push str.FriendlyName
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 2
jne 0x100070e3
mov dword [ebp - 0x28], 0x400
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x8c4]
push ecx
lea edx, [ebp - 0x18]
push edx
push 0
push str.DeviceDesc
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x8c4]
push ecx
lea ecx, [ebp - 0x34]
call fcn.10005000
lea edx, [ebp - 0x34]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.10008c60
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2c], 0
jmp 0x10006f8c
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x24], 0
jmp 0x10007111
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.100013e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x38]
xor ecx, ebp
call fcn.100184dc
mov esp, ebp
pop ebp
ret 8