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

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0xc0
mov qword [rax - 0x70], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1400227c0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov esi, r8d
mov r14, rdx
mov rbx, rcx
mov qword [rsp + 0x50], rcx
call fcn.1400135a4
mov rdx, rax
lea rcx, [rsp + 0x58]
call sub.mfc110.dll_Ordinal_322
nop
and dword [rsp + 0x20], 0
mov rcx, rbx
call fcn.1400062ec
nop
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rdi, rax
mov qword [rsp + 0x40], rax
mov r8d, 0x34
mov rdx, r14
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rbx, rax
mov qword [rsp + 0x30], rax
mov rcx, rax
test esi, esi
je 0x140004618
xor esi, esi
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x140004584
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x140004566
mov eax, esi
inc esi
cmp eax, 0xa
jge 0x140004566
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x140004533
cmp esi, 0xa
jl 0x140004584
mov dword [rsp + 0x38], 0x80004005
lea rdx, [0x14001f8a8]
lea rcx, [rsp + 0x38]
call sub.MSVCR110.dll__CxxThrowException
xor edx, edx
lea r8d, [rdx + 0x1c]
lea rcx, [rsp + 0x90]
call sub.MSVCR110.dll_memset
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea esi, [rax + 0x3a98]
lea rdx, [rsp + 0x90]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1400045d1
mov dword [rsp + 0x3c], 0x80004005
lea rdx, [0x14001f8a8]
lea rcx, [rsp + 0x3c]
call sub.MSVCR110.dll__CxxThrowException
cmp dword [rsp + 0x94], 2
jne 0x14000466f
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, esi
jbe 0x14000460b
mov ebx, 0x5b4
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rsp + 0x24], ebx
lea rdx, [0x14001f8a8]
lea rcx, [rsp + 0x24]
call sub.MSVCR110.dll__CxxThrowException
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400045a3
lea r8, [rsp + 0x90]
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_ControlService]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea esi, [rax + 0x3a98]
lea rdx, [rsp + 0x90]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140004665
mov dword [rsp + 0x28], 0x80004005
lea rdx, [0x14001f8a8]
lea rcx, [rsp + 0x28]
call sub.MSVCR110.dll__CxxThrowException
cmp dword [rsp + 0x94], 1
jne 0x140004671
jmp 0x1400046a8
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, esi
jbe 0x1400046df
mov ebx, 0x5b4
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rsp + 0x2c], ebx
lea rdx, [0x14001f8a8]
lea rcx, [rsp + 0x2c]
call sub.MSVCR110.dll__CxxThrowException
nop
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x1400046b6
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rdi, rdi
je 0x1400046c4
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x50]
call fcn.140007b18
nop
lea rcx, [rsp + 0x58]
call sub.mfc110.dll_Ordinal_1030
mov eax, dword [rsp + 0x20]
jmp 0x1400046ef
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140004637
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140011780
mov rbx, qword [rsp + 0xf0]
add rsp, 0xc0
pop r14
pop rdi
pop rsi
ret