Function at 0x140002fb0
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 [0x140064008]
xor rax, rsp
mov qword [rbp + 0x5e0], rax
mov r13b, r8b
movsxd r15, ecx
xor r12d, r12d
lea rcx, [rbp - 0x50]
mov r8d, 0x208
xor edx, edx
mov ebx, r12d
call sub.VCRUNTIME140.dll_memset
call fcn.1400036cc
test al, al
setne dil
call fcn.140003790
mov esi, eax
mov byte [rbp - 0x70], dil
lea ecx, [r12 + 4]
mov dword [rsp + 0x48], esi
lea rax, [0x1400336a8]
mov word [rsp + 0x4c], cx
mov qword [rsp + 0x38], rax
lea edx, [rcx + 0x29]
lea rax, str.BuildNumber
mov word [rbp - 0x6e], cx
mov qword [rsp + 0x40], rax
lea r14d, [r12 + 2]
lea rax, [0x140033668]
mov r9d, r14d
mov qword [rbp - 0x80], rax
lea r8d, [r12 + 0x32]
lea rax, str.IsWindows8OrGreater
mov ecx, 0x14c96cb
mov qword [rbp - 0x78], rax
call fcn.140028210
lea rcx, [0x140033628]
test al, al
je 0x1400030d8
lea rax, [rbp - 0x80]
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x68], rax
lea edx, [r12 + 0x2d]
lea rax, [rsp + 0x38]
mov r9d, r14d
mov qword [rsp + 0x70], rax
lea r8d, [r12 + 0x32]
lea rax, [rsp + 0x68]
mov ecx, 0x14c96cb
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, str.IsWindows8OrLater___Determining_Windows_version
mov qword [rsp + 0x20], rax
call fcn.1400285ac
test esi, esi
jg 0x1400030e8
mov byte [rsp + 0x30], dil
mov byte [rsp + 0x31], r12b
jmp 0x14000310d
cmp esi, 0x23f0
setge al
test dil, dil
jne 0x1400030ff
mov byte [rsp + 0x30], r12b
test al, al
je 0x140003104
mov byte [rsp + 0x30], 1
xor al, dil
xor al, 1
mov byte [rsp + 0x31], al
movzx eax, word [rsp + 0x30]
lea rdx, [0x140033668]
mov ecx, 4
mov qword [rsp + 0x68], rdx
movzx r14d, ax
mov word [rsp + 0x7a], cx
shr r14w, 8
test al, al
mov qword [rbp - 0x80], rdx
lea esi, [rcx - 2]
mov word [rbp - 0x6e], cx
lea rax, str.IsTrustedVersionData
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x70], rax
lea r8d, [rsi + 0x30]
lea rax, str.IsWindows7
mov word [rsp + 0x4a], cx
mov qword [rbp - 0x78], rax
sete dil
lea rax, str.AlwaysUseOspp
mov byte [rsp + 0x78], r14b
mov r9d, esi
mov qword [rsp + 0x40], rax
mov edx, 0x618
mov byte [rbp - 0x70], dil
mov ecx, 0x278108f
mov byte [rsp + 0x48], r13b
call fcn.140028210
test al, al
je 0x1400031fc
lea rax, [rsp + 0x38]
mov r9d, esi
mov qword [rsp + 0x50], rax
lea r8d, [rsi + 0x30]
lea rax, [rbp - 0x80]
mov edx, 0x618
mov qword [rsp + 0x58], rax
mov ecx, 0x278108f
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
lea rax, [0x140033628]
mov qword [rbp - 0x68], rax
lea rax, [rsp + 0x50]
mov qword [rbp - 0x60], rax
lea rax, [rsp + 0x68]
mov qword [rbp - 0x58], rax
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
call fcn.1400285ac
test r13b, r13b
jne 0x140003233
test dil, dil
je 0x14000320b
test r14b, r14b
jne 0x140003233
lea rcx, [0x140035aa8]
mov r8, r15
add r8, r8
mov edx, 0x104
mov r8, qword [rcx + r8*8 + 8]
lea rcx, [rbp - 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov eax, esi
jmp 0x1400033f3
lea rcx, [0x140035aa8]
mov dword [rsp + 0x30], 0x208
mov rax, r15
lea r8, [rsp + 0x30]
add rax, rax
lea rdx, [rbp - 0x50]
mov r12, qword [rcx + rax*8]
lea rcx, str.Path
call fcn.14001c68c
or rsi, 0xffffffffffffffff
lea rcx, [rbp - 0x50]
mov rax, rsi
xor edi, edi
inc rax
cmp word [rcx + rax*2], di
jne 0x14000326e
test rax, rax
jne 0x14000330a
mov edi, 0x104
lea r8, [rsp + 0x30]
lea rdx, [rbp + 0x1c0]
mov dword [rsp + 0x30], edi
lea rcx, str.9FA51552_E8F4_4D9A_AEA5_9B9C6A1A2984
call qword [sym.imp.msi.dll_MsiOpenPackageW]
cmp eax, 3
jne 0x1400032ca
xor eax, eax
cmp dword [rsp + 0x30], eax
je 0x1400032ca
lea r8, [rbp + 0x1c0]
mov edx, edi
lea rcx, [rbp - 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
test eax, eax
jne 0x1400034c0
mov edx, 0x5c
lea rcx, [rbp - 0x50]
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
test rax, rax
je 0x140003308
lea rcx, [rbp - 0x50]
mov rdx, rdi
sub rax, rcx
lea r8, [rbp - 0x50]
sar rax, 1
lea rcx, [rbp - 0x50]
mov r9, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
xor edi, edi
test eax, eax
jne 0x1400034c0
jmp 0x14000330a
xor edi, edi
lea rcx, [rbp - 0x50]
mov rax, rsi
inc rax
cmp word [rcx + rax*2], di
jne 0x140003311
test rax, rax
jne 0x1400033d3
xor edx, edx
lea rcx, [rbp + 0x3d2]
mov r8d, 0x206
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rbp + 0x1c0]
mov r8d, 0x208
call sub.VCRUNTIME140.dll_memset
xor eax, eax
lea rdx, [rbp + 0x1c0]
xor r9d, r9d
mov word [rbp + 0x3d0], ax
xor ecx, ecx
lea r8d, [rax + 0x2b]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor ecx, ecx
test eax, eax
je 0x140003397
cmp word [rbp + 0x1c0], cx
je 0x140003397
lea r8, [rbp + 0x3d0]
lea rdx, str.Microsoft_Shared
lea rcx, [rbp + 0x1c0]
call fcn.1400035bc
mov edi, eax
xor ecx, ecx
test edi, edi
jne 0x1400034c0
lea rax, [rbp + 0x3d0]
inc rsi
cmp word [rax + rsi*2], cx
jne 0x1400033a6
test rsi, rsi
je 0x1400033d3
lea r8, [rbp - 0x50]
lea rdx, str.OfficeSoftwareProtectionPlatform
lea rcx, [rbp + 0x3d0]
call fcn.1400035bc
test eax, eax
jne 0x1400034c0
lea r8, [rbp - 0x50]
mov rdx, r12
lea rcx, [rbp - 0x50]
call fcn.1400035bc
xor r12d, r12d
test eax, eax
jne 0x1400034c0
lea eax, [r12 + 1]
mov ecx, 1
mov dword [0x1400660a8], eax
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov edi, eax
cmp word [rbp - 0x50], r12w
jne 0x140003414
mov ecx, 5
int 0x29
xor edx, edx
lea rcx, [rbp - 0x50]
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rbx, rax
test rax, rax
jne 0x14000346d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x14000346d
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.AddDllDirectory
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x14000346d
xor r8d, r8d
lea rcx, [rbp - 0x50]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rbx, rax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
test r13b, r13b
jne 0x1400034c0
test rbx, rbx
je 0x1400034bb
test r14b, r14b
jne 0x1400034c0
lea rdx, str.SLDepositMigrationBlob
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x1400034c0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov r8b, 1
mov dword [0x1400660a8], r12d
xor edx, edx
mov ecx, r15d
call fcn.140002fb0
jmp 0x14000358a
test r14b, r14b
je 0x1400034a2
mov esi, 2
lea rdx, [0x140033668]
cmp dword [0x1400660a8], esi
lea rax, str.LoadedBuiltInSpp
mov qword [rsp + 0x40], rax
mov r14d, 0x618
sete byte [rsp + 0x48]
mov qword [rsp + 0x38], rdx
lea ecx, [rsi + 2]
mov qword [rsp + 0x50], rdx
mov word [rsp + 0x4a], cx
lea rax, str.IsSppLoaded
mov word [rsp + 0x62], cx
lea r15d, [rsi + 0x30]
test rbx, rbx
mov qword [rsp + 0x58], rax
mov edi, 0x2781090
mov r9d, esi
mov ecx, edi
mov r8d, r15d
mov edx, r14d
setne byte [rsp + 0x60]
call fcn.140028210
test al, al
je 0x140003587
lea rax, [rsp + 0x50]
mov r9d, esi
mov qword [rsp + 0x68], rax
mov r8d, r15d
lea rax, [rsp + 0x38]
mov edx, r14d
mov qword [rsp + 0x70], rax
mov ecx, edi
lea rax, [0x140033628]
mov qword [rbp - 0x68], rax
lea rax, [rsp + 0x68]
mov qword [rbp - 0x60], rax
lea rax, [rsp + 0x78]
mov qword [rbp - 0x58], rax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x28], rax
lea rax, str.LoadSppLibrary___Spp_loading_result
mov qword [rsp + 0x20], rax
call fcn.1400285ac
mov rax, rbx
mov rcx, qword [rbp + 0x5e0]
xor rcx, rsp
call fcn.14002f880
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