Function at 0x40c720
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5814c8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x6069b0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [0x60d418], 0
mov dword [0x60d414], 0
call fcn.0040b920
push 0xd
xor eax, eax
mov dword [ebp - 0x30], 7
push str.ZipNowDown.7z
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
call fcn.00406df0
mov dword [ebp - 4], 0
xor eax, eax
mov edx, dword [edi]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
cmp word [edx], ax
jne 0x40c7b2
xor ecx, ecx
jmp 0x40c7c6
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c7b7
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.00406df0
sub esp, 0x28
mov byte [ebp - 4], 1
mov eax, esp
lea edx, [edi + 4]
lea ecx, [ebp - 0x2c]
push 1
mov dword [eax], 0x5e2874
mov dword [eax + 0x24], eax
lea eax, [ebp - 0x44]
push eax
call fcn.004392e0
mov byte [ebp - 4], 0
add esp, 0x30
mov ecx, dword [ebp - 0x18]
mov dword [0x60d418], eax
cmp ecx, 8
jb 0x40c81b
lea eax, [ecx + 1]
push eax
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x2c]
call fcn.004079a0
mov eax, dword [0x60d418]
test eax, eax
je 0x40c9a1
push dword [edi]
lea ecx, [ebp - 0x2c]
call fcn.004058d0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040d630
cmp dword [0x60d414], 0
jne 0x40c860
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xbb8
call esi
cmp dword [0x60d414], 0
je 0x40c850
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40c98c
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
cmovae ecx, dword [ebp - 0x2c]
call fcn.0040bf70
cmp eax, 0x2710
jbe 0x40c941
cmp dword [edi + 0x34], 8
lea ecx, [edi + 0x20]
jb 0x40c8a4
mov ecx, dword [ecx]
call fcn.0043c130
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
mov edx, dword [edi]
cmovae ecx, dword [ebp - 0x2c]
call fcn.0044ddd0
cmp dword [edi + 0x4c], 8
lea esi, [edi + 0x38]
jb 0x40c8c8
mov eax, dword [esi]
jmp 0x40c8ca
mov eax, esi
push eax
mov edx, edi
lea ecx, [ebp - 0x48]
call fcn.0040b2b0
add esp, 4
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x48]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c8fd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [esi + 0x14], 8
jb 0x40c905
mov esi, dword [esi]
push esi
mov edx, edi
lea ecx, [ebp - 0x48]
call fcn.0040b2b0
add esp, 4
mov ecx, eax
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push dword [ecx]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov edx, dword [ebp - 0x48]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40c941
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x40c956
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.004079a0
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x1c], 0
cmp eax, 8
jb 0x40c97f
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.004079a0
mov eax, 1
jmp 0x40c9ca
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x40c9a1
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.004079a0
mov eax, dword [ebp - 0x30]
mov dword [0x60d418], 0
mov dword [0x60d414], 0
cmp eax, 8
jb 0x40c9ca
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.004079a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00551ee1
mov esp, ebp
pop ebp
ret