Function at 0x140002e84
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.1400074a0
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0xfd0], rax
mov r15, rcx
mov r13, r8
mov r12, rdx
mov ebx, 0x248
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, ebx
xor edi, edi
call sub.msvcrt.dll_memset
lea r8, [rsp + 0x50]
mov rdx, r12
mov rcx, r15
mov dword [rsp + 0x50], ebx
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstallParamsW]
test eax, eax
je 0x140003264
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 0x140002f51
call qword [sym.imp.SETUPAPI.dll_SetupDiBuildDriverInfoList]
test eax, eax
je 0x140003264
xor r9d, r9d
mov r8d, esi
mov rdx, r12
mov rcx, r15
mov qword [rsp + 0x20], r13
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDriverInfoW]
test eax, eax
setne dil
mov eax, edi
jmp 0x140003266
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 0x14000325e
lea rax, [rsp + 0x44]
lea r9, [rsp + 0x40]
lea rdx, [0x140001188]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x74]
xor r8d, r8d
mov rcx, r14
mov dword [rsp + 0x44], 0x208
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000325b
cmp dword [rsp + 0x40], esi
jne 0x14000325b
lea rax, [rsp + 0x44]
lea r9, [rsp + 0x40]
lea rdx, [0x140001198]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x7d0]
mov ebx, 0x200
xor r8d, r8d
mov rcx, r14
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x44], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000325b
cmp dword [rsp + 0x40], esi
jne 0x14000325b
lea rax, [rsp + 0x44]
lea r9, [rsp + 0x40]
lea rdx, [0x1400011b8]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xdd0]
xor r8d, r8d
mov rcx, r14
mov dword [rsp + 0x44], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000325b
cmp dword [rsp + 0x40], esi
jne 0x14000325b
lea rax, [rsp + 0x44]
lea r9, [rsp + 0x40]
lea rdx, [0x1400011d0]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xbd0]
xor r8d, r8d
mov rcx, r14
mov dword [rsp + 0x44], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, r14
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140003264
cmp dword [rsp + 0x40], esi
jne 0x140003264
lea rax, [rbp + 0x9d0]
mov qword [rsp + 0x30], rdi
lea r8d, [rbx + 0xb]
xor r9d, r9d
mov rdx, r12
mov rcx, r15
mov dword [rsp + 0x28], 0x200
mov qword [rsp + 0x20], rax
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
je 0x140003264
bts dword [rsp + 0x54], 0x10
bts dword [rsp + 0x58], 0xb
lea r8, [rsp + 0x50]
mov rdx, r12
mov rcx, r15
call qword [sym.imp.SETUPAPI.dll_SetupDiSetDeviceInstallParamsW]
test eax, eax
je 0x140003264
mov r8d, esi
mov rdx, r12
mov rcx, r15
call qword [sym.imp.SETUPAPI.dll_SetupDiBuildDriverInfoList]
test eax, eax
je 0x140003264
xor r9d, r9d
mov r8d, esi
mov rdx, r12
mov rcx, r15
mov ebx, edi
mov qword [rsp + 0x20], r13
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDriverInfoW]
test eax, eax
je 0x140003240
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 0x14000315c
add rax, 2
test edx, edx
jne 0x140003148
test ecx, ecx
jne 0x14000321f
lea rax, [r13 + 0x410]
lea r8, [rbp + 0x7d0]
sub r8, rax
movzx ecx, word [rax]
movzx edx, word [rax + r8]
sub ecx, edx
jne 0x140003189
add rax, 2
test edx, edx
jne 0x140003175
test ecx, ecx
jne 0x14000321f
lea r9, [rbp + 0x1a0]
mov r8, r13
mov rdx, r12
mov rcx, r15
mov qword [rsp + 0x28], rdi
mov dword [rbp + 0x1a0], 0x630
mov dword [rsp + 0x20], 0x630
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDriverInfoDetailW]
test eax, eax
jne 0x1400031cd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000321f
lea rax, [rbp + 0x1c0]
lea r8, [rbp + 0xdd0]
sub r8, rax
movzx ecx, word [rax]
movzx edx, word [rax + r8]
sub ecx, edx
jne 0x1400031f2
add rax, 2
test edx, edx
jne 0x1400031de
test ecx, ecx
jne 0x14000321f
lea rax, [rbp + 0x5c8]
lea r8, [rbp + 0xbd0]
sub r8, rax
movzx ecx, word [rax]
movzx edx, word [rax + r8]
sub ecx, edx
jne 0x14000321b
add rax, 2
test edx, edx
jne 0x140003207
test ecx, ecx
je 0x140003254
add ebx, esi
mov r8d, esi
mov rdx, r12
mov rcx, r15
mov r9d, ebx
mov qword [rsp + 0x20], r13
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDriverInfoW]
test eax, eax
jne 0x14000313b
mov r8d, esi
mov rdx, r12
mov rcx, r15
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDriverInfoList]
jmp 0x140002f4a
mov edi, esi
jmp 0x140002f4a
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rbp + 0xfd0]
xor rcx, rsp
call fcn.140006f00
mov rbx, qword [rsp + 0x1138]
add rsp, 0x10e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret