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.140013860
mov qword [rsp + 0x80], rdi
mov r8, r12
mov edx, 0x104
lea rcx, [rsp + 0xf0]
call fcn.140012718
lea r8, [rsp + 0xa0]
lea rdx, [0x1400293ac]
lea rcx, [rsp + 0xf0]
call fcn.140012a4c
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, [0x1400293ac]
xor ecx, ecx
call fcn.140012a4c
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, [0x140028180]
xor edx, edx
lea r8d, [rdx + 0x17]
lea rcx, [0x1400279c0]
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, [0x140029370]
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.140012e2c
lea r8, [rsp + 0xc8]
mov edx, 0x1a
lea rcx, [rsp + 0xd0]
call fcn.140012d88
lea r8, [0x1400293b4]
lea rdx, str.C:IntelLogsIntelProfileLog.txt
lea rcx, [rsp + 0x80]
call fcn.140012d10
movsxd r14, esi
mov qword [rsp + 0x88], r14
lea rdx, str._import
mov rcx, r12
call fcn.140012850
test rax, rax
je 0x140007b25
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 0x140007b25
cmp r15d, 1
jne 0x140007b25
cmp ebx, 2
jg 0x140007b25
test rcx, rcx
jne 0x1400079e1
mov ecx, 0x80004003
call fcn.140011ab0
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 0x140007a43
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x140007b25
lea r8, [rsp + 0xd0]
lea rdx, [0x1400293f0]
call fcn.140012d64
mov ecx, dword [rsp + 0x90]
test ecx, ecx
je 0x140007b0a
dec ecx
je 0x140007af2
dec ecx
je 0x140007ada
dec ecx
jne 0x140007b0a
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 0x140007b19
lea r8, str.Import_operation_is_SUCCEESS
jmp 0x140007b20
lea r8, str.Import_operation_is_failed_with_FAIL_INVALID_FILE_FORMAT
lea rdx, str._s__n
mov rcx, qword [rsp + 0x80]
jmp 0x140007b20
lea r8, str.Import_operation_is_failed_with_FAIL_MAXIMUM_PROFILE_LIMIT_EXCEEDDED
lea rdx, str._s__n
mov rcx, qword [rsp + 0x80]
jmp 0x140007b20
lea rdx, str._s__n
mov rcx, qword [rsp + 0x80]
lea r8, str.Import_operation_is_failed_with_UNKONWN_RESULT
call fcn.140012b0c
lea rdx, str._profile
mov rcx, r12
call fcn.140012850
test rax, rax
je 0x140007d43
mov r9d, edi
mov esi, edi
mov r8, rdi
test r14, r14
jle 0x140007b89
lea r10, str.profile
mov rcx, rdi
mov rdx, qword [rsp + r8*8 + 0x50]
nop dword [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 0x140007b51
mov r9d, 1
cmp qword [rsp + 0xc0], 0
sete al
test al, al
jne 0x140007d43
cmp r9d, 1
jne 0x140007d43
mov ebx, edi
xor ecx, ecx
call fcn.140008280
test al, al
jne 0x140007bd6
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call fcn.140008280
cmp al, 1
je 0x140007bd6
inc ebx
cmp ebx, 0xa
jl 0x140007bb4
jmp 0x140007c6a
cmp esi, 3
jge 0x140007c6a
mov rcx, qword [rsp + 0xc0]
test rcx, rcx
jne 0x140007bf7
mov ecx, 0x80004003
call fcn.140011ab0
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 0x140007d55
lea r8, [rsp + 0xd0]
lea rdx, [0x1400293f0]
call fcn.140012d64
lea rdx, str._s__n
mov rcx, qword [rsp + 0x80]
test ebx, ebx
jne 0x140007c59
lea r8, str.Profile_Apply_operation_is_SUCCEESS
call fcn.140012b0c
jmp 0x140007d43
lea r8, str.Profile_Apply_operation_is_FAILED
call fcn.140012b0c
jmp 0x140007d43
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 0x140007d43
cmp esi, 3
jge 0x140007d30
movsxd rax, esi
mov rcx, qword [rsp + rax*8 + 0x58]
mov eax, edi
test rcx, rcx
setne al
test eax, eax
je 0x140007d1e
or rax, 0xffffffffffffffff
nop dword [rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x140007ce0
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 0x140007d26
mov rbx, qword [rsp + 0x90]
test rbx, rbx
je 0x140007d43
mov rcx, rbx
jmp 0x140007d3d
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x140007d43
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x140007d55
call fcn.140012bd0
cmp qword [rsp + 0xc0], 0
jne 0x140007d6b
mov ecx, 0x80004003
call fcn.140011ab0
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 0x140007d9b
mov rax, qword [rcx]
call qword [rax + SafeArrayGetElemsize]
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.140013750
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