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

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x3a0
mov rax, qword [0x1401f22c8]
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 0x1400dadf0
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x3b0], rbp
call fcn.1401617b0
lea rdx, [0x14019e570]
lea rcx, [rsp + 0x60]
call fcn.1401624e0
call fcn.1400bd380
test rax, rax
je 0x1400dac21
call fcn.1400bd380
lea rdx, str.___s_
lea rcx, [rsp + 0x60]
mov r8, rax
call fcn.140163070
mov r8, qword [rsp + 0x68]
cmp byte [r8], 0
je 0x1400dac4f
nop
movzx eax, byte [r8]
cmp al, 0x5c
je 0x1400dac3c
cmp al, 0x2f
jne 0x1400dac40
mov byte [r8], 0x20
add r8, 1
cmp byte [r8], 0
jne 0x1400dac30
mov r8, qword [rsp + 0x68]
lea rcx, [rsp + 0x180]
mov edx, 0x101
call fcn.140166980
lea rcx, [rsp + 0x60]
call fcn.140001150
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 0x1400dadb2
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 0x1400dacf4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.start_service__08x_n
mov edx, eax
call fcn.1400b1c70
test ebx, ebx
je 0x1400dacf4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x1400dacf4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [0x1401e5d78]
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.1400c4aa0
lea rcx, str.wait_for_service_state__u..._n
mov edx, 4
call fcn.1400b1c70
lea rdx, [rsp + 0x180]
mov r8d, 4
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
mov rdi, rax
je 0x1400dad9f
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, 0xea60
jae 0x1400dad85
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 [0x1401e91c0]
test eax, eax
je 0x1400dad96
cmp dword [rsp + 0x3c], 4
je 0x1400dad96
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, 0xea60
jb 0x1400dad40
lea rcx, str.wait_for_service_state__u_timeout_n
mov edx, 4
call fcn.1400b1c70
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 0x1400daddd
test ebx, ebx
je 0x1400daddd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [0x1401e5d78]
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.1400c4aa0
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbp, qword [rsp + 0x3b0]
jmp 0x1400dae1b
test ebx, ebx
je 0x1400dae1b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8, qword [0x1401e5d78]
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.1400c4aa0
mov rcx, qword [rsp + 0x390]
xor rcx, rsp
call fcn.1401931f0
mov rbx, qword [rsp + 0x3c0]
add rsp, 0x3a0
pop rsi
ret