Function at 0x14000dab0
Capabilities:
Modify service
Query service status
Start service

Disassembly:
mov byte [rsp + 0x20], r9b
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
mov byte [rsp + 0x68], 0
mov r8d, 0xf003f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
je 0x14000dd3d
mov r8d, 0xf01ff
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
je 0x14000dd1e
mov dword [rsp + 0x7c], 0
lea r9, [rsp + 0x7c]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
cmp dword [rsp + 0x7c], 0
je 0x14000dcff
mov eax, dword [rsp + 0x7c]
shl eax, 1
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x80], rax
mov r8d, dword [rsp + 0x7c]
shl r8d, 1
lea r9, [rsp + 0x7c]
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x14000dcdd
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x14000dba8
mov dword [rsp + 0x8c], 1
mov rax, qword [rsp + 0x80]
cmp dword [rax], 1
jne 0x14000dbf1
mov rax, qword [rsp + 0x80]
cmp dword [rax + 4], 1
jne 0x14000dbf1
mov rax, qword [rsp + 0x80]
cmp dword [rax + 8], 1
jne 0x14000dbf1
mov rdx, qword [rsp + 0x80]
mov rdx, qword [rdx + 0x10]
mov rcx, qword [rsp + 0xc8]
call fcn.14000da30
movzx eax, al
test eax, eax
jne 0x14000dc6f
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x20], rax
mov r9d, 1
mov r8d, 1
mov edx, 1
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
je 0x14000dc62
cmp dword [rsp + 0x8c], 1
je 0x14000dc6f
mov dword [rsp + 0xa8], 0
jmp 0x14000dc7a
mov dword [rsp + 0xa8], 1
movzx eax, byte [rsp + 0xa8]
mov byte [rsp + 0x68], al
movzx eax, byte [rsp + 0xd8]
test eax, eax
je 0x14000dcdd
movzx eax, byte [rsp + 0x68]
test eax, eax
je 0x14000dcc6
cmp dword [rsp + 0x8c], 4
je 0x14000dcb9
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x14000dcc6
mov dword [rsp + 0xac], 1
jmp 0x14000dcd1
mov dword [rsp + 0xac], 0
movzx eax, byte [rsp + 0xac]
mov byte [rsp + 0x68], al
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x78], eax
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_SetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x78], eax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_SetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x78], eax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov al, byte [rsp + 0x68]
add rsp, 0xb8
ret