Function at 0x14002afe0
Capabilities:
Enumerate services
Query service status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x1401b6838]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov rdi, rcx
lea rax, [rbp + 0x64]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rbp + 0x68]
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.DLL_QueryServiceStatusEx]
test eax, eax
jne 0x14002b0b8
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov edi, eax
lea rcx, [rsp + 0x40]
call fcn.140016f80
nop
lea rbx, [rax + 0x10]
lea rdx, str.Cannot_query_service_state_0x
mov rcx, rbx
call fcn.140018e60
mov rcx, qword [rbx]
movsxd rdx, dword [rcx + 4]
mov eax, dword [rdx + rbx + 0x18]
and eax, 0xfffff9ff
bts eax, 0xb
mov dword [rdx + rbx + 0x18], eax
mov edx, edi
mov rcx, rbx
call fcn.14002a540
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
mov eax, dword [rcx + rbx + 0x18]
and eax, 0xfffff3ff
bts eax, 9
mov dword [rcx + rbx + 0x18], eax
mov rcx, rbx
call fcn.140018000
nop
lea rcx, [rsp + 0x40]
call fcn.1400170c0
mov eax, edi
jmp 0x14002b46a
mov eax, dword [rbp + 0x6c]
cmp eax, 1
jne 0x14002b0f6
lea rcx, [rsp + 0x40]
call fcn.140016f80
nop
lea rbx, [rax + 0x10]
lea rdx, str.Service_is_already_stopped
mov rcx, rbx
call fcn.140018e60
mov rcx, rbx
call fcn.140018000
nop
lea rcx, [rsp + 0x40]
call fcn.1400170c0
jmp 0x14002b468
cmp eax, 3
jne 0x14002b108
mov rcx, rdi
call fcn.14002bc70
jmp 0x14002b46a
mov rax, qword gs:[0x58]
mov r14, qword [rax]
mov r12d, 0x254
mov eax, dword [r12 + r14]
mov edx, 0x250
test al, 1
jne 0x14002b138
or eax, 1
mov dword [r12 + r14], eax
lea rcx, [r14 + rdx]
call fcn.14000e450
nop
lea rbx, [0x1401c6980]
cmp byte [r14 + rdx + 1], 0
je 0x14002b17e
lea rdx, str.Stopping_dependent_services.
mov rcx, rbx
call fcn.140014760
mov rax, qword [0x1401c6980]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov dl, 0xa
call fcn.1400165f0
movzx edx, al
mov rcx, rbx
call fcn.140016490
mov rcx, rbx
call fcn.140014250
xor r13d, r13d
mov ebx, r13d
mov qword [rsp + 0x30], rbx
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x14002b19b
call fcn.14012e940
mov qword [rdi + 0x10], r13
lea r15, [rdi + 0x20]
mov qword [rsp + 0x28], r15
lea rax, [rbp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
mov rcx, qword [rdi + 8]
call qword [sym.imp.ADVAPI32.DLL_EnumDependentServicesW]
test eax, eax
jne 0x14002b2a1
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
cmp eax, 0xea
je 0x14002b1e1
test eax, eax
jne 0x14002b1f5
jmp 0x14002b2a1
mov ecx, dword [rbp + 0x60]
call fcn.14012f764
mov qword [rdi + 0x10], rax
test rax, rax
jne 0x14002b22d
lea esi, [rax + 0xe]
lea rcx, [rsp + 0x40]
call fcn.140016f80
nop
lea rbx, [rax + 0x10]
lea rdx, str.Cannot_stop_all_dependent_services
mov rcx, rbx
call fcn.140018e60
mov rcx, rbx
call fcn.140018000
nop
lea rcx, [rsp + 0x40]
call fcn.1400170c0
mov eax, esi
jmp 0x14002b46a
mov r8d, dword [rbp + 0x60]
xor edx, edx
mov rcx, rax
call fcn.140123210
mov r8, qword [rdi + 0x10]
mov qword [rdi + 0x18], r8
mov qword [rsp + 0x28], r15
lea rax, [rbp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp + 0x60]
mov edx, 1
mov rcx, qword [rdi + 8]
call qword [sym.imp.ADVAPI32.DLL_EnumDependentServicesW]
test eax, eax
jne 0x14002b27f
mov rcx, qword [rdi + 0x10]
call fcn.14012e940
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], r13
mov dword [rdi + 0x20], r13d
jmp 0x14002b2a1
mov dword [rdi + 0x24], r13d
cmp dword [rdi + 0x20], ebx
jbe 0x14002b2a1
mov rcx, qword [rdi + 0x18]
mov rcx, qword [rcx]
lea rdx, [rsp + 0x30]
call fcn.14002ad90
mov rbx, qword [rsp + 0x30]
inc dword [rdi + 0x24]
test rbx, rbx
je 0x14002b2fb
mov rcx, rbx
call fcn.14002afe0
mov rcx, qword [rbx]
test rcx, rcx
je 0x14002b2bc
call qword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x14002b2cb
call qword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
mov edx, 0x28
mov rcx, rbx
call fcn.14012e940
mov eax, dword [rdi + 0x24]
cmp eax, dword [r15]
jb 0x14002b2ea
mov rbx, r13
mov qword [rsp + 0x30], rbx
jmp 0x14002b2a1
lea r8, [rax + rax*2]
add r8, r8
mov rcx, qword [rdi + 0x18]
mov rcx, qword [rcx + r8*8]
jmp 0x14002b28f
lea r8, [rbp + 0x68]
mov edx, 1
mov rcx, qword [rdi + 8]
call qword [sym.imp.ADVAPI32.DLL_ControlService]
test eax, eax
jne 0x14002b3c0
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
lea rax, [rbp + 0x64]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rbp + 0x68]
xor edx, edx
mov rcx, qword [rdi + 8]
call qword [sym.imp.ADVAPI32.DLL_QueryServiceStatusEx]
test eax, eax
je 0x14002b3c0
mov ecx, dword [rbp + 0x6c]
dec ecx
test ecx, 0xfffffffd
je 0x14002b3c0
lea rcx, [rsp + 0x40]
call fcn.140016f80
nop
lea rbx, [rax + 0x10]
lea rdx, str.ControlService_failed:_0x
mov rcx, rbx
call fcn.140018e60
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
mov eax, dword [rcx + rbx + 0x18]
and eax, 0xfffff9ff
bts eax, 0xb
mov dword [rcx + rbx + 0x18], eax
mov edx, esi
mov rcx, rbx
call fcn.14002a540
mov rax, qword [rbx]
movsxd rdx, dword [rax + 4]
mov eax, dword [rdx + rbx + 0x18]
and eax, 0xfffff3ff
bts eax, 9
mov dword [rdx + rbx + 0x18], eax
mov rcx, rbx
call fcn.140018000
nop
lea rcx, [rsp + 0x40]
call fcn.1400170c0
mov eax, esi
jmp 0x14002b46a
mov rcx, rdi
call fcn.14002bc70
test eax, eax
je 0x14002b3fd
lea rcx, [rsp + 0x40]
call fcn.140016f80
nop
lea rbx, [rax + 0x10]
lea rdx, str.Cannot_stop_service
mov rcx, rbx
call fcn.140018e60
mov rcx, rbx
call fcn.140018000
nop
lea rcx, [rsp + 0x40]
call fcn.1400170c0
mov eax, dword [r12 + r14]
test al, 1
jne 0x14002b41d
or eax, 1
mov dword [r12 + r14], eax
mov edx, 0x250
lea rcx, [r14 + rdx]
call fcn.14000e450
nop
jmp 0x14002b422
mov edx, 0x250
cmp byte [r14 + rdx + 1], 0
je 0x14002b468
lea rdx, str.Service_stopped_successfully
lea rbx, [0x1401c6980]
mov rcx, rbx
call fcn.140014760
mov rax, qword [0x1401c6980]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov dl, 0xa
call fcn.1400165f0
movzx edx, al
mov rcx, rbx
call fcn.140016490
mov rcx, rbx
call fcn.140014250
xor eax, eax
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.14012e910
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret