Function at 0x41c7ec
Capabilities:
Copy file
Delete file
Move file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
mov dword [esp + 0xc], ecx
push esi
push edi
test ebx, ebx
jne 0x41c817
mov eax, 0x80070057
mov esi, eax
push eax
call fcn.004314fa
jmp 0x41ca38
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x41c805
mov eax, dword [0x48dcb8]
test eax, eax
je 0x41c82c
cmp eax, 0xffffffff
jne 0x41c82e
xor eax, eax
push ebx
push 0x406a5c
push dword [0x490330]
push eax
call fcn.0041ad72
mov eax, dword [0x48dcb8]
add esp, 0x10
test eax, eax
je 0x41c851
cmp eax, 0xffffffff
jne 0x41c853
xor eax, eax
push edi
push 0x406a88
push dword [0x490330]
push eax
call fcn.0041ad72
add esp, 0x10
lea edx, [esp + 0x10]
mov ecx, ebx
call fcn.00430ac9
mov esi, eax
test esi, esi
js 0x41c885
cmp dword [esp + 0x10], 0
jne 0x41c888
mov esi, 0x80070002
push esi
jmp 0x41c80d
lea edx, [esp + 0x10]
mov ecx, edi
call fcn.00430ac9
mov esi, eax
test esi, esi
js 0x41c885
cmp dword [esp + 0x10], 0
je 0x41c8e8
mov eax, dword [0x48dcb8]
test eax, eax
je 0x41c8ae
cmp eax, 0xffffffff
jne 0x41c8b0
xor eax, eax
push edi
push 0x406ab4
push dword [0x490330]
push eax
call fcn.0041ad72
add esp, 0x10
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x41ca20
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x41ca20
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x24], 0
je 0x41c98d
mov ecx, dword [eax + 0x28]
lea edx, [esp + 0x10]
call fcn.00430b00
mov esi, eax
test esi, esi
js 0x41c885
cmp dword [esp + 0x10], 0
jne 0x41c950
mov eax, dword [0x48dcb8]
test eax, eax
je 0x41c921
cmp eax, 0xffffffff
jne 0x41c923
xor eax, eax
mov esi, dword [esp + 0x14]
push dword [esi + 0x28]
push 0x406aec
push dword [0x490330]
push eax
call fcn.0041ad72
mov ecx, dword [esi + 0x28]
add esp, 0x10
call fcn.004308af
mov esi, eax
test esi, esi
js 0x41c885
mov eax, dword [0x48dcb8]
test eax, eax
je 0x41c95e
cmp eax, 0xffffffff
jne 0x41c960
xor eax, eax
push edi
push ebx
push 0x406b1c
push dword [0x490330]
push eax
call fcn.0041ad72
add esp, 0x14
push 0xb
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x41ca34
jmp 0x41ca20
push 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
test eax, eax
je 0x41c9b7
mov eax, dword [0x48dcb8]
test eax, eax
je 0x41c9a9
cmp eax, 0xffffffff
jne 0x41c9ab
xor eax, eax
push ebx
push edi
push 0x406b50
jmp 0x41ca53
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x11
jne 0x41ca62
mov eax, dword [0x48dcb8]
test eax, eax
je 0x41c9d4
cmp eax, 0xffffffff
jne 0x41c9d6
xor eax, eax
push edi
push ebx
push 0x406ba0
push dword [0x490330]
push eax
call fcn.0041ad72
mov eax, dword [0x48dcb8]
add esp, 0x14
test eax, eax
je 0x41c9fa
cmp eax, 0xffffffff
jne 0x41c9fc
xor eax, eax
push edi
push ebx
push 0x406c08
push dword [0x490330]
push eax
call fcn.0041ad72
add esp, 0x14
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x41ca62
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004317f4
mov esi, eax
push esi
call fcn.004314fa
test esi, esi
jns 0x41ca62
mov eax, dword [0x48dcb8]
test eax, eax
je 0x41ca46
cmp eax, 0xffffffff
jne 0x41ca48
xor eax, eax
push esi
push 0x406c48
push 0x406200
push dword [0x490330]
push eax
call fcn.0041ad72
add esp, 0x14
push esi
call fcn.00431467
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8