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

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x1c8]
sub rsp, 0x2c0
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140073340]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov rdi, rcx
cmp qword [rcx + 0x68], 0
sete al
test al, al
jne 0x1400166cd
xor esi, esi
mov ebx, esi
mov dword [rsp + 0x68], esi
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x58], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SoftwareIntelDisplayigfxcuiHotKeys
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400166bf
mov rbx, qword [rsp + 0x58]
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x68], esi
mov word [rbp - 0x60], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp - 0x5e]
call fcn.140023c20
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 0x1400166ae
mov eax, dword [rsp + 0x50]
dec eax
cmp eax, 1
ja 0x1400166ae
mov eax, dword [rsp + 0x58]
test eax, eax
je 0x1400165b5
test al, 1
jne 0x1400166ae
shr rax, 1
cmp word [rbp + rax*2 - 0x62], si
jne 0x1400166ae
movzx eax, word [rbp - 0x60]
jmp 0x1400165bb
mov eax, esi
mov word [rbp - 0x60], ax
cmp ax, word [0x140054738]
je 0x1400166ae
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x1400165dc
mov ecx, 0x80004003
call fcn.14001aa10
int3
mov rax, qword [rcx]
mov r8d, 1
lea rdx, [rbp - 0x60]
call qword [rax + 0x3c0]
mov ebx, eax
mov qword [rsp + 0x50], rsi
lea rcx, [rsp + 0x58]
call fcn.14001cf90
lea r8, [rsp + 0x58]
mov edx, 0x1a
lea rcx, [rbp - 0x80]
call fcn.140024d18
lea r8, [0x1400556e8]
lea rdx, str.C:IntelLogsIntelProfileLog.txt
lea rcx, [rsp + 0x50]
call fcn.140024ca0
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140016677
lea r8, [rbp - 0x80]
lea rdx, [0x140055714]
call fcn.140024cf4
lea rdx, str._s__n
mov rcx, qword [rsp + 0x50]
test ebx, ebx
lea r8, str.Profile_Apply_operation_is_SUCCEESS
je 0x140016663
lea r8, str.Profile_Apply_operation_is_FAILED
call fcn.140024ac0
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140016677
call fcn.140024b60
mov r9d, 0xf003f
lea r8, str.SoftwareIntelDisplayigfxcuiHotKeys
mov rdx, 0xffffffff80000001
lea rcx, [rsp + 0x60]
call fcn.14000b900
mov rbx, qword [rsp + 0x60]
test eax, eax
jne 0x1400166ae
lea rdx, str.ProfileCMDLineArgs
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test rbx, rbx
je 0x1400166bf
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, rsi
test rbx, rbx
je 0x1400166cd
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.140023bf0
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret