Function at 0x140002140
Capabilities:
Query service status
Start service
Stop service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push r14
push r15
lea rbp, [rsp - 0x770]
sub rsp, 0x870
mov rax, qword [0x14003e020]
xor rax, rsp
mov qword [rbp + 0x760], rax
movzx r14d, dl
lea rcx, [rsp + 0x60]
xor edx, edx
mov r8d, 0x800
xor r15b, r15b
call fcn.1400095e0
lea r9, str.Spooler
lea r8, str.StartStopService::Service_Name
lea rdx, str._s:__s
lea rcx, [rsp + 0x60]
call fcn.1400059d0
lea rcx, [rsp + 0x60]
call fcn.140001cf0
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
jne 0x14000220f
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x800
mov ebx, eax
call fcn.1400095e0
mov r9d, ebx
lea r8, str.StartStopService::OpenSCManager___Failed
lea rdx, str._s_:_Code:__ul
lea rcx, [rsp + 0x60]
call fcn.1400059d0
lea rcx, [rsp + 0x60]
call fcn.140001cf0
xor al, al
jmp 0x14000251a
mov r8d, 0xf003f
mov qword [rsp + 0x890], rdi
lea rdx, str.Spooler
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x14000227b
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x800
mov ebx, eax
call fcn.1400095e0
mov r9d, ebx
lea r8, str.StartStopService::OpenService___Failed
lea rdx, str._s_:_Code:__ul
lea rcx, [rsp + 0x60]
call fcn.1400059d0
lea rcx, [rsp + 0x60]
call fcn.140001cf0
xor al, al
jmp 0x140002512
lea rax, [rsp + 0x30]
mov r9d, 0x24
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x1400022de
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x800
mov ebx, eax
call fcn.1400095e0
mov r9d, ebx
lea r8, str.StartStopService::QueryServiceStatusEx___Failed
lea rdx, str._s_:_Code:__ul
lea rcx, [rsp + 0x60]
call fcn.1400059d0
lea rcx, [rsp + 0x60]
call fcn.140001cf0
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x800
call fcn.1400095e0
mov r9d, dword [rsp + 0x3c]
lea r8, str.StartStopService::Service_status_is
lea rdx, str._s_:_Code:__ul
lea rcx, [rsp + 0x60]
call fcn.1400059d0
lea rcx, [rsp + 0x60]
call fcn.140001cf0
cmp dword [rsp + 0x3c], 4
jne 0x140002452
test r14b, r14b
je 0x140002452
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x800
call fcn.1400095e0
lea r9, [0x14003809c]
lea r8, str.StartStopService::Trying_to_stop_Service
lea rdx, str._s:__s
lea rcx, [rsp + 0x60]
call fcn.1400059d0
lea rcx, [rsp + 0x60]
call fcn.140001cf0
lea r8, [rsp + 0x38]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x14000242c
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x800
call fcn.1400095e0
lea r8, str.StartStopService::ControlService__:_Service_stopped_successfully
lea r9, [0x14003809c]
lea rdx, str._s:__s
lea rcx, [rsp + 0x60]
call fcn.1400059d0
lea rcx, [rsp + 0x60]
call fcn.140001cf0
lea rax, [rsp + 0x30]
mov r9d, 0x24
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
mov r15b, 1
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x140002409
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x800
mov ebx, eax
call fcn.1400095e0
lea r8, str.StartStopService::QueryServiceStatusEx___Failed_after_stopping_service
jmp 0x1400024de
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x800
call fcn.1400095e0
mov r9d, dword [rsp + 0x3c]
lea r8, str.StartStopService::Service_status_is__This_might_not_be_true_if_service_just_changed_status_
jmp 0x1400024e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x800
mov ebx, eax
call fcn.1400095e0
lea r8, str.StartStopService::ControlService___Failed
jmp 0x1400024de
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x800
call fcn.1400095e0
lea r9, [0x14003809c]
lea r8, str.StartStopService::Trying_to_Start_Service
lea rdx, str._s:__s
lea rcx, [rsp + 0x60]
call fcn.1400059d0
lea rcx, [rsp + 0x60]
call fcn.140001cf0
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x1400024bd
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x800
call fcn.1400095e0
lea r8, str.StartStopService::ControlService__:_Service_started_successfully
jmp 0x14000239a
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x800
mov ebx, eax
call fcn.1400095e0
lea r8, str.StartStopService::StartService___Failed
mov r9d, ebx
lea rdx, str._s_:_Code:__ul
lea rcx, [rsp + 0x60]
call fcn.1400059d0
lea rcx, [rsp + 0x60]
call fcn.140001cf0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movzx eax, r15b
mov rdi, qword [rsp + 0x890]
mov rcx, qword [rbp + 0x760]
xor rcx, rsp
call fcn.140006fd0
lea r11, [rsp + 0x870]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret