Function at 0x140019e40
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 [0x1402a7d08]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov r14, 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 0x140019f3c
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
mov edx, 3
lea r8d, [rdx - 2]
lea rcx, [rsp + 0x40]
call fcn.140005bf0
xor esi, esi
mov qword [rbp + 0x48], rsi
mov qword [rbp + 0x50], 7
mov word [rbp + 0x38], si
lea rdx, str.Cannot_query_service_state_0x
lea rcx, [rsp + 0x50]
call fcn.1400085f0
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
mov eax, dword [rsp + rcx + 0x68]
and eax, 0xfffff9ff
bts eax, 0xb
mov dword [rsp + rcx + 0x68], eax
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.14001c600
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
mov eax, dword [rsp + rcx + 0x68]
and eax, 0xfffff3ff
bts eax, 9
mov dword [rsp + rcx + 0x68], eax
lea rcx, [rsp + 0x50]
call fcn.14000c470
nop
lea rcx, [rsp + 0x40]
call fcn.14000b440
mov eax, ebx
jmp 0x14001a38f
mov eax, dword [rbp + 0x6c]
cmp eax, 1
jne 0x140019f91
lea edx, [rax + 2]
mov r8d, eax
lea rcx, [rsp + 0x40]
call fcn.140005bf0
xor esi, esi
mov qword [rbp + 0x48], rsi
mov qword [rbp + 0x50], 7
mov word [rbp + 0x38], si
lea rdx, str.Service_is_already_stopped
lea rcx, [rsp + 0x50]
call fcn.1400085f0
lea rcx, [rsp + 0x50]
call fcn.14000c470
nop
lea rcx, [rsp + 0x40]
call fcn.14000b440
jmp 0x14001a38d
cmp eax, 3
jne 0x140019fa3
mov rcx, r14
call fcn.14001af10
jmp 0x14001a38f
mov rax, qword gs:[0x58]
mov r13, qword [rax]
mov ecx, 0x10
mov eax, dword [rcx + r13]
mov r12d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
test al, 1
jne 0x140019fd3
or eax, 1
mov dword [rcx + r13], eax
lea rcx, [r12 + r13]
call fcn.14000b340
nop
lea rax, [r12 + r13]
lea rbx, [0x1402b2c40]
cmp byte [rax + 1], 0
je 0x14001a01b
lea rdx, str.Stopping_dependent_services.
mov rcx, rbx
call fcn.1400127a0
mov rax, qword [0x1402b2c40]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov dl, 0xa
call fcn.140014960
movzx edx, al
mov rcx, rbx
call fcn.140014780
mov rcx, rbx
call fcn.1400118e0
xor esi, esi
mov edi, esi
mov rcx, qword [r14 + 0x10]
test rcx, rcx
je 0x14001a031
call fcn.14014012c
mov qword [r14 + 0x10], rsi
lea r15, [r14 + 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 [r14 + 8]
call qword [sym.imp.ADVAPI32.DLL_EnumDependentServicesW]
test eax, eax
jne 0x14001a190
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
cmp eax, 0xea
je 0x14001a077
test eax, eax
jne 0x14001a08b
jmp 0x14001a190
mov ecx, dword [rbp + 0x60]
call fcn.140140124
mov qword [r14 + 0x10], rax
test rax, rax
jne 0x14001a0db
lea ebx, [rax + 0xe]
mov edx, 3
lea r8d, [rdx - 2]
lea rcx, [rsp + 0x40]
call fcn.140005bf0
mov qword [rbp + 0x48], rsi
mov qword [rbp + 0x50], 7
mov word [rbp + 0x38], si
lea rdx, str.Cannot_stop_all_dependent_services
lea rcx, [rsp + 0x50]
call fcn.1400085f0
lea rcx, [rsp + 0x50]
call fcn.14000c470
nop
lea rcx, [rsp + 0x40]
call fcn.14000b440
mov eax, ebx
jmp 0x14001a38f
mov r8d, dword [rbp + 0x60]
xor edx, edx
mov rcx, rax
call fcn.140132a80
mov r8, qword [r14 + 0x10]
mov qword [r14 + 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 [r14 + 8]
call qword [sym.imp.ADVAPI32.DLL_EnumDependentServicesW]
test eax, eax
jne 0x14001a12c
mov rcx, qword [r14 + 0x10]
call fcn.14014012c
mov qword [r14 + 0x10], rsi
mov qword [r14 + 0x18], rsi
mov dword [r15], esi
jmp 0x14001a190
mov dword [r14 + 0x24], esi
cmp dword [r15], esi
jbe 0x14001a190
mov rax, qword [r14 + 0x18]
mov rbx, qword [rax]
mov ecx, 0x28
call fcn.14013ffac
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov rdi, rax
movups xmmword [rax + 0x10], xmm0
mov qword [rsp + 0x30], rax
mov qword [rax], rsi
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rsi
mov rdx, rbx
mov rcx, rax
call fcn.14001ab50
test eax, eax
je 0x14001a185
mov rcx, rdi
call fcn.140019190
mov rdi, rsi
inc dword [r14 + 0x24]
nop dword [rax]
test rdi, rdi
je 0x14001a1e9
mov rcx, rdi
call fcn.140019e40
mov rcx, qword [rdi]
test rcx, rcx
je 0x14001a1ab
call qword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14001a1ba
call qword [sym.imp.ADVAPI32.DLL_CloseServiceHandle]
mov edx, 0x28
mov rcx, rdi
call fcn.14013ff64
mov eax, dword [r14 + 0x24]
cmp eax, dword [r15]
jb 0x14001a1d5
mov rdi, rsi
jmp 0x14001a190
lea rcx, [rax + rax*2]
add rcx, rcx
mov rax, qword [r14 + 0x18]
mov rbx, qword [rax + rcx*8]
jmp 0x14001a13c
lea r8, [rbp + 0x68]
mov edx, 1
mov rcx, qword [r14 + 8]
call qword [sym.imp.ADVAPI32.DLL_ControlService]
test eax, eax
jne 0x14001a2d4
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
lea rax, [rbp + 0x64]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rbp + 0x68]
xor edx, edx
mov rcx, qword [r14 + 8]
call qword [sym.imp.ADVAPI32.DLL_QueryServiceStatusEx]
test eax, eax
je 0x14001a2d4
mov ecx, dword [rbp + 0x6c]
dec ecx
test ecx, 0xfffffffd
je 0x14001a2d4
mov edx, 3
lea r8d, [rdx - 2]
lea rcx, [rsp + 0x40]
call fcn.140005bf0
mov qword [rbp + 0x48], rsi
mov qword [rbp + 0x50], 7
mov word [rbp + 0x38], si
lea rdx, str.ControlService_failed:_0x
lea rcx, [rsp + 0x50]
call fcn.1400085f0
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
mov eax, dword [rsp + rcx + 0x68]
and eax, 0xfffff9ff
bts eax, 0xb
mov dword [rsp + rcx + 0x68], eax
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.14001c600
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
mov eax, dword [rsp + rcx + 0x68]
and eax, 0xfffff3ff
bts eax, 9
mov dword [rsp + rcx + 0x68], eax
lea rcx, [rsp + 0x50]
call fcn.14000c470
nop
lea rcx, [rsp + 0x40]
call fcn.14000b440
mov eax, ebx
jmp 0x14001a38f
mov rcx, r14
call fcn.14001af10
test eax, eax
je 0x14001a329
mov edx, 3
lea r8d, [rdx - 2]
lea rcx, [rsp + 0x40]
call fcn.140005bf0
mov qword [rbp + 0x48], rsi
mov qword [rbp + 0x50], 7
mov word [rbp + 0x38], si
lea rdx, str.Cannot_stop_service
lea rcx, [rsp + 0x50]
call fcn.1400085f0
lea rcx, [rsp + 0x50]
call fcn.14000c470
nop
lea rcx, [rsp + 0x40]
call fcn.14000b440
mov ecx, 0x10
mov eax, dword [rcx + r13]
test al, 1
jne 0x14001a347
or eax, 1
mov dword [rcx + r13], eax
lea rcx, [r12 + r13]
call fcn.14000b340
nop
cmp byte [r12 + r13 + 1], 0
je 0x14001a38d
lea rdx, str.Service_stopped_successfully
lea rbx, [0x1402b2c40]
mov rcx, rbx
call fcn.1400127a0
mov rax, qword [0x1402b2c40]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov dl, 0xa
call fcn.140014960
movzx edx, al
mov rcx, rbx
call fcn.140014780
mov rcx, rbx
call fcn.1400118e0
xor eax, eax
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.140140100
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