Function at 0x408e50
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x43b888
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
mov eax, dword [esp + 0x88]
push ebx
push ebp
push esi
test eax, eax
push edi
mov dword [esp + 0x20], ecx
je 0x408e81
mov dword [eax], 0
mov esi, dword [esp + 0x94]
cmp dword [esi + 0x1c], 4
jne 0x408ec5
mov eax, dword [esi + 0x10]
mov ecx, dword [0x450ba4]
push eax
push str.CSyncEngine::IsFileToDownload__File__s__is_Delete_Type_File
push 1
push ecx
call fcn.00404960
add esp, 0x10
xor eax, eax
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x80
ret 8
cmp dword [esi + 0x20], 1
jne 0x408f0d
mov eax, dword [esi + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x408eec
mov edx, dword [esi + 0x14]
mov eax, dword [0x450ba4]
push edx
push str.CSyncEngine::IsFileToDownload__Local_system_file_already_exist.__s_
push 2
push eax
jmp 0x408ea0
mov ecx, dword [esi + 0x14]
mov edx, dword [0x450ba4]
push ecx
push str.CSyncEngine::IsFileToDownload__Not_found_local_system_file.__s_
push 2
push edx
call fcn.00404960
add esp, 0x10
mov eax, 1
jmp 0x408eaa
mov eax, dword [esi + 0x28]
lea ebp, [esi + 0x28]
mov eax, dword [eax - 8]
cmp eax, 0xe
je 0x408f70
test eax, eax
push 0
lea ecx, [esi + 0x10]
jne 0x408f4a
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [0x450ba4]
push eax
push str.CSyncEngine::IsFileToDownload___s____The_last_modified_time_of_the_file_is_unknown.
push 4
push ecx
call fcn.00404960
add esp, 0x10
mov eax, 1
jmp 0x408eaa
call sub.MFC42.DLL_CString::GetBuffer
mov edx, dword [0x450ba4]
push eax
push str.CSyncEngine::IsFileToDownload___s____The_string_for_the_last_modified_time_is_invalid.
push 4
push edx
call fcn.00404960
add esp, 0x10
mov eax, 1
jmp 0x408eaa
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x64]
mov dword [esp + 0x60], 0
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x14]
lea ecx, [esp + 0x60]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
test eax, eax
jne 0x408fd9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x408fcf
cmp eax, 3
je 0x408fcf
mov edx, dword [esi + 0x14]
push eax
mov eax, dword [0x450ba4]
push edx
push str.CSyncEngine::IsFileToDownload___s____Failed_to_check_file_status.__LastErrorCode__d__
push 1
push eax
call fcn.00404960
mov ecx, dword [0x450ba4]
add esp, 0x14
call fcn.00404e20
mov eax, 1
jmp 0x408eaa
lea ecx, [esp + 0x40]
lea edx, [esp + 0x74]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea eax, [esp + 0x40]
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CTime::CTime
mov eax, dword [esi + 8]
test eax, eax
je 0x409245
mov ecx, dword [0x450ba4]
push str.CSyncEngine::IsFileToDownload__Transfer_encoding_chunked_file_does_not_compare_size.
push 1
push ecx
call fcn.00404960
add esp, 0xc
push 4
lea ecx, [esp + 0x28]
push 0
push ecx
mov ecx, ebp
call sub.MFC42.DLL_CString::Mid_1
mov eax, dword [eax]
mov esi, dword [sym.imp.MSVCRT.dll_atoi]
push eax
call esi
add esp, 4
lea ecx, [esp + 0x24]
mov edi, eax
call sub.MFC42.DLL_CString::CString
push 2
lea edx, [esp + 0x28]
push 4
push edx
mov ecx, ebp
call sub.MFC42.DLL_CString::Mid_1
mov eax, dword [eax]
push eax
call esi
add esp, 4
lea ecx, [esp + 0x24]
mov ebx, eax
call sub.MFC42.DLL_CString::CString
push 2
lea eax, [esp + 0x28]
push 6
push eax
mov ecx, ebp
call sub.MFC42.DLL_CString::Mid_1
mov eax, dword [eax]
push eax
call esi
add esp, 4
lea ecx, [esp + 0x24]
mov dword [esp + 0x30], eax
call sub.MFC42.DLL_CString::CString
push 2
lea ecx, [esp + 0x28]
push 8
push ecx
mov ecx, ebp
call sub.MFC42.DLL_CString::Mid_1
mov eax, dword [eax]
push eax
call esi
add esp, 4
lea ecx, [esp + 0x24]
mov dword [esp + 0x2c], eax
call sub.MFC42.DLL_CString::CString
push 2
lea edx, [esp + 0x28]
push 0xa
push edx
mov ecx, ebp
call sub.MFC42.DLL_CString::Mid_1
mov eax, dword [eax]
push eax
call esi
add esp, 4
lea ecx, [esp + 0x24]
mov dword [esp + 0x28], eax
call sub.MFC42.DLL_CString::CString
push 2
lea eax, [esp + 0x28]
push 0xc
push eax
mov ecx, ebp
call sub.MFC42.DLL_CString::Mid_1
mov eax, dword [eax]
push eax
call esi
add esp, 4
lea ecx, [esp + 0x24]
mov esi, eax
call sub.MFC42.DLL_CString::CString
push 0xffffffffffffffff
push esi
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
push ecx
push edx
push eax
push ebx
push edi
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CTime::CTime_1
push ecx
mov ecx, dword [esp + 0x1c]
mov eax, esp
mov dword [esp + 0x34], esp
lea edx, [esp + 0x34]
mov dword [eax], ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.00409c70
mov esi, dword [eax]
mov eax, dword [esp + 0x98]
test eax, eax
je 0x40913f
mov dword [eax], esi
mov ecx, dword [esp + 0x20]
mov eax, esi
cdq
xor eax, edx
sub eax, edx
mov edx, dword [ecx + 0xe8]
cmp eax, dword [edx + 0x20]
jle 0x408ea8
lea eax, [esp + 0x50]
lea ecx, [esp + 0x40]
push eax
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
lea edx, [esp + 0x50]
push 0xffffffffffffffff
push edx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CTime::CTime
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_3
test esi, esi
mov dword [esp + 0x8c], 0
push str._Y__m__d__H:_M:_S
jge 0x409299
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x20]
push eax
call sub.MFC42.DLL_CTime::Format
mov esi, eax
lea ecx, [esp + 0x2c]
push str._Y__m__d__H:_M:_S
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x94], 1
call sub.MFC42.DLL_CTime::Format
mov edi, eax
lea edx, [esp + 0x30]
push str._Y__m__d__H:_M:_S
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x94], 2
call sub.MFC42.DLL_CTime::Format
mov ecx, dword [esi]
mov edx, dword [edi]
mov eax, dword [eax]
push ecx
mov ecx, dword [esp + 0x98]
push edx
push eax
lea eax, [esp + 0x1c]
mov edx, dword [ecx + 0x14]
mov byte [esp + 0x98], 3
push edx
push str.CSyncEngine::IsFileToDownload___s____The_local_file_is_the_latest_file.__ServerGMT__s___LocalGMT__s___LocalTime__s__
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x18
lea ecx, [esp + 0x30]
mov byte [esp + 0x8c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x8c], 1
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x8c], 0
lea ecx, [esp + 0x28]
jmp 0x40934d
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40901a
mov edi, dword [esp + 0x80]
push eax
call dword [sym.imp.MSVCRT.dll_atol]
add esp, 4
test eax, eax
jle 0x40901a
cmp edi, eax
je 0x40901a
mov edx, dword [esi + 0x10]
push eax
mov eax, dword [0x450ba4]
push edi
push edx
push str.CSyncEngine::IsFileToDownload___s____The_size_of_the_file_is_different.__Local__d___Server__d__
push 2
push eax
call fcn.00404960
add esp, 0x18
mov eax, 1
jmp 0x408eaa
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CTime::Format
mov edi, eax
lea edx, [esp + 0x38]
push str._Y__m__d__H:_M:_S
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x94], 4
call sub.MFC42.DLL_CTime::Format
mov ebp, eax
lea eax, [esp + 0x34]
mov bl, 5
push str._Y__m__d__H:_M:_S
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x94], bl
call sub.MFC42.DLL_CTime::Format
mov ecx, dword [edi]
mov edx, dword [ebp]
mov eax, dword [eax]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push eax
mov byte [esp + 0x98], 6
mov edx, dword [ecx + 0xe8]
mov ecx, dword [esp + 0xa0]
mov eax, dword [edx + 0x20]
mov edx, dword [ecx + 0x10]
push eax
push esi
push edx
lea eax, [esp + 0x28]
push str.CSyncEngine::IsFileToDownload___s____The_last_modified_time_is_different.__TimeGab__d___TimeCheckSpan__d___ServerGMT__s___LocalGMT__s___LocalTime__s__
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x20
lea ecx, [esp + 0x34]
mov byte [esp + 0x8c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x8c], 4
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x8c], 0
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov edx, dword [0x450ba4]
push ecx
push 1
push edx
call fcn.00404960
add esp, 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x8c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x408eaa