Function at 0x140008ed0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x380
mov rax, qword [0x1400389f0]
xor rax, rsp
mov qword [rsp + 0x370], rax
mov rbx, r9
mov rdi, r8
mov esi, 0x80004005
mov dword [r9], 0x25
cmp edx, 0x60
jne 0x14000917a
test r8, r8
je 0x14000917a
call fcn.14000882c
test al, 1
je 0x140009170
test al, 0x10
je 0x140009170
and qword [rsp + 0x30], 0
xor edx, edx
lea rax, [rsp + 0x30]
lea r9, [0x1400310d8]
lea rcx, [0x1400311a8]
lea r8d, [rdx + 0x15]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test eax, eax
js 0x140009176
cmp qword [rsp + 0x30], 0
je 0x140009176
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, 0x210
call fcn.140020a20
mov rcx, qword [rsp + 0x30]
mov dword [rsp + 0x108], 1
mov r9, qword [rcx]
lea r8, [rsp + 0x50]
mov edx, 0x210
call qword [r9 + 0x110]
movss xmm5, dword [rdi + 0x4c]
movss xmm0, dword [rsp + 0x164]
comiss xmm0, xmm5
ja 0x14000915d
comiss xmm5, dword [rsp + 0x168]
ja 0x14000915d
movss xmm1, dword [rdi + 0x38]
movss xmm0, dword [rsp + 0x150]
comiss xmm0, xmm1
ja 0x14000915d
comiss xmm1, dword [rsp + 0x154]
ja 0x14000915d
movss xmm2, dword [rdi + 0x10]
movss xmm0, dword [rsp + 0x128]
comiss xmm0, xmm2
ja 0x14000915d
comiss xmm2, dword [rsp + 0x12c]
ja 0x14000915d
movss xmm3, dword [rdi + 0x24]
movss xmm0, dword [rsp + 0x13c]
comiss xmm0, xmm3
ja 0x14000915d
comiss xmm3, dword [rsp + 0x140]
ja 0x14000915d
mov eax, dword [rdi + 4]
mov rcx, qword [rsp + 0x30]
movss dword [rsp + 0x15c], xmm5
movss dword [rsp + 0x148], xmm1
movss dword [rsp + 0x120], xmm2
movss dword [rsp + 0x134], xmm3
mov dword [rsp + 0x108], 1
mov dword [rsp + 0x110], eax
mov rax, qword [rcx]
lea r8, [rsp + 0x50]
mov edx, 0x210
call qword [rax + 0x118]
mov esi, eax
test eax, eax
js 0x140009163
and qword [rsp + 0x38], 0
lea rax, [rsp + 0x38]
lea rdx, str.SoftwareinteldisplayigfxcuiprofilesCurrent
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x40], 3
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140009148
lea rdx, str.Select_Profile
lea rcx, [rsp + 0x260]
call fcn.140021170
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
lea rdx, str.CurrentPresetProfileType
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea rcx, [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rcx, qword [rsp + 0x38]
lea rdx, str.CurrentPresetProfileName
inc eax
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0x260]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140009158
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [rbx], 0
jmp 0x140009163
mov dword [rbx], 0x27
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x140009176
mov dword [rbx], 0x31
mov eax, esi
jmp 0x140009186
mov dword [r9], 4
mov eax, 0x80070057
mov rcx, qword [rsp + 0x370]
xor rcx, rsp
call fcn.140020bd0
lea r11, [rsp + 0x380]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret