Function at 0x14003be20
Capabilities:
Query environment variable
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x25a0]
mov eax, 0x26a0
call fcn.1400e75d0
sub rsp, rax
mov qword [rbp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x26e0], rbx
movsxd r13, edx
cmp r13d, 9
ja 0x14003caa1
lea rcx, str.D9AC5E73_BB10_467b_B884_AA1E475C51F5
lea rdi, [rcx + r13*8]
mov qword [rbp - 0x20], rdi
mov rcx, qword [rdi]
call fcn.14003b700
xor esi, esi
mov word [rbp + 0x4a0], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x4a2]
call fcn.1400e5ee0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
mov r8d, 0x104
lea rdx, [rbp + 0x4a0]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [rsi + 0x5c]
lea rcx, [rbp + 0x4a0]
call fcn.1400e7e80
test rax, rax
je 0x14003bec7
mov word [rax], si
mov word [rbp + 0x1940], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x1942]
call fcn.1400e5ee0
lea r9, str.SynTPCpl.dll
lea r8, [rbp + 0x4a0]
lea rdx, [0x14012c0f8]
lea rcx, [rbp + 0x1940]
call fcn.1400e7a5c
mov word [rbp + 0x6b0], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x6b2]
call fcn.1400e5ee0
mov r9d, r13d
mov r8, qword [str.SynTPCpl]
lea rdx, str._s_d
lea rcx, [rbp + 0x6b0]
call fcn.1400e7a5c
mov word [rbp + 0xef0], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0xef2]
call fcn.1400e5ee0
lea r8, [rbp + 0x6b0]
lea rdx, str.Synaptics._s
lea rcx, [rbp + 0xef0]
call fcn.1400e7a5c
mov word [rbp + 0x8c0], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x8c2]
call fcn.1400e5ee0
mov r9d, r13d
lea r8, [rbp + 0x1940]
lea rdx, str.rundll32.exe___s__ShowDevicePropPage__d
lea rcx, [rbp + 0x8c0]
call fcn.1400e7a5c
mov word [rbp + 0x2390], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x2392]
call fcn.1400e5ee0
lea r8, [rbp + 0x4a0]
lea rdx, str.__sSynTPEnh.exe___PROFILES
lea rcx, [rbp + 0x2390]
call fcn.1400e7a5c
lea rdx, str.SynCom.PointingDevice
lea rcx, [rbp - 0x78]
call fcn.14002e400
lea r15, vtable.CDummySynDevice.0
mov qword [rbp - 0x60], r15
mov dword [rbp - 0x58], esi
mov qword [rbp - 0x68], rsi
lea rax, vtable.SynDeviceEx.0
mov qword [rbp - 0x80], rax
lea rax, vtable.SynDeviceEx.1.0
mov qword [rbp - 0x70], rax
or r14, 0xffffffffffffffff
mov dword [rbp - 0x50], r14d
mov dword [rbp - 0x4c], esi
lea rcx, [rbp - 0x60]
mov rax, qword [rbp - 0x78]
test rax, rax
cmovne rcx, rax
mov rax, qword [rcx]
mov edx, r13d
call qword [rax + 0x78]
test eax, eax
jne 0x14003ca4a
lea rcx, [rbp - 0x60]
mov rax, qword [rbp - 0x78]
test rax, rax
cmovne rcx, rax
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x88]
test eax, eax
jne 0x14003ca4a
mov dword [rbp - 0x50], r13d
lea ebx, [rax + 1]
cmp r13d, r14d
je 0x14003c11c
mov edx, esi
mov dword [rbp + 0x25f0], edx
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x14003c09b
mov rax, qword [rcx]
lea r8, [rbp + 0x25f0]
mov edx, 0x10000102
call qword [rax + 0x18]
mov edx, dword [rbp + 0x25f0]
mov eax, esi
cmp edx, 2
sete al
test eax, eax
je 0x14003c11c
xor edx, edx
lea rcx, [rbp + 0x98]
call fcn.1400ca710
nop
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
lea r8, str.SoftwareSynapticsSynTPEnh
mov rdx, 0xffffffff80000002
lea rcx, [rbp + 0x98]
call fcn.1400ca880
test eax, eax
je 0x14003c110
mov dword [rbp + 0x25f8], ebx
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea r8, [rbp + 0x25f8]
lea rdx, str.DeviceNameFormat
lea rcx, [rbp + 0xa0]
call fcn.1400e1690
test eax, eax
cmovne ebx, dword [rbp + 0x25f8]
lea rcx, [rbp + 0x98]
call fcn.1400ca820
mov r8d, ebx
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x80]
call fcn.1400d3670
nop
xor edx, edx
lea rcx, [rbp + 0x68]
call fcn.1400ca710
nop
mov dword [rbp + 0x25e8], 0x82
cmp dword [rbp - 0x50], 0xffffffff
je 0x14003c1c4
mov r8d, esi
mov dword [rsp + 0x44], esi
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x14003c16e
mov rax, qword [rcx]
lea r8, [rsp + 0x44]
mov edx, 0x10000102
call qword [rax + 0x18]
mov r8d, dword [rsp + 0x44]
mov eax, esi
cmp r8d, 2
sete al
test eax, eax
je 0x14003c1c4
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
lea r8, str.SoftwareSynapticsSynTPEnh
mov rdx, 0xffffffff80000002
lea rcx, [rbp + 0x68]
call fcn.1400ca880
test eax, eax
je 0x14003c1c4
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 0x25e8]
lea r8, [rbp + 0x25e8]
lea rdx, str.CplEntryTPIconID
lea rcx, [rbp + 0x70]
call fcn.1400e1690
mov word [rbp + 0x1310], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x1312]
call fcn.1400e5ee0
mov r9d, dword [rbp + 0x25e8]
lea r8, [rbp + 0x4a0]
lea rdx, str._sSynTPRes.dll___d
lea rcx, [rbp + 0x1310]
call fcn.1400e7a5c
mov rdx, qword [rdi]
lea rcx, [rbp + 0x1f0]
call fcn.14003cca0
nop
mov word [rbp + 0x1f70], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x1f72]
call fcn.1400e5ee0
lea r9, str.DeviceDiscoveryEnhancements
lea r8, str.SoftwareSynapticsSynTPEnh
lea rdx, [0x14012c0f8]
lea rcx, [rbp + 0x1f70]
call fcn.1400e7a5c
mov qword [rbp + 0x20], rsi
mov dword [rbp + 0x28], esi
mov qword [rbp + 0x30], rsi
mov r9d, 0x20019
lea r8, [rbp + 0x1f70]
mov rdx, 0xffffffff80000002
lea rcx, [rbp + 0x20]
call fcn.14003d2b0
mov r15d, esi
mov word [rbp + 0x1100], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x1102]
call fcn.1400e5ee0
mov dword [rsp + 0x50], 0x104
mov r12, qword [rbp + 0x20]
test r12, r12
je 0x14003c623
mov word [rbp + 0x1730], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x1732]
call fcn.1400e5ee0
mov dword [rsp + 0x4c], 0x208
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x1730]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x54]
xor r8d, r8d
lea rdx, str.Keywords
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14003c314
mov eax, dword [rsp + 0x54]
dec eax
cmp eax, 1
ja 0x14003c314
cmp dword [rsp + 0x4c], esi
jne 0x14003c314
mov word [rbp + 0x1730], si
mov word [rbp + 0x1d60], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x1d62]
call fcn.1400e5ee0
mov r9d, 0x7a7
lea r8, [rbp + 0x4a0]
lea rdx, str.__sSynTPRes.dll___d
lea rcx, [rbp + 0x1d60]
call fcn.1400e7a5c
movsxd rax, dword [rbp + 0x470]
cmp eax, 5
jge 0x14003c38d
shl rax, 7
lea rcx, [rbp + 0x1f0]
add rcx, rax
lea r9, [rbp + 0x8c0]
lea r8, [rbp + 0x1730]
lea rdx, [rbp + 0x1d60]
call fcn.14003d140
test eax, eax
jne 0x14003c38d
inc dword [rbp + 0x470]
xor r14d, r14d
lea rax, [rbp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x50]
lea r8, [rbp + 0x1100]
mov edx, r15d
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14003c619
lea rdx, str.Link
lea rcx, [rbp + 0x1100]
call fcn.1400e7f74
test rax, rax
je 0x14003c601
mov qword [rbp + 8], r14
mov dword [rbp + 0x10], r14d
mov qword [rbp + 0x18], r14
mov r9d, 0x20019
lea r8, [rbp + 0x1100]
mov rdx, r12
lea rcx, [rbp + 8]
call fcn.14003d2b0
mov rsi, qword [rbp + 8]
test eax, eax
jne 0x14003c5f3
mov word [rbp + 0xce0], r14w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0xce2]
call fcn.1400e5ee0
mov word [rbp + 0x1520], r14w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x1522]
call fcn.1400e5ee0
mov dword [rsp + 0x40], 0x208
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xce0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x5c]
xor r8d, r8d
lea rdx, str.Command
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x14003c4c7
mov eax, dword [rsp + 0x5c]
dec eax
cmp eax, 1
jbe 0x14003c49b
mov edi, 0xd
jmp 0x14003c4c7
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x14003c4bc
test al, 1
jne 0x14003c4b5
shr rax, 1
cmp word [rbp + rax*2 + 0xcde], 0
je 0x14003c4c4
mov edi, 0xd
jmp 0x14003c4c7
mov word [rbp + 0xce0], r14w
mov edi, r14d
mov dword [rsp + 0x48], 0x208
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x1520]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
xor r8d, r8d
lea rdx, str.Name
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x14003c541
mov eax, dword [rsp + 0x58]
dec eax
cmp eax, 1
jbe 0x14003c515
mov ebx, 0xd
jmp 0x14003c541
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x14003c536
test al, 1
jne 0x14003c52f
shr rax, 1
cmp word [rbp + rax*2 + 0x151e], 0
je 0x14003c53e
mov ebx, 0xd
jmp 0x14003c541
mov word [rbp + 0x1520], r14w
mov ebx, r14d
mov word [rbp + 0x2180], r14w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x2182]
call fcn.1400e5ee0
mov word [rbp + 0x1b50], r14w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x1b52]
call fcn.1400e5ee0
mov r8d, 0x104
lea rdx, [rbp + 0x2180]
lea rcx, [rbp + 0xce0]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov r8d, 0x104
lea rdx, [rbp + 0x1b50]
lea rcx, [rbp + 0x1520]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test edi, edi
jne 0x14003c5f3
test ebx, ebx
jne 0x14003c5f3
movsxd rax, dword [rbp + 0x470]
cmp eax, 5
jge 0x14003c5f3
shl rax, 7
lea rcx, [rbp + 0x1f0]
add rcx, rax
lea r9, [rbp + 0x2180]
lea r8, [rbp + 0x1730]
lea rdx, [rbp + 0x1b50]
call fcn.14003d140
test eax, eax
jne 0x14003c5f3
inc dword [rbp + 0x470]
test rsi, rsi
je 0x14003c601
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc r15d
mov word [rbp + 0x1100], r14w
mov dword [rsp + 0x50], 0x104
jmp 0x14003c390
or r14, 0xffffffffffffffff
mov rdi, qword [rbp - 0x20]
xor esi, esi
mov word [rbp + 0xad0], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0xad2]
call fcn.1400e5ee0
mov r9d, r13d
mov r8, qword [str.SynTPCpl]
lea rdx, str._s_d.xml
lea rcx, [rbp + 0xad0]
call fcn.1400e7a5c
mov qword [rbp - 0x28], 7
mov qword [rbp - 0x30], rsi
mov word [rbp - 0x40], si
movzx eax, word [str.SynapticsSynTP_]
neg ax
sbb r8, r8
and r8d, 0x11
lea rdx, str.SynapticsSynTP_
lea rcx, [rbp - 0x40]
call fcn.140007750
nop
lea rcx, [rbp + 0x38]
call fcn.1400dd0f0
nop
lea r8, [rbp - 0x40]
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.14003caf0
nop
cmp qword [rbp + 0x50], 8
jb 0x14003c6b9
mov rcx, qword [rbp + 0x38]
call fcn.1400e5d14
mov qword [rbp + 0x50], 7
mov qword [rbp + 0x48], rsi
mov word [rbp + 0x38], si
cmp qword [rbp - 0x28], 8
jb 0x14003c6d9
mov rcx, qword [rbp - 0x40]
call fcn.1400e5d14
mov qword [rbp - 0x28], 7
mov qword [rbp - 0x30], rsi
mov word [rbp - 0x40], si
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rdx, qword [rsp + 0x60]
mov qword [rbp], 7
mov qword [rbp - 8], rsi
mov word [rbp - 0x18], si
cmp word [rdx], 0
jne 0x14003c715
mov r8, rsi
jmp 0x14003c72b
mov r8, r14
nop dword [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x14003c720
lea rcx, [rbp - 0x18]
call fcn.140007750
nop
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x18]
call fcn.1400dbe20
test eax, eax
sete bl
cmp qword [rbp], 8
jb 0x14003c758
mov rcx, qword [rbp - 0x18]
call fcn.1400e5d14
test bl, bl
je 0x14003c762
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp word [rbp + 0xad0], 0
jne 0x14003c771
mov r8, rsi
jmp 0x14003c78b
lea rax, [rbp + 0xad0]
mov r8, r14
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x14003c780
lea rdx, [rbp + 0xad0]
lea rcx, [rsp + 0x60]
call fcn.14000c500
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rdx, qword [rsp + 0x60]
lea rcx, [rbp + 0x1f0]
call fcn.14003b7e0
lea rcx, [rbp + 0xd0]
call fcn.14003cbd0
nop
cmp word [rbp + 0xef0], 0
jne 0x14003c7d5
mov r8, rsi
jmp 0x14003c7eb
lea rax, [rbp + 0xef0]
mov r8, r14
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x14003c7e0
lea rdx, [rbp + 0xef0]
lea rcx, [rbp + 0x150]
call fcn.140007750
mov rdx, qword [0x1401f1b08]
cmp word [rdx], 0
jne 0x14003c810
mov r8, rsi
jmp 0x14003c81e
mov r8, r14
inc r8
cmp word [rdx + r8*2], 0
jne 0x14003c813
lea rcx, [rbp + 0x170]
call fcn.140007750
cmp word [rbp + 0x8c0], 0
jne 0x14003c839
mov r8, rsi
jmp 0x14003c84e
lea rax, [rbp + 0x8c0]
mov r8, r14
inc r8
cmp word [rax + r8*2], 0
jne 0x14003c843
lea rdx, [rbp + 0x8c0]
lea rcx, [rbp + 0x1b0]
call fcn.140007750
cmp word [rbp + 0x6b0], 0
jne 0x14003c870
mov r8, rsi
jmp 0x14003c88b
lea rax, [rbp + 0x6b0]
mov r8, r14
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x14003c880
lea rdx, [rbp + 0x6b0]
lea rcx, [rbp + 0xf0]
call fcn.140007750
mov rdx, qword [rdi]
cmp word [rdx], 0
jne 0x14003c8ac
mov r8, rsi
jmp 0x14003c8bb
mov r8, r14
nop
inc r8
cmp word [rdx + r8*2], 0
jne 0x14003c8b0
lea rcx, [rbp + 0xd0]
call fcn.140007750
cmp word [rbp + 0x1310], 0
jne 0x14003c8d6
mov r8, rsi
jmp 0x14003c8eb
lea rax, [rbp + 0x1310]
mov r8, r14
inc r8
cmp word [rax + r8*2], 0
jne 0x14003c8e0
lea rdx, [rbp + 0x1310]
lea rcx, [rbp + 0x1d0]
call fcn.140007750
xor r8d, r8d
lea rdx, [0x1401246c4]
lea rcx, [rbp + 0x130]
call fcn.140007750
mov rdx, qword [rbp - 0x48]
cmp word [rdx], 0
jne 0x14003c923
mov r8, rsi
jmp 0x14003c93b
mov r8, r14
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x14003c930
lea rcx, [rbp + 0x110]
call fcn.140007750
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rdx, qword [rsp + 0x60]
cmp word [rdx], 0
jne 0x14003c963
mov r8, rsi
jmp 0x14003c97b
mov r8, r14
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x14003c970
lea rcx, [rbp + 0x190]
call fcn.140007750
lea rcx, [rbp + 0xd0]
call fcn.14003b090
mov ebx, eax
lea rcx, [rbp + 0xd0]
call fcn.14003cde0
nop
cmp qword [rsp + 0x78], 8
jb 0x14003c9b4
mov rcx, qword [rsp + 0x60]
call fcn.1400e5d14
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], rsi
mov word [rsp + 0x60], si
test r12, r12
je 0x14003c9d6
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp qword [rbp + 0x490], 8
jb 0x14003c9ec
mov rcx, qword [rbp + 0x478]
call fcn.1400e5d14
mov qword [rbp + 0x490], 7
mov qword [rbp + 0x488], rsi
mov word [rbp + 0x478], si
lea r9, [0x14003cd40]
mov edx, 0x80
lea r8d, [rdx - 0x7b]
lea rcx, [rbp + 0x1f0]
call fcn.1400e7144
nop
lea rcx, [rbp + 0x68]
call fcn.1400ca820
nop
mov rdx, qword [rbp - 0x48]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r14d
dec r14d
jg 0x14003ca4f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x14003ca4f
mov ebx, r14d
jmp 0x14003ca56
lea r15, vtable.CDummySynDevice.0
lea rax, vtable.SynDevice.0
mov qword [rbp - 0x80], rax
lea rax, vtable.SynDevice.1.0
mov qword [rbp - 0x70], rax
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x14003ca7f
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rbp - 0x68], rsi
mov qword [rbp - 0x60], r15
lea rax, vtable.SynWrapEvents_class_SynDevice__struct_ISynDevice__struct__ISynDeviceEvents_.0
mov qword [rbp - 0x80], rax
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x14003ca9d
mov rax, qword [rcx]
call qword [rax + 0x10]
mov eax, ebx
jmp 0x14003caa5
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x26e0]
add rsp, 0x26a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret