Function at 0x14003cc80
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push r12
push r13
sub rsp, 0x388
xor eax, eax
mov r13, rcx
mov r12, rdx
mov dword [rdx], eax
mov dword [rdx + 4], eax
mov dword [rdx + 8], eax
xor ebp, ebp
lea rcx, [0x1400e3c50]
xor edx, edx
lea r9d, [rbp + 2]
xor r8d, r8d
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
cmp rax, 0xffffffffffffffff
mov rbx, rax
je 0x14003cce8
lea rdx, [rsp + 0x250]
mov rcx, rax
mov dword [rsp + 0x250], 0x128
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInfoListDetailA]
test eax, eax
jne 0x14003ccf8
mov rcx, rbx
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
xor eax, eax
add rsp, 0x388
pop r13
pop r12
pop rbp
pop rbx
ret
lea r8, [rsp + 0x58]
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x3b0], rsi
mov dword [rsp + 0x58], 0x20
mov esi, ebp
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x14003cf33
mov qword [rsp + 0x380], rdi
nop
nop
mov ecx, dword [rsp + 0x6c]
lea rdx, [rsp + 0x180]
xor r9d, r9d
mov r8d, 0xc8
mov qword [rsp + 0x20], rbp
call qword [0x1400df4b0]
test eax, eax
jne 0x14003ce36
lea r8d, [rax + 0xc]
lea rdx, [0x1400b7c00]
lea rcx, [rsp + 0x180]
call fcn.14007f2bc
test eax, eax
jne 0x14003ce36
lea r8d, [rax + 1]
lea rdx, [rsp + 0x58]
xor r9d, r9d
mov rcx, rbx
mov dword [rsp + 0x28], 0x20019
mov dword [rsp + 0x20], 1
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
cmp rax, 0xffffffffffffffff
mov rdi, rax
je 0x14003ce2a
lea rcx, [rsp + 0x81]
xor edx, edx
mov r8d, 0xff
mov dword [rsp + 0x44], 1
mov dword [rsp + 0x40], 0x100
mov byte [rsp + 0x80], bpl
call fcn.14007cd30
lea r11, [rsp + 0x40]
lea rax, [rsp + 0x80]
mov qword [rsp + 0x28], r11
lea r9, [rsp + 0x44]
lea rdx, [0x1400b7bf8]
xor r8d, r8d
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14003ce1f
lea rdx, [rsp + 0x80]
mov rcx, r13
call fcn.14007ea64
test rax, rax
jne 0x14003ce56
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14003ce36
lea rcx, str.GetLocationInformation:_SetupDiOpenDevRegKey_function_fails_n
call fcn.14000cbb0
add esi, 1
lea r8, [rsp + 0x58]
mov rcx, rbx
mov edx, esi
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x14003cd30
jmp 0x14003cf2b
lea rax, [rsp + 0x3c0]
lea r9, [rsp + 0x3c8]
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov r8d, 0x15
mov rcx, rbx
mov dword [rsp + 0x28], 8
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x3c0], 8
mov dword [rsp + 0x3c8], ebp
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
mov r11d, dword [rsp + 0x50]
lea rax, [rsp + 0x3c0]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x3c8]
lea rdx, [rsp + 0x58]
mov r8d, 0x1c
mov rcx, rbx
mov dword [rsp + 0x28], 8
mov dword [r12], r11d
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x3c0], 8
mov dword [rsp + 0x3c8], ebp
call qword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
mov r11, qword [rsp + 0x48]
mov rcx, rdi
mov rax, r11
shr rax, 0x10
mov dword [r12 + 4], eax
movzx eax, r11w
mov dword [r12 + 8], eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, 1
mov rdi, qword [rsp + 0x380]
mov rcx, rbx
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov rsi, qword [rsp + 0x3b0]
mov eax, ebp
add rsp, 0x388
pop r13
pop r12
pop rbp
pop rbx
ret