Function at 0x1400011a0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x190]
mov eax, 0x290
call fcn.1400100f0
sub rsp, rax
mov rax, qword [0x14001b018]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rbx, rdx
mov edi, ecx
lea rdx, str.forceinstall
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
sete sil
lea rdx, str.install
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1400015f6
test sil, sil
jne 0x1400015f6
lea rdx, str.upgrade
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140001318
lea rcx, [rsp + 0x70]
call fcn.1400017d0
test eax, eax
je 0x1400012ce
lea rcx, [rsp + 0x70]
mov rbx, 0xffffffffffffffff
mov rax, rbx
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140001250
add rax, 0x1e
cmp rax, 0x104
jae 0x1400012ce
lea rdx, str.maintenanceservice_install.log
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x1400012ce
call fcn.1400010f0
mov rdi, rax
cmp qword [rax], 0
jne 0x1400012ce
lea rax, [rsp + 0x70]
nop
lea rbx, [rbx + 1]
cmp word [rax + rbx*2], 0
jne 0x140001290
lea eax, [rbx - 1]
cmp eax, 0x101
ja 0x1400012ce
mov r8d, 0x104
lea rdx, [rsp + 0x70]
lea rcx, [rdi + 8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
lea rdx, [0x140015cdc]
lea rcx, [rdi + 8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
mov qword [rdi], rax
call fcn.1400010f0
lea rdx, str.Upgrading_service_if_installed...
mov rcx, rax
call fcn.140007a50
xor ecx, ecx
call fcn.140003a30
test eax, eax
jne 0x140001307
call fcn.1400010f0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Could_not_upgrade_service.____lu_
jmp 0x140001747
call fcn.1400010f0
lea rdx, str.The_service_was_upgraded_successfully
jmp 0x140001780
lea rdx, str.uninstall
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140001561
lea rcx, [rsp + 0x70]
call fcn.1400017d0
test eax, eax
je 0x1400013cf
lea rcx, [rsp + 0x70]
mov rbx, 0xffffffffffffffff
mov rax, rbx
inc rax
cmp word [rcx + rax*2], 0
jne 0x140001352
add rax, 0x20
cmp rax, 0x104
jae 0x1400013cf
lea rdx, str.maintenanceservice_uninstall.log
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x1400013cf
call fcn.1400010f0
mov rdi, rax
cmp qword [rax], 0
jne 0x1400013cf
lea rax, [rsp + 0x70]
lea rbx, [rbx + 1]
cmp word [rax + rbx*2], 0
jne 0x140001391
lea eax, [rbx - 1]
cmp eax, 0x101
ja 0x1400013cf
mov r8d, 0x104
lea rdx, [rsp + 0x70]
lea rcx, [rdi + 8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
lea rdx, [0x140015cdc]
lea rcx, [rdi + 8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
mov qword [rdi], rax
call fcn.1400010f0
lea rdx, str.Uninstalling_service...
mov rcx, rax
call fcn.140007a50
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x140001426
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
nop
jmp 0x140001504
mov r8d, 0xf01ff
lea rdx, str.LibreOfficeMaintenance
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
mov qword [rsp + 0x48], rax
test rax, rax
jne 0x140001479
call fcn.1400010f0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Could_not_open_service.____lu_
mov rcx, rbx
call fcn.140007b80
nop
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
jmp 0x140001504
xor esi, esi
mov r14d, esi
lea r8, [rsp + 0x50]
lea edx, [rsi + 1]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x1400014c9
mov ecx, dword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [rsp + 0x68]
add eax, 0xa
add r14d, eax
cmp dword [rsp + 0x54], 1
je 0x1400014c9
cmp r14d, 0xea60
ja 0x1400014c9
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140001493
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov r14d, eax
test eax, eax
jne 0x1400014eb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, esi
cmp eax, 0x430
sete r14b
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
test r14d, r14d
jne 0x14000153b
call fcn.1400010f0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Could_not_uninstall_service.____lu_
mov rcx, rbx
call fcn.140007b80
call fcn.1400010f0
mov rcx, rax
call fcn.1400079f0
mov eax, 1
jmp 0x1400017a5
call fcn.1400010f0
lea rdx, str.The_service_was_uninstalled_successfully
mov rcx, rax
call fcn.140007a50
call fcn.1400010f0
mov rcx, rax
call fcn.1400079f0
jmp 0x1400017a3
lea rdx, str.check_cert
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x14000159a
cmp edi, 2
jle 0x14000159a
xor r8d, r8d
mov rdx, qword [rbx + 0x18]
mov rcx, qword [rbx + 0x10]
call fcn.140006d70
xor esi, esi
test eax, eax
sete sil
mov eax, esi
jmp 0x1400017a5
lea rax, str.LibreOfficeMaintenance
mov qword [rsp + 0x20], rax
lea rax, [0x140001b40]
mov qword [rsp + 0x28], rax
xor esi, esi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rsi
lea rcx, [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x1400017a3
call fcn.1400010f0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.StartServiceCtrlDispatcher_failed.____lu_
mov rcx, rbx
call fcn.140007b80
jmp 0x1400017a3
mov r8d, 0x104
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400016fe
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x1400016fe
lea rcx, [rsp + 0x70]
mov rbx, 0xffffffffffffffff
mov rax, rbx
inc rax
cmp word [rcx + rax*2], 0
jne 0x140001633
add rax, 4
cmp rax, 0x104
jae 0x1400016fe
lea rdx, str.logs
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x1400016fe
xor edx, edx
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rcx, [rsp + 0x70]
mov rax, rbx
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140001680
add rax, 0x1e
cmp rax, 0x104
jae 0x1400016fe
lea rdx, str.maintenanceservice_install.log
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x1400016fe
call fcn.1400010f0
mov rdi, rax
cmp qword [rax], 0
jne 0x1400016fe
lea rax, [rsp + 0x70]
nop
lea rbx, [rbx + 1]
cmp word [rax + rbx*2], 0
jne 0x1400016c0
lea eax, [rbx - 1]
cmp eax, 0x101
ja 0x1400016fe
mov r8d, 0x104
lea rdx, [rsp + 0x70]
lea rcx, [rdi + 8]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
lea rdx, [0x140015cdc]
lea rcx, [rdi + 8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
mov qword [rdi], rax
lea rax, str.Installing_service...
lea rbx, str.Installing_service_with_force_specified...
test sil, sil
cmove rbx, rax
call fcn.1400010f0
mov rcx, rax
mov rdx, rbx
call fcn.140007a50
movzx ecx, sil
inc ecx
call fcn.140003a30
test eax, eax
jne 0x140001774
call fcn.1400010f0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Could_not_install_service.____lu_
mov r8d, eax
mov rcx, rbx
call fcn.140007b80
call fcn.1400010f0
mov rcx, qword [rax]
test rcx, rcx
mov rbx, rax
je 0x14000176d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor esi, esi
mov qword [rbx], rsi
mov eax, 1
jmp 0x1400017a5
call fcn.1400010f0
lea rdx, str.The_service_was_installed_successfully
mov rcx, rax
call fcn.140007a50
call fcn.1400010f0
mov rcx, qword [rax]
test rcx, rcx
mov rbx, rax
je 0x1400017a3
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor esi, esi
mov qword [rbx], rsi
xor eax, eax
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.14000e7a0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret