Function at 0x1400ebdd0
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 0x1400ec020
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x3b0], rbp
call fcn.140177280
lea rdx, [0x1401b4940]
lea rcx, [rsp + 0x60]
call fcn.140177fb0
call fcn.1400ce420
test rax, rax
je 0x1400ebe51
call fcn.1400ce420
lea rdx, str.___s_
lea rcx, [rsp + 0x60]
mov r8, rax
call fcn.140178bf0
mov r8, qword [rsp + 0x68]
cmp byte [r8], 0
je 0x1400ebe7f
nop
movzx eax, byte [r8]
cmp al, 0x5c
je 0x1400ebe6c
cmp al, 0x2f
jne 0x1400ebe70
mov byte [r8], 0x20
add r8, 1
cmp byte [r8], 0
jne 0x1400ebe60
mov r8, qword [rsp + 0x68]
lea rcx, [rsp + 0x180]
mov edx, 0x101
call fcn.14017c730
lea rcx, [rsp + 0x60]
call fcn.14017d580
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 0x1400ebfe2
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 0x1400ebf24
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.start_service__08x_n
mov edx, eax
call fcn.1400b3fb0
test ebx, ebx
je 0x1400ebf24
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x1400ebf24
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.1400d5b60
lea rcx, str.wait_for_service_state__u..._n
mov edx, 4
call fcn.1400b3fb0
lea rdx, [rsp + 0x180]
mov r8d, 4
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
mov rdi, rax
je 0x1400ebfcf
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, 0xea60
jae 0x1400ebfb5
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 0x1400ebfc6
cmp dword [rsp + 0x3c], 4
je 0x1400ebfc6
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, 0xea60
jb 0x1400ebf70
lea rcx, str.wait_for_service_state__u_timeout_n
mov edx, 4
call fcn.1400b3fb0
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 0x1400ec00d
test ebx, ebx
je 0x1400ec00d
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.1400d5b60
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbp, qword [rsp + 0x3b0]
jmp 0x1400ec04b
test ebx, ebx
je 0x1400ec04b
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.1400d5b60
mov rcx, qword [rsp + 0x390]
xor rcx, rsp
call fcn.1401a8fb0
mov rbx, qword [rsp + 0x3c0]
add rsp, 0x3a0
pop rsi
ret