Function at 0x140003e20
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 - 0x638]
sub rsp, 0x710
mov rax, qword [0x140060010]
xor rax, rsp
mov qword [rbp + 0x600], rax
mov r13b, r8b
movsxd r15, ecx
xor r12d, r12d
lea rcx, [rbp - 0x30]
mov r8d, 0x208
xor edx, edx
mov esi, r12d
call sub.VCRUNTIME140.dll_memset
call fcn.1400049c8
test al, al
setne bl
call fcn.140004a90
mov edi, eax
mov word [rbp - 0x5c], r12w
lea rax, [0x14002f608]
mov dword [rbp - 0x60], edi
mov qword [rbp - 0x70], rax
lea rax, str.BuildNumber
mov qword [rbp - 0x68], rax
lea rax, [0x14002f5d8]
mov qword [rsp + 0x58], rax
lea rax, str.IsWindows8OrGreater
mov qword [rsp + 0x60], rax
lea rax, [0x14002f588]
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
mov byte [rsp + 0x68], bl
mov word [rsp + 0x6a], r12w
mov word [rbp - 0x78], r12w
call fcn.140004ba0
test edi, edi
jg 0x140003f1e
mov byte [rsp + 0x50], bl
mov byte [rsp + 0x51], r12b
jmp 0x140003f41
cmp edi, 0x23f0
setge al
test bl, bl
jne 0x140003f34
mov byte [rsp + 0x50], r12b
test al, al
je 0x140003f39
mov byte [rsp + 0x50], 1
xor al, bl
xor al, 1
mov byte [rsp + 0x51], al
movzx eax, word [rsp + 0x50]
lea rcx, [0x14002f5d8]
movzx r14d, ax
mov qword [rsp + 0x58], rcx
shr r14w, 8
test al, al
mov byte [rsp + 0x68], r14b
lea rax, str.IsTrustedVersionData
mov word [rsp + 0x6a], r12w
mov qword [rsp + 0x60], rax
sete bl
lea rax, str.IsWindows7
mov qword [rbp - 0x70], rcx
mov qword [rbp - 0x68], rax
lea rax, str.AlwaysUseOspp
mov qword [rsp + 0x78], rax
lea rax, [0x14002f588]
mov qword [rbp - 0x58], rax
lea rax, str.Information
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
mov byte [rbp - 0x60], bl
mov word [rbp - 0x5e], r12w
mov qword [rsp + 0x70], rcx
mov byte [rbp - 0x80], r13b
mov word [rbp - 0x7e], r12w
mov word [rbp - 0x40], r12w
call fcn.140004410
test r13b, r13b
jne 0x140004032
test bl, bl
je 0x140004007
test r14b, r14b
jne 0x140004032
lea rcx, [0x140031138]
mov r8, r15
add r8, r8
mov edx, 0x104
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 0x1400042a6
lea rcx, [0x140031138]
mov rax, r15
add rax, rax
lea rdx, [rbp - 0x30]
xor ebx, ebx
mov word [rbp - 0x30], bx
mov r12, qword [rcx + rax*8]
lea rcx, str.Path
call fcn.140029528
or rdi, 0xffffffffffffffff
lea rcx, [rbp - 0x30]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], bx
jne 0x140004064
test rax, rax
jne 0x1400041c5
mov ebx, 0x104
lea r8, [rsp + 0x50]
lea rdx, [rbp + 0x1e0]
mov dword [rsp + 0x50], ebx
lea rcx, str.9FA51552_E8F4_4D9A_AEA5_9B9C6A1A2984
call qword [sym.imp.msi.dll_MsiOpenPackageW]
cmp eax, 3
jne 0x1400040ba
cmp dword [rsp + 0x50], esi
je 0x1400040ba
lea r8, [rbp + 0x1e0]
mov edx, ebx
lea rcx, [rbp - 0x30]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
test eax, eax
jne 0x1400040fa
mov edx, 0x5c
lea rcx, [rbp - 0x30]
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
test rax, rax
je 0x1400041c3
lea rcx, [rbp - 0x30]
mov rdx, rbx
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 ebx, ebx
test eax, eax
je 0x1400041c5
xor r12d, r12d
cmp dword [0x140062368], 2
lea rdx, [0x14002f5d8]
lea rcx, str.LoadedBuiltInSpp
mov qword [rsp + 0x70], rdx
sete al
mov qword [rsp + 0x78], rcx
mov byte [rbp - 0x80], al
lea rcx, str.IsSppLoaded
test rsi, rsi
mov word [rbp - 0x7e], r12w
mov qword [rsp + 0x58], rdx
setne al
mov qword [rsp + 0x60], rcx
mov byte [rsp + 0x68], al
lea rax, [0x14002f588]
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
mov word [rsp + 0x6a], r12w
mov word [rbp - 0x40], r12w
call fcn.1400044b8
mov rax, rsi
mov rcx, qword [rbp + 0x600]
xor rcx, rsp
call fcn.14002a750
lea r11, [rsp + 0x710]
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
xor ebx, ebx
lea rcx, [rbp - 0x30]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], bx
jne 0x1400041cc
test rax, rax
jne 0x140004286
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 r9d, r9d
mov word [rbp + 0x3f0], bx
lea rdx, [rbp + 0x1e0]
xor ecx, ecx
lea r8d, [r9 + 0x2b]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x140004252
cmp word [rbp + 0x1e0], bx
je 0x140004252
lea r8, [rbp + 0x3f0]
lea rdx, str.Microsoft_Shared
lea rcx, [rbp + 0x1e0]
call fcn.14000432c
test eax, eax
jne 0x1400040fa
lea rax, [rbp + 0x3f0]
inc rdi
cmp word [rax + rdi*2], bx
jne 0x140004259
test rdi, rdi
je 0x140004286
lea r8, [rbp - 0x30]
lea rdx, str.OfficeSoftwareProtectionPlatform
lea rcx, [rbp + 0x3f0]
call fcn.14000432c
test eax, eax
jne 0x1400040fa
lea r8, [rbp - 0x30]
mov rdx, r12
lea rcx, [rbp - 0x30]
call fcn.14000432c
xor r12d, r12d
test eax, eax
jne 0x1400040fd
lea eax, [r12 + 1]
mov ecx, 1
mov dword [0x140062368], eax
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
lea rcx, [rbp - 0x30]
mov ebx, eax
call fcn.140003d98
mov ecx, ebx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
test r13b, r13b
jne 0x1400040fd
test rsi, rsi
je 0x14000431f
test r14b, r14b
jne 0x1400040fd
lea rdx, str.SLDepositMigrationBlob
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x1400040fd
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov r8b, 1
mov dword [0x140062368], r12d
xor edx, edx
mov ecx, r15d
call fcn.140003e20
jmp 0x140004193
test r14b, r14b
jne 0x1400040fd
jmp 0x140004306