Function at 0x1400067c0
Capabilities:
Modify service
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x110
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov qword [rsp + 0x148], rbx
mov rsi, rcx
call fcn.140006630
mov ebx, eax
mov dword [rsp + 0x150], eax
lea rcx, [rsi + 0x298]
call fcn.1400137f0
lea rdi, [rsi + 0x12a8]
cmp qword [rdi], 0
jne 0x14000682d
mov qword [rsp + 0x20], rdi
lea r9, [0x140033828]
xor edx, edx
lea r8d, [rdx + 0x17]
lea rcx, [0x140034450]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov rcx, qword [rdi]
test rcx, rcx
je 0x140006851
mov rax, qword [rcx]
call qword [rax + 0x30]
mov rcx, qword [rdi]
mov rax, qword [rcx]
call qword [rax + 0x28]
test eax, eax
js 0x140006851
mov rcx, qword [rdi]
mov rax, qword [rcx]
call qword [rax + 0x38]
xor r12d, r12d
mov dword [rsp + 0x158], r12d
mov qword [rsp + 0x68], r12
mov dword [rsp + 0x70], r12d
mov qword [rsp + 0x78], r12
mov r9d, 0x20019
lea r8, str.SOFTWAREIntelDisplayigfxcui_
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x68]
call fcn.140005d10
mov rdi, qword [rsp + 0x68]
test eax, eax
jne 0x1400068e7
mov dword [rsp + 0x60], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x158]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x80]
xor r8d, r8d
lea rdx, str.Inst
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test rdi, rdi
je 0x1400068e2
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, r12d
mov qword [rsp + 0x68], r12
mov dword [rsp + 0x70], r12d
cmp dword [rsp + 0x158], 0
jne 0x140006930
mov eax, 3
xchg dword [0x14004d4b4], eax
lea rdx, [0x14004d4b0]
mov rcx, qword [0x14004d4a8]
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x12]
mov ecx, dword [0x14004d4d0]
call qword [sym.imp.USER32.dll_PostThreadMessageW]
mov rdi, qword [rsp + 0x68]
jmp 0x140006adf
lea rcx, [rsp + 0x140]
call fcn.1400130d0
nop
mov byte [rsp + 0xb0], 0
xor edx, edx
lea r8d, [rdx + 0x5c]
lea rcx, [rsp + 0xb1]
call fcn.140017a30
mov dword [rsp + 0xb9], 1
mov dword [rsp + 0xb1], 1
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xb0]
mov edx, 1
lea r8d, [rdx + 0x5c]
lea rcx, [rsp + 0x140]
call fcn.140001550
mov ebx, eax
mov dword [rsp + 0x150], eax
test eax, eax
js 0x140006a17
cmp byte [rsp + 0x90], 0
jne 0x140006a17
movzx eax, word [rsp + 0xc7]
mov ecx, 0x800
and ax, cx
cmp r12w, ax
je 0x140006a21
lea r14, [rsi + 0x2a0]
mov qword [rsp + 0x20], r14
lea r9, [0x140033680]
xor edx, edx
lea r8d, [rdx + 0x17]
lea rcx, [0x140034440]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
mov dword [rsp + 0x150], eax
test eax, eax
jns 0x140006a0c
mov rcx, rsi
call fcn.140005940
mov ebx, r12d
mov dword [rsp + 0x150], ebx
mov rcx, qword [r14]
mov rax, qword [rcx]
call qword [rax + 0x18]
jmp 0x140006a21
mov ebx, r12d
mov dword [rsp + 0x150], ebx
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r14, rax
test rax, rax
je 0x140006ad1
mov r8d, 2
lea rdx, [0x14004d2a8]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov r15, rax
test rax, rax
je 0x140006ac7
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
lea rax, str.LocalSystem
mov qword [rsp + 0x40], rax
lea rax, str.SENS
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
lea rax, str.ProfSvc_Group
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
or r9d, 0xffffffff
or r8d, r9d
or edx, r9d
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x140006abe
lea r8, str.Failed_to_change_the_service_config
lea rdx, [0x140033930]
mov rcx, rsi
call fcn.1400059d0
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
lea rcx, [rsp + 0x140]
call fcn.140011920
nop
test rdi, rdi
je 0x140006aee
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov eax, ebx
jmp 0x140006af9
mov rbx, qword [rsp + 0x148]
add rsp, 0x110
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret