Function at 0x4c9b57
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 0x4c9b7e
cmp dword [ebp + 0xc], 0
jne 0x4c9b8a
push 0
call fcn.0042c4bf
jmp 0x4c9e26
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4c9c59
push dword [ebp + 0xc]
mov eax, dword [ebp - 8]
push dword [eax]
call fcn.0054c494
add esp, 8
test eax, eax
jne 0x4c9bb2
mov dword [ebp - 0x10], 1
lea eax, [ebp - 0x34]
push eax
mov edx, dword [ebp - 8]
push dword [edx]
call fcn.00552870
add esp, 8
test eax, eax
je 0x4c9bd3
push 0
call fcn.0042c4bf
jmp 0x4c9e26
push 0xc
call fcn.00557db4
pop ecx
test eax, eax
jne 0x4c9beb
push 0
call fcn.0042c4bf
jmp 0x4c9e26
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 0x4c9c0f
mov dword [ebp - 4], eax
jmp 0x4c9c46
xor esi, esi
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4c9c3f
mov edx, dword [eax + 4]
cmp edx, dword [ebx + 4]
jge 0x4c9c36
mov dword [eax + 8], ebx
test esi, esi
je 0x4c9c2a
mov dword [esi + 8], eax
cmp ebx, dword [ebp - 4]
jne 0x4c9c32
mov dword [ebp - 4], eax
xor esi, esi
jmp 0x4c9c3f
mov esi, ebx
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4c9c18
test esi, esi
je 0x4c9c46
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 0x4c9b97
cmp dword [ebp - 4], 0
jne 0x4c9c6b
push 0
call fcn.0042c4bf
jmp 0x4c9e26
push 0
push 0
push 0x586c7f
push 0x586c7c
mov ecx, dword [ebp - 4]
push dword [ecx]
call fcn.0050ca44
add esp, 0x14
cmp dword [ebp - 0x10], 0
je 0x4c9cda
push 0
call fcn.00551394
pop ecx
push eax
push 0x586c7f
push 0x586c7c
push 0x56887c
push 0x57fe40
call sub.USER32.dll_wsprintfA
add esp, 0x14
push 0x40
push 0x568884
push 0x57fe40
call fcn.00552238
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4c9d01
push 0
call fcn.0042c4bf
jmp 0x4c9e26
push 0x40
push 0x568887
push dword [ebp + 0xc]
call fcn.00552238
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4c9d01
push 0
call fcn.0042c4bf
jmp 0x4c9e26
push 0x1000
push 0
push 0
push dword [ebp - 0xc]
call fcn.00550fc8
add esp, 0x10
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4c9dc7
push 0x40
push 0x56888a
push dword [ebx]
call fcn.00552238
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x4c9d43
push 0
call fcn.0042c4bf
jmp 0x4c9e26
push 0x1000
push 0
push 0
push edi
call fcn.00550fc8
add esp, 0x10
mov esi, 1
push edi
push pe_nt_image_headers32
push 1
push 0x57ac8f
call fcn.0054fe88
add esp, 0x10
test eax, eax
jg 0x4c9d85
test byte [edi + 0x12], 0x10
je 0x4c9db3
push 0
call fcn.0042c4bf
jmp 0x4c9e26
cmp eax, 0x200
jge 0x4c9d8e
xor esi, esi
push dword [ebp - 0xc]
push 1
push eax
push 0x57ac8f
call fcn.00550028
add esp, 0x10
cmp eax, 1
je 0x4c9daf
push 0
call fcn.0042c4bf
jmp 0x4c9e26
test esi, esi
jne 0x4c9d5a
push edi
call fcn.0054f730
pop ecx
xor edi, edi
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4c9d20
cmp dword [ebp - 0xc], 0
je 0x4c9dd6
push dword [ebp - 0xc]
call fcn.0054f730
pop ecx
xor eax, eax
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0x10], 0
je 0x4c9df6
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4c9df6
push dword [ebx]
call sub.KERNEL32.dll_DeleteFileA
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4c9de8
cmp dword [ebp - 0x10], 0
je 0x4c9e26
push dword [ebp + 0xc]
push 0x57fe40
call sub.KERNEL32.dll_MoveFileA
test eax, eax
jne 0x4c9e26
push 0
push dword [ebp + 0xc]
push 0x57fe40
call sub.KERNEL32.dll_CopyFileA
push 0x57fe40
call sub.KERNEL32.dll_DeleteFileA
test edi, edi
je 0x4c9e31
push edi
call fcn.0054f730
pop ecx
cmp dword [ebp - 0xc], 0
je 0x4c9e50
push dword [ebp - 0xc]
call fcn.0054f730
pop ecx
cmp dword [ebp - 0x10], 0
je 0x4c9e50
push 0x57fe40
call sub.KERNEL32.dll_DeleteFileA
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4c9e67
mov esi, dword [ebx + 8]
push ebx
call fcn.00557ca0
pop ecx
mov ebx, esi
test ebx, ebx
jne 0x4c9e57
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc