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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b7eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x23c
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x40], edi
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
test eax, eax
mov dword [ebp - 0x28], eax
jne 0x4084ec
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x18]
mov ebx, 1
cmp eax, ebx
jne 0x40850b
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0xe8]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
mov eax, dword [0x450ba4]
push ecx
push edx
push str.CSyncEngine::ProcDownloadFilesInListFromServer__Start_Download_From_Server__s___d_
push ebx
push eax
call fcn.00404960
add esp, 0x14
lea ecx, [ebp - 0x14]
push 0x44b860
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
push ecx
mov ecx, dword [edi + 0x2c]
call fcn.00432c00
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov esi, dword [edi + 0xcc]
mov edx, dword [0x450ba4]
push esi
push str.CSyncEngine::ProcDownloadFilesInListFromServer__Total_File_Count___d
push ebx
push edx
mov dword [ebp - 0x14], esi
call fcn.00404960
add esp, 0x10
test esi, esi
jg 0x408592
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0xc4]
xor esi, esi
mov dword [ebp - 0x34], ebx
mov dword [ebp - 4], ebx
test eax, eax
je 0x40892b
mov ecx, dword [eax]
mov edx, dword [ebp - 0x14]
mov ebx, dword [eax + 8]
inc esi
mov dword [ebp - 0x38], ecx
mov ecx, dword [edi + 0x2c]
push edx
push esi
mov dword [ebp - 0x2c], esi
call fcn.00432b70
lea eax, [ebx + 0x10]
lea ecx, [ebp - 0x18]
push eax
call sub.MFC42.DLL_CString::CString_2
push 0x2f
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::ReverseFind
test eax, eax
jl 0x408606
inc eax
lea ecx, [ebp - 0x18]
push eax
lea eax, [ebp - 0x3c]
push eax
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
push 0x44b860
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 4
push ecx
mov ecx, dword [edi + 0x2c]
call fcn.00432c00
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
push 0x450728
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x24], 0
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, edi
mov eax, dword [edx + 0x104]
lea edx, [ebp - 0x24]
push edx
push eax
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 5
push eax
push esi
push ebx
call fcn.00409390
mov ecx, dword [edi + 0xe8]
mov esi, eax
cmp dword [ecx + 0x24], 2
jne 0x408724
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx + 0x104]
test eax, eax
jne 0x408724
mov edx, dword [ebp - 0x24]
push edx
call fcn.0042f1a0
test eax, eax
je 0x408724
push 0x44b0bc
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString_1
push 0x44b080
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::operator_2
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x20]
push eax
call fcn.0043a6c4
mov ecx, dword [ebp - 0x20]
push 0
push 0x34
push ecx
call sub.MFC42.DLL_AfxMessageBox_1
cmp eax, 6
jne 0x408718
mov eax, dword [0x450ba4]
test eax, eax
je 0x4086ef
push str.CSyncEngine::ProcDownloadFilesInListFromServer__Retry_DownloadOneFileFromServer__
push 2
push eax
call fcn.00404960
add esp, 0xc
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x2c]
mov dword [edx + 0x104], 1
mov edx, dword [ebp - 0x14]
push ecx
push 1
push edx
push eax
push ebx
mov ecx, edi
call fcn.00409390
mov esi, eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
test esi, esi
jge 0x408834
mov dword [ebx + 0x30], 0
mov ecx, dword [0x450ba4]
push esi
push str.CSyncEngine::ProcDownloadFilesInListFromServer__DownloadFilesInListFromServer___Fail__RetVal___d
push 1
push ecx
call fcn.00404960
lea eax, [esi + 6]
add esp, 0x10
cmp eax, 5
ja case.default.0x408752
jmp dword [eax*4 + 0x4089cc]
mov edx, dword [ebx + 0x10]
push esi
push edx
lea eax, [edi + 0xdc]
push 0x44b728
push eax
jmp 0x4087c2
mov ecx, dword [ebx + 0x10]
push esi
push ecx
lea edx, [edi + 0xdc]
push 0x44b6f8
push edx
jmp 0x4087c2
mov eax, dword [ebx + 0x10]
push esi
push eax
push 0x44b6ac
jmp 0x4087bb
mov edx, dword [ebx + 0x10]
push esi
push edx
lea eax, [edi + 0xdc]
push 0x44b670
push eax
jmp 0x4087c2
mov ecx, dword [ebx + 0x10]
push esi
push ecx
lea edx, [edi + 0xdc]
push 0x44b634
push edx
jmp 0x4087c2
mov eax, dword [ebx + 0x10]
push esi
push eax
push 0x44b608
lea ecx, [edi + 0xdc]
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov edx, dword [ebx + 0x14]
mov eax, dword [0x450ba4]
push edx
push str.CSyncEngine::ProcDownloadFilesInListFromServer__Delete_Local_Flle___s
push 3
push eax
call fcn.00404960
mov eax, dword [ebx + 0x14]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x408826
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
je 0x408826
call esi
mov ecx, dword [ebx + 0x14]
mov edx, dword [0x450ba4]
push eax
push ecx
push str.CSyncEngine::ProcDownloadFilesInListFromServer__DeleteFile__s__Error__ErrCode___d
push 4
push edx
call fcn.00404960
mov ecx, dword [0x450ba4]
add esp, 0x14
call fcn.00404e20
cmp dword [ebx], 0
jne 0x40883b
mov dword [ebp - 0x34], 0
jmp 0x40883b
mov dword [ebx + 0x30], 1
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
cmp dword [ebx + 0x30], 1
jne 0x408901
mov eax, dword [ebx + 0x1c]
cmp eax, 7
je 0x408867
cmp eax, 8
je 0x408867
cmp eax, 9
jne 0x408901
push 0x34
call sub.MFC42.DLL_operatornew
mov ecx, eax
add esp, 4
mov dword [ebp - 0x44], ecx
test ecx, ecx
mov byte [ebp - 4], 7
je 0x408887
call section..text
mov esi, eax
jmp 0x408889
xor esi, esi
mov dword [esi + 0x30], 1
mov eax, dword [ebx + 0x20]
mov dword [esi + 0x20], eax
mov ecx, dword [ebx + 0x1c]
lea edx, [ebx + 0x2c]
mov dword [esi + 0x1c], ecx
push edx
lea ecx, [esi + 0x2c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::operator
lea eax, [ebx + 0x28]
lea ecx, [esi + 0x28]
push eax
call sub.MFC42.DLL_CString::operator
lea eax, [ebx + 0x10]
lea ecx, [esi + 0x10]
push eax
call sub.MFC42.DLL_CString::operator
lea ecx, [ebx + 0x14]
push ecx
lea ecx, [esi + 0x14]
call sub.MFC42.DLL_CString::operator
mov edx, dword [ebx + 8]
mov dword [esi + 8], edx
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xc], eax
mov ebx, dword [ebx + 0x1c]
cmp ebx, 7
jne 0x4088ea
push esi
lea ecx, [edi + 0x6c]
jmp 0x4088fc
cmp ebx, 9
push esi
lea ecx, [edi + 0x88]
je 0x4088fc
lea ecx, [edi + 0xa4]
call sub.MFC42.DLL_CPtrList::AddTail
mov eax, dword [edi + 0x18]
test eax, eax
je 0x40893f
mov ecx, dword [0x450ba4]
push eax
push str.CSyncEngine::ProcDownloadFilesInListFromServer__m_nRequestStopFlag___d
push 1
push ecx
call fcn.00404960
add esp, 0x10
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp - 0x2c]
jmp 0x4085a0