Function at 0x140008610
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x618]
sub rsp, 0x6f0
mov rax, qword [0x14002e028]
xor rax, rsp
mov qword [rbp + 0x5e0], rax
mov r13b, r8b
movsxd r15, ecx
xor r12d, r12d
mov esi, r12d
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_memset
call fcn.140001d20
test al, al
setne bl
call fcn.140008c58
mov edi, eax
lea rax, [0x140024570]
mov qword [rsp + 0x38], rax
lea rax, str.BuildNumber
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], edi
lea ecx, [r12 + 4]
mov word [rsp + 0x4c], cx
lea rax, [0x140024448]
mov qword [rbp - 0x80], rax
lea rax, str.IsWindows8OrGreater
mov qword [rbp - 0x78], rax
mov byte [rbp - 0x70], bl
mov word [rbp - 0x6e], cx
call fcn.14001f7a4
lea rcx, [0x140024290]
test al, al
je 0x140008723
lea rax, [rbp - 0x80]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x50], rcx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x60], rax
lea r9d, [r12 + 2]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, str.IsWindows8OrLater___Determining_Windows_version
mov qword [rsp + 0x20], rax
lea edx, [r12 + 0x2d]
mov ecx, 0x14c96cb
lea r8d, [r12 + 0x32]
call fcn.14001fe38
test edi, edi
jg 0x140008732
mov byte [rsp + 0x30], bl
mov byte [rsp + 0x31], r12b
jmp 0x140008755
cmp edi, 0x23f0
setge al
test bl, bl
jne 0x140008748
test al, al
mov byte [rsp + 0x30], r12b
je 0x14000874d
mov byte [rsp + 0x30], 1
xor al, bl
xor al, 1
mov byte [rsp + 0x31], al
movzx eax, word [rsp + 0x30]
movzx r14d, ax
shr r14w, 8
test al, al
sete bl
lea rdx, [0x140024448]
mov qword [rsp + 0x68], rdx
lea rax, str.IsTrustedVersionData
mov qword [rsp + 0x70], rax
mov byte [rsp + 0x78], r14b
mov ecx, 4
mov word [rsp + 0x7a], cx
mov qword [rbp - 0x80], rdx
lea rax, str.IsWindows7
mov qword [rbp - 0x78], rax
mov byte [rbp - 0x70], bl
mov word [rbp - 0x6e], cx
mov qword [rsp + 0x38], rdx
lea rax, str.AlwaysUseOspp
mov qword [rsp + 0x40], rax
mov byte [rsp + 0x48], r13b
mov word [rsp + 0x4a], cx
call fcn.14001f7a4
test al, al
je 0x140008831
lea rax, [rsp + 0x38]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
lea rax, [0x140024290]
mov qword [rbp - 0x68], rax
lea rax, [rsp + 0x50]
mov qword [rbp - 0x60], rax
lea rax, [rsp + 0x68]
mov qword [rbp - 0x58], rax
mov r9d, 2
lea rax, [rbp - 0x68]
mov qword [rsp + 0x28], rax
lea rax, str.LoadSppLibrary___Trying_to_load_SPP_based_on_Windows_version
mov qword [rsp + 0x20], rax
mov edx, 0x618
mov ecx, 0x278108f
lea r8d, [r9 + 0x30]
call fcn.14001fe38
test r13b, r13b
jne 0x14000886a
test bl, bl
je 0x14000883f
test r14b, r14b
jne 0x14000886a
mov r8, r15
add r8, r8
lea rcx, [0x1400261f8]
mov r8, qword [rcx + r8*8 + 8]
mov edx, 0x104
lea rcx, [rbp - 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov eax, 2
jmp 0x140008a19
mov rax, r15
add rax, rax
lea rcx, [0x1400261f8]
mov r12, qword [rcx + rax*8]
lea rdx, [rbp - 0x50]
lea rcx, str.Path
call fcn.14000253c
lea rcx, [rbp - 0x50]
or rdi, 0xffffffffffffffff
mov rax, rdi
xor ebx, ebx
inc rax
cmp word [rcx + rax*2], bx
jne 0x140008898
test rax, rax
jne 0x140008934
mov ebx, 0x104
mov dword [rsp + 0x30], ebx
lea r8, [rsp + 0x30]
lea rdx, [rbp + 0x1c0]
lea rcx, str.9FA51552_E8F4_4D9A_AEA5_9B9C6A1A2984
call qword [sym.imp.msi.dll_MsiOpenPackageW]
cmp eax, 3
jne 0x1400088f4
xor eax, eax
cmp dword [rsp + 0x30], eax
je 0x1400088f4
lea r8, [rbp + 0x1c0]
mov edx, ebx
lea rcx, [rbp - 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
test eax, eax
jne 0x140008a8b
mov edx, 0x5c
lea rcx, [rbp - 0x50]
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
test rax, rax
je 0x140008932
lea rcx, [rbp - 0x50]
sub rax, rcx
sar rax, 1
mov r9, rax
lea r8, [rbp - 0x50]
mov rdx, rbx
lea rcx, [rbp - 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
xor ebx, ebx
test eax, eax
jne 0x140008a8b
jmp 0x140008934
xor ebx, ebx
lea rcx, [rbp - 0x50]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], bx
jne 0x14000893b
test rax, rax
jne 0x1400089fd
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x3d2]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1c0]
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov word [rbp + 0x3d0], ax
xor r9d, r9d
lea r8d, [rax + 0x2b]
lea rdx, [rbp + 0x1c0]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor ecx, ecx
test eax, eax
je 0x1400089c1
cmp word [rbp + 0x1c0], cx
je 0x1400089c1
lea r8, [rbp + 0x3d0]
lea rdx, str.Microsoft_Shared
lea rcx, [rbp + 0x1c0]
call fcn.140008b74
mov ebx, eax
xor ecx, ecx
test ebx, ebx
jne 0x140008a8b
lea rax, [rbp + 0x3d0]
inc rdi
cmp word [rax + rdi*2], cx
jne 0x1400089d0
test rdi, rdi
je 0x1400089fd
lea r8, [rbp - 0x50]
lea rdx, str.OfficeSoftwareProtectionPlatform
lea rcx, [rbp + 0x3d0]
call fcn.140008b74
test eax, eax
jne 0x140008a8b
lea r8, [rbp - 0x50]
mov rdx, r12
lea rcx, [rbp - 0x50]
call fcn.140008b74
xor r12d, r12d
test eax, eax
jne 0x140008a8b
lea eax, [r12 + 1]
mov dword [0x14002ef88], eax
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov ebx, eax
lea rcx, [rbp - 0x50]
call fcn.140001c98
mov rsi, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
test r13b, r13b
jne 0x140008a8b
test rsi, rsi
je 0x140008a86
test r14b, r14b
jne 0x140008a8b
lea rdx, str.SLDepositMigrationBlob
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140008a8b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x14002ef88], r12d
mov r8b, 1
xor edx, edx
mov ecx, r15d
call fcn.140008610
jmp 0x140008b42
test r14b, r14b
je 0x140008a6d
lea rdx, [0x140024448]
mov qword [rsp + 0x38], rdx
lea rax, str.LoadedBuiltInSpp
mov qword [rsp + 0x40], rax
cmp dword [0x14002ef88], 2
sete byte [rsp + 0x48]
mov ecx, 4
mov word [rsp + 0x4a], cx
mov qword [rsp + 0x50], rdx
lea rax, str.IsSppLoaded
mov qword [rsp + 0x58], rax
test rsi, rsi
setne byte [rsp + 0x60]
mov word [rsp + 0x62], cx
call fcn.14001f7a4
test al, al
je 0x140008b3f
lea rax, [rsp + 0x50]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x70], rax
lea rax, [0x140024290]
mov qword [rbp - 0x68], rax
lea rax, [rsp + 0x68]
mov qword [rbp - 0x60], rax
lea rax, [rsp + 0x78]
mov qword [rbp - 0x58], rax
mov r9d, 2
lea rax, [rbp - 0x68]
mov qword [rsp + 0x28], rax
lea rax, str.LoadSppLibrary___Spp_loading_result
mov qword [rsp + 0x20], rax
mov edx, 0x618
mov ecx, 0x2781090
lea r8d, [r9 + 0x30]
call fcn.14001fe38
mov rax, rsi
mov rcx, qword [rbp + 0x5e0]
xor rcx, rsp
call fcn.140020f80
lea r11, [rsp + 0x6f0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret