Function at 0x1400027f4
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.140006f30
sub rsp, rax
mov rax, qword [0x14000a298]
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 0x140002bd4
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 0x1400028c1
call qword [sym.imp.SETUPAPI.dll_SetupDiBuildDriverInfoList]
test eax, eax
je 0x140002bd4
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 0x140002bd6
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 0x140002bce
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, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140002bcb
cmp dword [rsp + 0x44], esi
jne 0x140002bcb
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, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140002bcb
cmp dword [rsp + 0x44], esi
jne 0x140002bcb
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, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140002bcb
cmp dword [rsp + 0x44], esi
jne 0x140002bcb
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, 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 0x140002bd4
cmp dword [rsp + 0x44], esi
jne 0x140002bd4
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, r12
mov rcx, r15
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
je 0x140002bd4
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 0x140002bd4
mov r8d, esi
mov rdx, r12
mov rcx, r15
call qword [sym.imp.SETUPAPI.dll_SetupDiBuildDriverInfoList]
test eax, eax
je 0x140002bd4
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 0x140002bb0
lea r14, [r13 + 0x210]
lea r8, [rbp + 0x7d0]
mov rax, r14
sub r8, r14
movzx ecx, word [rax]
movzx edx, word [rax + r8]
sub ecx, edx
jne 0x140002acc
add rax, 2
test edx, edx
jne 0x140002ab8
test ecx, ecx
jne 0x140002b8f
lea rax, [r13 + 0x410]
lea r8, [rbp + 0x9d0]
sub r8, rax
movzx ecx, word [rax]
movzx edx, word [rax + r8]
sub ecx, edx
jne 0x140002af9
add rax, 2
test edx, edx
jne 0x140002ae5
test ecx, ecx
jne 0x140002b8f
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 0x140002b3d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140002b8f
lea rax, [rbp + 0x1c0]
lea r8, [rbp + 0xbd0]
sub r8, rax
movzx ecx, word [rax]
movzx edx, word [rax + r8]
sub ecx, edx
jne 0x140002b62
add rax, 2
test edx, edx
jne 0x140002b4e
test ecx, ecx
jne 0x140002b8f
lea rax, [rbp + 0x5c8]
lea r8, [rbp + 0xdd0]
sub r8, rax
movzx ecx, word [rax]
movzx edx, word [rax + r8]
sub ecx, edx
jne 0x140002b8b
add rax, 2
test edx, edx
jne 0x140002b77
test ecx, ecx
je 0x140002bc4
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 0x140002aab
mov r8d, esi
mov rdx, r12
mov rcx, r15
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDriverInfoList]
jmp 0x1400028ba
mov edi, esi
jmp 0x1400028ba
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rbp + 0xfd0]
xor rcx, rsp
call fcn.1400068f0
mov rbx, qword [rsp + 0x1138]
add rsp, 0x10e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret