Function at 0x14003ae30
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbp
push r14
push r15
lea rbp, [r11 - 0x5f]
sub rsp, 0xa0
mov rax, qword [0x1400cfdf0]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov qword [r11 + 0x18], rbx
mov eax, 0x2001f
mov qword [r11 - 0x20], rsi
mov r15, rdx
mov qword [r11 - 0x28], rdi
mov r14d, 0x20019
mov qword [r11 - 0x30], r12
xor r12d, r12d
cmp ecx, 1
mov qword [r11 - 0x38], r13
lea rcx, [0x14009aaf0]
mov qword [rbp - 0x29], r12
cmove r14d, eax
xor bl, bl
xor r8d, r8d
lea r9d, [r12 + 2]
xor edx, edx
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
lea r13d, [r12 + 1]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14003af57
lea r8, [rbp - 0x11]
mov dword [rbp - 0x11], 0x20
xor edx, edx
mov rcx, rax
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x14003af41
mov dword [rsp + 0x28], 0x20019
lea rdx, [rbp - 0x11]
xor r9d, r9d
mov dword [rsp + 0x20], 2
mov r8d, r13d
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov rdi, rax
test rax, rax
je 0x14003af41
lea rax, [rbp - 0x1d]
mov dword [rbp - 0x19], r12d
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x19]
lea rax, [rbp - 0x21]
mov dword [rbp - 0x1d], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Inst
mov dword [rbp - 0x21], r12d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14003af38
cmp dword [rbp - 0x21], r12d
movzx ebx, bl
cmovne ebx, r13d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rsi
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
test bl, bl
je 0x14003af57
movups xmm0, xmmword [0x14009aaf0]
jmp 0x14003af5e
movups xmm0, xmmword [0x14009ab00]
mov r9d, 2
lea rcx, [rbp + 0xf]
xor r8d, r8d
xor edx, edx
movups xmmword [rbp + 0xf], xmm0
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov rsi, qword [rsp + 0x98]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14003b04c
lea r8, [rbp - 0x11]
mov dword [rbp - 0x11], 0x20
xor edx, edx
mov rcx, rax
mov edi, r12d
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x14003b043
nop dword [rax]
mov dword [rsp + 0x28], r14d
lea rdx, [rbp - 0x11]
xor r9d, r9d
mov dword [rsp + 0x20], 2
mov r8d, r13d
mov rcx, rbx
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov qword [rbp - 0x29], rax
cmp rax, 0xffffffffffffffff
je 0x14003b026
lea rcx, [rbp - 0x19]
mov dword [rbp - 0x1d], r12d
mov qword [rsp + 0x28], rcx
lea r9, [rbp - 0x1d]
lea rcx, [rbp - 0x21]
mov dword [rbp - 0x19], 4
mov qword [rsp + 0x20], rcx
lea rdx, str.Inst
mov rcx, rax
mov dword [rbp - 0x21], r12d
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14003b01c
cmp dword [rbp - 0x21], r12d
jne 0x14003b043
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc edi
mov qword [rbp - 0x29], r12
mov edx, edi
lea r8, [rbp - 0x11]
mov rcx, rbx
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x14003afb0
mov rcx, rbx
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov rax, qword [rbp - 0x29]
mov r13, qword [rsp + 0x80]
mov r12, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x90]
mov rbx, qword [rsp + 0xd0]
test rax, rax
jne 0x14003b09d
test r15, r15
je 0x14003b09d
lea rax, [rbp - 0x29]
mov r9d, r14d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, r15
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rax, qword [rbp - 0x29]
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.14004e4a0
add rsp, 0xa0
pop r15
pop r14
pop rbp
ret