Function at 0x140008ee0
Capabilities:
Create directory
Get common file path

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
mov eax, 0x250
call fcn.1400100f0
sub rsp, rax
mov rax, qword [0x14001b018]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
lea r9, [rsp + 0x20]
mov rbp, rdx
mov rsi, rcx
xor r8d, r8d
lea rcx, [0x140011d00]
mov edx, 0x8000
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x140008f5b
mov rdx, qword [rsp + 0x20]
mov rbx, 0xffffffffffffffff
mov rax, rbx
nop dword [rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x140008f40
cmp rax, 0x104
jbe 0x140008f80
mov rcx, rdx
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000e7a0
mov rbx, qword [rsp + 0x288]
add rsp, 0x250
pop rdi
pop rsi
pop rbp
ret
mov r8d, 0x105
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rax, rbx
nop dword [rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x140008fa0
add rax, 0x1f
cmp rax, 0x104
jae 0x140008f5b
lea rdx, str.LibreOffice_Maintenance_Service
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x140008f5b
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140008fea
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140008f5b
mov rax, rbx
nop dword [rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x140008ff0
add rax, 0xa
cmp rax, 0x104
jae 0x140008f5b
lea rdx, str.UpdateLogs
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x140008f5b
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140009042
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140008f5b
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x20a
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
nop word [rax + rax]
inc rcx
cmp word [rsi + rcx*2], 0
jne 0x140009060
lea rax, [rcx - 0xa]
cmp rax, 0xfa
ja 0x140008f5b
add rcx, 0xfffffffffffffff6
lea rdx, str.updates0
mov r8d, 0xa
lea rcx, [rsi + rcx*2]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
test eax, eax
jne 0x140008f5b
mov r8d, 0x105
lea rcx, [rsp + 0x30]
mov rdx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x140008f5b
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
je 0x140008f5b
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathStripPathW]
mov r8, rbx
nop word [rax + rax]
inc r8
cmp word [rbp + r8*2], 0
jne 0x1400090f0
lea rcx, [rsp + 0x30]
mov rax, rbx
inc rax
cmp word [rcx + rax*2], 0
jne 0x140009104
add rax, r8
cmp rax, 0x104
ja 0x140008f5b
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat]
mov rax, rbx
nop
inc rax
cmp word [rdi + rax*2], 0
jne 0x140009130
lea rcx, [rsp + 0x30]
nop
inc rbx
cmp word [rcx + rbx*2], 0
jne 0x140009140
add rax, rbx
cmp rax, 0x104
jae 0x140008f5b
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
jmp 0x140008f5d