Function at 0x14000b190
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 [0x14002b010]
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.140001b90
test al, al
setne bl
call fcn.14000b7ec
mov edi, eax
lea rax, [0x140021670]
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, [0x140021650]
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.140007cbc
lea rcx, [0x140021220]
test al, al
je 0x14000b2a3
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.140008358
test edi, edi
jg 0x14000b2b2
mov byte [rsp + 0x30], bl
mov byte [rsp + 0x31], r12b
jmp 0x14000b2d5
cmp edi, 0x23f0
setge al
test bl, bl
jne 0x14000b2c8
test al, al
mov byte [rsp + 0x30], r12b
je 0x14000b2cd
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, [0x140021650]
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.140007cbc
test al, al
je 0x14000b3b1
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, [0x140021220]
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.140008358
test r13b, r13b
jne 0x14000b3ea
test bl, bl
je 0x14000b3bf
test r14b, r14b
jne 0x14000b3ea
mov r8, r15
add r8, r8
lea rcx, [0x140023050]
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 0x14000b58f
mov rax, r15
add rax, rax
lea rcx, [0x140023050]
mov r12, qword [rcx + rax*8]
lea rdx, [rbp - 0x50]
lea rcx, str.Path
call fcn.1400057ec
lea rcx, [rbp - 0x50]
or rdi, 0xffffffffffffffff
mov rax, rdi
xor ebx, ebx
inc rax
cmp word [rcx + rax*2], bx
jne 0x14000b418
test rax, rax
jne 0x14000b4b2
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 0x14000b472
cmp dword [rsp + 0x30], esi
je 0x14000b472
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 0x14000b601
mov edx, 0x5c
lea rcx, [rbp - 0x50]
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
test rax, rax
je 0x14000b4b0
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 0x14000b601
jmp 0x14000b4b2
xor ebx, ebx
lea rcx, [rbp - 0x50]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], bx
jne 0x14000b4b9
test rax, rax
jne 0x14000b573
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
mov word [rbp + 0x3d0], bx
xor r9d, r9d
lea r8d, [r9 + 0x2b]
lea rdx, [rbp + 0x1c0]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x14000b53f
cmp word [rbp + 0x1c0], bx
je 0x14000b53f
lea r8, [rbp + 0x3d0]
lea rdx, str.Microsoft_Shared
lea rcx, [rbp + 0x1c0]
call fcn.14000b6e8
test eax, eax
jne 0x14000b601
lea rax, [rbp + 0x3d0]
inc rdi
cmp word [rax + rdi*2], bx
jne 0x14000b546
test rdi, rdi
je 0x14000b573
lea r8, [rbp - 0x50]
lea rdx, str.OfficeSoftwareProtectionPlatform
lea rcx, [rbp + 0x3d0]
call fcn.14000b6e8
test eax, eax
jne 0x14000b601
lea r8, [rbp - 0x50]
mov rdx, r12
lea rcx, [rbp - 0x50]
call fcn.14000b6e8
xor r12d, r12d
test eax, eax
jne 0x14000b601
lea eax, [r12 + 1]
mov dword [0x14002bfa0], eax
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov ebx, eax
lea rcx, [rbp - 0x50]
call fcn.140001b08
mov rsi, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
test r13b, r13b
jne 0x14000b601
test rsi, rsi
je 0x14000b5fc
test r14b, r14b
jne 0x14000b601
lea rdx, str.SLDepositMigrationBlob
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x14000b601
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x14002bfa0], r12d
mov r8b, 1
xor edx, edx
mov ecx, r15d
call fcn.14000b190
jmp 0x14000b6b8
test r14b, r14b
je 0x14000b5e3
lea rdx, [0x140021650]
mov qword [rsp + 0x38], rdx
lea rax, str.LoadedBuiltInSpp
mov qword [rsp + 0x40], rax
cmp dword [0x14002bfa0], 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.140007cbc
test al, al
je 0x14000b6b5
lea rax, [rsp + 0x50]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x70], rax
lea rax, [0x140021220]
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.140008358
mov rax, rsi
mov rcx, qword [rbp + 0x5e0]
xor rcx, rsp
call fcn.14001e1c0
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