Function at 0x14002ecd0
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 [0x140067010]
xor rax, rsp
mov qword [rbp + 0x810], rax
call fcn.14002e9a0
xor r15d, r15d
lea r12d, [r15 + 1]
test eax, eax
jne 0x14002ee89
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 0x14002ee82
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 0x14002ee82
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 0x14002ee6a
mov rbx, rsi
cmp word [rsi], di
je 0x14002ee6a
mov qword [rsp + 0x940], r14
lea r14, str.HIDClass
test edi, edi
jne 0x14002ee62
mov r8d, r12d
lea rcx, [rsp + 0x58]
mov rdx, rbx
call qword [sym.imp.api_ms_win_devices_config_l1_1_1.dll_CM_Locate_DevNodeW]
test eax, eax
jne 0x14002ee43
xor edx, edx
lea rcx, [rbp - 0x30]
mov r8d, 0x208
call fcn.140034ac0
mov ecx, dword [rsp + 0x58]
lea rax, [rsp + 0x64]
mov dword [rsp + 0x28], r15d
lea r9, [rbp - 0x30]
lea r8, [rsp + 0x74]
mov qword [rsp + 0x20], rax
lea rdx, [0x14005cfc8]
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 0x14002ee43
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 0x14002ee43
add rax, 2
cmp rax, 9
je 0x14002ee34
movzx ecx, word [rdx + rax*2]
cmp cx, word [r14 + rax*2]
je 0x14002ee10
jmp 0x14002ee43
mov ecx, dword [rsp + 0x58]
call fcn.14002eb90
test eax, eax
cmovne edi, r12d
mov edx, 0xc8
mov rcx, rbx
call fcn.14003fee4
lea rbx, [rbx + rax*2]
add rbx, 2
cmp word [rbx], r15w
jne 0x14002ed97
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 0x14002ee89
mov dword [0x140067a10], r15d
xor edx, edx
mov qword [rsp + 0x50], r15
lea rcx, [rsp + 0x50]
mov ebx, r15d
call fcn.140027750
test eax, eax
je 0x14002eefb
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 0x14002eee4
mov edi, dword [rsp + 0x6c]
mov esi, r12d
jmp 0x14002eeeb
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 [0x140067a10]
cmp eax, ebx
je 0x14002ef19
mov edx, eax
lea rcx, str.DeviceTouchpad
call fcn.140027c20
mov eax, dword [0x140067a10]
cmp eax, 6
jne 0x14002f247
xor edx, edx
lea rcx, [rbp + 0x1e0]
mov r8d, 0x208
call fcn.140034ac0
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 0x14002efd9
xor edx, edx
lea rcx, [rbp + 0x3f0]
mov r8d, 0x208
call fcn.140034ac0
lea r9, [rbp + 0x1e0]
mov edx, 0x104
lea r8, str._sElanPointStickAPI.dll
lea rcx, [rbp + 0x3f0]
call fcn.140009eb0
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 0x14002efd9
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 0x14002eff0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
call fcn.140030410
jmp 0x14002eff0
call fcn.14002f280
test eax, eax
je 0x14002eff0
xor edx, edx
lea rcx, str.DeviceTrackPoint
call fcn.140027c20
movaps xmm0, xmmword [str.745a17a0_74d3_11d0_b6fe_00a0c90f57da]
lea rdx, [rbp - 0x80]
movaps xmm1, xmmword [0x14005cf00]
lea rcx, [rsp + 0x48]
mov eax, dword [0x14005cf38]
mov r8d, 0x300
movaps xmmword [rbp - 0x80], xmm0
mov edi, r15d
movaps xmm0, xmmword [0x14005cf10]
movaps xmmword [rbp - 0x60], xmm0
movsd xmm0, qword [0x14005cf30]
movaps xmmword [rbp - 0x70], xmm1
movaps xmm1, xmmword [0x14005cf20]
mov dword [rbp - 0x38], eax
movzx eax, word [0x14005cf3c]
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 0x14002f17b
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 0x14002f17b
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 0x14002f167
mov rbx, rsi
cmp word [rsi], di
je 0x14002f167
test edi, edi
jne 0x14002f167
xor r8d, r8d
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 0x14002f148
xor edx, edx
lea rcx, [rbp + 0x600]
mov r8d, 0x208
call fcn.140034ac0
mov ecx, dword [rsp + 0x5c]
lea rax, [rsp + 0x70]
mov dword [rsp + 0x28], r15d
lea r9, [rbp + 0x600]
lea r8, [rsp + 0x7c]
mov qword [rsp + 0x20], rax
lea rdx, [0x14005cf98]
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 0x14002f148
lea rdx, str.Seamless
lea rcx, [rbp + 0x600]
call fcn.14003469c
test rax, rax
je 0x14002f148
mov ecx, dword [rsp + 0x5c]
call fcn.14002eb90
test eax, eax
cmovne edi, r12d
mov edx, 0xc8
mov rcx, rbx
call fcn.14003fee4
lea rbx, [rbx + rax*2]
add rbx, 2
cmp word [rbx], r15w
jne 0x14002f0b8
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 [0x14006a97c], edi
call fcn.1400221e0
test eax, eax
jne 0x14002f247
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 0x14002f247
mov rcx, qword [0x140067b00]
lea rax, [0x140067b00]
cmp rcx, rax
je 0x14002f1f9
test byte [rcx + 0x1c], 4
je 0x14002f1f9
mov rcx, qword [rcx + 0x10]
lea rax, str.AsusTPPC_device_is_existing
mov edx, 0xa
mov qword [rsp + 0x20], rax
call fcn.140031fc0
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov dword [rsp + 0x60], r15d
mov ecx, dword [0x7ffe02d8]
cmp ecx, 0xffffffff
je 0x14002f247
xor r9d, r9d
lea r8, [rsp + 0x60]
lea edx, [r9 + 0x17]
call fcn.140030410
mov ecx, dword [rsp + 0x60]
cmp ecx, 0x90
jbe 0x14002f247
mov eax, ecx
shr ecx, 2
and eax, r12d
and ecx, r12d
mov dword [0x14006a978], eax
mov dword [0x14006a974], ecx
mov rcx, qword [rbp + 0x810]
xor rcx, rsp
call fcn.140032e60
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