Function at 0x4a5c00
Capabilities:
Check if file exists
Get common file path

Disassembly:
sub esp, 0xc38
mov eax, dword [0x704dd8]
xor eax, esp
mov dword [esp + 0xc34], eax
push ebx
push ebp
push esi
push edi
xor eax, eax
mov esi, ecx
push 0x206
push eax
lea ecx, [esp + 0xa46]
push ecx
mov dword [esp + 0x1c], esi
xor edi, edi
xor ebx, ebx
xor ebp, ebp
mov word [esp + 0xa48], ax
call fcn.004e9ba0
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x84a]
push eax
mov word [esp + 0x84c], dx
call fcn.004e9ba0
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x446]
push edx
mov word [esp + 0x448], cx
call fcn.004e9ba0
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x65a]
push ecx
mov word [esp + 0x65c], ax
call fcn.004e9ba0
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x4e]
push eax
mov word [esp + 0x50], dx
call fcn.004e9ba0
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x262]
push edx
mov word [esp + 0x264], cx
call fcn.004e9ba0
add esp, 0x48
push ebp
push 0x1a
lea eax, [esp + 0xa44]
push eax
push ebp
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
jmp 0x4a5cf0
movzx ecx, word [esp + eax + 0xa3c]
mov word [esp + eax + 0x14], cx
add eax, 2
test cx, cx
jne 0x4a5cf0
lea ecx, [esp + 0x14]
push 0x5c
push ecx
call fcn.004e9c3b
add esp, 8
test eax, eax
jne 0x4a5d1f
mov ecx, esi
jmp 0x4a5f18
xor edx, edx
mov word [eax], dx
xor eax, eax
jmp 0x4a5d30
movzx ecx, word [esp + eax + 0x14]
mov word [esp + eax + 0x834], cx
add eax, 2
test cx, cx
jne 0x4a5d30
lea eax, [esp + 0x834]
add eax, 0xfffffffe
nop
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4a5d50
mov ecx, dword [str.Local]
mov edx, dword [0x614704]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [eax], ecx
mov ecx, dword [0x614708]
mov dword [eax + 4], edx
mov dx, word [0x61470c]
mov dword [eax + 8], ecx
mov word [eax + 0xc], dx
lea eax, [esp + 0x834]
push eax
call esi
test eax, eax
je 0x4a5d9a
mov edi, 1
xor eax, eax
lea esp, [esp]
movzx ecx, word [esp + eax + 0x14]
mov word [esp + eax + 0x424], cx
add eax, 2
test cx, cx
jne 0x4a5da0
lea eax, [esp + 0x424]
add eax, 0xfffffffe
nop
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4a5dc0
mov ecx, dword [str.LocalLow]
mov edx, dword [0x6146f0]
mov dword [eax], ecx
mov ecx, dword [0x6146f4]
mov dword [eax + 4], edx
mov edx, dword [0x6146f8]
mov dword [eax + 8], ecx
mov ecx, dword [0x6146fc]
mov dword [eax + 0xc], edx
lea edx, [esp + 0x424]
push edx
mov dword [eax + 0x10], ecx
call esi
test eax, eax
je 0x4a5e0b
mov ebx, 1
xor eax, eax
lea ecx, [ecx]
movzx ecx, word [esp + eax + 0x14]
mov word [esp + eax + 0x62c], cx
add eax, 2
test cx, cx
jne 0x4a5e10
lea eax, [esp + 0x62c]
add eax, 0xfffffffe
nop
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4a5e30
mov ecx, dword [str.Roaming]
mov edx, dword [0x6146dc]
mov dword [eax], ecx
mov ecx, dword [0x6146e0]
mov dword [eax + 4], edx
mov edx, dword [0x6146e4]
mov dword [eax + 8], ecx
mov cx, word [0x6146e8]
mov dword [eax + 0xc], edx
lea edx, [esp + 0x62c]
push edx
mov word [eax + 0x10], cx
call esi
test eax, eax
je 0x4a5e7d
mov ebp, 1
test edi, edi
je 0x4a5f12
test ebx, ebx
je 0x4a5f12
test ebp, ebp
je 0x4a5f12
mov edi, dword [esp + 0x10]
mov ecx, edi
call fcn.004a3870
test eax, eax
je 0x4a5f16
push str.PeopleCalendar.users
lea eax, [esp + 0x428]
push eax
lea ecx, [esp + 0x224]
push str._s_s_
push ecx
call fcn.00403b80
add esp, 0x10
lea edx, [esp + 0x21c]
push edx
call esi
test eax, eax
jne 0x4a5ee4
lea eax, [esp + 0x21c]
push eax
call fcn.004a6000
add esp, 4
lea eax, [esp + 0x21c]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a5ef0
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x220]
push ecx
lea ecx, [edi + 0x20]
call fcn.00401c70
jmp 0x4a5f1d
mov edi, dword [esp + 0x10]
mov ecx, edi
call fcn.004a5780
mov ecx, dword [esp + 0xc44]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004e8c89
add esp, 0xc38
ret