Function at 0x4ec820
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4ec828
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00406998
xor eax, eax
push ebp
push 0x4eca7a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x14]
cmp eax, dword [ebx + 0x18]
jl 0x4ec960
push dword [ebx + 0xc]
push 0x4eca94
lea edx, [ebp - 0x1c]
movzx eax, byte [ebx + 0x1c]
call fcn.004707a4
push dword [ebp - 0x1c]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00406f68
mov eax, dword [ebp - 8]
call fcn.00470f58
test al, al
je 0x4ec897
mov eax, dword [ebp - 8]
call fcn.00406a3c
push eax
call sub.kernel32.dll_DeleteFileW
movzx esi, byte [ebx + 0x1c]
dec esi
cmp esi, 1
jl 0x4ec91a
push dword [ebx + 0xc]
push 0x4eca94
lea edx, [ebp - 0x20]
mov eax, esi
call fcn.004707a4
push dword [ebp - 0x20]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00406f68
mov eax, dword [ebp - 8]
call fcn.00470f58
test al, al
je 0x4ec915
push dword [ebx + 0xc]
push 0x4eca94
lea edx, [ebp - 0x28]
lea eax, [esi + 1]
call fcn.004707a4
push dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00406f68
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x2c], edi
mov eax, dword [ebp - 0x2c]
call fcn.00406a3c
push eax
mov eax, dword [ebp - 8]
call fcn.00406a3c
push eax
call sub.kernel32.dll_MoveFileW
cmp eax, 1
sbb eax, eax
inc eax
dec esi
test esi, esi
jne 0x4ec8a1
push 0
lea eax, [ebp - 0x30]
mov ecx, 0x4ecaac
mov edx, dword [ebx + 0xc]
call fcn.00406e84
mov eax, dword [ebp - 0x30]
call fcn.00406a3c
push eax
mov eax, dword [ebx + 0xc]
call fcn.00406a3c
push eax
call sub.kernel32.dll_CopyFileW
push 0
push 0
mov eax, dword [ebx + 0x10]
call fcn.0048bd40
push 0
push 0
mov eax, dword [ebx + 0x10]
call fcn.0048bcdc
xor eax, eax
mov dword [ebx + 0x14], eax
cmp dword [ebx + 0x14], 0
jne 0x4ec983
mov word [ebp - 0xe], 0xfeff
lea edx, [ebp - 0xe]
mov ecx, 2
mov eax, dword [ebx + 0x10]
call fcn.0048bf48
mov dword [ebx + 0x14], 2
cmp byte [ebx + 0x1d], 0
je 0x4ec9b5
call fcn.00474984
fstp qword [ebp - 0x18]
wait
push dword [ebp - 0x14]
push dword [ebp - 0x18]
lea eax, [ebp - 0xc]
mov edx, 0x4ecac4
call fcn.00475644
lea edx, [ebp - 4]
mov ecx, 1
mov eax, dword [ebp - 0xc]
call fcn.004072a0
lea eax, [ebp - 4]
mov edx, 0x4ecb04
call fcn.00406dc4
mov esi, dword [ebp - 4]
test esi, esi
je 0x4ec9e1
mov eax, esi
sub eax, 0xa
cmp word [eax], 2
je 0x4ec9e1
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00405c04
mov esi, eax
lea eax, [ebp - 4]
call fcn.00407480
mov esi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x4eca08
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4eca08
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00405c04
test eax, eax
je 0x4eca11
sub eax, 4
mov eax, dword [eax]
mov ecx, eax
add ecx, ecx
mov edx, esi
mov eax, dword [ebx + 0x10]
mov esi, dword [eax]
call dword [esi + 0x10]
mov eax, dword [ebp - 4]
test eax, eax
je 0x4eca3c
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4eca3c
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00405c04
test eax, eax
je 0x4eca45
sub eax, 4
mov eax, dword [eax]
add eax, eax
add dword [ebx + 0x14], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4eca81
lea eax, [ebp - 0x30]
call fcn.004069a0
lea eax, [ebp - 0x28]
mov edx, 4
call fcn.004069a8
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004069a8
ret