Function at 0x477864
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 9
push 0
push 0
dec ecx
jne 0x47786c
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x477ad8
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x20]
xor eax, eax
call fcn.00403358
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 4]
call fcn.0040a058
lea edx, [ebp - 0x28]
xor eax, eax
call fcn.00403358
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.0040a058
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 8]
mov ecx, 0x477af0
call fcn.004053d0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x477ab0
inc eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.004053d0
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0xc]
call fcn.0040a058
mov eax, dword [ebp - 0x30]
call fcn.0040a1bc
mov eax, dword [ebp - 0xc]
call fcn.00409e90
test al, al
je 0x4779ce
lea eax, [ebp - 0x10]
mov ecx, 0x477b00
mov edx, dword [ebp - 0xc]
call fcn.004053d0
xor eax, eax
push ebp
push 0x477964
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
call fcn.00409e90
test al, al
je 0x47795a
mov eax, dword [ebp - 0x10]
call fcn.00405548
push eax
call sub.kernel32.dll_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47797d
lea eax, [ebp - 0x10]
mov edx, 0x477b00
call fcn.00405384
mov eax, dword [ebp - 0x10]
call fcn.00409e90
test al, al
jne 0x477970
mov eax, dword [ebp - 0x10]
call fcn.00405548
push eax
mov eax, dword [ebp - 0xc]
call fcn.00405548
push eax
call sub.kernel32.dll_MoveFileA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4779ce
mov eax, dword [ebp - 0x14]
cmp word [eax + 0x42], 0
je 0x477ab0
mov ebx, dword [ebp - 0x14]
mov ecx, 0x477b10
mov edx, dword [ebp - 0x14]
mov eax, dword [ebx + 0x44]
call dword [ebx + 0x40]
jmp 0x477ab0
push 0
mov eax, dword [ebp - 0xc]
call fcn.00405548
push eax
lea ecx, [ebp - 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 8]
call fcn.004053d0
mov eax, dword [ebp - 0x34]
call fcn.00405548
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
je 0x477a57
lea ecx, [ebp - 0x44]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x40]
mov edx, dword [ebp - 8]
call fcn.004053d0
mov eax, dword [ebp - 0x40]
call fcn.00405548
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.004052b0
mov ebx, dword [ebp - 0x3c]
mov dword [ebp - 0x48], ebx
mov eax, dword [ebp - 0x48]
call fcn.00405548
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x477a74
mov eax, dword [ebp - 0x14]
cmp word [eax + 0x42], 0
je 0x477ab0
mov ebx, dword [ebp - 0x14]
mov ecx, 0x477b10
mov edx, dword [ebp - 0x14]
mov eax, dword [ebx + 0x44]
call dword [ebx + 0x40]
jmp 0x477ab0
xor eax, eax
push ebp
push 0x477a9a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
call fcn.00405548
push eax
call sub.kernel32.dll_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x477aa4
inc dword [ebp - 0x18]
dec dword [ebp - 0x1c]
jne 0x4778e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477adf
lea eax, [ebp - 0x44]
mov edx, 0xa
call fcn.004050dc
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.004050dc
ret