Function at 0x14000286c
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.1400070a0
sub rsp, rax
mov rax, qword [0x14000b008]
xor rax, rsp
mov qword [rbp + 0xfd0], rax
mov r13, r8
mov r12, rdx
mov r15, rcx
mov ebx, 0x248
mov r8d, ebx
lea rcx, [rsp + 0x50]
xor edx, edx
xor edi, edi
call sub.msvcrt.dll_memset
lea r8, [rsp + 0x50]
mov dword [rsp + 0x50], ebx
mov rdx, r12
mov rcx, r15
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstallParamsW]
test eax, eax
je 0x140002c4c
or dword [rsp + 0x58], 0x4000800
lea r8, [rsp + 0x50]
mov rdx, r12
mov rcx, r15
call qword [sym.imp.SETUPAPI.dll_SetupDiSetDeviceInstallParamsW]
lea esi, [rdi + 1]
mov rdx, r12
mov rcx, r15
mov r8d, esi
test eax, eax
je 0x140002939
call qword [sym.imp.SETUPAPI.dll_SetupDiBuildDriverInfoList]
test eax, eax
je 0x140002c4c
xor r9d, r9d
mov qword [rsp + 0x20], r13
mov r8d, esi
mov rdx, r12
mov rcx, r15
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDriverInfoW]
test eax, eax
setne dil
mov eax, edi
jmp 0x140002c4e
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 r14, rax
cmp rax, rcx
je 0x140002c46
lea rax, [rsp + 0x44]
mov dword [rsp + 0x44], 0x208
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rbp - 0x74]
xor r8d, r8d
lea rdx, str.InfPath
mov qword [rsp + 0x20], rax
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140002c43
cmp dword [rsp + 0x40], esi
jne 0x140002c43
lea rax, [rsp + 0x44]
mov ebx, 0x200
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rbp + 0x7d0]
mov dword [rsp + 0x44], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.ProviderName
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140002c43
cmp dword [rsp + 0x40], esi
jne 0x140002c43
lea rax, [rsp + 0x44]
mov dword [rsp + 0x44], ebx
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rbp + 0xdd0]
xor r8d, r8d
lea rdx, str.InfSection
mov qword [rsp + 0x20], rax
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140002c43
cmp dword [rsp + 0x40], esi
jne 0x140002c43
lea rax, [rsp + 0x44]
mov dword [rsp + 0x44], ebx
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rbp + 0xbd0]
xor r8d, r8d
lea rdx, str.DriverDesc
mov qword [rsp + 0x20], rax
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, r14
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140002c4c
cmp dword [rsp + 0x40], esi
jne 0x140002c4c
mov qword [rsp + 0x30], rdi
lea rax, [rbp + 0x9d0]
mov dword [rsp + 0x28], 0x200
lea r8d, [rbx + 0xb]
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov rdx, r12
mov rcx, r15
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
je 0x140002c4c
bts dword [rsp + 0x54], 0x10
lea r8, [rsp + 0x50]
bts dword [rsp + 0x58], 0xb
mov rdx, r12
mov rcx, r15
call qword [sym.imp.SETUPAPI.dll_SetupDiSetDeviceInstallParamsW]
test eax, eax
je 0x140002c4c
mov r8d, esi
mov rdx, r12
mov rcx, r15
call qword [sym.imp.SETUPAPI.dll_SetupDiBuildDriverInfoList]
test eax, eax
je 0x140002c4c
xor r9d, r9d
mov qword [rsp + 0x20], r13
mov r8d, esi
mov rdx, r12
mov rcx, r15
mov ebx, edi
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDriverInfoW]
test eax, eax
je 0x140002c28
lea r14, [r13 + 0x210]
lea r8, [rbp + 0x9d0]
mov rax, r14
sub r8, r14
movzx ecx, word [rax]
movzx edx, word [rax + r8]
sub ecx, edx
jne 0x140002b44
add rax, 2
test edx, edx
jne 0x140002b30
test ecx, ecx
jne 0x140002c07
lea rax, [r13 + 0x410]
lea r8, [rbp + 0x7d0]
sub r8, rax
movzx ecx, word [rax]
movzx edx, word [rax + r8]
sub ecx, edx
jne 0x140002b71
add rax, 2
test edx, edx
jne 0x140002b5d
test ecx, ecx
jne 0x140002c07
mov qword [rsp + 0x28], rdi
lea r9, [rbp + 0x1a0]
mov r8, r13
mov dword [rsp + 0x20], 0x630
mov rdx, r12
mov dword [rbp + 0x1a0], 0x630
mov rcx, r15
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDriverInfoDetailW]
test eax, eax
jne 0x140002bb5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140002c07
lea rax, [rbp + 0x1c0]
lea r8, [rbp + 0xdd0]
sub r8, rax
movzx ecx, word [rax]
movzx edx, word [rax + r8]
sub ecx, edx
jne 0x140002bda
add rax, 2
test edx, edx
jne 0x140002bc6
test ecx, ecx
jne 0x140002c07
lea rax, [rbp + 0x5c8]
lea r8, [rbp + 0xbd0]
sub r8, rax
movzx ecx, word [rax]
movzx edx, word [rax + r8]
sub ecx, edx
jne 0x140002c03
add rax, 2
test edx, edx
jne 0x140002bef
test ecx, ecx
je 0x140002c3c
add ebx, esi
mov qword [rsp + 0x20], r13
mov r9d, ebx
mov r8d, esi
mov rdx, r12
mov rcx, r15
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDriverInfoW]
test eax, eax
jne 0x140002b23
mov r8d, esi
mov rdx, r12
mov rcx, r15
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDriverInfoList]
jmp 0x140002932
mov edi, esi
jmp 0x140002932
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rbp + 0xfd0]
xor rcx, rsp
call fcn.140006a80
mov rbx, qword [rsp + 0x1138]
add rsp, 0x10e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret