Function at 0x40f934
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c77b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push edi
mov dword [ebp - 0xc8], ecx
cmp dword [ebp + 0xc], 0
je 0x40f968
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x1c], 4
jne 0x40f995
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
push eax
push str.CSyncEngine::IsFileToDownload__File__s__is_Delete_Type_File
push 1
mov ecx, dword [0x476a9c]
push ecx
call fcn.00407ea0
add esp, 0x10
xor eax, eax
jmp 0x410083
mov edx, dword [ebp + 8]
cmp dword [edx + 0x20], 1
jne 0x40f9ff
mov ecx, dword [ebp + 8]
add ecx, 0x14
call fcn.004020c0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40f9d8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
push ecx
push str.CSyncEngine::IsFileToDownload__Local_system_file_already_exist.__s_
push 2
mov edx, dword [0x476a9c]
push edx
call fcn.00407ea0
add esp, 0x10
xor eax, eax
jmp 0x410083
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
push ecx
push str.CSyncEngine::IsFileToDownload__Not_found_local_system_file.__s_
push 2
mov edx, dword [0x476a9c]
push edx
call fcn.00407ea0
add esp, 0x10
mov eax, 1
jmp 0x410083
mov ecx, dword [ebp + 8]
add ecx, 0x28
call fcn.00402060
cmp eax, 0xe
je 0x40fa71
mov ecx, dword [ebp + 8]
add ecx, 0x28
call fcn.004020a0
test eax, eax
je 0x40fa43
push 0
mov ecx, dword [ebp + 8]
add ecx, 0x10
call sub.MFC42.DLL_CString::GetBuffer
push eax
push str.CSyncEngine::IsFileToDownload___s____The_last_modified_time_of_the_file_is_unknown.
push 4
mov eax, dword [0x476a9c]
push eax
call fcn.00407ea0
add esp, 0x10
jmp 0x40fa67
push 0
mov ecx, dword [ebp + 8]
add ecx, 0x10
call sub.MFC42.DLL_CString::GetBuffer
push eax
push str.CSyncEngine::IsFileToDownload___s____The_string_for_the_last_modified_time_is_invalid.
push 4
mov ecx, dword [0x476a9c]
push ecx
call fcn.00407ea0
add esp, 0x10
mov eax, 1
jmp 0x410083
mov dword [ebp - 0x58], 0
mov ecx, 8
xor eax, eax
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
lea edx, [ebp - 0x58]
push edx
push 0
mov ecx, dword [ebp + 8]
add ecx, 0x14
call fcn.004020c0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
test eax, eax
jne 0x40faea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 2
je 0x40fae0
cmp dword [ebp - 0x68], 3
je 0x40fae0
mov eax, dword [ebp - 0x68]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
push edx
push str.CSyncEngine::IsFileToDownload___s____Failed_to_check_file_status.__LastErrorCode__d__
push 1
mov eax, dword [0x476a9c]
push eax
call fcn.00407ea0
add esp, 0x14
mov ecx, dword [0x476a9c]
call fcn.004092d8
mov eax, 1
jmp 0x410083
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
push 0xffffffffffffffff
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CTime::CTime
mov ecx, dword [ebp + 8]
cmp dword [ecx + 8], 0
je 0x40fb27
push str.CSyncEngine::IsFileToDownload__Transfer_encoding_chunked_file_does_not_compare_size.
push 1
mov edx, dword [0x476a9c]
push edx
call fcn.00407ea0
add esp, 0xc
jmp 0x40fb90
mov ecx, dword [ebp + 8]
add ecx, 0x2c
call fcn.004020a0
test eax, eax
jne 0x40fb90
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp + 8]
add ecx, 0x2c
call fcn.004020c0
push eax
call dword [sym.imp.MSVCRT.dll_atol]
add esp, 4
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
jle 0x40fb90
mov ecx, dword [ebp - 0x70]
cmp ecx, dword [ebp - 0x6c]
je 0x40fb90
mov edx, dword [ebp - 0x6c]
push edx
mov eax, dword [ebp - 0x70]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
push edx
push str.CSyncEngine::IsFileToDownload___s____The_size_of_the_file_is_different.__Local__d___Server__d__
push 2
mov eax, dword [0x476a9c]
push eax
call fcn.00407ea0
add esp, 0x18
mov eax, 1
jmp 0x410083
push 4
push 0
lea ecx, [ebp - 0x8c]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x28
call sub.MFC42.DLL_CString::Mid_1
mov dword [ebp - 0xcc], eax
mov edx, dword [ebp - 0xcc]
mov dword [ebp - 0xd0], edx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xd0]
call fcn.004020c0
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8c]
call sub.MFC42.DLL_CString::CString
push 2
push 4
lea eax, [ebp - 0x90]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x28
call sub.MFC42.DLL_CString::Mid_1
mov dword [ebp - 0xd4], eax
mov ecx, dword [ebp - 0xd4]
mov dword [ebp - 0xd8], ecx
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0xd8]
call fcn.004020c0
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x90]
call sub.MFC42.DLL_CString::CString
push 2
push 6
lea edx, [ebp - 0x94]
push edx
mov ecx, dword [ebp + 8]
add ecx, 0x28
call sub.MFC42.DLL_CString::Mid_1
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0xe0], eax
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0xe0]
call fcn.004020c0
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call sub.MFC42.DLL_CString::CString
push 2
push 8
lea ecx, [ebp - 0x98]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x28
call sub.MFC42.DLL_CString::Mid_1
mov dword [ebp - 0xe4], eax
mov edx, dword [ebp - 0xe4]
mov dword [ebp - 0xe8], edx
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0xe8]
call fcn.004020c0
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x98]
call sub.MFC42.DLL_CString::CString
push 2
push 0xa
lea eax, [ebp - 0x9c]
push eax
mov ecx, dword [ebp + 8]
add ecx, 0x28
call sub.MFC42.DLL_CString::Mid_1
mov dword [ebp - 0xec], eax
mov ecx, dword [ebp - 0xec]
mov dword [ebp - 0xf0], ecx
mov dword [ebp - 4], 4
mov ecx, dword [ebp - 0xf0]
call fcn.004020c0
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [ebp - 0x5c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call sub.MFC42.DLL_CString::CString
push 2
push 0xc
lea edx, [ebp - 0xa0]
push edx
mov ecx, dword [ebp + 8]
add ecx, 0x28
call sub.MFC42.DLL_CString::Mid_1
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 0xf4]
mov dword [ebp - 0xf8], eax
mov dword [ebp - 4], 5
mov ecx, dword [ebp - 0xf8]
call fcn.004020c0
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa0]
call sub.MFC42.DLL_CString::CString
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x5c]
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0x60]
call sub.MFC42.DLL_CTime::CTime_1
push ecx
mov ecx, esp
mov dword [ebp - 0xa4], esp
lea edx, [ebp - 0x60]
push edx
call fcn.00415f20
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 0x24]
call fcn.00415f60
mov ecx, eax
call fcn.00415ed0
mov dword [ebp - 0x64], eax
cmp dword [ebp + 0xc], 0
je 0x40fe01
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x64]
mov dword [ecx], edx
mov eax, dword [ebp - 0x64]
push eax
call sub.MSVCRT.dll_abs
add esp, 4
mov ecx, dword [ebp - 0xc8]
mov edx, dword [ecx + 0xe8]
cmp eax, dword [edx + 0x20]
jle 0x410081
lea eax, [ebp - 0x80]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
push 0xffffffffffffffff
lea edx, [ebp - 0x80]
push edx
lea ecx, [ebp - 0x88]
call sub.MFC42.DLL_CTime::CTime
lea ecx, [ebp - 0x84]
call sub.MFC42.DLL_CString::CString_3
mov dword [ebp - 4], 6
cmp dword [ebp - 0x64], 0
jge 0x40ff48
push 0x46f5dc
lea eax, [ebp - 0xac]
push eax
lea ecx, [ebp - 0x88]
call sub.MFC42.DLL_CTime::Format
mov dword [ebp - 0xfc], eax
mov ecx, dword [ebp - 0xfc]
mov dword [ebp - 0x100], ecx
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x100]
mov eax, dword [edx]
push eax
push 0x46f5f0
lea ecx, [ebp - 0xb0]
push ecx
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CTime::Format
mov dword [ebp - 0x104], eax
mov edx, dword [ebp - 0x104]
mov dword [ebp - 0x108], edx
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x108]
mov ecx, dword [eax]
push ecx
push 0x46f604
lea edx, [ebp - 0xb4]
push edx
lea ecx, [ebp - 0x60]
call sub.MFC42.DLL_CTime::Format
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0x110], eax
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x110]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
push ecx
push str.CSyncEngine::IsFileToDownload___s____The_local_file_is_the_latest_file.__ServerGMT__s___LocalGMT__s___LocalTime__s__
lea edx, [ebp - 0x84]
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x18
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xb4]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xb0]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xac]
call sub.MFC42.DLL_CString::CString
jmp 0x410040
push 0x46f694
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x88]
call sub.MFC42.DLL_CTime::Format
mov dword [ebp - 0x114], eax
mov ecx, dword [ebp - 0x114]
mov dword [ebp - 0x118], ecx
mov byte [ebp - 4], 0xa
mov edx, dword [ebp - 0x118]
mov eax, dword [edx]
push eax
push 0x46f6a8
lea ecx, [ebp - 0xbc]
push ecx
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CTime::Format
mov dword [ebp - 0x11c], eax
mov edx, dword [ebp - 0x11c]
mov dword [ebp - 0x120], edx
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x120]
mov ecx, dword [eax]
push ecx
push 0x46f6bc
lea edx, [ebp - 0xc0]
push edx
lea ecx, [ebp - 0x60]
call sub.MFC42.DLL_CTime::Format
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x128], eax
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x128]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0xc8]
mov ecx, dword [eax + 0xe8]
mov edx, dword [ecx + 0x20]
push edx
mov eax, dword [ebp - 0x64]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
push edx
push str.CSyncEngine::IsFileToDownload___s____The_last_modified_time_is_different.__TimeGab__d___TimeCheckSpan__d___ServerGMT__s___LocalGMT__s___LocalTime__s__
lea eax, [ebp - 0x84]
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x20
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xc0]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xbc]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xb8]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x84]
call fcn.004020c0
push eax
push 1
mov ecx, dword [0x476a9c]
push ecx
call fcn.00407ea0
add esp, 0xc
mov dword [ebp - 0xc4], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x84]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0xc4]
jmp 0x410083
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret 8