Function at 0x140030540
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x400]
sub rsp, 0x500
mov rax, qword [0x1400a1df8]
xor rax, rsp
mov qword [rbp + 0x3f0], rax
and qword [rsp + 0x40], 0
mov esi, 0x20019
cmp ecx, 1
mov r15, rdx
lea eax, [rsi + 6]
cmove esi, eax
call fcn.1400286fc
test al, al
je 0x140030595
movups xmm0, xmmword [0x14007e6e0]
jmp 0x14003059c
movups xmm0, xmmword [0x14007e740]
mov r9d, 2
lea rcx, [rsp + 0x58]
xor r8d, r8d
xor edx, edx
movdqu xmmword [rsp + 0x58], xmm0
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400307af
lea r8, [rsp + 0x68]
mov dword [rsp + 0x68], 0x20
xor edx, edx
mov rcx, rax
xor r14d, r14d
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x1400307a6
xor r9d, r9d
mov dword [rsp + 0x28], esi
lea rdx, [rsp + 0x68]
mov dword [rsp + 0x20], 2
mov rcx, rdi
lea r8d, [r9 + 1]
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov rbx, rax
test rax, rax
je 0x140030664
and dword [rsp + 0x50], 0
lea rax, [rsp + 0x4c]
and dword [rsp + 0x48], 0
lea r9, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rdx, str.Inst
lea rax, [rsp + 0x48]
mov dword [rsp + 0x4c], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140030659
cmp dword [rsp + 0x48], eax
jne 0x140030680
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
inc r14d
lea r8, [rsp + 0x68]
mov edx, r14d
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x1400305e8
test rbx, rbx
je 0x1400307a6
and dword [rsp + 0x38], 0
lea rax, [rsp + 0x50]
and dword [rsp + 0x50], 0
lea r9, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea r8, [0x14007b110]
lea rax, [rbp - 0x30]
mov dword [rsp + 0x28], 0x208
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDevicePropertyW]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SETUPAPI.dll_SetupDiCreateDeviceInfoList]
mov rbx, rax
test rax, rax
je 0x1400307a6
lea rax, [rbp - 0x78]
mov r14d, 0x20
xor r9d, r9d
mov dword [rbp - 0x78], r14d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x30]
mov rcx, rbx
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDeviceInfoW]
test eax, eax
je 0x14003079d
and dword [rsp + 0x38], 0
lea rax, [rsp + 0x4c]
and dword [rsp + 0x4c], 0
lea r9, [rsp + 0x54]
mov qword [rsp + 0x30], rax
lea r8, [0x14007b128]
lea rax, [rbp + 0x1e0]
mov dword [rsp + 0x28], 0x208
lea rdx, [rbp - 0x78]
mov qword [rsp + 0x20], rax
mov rcx, rbx
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDevicePropertyW]
test eax, eax
je 0x14003079d
lea rax, [rbp - 0x58]
mov dword [rbp - 0x58], r14d
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rbp + 0x1e0]
mov rcx, rbx
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDeviceInfoW]
test eax, eax
je 0x14003079d
mov dword [rsp + 0x28], esi
lea r8d, [r14 - 0x1f]
xor r9d, r9d
mov dword [rsp + 0x20], 1
lea rdx, [rbp - 0x58]
mov rcx, rbx
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov qword [rsp + 0x40], rax
mov rcx, rbx
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov rax, qword [rsp + 0x40]
test rax, rax
jne 0x1400307e3
test r15, r15
je 0x1400307e3
lea rax, [rsp + 0x40]
mov r9d, esi
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, r15
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rbp + 0x3f0]
xor rcx, rsp
call fcn.140037490
mov rbx, qword [rsp + 0x540]
add rsp, 0x500
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret