Function at 0x140062490
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x60
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x90], rbx
xor edi, edi
mov rax, qword [0x1401370f0]
test rax, rax
jne 0x1400624e6
mov ecx, 0x310
call fcn.140084d88
mov qword [rsp + 0xa0], rax
test rax, rax
je 0x1400624dc
mov rcx, rax
call fcn.140050830
jmp 0x1400624df
mov rax, rdi
mov qword [0x1401370f0], rax
lea r8, str.Spooler
lea rdx, str.StartAService__s_
mov rcx, rax
call fcn.140050c00
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r12, rax
test rax, rax
jne 0x14006256d
mov rbx, qword [0x1401370f0]
test rbx, rbx
jne 0x14006254e
mov ecx, 0x310
call fcn.140084d88
mov qword [rsp + 0xa0], rax
test rax, rax
je 0x140062544
mov rcx, rax
call fcn.140050830
mov rbx, rax
jmp 0x140062547
mov rbx, rdi
mov qword [0x1401370f0], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.OpenSCManager_failed__gle_d_
mov rcx, rbx
call fcn.140050c00
xor eax, eax
jmp 0x1400627c3
mov r8d, 0xf01ff
lea rdx, str.Spooler
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbp, rax
test rax, rax
jne 0x1400625e4
mov rbx, qword [0x1401370f0]
test rbx, rbx
jne 0x1400625c5
mov ecx, 0x310
call fcn.140084d88
mov qword [rsp + 0xa0], rax
test rax, rax
je 0x1400625bb
mov rcx, rax
call fcn.140050830
mov rbx, rax
jmp 0x1400625be
mov rbx, rdi
mov qword [0x1401370f0], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.OpenService_failed__gle_d_
mov rcx, rbx
call fcn.140050c00
xor eax, eax
jmp 0x1400627c3
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x140062654
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x420
je 0x14006264d
mov rax, qword [0x1401370f0]
test rax, rax
jne 0x14006263c
mov ecx, 0x310
call fcn.140084d88
mov qword [rsp + 0xa0], rax
test rax, rax
je 0x140062632
mov rcx, rax
call fcn.140050830
jmp 0x140062635
mov rax, rdi
mov qword [0x1401370f0], rax
lea r8, str.StartService_failed
mov edx, ebx
mov rcx, rax
call fcn.140050e40
xor eax, eax
jmp 0x1400627c3
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x1400626d4
mov rbx, qword [0x1401370f0]
test rbx, rbx
jne 0x1400626b5
mov ecx, 0x310
call fcn.140084d88
mov qword [rsp + 0xa0], rax
test rax, rax
je 0x1400626ab
mov rcx, rax
call fcn.140050830
mov rbx, rax
jmp 0x1400626ae
mov rbx, rdi
mov qword [0x1401370f0], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.QueryServiceStatusEx_failed__gle_d_
mov rcx, rbx
call fcn.140050c00
xor eax, eax
jmp 0x1400627c3
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov ebx, dword [rsp + 0x4c]
mov eax, dword [rsp + 0x3c]
cmp eax, 2
jne 0x140062775
mov r13d, 0x2710
mov eax, 0xcccccccd
mul dword [rsp + 0x50]
shr edx, 3
cmp edx, 0x3e8
jae 0x14006270e
mov edx, 0x3e8
jmp 0x140062715
cmp edx, r13d
cmova edx, r13d
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r11, [rsp + 0x98]
mov qword [rsp + 0x20], r11
mov r9d, 0x24
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x140062771
cmp dword [rsp + 0x4c], ebx
jbe 0x140062758
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov ebx, dword [rsp + 0x4c]
jmp 0x140062766
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, dword [rsp + 0x50]
ja 0x140062771
mov eax, dword [rsp + 0x3c]
cmp eax, 2
je 0x1400626f3
jmp 0x140062775
mov eax, dword [rsp + 0x3c]
cmp eax, 4
je 0x1400627af
call fcn.1400507c0
mov rcx, rax
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x3c]
lea r8, str.Spooler
lea rdx, str.Failed_to_start__s_service.__nCurrent_State:__d_nExit_Code:__d_nService_Specific_Exit_Code:__d_n
call fcn.140050c00
mov edi, 0x507
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret