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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push r13
push r14
push r15
sub rsp, 0xc0
mov qword [rsp + 0x40], rsp
mov edi, r9d
mov ebx, r8d
mov r13, rdx
mov r15, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, reloc.OLEAUT32.dll_SafeArrayAllocData
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x1400027d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140002b50
mov eax, dword [rsp + 0x54]
cmp eax, 1
jne 0x1400027e9
xor eax, eax
jmp 0x140002b50
cmp eax, 3
jne 0x140002856
nop
mov ecx, dword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r11, [rsp + 0x38]
mov qword [rsp + 0x20], r11
mov r9d, reloc.OLEAUT32.dll_SafeArrayAllocData
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x14000284b
cmp dword [rsp + 0x54], 1
je 0x140002844
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, edi
ja 0x14000283a
cmp dword [rsp + 0x54], 3
je 0x1400027f0
jmp 0x140002856
mov eax, 0x5b4
jmp 0x140002b50
xor eax, eax
jmp 0x140002b50
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140002b50
test ebx, ebx
je 0x140002acf
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x140002acf
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x1400028a5
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140002b50
mov ebx, dword [rsp + 0x34]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
mov qword [rsp + 0x78], rax
test rax, rax
jne 0x1400028d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140002b50
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x34]
mov r8, r14
mov edx, 1
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x14000292c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rdx, [0x140002923]
mov rcx, qword [rsp + 0x40]
call fcn.1400a1b60
nop
nop
mov eax, dword [rsp + 0x30]
jmp 0x140002b50
xor ebx, ebx
mov dword [rsp + 0x48], ebx
cmp ebx, dword [rsp + 0x3c]
jae 0x140002abb
lea rcx, [rbx + rbx*2]
add rcx, rcx
lea rdx, [rsp + 0x88]
mov rax, qword [r14 + rcx*8]
mov qword [rdx], rax
mov rax, qword [r14 + rcx*8 + 8]
mov qword [rdx + 8], rax
mov rax, qword [r14 + rcx*8 + 0x10]
mov qword [rdx + 0x10], rax
mov rax, qword [r14 + rcx*8 + 0x18]
mov qword [rdx + 0x18], rax
mov rax, qword [r14 + rcx*8 + 0x20]
mov qword [rdx + 0x20], rax
mov rax, qword [r14 + rcx*8 + 0x28]
mov qword [rdx + 0x28], rax
mov r8d, reloc.OLEAUT32.dll_SafeArrayAllocData
mov rdx, qword [rsp + 0x88]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov r12, rax
mov qword [rsp + 0x80], rax
test rax, rax
jne 0x1400029cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rdx, [0x1400029c3]
mov rcx, qword [rsp + 0x40]
call fcn.1400a1b60
nop
nop
mov eax, dword [rsp + 0x30]
jmp 0x140002b50
lea r8, [rsp + 0x50]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x140002a10
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rdx, [0x140002a01]
mov rcx, qword [rsp + 0x40]
call fcn.1400a1b60
nop
nop
nop
mov eax, dword [rsp + 0x30]
jmp 0x140002b50
cmp dword [rsp + 0x54], 1
je 0x140002aa6
mov ecx, dword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r11, [rsp + 0x34]
mov qword [rsp + 0x20], r11
mov r9d, reloc.OLEAUT32.dll_SafeArrayAllocData
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x140002a70
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rdx, [0x140002a67]
mov rcx, qword [rsp + 0x40]
call fcn.1400a1b60
nop
nop
nop
mov eax, dword [rsp + 0x30]
jmp 0x140002b50
cmp dword [rsp + 0x54], 1
je 0x140002aa6
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, edi
jbe 0x140002aa1
lea rdx, [0x140002a97]
mov rcx, qword [rsp + 0x40]
call fcn.1400a1b60
nop
nop
nop
mov eax, 0x5b4
jmp 0x140002b50
jmp 0x140002a10
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add ebx, 1
mov dword [rsp + 0x48], ebx
jmp 0x140002932
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 + 0x50]
mov edx, 1
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x140002aee
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140002b50
cmp dword [rsp + 0x54], 1
je 0x140002b4e
mov ecx, dword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r11, [rsp + 0x38]
mov qword [rsp + 0x20], r11
mov r9d, reloc.OLEAUT32.dll_SafeArrayAllocData
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x140002b46
cmp dword [rsp + 0x54], 1
je 0x140002b4e
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, edi
ja 0x140002b3f
cmp dword [rsp + 0x54], 1
jne 0x140002af5
jmp 0x140002b4e
mov eax, 0x5b4
jmp 0x140002b50
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140002b50
xor eax, eax
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
ret