Function at 0x41d580
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x42b058
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push ebp
mov ebx, ecx
push esi
push edi
mov dword [esp + 0x18], ebx
mov esi, dword [esp + 0x88]
xor edi, edi
mov dword [esp + 0x80], edi
cmp dword [esi + 0x1c], 4
jne 0x41d60c
push edi
lea ecx, [esi + 0x10]
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov eax, dword [ebx + 0x94]
push str.CXSyncExeDlg::IsFileDifferent___s____Files_that_need_to_be_deleted.
push 1
mov ecx, dword [eax + 0xd0]
push ecx
call fcn.00407c90
add esp, 0x10
lea ecx, [esp + 0x8c]
mov dword [esp + 0x80], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x78]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x74
ret 0x10
cmp dword [esi + 0x20], 1
jne 0x41d660
mov esi, dword [esi + 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
push edi
lea ecx, [esp + 0x90]
je 0x41d644
call sub.MFC42.DLL_CString::GetBuffer
mov edx, dword [ebx + 0x94]
push eax
push str.CXSyncExeDlg::IsFileDifferent___s____A_system_file_that_already_exists_locally.
push 2
mov eax, dword [edx + 0xd0]
push eax
jmp 0x41d5d6
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [ebx + 0x94]
push eax
push str.CXSyncExeDlg::IsFileDifferent___s____This_file_does_not_exist_locally.
push 2
mov edx, dword [ecx + 0xd0]
push edx
jmp 0x41d6ac
mov eax, dword [esi + 0x28]
lea ebp, [esi + 0x28]
mov eax, dword [eax - 8]
cmp eax, 0xe
je 0x41d6d5
cmp eax, edi
push edi
lea ecx, [esi + 0x10]
jne 0x41d692
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [ebx + 0x94]
push eax
push str.CXSyncExeDlg::IsFileDifferent___s____The_last_modified_time_of_the_file_is_unknown.
push 4
mov edx, dword [ecx + 0xd0]
push edx
jmp 0x41d6ac
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov eax, dword [ebx + 0x94]
push str.CXSyncExeDlg::IsFileDifferent___s____The_string_for_the_last_modified_time_is_invalid.
push 4
mov ecx, dword [eax + 0xd0]
push ecx
call fcn.00407c90
add esp, 0x10
lea ecx, [esp + 0x8c]
mov dword [esp + 0x80], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x41d5f7
mov dword [esp + 0x54], edi
lea edx, [esp + 0x54]
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x58]
push edx
rep stosd dword es:[edi], eax
push eax
mov eax, dword [esp + 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
test eax, eax
jne 0x41d784
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x41d763
cmp eax, 3
je 0x41d763
push eax
push 0
lea ecx, [esp + 0x94]
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [ebx + 0x94]
push eax
push str.CXSyncExeDlg::IsFileDifferent___s____Failed_to_check_file_status.__LastErrorCode__d__
push 1
mov edx, dword [ecx + 0xd0]
push edx
call fcn.00407c90
mov ecx, dword [ebx + 0x94]
add esp, 0x14
lea eax, [esp + 0x88]
mov ecx, dword [ecx + 0xd0]
push eax
call fcn.00407370
lea ecx, [esp + 0x88]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x8c]
mov dword [esp + 0x80], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x41d5f7
mov eax, dword [esp + 0x90]
test eax, eax
je 0x41d7c5
mov eax, dword [esi + 8]
test eax, eax
je 0x41d964
push 0
lea ecx, [esp + 0x90]
call sub.MFC42.DLL_CString::GetBuffer
mov edx, dword [ebx + 0x94]
push eax
push str.CXSyncExeDlg::IsFileDifferent___s____Transfer_encoded_chunked_files_cannot_be_compared_in_size.
push 2
mov eax, dword [edx + 0xd0]
push eax
call fcn.00407c90
add esp, 0x10
push 4
lea edx, [esp + 0x94]
push 0
push edx
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 + 0x90]
mov edi, eax
call sub.MFC42.DLL_CString::CString
push 2
lea eax, [esp + 0x94]
push 4
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 + 0x90]
mov ebx, eax
call sub.MFC42.DLL_CString::CString
push 2
lea ecx, [esp + 0x94]
push 6
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 + 0x90]
mov dword [esp + 0x28], eax
call sub.MFC42.DLL_CString::CString
push 2
lea edx, [esp + 0x94]
push 8
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 + 0x90]
mov dword [esp + 0x24], eax
call sub.MFC42.DLL_CString::CString
push 2
lea eax, [esp + 0x94]
push 0xa
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 + 0x90]
mov dword [esp + 0x20], eax
call sub.MFC42.DLL_CString::CString
push 2
lea ecx, [esp + 0x94]
push 0xc
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 + 0x90]
mov esi, eax
call sub.MFC42.DLL_CString::CString
push 0xffffffffffffffff
push esi
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
push edx
push eax
push ecx
push ebx
push edi
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CTime::CTime_1
lea edx, [esp + 0x34]
lea eax, [esp + 0x68]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea ecx, [esp + 0x34]
push 0xffffffffffffffff
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CTime::CTime
lea edx, [esp + 0x44]
lea eax, [esp + 0x34]
push edx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
lea ecx, [esp + 0x44]
push 0xffffffffffffffff
push ecx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CTime::CTime
mov eax, dword [esp + 0x94]
push ecx
test eax, eax
je 0x41d9e4
mov edx, dword [esp + 0x18]
mov eax, esp
mov dword [esp + 0x94], esp
lea ecx, [esp + 0x14]
mov dword [eax], edx
lea eax, [esp + 0x94]
push eax
call fcn.0040c350
mov eax, dword [eax]
cdq
mov esi, eax
xor esi, edx
sub esi, edx
jmp 0x41db1d
mov edx, dword [esi + 0x2c]
lea ecx, [esi + 0x2c]
mov edi, dword [esp + 0x74]
mov eax, dword [edx - 8]
test eax, eax
je 0x41d7c5
push 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.MSVCRT.dll_atol]
add esp, 4
test eax, eax
jle 0x41d7c5
cmp edi, eax
je 0x41d7c5
push eax
push edi
push 0
lea ecx, [esi + 0x10]
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov eax, dword [ebx + 0x94]
push str.CXSyncExeDlg::IsFileDifferent___s____The_size_of_the_file_is_different.__Local__d___Server__d__
push 2
mov ecx, dword [eax + 0xd0]
push ecx
call fcn.00407c90
add esp, 0x18
lea ecx, [esp + 0x8c]
mov dword [esp + 0x80], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x41d5f7
mov ecx, dword [esp + 0x14]
mov eax, esp
mov dword [esp + 0x94], esp
lea edx, [esp + 0x94]
mov dword [eax], ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.0040c350
mov esi, dword [eax]
test esi, esi
jge 0x41db1d
lea ecx, [esp + 0x90]
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x20]
push str._Y__m__d__H:_M:_S
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x88], 1
call sub.MFC42.DLL_CTime::Format
mov esi, eax
lea ecx, [esp + 0x24]
push str._Y__m__d__H:_M:_S
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x88], 2
call sub.MFC42.DLL_CTime::Format
mov edi, eax
lea edx, [esp + 0x28]
mov bl, 3
push str._Y__m__d__H:_M:_S
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x88], bl
call sub.MFC42.DLL_CTime::Format
mov ecx, dword [esi]
mov edx, dword [edi]
mov eax, dword [eax]
push ecx
mov ecx, dword [esp + 0x8c]
push edx
push eax
push 0
add ecx, 0x14
mov byte [esp + 0x90], 4
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea edx, [esp + 0xa0]
push str.CXSyncExeDlg::IsFileDifferent___s____The_local_file_is_the_latest_file.__ServerGMT__s___LocalGMT__s___LocalTime__s__
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x18
lea ecx, [esp + 0x28]
mov byte [esp + 0x80], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x80], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x80], 1
call sub.MFC42.DLL_CString::CString
push 0
lea ecx, [esp + 0x94]
call sub.MFC42.DLL_CString::GetBuffer
push eax
mov eax, dword [esp + 0x1c]
push 1
mov ecx, dword [eax + 0x94]
mov edx, dword [ecx + 0xd0]
push edx
call fcn.00407c90
add esp, 0xc
lea ecx, [esp + 0x90]
mov byte [esp + 0x80], 0
call sub.MFC42.DLL_CString::CString
jmp 0x41d5de
mov ebp, dword [esp + 0x18]
mov eax, dword [ebp + 0x90]
cmp esi, dword [eax + 0x4c]
jle 0x41d5de
lea ecx, [esp + 0x94]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x30]
push str._Y__m__d__H:_M:_S
push ecx
lea ecx, [esp + 0x24]
mov byte [esp + 0x88], 5
call sub.MFC42.DLL_CTime::Format
mov edi, eax
lea edx, [esp + 0x2c]
push str._Y__m__d__H:_M:_S
push edx
lea ecx, [esp + 0x18]
mov byte [esp + 0x88], 6
call sub.MFC42.DLL_CTime::Format
mov ebx, eax
lea eax, [esp + 0x18]
push str._Y__m__d__H:_M:_S
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x88], 7
call sub.MFC42.DLL_CTime::Format
mov ecx, dword [edi]
mov edx, dword [ebx]
mov eax, dword [eax]
push ecx
mov ecx, dword [ebp + 0x90]
push edx
push eax
mov eax, dword [esp + 0x94]
mov edx, dword [ecx + 0x4c]
mov byte [esp + 0x8c], 8
push edx
push esi
push 0
lea ecx, [eax + 0x10]
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea ecx, [esp + 0xac]
push str.CXSyncExeDlg::IsFileDifferent___s____The_last_modified_time_is_different.__TimeGab__d___TimeCheckSpan__d___ServerGMT__s___LocalGMT__s___LocalTime__s__
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x20
lea ecx, [esp + 0x18]
mov byte [esp + 0x80], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x80], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x80], 5
call sub.MFC42.DLL_CString::CString
push 0
lea ecx, [esp + 0x98]
call sub.MFC42.DLL_CString::GetBuffer
mov edx, dword [ebp + 0x94]
push eax
push 1
mov eax, dword [edx + 0xd0]
push eax
call fcn.00407c90
add esp, 0xc
lea ecx, [esp + 0x94]
mov byte [esp + 0x80], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x8c]
mov dword [esp + 0x80], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x41d5f7