Function at 0x140009ca0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push r12
push r14
push r15
lea rbp, [rsp - 0xff0]
mov eax, 0x10f0
call fcn.14000b130
sub rsp, rax
mov rax, qword [0x14001d6d0]
xor rax, rsp
mov qword [rbp + 0xfd0], rax
mov rsi, rcx
mov r15, r8
mov r14, rdx
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x248
xor r12d, r12d
call fcn.14000aa30
lea r8, [rsp + 0x50]
mov rdx, r14
mov rcx, rsi
mov dword [rsp + 0x50], 0x248
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstallParamsW]
test eax, eax
jne 0x140009d11
xor eax, eax
jmp 0x14000a0c1
or dword [rsp + 0x58], 0x4000800
lea r8, [rsp + 0x50]
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiSetDeviceInstallParamsW]
mov r8d, 1
mov rdx, r14
mov rcx, rsi
test eax, eax
je 0x140009d6a
call qword [sym.imp.SETUPAPI.dll_SetupDiBuildDriverInfoList]
test eax, eax
je 0x140009d0a
xor r9d, r9d
mov rdx, r14
mov rcx, rsi
lea r8d, [r9 + 1]
mov qword [rsp + 0x20], r15
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDriverInfoW]
test eax, eax
setne r12b
mov eax, r12d
jmp 0x14000a0c1
and dword [rsp + 0x58], 0xfbfff7ff
xor r9d, r9d
mov dword [rsp + 0x28], 0x20019
mov qword [rsp + 0x10e0], rdi
mov dword [rsp + 0x20], 2
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140009dac
or rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x14000a0b9
lea rax, [rsp + 0x44]
lea r9, [rsp + 0x40]
lea rdx, str.InfPath
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x74]
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x44], 0x208
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000a0ec
cmp dword [rsp + 0x40], 1
jne 0x14000a0ec
lea rax, [rsp + 0x44]
lea r9, [rsp + 0x40]
lea rdx, str.ProviderName
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x7d0]
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x44], 0x200
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000a0ec
cmp dword [rsp + 0x40], 1
jne 0x14000a0ec
lea rax, [rsp + 0x44]
lea r9, [rsp + 0x40]
lea rdx, str.InfSection
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xdd0]
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x44], 0x200
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000a0ec
cmp dword [rsp + 0x40], 1
jne 0x14000a0ec
lea rax, [rsp + 0x44]
lea r9, [rsp + 0x40]
lea rdx, str.DriverDesc
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xbd0]
xor r8d, r8d
mov rcx, rdi
mov qword [rsp + 0x10e8], rbx
mov dword [rsp + 0x44], 0x200
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14000a0e8
cmp dword [rsp + 0x40], 1
jne 0x14000a0e8
lea rax, [rbp + 0x9d0]
mov qword [rsp + 0x30], r12
lea r8d, [rbx + 0xb]
xor r9d, r9d
mov rdx, r14
mov rcx, rsi
mov dword [rsp + 0x28], 0x200
mov qword [rsp + 0x20], rax
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
je 0x14000a0e8
or dword [rsp + 0x54], 0x10000
or dword [rsp + 0x58], 0x800
lea r8, [rsp + 0x50]
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiSetDeviceInstallParamsW]
test eax, eax
je 0x14000a0e8
lea r8d, [rbx + 1]
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiBuildDriverInfoList]
test eax, eax
je 0x14000a0e8
xor r9d, r9d
mov rdx, r14
mov rcx, rsi
lea r8d, [r9 + 1]
mov ebx, r12d
mov qword [rsp + 0x20], r15
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDriverInfoW]
test eax, eax
je 0x14000a09c
lea rdi, [r15 + 0x210]
nop
lea r8, [rbp + 0x9d0]
mov rax, rdi
sub r8, rdi
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x140009fa4
add rax, 2
test ecx, ecx
jne 0x140009f90
test edx, edx
jne 0x14000a078
lea rax, [r15 + 0x410]
lea r8, [rbp + 0x7d0]
sub r8, rax
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x140009fd4
add rax, 2
test ecx, ecx
jne 0x140009fc0
test edx, edx
jne 0x14000a078
lea r9, [rbp + 0x1a0]
mov r8, r15
mov rdx, r14
mov rcx, rsi
mov qword [rsp + 0x28], r12
mov dword [rbp + 0x1a0], 0x630
mov dword [rsp + 0x20], 0x630
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDriverInfoDetailW]
test eax, eax
jne 0x14000a018
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000a078
lea rax, [rbp + 0x1c0]
lea r8, [rbp + 0xdd0]
sub r8, rax
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14000a044
add rax, 2
test ecx, ecx
jne 0x14000a030
test edx, edx
jne 0x14000a078
lea rax, [rbp + 0x5c8]
lea r8, [rbp + 0xbd0]
sub r8, rax
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14000a074
add rax, 2
test ecx, ecx
jne 0x14000a060
test edx, edx
je 0x14000a0e0
inc ebx
mov r8d, 1
mov rdx, r14
mov rcx, rsi
mov r9d, ebx
mov qword [rsp + 0x20], r15
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDriverInfoW]
test eax, eax
jne 0x140009f80
mov r8d, 1
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDriverInfoList]
mov eax, r12d
mov rbx, qword [rsp + 0x10e8]
mov rdi, qword [rsp + 0x10e0]
mov rcx, qword [rbp + 0xfd0]
xor rcx, rsp
call fcn.14000aa00
add rsp, 0x10f0
pop r15
pop r14
pop r12
pop rsi
pop rbp
ret
mov r12d, 1
jmp 0x14000a0ae
xor eax, eax
jmp 0x14000a0b1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x14000a0b9