Function at 0x140007530
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xfe0]
mov eax, 0x10e0
call fcn.140007c50
sub rsp, rax
mov rax, qword [0x1400692a8]
xor rax, rsp
mov qword [rbp + 0xfd0], rax
mov r15, r8
mov r14, rdx
mov rsi, rcx
xor edx, edx
mov r8d, 0x244
lea rcx, [rsp + 0x54]
xor r12d, r12d
call fcn.140009170
lea r8, [rsp + 0x50]
mov dword [rsp + 0x50], 0x248
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstallParamsW]
test eax, eax
je 0x140007947
or dword [rsp + 0x58], 0x4000800
lea r8, [rsp + 0x50]
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiSetDeviceInstallParamsW]
lea r8d, [r12 + 1]
mov rdx, r14
mov rcx, rsi
test eax, eax
je 0x140007601
call qword [sym.imp.SETUPAPI.dll_SetupDiBuildDriverInfoList]
test eax, eax
je 0x140007947
xor r9d, r9d
mov qword [rsp + 0x20], r15
lea r8d, [r12 + 1]
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDriverInfoW]
test eax, eax
je 0x140007947
lea eax, [r12 + 1]
jmp 0x140007949
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]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140007633
mov rcx, rax
jmp 0x140007941
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, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000793e
cmp dword [rsp + 0x44], 1
jne 0x14000793e
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], 0x200
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x44]
lea rax, [rbp + 0x9d0]
xor r8d, r8d
lea rdx, str.ProviderName
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000793e
cmp dword [rsp + 0x44], 1
jne 0x14000793e
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], 0x200
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, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000793e
cmp dword [rsp + 0x44], 1
jne 0x14000793e
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], 0x200
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, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140007947
cmp dword [rsp + 0x44], 1
jne 0x140007947
mov qword [rsp + 0x30], r12
lea rax, [rbp + 0x7d0]
mov dword [rsp + 0x28], 0x200
lea r8d, [rbx + 0xb]
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
test eax, eax
je 0x140007947
or dword [rsp + 0x54], 0x10000
lea r8, [rsp + 0x50]
or dword [rsp + 0x58], 0x800
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiSetDeviceInstallParamsW]
test eax, eax
je 0x140007947
lea r8d, [rbx + 1]
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiBuildDriverInfoList]
test eax, eax
je 0x140007947
xor r9d, r9d
mov qword [rsp + 0x20], r15
mov rdx, r14
mov rcx, rsi
mov ebx, r12d
lea r8d, [r9 + 1]
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDriverInfoW]
test eax, eax
je 0x14000791c
lea rdi, [r15 + 0x210]
nop
lea r8, [rbp + 0x7d0]
mov rax, rdi
sub r8, rdi
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x140007824
add rax, 2
test ecx, ecx
jne 0x140007810
test edx, edx
jne 0x1400078f8
lea rax, [r15 + 0x410]
lea r8, [rbp + 0x9d0]
sub r8, rax
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x140007854
add rax, 2
test ecx, ecx
jne 0x140007840
test edx, edx
jne 0x1400078f8
mov qword [rsp + 0x28], r12
lea r9, [rbp + 0x1a0]
mov r8, r15
mov dword [rsp + 0x20], 0x630
mov rdx, r14
mov dword [rbp + 0x1a0], 0x630
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDriverInfoDetailW]
test eax, eax
jne 0x140007898
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400078f8
lea rax, [rbp + 0x1c0]
lea r8, [rbp + 0xbd0]
sub r8, rax
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x1400078c4
add rax, 2
test ecx, ecx
jne 0x1400078b0
test edx, edx
jne 0x1400078f8
lea rax, [rbp + 0x5c8]
lea r8, [rbp + 0xdd0]
sub r8, rax
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x1400078f4
add rax, 2
test ecx, ecx
jne 0x1400078e0
test edx, edx
je 0x140007933
inc ebx
mov qword [rsp + 0x20], r15
mov r9d, ebx
mov r8d, 1
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDriverInfoW]
test eax, eax
jne 0x140007800
mov r8d, 1
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDriverInfoList]
mov eax, r12d
jmp 0x140007949
mov r12d, 1
mov eax, r12d
jmp 0x140007949
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rbp + 0xfd0]
xor rcx, rsp
call fcn.140007be0
add rsp, 0x10e0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret