Function at 0x1400ff848
Capabilities:
Get common file path
Query environment variable

Disassembly:
mov rax, rsp
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov qword [rbp - 0x39], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1401d1010]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rdi, rcx
lea rsi, vtable.Mso::Logging::StructuredObject_wchar_t_const____ptr64__1_.0
mov qword [rbp - 0x31], rsi
lea r14, str.Information
mov qword [rbp - 0x29], r14
lea rax, str.Entering_SCAUtils::GetSessionTokenStorageCacheDirectoryPath
mov qword [rbp - 0x21], rax
xor r15d, r15d
mov word [rbp - 0x19], r15w
lea rax, [rbp - 0x31]
mov qword [rsp + 0x20], rax
lea r13, [0x140194248]
mov r9, r13
mov edx, 0x75b
mov ecx, 0x125945a
lea r8d, [r15 + 0x32]
call fcn.1400171f0
cmp qword [rdi + 0xf0], r15
je 0x1400ff964
nop dword [rax + rax]
lea rbx, [rdi + 0xe0]
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400ff8f4
mov rcx, qword [rbx]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
movsxd rsi, eax
mov rcx, rsi
add rcx, rcx
xor edx, edx
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_378]
mov r14, rax
test rax, rax
jne 0x1400ff9b9
lea rsi, vtable.Mso::Logging::StructuredObject_wchar_t_const____ptr64__1_.0
mov qword [rbp - 0x31], rsi
lea r14, str.Information
mov qword [rbp - 0x29], r14
lea rax, str.Failed_to_obtain_overriding_storage_location___Unsuccessful_allocation_of_directory_buffer._Reverting_to_default_path.
mov qword [rbp - 0x21], rax
mov word [rbp - 0x19], r15w
lea rax, [rbp - 0x31]
mov qword [rsp + 0x20], rax
mov r9, r13
mov edx, 0x75b
mov ecx, 0x125945b
mov r8d, 0xf
call fcn.1400171f0
nop
lea r13, vtable.Mso::Logging::StructuredObject_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____0_.0
cmp byte [rdi + 0x120], r15b
jne 0x1400ffd45
mov edx, 0x104
cmp qword [rdi + 0x110], rdx
jae 0x1400ffbac
lea rcx, [rdi + 0x100]
cmp qword [rcx + 0x10], rdx
jb 0x1400ffb9f
mov rax, rcx
cmp qword [rcx + 0x18], 8
jb 0x1400ff9a8
mov rax, qword [rcx]
mov qword [rcx + 0x10], rdx
mov word [rax + 0x208], r15w
jmp 0x1400ffbac
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400ff9c6
mov rcx, qword [rbx]
mov r8d, esi
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x1400ff9f2
lea rax, str.Information
mov qword [rbp - 0x29], rax
lea rax, str.Failed_to_obtain_overriding_storage_location___Unsuccessful_resolution_of_environment_variables_in_path.
mov ecx, 0x125945c
jmp 0x1400ffa8e
movdqa xmm0, xmmword [0x140195bf0]
movdqu xmmword [rbp - 0x21], xmm0
mov word [rbp - 0x31], r15w
mov rdx, r14
lea rcx, [rbp - 0x31]
call fcn.14000c968
lea rsi, [rdi + 0x100]
lea rdx, [rbp - 0x31]
mov rcx, rsi
call fcn.14000cba0
mov rax, qword [rbp - 0x19]
cmp rax, 8
jb 0x1400ffa63
mov rcx, qword [rbp - 0x31]
mov rdx, rcx
lea rax, [rax*2 + 2]
cmp rax, 0x1000
jb 0x1400ffa5c
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x1400ffa5c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
xor edx, edx
mov rcx, rsi
call fcn.1400e1b10
mov byte [rdi + 0x120], al
test al, al
jne 0x1400ffaca
lea rax, str.Information
mov qword [rbp - 0x29], rax
lea rax, str.Failed_to_obtain_overriding_storage_location___Invalid_Path._Reverting_to_default_path.
mov ecx, 0x125945d
mov qword [rbp - 0x21], rax
lea rax, [rbp - 0x31]
lea rsi, vtable.Mso::Logging::StructuredObject_wchar_t_const____ptr64__1_.0
mov edx, 0x75b
mov r9, r13
mov qword [rsp + 0x20], rax
mov word [rbp - 0x19], r15w
mov qword [rbp - 0x31], rsi
mov r8d, 0xf
call fcn.1400171f0
lea r13, vtable.Mso::Logging::StructuredObject_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____0_.0
jmp 0x1400ffb8a
lea r13, vtable.Mso::Logging::StructuredObject_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____0_.0
mov qword [rbp - 0x11], r13
lea rax, str.SessionTokenOverrideDirectory
mov qword [rbp - 9], rax
mov rdx, rbx
lea rcx, [rbp - 1]
call fcn.14000cc2c
mov word [rbp + 0x1f], r15w
lea rsi, vtable.Mso::Logging::StructuredObject_wchar_t_const____ptr64__1_.0
mov qword [rbp - 0x31], rsi
lea rax, str.Information
mov qword [rbp - 0x29], rax
lea rax, str.Obtained_overriding_storage_location
mov qword [rbp - 0x21], rax
mov word [rbp - 0x19], r15w
lea rax, [rbp - 0x11]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x31]
mov qword [rsp + 0x28], rax
lea rax, str.SCAUtils::GetSessionTokenStorageCacheDirectoryPath
mov qword [rsp + 0x20], rax
mov edx, 0x75b
mov ecx, 0x125945e
mov r8d, 0x32
call fcn.140012d4c
mov rax, qword [rbp + 0x17]
cmp rax, 8
jb 0x1400ffb8a
mov rcx, qword [rbp - 1]
mov rdx, rcx
lea rax, [rax*2 + 2]
cmp rax, 0x1000
jb 0x1400ffb83
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x1400ffb83
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, r14
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_1110]
lea r14, str.Information
jmp 0x1400ff96b
xor r8d, r8d
sub rdx, qword [rcx + 0x10]
call fcn.14000c9e4
nop
lea rbx, [rdi + 0x100]
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400ffbc0
mov rdx, qword [rbx]
xor ecx, ecx
lea r9d, [rcx + 1]
lea r8d, [rcx + 0x1c]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1400ffc9a
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400ffbe5
mov rax, qword [rbx]
or rdx, 0xffffffffffffffff
inc rdx
cmp word [rax + rdx*2], r15w
jne 0x1400ffbe9
cmp rdx, qword [rbx + 0x10]
ja 0x1400ffc11
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x1400ffc06
mov rax, qword [rbx]
mov qword [rbx + 0x10], rdx
mov word [rax + rdx*2], r15w
jmp 0x1400ffc21
xor r8d, r8d
sub rdx, qword [rbx + 0x10]
mov rcx, rbx
call fcn.14000c9e4
nop
movdqa xmm0, xmmword [0x140195bf0]
movdqu xmmword [rbp - 0x21], xmm0
mov word [rbp - 0x31], r15w
lea rdx, [rdi + 0x68]
lea r8, [rbp - 0x31]
mov rcx, rbx
call fcn.140007ca0
lea rdx, [rbp - 0x31]
mov rcx, rbx
call fcn.14000cba0
mov rax, qword [rbp - 0x19]
cmp rax, 8
jb 0x1400ffc8f
mov rcx, qword [rbp - 0x31]
mov rdx, rcx
lea rax, [rax*2 + 2]
cmp rax, 0x1000
jb 0x1400ffc88
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x1400ffc88
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
xor edx, edx
mov rcx, rbx
call fcn.1400e1b10
nop
mov qword [rbp - 0x11], r13
lea rax, str.StorageCacheDirectoryPath
mov qword [rbp - 9], rax
mov rdx, rbx
lea rcx, [rbp - 1]
call fcn.14000cc2c
mov word [rbp + 0x1f], r15w
mov qword [rbp - 0x31], rsi
mov qword [rbp - 0x29], r14
lea rax, str.No_override___using_default_storage_location
mov qword [rbp - 0x21], rax
mov word [rbp - 0x19], r15w
lea rax, [rbp - 0x11]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x31]
mov qword [rsp + 0x28], rax
lea rax, str.SCAUtils::GetSessionTokenStorageCacheDirectoryPath
mov qword [rsp + 0x20], rax
mov edx, 0x75b
mov ecx, 0x125945f
mov r8d, 0xf
call fcn.140012d4c
mov rax, qword [rbp + 0x17]
cmp rax, 8
jb 0x1400ffd45
mov rcx, qword [rbp - 1]
mov rdx, rcx
lea rax, [rax*2 + 2]
cmp rax, 0x1000
jb 0x1400ffd3e
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x1400ffd3e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
nop
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140107ad0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret