Function at 0x14003b820
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r15
lea rbp, [rsp - 0x820]
sub rsp, 0x920
mov rax, qword [0x140079010]
xor rax, rsp
mov qword [rbp + 0x810], rax
call fcn.14003b4f0
xor r15d, r15d
lea r12d, [r15 + 1]
test eax, eax
jne 0x14003b9d9
xor r8d, r8d
mov dword [rsp + 0x44], r15d
xor edx, edx
lea rcx, [rsp + 0x44]
mov edi, r15d
call qword [sym.imp.api_ms_win_devices_config_l1_1_1.dll_CM_Get_Device_ID_List_SizeW]
test eax, eax
jne 0x14003b9d2
mov ebx, dword [rsp + 0x44]
add rbx, rbx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov r8, rbx
lea edx, [r15 + 8]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x14003b9d2
mov r8d, dword [rsp + 0x44]
xor r9d, r9d
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.api_ms_win_devices_config_l1_1_1.dll_CM_Get_Device_ID_ListW]
test eax, eax
jne 0x14003b9ba
mov rbx, rsi
cmp word [rsi], di
je 0x14003b9ba
mov qword [rsp + 0x940], r14
lea r14, str.HIDClass
test edi, edi
jne 0x14003b9b2
mov r8d, r12d
lea rcx, [rsp + 0x5c]
mov rdx, rbx
call qword [sym.imp.api_ms_win_devices_config_l1_1_1.dll_CM_Locate_DevNodeW]
test eax, eax
jne 0x14003b993
xor edx, edx
lea rcx, [rbp - 0x30]
mov r8d, 0x208
call fcn.1400423d0
mov ecx, dword [rsp + 0x5c]
lea rax, [rsp + 0x64]
mov dword [rsp + 0x28], r15d
lea r9, [rbp - 0x30]
lea r8, [rsp + 0x74]
mov qword [rsp + 0x20], rax
lea rdx, [0x140064928]
mov dword [rsp + 0x64], 0x208
call qword [sym.imp.api_ms_win_devices_config_l1_1_1.dll_CM_Get_DevNode_PropertyW]
test eax, eax
jne 0x14003b993
lea rdx, [rbp - 0x30]
mov rax, 0xffffffffffffffff
nop dword [rax]
movzx ecx, word [rdx + rax*2 + 2]
cmp cx, word [r14 + rax*2 + 2]
jne 0x14003b993
add rax, 2
cmp rax, 9
je 0x14003b984
movzx ecx, word [rdx + rax*2]
cmp cx, word [r14 + rax*2]
je 0x14003b960
jmp 0x14003b993
mov ecx, dword [rsp + 0x5c]
call fcn.14003b6e0
test eax, eax
cmovne edi, r12d
mov edx, 0xc8
mov rcx, rbx
call fcn.14004d7f4
lea rbx, [rbx + rax*2]
add rbx, 2
cmp word [rbx], r15w
jne 0x14003b8e7
mov r14, qword [rsp + 0x940]
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
test edi, edi
jne 0x14003b9d9
mov dword [0x140079a70], r15d
xor edx, edx
mov qword [rsp + 0x50], r15
lea rcx, [rsp + 0x50]
mov ebx, r15d
call fcn.140031c50
test eax, eax
je 0x14003ba4b
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x78]
lea rax, [rsp + 0x6c]
mov dword [rsp + 0x68], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.DeviceTouchpad
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14003ba34
mov edi, dword [rsp + 0x6c]
mov esi, r12d
jmp 0x14003ba3b
mov edi, dword [rsp + 0x40]
mov esi, r15d
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test esi, esi
cmovne ebx, edi
mov eax, dword [0x140079a70]
cmp eax, ebx
je 0x14003ba69
mov edx, eax
lea rcx, str.DeviceTouchpad
call fcn.1400320f0
mov eax, dword [0x140079a70]
cmp eax, 6
jne 0x14003bdf2
xor edx, edx
lea rcx, [rbp + 0x1e0]
mov r8d, 0x208
call fcn.1400423d0
mov edx, 0x104
lea rcx, [rbp + 0x1e0]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW]
test eax, eax
je 0x14003bb2e
xor edx, edx
lea rcx, [rbp + 0x3f0]
mov r8d, 0x208
call fcn.1400423d0
lea r9, [rbp + 0x1e0]
mov edx, 0x104
lea r8, str._sElanPointStickAPI.dll
lea rcx, [rbp + 0x3f0]
call fcn.14000a160
mov qword [rsp + 0x30], r15
lea rcx, [rbp + 0x3f0]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
xor edx, edx
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x14003bb2e
mov rcx, rax
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov ecx, dword [0x7ffe02d8]
cmp ecx, 0xffffffff
je 0x14003bb45
xor r9d, r9d
mov dword [rsp + 0x20], r15d
xor r8d, r8d
lea edx, [r9 + 4]
call fcn.14003d1c0
jmp 0x14003bb45
call fcn.14003be20
test eax, eax
je 0x14003bb45
xor edx, edx
lea rcx, str.DeviceTrackPoint
call fcn.1400320f0
movaps xmm0, xmmword [str.745a17a0_74d3_11d0_b6fe_00a0c90f57da]
lea rdx, [rbp - 0x80]
movaps xmm1, xmmword [0x140068850]
lea rcx, [rsp + 0x48]
mov eax, dword [0x140068888]
mov r8d, 0x300
movaps xmmword [rbp - 0x80], xmm0
mov edi, r15d
movaps xmm0, xmmword [0x140068860]
movaps xmmword [rbp - 0x60], xmm0
movsd xmm0, qword [0x140068880]
movaps xmmword [rbp - 0x70], xmm1
movaps xmm1, xmmword [0x140068870]
mov dword [rbp - 0x38], eax
movzx eax, word [0x14006888c]
movsd qword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x50], xmm1
mov word [rbp - 0x34], ax
mov dword [rsp + 0x48], r15d
call qword [sym.imp.api_ms_win_devices_config_l1_1_1.dll_CM_Get_Device_ID_List_SizeW]
test eax, eax
jne 0x14003bcd3
mov ebx, dword [rsp + 0x48]
add rbx, rbx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov r8, rbx
mov edx, 8
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x14003bcd3
mov r8d, dword [rsp + 0x48]
lea rcx, [rbp - 0x80]
mov r9d, 0x300
mov rdx, rax
call qword [sym.imp.api_ms_win_devices_config_l1_1_1.dll_CM_Get_Device_ID_ListW]
test eax, eax
jne 0x14003bcbf
mov rbx, rsi
cmp word [rsi], di
je 0x14003bcbf
nop dword [rax]
test edi, edi
jne 0x14003bcbf
xor r8d, r8d
lea rcx, [rsp + 0x60]
mov rdx, rbx
call qword [sym.imp.api_ms_win_devices_config_l1_1_1.dll_CM_Locate_DevNodeW]
test eax, eax
jne 0x14003bca0
xor edx, edx
lea rcx, [rbp + 0x600]
mov r8d, 0x208
call fcn.1400423d0
mov ecx, dword [rsp + 0x60]
lea rax, [rsp + 0x70]
mov dword [rsp + 0x28], r15d
lea r9, [rbp + 0x600]
lea r8, [rsp + 0x7c]
mov qword [rsp + 0x20], rax
lea rdx, [0x14006cd80]
mov dword [rsp + 0x70], 0x208
call qword [sym.imp.api_ms_win_devices_config_l1_1_1.dll_CM_Get_DevNode_PropertyW]
test eax, eax
jne 0x14003bca0
lea rdx, str.Seamless
lea rcx, [rbp + 0x600]
call fcn.140041f04
test rax, rax
je 0x14003bca0
mov ecx, dword [rsp + 0x60]
call fcn.14003b6e0
test eax, eax
cmovne edi, r12d
mov edx, 0xc8
mov rcx, rbx
call fcn.14004d7f4
lea rbx, [rbx + rax*2]
add rbx, 2
cmp word [rbx], r15w
jne 0x14003bc10
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
mov dword [0x14007cb7c], edi
call fcn.14002af30
test eax, eax
jne 0x14003bdf2
mov qword [rsp + 0x30], r15
lea r8d, [rax + 3]
mov dword [rsp + 0x28], r15d
lea rcx, str..AsusTPPC
xor r9d, r9d
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14003bdf2
mov rcx, qword [0x140079b70]
lea rdi, [0x140079b70]
cmp rcx, rdi
je 0x14003bd51
test byte [rcx + 0x1c], 4
je 0x14003bd51
mov rcx, qword [rcx + 0x10]
lea rax, str.AsusTPPC_device_is_existing
mov edx, 0xa
mov qword [rsp + 0x20], rax
call fcn.14003f070
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov dword [rsp + 0x58], r15d
mov ecx, dword [0x7ffe02d8]
cmp ecx, 0xffffffff
je 0x14003bdf2
xor r9d, r9d
mov dword [rsp + 0x20], r15d
lea r8, [rsp + 0x58]
lea edx, [r9 + 0x17]
call fcn.14003d1c0
mov r8d, dword [rsp + 0x58]
cmp r8d, 0x90
jbe 0x14003bdf2
mov rcx, qword [0x140079b70]
cmp rcx, rdi
je 0x14003bdc9
test byte [rcx + 0x1c], 4
je 0x14003bdc9
mov rcx, qword [rcx + 0x10]
lea rax, str.Touchpad_Feature_ExitCode
mov dword [rsp + 0x28], r8d
mov edx, 0xc
mov qword [rsp + 0x20], rax
call fcn.14003f100
mov r8d, dword [rsp + 0x58]
mov eax, r8d
and eax, r12d
mov dword [0x14007cb78], eax
mov eax, r8d
shr eax, 2
and eax, r12d
shr r8d, 3
and r8d, r12d
mov dword [0x14007cb74], eax
mov dword [0x14007cb70], r8d
mov rcx, qword [rbp + 0x810]
xor rcx, rsp
call fcn.1400406e0
lea r11, [rsp + 0x920]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r12
pop rbp
ret