Function at 0x140011c70
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov qword [rbp - 0x11], 0xfffffffffffffffe
mov qword [rax + 8], rsi
mov r15, rcx
lea r14, vtable.Mso::Logging::StructuredObject_wchar_t_const____ptr64__1_.0
mov qword [rbp - 9], r14
lea rax, str.Information
mov qword [rbp - 1], rax
lea rax, str.Loading_the_cache_file
mov qword [rbp + 7], rax
xor r12d, r12d
mov word [rbp + 0xf], r12w
lea rax, [rbp - 9]
mov qword [rsp + 0x28], rax
lea rax, str.HeartbeatAdapter::GetCachedHeartbeatResults
mov qword [rsp + 0x20], rax
lea edx, [r12 + 0x2d]
mov ecx, 0x7a05d6
lea r8d, [r12 + 0x32]
call fcn.14000ed84
mov qword [rbp - 0x19], r12
lea rcx, [rbp - 0x19]
call fcn.1400131d0
mov esi, eax
test eax, eax
js 0x140011efd
mov qword [rbp + 0x7f], r12
lea rdx, [rbp + 0x7f]
mov rcx, qword [rbp - 0x19]
call fcn.140011b3c
mov rdi, qword [rbp + 0x7f]
test al, al
je 0x140011d37
mov dword [rbp - 9], 1
mov qword [rbp - 1], rdi
mov rdx, r15
lea rcx, [rbp - 9]
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_1224]
test eax, eax
jns 0x140011eeb
mov qword [rbp + 0x17], r14
lea rax, str.Information
mov qword [rbp + 0x1f], rax
lea rax, str.Cache_file_doesnt_exist___Creating_empty_version
mov qword [rbp + 0x27], rax
mov word [rbp + 0x2f], r12w
lea rax, [rbp + 0x17]
mov qword [rsp + 0x28], rax
lea rax, str.HeartbeatAdapter::GetCachedHeartbeatResults
mov qword [rsp + 0x20], rax
mov edx, 0x2d
mov ecx, 0x7a05d7
lea r8d, [rdx + 5]
call fcn.14000ed84
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov esi, 2
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_361]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x140011e9f
mov word [rbp + 0x6f], 0xfeff
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x77]
mov r8d, esi
lea rdx, [rbp + 0x6f]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140011ec6
lea edx, [rsi + 0x38]
lea rcx, str.__xml_version_1.0__encoding_UTF_16____r_n_HeartbeatCache__
call qword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov rsi, rax
mov rcx, rax
call qword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x77]
mov r8d, eax
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140011e31
test rsi, rsi
je 0x140011ec6
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x140011ec6
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rax, vtable.Mso::Logging::StructuredObject_wchar_t_const____ptr64__1_.0
mov qword [rbp + 0x17], rax
lea rax, str.Information
mov qword [rbp + 0x1f], rax
lea rax, str.Successfully_created_empty_cache_file
mov qword [rbp + 0x27], rax
mov word [rbp + 0x2f], r12w
lea rax, [rbp + 0x17]
mov qword [rsp + 0x28], rax
lea rax, str.HeartbeatAdapter::CreateEmptyCacheFile
mov qword [rsp + 0x20], rax
mov edx, 0x2d
mov ecx, 0x7a05d8
lea r8d, [rdx + 5]
call fcn.14000ed84
test rsi, rsi
je 0x140011e9f
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test rdi, rdi
je 0x140011eb1
mov qword [rbp + 0x7f], r12
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
lea rdx, [rbp + 0x7f]
mov rcx, qword [rbp - 0x19]
call fcn.140011b3c
mov rdi, qword [rbp + 0x7f]
test al, al
jne 0x140011ecd
mov esi, 0x80004005
jmp 0x140011eee
mov dword [rbp - 9], 1
mov qword [rbp - 1], rdi
mov rdx, r15
lea rcx, [rbp - 9]
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_1224]
mov esi, eax
test eax, eax
js 0x140011eee
mov esi, r12d
test rdi, rdi
je 0x140011efd
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
cmp qword [rbp - 0x19], r12
je 0x140011f0d
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, esi
mov rsi, qword [rsp + 0xc0]
add rsp, 0x90
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret