Function at 0x14000d6b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov dword [rsp + 0x44], 0
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x30], 0
cmp dword [0x140038018], 0
jne 0x14000d6e9
mov dword [rsp + 0x54], 0
jmp 0x14000d733
lea rcx, [0x14002e6f0]
call fcn.140005070
test eax, eax
je 0x14000d723
mov r8, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
lea rcx, str.Entry____pDriverType:_x__pbFirstTimeLogitech:_x_
call fcn.140004d20
test eax, eax
je 0x14000d723
mov dword [rsp + 0x58], 1
jmp 0x14000d72b
mov dword [rsp + 0x58], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x38], 0
movsxd r10, dword [rsp + 0x38]
lea rcx, [0x14002e6d8]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [0x14002e740]
mov rcx, qword [rcx + r10*8]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x14000d784
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x44], 0
jmp 0x14000d894
mov dword [rsp + 0x50], 4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x3c]
xor r8d, r8d
lea rdx, [0x14002e758]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x14000d7d0
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x44], 0
jmp 0x14000d840
lea rcx, [0x14002e768]
call fcn.140005070
test eax, eax
je 0x14000d7fb
mov r9d, dword [rsp + 0x44]
mov r8d, dword [rsp + 0x44]
lea rdx, str.SetupMouseCohabitation___GLOBAL_DriverType:_d__0x_X_._n
mov ecx, 0x10
call fcn.1400048a0
cmp dword [rsp + 0x3c], 4
je 0x14000d840
lea rcx, [0x14002e7b8]
call fcn.140005070
test eax, eax
je 0x14000d83e
lea rax, str.dwDataType__REG_DWORD
mov qword [rsp + 0x20], rax
mov r9d, 0x7ce
lea r8, [0x14002e7e8]
lea rdx, [0x14002e7f8]
lea rcx, [0x14002e810]
call fcn.140004c80
xor eax, eax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
je 0x14000d894
lea rcx, [0x14002e830]
call fcn.140005070
test eax, eax
je 0x14000d892
lea rax, [0x14002e848]
mov qword [rsp + 0x20], rax
mov r9d, 0x7d2
lea r8, [0x14002e868]
lea rdx, [0x14002e878]
lea rcx, [0x14002e890]
call fcn.140004c80
xor eax, eax
mov eax, dword [rsp + 0x38]
add eax, 1
mov dword [rsp + 0x38], eax
movsxd rax, dword [rsp + 0x38]
cmp rax, 3
jae 0x14000d8c8
movsxd rcx, dword [rsp + 0x38]
lea rax, [0x14002e6d8]
cmp qword [rax + rcx*8], 0
je 0x14000d8c8
cmp dword [rsp + 0x30], 0
jne 0x14000d73b
cmp qword [rsp + 0x88], 0
je 0x14000d8f1
mov rcx, qword [rsp + 0x88]
mov eax, dword [rsp + 0x30]
mov dword [rcx], eax
cmp dword [rsp + 0x30], 0
je 0x14000d8f1
mov ecx, dword [rsp + 0x44]
call fcn.14000d970
cmp qword [rsp + 0x80], 0
je 0x14000d90a
mov rcx, qword [rsp + 0x80]
mov eax, dword [rsp + 0x44]
mov dword [rcx], eax
cmp dword [0x140038018], 0
jne 0x14000d91d
mov dword [rsp + 0x5c], 0
jmp 0x14000d960
lea rcx, str.WndGetDriverType
call fcn.140005070
test eax, eax
je 0x14000d950
mov r8d, dword [rsp + 0x30]
mov edx, dword [rsp + 0x44]
lea rcx, str.Exit__DriverTypeValue:_d__FirstTime:_d__
call fcn.140004d20
test eax, eax
je 0x14000d950
mov dword [rsp + 0x60], 1
jmp 0x14000d958
mov dword [rsp + 0x60], 0
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x5c], eax
mov eax, 1
add rsp, 0x78
ret