Function at 0x14000282c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xfe0]
mov eax, 0x10e0
call fcn.140006f20
sub rsp, rax
mov rax, qword [0x14000a298]
xor rax, rsp
mov qword [rbp + 0xfd0], rax
mov r13, r8
mov r15, rdx
mov r14, rcx
xor edx, edx
mov r8d, 0x244
lea rcx, [rsp + 0x54]
xor edi, edi
call sub.msvcrt.dll_memset
lea r8, [rsp + 0x50]
mov dword [rsp + 0x50], 0x248
mov rdx, r15
mov rcx, r14
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstallParamsW]
test eax, eax
je 0x140002c0c
or dword [rsp + 0x58], 0x4000800
lea r8, [rsp + 0x50]
mov rdx, r15
mov rcx, r14
call qword [sym.imp.SETUPAPI.dll_SetupDiSetDeviceInstallParamsW]
lea esi, [rdi + 1]
mov rdx, r15
mov rcx, r14
mov r8d, esi
test eax, eax
je 0x1400028fd
call qword [sym.imp.SETUPAPI.dll_SetupDiBuildDriverInfoList]
test eax, eax
je 0x140002c0c
xor r9d, r9d
mov qword [rsp + 0x20], r13
mov r8d, esi
mov rdx, r15
mov rcx, r14
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDriverInfoW]
test eax, eax
je 0x140002c0c
mov eax, esi
jmp 0x140002c0e
and dword [rsp + 0x58], 0xfbfff7ff
xor r9d, r9d
mov dword [rsp + 0x28], 0x20019
mov dword [rsp + 0x20], 2
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
or rcx, 0xffffffffffffffff
mov r12, rax
cmp rax, rcx
je 0x140002c06
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], 0x208
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x44]
lea rax, [rbp - 0x74]
xor r8d, r8d
lea rdx, str.InfPath
mov qword [rsp + 0x20], rax
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140002c03
cmp dword [rsp + 0x44], esi
jne 0x140002c03
lea rax, [rsp + 0x40]
mov ebx, 0x200
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x44]
lea rax, [rbp + 0x9d0]
mov dword [rsp + 0x40], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.ProviderName
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140002c03
cmp dword [rsp + 0x44], esi
jne 0x140002c03
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x44]
lea rax, [rbp + 0xbd0]
xor r8d, r8d
lea rdx, str.InfSection
mov qword [rsp + 0x20], rax
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140002c03
cmp dword [rsp + 0x44], esi
jne 0x140002c03
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x44]
lea rax, [rbp + 0xdd0]
xor r8d, r8d
lea rdx, str.DriverDesc
mov qword [rsp + 0x20], rax
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, r12
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140002c0c
cmp dword [rsp + 0x44], esi
jne 0x140002c0c
mov qword [rsp + 0x30], rdi
lea rax, [rbp + 0x7d0]
mov dword [rsp + 0x28], 0x200
lea r8d, [rbx + 0xb]
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov rdx, r15
mov rcx, r14
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
je 0x140002c0c
bts dword [rsp + 0x54], 0x10
lea r8, [rsp + 0x50]
bts dword [rsp + 0x58], 0xb
mov rdx, r15
mov rcx, r14
call qword [sym.imp.SETUPAPI.dll_SetupDiSetDeviceInstallParamsW]
test eax, eax
je 0x140002c0c
mov r8d, esi
mov rdx, r15
mov rcx, r14
call qword [sym.imp.SETUPAPI.dll_SetupDiBuildDriverInfoList]
test eax, eax
je 0x140002c0c
xor r9d, r9d
mov qword [rsp + 0x20], r13
mov r8d, esi
mov rdx, r15
mov rcx, r14
mov ebx, edi
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDriverInfoW]
test eax, eax
je 0x140002bec
lea r12, [r13 + 0x210]
lea r8, [rbp + 0x7d0]
mov rax, r12
sub r8, r12
movzx ecx, word [rax]
movzx edx, word [rax + r8]
sub ecx, edx
jne 0x140002b08
add rax, 2
test edx, edx
jne 0x140002af4
test ecx, ecx
jne 0x140002bcb
lea rax, [r13 + 0x410]
lea r8, [rbp + 0x9d0]
sub r8, rax
movzx ecx, word [rax]
movzx edx, word [rax + r8]
sub ecx, edx
jne 0x140002b35
add rax, 2
test edx, edx
jne 0x140002b21
test ecx, ecx
jne 0x140002bcb
mov qword [rsp + 0x28], rdi
lea r9, [rbp + 0x1a0]
mov r8, r13
mov dword [rsp + 0x20], 0x630
mov rdx, r15
mov dword [rbp + 0x1a0], 0x630
mov rcx, r14
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDriverInfoDetailW]
test eax, eax
jne 0x140002b79
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140002bcb
lea rax, [rbp + 0x1c0]
lea r8, [rbp + 0xbd0]
sub r8, rax
movzx ecx, word [rax]
movzx edx, word [rax + r8]
sub ecx, edx
jne 0x140002b9e
add rax, 2
test edx, edx
jne 0x140002b8a
test ecx, ecx
jne 0x140002bcb
lea rax, [rbp + 0x5c8]
lea r8, [rbp + 0xdd0]
sub r8, rax
movzx ecx, word [rax]
movzx edx, word [rax + r8]
sub ecx, edx
jne 0x140002bc7
add rax, 2
test edx, edx
jne 0x140002bb3
test ecx, ecx
je 0x140002bff
add ebx, esi
mov qword [rsp + 0x20], r13
mov r9d, ebx
mov r8d, esi
mov rdx, r15
mov rcx, r14
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDriverInfoW]
test eax, eax
jne 0x140002ae7
mov r8d, esi
mov rdx, r15
mov rcx, r14
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDriverInfoList]
mov eax, edi
jmp 0x140002c0e
mov edi, esi
jmp 0x140002bfb
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rbp + 0xfd0]
xor rcx, rsp
call fcn.140006900
mov rbx, qword [rsp + 0x1138]
add rsp, 0x10e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret