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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x110
mov qword [rsp + 0xe0], 0xfffffffffffffffe
mov rax, qword [0x1403c6400]
xor rax, rsp
mov qword [rsp + 0x108], rax
lea rax, [rsp + 0xe8]
mov rdi, rax
xor eax, eax
mov ecx, 0x1c
rep stosb byte [rdi], al
mov dword [rsp + 0x5c], 0
mov dword [rsp + 0x60], 0
mov r8d, 0xf003f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x1400337c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x4c], eax
xor r8d, r8d
lea rdx, [rsp + 0x4c]
lea rcx, [rsp + 0x78]
call fcn.140029d10
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x128]
call fcn.140007070
nop
lea rcx, [rsp + 0x78]
call fcn.1400031c0
xor eax, eax
jmp 0x140033bd5
mov r8d, 0xf01ff
mov rdx, qword [rsp + 0x120]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140033847
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x90]
call fcn.140029d10
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x88], rax
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x128]
call fcn.140007070
nop
lea rcx, [rsp + 0x90]
call fcn.1400031c0
xor eax, eax
jmp 0x140033bd5
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x1400338fc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x38], eax
cmp qword [rsp + 0x30], 0
je 0x14003387c
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp qword [rsp + 0x28], 0
je 0x14003388f
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [rsp + 0x38], 0x420
jne 0x1400338a5
mov eax, 1
jmp 0x140033bd5
xor r8d, r8d
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0xa8]
call fcn.140029d10
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xa0], rax
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x128]
call fcn.140007070
nop
lea rcx, [rsp + 0xa8]
call fcn.1400031c0
xor eax, eax
jmp 0x140033bd5
lea rdx, [rsp + 0xe8]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x14003399e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x54], eax
xor r8d, r8d
lea rdx, [rsp + 0x54]
lea rcx, [rsp + 0xc0]
call fcn.140029d10
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xb8], rax
mov rdx, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x128]
call fcn.140007070
nop
lea rcx, [rsp + 0xc0]
call fcn.1400031c0
cmp qword [rsp + 0x30], 0
je 0x140033984
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp qword [rsp + 0x28], 0
je 0x140033997
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x140033bd5
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0xfc]
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x64], 0
cmp dword [rsp + 0xec], 2
jne 0x140033ac1
xor edx, edx
mov eax, dword [rsp + 0x100]
mov ecx, 0xa
div ecx
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x3e8
jae 0x1400339f1
mov dword [rsp + 0x20], 0x3e8
jmp 0x140033a03
cmp dword [rsp + 0x20], 0x2710
jbe 0x140033a03
mov dword [rsp + 0x20], 0x2710
mov ecx, dword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0xe8]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140033a80
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x58], eax
xor r8d, r8d
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0xd8]
call fcn.140029d10
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0xd0], rax
mov rdx, qword [rsp + 0xd0]
mov rcx, qword [rsp + 0x128]
call fcn.140007070
nop
lea rcx, [rsp + 0xd8]
call fcn.1400031c0
jmp 0x140033ac1
mov eax, dword [rsp + 0x3c]
cmp dword [rsp + 0xfc], eax
jbe 0x140033aa4
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0xfc]
mov dword [rsp + 0x3c], eax
jmp 0x140033abc
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rsp + 0x40]
imul ecx, dword [rsp + 0x100], 0xa
cmp eax, ecx
jbe 0x140033abc
jmp 0x140033ac1
jmp 0x1400339bb
cmp dword [rsp + 0xec], 4
je 0x140033adf
cmp dword [rsp + 0xec], 2
je 0x140033adf
mov dword [rsp + 0x44], 0
jmp 0x140033ae7
mov dword [rsp + 0x44], 1
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0
jne 0x140033bab
mov rcx, qword [rsp + 0x128]
call fcn.140003fd0
test eax, eax
jne 0x140033bab
mov eax, dword [rsp + 0xec]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 2
je 0x140033b81
cmp dword [rsp + 0x24], 3
je 0x140033b97
cmp dword [rsp + 0x24], 5
je 0x140033b3f
cmp dword [rsp + 0x24], 6
je 0x140033b55
cmp dword [rsp + 0x24], 7
je 0x140033b6b
jmp 0x140033bab
lea rdx, [0x1402e3958]
mov rcx, qword [rsp + 0x128]
call fcn.140004120
jmp 0x140033bab
lea rdx, [0x1402e3990]
mov rcx, qword [rsp + 0x128]
call fcn.140004120
jmp 0x140033bab
lea rdx, [0x1402e39c0]
mov rcx, qword [rsp + 0x128]
call fcn.140004120
jmp 0x140033bab
lea rdx, [0x1402e39f0]
mov rcx, qword [rsp + 0x128]
call fcn.140004120
jmp 0x140033bab
lea rdx, [0x1402e3a28]
mov rcx, qword [rsp + 0x128]
call fcn.140004120
cmp qword [rsp + 0x30], 0
je 0x140033bbe
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp qword [rsp + 0x28], 0
je 0x140033bd1
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x108]
xor rcx, rsp
call fcn.140263a60
add rsp, 0x110
pop rdi
ret