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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8a4
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0xc], 0xffffffff
push 0
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0x20019
push 0
push 0
push 0
push str.SystemCurrentControlSetEnum
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 0
jmp 0x100071fe
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
cmp dword [ebp - 4], 0
jne 0x100073e5
lea eax, [ebp - 0x28c]
push eax
call 0x10000000
add esp, 4
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x28c]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100073e0
lea edx, [ebp - 0x18]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x28c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100073d9
mov dword [ebp - 8], 0x618
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x8a4]
push eax
lea ecx, [ebp - 0x14]
push ecx
push 0
push str.DeviceInstance
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100073cf
cmp dword [ebp - 0x14], 1
jne 0x100073cf
cmp dword [ebp + 0x14], 0
je 0x100072ce
lea eax, [ebp - 0x8a4]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x100073cf
lea edx, [ebp - 0x20]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x8a4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100073cf
mov dword [ebp - 8], 0x50
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0x10009314
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100073c5
cmp dword [ebp - 0x14], 1
jne 0x100073c5
mov eax, 2
imul ecx, eax, 0
movzx edx, word [ebp + ecx - 0x84]
cmp edx, 0x7b
jne 0x100073c5
mov eax, 2
imul ecx, eax, 0x25
movzx edx, word [ebp + ecx - 0x84]
cmp edx, 0x7d
jne 0x100073c5
mov eax, 2
imul ecx, eax, 0x25
xor edx, edx
mov word [ebp + ecx - 0x84], dx
lea eax, [ebp - 0x34]
push eax
mov ecx, 2
shl ecx, 0
lea edx, [ebp + ecx - 0x84]
push edx
call dword [0x10000000]
push 0
lea eax, [ebp - 0x8a4]
push eax
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call fcn.10006ee0
add esp, 0x10
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x100073c5
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.10007060
add esp, 0x10
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0
jmp 0x100071f5
cmp dword [ebp - 0xc], 0xffffffff
je 0x100073f5
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret