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

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x3a0
mov rax, qword [0x14020cc08]
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 0x1400ebe00
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x3b0], rbp
call fcn.1400012c0
lea rdx, [0x1401b4900]
lea rcx, [rsp + 0x60]
call fcn.140178250
call fcn.1400ce2b0
test rax, rax
je 0x1400ebc31
call fcn.1400ce2b0
lea rdx, str.___s_
lea rcx, [rsp + 0x60]
mov r8, rax
call fcn.140178e90
mov r8, qword [rsp + 0x68]
cmp byte [r8], 0
je 0x1400ebc5f
nop
movzx eax, byte [r8]
cmp al, 0x5c
je 0x1400ebc4c
cmp al, 0x2f
jne 0x1400ebc50
mov byte [r8], 0x20
add r8, 1
cmp byte [r8], 0
jne 0x1400ebc40
mov r8, qword [rsp + 0x68]
lea rcx, [rsp + 0x180]
mov edx, 0x101
call fcn.14017c8b0
lea rcx, [rsp + 0x60]
call fcn.140177510
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 0x1400ebdc2
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 0x1400ebd04
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.start_service__08x_n
mov edx, eax
call fcn.1400b3e90
test ebx, ebx
je 0x1400ebd04
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x1400ebd04
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [0x1402006b8]
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.1400d5ce0
lea rcx, str.wait_for_service_state__u..._n
mov edx, 4
call fcn.1400b3e90
lea rdx, [rsp + 0x180]
mov r8d, 4
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
mov rdi, rax
je 0x1400ebdaf
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, 0xea60
jae 0x1400ebd95
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 [0x140203b00]
test eax, eax
je 0x1400ebda6
cmp dword [rsp + 0x3c], 4
je 0x1400ebda6
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, 0xea60
jb 0x1400ebd50
lea rcx, str.wait_for_service_state__u_timeout_n
mov edx, 4
call fcn.1400b3e90
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 0x1400ebded
test ebx, ebx
je 0x1400ebded
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [0x1402006b8]
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.1400d5ce0
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbp, qword [rsp + 0x3b0]
jmp 0x1400ebe2b
test ebx, ebx
je 0x1400ebe2b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [0x1402006b8]
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.1400d5ce0
mov rcx, qword [rsp + 0x390]
xor rcx, rsp
call fcn.1401a8fd0
mov rbx, qword [rsp + 0x3c0]
add rsp, 0x3a0
pop rsi
ret