Function at 0x41c94c
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 0x41c977
mov eax, 0x80070057
mov esi, eax
push eax
call fcn.004321e3
jmp 0x41cb98
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x41c965
mov eax, dword [0x48ecb8]
test eax, eax
je 0x41c98c
cmp eax, 0xffffffff
jne 0x41c98e
xor eax, eax
push ebx
push 0x406a5c
push dword [0x491330]
push eax
call fcn.0041aecf
mov eax, dword [0x48ecb8]
add esp, 0x10
test eax, eax
je 0x41c9b1
cmp eax, 0xffffffff
jne 0x41c9b3
xor eax, eax
push edi
push 0x406a88
push dword [0x491330]
push eax
call fcn.0041aecf
add esp, 0x10
lea edx, [esp + 0x10]
mov ecx, ebx
call fcn.00431799
mov esi, eax
test esi, esi
js 0x41c9e5
cmp dword [esp + 0x10], 0
jne 0x41c9e8
mov esi, 0x80070002
push esi
jmp 0x41c96d
lea edx, [esp + 0x10]
mov ecx, edi
call fcn.00431799
mov esi, eax
test esi, esi
js 0x41c9e5
cmp dword [esp + 0x10], 0
je 0x41ca48
mov eax, dword [0x48ecb8]
test eax, eax
je 0x41ca0e
cmp eax, 0xffffffff
jne 0x41ca10
xor eax, eax
push edi
push 0x406ab4
push dword [0x491330]
push eax
call fcn.0041aecf
add esp, 0x10
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x41cb80
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x41cb80
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x24], 0
je 0x41caed
mov ecx, dword [eax + 0x28]
lea edx, [esp + 0x10]
call fcn.004317d0
mov esi, eax
test esi, esi
js 0x41c9e5
cmp dword [esp + 0x10], 0
jne 0x41cab0
mov eax, dword [0x48ecb8]
test eax, eax
je 0x41ca81
cmp eax, 0xffffffff
jne 0x41ca83
xor eax, eax
mov esi, dword [esp + 0x14]
push dword [esi + 0x28]
push 0x406aec
push dword [0x491330]
push eax
call fcn.0041aecf
mov ecx, dword [esi + 0x28]
add esp, 0x10
call fcn.0043157f
mov esi, eax
test esi, esi
js 0x41c9e5
mov eax, dword [0x48ecb8]
test eax, eax
je 0x41cabe
cmp eax, 0xffffffff
jne 0x41cac0
xor eax, eax
push edi
push ebx
push 0x406b1c
push dword [0x491330]
push eax
call fcn.0041aecf
add esp, 0x14
push 0xb
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x41cb94
jmp 0x41cb80
push 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
test eax, eax
je 0x41cb17
mov eax, dword [0x48ecb8]
test eax, eax
je 0x41cb09
cmp eax, 0xffffffff
jne 0x41cb0b
xor eax, eax
push ebx
push edi
push 0x406b50
jmp 0x41cbb3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x11
jne 0x41cbc2
mov eax, dword [0x48ecb8]
test eax, eax
je 0x41cb34
cmp eax, 0xffffffff
jne 0x41cb36
xor eax, eax
push edi
push ebx
push 0x406ba0
push dword [0x491330]
push eax
call fcn.0041aecf
mov eax, dword [0x48ecb8]
add esp, 0x14
test eax, eax
je 0x41cb5a
cmp eax, 0xffffffff
jne 0x41cb5c
xor eax, eax
push edi
push ebx
push 0x406c08
push dword [0x491330]
push eax
call fcn.0041aecf
add esp, 0x14
push 0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x41cbc2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004324dd
mov esi, eax
push esi
call fcn.004321e3
test esi, esi
jns 0x41cbc2
mov eax, dword [0x48ecb8]
test eax, eax
je 0x41cba6
cmp eax, 0xffffffff
jne 0x41cba8
xor eax, eax
push esi
push 0x406c48
push 0x406200
push dword [0x491330]
push eax
call fcn.0041aecf
add esp, 0x14
push esi
call fcn.00432150
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8