Function at 0x14000da40
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x620]
sub rsp, 0x720
mov qword [rbp - 0x30], 0xfffffffffffffffe
cmp dword [0x1402262c8], 0
jne 0x14000e223
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
lea rdx, str.SoftwareElantechSmartPad
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
or edi, 0xffffffff
test eax, eax
jne 0x14000dec9
lea rdx, str.Button_Left
lea rcx, [rbp - 0x40]
call fcn.1400150a0
mov rbx, rax
mov ecx, dword [0x140227160]
mov dword [rbp + 0x640], ecx
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x640]
mov qword [rsp + 0x20], rax
lea r9d, [rdi + 5]
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rdx, qword [rbx]
sub rdx, 0x18
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14000daff
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rbp - 0x80]
mov qword [rbp + 0x648], rax
mov rcx, qword [0x140227168]
add rcx, 0xffffffffffffffe8
call fcn.1400149f0
add rax, 0x18
mov qword [rbp - 0x80], rax
lea rdx, str.Button_Left_Ex
lea rcx, [rbp + 0x40]
call fcn.1400150a0
nop
lea r8, [rbp - 0x80]
mov rdx, rax
mov rcx, qword [rsp + 0x30]
call fcn.1400084d0
lea r11, [rsp + 0x60]
mov qword [rbp + 0x648], r11
mov rcx, qword [0x140227170]
add rcx, 0xffffffffffffffe8
call fcn.1400149f0
add rax, 0x18
mov qword [rsp + 0x60], rax
lea rdx, str.Button_Left_Path
lea rcx, [rbp - 0x50]
call fcn.1400150a0
nop
lea r8, [rsp + 0x60]
mov rdx, rax
mov rcx, qword [rsp + 0x30]
call fcn.1400084d0
lea rdx, str.Button_Right
lea rcx, [rbp + 0x20]
call fcn.1400150a0
mov rbx, rax
mov ecx, dword [0x140227134]
mov dword [rbp + 0x648], ecx
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x648]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rdx, qword [rbx]
sub rdx, 0x18
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14000dbf3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rbp - 0x68]
mov qword [rbp + 0x650], rax
mov rcx, qword [0x140227138]
add rcx, 0xffffffffffffffe8
call fcn.1400149f0
add rax, 0x18
mov qword [rbp - 0x68], rax
lea rdx, str.Button_Right_Ex
lea rcx, [rbp - 0x20]
call fcn.1400150a0
nop
lea r8, [rbp - 0x68]
mov rdx, rax
mov rcx, qword [rsp + 0x30]
call fcn.1400084d0
lea r11, [rsp + 0x48]
mov qword [rbp + 0x650], r11
mov rcx, qword [0x140227140]
add rcx, 0xffffffffffffffe8
call fcn.1400149f0
add rax, 0x18
mov qword [rsp + 0x48], rax
lea rdx, str.Button_Right_Path
lea rcx, [rbp + 0x38]
call fcn.1400150a0
nop
lea r8, [rsp + 0x48]
mov rdx, rax
mov rcx, qword [rsp + 0x30]
call fcn.1400084d0
lea rdx, str.ClickPad_LeftCorner_Click_Path
lea rcx, [rbp - 0x10]
call fcn.1400150a0
mov r8, rax
mov rdx, qword [rsp + 0x30]
lea rcx, [rbp - 0x58]
call fcn.1400086f0
nop
lea rdx, str.ClickPad_RightCorner_Click_Path
lea rcx, [rbp + 0x30]
call fcn.1400150a0
mov r8, rax
mov rdx, qword [rsp + 0x30]
lea rcx, [rbp - 0x60]
call fcn.1400086f0
nop
lea rdx, str.ClickPad_LeftCorner_Click_Func
lea rcx, [rbp]
call fcn.1400150a0
mov rbx, rax
mov ecx, dword [0x140227198]
mov dword [rbp + 0x650], ecx
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x650]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rdx, qword [rbx]
sub rdx, 0x18
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14000dd2b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rbp - 0x70]
mov qword [rbp + 0x658], rax
mov rcx, qword [0x1402271a0]
add rcx, 0xffffffffffffffe8
call fcn.1400149f0
add rax, 0x18
mov qword [rbp - 0x70], rax
lea rdx, str.ClickPad_LeftCorner_Click_Path
lea rcx, [rbp + 0x48]
call fcn.1400150a0
nop
lea r8, [rbp - 0x70]
mov rdx, rax
mov rcx, qword [rsp + 0x30]
call fcn.1400084d0
lea rdx, str.ClickPad_RightCorner_Click_Func
lea rcx, [rbp + 0x10]
call fcn.1400150a0
mov rbx, rax
mov ecx, dword [0x140227180]
mov dword [rbp + 0x658], ecx
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x658]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rdx, qword [rbx]
sub rdx, 0x18
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14000ddd7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x70], rax
mov rcx, qword [0x140227188]
add rcx, 0xffffffffffffffe8
call fcn.1400149f0
add rax, 0x18
mov qword [rsp + 0x50], rax
lea rdx, str.ClickPad_RightCorner_Click_Path
lea rcx, [rbp - 0x48]
call fcn.1400150a0
nop
lea r8, [rsp + 0x50]
mov rdx, rax
mov rcx, qword [rsp + 0x30]
call fcn.1400084d0
lea rdx, str.SwapButton_Enable
lea rcx, [rbp - 0x38]
call fcn.1400150a0
mov rbx, rax
mov ecx, dword [0x140227494]
mov dword [rsp + 0x70], ecx
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rdx, qword [rbx]
sub rdx, 0x18
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14000de80
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rbp - 0x60]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14000deab
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x58]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14000dec9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
lea rdx, str.SoftwareElantechPointStick
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000e0e0
lea rdx, str.Button_Left
lea rcx, [rbp - 0x28]
call fcn.1400150a0
mov rbx, rax
mov ecx, dword [0x140227560]
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rdx, qword [rbx]
sub rdx, 0x18
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14000df5b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rax
mov rcx, qword [0x140227568]
add rcx, 0xffffffffffffffe8
call fcn.1400149f0
add rax, 0x18
mov qword [rsp + 0x58], rax
lea rdx, str.Button_Left_Ex
lea rcx, [rbp - 0x18]
call fcn.1400150a0
nop
lea r8, [rsp + 0x58]
mov rdx, rax
mov rcx, qword [rsp + 0x30]
call fcn.1400084d0
lea r11, [rsp + 0x68]
mov qword [rsp + 0x40], r11
mov rcx, qword [0x140227570]
add rcx, 0xffffffffffffffe8
call fcn.1400149f0
add rax, 0x18
mov qword [rsp + 0x68], rax
lea rdx, str.Button_Left_Path
lea rcx, [rbp - 8]
call fcn.1400150a0
nop
lea r8, [rsp + 0x68]
mov rdx, rax
mov rcx, qword [rsp + 0x30]
call fcn.1400084d0
lea rdx, str.Button_Right
lea rcx, [rbp + 8]
call fcn.1400150a0
mov rbx, rax
mov ecx, dword [0x140227530]
mov dword [rsp + 0x40], ecx
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rdx, qword [rbx]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], edi
dec edi
test edi, edi
jg 0x14000e048
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [rsp + 0x78]
mov qword [rbp + 0x640], rax
mov rcx, qword [0x140227538]
add rcx, 0xffffffffffffffe8
call fcn.1400149f0
add rax, 0x18
mov qword [rsp + 0x78], rax
lea rdx, str.Button_Right_Ex
lea rcx, [rbp + 0x18]
call fcn.1400150a0
nop
lea r8, [rsp + 0x78]
mov rdx, rax
mov rcx, qword [rsp + 0x30]
call fcn.1400084d0
lea r11, [rbp - 0x78]
mov qword [rbp + 0x640], r11
mov rcx, qword [0x140227540]
add rcx, 0xffffffffffffffe8
call fcn.1400149f0
add rax, 0x18
mov qword [rbp - 0x78], rax
lea rdx, str.Button_Right_Path
lea rcx, [rbp + 0x28]
call fcn.1400150a0
nop
lea r8, [rbp - 0x78]
mov rdx, rax
mov rcx, qword [rsp + 0x30]
call fcn.1400084d0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [0x140226978]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea r11, [0x1402275b0]
mov qword [rsp + 0x20], r11
lea r9, [0x140227530]
lea r8, [0x140227130]
lea rdx, [0x1402262c0]
lea rcx, [0x140226360]
call qword [0x1402261c8]
lea rcx, [0x140226978]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea r11, [rbp + 0x50]
mov qword [rbp + 0x640], r11
lea rdx, [0x140227530]
lea rcx, [rbp + 0x50]
call fcn.14000e230
mov rdi, rax
lea rdx, [0x140227130]
lea rcx, [rbp + 0x220]
call fcn.14000e340
mov rbx, rax
lea rcx, [rbp + 0xd0]
lea rdx, [0x1402262c0]
mov r8d, 0x98
call fcn.140160830
lea rcx, [rbp + 0x170]
lea rdx, [0x140226360]
mov r8d, 0xac
call fcn.140160830
nop
mov r9, rdi
mov r8, rbx
lea rdx, [rbp + 0xd0]
lea rcx, [rbp + 0x170]
call qword [0x140226430]
mov edx, 2
lea ecx, [rdx + 2]
call qword [0x1402261c0]
cmp dword [0x140226230], 1
jne 0x14000e1ed
lea r8, str.GlobalButtonPage_Realtime_UpdateUI
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_OpenEventW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000e1ed
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x140226234], 1
jne 0x14000e223
lea r8, str.GlobalClickPage_Realtime_UpdateUI
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_OpenEventW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000e223
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x720
pop rdi
pop rbx
pop rbp
ret