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

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x60], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x4c], 0
mov dword [rsp + 0x44], 0
mov r8d, 0xf003f
lea rdx, str.ServicesActive
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x4c], eax
cmp qword [rsp + 0x58], 0
jne 0x14004d229
xor eax, eax
jmp 0x14004d600
mov r8d, 0xf01ff
lea rdx, str.Spooler
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x4c], eax
cmp qword [rsp + 0x38], 0
jne 0x14004d26a
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x14004d600
mov r8d, 0x24
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.140030610
lea r11, [rsp + 0x48]
mov qword [rsp + 0x20], r11
mov r9d, 0x24
lea r8, [rsp + 0x68]
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov dword [rsp + 0x44], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x44], 1
je 0x14004d2d0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x14004d600
cmp dword [rsp + 0x6c], 1
je 0x14004d2fb
cmp dword [rsp + 0x6c], 3
je 0x14004d2fb
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x14004d600
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x7c]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x6c], 3
jne 0x14004d434
xor edx, edx
mov eax, dword [rsp + 0x80]
mov ecx, 0xa
div ecx
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0x3e8
jae 0x14004d340
mov dword [rsp + 0x40], 0x3e8
jmp 0x14004d352
cmp dword [rsp + 0x40], 0x2710
jbe 0x14004d352
mov dword [rsp + 0x40], 0x2710
mov dword [rsp + 0x50], 0
jmp 0x14004d369
mov eax, dword [rsp + 0x50]
add eax, 0x1f4
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x50], eax
jae 0x14004d38d
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0xa0]
call fcn.14004cdd0
jmp 0x14004d35c
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rsp + 0x68]
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov dword [rsp + 0x44], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x44], 1
je 0x14004d3e1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x14004d600
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x7c], eax
jbe 0x14004d3ff
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x7c]
mov dword [rsp + 0x30], eax
jmp 0x14004d42f
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rsp + 0x60]
cmp eax, dword [rsp + 0x80]
jbe 0x14004d42f
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x14004d600
jmp 0x14004d30d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
mov dword [rsp + 0x44], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x44], 1
je 0x14004d476
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x14004d600
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rsp + 0x68]
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov dword [rsp + 0x44], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x44], 1
je 0x14004d4ca
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x14004d600
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x7c]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x6c], 2
jne 0x14004d5cd
xor edx, edx
mov eax, dword [rsp + 0x80]
mov ecx, 0xa
div ecx
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0x3e8
jae 0x14004d50f
mov dword [rsp + 0x40], 0x3e8
jmp 0x14004d521
cmp dword [rsp + 0x40], 0x2710
jbe 0x14004d521
mov dword [rsp + 0x40], 0x2710
mov dword [rsp + 0x50], 0
jmp 0x14004d538
mov eax, dword [rsp + 0x50]
add eax, 0x1f4
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x50], eax
jae 0x14004d55c
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0xa0]
call fcn.14004cdd0
jmp 0x14004d52b
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rsp + 0x68]
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov dword [rsp + 0x44], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x44], 1
je 0x14004d595
jmp 0x14004d5cd
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x7c], eax
jbe 0x14004d5b3
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x7c]
mov dword [rsp + 0x30], eax
jmp 0x14004d5c8
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rsp + 0x60]
cmp eax, dword [rsp + 0x80]
jbe 0x14004d5c8
jmp 0x14004d5cd
jmp 0x14004d4dc
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [rsp + 0x6c], 4
je 0x14004d5f4
mov dword [rsp + 0x44], 0
jmp 0x14004d5fc
mov dword [rsp + 0x44], 1
mov eax, dword [rsp + 0x44]
add rsp, 0x98
ret