Function at 0x40ea37
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45c682
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x2a8
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x264], ecx
call fcn.00404470
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40ea78
or eax, 0xffffffff
jmp 0x40f22d
mov eax, dword [ebp - 0x264]
cmp dword [eax + 0x18], 1
jne 0x40ea8e
mov eax, 1
jmp 0x40f22d
mov ecx, dword [ebp - 0x264]
mov edx, dword [ecx + 0xe8]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp - 0x264]
mov edx, dword [ecx + 0xe8]
mov eax, dword [edx + 0x10]
push eax
push str.CSyncEngine::ProcDownloadFilesInListFromServer__Start_Download_From_Server__s___d_
push 1
mov ecx, dword [0x476a9c]
push ecx
call fcn.00407ea0
add esp, 0x14
push 0x46ee74
lea ecx, [ebp - 0x24c]
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 4], 0
lea edx, [ebp - 0x24c]
push edx
mov eax, dword [ebp - 0x264]
mov ecx, dword [eax + 0x2c]
call fcn.0044fb09
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24c]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x264]
add ecx, 0xc0
call fcn.00415cb0
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
push str.CSyncEngine::ProcDownloadFilesInListFromServer__Total_File_Count___d
push 1
mov edx, dword [0x476a9c]
push edx
call fcn.00407ea0
add esp, 0x10
cmp dword [ebp - 0x18], 0
jg 0x40eb40
mov eax, 1
jmp 0x40f22d
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 1
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x264]
add ecx, 0xc0
call fcn.00415db0
mov dword [ebp - 0x268], eax
mov eax, dword [ebp - 0x268]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x40f19e
lea ecx, [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0x264]
add ecx, 0xc0
call fcn.00415dd0
mov dword [ebp - 0x26c], eax
mov edx, dword [ebp - 0x26c]
mov eax, dword [edx]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x264]
mov ecx, dword [ecx + 0x2c]
call fcn.0044fa37
mov edx, dword [ebp - 0x30]
add edx, 0x10
push edx
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 0x270], eax
mov byte [ebp - 4], 2
push 0x2f
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::ReverseFind
mov dword [ebp - 0x274], eax
mov eax, dword [ebp - 0x274]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jl 0x40ec46
mov ecx, dword [ebp - 0x2c]
add ecx, 1
push ecx
lea edx, [ebp - 0x250]
push edx
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::Mid
mov dword [ebp - 0x278], eax
mov eax, dword [ebp - 0x278]
mov dword [ebp - 0x27c], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x27c]
push ecx
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::operator
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x250]
call sub.MFC42.DLL_CString::CString
push 0x46eedc
lea ecx, [ebp - 0x254]
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 0x280], eax
mov byte [ebp - 4], 4
lea edx, [ebp - 0x254]
push edx
mov eax, dword [ebp - 0x264]
mov ecx, dword [eax + 0x2c]
call fcn.0044fb09
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x254]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 0x3c], 0
push 0x4767f8
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 0x284], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x14]
call fcn.00415d30
mov dword [ebp - 0x288], eax
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x288]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x264]
call fcn.00410094
mov dword [ebp - 0x28c], eax
mov ecx, dword [ebp - 0x28c]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x264]
mov eax, dword [edx + 0xe8]
cmp dword [eax + 0x24], 2
jne 0x40edf7
mov ecx, dword [ebp - 0x14]
call fcn.00415d30
mov dword [ebp - 0x290], eax
cmp dword [ebp - 0x290], 0
jne 0x40edf7
mov ecx, dword [ebp - 0x3c]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.0044a880
mov dword [ebp - 0x294], eax
cmp dword [ebp - 0x294], 0
je 0x40edf7
push 0x46eefc
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 0x298], eax
mov byte [ebp - 4], 6
push 0x46ef1c
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CString::operator_2
lea edx, [ebp - 0x34]
push edx
lea ecx, [ebp - 0x40]
call fcn.0045ae46
lea ecx, [ebp - 0x40]
call fcn.004020c0
mov dword [ebp - 0x29c], eax
push 0
push 0x34
mov eax, dword [ebp - 0x29c]
push eax
call sub.MFC42.DLL_AfxMessageBox_1
mov dword [ebp - 0x2a0], eax
cmp dword [ebp - 0x2a0], 6
jne 0x40edeb
cmp dword [0x476a9c], 0
je 0x40edb1
push str.CSyncEngine::ProcDownloadFilesInListFromServer__Retry_DownloadOneFileFromServer__
push 2
mov ecx, dword [0x476a9c]
push ecx
call fcn.00407ea0
add esp, 0xc
push 1
mov ecx, dword [ebp - 0x14]
call fcn.00415d50
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x3c]
push eax
push 1
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x264]
call fcn.00410094
mov dword [ebp - 0x2a4], eax
mov ecx, dword [ebp - 0x2a4]
mov dword [ebp - 0x38], ecx
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x40]
call sub.MFC42.DLL_CString::CString
cmp dword [ebp - 0x38], 0
jge 0x40efd2
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x30], 0
mov eax, dword [ebp - 0x38]
push eax
push str.CSyncEngine::ProcDownloadFilesInListFromServer__DownloadFilesInListFromServer___Fail__RetVal___d
push 1
mov ecx, dword [0x476a9c]
push ecx
call fcn.00407ea0
add esp, 0x10
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x2a8], edx
mov eax, dword [ebp - 0x2a8]
add eax, 6
mov dword [ebp - 0x2a8], eax
cmp dword [ebp - 0x2a8], 5
ja case.default.0x40ee50
mov ecx, dword [ebp - 0x2a8]
jmp dword [ecx*4 + 0x40f23e]
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x10]
push ecx
push 0x46f010
mov edx, dword [ebp - 0x264]
add edx, 0xdc
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
jmp case.default.0x40ee50
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x10]
push edx
push 0x46f048
mov eax, dword [ebp - 0x264]
add eax, 0xdc
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
jmp case.default.0x40ee50
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x10]
push eax
push 0x46f078
mov ecx, dword [ebp - 0x264]
add ecx, 0xdc
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
jmp case.default.0x40ee50
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x10]
push ecx
push 0x46f0c4
mov edx, dword [ebp - 0x264]
add edx, 0xdc
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
jmp case.default.0x40ee50
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x10]
push edx
push 0x46f100
mov eax, dword [ebp - 0x264]
add eax, 0xdc
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
jmp case.default.0x40ee50
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x10]
push eax
push 0x46f13c
mov ecx, dword [ebp - 0x264]
add ecx, 0xdc
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x14]
push eax
push str.CSyncEngine::ProcDownloadFilesInListFromServer__Delete_Local_Flle___s
push 3
mov ecx, dword [0x476a9c]
push ecx
call fcn.00407ea0
add esp, 0x10
mov ecx, dword [ebp - 0x30]
add ecx, 0x14
call fcn.004020c0
mov dword [ebp - 0x2ac], eax
mov edx, dword [ebp - 0x2ac]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x40efc1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40efc1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x14]
push ecx
push str.CSyncEngine::ProcDownloadFilesInListFromServer__DeleteFile__s__Error__ErrCode___d
push 4
mov edx, dword [0x476a9c]
push edx
call fcn.00407ea0
add esp, 0x14
mov ecx, dword [0x476a9c]
call fcn.004092d8
mov eax, dword [ebp - 0x30]
cmp dword [eax], 0
jne 0x40efd0
mov dword [ebp - 0x1c], 0
jmp 0x40efdc
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x30], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebp - 0x30]
cmp dword [edx + 0x30], 1
jne 0x40f153
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x1c], 7
je 0x40f014
mov ecx, dword [ebp - 0x30]
cmp dword [ecx + 0x1c], 8
je 0x40f014
mov edx, dword [ebp - 0x30]
cmp dword [edx + 0x1c], 9
jne 0x40f153
push 0x34
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x2b0], eax
mov eax, dword [ebp - 0x2b0]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 4], 7
cmp dword [ebp - 0x25c], 0
je 0x40f05c
mov ecx, dword [ebp - 0x25c]
call fcn.00401000
mov dword [ebp - 0x2b4], eax
mov ecx, dword [ebp - 0x2b4]
mov dword [ebp - 0x2b8], ecx
jmp 0x40f066
mov dword [ebp - 0x2b8], 0
mov edx, dword [ebp - 0x2b8]
mov dword [ebp - 0x258], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x258]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
mov dword [ecx + 0x30], 1
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x20]
mov dword [edx + 0x20], ecx
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x1c]
mov dword [edx + 0x1c], ecx
mov edx, dword [ebp - 0x30]
add edx, 0x2c
push edx
mov ecx, dword [ebp - 0x44]
add ecx, 0x2c
call sub.MFC42.DLL_CString::operator
mov eax, dword [ebp - 0x30]
add eax, 0x28
push eax
mov ecx, dword [ebp - 0x44]
add ecx, 0x28
call sub.MFC42.DLL_CString::operator
mov ecx, dword [ebp - 0x30]
add ecx, 0x10
push ecx
mov ecx, dword [ebp - 0x44]
add ecx, 0x10
call sub.MFC42.DLL_CString::operator
mov edx, dword [ebp - 0x30]
add edx, 0x14
push edx
mov ecx, dword [ebp - 0x44]
add ecx, 0x14
call sub.MFC42.DLL_CString::operator
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0xc]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x1c], 7
jne 0x40f11e
mov ecx, dword [ebp - 0x44]
push ecx
mov ecx, dword [ebp - 0x264]
add ecx, 0x6c
call sub.MFC42.DLL_CPtrList::AddTail
jmp 0x40f153
mov edx, dword [ebp - 0x30]
cmp dword [edx + 0x1c], 9
jne 0x40f13e
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x264]
add ecx, 0x88
call sub.MFC42.DLL_CPtrList::AddTail
jmp 0x40f153
mov ecx, dword [ebp - 0x44]
push ecx
mov ecx, dword [ebp - 0x264]
add ecx, 0xa4
call sub.MFC42.DLL_CPtrList::AddTail
mov edx, dword [ebp - 0x264]
cmp dword [edx + 0x18], 0
je 0x40f18d
mov eax, dword [ebp - 0x264]
mov ecx, dword [eax + 0x18]
push ecx
push str.CSyncEngine::ProcDownloadFilesInListFromServer__m_nRequestStopFlag___d
push 1
mov edx, dword [0x476a9c]
push edx
call fcn.00407ea0
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::CString
jmp 0x40f19e
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::CString
jmp 0x40eb75
jmp 0x40f223
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret