Function at 0x1400068b0
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.140006720
mov ebx, eax
mov dword [rsp + 0x150], eax
lea rcx, [rsi + 0x298]
call fcn.14000f190
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, 0x2001f
lea r8, str.SOFTWAREIntelDisplayigfxcui_
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x68]
call fcn.140005e00
mov rdi, qword [rsp + 0x68]
test eax, eax
jne 0x140006987
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 0x140006982
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 0x1400069d0
mov eax, 3
xchg dword [0x1400464a4], eax
lea rdx, [0x1400464a0]
mov rcx, qword [0x140046498]
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x12]
mov ecx, dword [0x1400464c0]
call qword [sym.imp.USER32.dll_PostThreadMessageW]
mov rdi, qword [rsp + 0x68]
jmp 0x140006b82
lea rcx, [rsp + 0x140]
call fcn.14000ea80
nop
xor edx, edx
lea r8d, [rdx + 0x5c]
lea rcx, [rsp + 0xb4]
call fcn.140013bc0
mov dword [rsp + 0xb0], 0x4c
mov dword [rsp + 0xb8], 1
mov dword [rsp + 0xb4], 1
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xb0]
mov edx, 0x4c
lea r8d, [rdx + 0x14]
lea rcx, [rsp + 0x140]
call fcn.140001540
mov ebx, eax
mov dword [rsp + 0x150], eax
test eax, eax
js 0x140006aba
cmp byte [rsp + 0x90], 0
jne 0x140006aba
movzx eax, word [rsp + 0xc2]
mov ecx, 0x800
and ax, cx
cmp r12w, ax
je 0x140006ac4
lea r14, [rsi + 0x2a0]
mov qword [rsp + 0x20], r14
lea r9, [0x14002e5f0]
xor edx, edx
lea r8d, [rdx + 0x17]
lea rcx, [0x14002f3b0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
mov dword [rsp + 0x150], eax
test eax, eax
jns 0x140006aaf
mov rcx, rsi
call fcn.140005a30
mov ebx, r12d
mov dword [rsp + 0x150], ebx
mov rcx, qword [r14]
mov rax, qword [rcx]
call qword [rax + 0x18]
jmp 0x140006ac4
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 0x140006b74
mov r8d, 2
lea rdx, [0x140046298]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov r15, rax
test rax, rax
je 0x140006b6a
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 0x140006b61
lea r8, str.Failed_to_change_the_service_config
lea rdx, [0x14002e8a0]
mov rcx, rsi
call fcn.140005ac0
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.14000e070
nop
test rdi, rdi
je 0x140006b91
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov eax, ebx
jmp 0x140006b9c
mov rbx, qword [rsp + 0x148]
add rsp, 0x110
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret