Function at 0x40d7a7
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1078
call fcn.0042e5e0
and dword [ebp - 4], 0
cmp dword [ecx + 0x858], 0
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
je 0x40d854
call fcn.0040e317
test eax, eax
mov dword [ebp - 0xc], eax
jle 0x40d854
mov ax, word [0x43fcc4]
push dword [ebp + 0xc]
mov word [ebp - 0xc68], ax
mov ecx, 0x103
xor eax, eax
lea edi, [ebp - 0xc66]
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
mov ebx, 0x207
stosw word es:[edi], ax
push 0x438aa0
lea eax, [ebp - 0xc68]
push ebx
push eax
call esi
lea eax, [ebp - 0xc68]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 0x14
cmp word [ebp + eax*2 - 0xc6a], 0x5c
je 0x40d843
push ebx
lea eax, [ebp - 0xc68]
push 0x43b434
push eax
call dword [sym.imp.MSVCRT.dll_wcsncat]
add esp, 0xc
lea eax, [ebp - 0xc68]
push eax
call fcn.00425c14
test eax, eax
pop ecx
jne 0x40d85b
xor eax, eax
jmp 0x40db65
xor edx, edx
mov ecx, 0x8b
xor eax, eax
cmp dword [ebp - 0xc], edx
lea edi, [ebp - 0x23c]
mov dword [ebp - 0x240], edx
rep stosd dword es:[edi], eax
mov dword [ebp + 0xc], edx
jle 0x40db62
jmp 0x40d885
mov ebx, 0x207
push 0x230
lea eax, [ebp - 0x240]
push 0
push eax
call sub.MSVCRT.dll_memset
mov ecx, dword [ebp - 0x10]
add esp, 0xc
lea eax, [ebp - 0x240]
push eax
push dword [ebp + 0xc]
call fcn.0040e354
mov ax, word [0x43fcc4]
mov ecx, 0x103
mov word [ebp - 0x650], ax
xor eax, eax
lea edi, [ebp - 0x64e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0xc68]
push eax
push 0x43b4f0
lea eax, [ebp - 0x650]
push ebx
push eax
call esi
add esp, 0x14
test byte [ebp - 0x34], 0x10
je 0x40d91d
lea eax, [ebp - 0x23c]
push 0x43b4e8
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x40db53
lea eax, [ebp - 0x650]
push eax
call fcn.00425c14
pop ecx
jmp 0x40db53
lea eax, [ebp - 0x650]
push eax
call fcn.00425c14
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop ecx
lea eax, [ebp - 0x650]
push eax
call edi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x650]
push eax
call ebx
test eax, eax
je 0x40d96a
lea eax, [ebp - 0x650]
push eax
call edi
cmp eax, 0xffffffff
je 0x40d96a
and al, 0xfe
push eax
lea eax, [ebp - 0x650]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
and word [ebp - 0x1078], 0
mov ecx, 0x103
xor eax, eax
lea edi, [ebp - 0x1076]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x650]
push eax
push str._s__d
lea eax, [ebp - 0x1078]
push 0x207
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x650]
push eax
call ebx
test eax, eax
je 0x40da47
mov ebx, dword [ebp + 8]
mov edi, dword [sym.imp.MSVCRT.dll_wcscmp]
push str.IDR_ZIP_MAJOR
push ebx
call edi
pop ecx
test eax, eax
pop ecx
jne 0x40d9df
lea eax, [ebp - 0x23c]
push 1
push eax
push 0x4428b8
jmp 0x40da37
push str.IDR_ZIP_MINOR
push ebx
call edi
pop ecx
test eax, eax
pop ecx
jne 0x40d9fd
lea eax, [ebp - 0x23c]
push 1
push eax
push 0x442cc8
jmp 0x40da37
push str.IDR_ZIP_DATA
push ebx
call edi
pop ecx
test eax, eax
pop ecx
jne 0x40da1b
lea eax, [ebp - 0x23c]
push 1
push eax
push 0x442ac0
jmp 0x40da37
push str.IDR_ZIP_MAJOR_DATA
push ebx
call edi
pop ecx
test eax, eax
pop ecx
jne 0x40da47
lea eax, [ebp - 0x23c]
push 1
push eax
push str.data_360sefav.db
call fcn.0040e64e
add esp, 0xc
test eax, eax
jne 0x40db53
push dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
call fcn.0040e59f
mov ebx, eax
test ebx, ebx
je 0x40db53
lea eax, [ebp - 0x650]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
and word [ebp - 0x858], 0
mov dword [ebp - 8], eax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x856]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x650]
push eax
push str._s.bak
lea eax, [ebp - 0x858]
push 0x103
push eax
call esi
add esp, 0x10
cmp dword [ebp - 8], 0
je 0x40dacd
lea eax, [ebp - 0x858]
push 1
push eax
lea eax, [ebp - 0x650]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x40dacd
push ebx
call fcn.0042e536
jmp 0x40d917
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x1078]
push eax
call edi
lea eax, [ebp - 0x1078]
push eax
push dword [ebp - 0x14]
push ebx
call fcn.0040d73f
push ebx
mov dword [ebp - 4], eax
call fcn.0042e536
add esp, 0x10
cmp dword [ebp - 4], 0
je 0x40db4a
lea eax, [ebp - 0x1078]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40db4a
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [ebp - 0x650]
push 1
push eax
lea eax, [ebp - 0x1078]
push eax
call ebx
test eax, eax
jne 0x40db4a
cmp dword [ebp - 8], eax
je 0x40db42
lea eax, [ebp - 0x650]
push 1
push eax
lea eax, [ebp - 0x858]
push eax
call ebx
lea eax, [ebp - 0x1078]
jmp 0x40db50
lea eax, [ebp - 0x858]
push eax
call edi
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0xc]
jl 0x40d880
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc