Function at 0x472060
Capabilities:
Copy file
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9058
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4fad60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
xor ecx, ecx
mov eax, edi
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], cx
lea edx, [eax + 2]
jmp 0x4720b0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4720b0
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea esi, [ebp - 0x2c]
call fcn.00403e70
push 4
mov eax, 0x4e6f38
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00407570
mov eax, dword [ebp - 0x2c]
mov esi, 8
cmp dword [ebp - 0x18], esi
jae 0x4720ef
lea eax, [ebp - 0x2c]
push 1
push 0
push 0
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
jne 0x472135
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x4e6f44
mov ecx, 0x503bc8
call fcn.00412580
add esp, 0xc
cmp dword [ebp - 0x18], esi
jb 0x47212e
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00490a16
add esp, 4
xor eax, eax
jmp 0x47224a
mov ecx, dword [ebp - 0x18]
cmp ecx, esi
mov esi, dword [ebp - 0x2c]
mov eax, esi
jae 0x472144
lea eax, [ebp - 0x2c]
cmp ecx, 8
jae 0x47214c
lea esi, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or eax, 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp - 0x2c]
mov esi, 8
cmp dword [ebp - 0x18], esi
jae 0x47216e
lea eax, [ebp - 0x2c]
mov edx, dword [ebx]
mov edx, dword [edx + 0x14]
lea ecx, [ebp - 0x30]
push ecx
push eax
mov ecx, ebx
call edx
test eax, eax
mov eax, dword [ebp - 0x2c]
jne 0x4721be
cmp dword [ebp - 0x18], esi
jae 0x47218b
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x30]
push eax
push edi
push 0x4e6f7c
mov ecx, 0x503bc8
call fcn.00412580
mov eax, dword [ebp - 0x34]
add esp, 0xc
test eax, eax
je 0x47211d
mov ecx, dword [ebp - 0x30]
mov dword [eax], ecx
jmp 0x47211d
cmp dword [ebp - 0x18], esi
jae 0x4721c6
lea eax, [ebp - 0x2c]
mov edx, dword [ebx]
mov edx, dword [edx + 0x10]
lea ecx, [ebp - 0x30]
push ecx
push eax
mov ecx, ebx
call edx
test eax, eax
jne 0x4721f6
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x4721e3
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x30]
push eax
push edi
push 0x4e6fb0
jmp 0x47219c
mov ecx, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x472201
lea ecx, [ebp - 0x2c]
push edi
call fcn.00472270
test eax, eax
jne 0x472231
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x4e6fe4
mov ecx, 0x503bc8
call fcn.00412580
add esp, 0xc
lea ecx, [ebp - 0x2c]
call fcn.00404690
xor eax, eax
jmp 0x47224a
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x47223d
mov ecx, dword [ebp - 0x30]
mov dword [eax], ecx
lea ecx, [ebp - 0x2c]
call fcn.00404690
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00490a21
mov esp, ebp
pop ebp
ret 4