Function at 0x14003ffa0
Capabilities:
Query service status
Stop service

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140322b20]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov dword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x170]
call fcn.140035f10
test eax, eax
je 0x1400403a6
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov r8d, 0xf003f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x1400400a7
lea r9, [0x1402595a0]
xor r8d, r8d
mov edx, 3
lea rcx, [rsp + 0xe0]
call fcn.140038d20
lea rcx, [rsp + 0xb0]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x4c], eax
xor edx, edx
mov rcx, qword [rsp + 0x178]
call fcn.14002f250
lea rcx, [rsp + 0x60]
lea rdx, [rsp + 0xb0]
mov rdi, rcx
mov rsi, rdx
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
mov ecx, dword [rsp + 0x4c]
mov r9d, ecx
mov r8, rax
lea rdx, str._tService__s_OpenSCManager_failed_err:_lu_n
lea rcx, [rsp + 0x60]
call fcn.14003b980
mov eax, dword [rsp + 0x20]
jmp 0x1400403aa
mov rcx, qword [rsp + 0x178]
call fcn.14001bd90
mov rcx, rax
call fcn.140048030
mov r8d, 0xf01ff
mov rdx, rax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14004031c
cmp dword [rsp + 0x180], 0
je 0x140040102
mov r8d, dword [rsp + 0x188]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
call fcn.140039120
lea rax, [rsp + 0x120]
mov rdi, rax
xor eax, eax
mov ecx, 0x1c
rep stosb byte [rdi], al
xor eax, eax
cmp eax, 1
je 0x14004030f
mov dword [rsp + 0x28], 0
lea rdx, [rsp + 0x120]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140040265
mov eax, dword [rsp + 0x124]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x24]
dec eax
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 6
ja case.default.0x140040179
mov eax, dword [rsp + 0x24]
lea rcx, [0x140000000]
mov eax, dword [rcx + rax*4 + 0x403c4]
add rax, rcx
jmp rax
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 1
jmp case.default.0x140040179
mov dword [rsp + 0x50], 0
jmp case.default.0x140040179
mov dword [rsp + 0x28], 1
lea r8, [rsp + 0x120]
mov edx, 1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1400401d3
mov dword [rsp + 0x20], 1
jmp case.default.0x140040179
lea r9, [0x140259820]
xor r8d, r8d
mov edx, 3
lea rcx, [rsp + 0x110]
call fcn.140038d20
lea rcx, [rsp + 0x90]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
xor edx, edx
mov rcx, qword [rsp + 0x178]
call fcn.14002f250
lea rcx, [rsp + 0xd0]
lea rdx, [rsp + 0x90]
mov rdi, rcx
mov rsi, rdx
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
mov ecx, dword [rsp + 0x40]
mov r9d, ecx
mov r8, rax
lea rdx, str._tService__s_ControlService_SERVICE_CONTROL_STOP_failed_err:_lu_n
lea rcx, [rsp + 0xd0]
call fcn.14003b980
mov dword [rsp + 0x20], 0
jmp 0x1400402f4
lea r9, [0x140259b80]
xor r8d, r8d
mov edx, 3
lea rcx, [rsp + 0xf0]
call fcn.140038d20
lea rcx, [rsp + 0xc0]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x48], eax
xor edx, edx
mov rcx, qword [rsp + 0x178]
call fcn.14002f250
lea rcx, [rsp + 0xa0]
lea rdx, [rsp + 0xc0]
mov rdi, rcx
mov rsi, rdx
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
mov ecx, dword [rsp + 0x48]
mov r9d, ecx
mov r8, rax
lea rdx, str._tService__s_QueryServiceStatus_failed_err:_lu_n
lea rcx, [rsp + 0xa0]
call fcn.14003b980
mov dword [rsp + 0x20], 0
jmp 0x14004030f
cmp dword [rsp + 0x28], 1
jne 0x1400402ff
jmp 0x14004030f
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140040116
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14004039b
lea r9, [0x140259c80]
xor r8d, r8d
mov edx, 3
lea rcx, [rsp + 0x100]
call fcn.140038d20
lea rcx, [rsp + 0x70]
mov rdi, rcx
mov rsi, rax
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x44], eax
xor edx, edx
mov rcx, qword [rsp + 0x178]
call fcn.14002f250
lea rcx, [rsp + 0x80]
lea rdx, [rsp + 0x70]
mov rdi, rcx
mov rsi, rdx
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
mov ecx, dword [rsp + 0x44]
mov r9d, ecx
mov r8, rax
lea rdx, str._tService__s_OpenService_failed_err:_lu_n
lea rcx, [rsp + 0x80]
call fcn.14003b980
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1401fe250
add rsp, 0x158
pop rdi
pop rsi
ret