Function at 0x14006cd10
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rdi
push r12
push r13
sub rsp, 0x268
mov eax, dword [0x1400c5860]
mov r12, rcx
lea rcx, [rsp + 0x78]
mov dword [rcx], eax
mov eax, dword [0x1400c5864]
mov r13, rdx
mov dword [rcx + 4], eax
mov eax, dword [0x1400c5868]
xor ebp, ebp
mov dword [rcx + 8], eax
mov eax, dword [0x1400c586c]
lea r9d, [rbp + 2]
mov dword [rcx + 0xc], eax
xor eax, eax
lea rcx, [rsp + 0x78]
mov dword [rdx], eax
mov dword [rdx + 4], eax
mov dword [rdx + 8], eax
xor edx, edx
xor r8d, r8d
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
cmp rax, 0xffffffffffffffff
mov rdi, rax
jne 0x14006cd85
xor eax, eax
add rsp, 0x268
pop r13
pop r12
pop rdi
pop rbp
ret
xor eax, eax
lea r8, [rsp + 0x58]
xor edx, edx
mov qword [rsp + 0x58], rax
mov rcx, rdi
mov qword [rsp + 0x260], rsi
mov dword [rsp + 0x58], 0x20
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov esi, ebp
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x14006cfbf
mov qword [rsp + 0x290], rbx
nop
mov ecx, dword [rsp + 0x6c]
lea rdx, [rsp + 0x190]
xor r9d, r9d
mov r8d, 0xc8
mov qword [rsp + 0x20], rbp
call qword [sym.imp.SETUPAPI.dll_CM_Get_Device_ID_ExA]
test eax, eax
jne 0x14006cec4
lea r8d, [rax + 0xc]
lea rdx, str.PCIVEN_1002
lea rcx, [rsp + 0x190]
call fcn.14007f2bc
test eax, eax
jne 0x14006cec4
lea r8d, [rax + 1]
lea rdx, [rsp + 0x58]
xor r9d, r9d
mov rcx, rdi
mov dword [rsp + 0x28], 0x20019
mov dword [rsp + 0x20], 1
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
cmp rax, 0xffffffffffffffff
mov rbx, rax
je 0x14006cec4
lea rcx, [rsp + 0x91]
xor edx, edx
mov r8d, 0xff
mov dword [rsp + 0x44], 1
mov dword [rsp + 0x40], 0x100
mov byte [rsp + 0x90], bpl
call fcn.14007cd30
lea r11, [rsp + 0x40]
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], r11
lea r9, [rsp + 0x44]
lea rdx, str.VideoID
xor r8d, r8d
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14006cebb
lea rdx, [rsp + 0x90]
mov rcx, r12
call fcn.14007ea64
test rax, rax
jne 0x14006cee4
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 1
lea r8, [rsp + 0x58]
mov rcx, rdi
mov edx, esi
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x14006cdd0
jmp 0x14006cfb7
lea rax, [rsp + 0x2a0]
lea r9, [rsp + 0x2a8]
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov r8d, 0x15
mov rcx, rdi
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x2a0], 8
mov dword [rsp + 0x2a8], ebp
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
mov r11d, dword [rsp + 0x50]
lea rax, [rsp + 0x2a0]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x2a8]
lea rdx, [rsp + 0x58]
mov r8d, 0x1c
mov rcx, rdi
mov dword [rsp + 0x28], 8
mov dword [r13], r11d
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x2a0], 8
mov dword [rsp + 0x2a8], ebp
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
mov r11, qword [rsp + 0x48]
mov rcx, rbx
mov rax, r11
shr rax, 0x10
mov dword [r13 + 4], eax
movzx eax, r11w
mov dword [r13 + 8], eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, 1
mov rbx, qword [rsp + 0x290]
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov rsi, qword [rsp + 0x260]
mov eax, ebp
add rsp, 0x268
pop r13
pop r12
pop rdi
pop rbp
ret