Function at 0x140006e20
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, 0x170
mov qword [rax - 0x108], 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 + 0x160], rax
mov r15, rcx
call fcn.140006c80
mov esi, eax
mov dword [rsp + 0x30], eax
lea rcx, [r15 + 0x298]
call fcn.140013a50
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.1400063b0
test eax, eax
jne 0x140006f1d
mov dword [rsp + 0x98], 4
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x8c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xa8]
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 0x140006f18
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.1400063b0
mov r14, qword [rsp + 0x50]
test eax, eax
jne 0x140006fb8
mov dword [rsp + 0xa0], 1
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0xa0]
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 0x140006fb3
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 0x14000703b
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.1400063b0
test eax, eax
jne 0x140007023
lea rdx, str.AutoApplyProfileFeature
mov rbx, qword [rsp + 0x68]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test rbx, rbx
je 0x140007033
mov rcx, rbx
jmp 0x14000702d
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140007033
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x8c], 3
ja 0x14000704b
call fcn.14000fc10
mov dl, 1
xor ecx, ecx
call fcn.14000fc20
mov r9d, 0x20019
lea r8, str.SOFTWAREIntelDisplayigfxcui_
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x38]
call fcn.1400063b0
mov rdi, qword [rsp + 0x38]
test eax, eax
jne 0x1400070cd
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 + 0xd0]
xor r8d, r8d
lea rdx, str.Inst
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test rdi, rdi
je 0x1400070c8
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 0x14000711d
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 0x14000728e
test eax, eax
je 0x14000728e
xor eax, eax
mov qword [rsp + 0xb4], rax
mov qword [rsp + 0xbc], rax
mov qword [rsp + 0xc4], rax
mov dword [rsp + 0xcc], eax
mov dword [rsp + 0xb0], 0x20
mov dword [rsp + 0xb4], 5
movups xmm0, xmmword [0x1400306d0]
movups xmmword [rsp + 0xbc], xmm0
lea r8d, [rax + 1]
lea rdx, [rsp + 0xb0]
mov rcx, qword [r15 + 0x268]
call qword [sym.imp.USER32.dll_RegisterDeviceNotificationW]
mov qword [0x140048ff0], rax
lea rcx, [rsp + 0x88]
call fcn.1400133f0
nop
mov byte [rsp + 0xf0], 0
xor edx, edx
lea r8d, [rdx + 0x6c]
lea rcx, [rsp + 0xf1]
call fcn.140016700
mov dword [rsp + 0xf9], 1
mov dword [rsp + 0xf1], 1
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xf0]
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 0x140007279
cmp byte [rsp + 0xd8], 0
jne 0x140007279
movzx eax, word [rsp + 0x10b]
mov ecx, 0x1000
and ax, cx
cmp r12w, ax
jne 0x14000722f
movzx eax, byte [rsp + 0x10b]
test al, 2
je 0x14000726a
test al, 4
je 0x14000726a
lea rbx, [r15 + 0x2a0]
mov qword [rsp + 0x20], rbx
lea r9, [0x140030818]
xor edx, edx
lea r8d, [rdx + 0x17]
lea rcx, [0x140032280]
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.140003b50
jmp 0x140007281
mov esi, r12d
mov dword [rsp + 0x30], r12d
lea rcx, [rsp + 0x88]
call fcn.1400060b0
call fcn.140005d30
test al, al
je 0x1400072d4
mov dword [rsp + 0x94], r12d
lea rax, [rsp + 0x94]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r12d
xor r9d, r9d
lea r8, [0x140002bb0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x1400072d4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
test r14, r14
je 0x1400072e3
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test rdi, rdi
je 0x1400072f2
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov eax, esi
jmp 0x1400072fa
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1400166d0
lea r11, [rsp + 0x170]
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