Function at 0x140005560
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov qword [rbp - 0x29], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14007ca30]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rsi, rcx
mov qword [rbp - 0x11], rcx
mov dword [rbp - 0x21], 0x104
mov eax, 0x5c
mov word [rbp - 9], ax
lea rdx, [rbp - 9]
call fcn.14000bd60
lea r8, [rax + 1]
lea rdx, [rbp - 1]
mov rcx, rsi
call fcn.1400098f0
nop
mov r9d, 0x26
lea rdx, str.4D36E96F_E325_11CE_BFC1_08002BE10318
mov rcx, rsi
call fcn.14000bc40
mov edx, 0x10000000
cmp rax, 0xffffffffffffffff
lea rcx, [0x1400607b8]
jne 0x1400055f8
lea rcx, [0x1400607a8]
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenClassRegKey]
mov r14, rax
test rax, rax
jne 0x14000566d
cmp qword [rbp + 0x1f], 8
jb 0x140005616
mov rcx, qword [rbp + 7]
call fcn.140020fe0
mov qword [rbp + 0x1f], 7
xor edi, edi
mov qword [rbp + 0x17], rdi
mov word [rbp + 7], di
mov rcx, qword [rbp - 1]
test rcx, rcx
je 0x14000592d
lea edx, [rdi + 3]
lea rcx, [rbp - 9]
call fcn.140016a10
mov rdx, qword [rbp - 1]
cmp qword [rdx + 8], rdi
je 0x14000591c
nop
mov rax, qword [rdx + 8]
mov qword [rax], rdi
mov rax, qword [rdx + 8]
mov rcx, qword [rax + 8]
mov qword [rdx + 8], rcx
test rcx, rcx
jne 0x140005650
jmp 0x140005918
xor edi, edi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
lea rax, [rbp + 0x27]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1400058a8
lea rdx, [rbp + 7]
cmp qword [rbp + 0x1f], 8
cmovae rdx, qword [rbp + 7]
lea rcx, str.Joyce____cName:_s_n
call fcn.140003870
lea rdx, [rbp + 7]
cmp qword [rbp + 0x1f], 8
cmovae rdx, qword [rbp + 7]
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400058a8
lea rax, [rbp - 0x21]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.DriverDesc
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140005737
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400058a8
mov ebx, dword [rbp - 0x21]
mov eax, 2
mul rbx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400227d0
mov r15, rax
lea r8, [rbx + rbx]
xor edx, edx
mov rcx, rax
call fcn.14002ef40
lea rax, [rbp - 0x21]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
lea rdx, str.DriverDesc
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, r15
test ebx, ebx
je 0x1400057a8
call fcn.1400218a0
jmp 0x1400058a8
lea rdx, str.AlpsAlpine_GlidePoint_HID_Filter
call qword [sym.imp.SHLWAPI.dll_StrCmpW]
mov ebx, eax
lea rdx, str.AlpsAlpine_PTP_Config_Filter
mov rcx, r15
call qword [sym.imp.SHLWAPI.dll_StrCmpW]
mov r12d, eax
lea rdx, str.AlpsAlpine_PTP_Filter
mov rcx, r15
call qword [sym.imp.SHLWAPI.dll_StrCmpW]
mov r13d, eax
lea rdx, str.AlpsAlpine_Mouse_Filter
mov rcx, r15
call qword [sym.imp.SHLWAPI.dll_StrCmpW]
test ebx, ebx
je 0x140005803
test r13d, r13d
je 0x140005803
test r12d, r12d
je 0x140005803
test eax, eax
jne 0x1400058a8
mov rcx, r15
call fcn.1400218a0
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp qword [rbp + 0x1f], 8
jb 0x140005825
mov rcx, qword [rbp + 7]
call fcn.140020fe0
mov qword [rbp + 0x1f], 7
mov qword [rbp + 0x17], rdi
mov word [rbp + 7], di
mov rcx, qword [rbp - 1]
test rcx, rcx
je 0x14000588d
mov edx, 3
lea rcx, [rbp - 9]
call fcn.140016a10
mov rdx, qword [rbp - 1]
cmp qword [rdx + 8], 0
je 0x14000587c
nop word [rax + rax]
mov rax, qword [rdx + 8]
mov qword [rax], rdi
mov rax, qword [rdx + 8]
mov rcx, qword [rax + 8]
mov qword [rdx + 8], rcx
test rcx, rcx
jne 0x140005860
mov rdx, qword [rbp - 1]
mov qword [rdx + 8], rdi
lea rcx, [rbp - 9]
call fcn.140016af0
mov rcx, qword [rbp - 1]
call fcn.140020fe0
mov qword [rbp - 1], rdi
mov rcx, rsi
call fcn.140009890
mov eax, 1
jmp 0x140005973
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp qword [rbp + 0x1f], 8
jb 0x1400058c2
mov rcx, qword [rbp + 7]
call fcn.140020fe0
mov qword [rbp + 0x1f], 7
mov qword [rbp + 0x17], rdi
mov word [rbp + 7], di
mov rcx, qword [rbp - 1]
test rcx, rcx
je 0x14000592d
mov edx, 3
lea rcx, [rbp - 9]
call fcn.140016a10
mov rdx, qword [rbp - 1]
cmp qword [rdx + 8], 0
je 0x14000591c
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rdx + 8]
mov qword [rax], rdi
mov rax, qword [rdx + 8]
mov rcx, qword [rax + 8]
mov qword [rdx + 8], rcx
test rcx, rcx
jne 0x140005900
mov rdx, qword [rbp - 1]
mov qword [rdx + 8], rdi
lea rcx, [rbp - 9]
call fcn.140016af0
mov rcx, qword [rbp - 1]
call fcn.140020fe0
mov qword [rbp - 1], rdi
cmp qword [rsi + 0x20], 8
jb 0x140005946
mov rcx, qword [rsi + 8]
call fcn.140020fe0
mov qword [rsi + 0x20], 7
mov qword [rsi + 0x18], rdi
mov word [rsi + 8], di
mov rcx, rsi
call fcn.140001d30
mov rcx, qword [rsi]
call fcn.140020fe0
mov qword [rsi], rdi
mov rcx, rsi
call fcn.140001d30
xor eax, eax
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140020640
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret