Function at 0x428178
Capabilities:
Get common file path

Disassembly:
push 0x488
mov eax, 0x435b9a
call fcn.004327ed
mov ebx, ecx
mov dword [ebp - 0x494], ebx
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x42c], 0x4391f4
push eax
push 0x4879c8
push 0x32
push 0x2d
pop edx
mov ecx, 0x7a05db
mov dword [ebp - 0x428], str.Information
mov dword [ebp - 0x424], str.Entering
call fcn.0040a95e
test ebx, ebx
jne 0x4281d6
mov eax, 0x80004003
jmp 0x428276
mov esi, 0x208
lea eax, [ebp - 0x420]
xor edi, edi
push esi
push edi
push eax
mov dword [ebx], edi
call sub.VCRUNTIME140.dll_memset
push esi
lea eax, [ebp - 0x218]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
mov esi, edi
add esp, 0x18
mov dword [ebp - 0x490], esi
push 7
pop ebx
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x468]
push 0x12
xor eax, eax
mov dword [ebp - 0x458], edi
push str.HeartbeatCache.xml
mov dword [ebp - 0x454], ebx
mov word [ebp - 0x468], ax
call fcn.00405225
mov byte [ebp - 4], 1
call dword [sym.imp.Mso20Win32Client.dll_Ordinal_384]
push 1
test al, al
je 0x42827c
push 0x1c
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x4282b2
mov ebx, 0x80004005
mov edi, ebx
lea ecx, [ebp - 0x468]
call fcn.004057fa
test esi, esi
je 0x428274
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, edi
call fcn.004327a2
ret
push 0x23
lea eax, [ebp - 0x420]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x428257
lea eax, [ebp - 0x420]
push eax
push str._sMicrosoftOfficeHeartbeat
push 0xffffffffffffffff
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00424c61
add esp, 0x14
lea eax, [ebp - 0x48c]
push eax
push edi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x4282e1
cmp dword [ebp - 0x48c], 0xffffffff
je 0x428257
test byte [ebp - 0x48c], 0x10
je 0x428257
xor eax, eax
mov dword [ebp - 0x440], edi
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x43c], ebx
mov word [ebp - 0x450], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x4282ff
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x450]
call fcn.00405225
lea eax, [ebp - 0x468]
mov byte [ebp - 4], 2
push eax
lea edx, [ebp - 0x450]
lea ecx, [ebp - 0x438]
call fcn.00402bb6
cmp dword [eax + 0x14], 8
jb 0x428345
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x490]
call fcn.00425d2e
lea ecx, [ebp - 0x438]
mov ebx, eax
call fcn.004057fa
lea ecx, [ebp - 0x450]
call fcn.004057fa
test ebx, ebx
jns 0x428378
mov esi, dword [ebp - 0x490]
jmp 0x42825c
mov ecx, dword [ebp - 0x494]
mov ebx, 0x4391f4
mov eax, dword [ebp - 0x490]
mov esi, edi
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x428], str.HeartbeatCacheFilePath
mov dword [ecx], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x424], eax
mov ecx, 0x7a05dc
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x444], ebx
push eax
lea eax, [ebp - 0x444]
mov dword [ebp - 0x440], str.Information
push eax
push 0x4879c8
push 0x32
push 0x2d
pop edx
mov dword [ebp - 0x43c], str.HeartbeatAdapter:_Cache_file_location
call fcn.00408c09
lea eax, [ebp - 0x444]
mov dword [ebp - 0x440], str.HRESULT
push eax
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x43c], edi
push eax
push 0x4879c8
push 0x32
push 0x2d
pop edx
mov ecx, 0x7a05dd
mov dword [ebp - 0x444], 0x4397a0
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x428], str.Information
mov dword [ebp - 0x424], str.Exiting
call fcn.00408c09
jmp 0x42825e