Function at 0x140004be0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbp
push rbx
mov rbp, rsp
sub rsp, 0x58
lea rax, [rbp + 0x30]
xor ebx, ebx
mov r9d, 0x20019
mov qword [rbp + 0x30], rbx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x14002c050]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140004f12
mov rcx, qword [rbp + 0x30]
lea rax, [rbp + 0x28]
mov qword [rsp + 0x50], rsi
lea r9, [rbp + 0x18]
mov qword [rsp + 0x28], rax
lea rdx, str.PTP_Curtain_Overwrite_Enable
mov qword [rsp + 0x48], rdi
lea rax, [rbp + 0x20]
mov qword [rsp + 0x40], r14
xor r8d, r8d
mov qword [rsp + 0x38], r15
mov r15d, 0xffffffff
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x20], ebx
mov dword [rbp + 0x18], 4
mov dword [rbp + 0x28], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140004c80
cmp dword [rbp + 0x18], 4
cmove r15d, dword [rbp + 0x20]
mov rcx, qword [rbp + 0x30]
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x18]
lea rax, [rbp + 0x20]
mov dword [rbp + 0x20], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.PTP_Curtain_Overwrite_AAPNonCurtainTop
mov dword [rbp + 0x18], 4
mov edi, 0xffffffff
mov dword [rbp + 0x28], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140004ccc
cmp dword [rbp + 0x18], 4
cmove edi, dword [rbp + 0x20]
mov rcx, qword [rbp + 0x30]
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x18]
lea rax, [rbp + 0x20]
mov dword [rbp + 0x20], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.PTP_Curtain_Overwrite_AAPNonCurtainBaseWidth
mov dword [rbp + 0x18], 4
mov esi, 0xffffffff
mov dword [rbp + 0x28], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140004d18
cmp dword [rbp + 0x18], 4
cmove esi, dword [rbp + 0x20]
mov rcx, qword [rbp + 0x30]
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x18]
lea rax, [rbp + 0x20]
mov dword [rbp + 0x20], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.PTP_Curtain_Overwrite_HorizontalOffset
mov dword [rbp + 0x18], 4
mov r14d, 0xffffffff
mov dword [rbp + 0x28], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140004d66
cmp dword [rbp + 0x18], 4
cmove r14d, dword [rbp + 0x20]
mov rcx, qword [rbp + 0x30]
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x18]
lea rax, [rbp + 0x20]
mov dword [rbp + 0x20], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.PTP_Curtain_Overwrite_HorizontalOffsetIsNeg
mov dword [rbp + 0x18], 4
mov ebx, 0xffffffff
mov dword [rbp + 0x28], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140004db2
cmp dword [rbp + 0x18], 4
cmove ebx, dword [rbp + 0x20]
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp r15d, 1
mov r15, qword [rsp + 0x38]
jne 0x140004f03
lea rax, [rbp + 0x30]
mov r9d, 0x2001f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionPrecisionTouchPad
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140004f03
cmp edi, 0xffffffff
je 0x140004e2c
mov rcx, qword [rbp + 0x30]
lea rax, [rbp + 0x18]
mov dword [rsp + 0x28], 4
lea rdx, str.AAPNonCurtainTop
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x18], edi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp esi, 0xffffffff
je 0x140004e5f
mov rcx, qword [rbp + 0x30]
lea rax, [rbp + 0x18]
mov dword [rsp + 0x28], 4
lea rdx, str.AAPNonCurtainBaseWidth
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x18], esi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp r14d, 0xffffffff
je 0x140004e94
mov rcx, qword [rbp + 0x30]
lea rax, [rbp + 0x18]
mov dword [rsp + 0x28], 4
lea rdx, str.HorizontalOffset
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x18], r14d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp ebx, 0xffffffff
je 0x140004ec7
mov rcx, qword [rbp + 0x30]
lea rax, [rbp + 0x18]
mov dword [rsp + 0x28], 4
lea rdx, str.HorizontalOffsetIsNeg
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x18], ebx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x30]
lea rax, [rbp + 0x18]
mov dword [rsp + 0x28], 4
lea rdx, str.SpaceBarOffset
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x18], 0x3e8
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov r14, qword [rsp + 0x40]
add rsp, 0x58
pop rbx
pop rbp
ret