Function at 0x14000af90
Capabilities:
Check for time delay via gettickcount
Enumerate services
Query service status
Stop service

Disassembly:
mov dword [rsp + 0x18], r8d
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0xc0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0xf8], rbx
mov rax, qword [0x140030118]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov edi, r8d
movzx ebx, dl
mov r13, rcx
mov qword [rsp + 0x48], rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov dword [rsp + 0x3c], eax
lea rdx, [rsp + 0x90]
mov rcx, qword [r13 + 8]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x14000b002
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14000b2f2
mov eax, dword [rsp + 0x94]
cmp eax, 1
je 0x14000b2f0
cmp eax, 3
jne 0x14000b06b
nop word [rax + rax]
mov ecx, dword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x90]
mov rcx, qword [r13 + 8]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x14000aff7
cmp dword [rsp + 0x94], 1
je 0x14000b2f0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, edi
ja 0x14000b2e9
cmp dword [rsp + 0x94], 3
je 0x14000b020
test bl, bl
je 0x14000b274
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
mov rcx, qword [r13 + 8]
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x14000b274
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x14000aff7
mov ebx, dword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8d, ebx
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14000aff7
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x30]
mov r8, r14
mov edx, 1
mov rcx, qword [r13 + 8]
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x14000b11a
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14000b2f2
xor r12d, r12d
mov dword [rsp + 0x38], r12d
cmp r12d, dword [rsp + 0x34]
jae 0x14000b249
lea rdx, [r12 + r12*2]
add rdx, rdx
mov rax, qword [r14 + rdx*8 + 8]
mov qword [rsp + 0x68], rax
mov rax, qword [r14 + rdx*8 + 0x10]
mov qword [rsp + 0x70], rax
mov rax, qword [r14 + rdx*8 + 0x18]
mov qword [rsp + 0x78], rax
mov rax, qword [r14 + rdx*8 + 0x20]
mov qword [rsp + 0x80], rax
mov rax, qword [r14 + rdx*8 + 0x28]
mov qword [rsp + 0x88], rax
mov r8d, 0x24
mov rdx, qword [r14 + rdx*8]
mov rcx, qword [r13]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
jne 0x14000b198
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14000b2f2
lea r8, [rsp + 0x90]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x14000b1c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14000b2f2
cmp dword [rsp + 0x94], 1
je 0x14000b217
mov ecx, dword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x90]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x14000b1f7
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14000b2f2
cmp dword [rsp + 0x94], 1
je 0x14000b217
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, edi
jbe 0x14000b1c0
mov eax, 0x5b4
jmp 0x14000b2f2
jmp 0x14000b238
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
inc r12d
jmp 0x14000b11d
jmp 0x14000b260
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r8, [rsp + 0x90]
mov edx, 1
mov rcx, qword [r13 + 8]
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x14000aff7
cmp dword [rsp + 0x94], 1
je 0x14000b2f0
nop dword [rax]
mov ecx, dword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x90]
mov rcx, qword [r13 + 8]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x14000aff7
cmp dword [rsp + 0x94], 1
je 0x14000b2f0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, edi
ja 0x14000b2e9
cmp dword [rsp + 0x94], 1
jne 0x14000b2a0
jmp 0x14000b2f0
mov eax, 0x5b4
jmp 0x14000b2f2
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14000fd60
mov rbx, qword [rsp + 0xf8]
add rsp, 0xc0
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret