Function at 0x14007cc10
Capabilities:
Query service status
Start service

Disassembly:
mov rax, rsp
push rbp
push r13
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov qword [rbp + 0x17], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rbp + 0x3f], rax
xor r8d, r8d
lea rdx, str.CBaseFuncSub::FS_StartSpoolerService
lea rcx, [rbp + 7]
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 0x14007cea1
lea r8d, [r14 + 0x14]
lea rdx, str.SPOOLER
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
je 0x14007cddc
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x14007cd88
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, r14d
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rbp + 0x1f]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x14007ccfa
cmp dword [rbp + 0x23], 4
je 0x14007cd77
jmp 0x14007cd6b
mov qword [rbp - 9], r14
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
lea rax, [rbp - 9]
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 0x14007cd5c
mov rcx, qword [rbp - 9]
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 + 7]
call fcn.140007780
mov rcx, qword [rbp - 9]
test rcx, rcx
je 0x14007cd6b
call qword [sym.imp.KERNEL32.dll_LocalFree]
inc ebx
cmp ebx, 5
jae 0x14007cd88
jmp 0x14007ccd2
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r12d, 1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov qword [rbp - 9], r14
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
lea rax, [rbp - 9]
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 0x14007ce3e
mov rcx, qword [rbp - 9]
mov qword [rsp + 0x28], rcx
lea r9, str._t_t_tCloseServiceHandle
jmp 0x14007ce25
mov qword [rbp - 9], r14
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
lea rax, [rbp - 9]
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 0x14007ce3e
mov rax, qword [rbp - 9]
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 + 7]
call fcn.140007780
mov rcx, qword [rbp - 9]
test rcx, rcx
je 0x14007ce4d
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, r13
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov qword [rbp - 9], r14
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
lea rax, [rbp - 9]
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 0x14007cf03
mov rcx, qword [rbp - 9]
mov qword [rsp + 0x28], rcx
lea r9, str._t_t_tCloseServiceHandle
jmp 0x14007ceea
mov qword [rbp - 9], r14
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
lea rax, [rbp - 9]
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 0x14007cf03
mov rax, qword [rbp - 9]
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 + 7]
call fcn.140007780
mov rcx, qword [rbp - 9]
test rcx, rcx
je 0x14007cf12
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r9d, r12d
lea r8, str.return___08x
mov edx, 2
lea rcx, [rbp + 7]
call fcn.140007780
nop
lea rcx, [rbp - 1]
call fcn.140037db0
nop
lea rcx, [rbp + 7]
call fcn.140007730
mov eax, r12d
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140245660
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop rbp
ret