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

Disassembly:
mov eax, 0x45360b
call fcn.004324bc
sub esp, 0x4c8
push ebx
push esi
push edi
and dword [ebp - 0x18], 0
push 2
pop esi
lea ecx, [ebp - 0x10]
push 0x4747d0
mov dword [ebp - 4], esi
call fcn.004482f5
push 1
lea ecx, [ebp - 0x7c]
pop ebx
mov byte [ebp - 4], 3
push ebx
call fcn.0043fcdf
push ebx
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 4
call fcn.0043f827
push dword [0x45f4ac]
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 5
push 0x21
push dword [ebp + 8]
call fcn.0043fda3
lea eax, [ebp - 0x14]
push eax
call fcn.0040b586
pop ecx
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 6
call fcn.00448374
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.00448287
push ecx
lea eax, [ebp - 0x10]
mov edi, esp
mov dword [ebp - 0x14], esp
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.00447ffc
push edi
call fcn.0040b60c
pop ecx
pop ecx
call fcn.0040b31f
pop ecx
push dword [0x45f4ac]
lea ecx, [ebp - 0xd4]
push esi
push dword [ebp - 0x10]
call fcn.0043f919
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 4]
mov ecx, dword [ebp + eax - 0x78]
cmp dword [ecx + 0x4c], 0xffffffff
je 0x40c60e
mov edx, dword [ebp - 0xd4]
mov edx, dword [edx + 4]
mov edx, dword [ebp + edx - 0xd0]
cmp dword [edx + 0x4c], 0xffffffff
je 0x40c5fe
test byte [ebp + eax - 0x74], bl
jne 0x40c5ae
call fcn.0040db88
push 0xa
lea eax, [ebp - 0x4d4]
push 0x3ff
push eax
lea ecx, [ebp - 0x7c]
call fcn.0040f0b7
push dword [ebp + 0x14]
lea eax, [ebp + 0x10]
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.00447ffc
push ecx
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
mov byte [ebp - 4], 7
call fcn.00447ffc
push ecx
lea eax, [ebp - 0x4d4]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
mov byte [ebp - 4], 8
call fcn.004482f5
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 5
push eax
call fcn.0040fa0a
add esp, 0x14
mov ecx, eax
mov byte [ebp - 4], 9
call fcn.00407868
push eax
lea ecx, [ebp - 0xd4]
call fcn.0043ffc7
push eax
call fcn.0040f11e
pop ecx
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x14]
call fcn.00448287
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 4]
jmp 0x40c509
lea ecx, [ebp - 0xd4]
call fcn.0043fde5
lea ecx, [ebp - 0x7c]
call fcn.0043fde5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x80
push dword [ebp + 8]
mov edi, eax
call esi
push 0
push dword [ebp + 8]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
push dword [ebp + 8]
call esi
mov dword [ebp - 0x18], ebx
jmp 0x40c622
cmp dword [ecx + 0x4c], 0xffffffff
je 0x40c60e
lea ecx, [ebp - 0x7c]
call fcn.0043fde5
jmp 0x40c622
lea ecx, [ebp - 0xd4]
call fcn.0043fde5
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0xcc]
mov byte [ebp - 4], 4
call fcn.0043f8d8
lea ecx, [ebp - 0xcc]
call fcn.0043f7ae
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 3
call fcn.0043fd90
lea ecx, [ebp - 0x70]
call fcn.0043f7ae
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00448287
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.00448287
and byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00448287
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.00448287
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret