Function at 0x140012570
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x1d8]
sub rsp, 0x2c0
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140048360]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov rsi, rdx
mov rdi, rcx
cmp qword [rcx + 0x68], 0
sete al
test al, al
jne 0x1400127d4
xor r14d, r14d
mov ebx, r14d
mov dword [rsp + 0x68], r14d
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x58], r14
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SoftwareIntelDisplayigfxcuiHotKeys
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400127c6
mov rbx, qword [rsp + 0x58]
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x68], r14d
mov word [rbp - 0x60], r14w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp - 0x5e]
call fcn.1400198d0
mov dword [rsp + 0x58], 0x208
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
lea rdx, str.ProfileCMDLineArgs
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400127a9
mov eax, dword [rsp + 0x50]
dec eax
cmp eax, 1
jbe 0x14001268f
mov eax, 0xd
jmp 0x1400127a9
mov eax, dword [rsp + 0x58]
test eax, eax
je 0x1400126ac
test al, 1
jne 0x140012685
shr rax, 1
cmp word [rbp + rax*2 - 0x62], 0
jne 0x140012685
movzx ecx, word [rbp - 0x60]
jmp 0x1400126b3
mov ecx, r14d
mov word [rbp - 0x60], cx
mov eax, r14d
cmp cx, word [0x140033438]
je 0x1400127a9
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x1400126d7
mov ecx, 0x80004003
call fcn.140016fb0
int3
mov rax, qword [rcx]
mov r8d, 1
lea rdx, [rbp - 0x60]
call qword [rax + 0x3b8]
mov ebx, eax
mov qword [rsp + 0x50], r14
lea rcx, [rsp + 0x58]
call fcn.140018fe0
lea r8, [rsp + 0x58]
mov edx, 0x1a
lea rcx, [rbp - 0x80]
call fcn.14001a8a4
lea r8, [0x1400345e8]
lea rdx, str.C:IntelLogsIntelProfileLog.txt
lea rcx, [rsp + 0x50]
call fcn.14001a82c
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140012772
lea r8, [rbp - 0x80]
lea rdx, [0x140034614]
call fcn.14001a880
lea rdx, str._s__n
mov rcx, qword [rsp + 0x50]
test ebx, ebx
lea r8, str.Profile_Apply_operation_is_SUCCEESS
je 0x14001275e
lea r8, str.Profile_Apply_operation_is_FAILED
call fcn.14001a648
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140012772
call fcn.140018a4c
mov r9d, 0xf003f
lea r8, str.SoftwareIntelDisplayigfxcuiHotKeys
mov rdx, 0xffffffff80000001
lea rcx, [rsp + 0x60]
call fcn.1400079d0
mov rbx, qword [rsp + 0x60]
test eax, eax
jne 0x1400127a9
lea rdx, str.ProfileCMDLineArgs
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test rsi, rsi
je 0x1400127b5
test eax, eax
sete al
mov byte [rsi], al
test rbx, rbx
je 0x1400127c6
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, r14
test rbx, rbx
je 0x1400127d4
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.1400198a0
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret