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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 4], edx
xor ecx, ecx
mov edi, ecx
mov dword [ebp - 0xc], ecx
xor edx, edx
mov dword [ebp - 0x10], edx
test eax, eax
je 0x4c9b7f
cmp dword [ebp + 0xc], 0
jne 0x4c9b8b
push 0
call fcn.0042c6cc
jmp 0x4c9e27
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4c9c5a
push dword [ebp + 0xc]
mov eax, dword [ebp - 8]
push dword [eax]
call fcn.0054e450
add esp, 8
test eax, eax
jne 0x4c9bb3
mov dword [ebp - 0x10], 1
lea eax, [ebp - 0x34]
push eax
mov edx, dword [ebp - 8]
push dword [edx]
call fcn.0055482c
add esp, 8
test eax, eax
je 0x4c9bd4
push 0
call fcn.0042c6cc
jmp 0x4c9e27
push 0xc
call fcn.00559d70
pop ecx
test eax, eax
jne 0x4c9bec
push 0
call fcn.0042c6cc
jmp 0x4c9e27
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [eax], edx
mov ecx, dword [ebp - 0x1a]
mov dword [eax + 4], ecx
xor edx, edx
mov dword [eax + 8], edx
mov ecx, dword [ebp - 8]
xor edx, edx
mov dword [ecx], edx
cmp dword [ebp - 4], 0
jne 0x4c9c10
mov dword [ebp - 4], eax
jmp 0x4c9c47
xor esi, esi
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4c9c40
mov edx, dword [eax + 4]
cmp edx, dword [ebx + 4]
jge 0x4c9c37
mov dword [eax + 8], ebx
test esi, esi
je 0x4c9c2b
mov dword [esi + 8], eax
cmp ebx, dword [ebp - 4]
jne 0x4c9c33
mov dword [ebp - 4], eax
xor esi, esi
jmp 0x4c9c40
mov esi, ebx
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4c9c19
test esi, esi
je 0x4c9c47
mov dword [esi + 8], eax
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x40]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
jne 0x4c9b98
cmp dword [ebp - 4], 0
jne 0x4c9c6c
push 0
call fcn.0042c6cc
jmp 0x4c9e27
push 0
push 0
push 0x588ae3
push 0x588ae0
mov ecx, dword [ebp - 4]
push dword [ecx]
call fcn.0050e5fc
add esp, 0x14
cmp dword [ebp - 0x10], 0
je 0x4c9cdb
push 0
call fcn.00553350
pop ecx
push eax
push 0x588ae3
push 0x588ae0
push 0x56a941
push 0x582088
call sub.USER32.dll_wsprintfA
add esp, 0x14
push 0x40
push 0x56a949
push 0x582088
call fcn.005541f4
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4c9d02
push 0
call fcn.0042c6cc
jmp 0x4c9e27
push 0x40
push 0x56a94c
push dword [ebp + 0xc]
call fcn.005541f4
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4c9d02
push 0
call fcn.0042c6cc
jmp 0x4c9e27
push 0x1000
push 0
push 0
push dword [ebp - 0xc]
call fcn.00552f84
add esp, 0x10
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4c9dc8
push 0x40
push 0x56a94f
push dword [ebx]
call fcn.005541f4
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x4c9d44
push 0
call fcn.0042c6cc
jmp 0x4c9e27
push 0x1000
push 0
push 0
push edi
call fcn.00552f84
add esp, 0x10
mov esi, 1
push edi
push pe_nt_image_headers32
push 1
push 0x57cddf
call fcn.00551e44
add esp, 0x10
test eax, eax
jg 0x4c9d86
test byte [edi + 0x12], 0x10
je 0x4c9db4
push 0
call fcn.0042c6cc
jmp 0x4c9e27
cmp eax, 0x200
jge 0x4c9d8f
xor esi, esi
push dword [ebp - 0xc]
push 1
push eax
push 0x57cddf
call fcn.00551fe4
add esp, 0x10
cmp eax, 1
je 0x4c9db0
push 0
call fcn.0042c6cc
jmp 0x4c9e27
test esi, esi
jne 0x4c9d5b
push edi
call fcn.005516ec
pop ecx
xor edi, edi
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4c9d21
cmp dword [ebp - 0xc], 0
je 0x4c9dd7
push dword [ebp - 0xc]
call fcn.005516ec
pop ecx
xor eax, eax
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0x10], 0
je 0x4c9df7
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4c9df7
push dword [ebx]
call sub.KERNEL32.dll_DeleteFileA
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4c9de9
cmp dword [ebp - 0x10], 0
je 0x4c9e27
push dword [ebp + 0xc]
push 0x582088
call sub.KERNEL32.dll_MoveFileA
test eax, eax
jne 0x4c9e27
push 0
push dword [ebp + 0xc]
push 0x582088
call sub.KERNEL32.dll_CopyFileA
push 0x582088
call sub.KERNEL32.dll_DeleteFileA
test edi, edi
je 0x4c9e32
push edi
call fcn.005516ec
pop ecx
cmp dword [ebp - 0xc], 0
je 0x4c9e51
push dword [ebp - 0xc]
call fcn.005516ec
pop ecx
cmp dword [ebp - 0x10], 0
je 0x4c9e51
push 0x582088
call sub.KERNEL32.dll_DeleteFileA
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4c9e68
mov esi, dword [ebx + 8]
push ebx
call fcn.00559c5c
pop ecx
mov ebx, esi
test ebx, ebx
jne 0x4c9e58
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc