Function at 0x40b6c0
Capabilities:
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41b810
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push esi
mov esi, dword [esp + 0x54]
xor ebx, ebx
push edi
mov edi, ecx
mov eax, dword [esi + 0xc]
cmp eax, ebx
jg 0x40b715
mov eax, dword [0x42a950]
push str.CSyncEngine::HandleZipRegTypeFiles__zip_reg_file_item_is_0.
push 1
push eax
call fcn.00404890
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
add esp, 0x48
ret 4
mov ecx, dword [edi + 0x2c]
push 0x42a5c8
add ecx, 0x37c
call fcn.00403990
mov ecx, dword [edi + 0x2c]
push str.Zip_Reg
add ecx, 0x434
call fcn.00403990
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], 1
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [0x42a804]
lea edx, [esp + 0xc]
push ecx
push str._s_regsvr32.exe
push edx
mov dword [esp + 0x5c], ebx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x2c]
call fcn.0041a2be
mov eax, dword [esp + 0xc]
push ebx
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x58], 1
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x40b7ce
push ebx
push 0x10
push 0x426928
call sub.MFC42.DLL_AfxMessageBox_1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x50], bl
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0xc]
mov dword [esp + 0x50], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
add esp, 0x48
ret 4
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x40b95f
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40b7e6
mov eax, dword [esp + 0x18]
mov esi, dword [eax + 8]
mov ecx, dword [eax]
mov dword [esp + 0x18], ecx
cmp dword [esi + 0x1c], 9
jne 0x40b94b
cmp dword [esi + 0x30], ebx
je 0x40b94b
mov eax, dword [esi + 0x10]
mov ecx, dword [edi + 0x2c]
push eax
add ecx, 0x37c
call fcn.00403990
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CStringArray::CStringArray
lea edx, [esp + 0x1c]
mov ecx, edi
push edx
push esi
mov byte [esp + 0x5c], 2
call fcn.0040b150
cmp eax, ebx
jge 0x40b88b
mov eax, dword [esi + 0x14]
mov ecx, dword [0x42a950]
push eax
push str.CSyncEngine::HandleZipRegTypeFiles__Delete_Local_Flle___s
push 3
push ecx
call fcn.00404890
mov eax, dword [esi + 0x14]
add esp, 0x10
push eax
call ebp
cmp eax, ebx
jne 0x40b882
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi + 0x14]
push eax
mov eax, dword [0x42a950]
push edx
push str.CSyncEngine::HandleZipRegTypeFiles__DeleteFile__s__Error__ErrCode___d
push 4
push eax
call fcn.00404890
mov ecx, dword [0x42a950]
add esp, 0x14
call fcn.00404d50
mov dword [esp + 0x14], ebx
jmp 0x40b93d
mov eax, dword [esp + 0x24]
xor esi, esi
cmp eax, ebx
jle 0x40b931
mov ecx, dword [esp + 0x20]
lea edx, [ecx + esi*4]
lea ecx, [esp + 0x5c]
push edx
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x5c]
mov ecx, edi
push eax
mov byte [esp + 0x58], 3
call fcn.00409570
cmp eax, ebx
jge 0x40b916
mov ecx, dword [esp + 0x5c]
mov edx, dword [0x42a950]
push ecx
push str.CSyncEngine::HandleZipRegTypeFiles__Delete_Local_Flle___s
push 3
push edx
call fcn.00404890
mov eax, dword [esp + 0x6c]
add esp, 0x10
push eax
call ebp
cmp eax, ebx
jne 0x40b912
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x5c]
mov edx, dword [0x42a950]
push eax
push ecx
push str.CSyncEngine::HandleZipRegTypeFiles__DeleteFile__s__Error__ErrCode___d
push 4
push edx
call fcn.00404890
mov ecx, dword [0x42a950]
add esp, 0x14
call fcn.00404d50
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x5c]
mov byte [esp + 0x54], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x24]
inc esi
cmp esi, eax
jl 0x40b899
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CStringArray::SetSize
lea ecx, [esp + 0x1c]
mov byte [esp + 0x54], 1
call fcn.0041a4bc
cmp dword [esp + 0x18], ebx
jne 0x40b7e2
mov eax, dword [esp + 0x14]
pop ebp
cmp eax, 1
jne 0x40b993
lea ecx, [esp + 0x2c]
mov byte [esp + 0x50], bl
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0xc]
mov dword [esp + 0x50], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
add esp, 0x48
ret 4
lea ecx, [esp + 0x2c]
mov byte [esp + 0x50], bl
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0xc]
mov dword [esp + 0x50], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x48]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov dword fs:[0], ecx
add esp, 0x48
ret 4