Function at 0x40ae40
Capabilities:
Delete file
Get common file path
Set current directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41b78c
push eax
mov dword fs:[0], esp
sub esp, 0x124
push ebx
push ebp
push esi
mov esi, dword [esp + 0x140]
push edi
mov ebp, ecx
mov eax, dword [esi + 0xc]
test eax, eax
jg 0x40ae8b
mov eax, dword [0x42a950]
push str.CSyncEngine::HandleZipTypeFiles__zip_file_item_is_0.
push 1
push eax
call fcn.00404890
add esp, 0xc
xor eax, eax
jmp 0x40b12c
mov ecx, dword [ebp + 0x2c]
call fcn.00411e80
mov ecx, dword [0x42a950]
push str.CSyncEngine::HandleZipTypeFiles__Start...
push 3
push ecx
call fcn.00404890
add esp, 0xc
call sub.MFC42.DLL_AfxGetModuleState
mov ebx, dword [eax + 4]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x31]
mov byte [esp + 0x30], 0
lea edx, [esp + 0x30]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
push 0x104
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ebx, dword [ebx + 0xd8]
push ebx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ebx, dword [esi + 0xc]
lea ecx, [esp + 0x10]
xor edi, edi
mov dword [esp + 0x28], ebx
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [ebp + 0x2c]
push ebx
push edi
add ecx, 0x100
mov dword [esp + 0x144], edi
call fcn.004031f0
mov ecx, dword [ebp + 0x2c]
push edi
add ecx, 0x100
call fcn.00403220
mov esi, dword [esi + 4]
mov dword [esp + 0x1c], 1
test esi, esi
je 0x40b0e9
jmp 0x40af34
mov esi, dword [esp + 0x20]
mov ecx, dword [esi]
mov eax, esi
mov dword [esp + 0x20], ecx
mov esi, dword [eax + 8]
cmp dword [esi + 0x1c], 7
jne 0x40b0dd
mov eax, dword [esi + 0x30]
test eax, eax
je 0x40b0dd
inc edi
sub esp, 8
mov dword [esp + 0x2c], edi
lea edx, [esp + 0x18]
fild dword [esp + 0x2c]
fmul qword [0x41dd98]
fidiv dword [esp + 0x30]
fstp qword [esp]
push ebx
push edi
push str._d____d___3.1lf___
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x18
lea eax, [esp + 0x10]
lea ecx, [esp + 0x2c]
push eax
push 0x427728
push ecx
call sub.MFC42.DLL_operator
mov eax, dword [eax]
mov ecx, dword [ebp + 0x2c]
push eax
add ecx, 0x434
mov byte [esp + 0x140], 1
call fcn.00403990
lea ecx, [esp + 0x2c]
mov byte [esp + 0x13c], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp + 0x2c]
push edi
add ecx, 0x100
call fcn.00403220
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x14]
mov byte [esp + 0x13c], 2
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esi + 8]
mov byte [esp + 0x13c], 3
test eax, eax
je 0x40b007
push str.unknown
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator_1
jmp 0x40b024
lea edx, [esp + 0x14]
lea eax, [esi + 0x2c]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call sub.MFC42.DLL_CString::CString_1
call fcn.00405130
add esp, 8
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x10]
push ecx
push edx
lea eax, [esp + 0x20]
push str._s__
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x28]
add esp, 0x10
push ecx
mov ecx, dword [ebp + 0x2c]
add ecx, 0x2c4
call fcn.00403990
push 0
push esi
mov ecx, ebp
call fcn.0040b150
test eax, eax
jge 0x40b0bb
mov edx, dword [esi + 0x14]
mov eax, dword [0x42a950]
push edx
push str.CSyncEngine::HandleZipTypeFiles__Delete_Local_Flle___s
push 3
push eax
call fcn.00404890
mov eax, dword [esi + 0x14]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40b0b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0x14]
mov edx, dword [0x42a950]
push eax
push ecx
push str.CSyncEngine::HandleZipTypeFiles__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 + 0x1c], 0
lea ecx, [esp + 0x14]
mov byte [esp + 0x13c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x13c], 0
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x40af30
mov ecx, dword [ebp + 0x2c]
push ebx
add ecx, 0x100
call fcn.00403220
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x13c], 0xffffffff
cmp eax, 1
lea ecx, [esp + 0x10]
jne 0x40b124
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x40b12c
call sub.MFC42.DLL_CString::CString
or eax, 0xffffffff
mov ecx, dword [esp + 0x134]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x130
ret 4