Function at 0x140081748
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x610]
sub rsp, 0x710
mov rax, qword [0x1401d1010]
xor rax, rsp
mov qword [rbp + 0x600], rax
mov r12b, r8b
movsxd r15, ecx
mov r13, rdx
lea rcx, [rbp - 0x30]
xor r14d, r14d
xor edx, edx
mov r8d, 0x208
mov esi, r14d
call sub.VCRUNTIME140.dll_memset
call fcn.140080d60
test al, al
setne bl
call fcn.140080e30
mov edi, eax
mov word [rbp - 0x5c], r14w
lea rax, [0x14011a740]
mov dword [rbp - 0x60], edi
mov qword [rbp - 0x70], rax
lea edx, [r14 + 0x2d]
lea rax, str.BuildNumber
mov byte [rsp + 0x68], bl
mov qword [rbp - 0x68], rax
mov ecx, 0x14c96cb
lea rax, [0x14011a6a0]
mov word [rsp + 0x6a], r14w
mov qword [rsp + 0x58], rax
lea rax, str.IsWindows8OrGreater
mov qword [rsp + 0x60], rax
lea rax, vtable.Mso::Logging::StructuredObject_wchar_t_const____ptr64__1_.0
mov qword [rsp + 0x70], rax
lea rax, str.Information
mov qword [rsp + 0x78], rax
lea rax, str.Determining_Windows_version
mov qword [rbp - 0x80], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rax, str.IsWindows8OrLater
mov qword [rsp + 0x20], rax
mov word [rbp - 0x78], r14w
call fcn.140012de0
test edi, edi
jg 0x140081857
mov byte [rsp + 0x50], bl
mov byte [rsp + 0x51], r14b
jmp 0x14008187a
cmp edi, 0x23f0
setge al
test bl, bl
jne 0x14008186d
mov byte [rsp + 0x50], r14b
test al, al
je 0x140081872
mov byte [rsp + 0x50], 1
xor al, bl
xor al, 1
mov byte [rsp + 0x51], al
movzx eax, word [rsp + 0x50]
lea rcx, [0x14011a6a0]
movzx r14d, ax
mov qword [rsp + 0x58], rcx
xor edi, edi
shr r14w, 8
test al, al
mov qword [rbp - 0x70], rcx
lea rax, str.IsTrustedVersionData
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x60], rax
sete bl
lea rax, str.IsWindows7
mov byte [rsp + 0x68], r14b
mov qword [rbp - 0x68], rax
lea r8d, [rdi + 0x32]
lea rax, str.AlwaysUseOspp
mov word [rsp + 0x6a], di
mov qword [rsp + 0x78], rax
mov edx, 0x618
lea rax, vtable.Mso::Logging::StructuredObject_wchar_t_const____ptr64__1_.0
mov byte [rbp - 0x60], bl
mov qword [rbp - 0x58], rax
mov ecx, 0x278108f
lea rax, str.Information
mov word [rbp - 0x5e], di
mov qword [rbp - 0x50], rax
lea rax, str.Trying_to_load_SPP_based_on_Windows_version
mov qword [rbp - 0x48], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x58]
mov qword [rsp + 0x28], rax
lea rax, str.LoadSppLibrary
mov qword [rsp + 0x20], rax
mov byte [rbp - 0x80], r12b
mov word [rbp - 0x7e], di
mov word [rbp - 0x40], di
call fcn.14005fbd4
test r12b, r12b
jne 0x140081985
test bl, bl
je 0x140081958
test r14b, r14b
jne 0x140081985
lea rcx, [0x14011a388]
mov r8, r15
add r8, r8
mov edi, 0x104
mov edx, edi
mov r8, qword [rcx + r8*8 + 8]
lea rcx, [rbp - 0x30]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov eax, 2
jmp 0x140081b3f
lea rcx, [0x14011a388]
mov rax, r15
add rax, rax
lea rdx, [rbp - 0x30]
mov edi, 0x104
mov r8d, edi
mov rax, qword [rcx + rax*8]
lea rcx, str.Path
mov qword [rbp - 0x38], rax
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_1987]
or rbx, 0xffffffffffffffff
lea rcx, [rbp - 0x30]
mov rax, rbx
xor edx, edx
inc rax
cmp word [rcx + rax*2], dx
jne 0x1400819c0
test rax, rax
jne 0x140081a58
lea r8, [rsp + 0x50]
mov dword [rsp + 0x50], edi
lea rdx, [rbp + 0x1e0]
lea rcx, str.9FA51552_E8F4_4D9A_AEA5_9B9C6A1A2984
call qword [sym.imp.msi.dll_MsiOpenPackageW]
cmp eax, 3
jne 0x140081a1a
xor eax, eax
cmp dword [rsp + 0x50], eax
je 0x140081a1a
lea r8, [rbp + 0x1e0]
mov rdx, rdi
lea rcx, [rbp - 0x30]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
xor edx, edx
test eax, eax
jne 0x140081c29
mov edx, 0x5c
lea rcx, [rbp - 0x30]
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
xor edx, edx
test rax, rax
je 0x140081a58
lea rcx, [rbp - 0x30]
mov rdx, rdi
sub rax, rcx
lea r8, [rbp - 0x30]
sar rax, 1
lea rcx, [rbp - 0x30]
mov r9, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
xor edx, edx
test eax, eax
jne 0x140081c29
lea rcx, [rbp - 0x30]
mov rax, rbx
inc rax
cmp word [rcx + rax*2], dx
jne 0x140081a5f
test rax, rax
jne 0x140081b21
xor edx, edx
lea rcx, [rbp + 0x3f2]
mov r8d, 0x206
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rbp + 0x1e0]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
xor eax, eax
lea rdx, [rbp + 0x1e0]
xor r9d, r9d
mov word [rbp + 0x3f0], ax
xor ecx, ecx
lea r8d, [rax + 0x2b]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor edx, edx
test eax, eax
je 0x140081aeb
cmp word [rbp + 0x1e0], dx
je 0x140081aeb
lea r8, [rbp + 0x3f0]
lea rdx, str.Microsoft_Shared
lea rcx, [rbp + 0x1e0]
call fcn.140081cfc
xor edx, edx
test eax, eax
jne 0x140081c29
lea rax, [rbp + 0x3f0]
inc rbx
cmp word [rax + rbx*2], dx
jne 0x140081af2
test rbx, rbx
je 0x140081b21
lea r8, [rbp - 0x30]
lea rdx, str.OfficeSoftwareProtectionPlatform
lea rcx, [rbp + 0x3f0]
call fcn.140081cfc
xor edx, edx
test eax, eax
jne 0x140081c29
mov rdx, qword [rbp - 0x38]
lea r8, [rbp - 0x30]
lea rcx, [rbp - 0x30]
call fcn.140081cfc
xor edx, edx
test eax, eax
jne 0x140081c29
lea eax, [rdx + 1]
mov ecx, 1
mov dword [0x1401debd8], eax
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
xor r8d, r8d
lea rcx, [rbp - 0x30]
xor edx, edx
mov ebx, eax
call fcn.140006864
mov ecx, ebx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
xor edx, edx
test rsi, rsi
je 0x140081bc3
test r12b, r12b
jne 0x140081c29
test r14b, r14b
jne 0x140081c29
lea rdx, str.SLDepositMigrationBlob
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor edx, edx
test rax, rax
jne 0x140081c29
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov dword [0x1401debd8], eax
mov r8b, 1
mov rdx, r13
mov ecx, r15d
call fcn.140081748
jmp 0x140081cd2
test r12b, r12b
jne 0x140081bd5
test r14b, r14b
jne 0x140081bd5
mov dword [0x1401debd8], edx
jmp 0x140081bb0
test r13, r13
je 0x140081c29
mov rax, qword [r13 + 8]
mov ecx, edx
test r15d, r15d
lea rdx, [rbp - 0x30]
mov r8d, edi
setne cl
call qword [case.0x140089b1f.8]
xor edx, edx
test eax, eax
jns 0x140081c01
mov dword [0x1401debd8], edx
jmp 0x140081c29
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
xor r8d, r8d
lea rcx, [rbp - 0x30]
xor edx, edx
mov ebx, eax
call fcn.140006864
mov ecx, ebx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
xor edx, edx
cmp dword [0x1401debd8], 2
lea r8, [0x14011a6a0]
lea rcx, str.LoadedBuiltInSpp
mov word [rbp - 0x7e], dx
sete al
mov qword [rsp + 0x78], rcx
mov byte [rbp - 0x80], al
lea rcx, str.IsSppLoaded
test rsi, rsi
mov qword [rsp + 0x60], rcx
mov word [rsp + 0x6a], dx
mov ecx, 0x2781090
setne al
mov word [rbp - 0x40], dx
mov byte [rsp + 0x68], al
mov edx, 0x618
lea rax, vtable.Mso::Logging::StructuredObject_wchar_t_const____ptr64__1_.0
mov qword [rsp + 0x70], r8
mov qword [rbp - 0x58], rax
lea rax, str.Information
mov qword [rbp - 0x50], rax
lea rax, str.Spp_loading_result
mov qword [rbp - 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x58]
mov qword [rsp + 0x28], rax
lea rax, str.LoadSppLibrary
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x58], r8
call fcn.140012de0
mov rax, rsi
mov rcx, qword [rbp + 0x600]
xor rcx, rsp
call fcn.140107ad0
mov rbx, qword [rsp + 0x760]
add rsp, 0x710
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret