Function at 0x140004360
Capabilities:
Enumerate processes
Stop service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
mov eax, 0x2a0
call fcn.1400100f0
sub rsp, rax
mov rax, qword [0x14001b018]
xor rax, rsp
mov qword [rsp + 0x290], rax
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
mov qword [rsp + 0x20], rax
test rax, rax
jne 0x1400043d8
call fcn.1400010f0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Could_not_open_service_manager.____lu_
mov rcx, rbx
call fcn.140007b80
xor r14d, r14d
jmp 0x140004570
mov r8d, 0xf01ff
lea rdx, str.LibreOfficeMaintenance
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
mov qword [rsp + 0x28], rax
call fcn.1400010f0
mov rsi, rax
test rbx, rbx
jne 0x140004423
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Could_not_open_service.____lu_
mov rcx, rsi
call fcn.140007b80
xor r14d, r14d
jmp 0x140004570
lea rdx, str.Sending_stop_request...
mov rcx, rsi
call fcn.140007a50
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r8, [rsp + 0x30]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x14000447e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
je 0x14000447e
call fcn.1400010f0
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Error_sending_stop_request.____lu_
mov rcx, rsi
call fcn.140007b80
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor r14d, r14d
mov edi, r14d
mov qword [rsp + 0x20], r14
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov qword [rsp + 0x28], r14
call fcn.1400010f0
lea rdx, str.Waiting_for_service_stop...
mov rcx, rax
call fcn.140007a50
lea edx, [r14 + 0x1e]
call fcn.1400099b0
mov r15d, eax
mov ebp, r14d
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400044e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14000450c
mov dword [rsp + 0x50], 0x238
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x140004520
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0x490
je 0x140004551
jmp 0x1400045b6
lea rdx, [rsp + 0x7c]
lea rcx, [0x140013a78]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov rcx, rbx
test eax, eax
je 0x1400045af
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140004520
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.1400010f0
mov r8d, r15d
lea rdx, str.Done_waiting_for_service_stop__last_service_state:__lu
mov rcx, rax
call fcn.140007a50
cmp r15d, 1
sete r14b
test rdi, rdi
je 0x14000457f
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov eax, r14d
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.14000e7a0
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebp
cmp ebp, 0x1e
jae 0x140004551
jmp 0x1400044c3