Function at 0x140002b70
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 0x140002bd9
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140002f50
mov eax, dword [rsp + 0x54]
cmp eax, 1
jne 0x140002be9
xor eax, eax
jmp 0x140002f50
cmp eax, 3
jne 0x140002c56
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 0x140002c4b
cmp dword [rsp + 0x54], 1
je 0x140002c44
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, edi
ja 0x140002c3a
cmp dword [rsp + 0x54], 3
je 0x140002bf0
jmp 0x140002c56
mov eax, 0x5b4
jmp 0x140002f50
xor eax, eax
jmp 0x140002f50
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140002f50
test ebx, ebx
je 0x140002ecf
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 0x140002ecf
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x140002ca5
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140002f50
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 0x140002cd8
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140002f50
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 0x140002d2c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rdx, [0x140002d23]
mov rcx, qword [rsp + 0x40]
call fcn.140092140
nop
nop
mov eax, dword [rsp + 0x30]
jmp 0x140002f50
xor ebx, ebx
mov dword [rsp + 0x48], ebx
cmp ebx, dword [rsp + 0x3c]
jae 0x140002ebb
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 0x140002dcc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rdx, [0x140002dc3]
mov rcx, qword [rsp + 0x40]
call fcn.140092140
nop
nop
mov eax, dword [rsp + 0x30]
jmp 0x140002f50
lea r8, [rsp + 0x50]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x140002e10
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rdx, [0x140002e01]
mov rcx, qword [rsp + 0x40]
call fcn.140092140
nop
nop
nop
mov eax, dword [rsp + 0x30]
jmp 0x140002f50
cmp dword [rsp + 0x54], 1
je 0x140002ea6
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 0x140002e70
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rdx, [0x140002e67]
mov rcx, qword [rsp + 0x40]
call fcn.140092140
nop
nop
nop
mov eax, dword [rsp + 0x30]
jmp 0x140002f50
cmp dword [rsp + 0x54], 1
je 0x140002ea6
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, edi
jbe 0x140002ea1
lea rdx, [0x140002e97]
mov rcx, qword [rsp + 0x40]
call fcn.140092140
nop
nop
nop
mov eax, 0x5b4
jmp 0x140002f50
jmp 0x140002e10
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add ebx, 1
mov dword [rsp + 0x48], ebx
jmp 0x140002d32
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 0x140002eee
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140002f50
cmp dword [rsp + 0x54], 1
je 0x140002f4e
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 0x140002f46
cmp dword [rsp + 0x54], 1
je 0x140002f4e
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, edi
ja 0x140002f3f
cmp dword [rsp + 0x54], 1
jne 0x140002ef5
jmp 0x140002f4e
mov eax, 0x5b4
jmp 0x140002f50
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140002f50
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