Function at 0x140007740
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
push r12
push r14
push r15
sub rsp, 0x310
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov rax, qword [0x1400382d0]
xor rax, rsp
mov qword [rsp + 0x300], rax
mov r12, rcx
mov qword [rsp + 0x70], rcx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
xor edi, edi
mov esi, edi
mov qword [r11 - 0x288], rdi
mov word [rsp + 0xf0], di
xor edx, edx
mov r8d, 0x206
lea rcx, [r11 - 0x236]
call fcn.140013840
mov qword [rsp + 0x80], rdi
mov r8, r12
mov edx, 0x104
lea rcx, [rsp + 0xf0]
call fcn.1400126f8
lea r8, [rsp + 0xa0]
lea rdx, [0x14002950c]
lea rcx, [rsp + 0xf0]
call fcn.140012a2c
test rax, rax
je 0x140007823
mov ebx, edi
cmp rbx, 4
jge 0x140007823
mov qword [rsp + rbx*8 + 0x50], rax
inc esi
inc rbx
lea r8, [rsp + 0xa0]
lea rdx, [0x14002950c]
xor ecx, ecx
call fcn.140012a2c
test rax, rax
jne 0x1400077f8
mov qword [rsp + 0x98], rdi
mov qword [rsp + 0xb8], rdi
mov qword [rsp + 0xb0], rdi
mov qword [rsp + 0xa8], rdi
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov qword [rsp + 0xc0], rdi
test eax, eax
js 0x1400078ce
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
lea r9, [0x140027d80]
xor edx, edx
lea r8d, [rdx + 0x17]
lea rcx, [0x140027dc0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1400078c6
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ole32.dll_OleRun]
mov ebx, eax
test eax, eax
js 0x1400078b4
mov rcx, qword [rsp + 0x88]
mov rax, qword [rcx]
lea r8, [rsp + 0xc0]
lea rdx, [0x140027ae0]
call qword [rax]
mov ebx, eax
mov rcx, qword [rsp + 0x88]
mov rax, qword [rcx]
call qword [rax + SafeArrayGetElemsize]
test ebx, ebx
jns 0x1400078ce
mov qword [rsp + 0xc0], rdi
mov r15d, edi
mov ebx, edi
mov byte [rsp + 0xd0], bl
xor eax, eax
mov qword [rsp + 0xd1], rax
mov qword [rsp + 0xd9], rax
mov qword [rsp + 0xe1], rax
mov byte [rsp + 0xe9], al
lea rcx, [rsp + 0xc8]
call fcn.140012e0c
lea r8, [rsp + 0xc8]
mov edx, 0x1a
lea rcx, [rsp + 0xd0]
call fcn.140012d68
lea r8, [0x140029514]
lea rdx, str.C:IntelLogsIntelProfileLog.txt
lea rcx, [rsp + 0x80]
call fcn.140012cf0
movsxd r14, esi
mov qword [rsp + 0x88], r14
lea rdx, str._import
mov rcx, r12
call fcn.140012830
test rax, rax
je 0x140007b1c
mov r8, rdi
test esi, esi
jle 0x1400079a9
lea r9, str.import
nop
mov rcx, rdi
mov rdx, qword [rsp + r8*8 + 0x50]
nop dword [rax + rax]
movzx eax, word [rdx + rcx*2]
inc rcx
cmp ax, word [r9 + rcx*2 - 2]
jne 0x140007997
cmp rcx, 7
je 0x1400079a3
jmp 0x140007980
inc ebx
inc r8
cmp r8, r14
jge 0x1400079a9
jmp 0x140007970
mov r15d, 1
mov rcx, qword [rsp + 0xc0]
test rcx, rcx
sete al
test al, al
jne 0x140007b1c
cmp r15d, 1
jne 0x140007b1c
test rcx, rcx
jne 0x1400079d8
mov ecx, 0x80004003
call fcn.140011a90
mov rax, qword [rcx]
movsxd rdx, ebx
mov dword [rsp + 0x38], 4
lea r8, [rsp + 0x90]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0xa8]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0xb0]
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0xb8]
lea r8, [rsp + 0x98]
mov rdx, qword [rsp + rdx*8 + 0x58]
call qword [rax + 0x398]
nop
jmp 0x140007a3a
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x140007b1c
lea r8, [rsp + 0xd0]
lea rdx, [0x140029550]
call fcn.140012d44
mov ecx, dword [rsp + 0x90]
test ecx, ecx
je 0x140007b01
dec ecx
je 0x140007ae9
dec ecx
je 0x140007ad1
dec ecx
jne 0x140007b01
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.OLEAUT32.dll_SafeArrayGetElemsize]
mov dword [rsp + 0x88], edi
lea r8, [rsp + 0x88]
mov edx, eax
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.OLEAUT32.dll_SafeArrayGetLBound]
mov eax, dword [rsp + 0x88]
inc eax
lea rdx, str._s__n
mov rcx, qword [rsp + 0x80]
cmp eax, 1
jl 0x140007b10
lea r8, str.Import_operation_is_SUCCEESS
jmp 0x140007b17
lea r8, str.Import_operation_is_failed_with_FAIL_INVALID_FILE_FORMAT
lea rdx, str._s__n
mov rcx, qword [rsp + 0x80]
jmp 0x140007b17
lea r8, str.Import_operation_is_failed_with_FAIL_MAXIMUM_PROFILE_LIMIT_EXCEEDDED
lea rdx, str._s__n
mov rcx, qword [rsp + 0x80]
jmp 0x140007b17
lea rdx, str._s__n
mov rcx, qword [rsp + 0x80]
lea r8, str.Import_operation_is_failed_with_UNKONWN_RESULT
call fcn.140012aec
lea rdx, str._profile
mov rcx, r12
call fcn.140012830
test rax, rax
je 0x140007d22
mov r9d, edi
mov esi, edi
mov r8, rdi
test r14, r14
jle 0x140007b89
lea r10, str.profile
nop dword [rax + rax]
mov rcx, rdi
mov rdx, qword [rsp + r8*8 + 0x50]
nop dword [rax + rax]
movzx eax, word [rdx + rcx*2]
inc rcx
cmp ax, word [r10 + rcx*2 - 2]
jne 0x140007b77
cmp rcx, 8
je 0x140007b83
jmp 0x140007b60
inc esi
inc r8
cmp r8, r14
jge 0x140007b89
jmp 0x140007b50
mov r9d, 1
cmp qword [rsp + 0xc0], 0
sete al
test al, al
jne 0x140007d22
cmp r9d, 1
jne 0x140007d22
mov ebx, edi
xor ecx, ecx
call fcn.140008260
test al, al
jne 0x140007caa
nop dword [rax + rax]
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call fcn.140008260
cmp al, 1
je 0x140007caa
inc ebx
cmp ebx, 0xa
jl 0x140007bc0
mov qword [rsp + 0x90], rdi
lea rax, [rsp + 0x88]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SoftwareIntelDisplayigfxcuiHotKeys
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140007d22
movsxd rax, esi
mov rcx, qword [rsp + rax*8 + 0x58]
mov eax, edi
test rcx, rcx
setne al
test eax, eax
je 0x140007c8e
or rax, 0xffffffffffffffff
nop
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x140007c50
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, str.ProfileCMDLineArgs
mov rbx, qword [rsp + 0x90]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x140007c96
mov rbx, qword [rsp + 0x90]
test rbx, rbx
je 0x140007d22
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140007d22
mov rcx, qword [rsp + 0xc0]
test rcx, rcx
jne 0x140007cc2
mov ecx, 0x80004003
call fcn.140011a90
int3
mov rax, qword [rcx]
movsxd rdx, esi
mov r8d, 1
mov rdx, qword [rsp + rdx*8 + 0x58]
call qword [rax + 0x3b8]
mov ebx, eax
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x140007d34
lea r8, [rsp + 0xd0]
lea rdx, [0x140029550]
call fcn.140012d44
lea rdx, str._s__n
mov rcx, qword [rsp + 0x80]
test ebx, ebx
lea r8, str.Profile_Apply_operation_is_SUCCEESS
je 0x140007d1d
lea r8, str.Profile_Apply_operation_is_FAILED
call fcn.140012aec
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x140007d34
call fcn.140012bb0
cmp qword [rsp + 0xc0], 0
jne 0x140007d4a
mov ecx, 0x80004003
call fcn.140011a90
int3
mov rcx, qword [rsp + 0xc0]
mov rax, qword [rcx]
call qword [rax + SafeArrayGetElemsize]
mov qword [rsp + 0xc0], rdi
call qword [sym.imp.ole32.dll_CoUninitialize]
nop
mov rcx, qword [rsp + 0xc0]
test rcx, rcx
je 0x140007d7a
mov rax, qword [rcx]
call qword [rax + SafeArrayGetElemsize]
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.140013730
lea r11, [rsp + 0x310]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret