Function at 0x140001820
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push r12
push r14
push r15
lea rbp, [rsp - 0x58]
sub rsp, 0x158
mov rax, qword [0x140057cb0]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov r15, rcx
xor r12d, r12d
lea rcx, [0x140057168]
mov qword [rbp - 0x80], r12
mov r14, r8
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, 1
lea rcx, [0x140057350]
mov dword [rbp - 0x68], esi
lea eax, [rax*2 + 2]
mov dword [rbp - 0x78], eax
lea rax, [0x1400572c0]
mov qword [rbp - 0x70], rax
lea rax, str.LocalizedString
mov qword [rbp - 0x60], rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [0x1400574f0]
mov dword [rbp - 0x48], esi
lea eax, [rax*2 + 2]
mov dword [rbp - 0x58], eax
lea rax, str.__LocalAppData_LenovoHOTKEY_tposdres.dll__108
mov qword [rbp - 0x50], rax
lea rax, str.InfoTip
mov qword [rbp - 0x40], rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [0x140057338]
mov dword [rbp - 0x28], 2
lea eax, [rax*2 + 2]
mov dword [rbp - 0x38], eax
lea rax, str.__LocalAppData_LenovoHOTKEY_tposdres.dll__109
mov qword [rbp - 0x30], rax
lea rax, str.System.ApplicationName
mov qword [rbp - 0x20], rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [0x14005704c]
mov dword [rbp - 8], esi
lea eax, [rax*2 + 2]
mov dword [rbp - 0x18], eax
lea rax, str.Performance
mov qword [rbp - 0x10], rax
lea rax, str.System.ControlPanel.Category
mov qword [rbp], rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, rbx
mov dword [rbp + 0x18], esi
lea eax, [rax*2 + 2]
mov dword [rbp + 8], eax
lea rax, [0x140057284]
mov qword [rbp + 0x10], rax
lea rax, str.System.Software.TasksFileUrl
mov qword [rbp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov qword [rbp + 0x30], rbx
mov dword [rbp + 0x38], esi
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x70], r12
lea eax, [rax*2 + 2]
mov dword [rbp + 0x28], eax
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x60], r12
test r15, r15
je 0x140001c22
test rbx, rbx
je 0x140001c22
test r14, r14
je 0x140001c22
lea rax, [rsp + 0x58]
mov qword [rsp + 0x150], rdi
mov r9d, 0xf003f
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerControlPanelNameSpace
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140001a10
lea rcx, [0x140057818]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x58]
lea rdx, [0x140057920]
mov r9d, esi
xor r8d, r8d
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rax, str.Performance_Mode_Settings
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov ebx, esi
test eax, eax
je 0x140001a13
mov ebx, r12d
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140001a23
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x140001a91
lea rax, [rsp + 0x70]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.CLSID
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140001a91
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], r12
lea rdx, str.3B3E0DF5_2B78_4F2F_961E_358464E61755
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], r12
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
mov eax, esi
je 0x140001a94
mov eax, r12d
mov edi, r12d
lea rbx, [rbp - 0x70]
nop dword [rax + rax]
test eax, eax
je 0x140001acf
mov eax, dword [rbx - 8]
xor r8d, r8d
mov r9d, dword [rbx + 8]
mov rdx, qword [rbx - 0x10]
mov rcx, qword [rsp + 0x50]
mov dword [rsp + 0x28], eax
mov rax, qword [rbx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov eax, esi
je 0x140001ad2
mov eax, r12d
inc edi
add rbx, 0x20
cmp edi, 6
jb 0x140001aa0
mov rdi, qword [rsp + 0x150]
test eax, eax
je 0x140001bdb
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x50]
lea rdx, str.DefaultIcon
mov r9d, 2
xor r8d, r8d
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
test eax, eax
jne 0x140001bdb
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x40], r12
lea rdx, str.Shell
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], r12
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140001bdb
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], r12
lea rdx, str.Open
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov qword [rsp + 0x30], r12
xor r8d, r8d
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140001bdb
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsp + 0x60]
lea rdx, str.Command
mov r9d, 2
xor r8d, r8d
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
test eax, eax
je 0x140001bde
mov esi, r12d
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140001bee
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140001bfe
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140001c0e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140001c1e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x140001c24
xor eax, eax
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.140002400
add rsp, 0x158
pop r15
pop r14
pop r12
pop rsi
pop rbx
pop rbp
ret