Function at 0x140006a80
Capabilities:
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 - 0xd8], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14004c120]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rsi, rcx
call fcn.1400068f0
mov dword [rsp + 0x34], eax
lea rcx, [rsi + 0x298]
call fcn.140014410
lea rbx, [rsi + 0x12a8]
cmp qword [rbx], 0
jne 0x140006afd
mov qword [rsp + 0x20], rbx
lea r9, [0x140033bc8]
xor edx, edx
lea r8d, [rdx + 0x17]
lea rcx, [0x140035808]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov rcx, qword [rbx]
test rcx, rcx
je 0x140006b21
mov rax, qword [rcx]
call qword [rax + 0x30]
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + 0x28]
test eax, eax
js 0x140006b21
mov rcx, qword [rbx]
mov rax, qword [rcx]
call qword [rax + 0x38]
xor r12d, r12d
mov ebx, r12d
mov dword [rsp + 0x34], ebx
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x40], r12
mov dword [rsp + 0x48], r12d
mov qword [rsp + 0x50], r12
mov r9d, 0x20019
lea r8, str.SOFTWAREIntelDisplayigfxcui_
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x40]
call fcn.140005ff0
test eax, eax
jne 0x140006bb5
mov dword [rsp + 0x58], 4
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xa8]
xor r8d, r8d
lea rdx, str.Inst
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test rdi, rdi
je 0x140006bb0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], r12
mov dword [rsp + 0x48], r12d
mov qword [rsp + 0x70], r12
mov dword [rsp + 0x78], r12d
mov qword [rsp + 0x80], r12
mov r9d, 0x2001f
lea r8, str.SOFTWAREIntelDisplayigfxcuiMISC
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x70]
call fcn.140005ff0
mov r14, qword [rsp + 0x70]
test eax, eax
jne 0x140006c3c
mov dword [rsp + 0x60], 1
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x60]
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 0x140006c37
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r14, r12
mov qword [rsp + 0x70], r12
mov dword [rsp + 0x78], r12d
cmp dword [rsp + 0x38], 3
jne 0x140006cba
mov qword [rsp + 0x90], r12
mov dword [rsp + 0x98], r12d
mov qword [rsp + 0xa0], r12
mov r9d, 0x2001f
lea r8, str.SOFTWAREIntelDisplayigfxcuiMISC_
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x90]
call fcn.140005ff0
test eax, eax
jne 0x140006ca2
lea rdx, str.AutoApplyProfileFeature
mov rdi, qword [rsp + 0x90]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test rdi, rdi
je 0x140006cb5
mov rcx, rdi
jmp 0x140006caf
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x140006cb5
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x38], 3
ja 0x140006cca
call fcn.1400110c0
mov dl, 1
xor ecx, ecx
call fcn.1400110d0
mov r9d, 0x20019
lea r8, str.SOFTWAREIntelDisplayigfxcui_
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x40]
call fcn.140005ff0
mov rdi, qword [rsp + 0x40]
test eax, eax
jne 0x140006d43
mov dword [rsp + 0x68], 4
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x88]
xor r8d, r8d
lea rdx, str.Inst
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test rdi, rdi
je 0x140006d3e
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, r12
mov qword [rsp + 0x40], r12
mov dword [rsp + 0x48], r12d
mov eax, dword [rsp + 0x38]
cmp eax, 3
jae 0x140006d90
mov eax, 3
xchg dword [0x14004f3e4], eax
lea rdx, [0x14004f3e0]
mov rcx, qword [0x14004f3d8]
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x12]
mov ecx, dword [0x14004f400]
call qword [sym.imp.USER32.dll_PostThreadMessageW]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x70]
jmp 0x140006ef5
test eax, eax
je 0x140006ef5
xor eax, eax
mov qword [rsp + 0x144], rax
mov qword [rsp + 0x14c], rax
mov qword [rsp + 0x154], rax
mov dword [rsp + 0x15c], eax
mov dword [rsp + 0x140], 0x20
mov dword [rsp + 0x144], 5
movups xmm0, xmmword [0x140033730]
movups xmmword [rsp + 0x14c], xmm0
lea r8d, [rax + 1]
lea rdx, [rsp + 0x140]
mov rcx, qword [rsi + 0x268]
call qword [sym.imp.USER32.dll_RegisterDeviceNotificationW]
mov qword [0x14004f160], rax
lea rcx, [rsp + 0x30]
call fcn.140013d20
nop
mov byte [rsp + 0xd0], 0
xor edx, edx
lea r8d, [rdx + 0x64]
lea rcx, [rsp + 0xd1]
call fcn.140018f80
mov dword [rsp + 0xd9], 1
mov dword [rsp + 0xd1], 1
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xd0]
mov edx, 1
lea r8d, [rdx + 0x64]
lea rcx, [rsp + 0x30]
call fcn.140001550
mov ebx, eax
mov dword [rsp + 0x34], eax
test eax, eax
js 0x140006ee3
cmp byte [rsp + 0xb8], 0
jne 0x140006ee3
movzx eax, word [rsp + 0xe7]
mov ecx, 0x800
and ax, cx
cmp r12w, ax
je 0x140006ed4
lea r15, [rsi + 0x2a0]
mov qword [rsp + 0x20], r15
lea r9, [0x140033798]
xor edx, edx
lea r8d, [rdx + 0x17]
lea rcx, [0x1400357f8]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
mov dword [rsp + 0x34], eax
test eax, eax
jns 0x140006ecb
mov rcx, rsi
call fcn.140005c70
mov ebx, r12d
mov dword [rsp + 0x34], ebx
mov rcx, qword [r15]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov edx, 1
mov rcx, rsi
call fcn.140003a80
jmp 0x140006eea
mov ebx, r12d
mov dword [rsp + 0x34], ebx
lea rcx, [rsp + 0x30]
call fcn.140013300
nop
test r14, r14
je 0x140006f04
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test rdi, rdi
je 0x140006f13
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov eax, ebx
jmp 0x140006f1b
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140018f50
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