Function at 0x140007198
Capabilities:
Create thread
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
mov rax, rsp
push r12
push r13
push r14
sub rsp, 0x160
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140052108]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov r13, rcx
call fcn.140006fd8
mov edi, eax
mov dword [rsp + 0x30], eax
lea rcx, [r13 + 0x298]
call fcn.140011444
xor r12d, r12d
mov dword [rsp + 0x80], r12d
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x40], r12d
mov qword [rsp + 0x48], r12
lea rdx, str.SoftwareIntelDisplayigfxcui
xor ecx, ecx
call fcn.14000520c
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x14000726e
mov dword [rsp + 0x78], 4
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x84]
xor r8d, r8d
lea rdx, str.Inst
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x40], r12d
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x58], r12d
mov qword [rsp + 0x60], r12
lea rdx, str.SoftwareIntelDisplayigfxcuiMISC
mov ebx, 1
mov ecx, ebx
call fcn.14000520c
mov rsi, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140007385
mov dword [rsp + 0x78], ebx
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 3]
xor r8d, r8d
lea rdx, str.InstallStage
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [rsp + 0x80], 3
jne 0x14000736a
lea rdx, str.AutoApplyProfileFeature
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov qword [rsp + 0x90], r12
mov qword [rsp + 0x88], r12
mov qword [rsp + 0x98], r12
mov r9d, 0x2001f
lea r8, str.SoftwareIntelDisplayigfxcuiMISC
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x88]
call fcn.140006bb8
test eax, eax
jne 0x140007357
lea rdx, str.AutoApplyProfileFeature
mov rbx, qword [rsp + 0x88]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test rbx, rbx
je 0x14000736a
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, r12
jmp 0x14000735f
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x14000736a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, r12
mov qword [rsp + 0x50], r12
mov dword [rsp + 0x58], r12d
mov ebx, 1
cmp dword [rsp + 0x80], 3
ja 0x14000739d
call fcn.14000dbd8
mov dl, bl
xor ecx, ecx
call fcn.14000ddd8
lea rdx, str.SoftwareIntelDisplayigfxcui
xor ecx, ecx
call fcn.14000520c
mov r14, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x140007408
mov dword [rsp + 0x78], 4
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x84]
xor r8d, r8d
lea rdx, str.Inst
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r14, r12
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x40], r12d
mov eax, dword [rsp + 0x80]
cmp eax, 3
jae 0x140007425
lea rcx, [0x140054080]
call fcn.140009490
jmp 0x1400075ba
test eax, eax
je 0x1400075ba
mov qword [rsp + 0xa4], 5
mov dword [rsp + 0xbc], r12d
mov dword [rsp + 0xa0], 0x20
movups xmm0, xmmword [0x140034ce0]
movdqu xmmword [rsp + 0xac], xmm0
mov r8d, ebx
lea rdx, [rsp + 0xa0]
mov rcx, qword [r13 + 0x268]
call qword [sym.imp.USER32.dll_RegisterDeviceNotificationW]
mov qword [0x140054070], rax
lea rcx, [rsp + 0x70]
call fcn.1400012b0
nop
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0xc0], xmm0
mov qword [rsp + 0xd0], rax
lea edi, [rax + 0x6d]
mov r8d, edi
xor edx, edx
lea rcx, [rsp + 0xe0]
call fcn.140016010
mov dword [rsp + 0xe9], ebx
mov dword [rsp + 0xe1], ebx
xor eax, eax
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x90], eax
lea rcx, [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
mov dword [rsp + 0xe5], ebx
cmp eax, ebx
jne 0x1400074fd
mov al, byte [rsp + 0x88]
neg al
sbb ecx, ecx
add ecx, 2
mov dword [rsp + 0xe5], ecx
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xe0]
mov r8d, edi
mov edx, ebx
lea rcx, [rsp + 0x70]
call fcn.1400014c4
mov edi, eax
mov dword [rsp + 0x30], eax
test eax, eax
js 0x1400075a8
cmp byte [rsp + 0xc0], r12b
jne 0x1400075a8
movzx eax, word [rsp + 0xfb]
mov ecx, 0x1000
and ax, cx
cmp r12w, ax
jne 0x140007555
test byte [rsp + 0xfb], 4
je 0x14000759c
lea rbx, [r13 + 0x2a0]
mov qword [rsp + 0x20], rbx
lea r9, [0x1400353c0]
xor edx, edx
lea r8d, [rdx + 0x17]
lea rcx, [0x1400351a8]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test eax, eax
cmovs edi, r12d
mov dword [rsp + 0x30], edi
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [0x140034668]
mov ebx, 1
mov edx, ebx
mov rcx, r13
call fcn.14000457c
jmp 0x1400075b0
mov edi, r12d
mov dword [rsp + 0x30], r12d
lea rcx, [rsp + 0x70]
call fcn.1400012c0
call fcn.1400063ec
test al, al
je 0x1400075fa
mov dword [rsp + 0x78], r12d
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r12d
xor r9d, r9d
lea r8, [0x140003570]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x1400075fa
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
test rsi, rsi
je 0x140007609
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test r14, r14
je 0x140007618
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
jmp 0x14000761e
mov eax, edi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140013e00
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret