Function at 0x140004c90
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, [0x14002c060]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140004f90
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 0x140004d30
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 0x140004d7c
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 0x140004dc8
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 0x140004e16
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 0x140004e62
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 0x140004f81
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 0x140004f81
cmp edi, 0xffffffff
je 0x140004edc
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 0x140004f0f
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 0x140004f44
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 0x140004f77
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]
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