Function at 0x140045e90
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbp
push r14
push r15
lea rbp, [r11 - 0x428]
sub rsp, 0x510
mov rax, qword [0x1400cfdf0]
xor rax, rsp
mov qword [rbp + 0x3f0], rax
mov qword [r11 - 0x20], rdi
mov eax, 0x2001f
mov qword [r11 - 0x28], r12
mov r14d, 0x20019
xor r12d, r12d
mov r15, rdx
cmp ecx, 1
mov qword [rsp + 0x40], r12
cmove r14d, eax
call fcn.140046dc0
test al, al
je 0x140045eee
movups xmm0, xmmword [0x14009dd40]
jmp 0x140045ef5
movups xmm0, xmmword [str.23LM4_H]
mov r9d, 2
lea rcx, [rsp + 0x58]
xor r8d, r8d
xor edx, edx
movups xmmword [rsp + 0x58], xmm0
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140046129
mov qword [rsp + 0x548], rsi
lea r8, [rsp + 0x68]
xor edx, edx
mov dword [rsp + 0x68], 0x20
mov rcx, rax
mov esi, r12d
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x140046118
mov qword [rsp + 0x540], rbx
xor r9d, r9d
mov dword [rsp + 0x28], r14d
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 0x140045fcf
lea rax, [rsp + 0x4c]
mov dword [rsp + 0x50], r12d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov dword [rsp + 0x4c], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Inst
mov dword [rsp + 0x48], r12d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140045fc3
cmp dword [rsp + 0x48], r12d
jne 0x140045fe9
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, r12
inc esi
lea r8, [rsp + 0x68]
mov edx, esi
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x140045f50
test rbx, rbx
je 0x140046110
mov dword [rsp + 0x38], r12d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x48]
lea rax, [rbp - 0x30]
mov dword [rsp + 0x28], 0x208
lea r8, [0x140095d58]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x68]
mov dword [rsp + 0x50], r12d
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 0x140046110
lea rax, [rbp - 0x78]
mov dword [rbp - 0x78], 0x20
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rbp - 0x30]
mov rcx, rbx
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDeviceInfoW]
test eax, eax
je 0x140046107
mov dword [rsp + 0x38], r12d
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x54]
lea rax, [rbp + 0x1e0]
mov dword [rsp + 0x28], 0x208
lea r8, [0x140095da8]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x78]
mov dword [rsp + 0x4c], r12d
mov rcx, rbx
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDevicePropertyW]
test eax, eax
je 0x140046107
lea rax, [rbp - 0x58]
mov dword [rbp - 0x58], 0x20
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 0x140046107
xor r9d, r9d
mov dword [rsp + 0x28], r14d
lea rdx, [rbp - 0x58]
mov dword [rsp + 0x20], 1
mov rcx, rbx
lea r8d, [r9 + 1]
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov qword [rsp + 0x40], rax
mov rcx, rbx
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov rbx, qword [rsp + 0x540]
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov rsi, qword [rsp + 0x548]
mov rax, qword [rsp + 0x40]
mov r12, qword [rsp + 0x500]
mov rdi, qword [rsp + 0x508]
test rax, rax
jne 0x14004616d
test r15, r15
je 0x14004616d
lea rax, [rsp + 0x40]
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 [rsp + 0x40]
mov rcx, qword [rbp + 0x3f0]
xor rcx, rsp
call fcn.14004e4a0
add rsp, 0x510
pop r15
pop r14
pop rbp
ret