Function at 0x1400ebda0
Capabilities:
Check for time delay via gettickcount
Start service

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x3a0
mov rax, qword [0x14020cc58]
xor rax, rsp
mov qword [rsp + 0x390], rax
xor edx, edx
mov ebx, ecx
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test rax, rax
mov rsi, rax
je 0x1400ebff0
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x3b0], rbp
call fcn.14017d460
lea rdx, [0x1401b4940]
lea rcx, [rsp + 0x60]
call fcn.140177ed0
call fcn.1400ce420
test rax, rax
je 0x1400ebe21
call fcn.1400ce420
lea rdx, str.___s_
lea rcx, [rsp + 0x60]
mov r8, rax
call fcn.140178b10
mov r8, qword [rsp + 0x68]
cmp byte [r8], 0
je 0x1400ebe4f
nop
movzx eax, byte [r8]
cmp al, 0x5c
je 0x1400ebe3c
cmp al, 0x2f
jne 0x1400ebe40
mov byte [r8], 0x20
add r8, 1
cmp byte [r8], 0
jne 0x1400ebe30
mov r8, qword [rsp + 0x68]
lea rcx, [rsp + 0x180]
mov edx, 0x101
call fcn.14017c650
lea rcx, [rsp + 0x60]
call fcn.1400012c0
lea rdx, [rsp + 0x180]
mov r8d, reloc.WS2_32.dll_recv
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
mov rbp, rax
je 0x1400ebfb2
xor r8d, r8d
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x3b8], rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x1400ebef4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.start_service__08x_n
mov edx, eax
call fcn.1400b3fe0
test ebx, ebx
je 0x1400ebef4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x1400ebef4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [0x140200708]
mov edx, reloc.WS2_32.dll_recv
mov r9, qword [r8 + 0x2090]
mov r8, qword [r8]
xor ecx, ecx
mov dword [rsp + 0x20], eax
call fcn.1400d5b50
lea rcx, str.wait_for_service_state__u..._n
mov edx, 4
call fcn.1400b3fe0
lea rdx, [rsp + 0x180]
mov r8d, 4
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
mov rdi, rax
je 0x1400ebf9f
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, 0xea60
jae 0x1400ebf85
nop
nop
lea rax, [rsp + 0x30]
lea r8, [rsp + 0x38]
mov r9d, 0x24
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [0x140203b50]
test eax, eax
je 0x1400ebf96
cmp dword [rsp + 0x3c], 4
je 0x1400ebf96
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, 0xea60
jb 0x1400ebf40
lea rcx, str.wait_for_service_state__u_timeout_n
mov edx, 4
call fcn.1400b3fe0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x3b8]
jmp 0x1400ebfdd
test ebx, ebx
je 0x1400ebfdd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [0x140200708]
mov edx, reloc.WS2_32.dll_recv
mov r9, qword [r8 + 0x2078]
mov r8, qword [r8]
xor ecx, ecx
mov dword [rsp + 0x20], eax
call fcn.1400d5b50
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbp, qword [rsp + 0x3b0]
jmp 0x1400ec01b
test ebx, ebx
je 0x1400ec01b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [0x140200708]
mov edx, reloc.WS2_32.dll_recv
mov r9, qword [r8 + 0x2088]
mov r8, qword [r8]
xor ecx, ecx
mov dword [rsp + 0x20], eax
call fcn.1400d5b50
mov rcx, qword [rsp + 0x390]
xor rcx, rsp
call fcn.1401a8ec0
mov rbx, qword [rsp + 0x3c0]
add rsp, 0x3a0
pop rsi
ret