Function at 0x14007cf70
Capabilities:
Query service status
Stop service

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov qword [rbp + 7], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rbp + 0x2f], rax
xor r8d, r8d
lea rdx, str.CBaseFuncSub::FS_StopSpoolerService
lea rcx, [rbp - 9]
call fcn.1400075a0
nop
call fcn.14010b1bc
mov rcx, qword [rax + 8]
call fcn.1401064fc
nop
xor r14d, r14d
mov r12d, r14d
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov r13, rax
test rax, rax
je 0x14007d28d
lea r8d, [r14 + 0x24]
lea rdx, str.SPOOLER
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
je 0x14007d1c8
lea r8, [rbp + 0xf]
mov r15d, 1
mov edx, r15d
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x14007d0ec
mov ebx, r14d
nop
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rbp + 0xf]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x14007d058
cmp dword [rbp + 0x13], r15d
je 0x14007d0d9
jmp 0x14007d0c9
mov qword [rbp - 0x19], r14
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
mov r9d, 0x409
mov r8d, edi
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x14007d0ba
mov rcx, qword [rbp - 0x19]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
lea r9, [0x1402f6390]
lea r8, str.ApiName:__s__ErrorCode:__d_:__s
mov edx, 6
lea rcx, [rbp - 9]
call fcn.140007780
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x14007d0c9
call qword [sym.imp.KERNEL32.dll_LocalFree]
inc ebx
cmp ebx, 5
jae 0x14007d174
jmp 0x14007d030
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r12d, r15d
jmp 0x14007d174
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
cmove r12d, r15d
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov qword [rbp - 0x19], r14
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
mov r9d, 0x409
mov r8d, ebx
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x14007d165
mov rax, qword [rbp - 0x19]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
lea r9, [0x1402f6438]
lea r8, str.ApiName:__s__ErrorCode:__d_:__s
mov edx, 6
lea rcx, [rbp - 9]
call fcn.140007780
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x14007d174
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov qword [rbp - 0x19], r14
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
mov r9d, 0x409
mov r8d, ebx
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x14007d22a
mov rcx, qword [rbp - 0x19]
mov qword [rsp + 0x28], rcx
lea r9, str._t_t_tCloseServiceHandle
jmp 0x14007d211
mov qword [rbp - 0x19], r14
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
mov r9d, 0x409
mov r8d, ebx
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x14007d22a
mov rax, qword [rbp - 0x19]
mov qword [rsp + 0x28], rax
lea r9, str._t_t_tOpenService
mov dword [rsp + 0x20], ebx
lea r8, str.ApiName:__s__ErrorCode:__d_:__s
mov edx, 6
lea rcx, [rbp - 9]
call fcn.140007780
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x14007d239
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov qword [rbp - 0x19], r14
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
mov r9d, 0x409
mov r8d, ebx
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x14007d2ef
mov rcx, qword [rbp - 0x19]
mov qword [rsp + 0x28], rcx
lea r9, str._t_t_tCloseServiceHandle
jmp 0x14007d2d6
mov qword [rbp - 0x19], r14
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
mov r9d, 0x409
mov r8d, ebx
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x14007d2ef
mov rax, qword [rbp - 0x19]
mov qword [rsp + 0x28], rax
lea r9, str._t_t_tOpenSCManager
mov dword [rsp + 0x20], ebx
lea r8, str.ApiName:__s__ErrorCode:__d_:__s
mov edx, 6
lea rcx, [rbp - 9]
call fcn.140007780
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x14007d2fe
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r9d, r12d
lea r8, str.return___08x
mov edx, 2
lea rcx, [rbp - 9]
call fcn.140007780
nop
lea rcx, [rbp - 0x11]
call fcn.140037db0
nop
lea rcx, [rbp - 9]
call fcn.140007730
mov eax, r12d
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140245660
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret