Function at 0x1400131d0
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x438]
sub rsp, 0x510
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1401d1010]
xor rax, rsp
mov qword [rbp + 0x400], rax
mov rsi, rcx
xor r14d, r14d
mov dword [rsp + 0x40], r14d
lea r12, vtable.Mso::Logging::StructuredObject_wchar_t_const____ptr64__1_.0
mov qword [rsp + 0x58], r12
lea r13, str.Information
mov qword [rsp + 0x60], r13
lea rax, str.Entering
mov qword [rsp + 0x68], rax
mov word [rsp + 0x70], r14w
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, str.HeartbeatAdapter::GetHeartbeatCacheFile
mov qword [rsp + 0x20], rax
lea edx, [r14 + 0x2d]
mov ecx, 0x7a05db
lea r8d, [r14 + 0x32]
call fcn.14000ed84
test rsi, rsi
jne 0x14001327c
mov eax, 0x80004003
jmp 0x1400135c4
mov qword [rsi], r14
mov ebx, 0x208
mov r8d, ebx
xor edx, edx
lea rcx, [rbp + 0x1f0]
call sub.VCRUNTIME140.dll_memset
mov r8d, ebx
xor edx, edx
lea rcx, [rbp - 0x20]
call sub.VCRUNTIME140.dll_memset
mov rbx, r14
mov qword [rsp + 0x48], rbx
movdqa xmm0, xmmword [0x140195bf0]
movdqu xmmword [rbp - 0x58], xmm0
mov word [rbp - 0x68], r14w
lea rdx, str.HeartbeatCache.xml
lea rcx, [rbp - 0x68]
call fcn.14000c968
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_913]
mov r15d, 0x1000
mov r9d, 1
xor ecx, ecx
test al, al
je 0x140013342
lea r8d, [r9 + 0x1b]
lea rdx, [rbp - 0x20]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x14001337e
mov edi, 0x80004005
mov rax, qword [rbp - 0x50]
cmp rax, 8
jb 0x1400135a2
lea rax, [rax*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rdx, rcx
cmp rax, r15
jb 0x14001359c
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x14001359c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov r8d, 0x23
lea rdx, [rbp + 0x1f0]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1400132fb
lea rax, [rbp + 0x1f0]
mov qword [rsp + 0x20], rax
lea r9, str._sMicrosoftOfficeHeartbeat
or r8, 0xffffffffffffffff
mov edx, 0x104
lea rcx, [rbp - 0x20]
call fcn.14000fcd0
lea r8, [rbp - 0x48]
xor edx, edx
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x1400133a6
cmp dword [rbp - 0x48], 0xffffffff
je 0x1400132fb
test byte [rbp - 0x48], 0x10
je 0x1400132fb
movdqa xmm0, xmmword [0x140195bf0]
movdqu xmmword [rsp + 0x68], xmm0
mov word [rsp + 0x58], r14w
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x58]
call fcn.14000c968
movdqa xmm0, xmmword [0x140195bf0]
movdqu xmmword [rbp - 0x78], xmm0
mov word [rsp + 0x78], r14w
mov dword [rsp + 0x40], 1
lea r8, [rsp + 0x78]
lea rdx, [rbp - 0x68]
lea rcx, [rsp + 0x58]
call fcn.140007ca0
lea rdx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x48]
call fcn.14000fdd0
mov edi, eax
mov rax, qword [rbp - 0x70]
cmp rax, 8
jb 0x14001344f
lea rax, [rax*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rdx, rcx
cmp rax, r15
jb 0x140013449
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x140013449
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
movdqa xmm0, xmmword [0x140195bf0]
movdqu xmmword [rbp - 0x78], xmm0
mov word [rsp + 0x78], r14w
mov rax, qword [rsp + 0x70]
cmp rax, 8
jb 0x1400134a0
lea rax, [rax*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rdx, rcx
cmp rax, r15
jb 0x14001349a
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
jbe 0x14001349a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test edi, edi
jns 0x1400134ae
mov rbx, qword [rsp + 0x48]
jmp 0x140013300
mov rax, qword [rsp + 0x48]
mov rbx, r14
mov qword [rsi], rax
mov qword [rsp + 0x58], r12
lea rax, str.HeartbeatCacheFilePath
mov qword [rsp + 0x60], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x68], rax
mov word [rsp + 0x70], r14w
mov qword [rsp + 0x78], r12
mov qword [rbp - 0x80], r13
lea rax, str.HeartbeatAdapter:_Cache_file_location
mov qword [rbp - 0x78], rax
mov word [rbp - 0x70], r14w
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
lea rax, str.HeartbeatAdapter::GetHeartbeatCacheFile
mov qword [rsp + 0x20], rax
mov edi, 0x32
mov r8d, edi
lea esi, [rdi - 5]
mov edx, esi
mov ecx, 0x7a05dc
call fcn.140012d4c
lea rax, str.HRESULT
mov qword [rbp - 0x80], rax
mov dword [rbp - 0x78], r14d
mov word [rbp - 0x74], r14w
lea rax, method.Mso::Logging::StructuredHr.virtual_0
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r13
lea rax, str.Exiting
mov qword [rsp + 0x68], rax
mov word [rsp + 0x70], r14w
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, str.HeartbeatAdapter::GetHeartbeatCacheFile
mov qword [rsp + 0x20], rax
mov r8d, edi
mov edx, esi
mov ecx, 0x7a05dd
call fcn.140012d4c
mov edi, r14d
jmp 0x140013300
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
movdqa xmm0, xmmword [0x140195bf0]
movdqu xmmword [rbp - 0x58], xmm0
mov word [rbp - 0x68], r14w
test rbx, rbx
je 0x1400135c2
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, edi
mov rcx, qword [rbp + 0x400]
xor rcx, rsp
call fcn.140107ad0
lea r11, [rsp + 0x510]
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