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

Disassembly:
mov rax, rsp
push r12
push r14
push r15
sub rsp, 0x180
mov qword [rax - 0x118], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400461e0]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov r15, rcx
call fcn.140006c70
mov esi, eax
mov dword [rsp + 0x30], eax
lea rcx, [r15 + 0x298]
call fcn.140013b10
xor r12d, r12d
mov dword [rsp + 0x8c], r12d
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x40], r12d
mov qword [rsp + 0x48], r12
mov r9d, 0x20019
lea r8, str.SOFTWAREIntelDisplayigfxcui_
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x38]
call fcn.1400063a0
test eax, eax
jne 0x140006f0d
mov dword [rsp + 0xac], 4
lea rax, [rsp + 0xac]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x8c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xe0]
xor r8d, r8d
lea rdx, str.Inst
mov rbx, qword [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test rbx, rbx
je 0x140006f08
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x40], r12d
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x50], r12
mov dword [rsp + 0x58], r12d
mov qword [rsp + 0x60], r12
mov r9d, 0x2001f
lea r8, str.SOFTWAREIntelDisplayigfxcuiMISC
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x50]
call fcn.1400063a0
mov r14, qword [rsp + 0x50]
test eax, eax
jne 0x140006fa8
mov dword [rsp + 0xb0], 1
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.InstallStage
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test r14, r14
je 0x140006fa3
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r14, r12
mov qword [rsp + 0x50], r12
mov dword [rsp + 0x58], r12d
cmp dword [rsp + 0x8c], 3
jne 0x14000702b
xor eax, eax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x68], r12
mov dword [rsp + 0x70], r12d
mov qword [rsp + 0x78], r12
mov r9d, 0x2001f
lea r8, str.SOFTWAREIntelDisplayigfxcuiMISC_
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x68]
call fcn.1400063a0
test eax, eax
jne 0x140007013
lea rdx, str.AutoApplyProfileFeature
mov rbx, qword [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test rbx, rbx
je 0x140007023
mov rcx, rbx
jmp 0x14000701d
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140007023
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x8c], 3
ja 0x14000703b
call fcn.14000fcb0
mov dl, 1
xor ecx, ecx
call fcn.14000fcc0
mov r9d, 0x20019
lea r8, str.SOFTWAREIntelDisplayigfxcui_
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x38]
call fcn.1400063a0
mov rdi, qword [rsp + 0x38]
test eax, eax
jne 0x1400070bd
mov dword [rsp + 0x90], 4
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x8c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xb8]
xor r8d, r8d
lea rdx, str.Inst
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test rdi, rdi
je 0x1400070b8
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, r12
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x40], r12d
mov eax, dword [rsp + 0x8c]
cmp eax, 3
jae 0x14000710d
mov eax, 3
xchg dword [0x140049274], eax
lea rdx, [0x140049270]
mov rcx, qword [0x140049268]
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x12]
mov ecx, dword [0x140049290]
call qword [sym.imp.USER32.dll_PostThreadMessageW]
mov rdi, qword [rsp + 0x38]
mov r14, qword [rsp + 0x50]
jmp 0x1400072d3
test eax, eax
je 0x1400072d3
xor eax, eax
mov qword [rsp + 0xc4], rax
mov qword [rsp + 0xcc], rax
mov qword [rsp + 0xd4], rax
mov dword [rsp + 0xdc], eax
mov dword [rsp + 0xc0], 0x20
mov dword [rsp + 0xc4], 5
movups xmm0, xmmword [0x1400306f0]
movups xmmword [rsp + 0xcc], xmm0
lea r8d, [rax + 1]
lea rdx, [rsp + 0xc0]
mov rcx, qword [r15 + 0x268]
call qword [sym.imp.USER32.dll_RegisterDeviceNotificationW]
mov qword [0x140048ff0], rax
lea rcx, [rsp + 0x88]
call fcn.1400134a0
nop
mov byte [rsp + 0x100], 0
xor edx, edx
lea r8d, [rdx + 0x6c]
lea rcx, [rsp + 0x101]
call fcn.1400167c0
mov dword [rsp + 0x109], 1
mov dword [rsp + 0x101], 1
mov byte [rsp + 0x98], 0
xor eax, eax
mov qword [rsp + 0x99], rax
mov word [rsp + 0xa1], ax
mov byte [rsp + 0xa3], al
lea rcx, [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
mov dword [rsp + 0x105], 1
cmp eax, 1
jne 0x14000720f
movzx eax, byte [rsp + 0x98]
neg al
sbb ecx, ecx
add ecx, 2
mov dword [rsp + 0x105], ecx
lea rax, [rsp + 0xe8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x100]
mov edx, 1
lea r8d, [rdx + 0x6c]
lea rcx, [rsp + 0x88]
call fcn.140001570
mov esi, eax
mov dword [rsp + 0x30], eax
test eax, eax
js 0x1400072be
cmp byte [rsp + 0xe8], 0
jne 0x1400072be
movzx eax, word [rsp + 0x11b]
mov ecx, 0x1000
and ax, cx
cmp r12w, ax
jne 0x140007274
movzx eax, byte [rsp + 0x11b]
test al, 2
je 0x1400072af
test al, 4
je 0x1400072af
lea rbx, [r15 + 0x2a0]
mov qword [rsp + 0x20], rbx
lea r9, [0x140031680]
xor edx, edx
lea r8d, [rdx + 0x17]
lea rcx, [0x1400321c0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test eax, eax
cmovs esi, r12d
mov dword [rsp + 0x30], esi
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov edx, 1
mov rcx, r15
call fcn.140003b40
jmp 0x1400072c6
mov esi, r12d
mov dword [rsp + 0x30], r12d
lea rcx, [rsp + 0x88]
call fcn.1400060a0
call fcn.140005d20
test al, al
je 0x140007319
mov dword [rsp + 0xa8], r12d
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r12d
xor r9d, r9d
lea r8, [0x140002ba0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x140007319
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
test r14, r14
je 0x140007328
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test rdi, rdi
je 0x140007337
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov eax, esi
jmp 0x14000733f
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140016790
lea r11, [rsp + 0x180]
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