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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4d9805
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov byte [ebp - 0x11], cl
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004061a8
xor eax, eax
push ebp
push 0x4d9b30
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp - 0x11], 0
je 0x4d9844
call fcn.004d9e74
test al, al
je 0x4d9af0
mov eax, dword [ebx + 0x14]
cmp eax, dword [ebx + 0x18]
jl 0x4d9957
push dword [ebx + 0xc]
push 0x4d9b4c
lea edx, [ebp - 0x24]
movzx eax, byte [ebx + 0x1c]
call fcn.0046ec10
push dword [ebp - 0x24]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00406664
mov eax, dword [ebp - 8]
call fcn.0046f35c
test al, al
je 0x4d988e
mov eax, dword [ebp - 8]
call fcn.0040624c
push eax
call sub.kernel32.dll_DeleteFileW
movzx esi, byte [ebx + 0x1c]
dec esi
cmp esi, 1
jl 0x4d9911
push dword [ebx + 0xc]
push 0x4d9b4c
lea edx, [ebp - 0x28]
mov eax, esi
call fcn.0046ec10
push dword [ebp - 0x28]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00406664
mov eax, dword [ebp - 8]
call fcn.0046f35c
test al, al
je 0x4d990c
push dword [ebx + 0xc]
push 0x4d9b4c
lea edx, [ebp - 0x30]
lea eax, [esi + 1]
call fcn.0046ec10
push dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.00406664
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x34], edi
mov eax, dword [ebp - 0x34]
call fcn.0040624c
push eax
mov eax, dword [ebp - 8]
call fcn.0040624c
push eax
call sub.kernel32.dll_MoveFileW
cmp eax, 1
sbb eax, eax
inc eax
dec esi
test esi, esi
jne 0x4d9898
push 0
lea eax, [ebp - 0x38]
mov ecx, 0x4d9b64
mov edx, dword [ebx + 0xc]
call fcn.00406594
mov eax, dword [ebp - 0x38]
call fcn.0040624c
push eax
mov eax, dword [ebx + 0xc]
call fcn.0040624c
push eax
call sub.kernel32.dll_CopyFileW
push 0
push 0
mov eax, dword [ebx + 0x10]
call fcn.00483df0
push 0
push 0
mov eax, dword [ebx + 0x10]
call fcn.00483d8c
xor eax, eax
mov dword [ebx + 0x14], eax
cmp dword [ebx + 0x14], 0
jne 0x4d9980
cmp byte [ebx + 0x1e], 0
je 0x4d9980
mov word [ebp - 0x14], 0xfeff
lea edx, [ebp - 0x14]
mov ecx, 2
mov eax, dword [ebx + 0x10]
call fcn.00483ff8
mov dword [ebx + 0x14], 2
cmp byte [ebx + 0x1d], 0
je 0x4d99b2
call fcn.00471a48
fstp qword [ebp - 0x20]
wait
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
lea eax, [ebp - 0x10]
mov edx, 0x4d9b7c
call fcn.00472708
lea edx, [ebp - 4]
mov ecx, 1
mov eax, dword [ebp - 0x10]
call fcn.00406958
lea eax, [ebp - 4]
mov edx, 0x4d9bbc
call fcn.00406514
cmp byte [ebx + 0x1e], 0
je 0x4d9a56
mov esi, dword [ebp - 4]
test esi, esi
je 0x4d99e8
mov eax, esi
sub eax, 0xa
cmp word [eax], 2
je 0x4d99e8
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.004056d0
mov esi, eax
lea eax, [ebp - 4]
call fcn.00406b38
mov esi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x4d9a0f
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4d9a0f
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.004056d0
test eax, eax
je 0x4d9a18
sub eax, 4
mov eax, dword [eax]
mov ecx, eax
add ecx, ecx
mov edx, esi
mov eax, dword [ebx + 0x10]
mov esi, dword [eax]
call dword [esi + 0x10]
mov eax, dword [ebp - 4]
test eax, eax
je 0x4d9a43
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x4d9a43
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.004056d0
test eax, eax
je 0x4d9a4c
sub eax, 4
mov eax, dword [eax]
add eax, eax
add dword [ebx + 0x14], eax
jmp 0x4d9af0
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
mov ecx, 0
call fcn.00406404
mov esi, dword [ebp - 0xc]
test esi, esi
je 0x4d9a87
mov eax, esi
sub eax, 0xa
cmp word [eax], 1
je 0x4d9a87
lea eax, [ebp - 0xc]
xor ecx, ecx
mov edx, dword [ebp - 0xc]
call fcn.00405700
mov esi, eax
lea eax, [ebp - 0xc]
call fcn.00405c34
mov esi, eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4d9ab0
mov edx, eax
sub edx, 0xa
cmp word [edx], 1
je 0x4d9ab0
lea eax, [ebp - 0xc]
xor ecx, ecx
mov edx, dword [ebp - 0xc]
call fcn.00405700
test eax, eax
je 0x4d9ab9
sub eax, 4
mov eax, dword [eax]
mov ecx, eax
mov edx, esi
mov eax, dword [ebx + 0x10]
mov esi, dword [eax]
call dword [esi + 0x10]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4d9ae4
mov edx, eax
sub edx, 0xa
cmp word [edx], 1
je 0x4d9ae4
lea eax, [ebp - 0xc]
xor ecx, ecx
mov edx, dword [ebp - 0xc]
call fcn.00405700
test eax, eax
je 0x4d9aed
sub eax, 4
mov eax, dword [eax]
add dword [ebx + 0x14], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d9b37
lea eax, [ebp - 0x38]
call fcn.004061b0
lea eax, [ebp - 0x30]
mov edx, 4
call fcn.004061b8
lea eax, [ebp - 0x10]
call fcn.004061b0
lea eax, [ebp - 0xc]
call fcn.00405500
lea eax, [ebp - 8]
mov edx, 2
call fcn.004061b8
ret