Function at 0x140012470
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x250
and dword [rax + 0x20], 0
and dword [rax + 0x10], 0
lea rax, [rax + 0x10]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x288]
mov r11d, edx
mov edx, 1
mov rbx, r9
mov rsi, r8
mov qword [rsp + 0x20], rax
mov rbp, rcx
mov dword [r9], 0x25
call fcn.14000c4a4
cmp r11d, 0x54
ja 0x14001277a
cmp dword [rbx], 0
jne 0x14001277a
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 edi, eax
test eax, eax
js 0x140012766
cmp qword [rsp + 0x30], 0
je 0x140012776
mov rcx, rbp
call fcn.14000882c
test al, 1
je 0x140012752
test al, 0x20
je 0x140012752
mov ebp, 0x210
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8, rbp
call fcn.140020a20
mov rcx, qword [rsp + 0x30]
mov dword [rsp + 0x1d8], 1
mov rax, qword [rcx]
lea r8, [rsp + 0x40]
mov edx, ebp
call qword [rax + 0x110]
mov edi, eax
test eax, eax
js 0x140012752
mov eax, dword [rsp + 0x278]
sub eax, 1
je 0x140012586
sub eax, 1
je 0x140012586
cmp eax, 1
je 0x140012586
mov dword [rbx], 0x27
jmp 0x140012752
movss xmm1, dword [rsi + 0x2c]
movss xmm0, dword [rsp + 0x204]
and dword [rbx], 0
comiss xmm0, xmm1
ja 0x1400125b1
comiss xmm1, dword [rsp + 0x208]
ja 0x1400125b1
movss dword [rsp + 0x1fc], xmm1
jmp 0x1400125b7
mov dword [rbx], 0x27
movss xmm1, dword [rsi + 0x40]
movss xmm0, dword [rsp + 0x218]
mov ecx, dword [rbx]
and dword [rbx], 0
comiss xmm0, xmm1
ja 0x1400125e4
comiss xmm1, dword [rsp + 0x21c]
ja 0x1400125e4
movss dword [rsp + 0x210], xmm1
jmp 0x1400125ea
mov dword [rbx], 0x27
movss xmm1, dword [rsi + 0x18]
add ecx, dword [rbx]
movss xmm0, dword [rsp + 0x1f0]
and dword [rbx], 0
comiss xmm0, xmm1
ja 0x140012617
comiss xmm1, dword [rsp + 0x1f4]
ja 0x140012617
movss dword [rsp + 0x1e8], xmm1
jmp 0x14001261d
mov dword [rbx], 0x27
add ecx, dword [rbx]
jne 0x14001274a
movss xmm0, dword [rsi + 0x2c]
mov eax, dword [rsi + 0xc]
mov rcx, qword [rsp + 0x30]
movss xmm1, dword [rsi + 0x40]
movss dword [rsp + 0x1fc], xmm0
movss xmm0, dword [rsi + 0x18]
mov dword [rsp + 0x1d8], 1
mov dword [rsp + 0x1e0], eax
lea r8, [rsp + 0x40]
movss dword [rsp + 0x1e8], xmm0
movss dword [rsp + 0x210], xmm1
mov rax, qword [rcx]
mov edx, ebp
call qword [rax + 0x118]
mov edi, eax
test eax, eax
js 0x140012752
and qword [rsp + 0x288], 0
lea r8, [rsp + 0x288]
lea rdx, str.SoftwareIntelDisplayigfxcuiMedia
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x140012737
movss xmm0, dword [rsi + 0x2c]
mov rcx, qword [rsp + 0x288]
lea ebp, [rax + 4]
lea rax, [rsp + 0x278]
lea rdx, str.UINLASHLinearRegion
xor r8d, r8d
mulss xmm0, dword [0x14002fbbc]
mov r9d, ebp
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
movss dword [rsp + 0x278], xmm0
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x288]
lea rax, [rsp + 0x278]
movss xmm5, dword [rsi + 0x40]
mulss xmm5, dword [0x14002fbbc]
lea rdx, str.UINLASNonLinearCrop
mov r9d, ebp
xor r8d, r8d
movss dword [rsp + 0x278], xmm5
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x288]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [rbx], 0
jmp 0x140012752
xor edi, edi
mov dword [rbx], 0x31
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x10]
xor ecx, ecx
mov qword [rsp + 0x30], rcx
jmp 0x14001276b
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140012776
mov rax, qword [rcx]
call qword [rax + 0x10]
mov eax, edi
jmp 0x140012785
mov dword [rbx], 0x27
mov eax, 0x80004005
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
pop rsi
pop rbp
ret