Function at 0x4016d7
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401910
test al, 0x10
jne 0x401910
push 0x248
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push edi
push 0x475068
push 0x104
push esi
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x14
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x401910
test esi, esi
je 0x401910
mov ebx, esi
test edi, edi
je 0x4018f9
lea eax, [ebp - 0x10]
push eax
push esi
call fcn.0045086f
pop ecx
pop ecx
test eax, eax
jne 0x4018f9
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 1
push 0xffffffffffffffff
call fcn.0043b6b9
add esp, 0x14
test eax, eax
jne 0x4018e6
push dword [ebp - 4]
call fcn.0041e729
pop ecx
cmp eax, 0x64
jne 0x4018e6
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x18], esi
mov esi, dword [ebp - 8]
and dword [ebp - 0xc], 0
xor edi, edi
cmp dword [ebp + 0x18], edi
jle 0x4018a9
xor ecx, ecx
cmp dword [ebp + 0x24], ecx
jle 0x4017ce
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax + ecx*4]
dec eax
cmp eax, edi
je 0x401835
inc ecx
cmp ecx, dword [ebp + 0x24]
jl 0x4017bd
xor eax, eax
push edi
push dword [ebp - 4]
test eax, eax
je 0x40183a
call fcn.0041eacc
push edi
push dword [ebp - 4]
mov esi, eax
call fcn.0041eaf3
lea ecx, [ebp - 0xc]
mov edx, eax
push ecx
mov ecx, esi
call fcn.004015a4
mov esi, eax
add esp, 0x14
mov eax, dword [ebp + 0x20]
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [ebp + 0x20]
mov ecx, esi
push dword [ebp - 0xc]
mov edx, dword [eax + edi*4]
call fcn.00401691
mov dword [ebp - 0x14], eax
pop ecx
pop ecx
test esi, esi
je 0x40186a
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x14]
jmp 0x40186a
xor eax, eax
inc eax
jmp 0x4017d0
call fcn.0041eacc
push edi
push dword [ebp - 4]
mov esi, eax
call fcn.0041eaf3
add esp, 0x10
push eax
mov eax, dword [ebp + 0x20]
push dword [eax + edi*4]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [ebp + 0x20]
mov ecx, esi
mov edx, dword [eax + edi*4]
call fcn.00401691
pop ecx
pop ecx
mov esi, dword [ebp - 8]
mov edx, eax
mov ecx, esi
call fcn.00451276
cmp dword [ebp + 0x14], 0
je 0x40189a
push 2
push 0
mov edx, 0x475072
mov ecx, 0x470e68
call fcn.00401691
pop ecx
pop ecx
mov edx, eax
mov ecx, esi
call fcn.00451276
inc dword [ebx]
inc edi
cmp edi, dword [ebp + 0x18]
jl 0x4017b6
mov esi, dword [ebp - 8]
push 0x470e68
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push 0
mov edx, 0x475072
mov ecx, 0x470e68
call fcn.00401691
mov edx, eax
mov ecx, esi
call fcn.00451276
push dword [ebp - 4]
call fcn.0041e729
add esp, 0xc
cmp eax, 0x64
je 0x4017a7
mov ebx, dword [ebp - 0x18]
push dword [ebp - 4]
call fcn.0041e123
pop ecx
mov ecx, dword [ebp - 0x10]
xor edx, edx
call fcn.0044eb99
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebx
leave
ret