Function at 0x4c5bf0
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x11
push 0
push 0
dec ecx
jne 0x4c5bf8
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4c61a2
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x25], 0
lea edx, [ebp - 0x2c]
mov eax, 0x1a
call fcn.004c5ad0
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 4]
mov ecx, 0x4c61c4
call fcn.00407408
lea eax, [ebp - 8]
xor edx, edx
call fcn.00406fa0
lea eax, [ebp - 0x30]
mov ecx, 0x4c61d4
mov edx, dword [ebp - 4]
call fcn.00407408
mov eax, dword [ebp - 0x30]
call fcn.00413260
test al, al
jne 0x4c5cb4
lea eax, [ebp - 0x34]
mov ecx, 0x4c621c
mov edx, dword [ebp - 4]
call fcn.00407408
mov eax, dword [ebp - 0x34]
call fcn.00413260
test al, al
jne 0x4c5ca5
lea eax, [ebp - 0x38]
mov ecx, 0x4c6254
mov edx, dword [ebp - 4]
call fcn.00407408
mov eax, dword [ebp - 0x38]
call fcn.00413260
test al, al
je 0x4c60ea
lea eax, [ebp - 4]
mov edx, 0x4c62ac
call fcn.00407348
jmp 0x4c5cc1
lea eax, [ebp - 4]
mov edx, 0x4c62ec
call fcn.00407348
jmp 0x4c5cc1
lea eax, [ebp - 4]
mov edx, 0x4c630c
call fcn.00407348
lea eax, [ebp - 0x3c]
mov ecx, 0x4c633c
mov edx, dword [ebp - 4]
call fcn.00407408
mov eax, dword [ebp - 0x3c]
call fcn.00413260
test al, al
je 0x4c60ea
push 0x4c6364
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x40]
mov ecx, 0x4c633c
mov edx, dword [ebp - 4]
call fcn.00407408
mov edx, dword [ebp - 0x40]
mov ecx, 0x4c637c
xor eax, eax
call fcn.004c598c
cmp dword [ebp - 8], 0
je 0x4c5d29
push dword [ebp - 4]
push dword [ebp - 8]
push 0x4c61c4
lea eax, [ebp - 8]
mov edx, 3
call fcn.004074ec
lea eax, [ebp - 0x10]
mov edx, 0x4c639c
call fcn.00406fa0
lea eax, [ebp - 0x14]
mov edx, 0x4c6404
call fcn.00406fa0
lea eax, [ebp - 0x18]
mov edx, 0x4c6468
call fcn.00406fa0
lea eax, [ebp - 0x44]
mov ecx, 0x4c64d8
mov edx, dword [ebp - 8]
call fcn.00407408
mov eax, dword [ebp - 0x44]
call fcn.00413260
test al, al
jne 0x4c5dd8
push 0
lea eax, [ebp - 0x48]
mov edx, dword [ebp - 0x10]
call fcn.004071b0
mov eax, dword [ebp - 0x48]
push eax
lea eax, [ebp - 0x4c]
mov ecx, 0x4c64d8
mov edx, dword [ebp - 8]
call fcn.00407408
mov edx, dword [ebp - 0x4c]
mov eax, 1
pop ecx
call fcn.004c5814
mov byte [ebp - 0x25], al
push 0
lea eax, [ebp - 0x50]
mov edx, dword [ebp - 0x18]
call fcn.004071b0
mov eax, dword [ebp - 0x50]
push eax
lea eax, [ebp - 0x54]
mov ecx, 0x4c64d8
mov edx, dword [ebp - 8]
call fcn.00407408
mov edx, dword [ebp - 0x54]
mov eax, 1
pop ecx
call fcn.004c5814
or al, byte [ebp - 0x25]
mov byte [ebp - 0x25], al
jmp 0x4c5f44
lea eax, [ebp - 0x60]
mov ecx, 0x4c64d8
mov edx, dword [ebp - 8]
call fcn.00407408
mov eax, dword [ebp - 0x60]
lea ecx, [ebp - 0x5c]
xor edx, edx
call fcn.004c570c
mov edx, dword [ebp - 0x5c]
lea eax, [ebp - 0x58]
call fcn.0040719c
mov eax, dword [ebp - 0x58]
lea edx, [ebp - 0xc]
call fcn.00411f14
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
call fcn.004079dc
test eax, eax
jle 0x4c5e70
movzx eax, byte [0x4c64e8]
push eax
lea eax, [ebp - 0x64]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.00419378
mov edx, dword [ebp - 0x64]
lea eax, [ebp - 0xc]
call fcn.00406fa0
push 0
lea eax, [ebp - 0x68]
mov edx, dword [ebp - 0xc]
call fcn.004071b0
mov eax, dword [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
mov ecx, 0x4c64d8
mov edx, dword [ebp - 8]
call fcn.00407408
mov edx, dword [ebp - 0x6c]
xor eax, eax
pop ecx
call fcn.004c5814
mov byte [ebp - 0x25], al
jmp 0x4c5ec1
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.004079dc
test eax, eax
jg 0x4c5ec1
cmp byte [ebp - 0x25], 0
jne 0x4c5ebc
push 0
lea eax, [ebp - 0x70]
mov edx, dword [ebp - 0x10]
call fcn.004071b0
mov eax, dword [ebp - 0x70]
push eax
lea eax, [ebp - 0x74]
mov ecx, 0x4c64d8
mov edx, dword [ebp - 8]
call fcn.00407408
mov edx, dword [ebp - 0x74]
mov eax, 1
pop ecx
call fcn.004c5814
test al, al
jne 0x4c5ebc
xor eax, eax
jmp 0x4c5ebe
mov al, 1
mov byte [ebp - 0x25], al
lea eax, [ebp - 0x80]
mov ecx, 0x4c64d8
mov edx, dword [ebp - 8]
call fcn.00407408
mov eax, dword [ebp - 0x80]
lea ecx, [ebp - 0x7c]
xor edx, edx
call fcn.004c570c
mov edx, dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
call fcn.0040719c
mov eax, dword [ebp - 0x78]
lea edx, [ebp - 0xc]
call fcn.00411f14
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
call fcn.004079dc
test eax, eax
jg 0x4c5f44
push 0
lea eax, [ebp - 0x84]
mov edx, dword [ebp - 0x18]
call fcn.004071b0
mov eax, dword [ebp - 0x84]
push eax
lea eax, [ebp - 0x88]
mov ecx, 0x4c64d8
mov edx, dword [ebp - 8]
call fcn.00407408
mov edx, dword [ebp - 0x88]
mov eax, 1
pop ecx
call fcn.004c5814
or al, byte [ebp - 0x25]
mov byte [ebp - 0x25], al
xor edx, edx
push ebp
push 0x4c60e0
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x20]
mov ecx, 0x4c64f8
mov edx, dword [ebp - 8]
call fcn.00407408
lea eax, [ebp - 0x24]
mov ecx, 0x4c652c
mov edx, dword [ebp - 8]
call fcn.00407408
mov eax, dword [ebp - 0x20]
call fcn.00413260
test al, al
je 0x4c60d6
mov eax, 0x4c6578
call fcn.004c66cc
test al, al
je 0x4c5fc5
mov eax, dword [ebp - 0x24]
call fcn.00413260
test al, al
je 0x4c5faa
mov eax, dword [ebp - 0x24]
call fcn.00406fd8
push eax
call sub.KERNEL32.DLL_DeleteFileW
push 0xffffffffffffffff
mov eax, dword [ebp - 0x24]
call fcn.00406fd8
push eax
mov eax, dword [ebp - 0x20]
call fcn.00406fd8
push eax
call sub.KERNEL32.DLL_CopyFileW
jmp 0x4c5fd0
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x20]
call fcn.00406fa0
mov eax, dword [ebp - 0x24]
call fcn.00413260
test al, al
je 0x4c60d6
mov edx, 0x4c659c
mov eax, dword [ebp - 0x24]
call fcn.004c5b00
test al, al
jne 0x4c6006
mov edx, 0x4c65e0
mov eax, dword [ebp - 0x24]
call fcn.004c5b00
test al, al
je 0x4c60bb
mov eax, 0x4c6578
call fcn.004c66cc
test al, al
je 0x4c608a
mov eax, dword [ebx + 0x3b0]
dec eax
sub eax, 2
jae 0x4c602f
lea eax, [ebp - 0x1c]
mov edx, 0x4c6624
call fcn.00406fa0
jmp 0x4c603c
lea eax, [ebp - 0x1c]
mov edx, 0x4c669c
call fcn.00406fa0
push 0x40034
lea edx, [ebp - 0x8c]
mov eax, ebx
call fcn.0047f0fc
mov eax, dword [ebp - 0x8c]
call fcn.00406fd8
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00406fd8
mov edx, eax
mov eax, dword [0x4d5c64]
mov eax, dword [eax]
pop ecx
call fcn.004aeec8
cmp eax, 6
jne 0x4c608a
mov eax, 0x4c6578
call fcn.004c684c
push 0x1f4
call sub.KERNEL32.DLL_Sleep
mov eax, 0x4c6578
call fcn.004c66cc
test al, al
jne 0x4c60bb
mov eax, dword [ebp - 0x20]
call fcn.00406fd8
push eax
call sub.KERNEL32.DLL_DeleteFileW
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x4c60b4
mov al, 1
jmp 0x4c60b8
movzx eax, byte [ebp - 0x25]
mov byte [ebp - 0x25], al
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
call fcn.0040760c
je 0x4c60d6
mov eax, dword [ebp - 0x24]
call fcn.00406fd8
push eax
call sub.KERNEL32.DLL_DeleteFileW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c60ea
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c61ac
lea eax, [ebp - 0x8c]
call fcn.00406f3c
lea eax, [ebp - 0x88]
call fcn.00406f3c
lea eax, [ebp - 0x84]
call fcn.00406bb0
lea eax, [ebp - 0x80]
call fcn.00406f3c
lea eax, [ebp - 0x7c]
call fcn.00406bb0
lea eax, [ebp - 0x78]
mov edx, 2
call fcn.00406f44
lea eax, [ebp - 0x70]
call fcn.00406bb0
lea eax, [ebp - 0x6c]
call fcn.00406f3c
lea eax, [ebp - 0x68]
call fcn.00406bb0
lea eax, [ebp - 0x64]
mov edx, 2
call fcn.00406f44
lea eax, [ebp - 0x5c]
call fcn.00406bb0
lea eax, [ebp - 0x58]
mov edx, 2
call fcn.00406f44
lea eax, [ebp - 0x50]
call fcn.00406bb0
lea eax, [ebp - 0x4c]
call fcn.00406f3c
lea eax, [ebp - 0x48]
call fcn.00406bb0
lea eax, [ebp - 0x44]
mov edx, 7
call fcn.00406f44
lea eax, [ebp - 0x24]
mov edx, 9
call fcn.00406f44
ret