Function at 0x140003de0
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.140004988
test al, al
setne bl
call fcn.140004a50
mov edi, eax
mov word [rbp - 0x5c], r12w
lea rax, [0x14002f5e8]
mov dword [rbp - 0x60], edi
mov qword [rbp - 0x70], rax
lea rax, str.BuildNumber
mov qword [rbp - 0x68], rax
lea rax, [0x14002f5b8]
mov qword [rsp + 0x58], rax
lea rax, str.IsWindows8OrGreater
mov qword [rsp + 0x60], rax
lea rax, [0x14002f568]
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.140004b60
test edi, edi
jg 0x140003ede
mov byte [rsp + 0x50], bl
mov byte [rsp + 0x51], r12b
jmp 0x140003f01
cmp edi, 0x23f0
setge al
test bl, bl
jne 0x140003ef4
mov byte [rsp + 0x50], r12b
test al, al
je 0x140003ef9
mov byte [rsp + 0x50], 1
xor al, bl
xor al, 1
mov byte [rsp + 0x51], al
movzx eax, word [rsp + 0x50]
lea rcx, [0x14002f5b8]
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, [0x14002f568]
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.1400043d0
test r13b, r13b
jne 0x140003ff2
test bl, bl
je 0x140003fc7
test r14b, r14b
jne 0x140003ff2
lea rcx, [0x140031118]
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 0x140004266
lea rcx, [0x140031118]
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.1400294f8
or rdi, 0xffffffffffffffff
lea rcx, [rbp - 0x30]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], bx
jne 0x140004024
test rax, rax
jne 0x140004185
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 0x14000407a
cmp dword [rsp + 0x50], esi
je 0x14000407a
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 0x1400040ba
mov edx, 0x5c
lea rcx, [rbp - 0x30]
call qword [sym.imp.VCRUNTIME140.dll_wcsrchr]
test rax, rax
je 0x140004183
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 0x140004185
xor r12d, r12d
cmp dword [0x140062368], 2
lea rdx, [0x14002f5b8]
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, [0x14002f568]
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.140004478
mov rax, rsi
mov rcx, qword [rbp + 0x600]
xor rcx, rsp
call fcn.14002a720
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 0x14000418c
test rax, rax
jne 0x140004246
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 0x140004212
cmp word [rbp + 0x1e0], bx
je 0x140004212
lea r8, [rbp + 0x3f0]
lea rdx, str.Microsoft_Shared
lea rcx, [rbp + 0x1e0]
call fcn.1400042ec
test eax, eax
jne 0x1400040ba
lea rax, [rbp + 0x3f0]
inc rdi
cmp word [rax + rdi*2], bx
jne 0x140004219
test rdi, rdi
je 0x140004246
lea r8, [rbp - 0x30]
lea rdx, str.OfficeSoftwareProtectionPlatform
lea rcx, [rbp + 0x3f0]
call fcn.1400042ec
test eax, eax
jne 0x1400040ba
lea r8, [rbp - 0x30]
mov rdx, r12
lea rcx, [rbp - 0x30]
call fcn.1400042ec
xor r12d, r12d
test eax, eax
jne 0x1400040bd
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.140003d58
mov ecx, ebx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
test r13b, r13b
jne 0x1400040bd
test rsi, rsi
je 0x1400042df
test r14b, r14b
jne 0x1400040bd
lea rdx, str.SLDepositMigrationBlob
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x1400040bd
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.140003de0
jmp 0x140004153
test r14b, r14b
jne 0x1400040bd
jmp 0x1400042c6