Function at 0x11149f50
Capabilities:
Query service status
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x11279148]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0x24], esi
test esi, esi
jne 0x11149f9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Cannot_open_Service_Control_Manager__error__d_n
call fcn.111bd7b0
add esp, 8
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.111d9022
mov esp, ebp
pop ebp
ret
push edi
push 0x34
push str.spooler
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x11149fe0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Cannot_open_spooler_service__error__d_n
call fcn.111bd7b0
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.111d9022
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov eax, dword [ebp - 0x1c]
mov ebx, eax
cmp eax, 4
jne 0x1114a0e3
mov ecx, dword [0x1127aa68]
push 0
push 0x3e8
push str.SleepBeforeRestartSpooler
push str.Client
call fcn.110bbc00
lea ecx, [ebp - 0x20]
push ecx
push 1
push edi
mov dword [ebp - 0x28], eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x1114a060
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Cannot_stop_spooler_service__error__d_n
call fcn.111bd7b0
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add esp, 8
push edi
call esi
mov edx, dword [ebp - 0x24]
push edx
call esi
pop ebx
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.111d9022
mov esp, ebp
pop ebp
ret
xor esi, esi
mov eax, dword [0x1127aa74]
test eax, eax
je 0x1114a085
cmp esi, 0x8b74
jge 0x1114a085
push str.Reducing_restart_spooler_timeout_as_were_quitting
call fcn.111bd7b0
add esp, 4
mov esi, 0x8b74
lea ecx, [ebp - 0x20]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1114a0c1
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x1114a09d
mov ebx, eax
cmp eax, 1
je 0x1114a0d5
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x8ca0
jl 0x1114a062
mov edx, dword [ebp - 0x28]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push edx
call ebx
jmp 0x1114a0e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_getting_spooler_status__err_d_n
call fcn.111bd7b0
add esp, 8
mov edx, dword [ebp - 0x28]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push edx
call ebx
jmp 0x1114a0e9
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x1114a12e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Cannot_start_spooler_service__error__d_n
call fcn.111bd7b0
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add esp, 8
push edi
call esi
mov eax, dword [ebp - 0x24]
push eax
call esi
pop ebx
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.111d9022
mov esp, ebp
pop ebp
ret
xor esi, esi
lea ecx, [ebp - 0x20]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x1c], 4
je 0x1114a161
push 0x64
call ebx
inc esi
cmp esi, 0x12c
jl 0x1114a130
cmp dword [ebp - 0x1c], 4
je 0x1114a161
push str.Timeout_while_waiting_for_Spooler_to_start_running
call fcn.111bd7b0
add esp, 4
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
mov edx, dword [ebp - 0x24]
push edx
call esi
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.111d9022
mov esp, ebp
pop ebp
ret