Function at 0x40a5a8
Capabilities:
Copy file
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe0c
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x1f4], eax
mov dword [ebp - 0x1f0], eax
mov dword [ebp - 0x1ec], eax
mov dword [ebp - 0x1e8], eax
mov dword [ebp - 0x1e4], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
lea esi, [ebp - 0x1e0]
xor eax, eax
push ebp
push 0x40a84f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
call fcn.00409360
push 0
mov eax, dword [ebp - 0x14]
call fcn.004041fc
push eax
lea edx, [ebp - 0x1e4]
xor eax, eax
call fcn.00402764
mov eax, dword [ebp - 0x1e4]
call fcn.004041fc
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
je 0x40a824
lea edx, [ebp - 4]
mov eax, dword [ebp - 0x14]
call fcn.004090d4
mov eax, dword [ebp - 4]
call fcn.00403ffc
mov ebx, eax
lea eax, [ebp - 8]
call fcn.00403e78
jmp 0x40a673
lea eax, [ebp - 0x1e8]
mov edx, dword [ebp - 4]
mov dl, byte [edx + ebx - 1]
call fcn.00403f98
mov edx, dword [ebp - 0x1e8]
lea eax, [ebp - 8]
mov ecx, dword [ebp - 8]
call fcn.00404048
dec ebx
test ebx, ebx
jle 0x40a681
mov eax, dword [ebp - 4]
cmp byte [eax + ebx - 1], 0
jne 0x40a64f
cmp dword [ebp - 8], 0
jne 0x40a69a
mov eax, dword [ebp - 0x14]
call fcn.004041fc
push eax
call sub.kernel32.dll_DeleteFileA
jmp 0x40a824
mov eax, dword [ebp - 8]
call fcn.00403ffc
mov ecx, eax
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040429c
jmp 0x40a801
lea eax, [ebp - 0x10]
push eax
mov edx, dword [ebp - 8]
mov eax, 0x40a868
call fcn.00404340
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.0040425c
mov edx, dword [ebp - 8]
mov eax, 0x40a868
call fcn.00404340
mov ecx, eax
lea eax, [ebp - 8]
mov edx, 1
call fcn.0040429c
lea eax, [ebp - 0xc]
push eax
mov edx, dword [ebp - 0x10]
mov eax, 0x40a874
call fcn.00404340
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.0040425c
mov edx, dword [ebp - 0x10]
mov eax, 0x40a874
call fcn.00404340
mov ecx, eax
lea eax, [ebp - 0x10]
mov edx, 1
call fcn.0040429c
mov eax, dword [ebp - 0x10]
call fcn.004090c8
mov ebx, eax
xor eax, eax
push ebp
push 0x40a7ac
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1ec]
mov ecx, dword [ebp - 0xc]
mov edx, 0x40a880
call fcn.00404048
mov edx, dword [ebp - 0x1ec]
mov eax, esi
call fcn.00402ac0
mov eax, esi
call fcn.00402850
lea eax, [ebp - 0x1f0]
push eax
mov eax, dword [ebp - 4]
call fcn.00403ffc
mov edx, eax
sub edx, ebx
mov ecx, ebx
mov eax, dword [ebp - 4]
call fcn.0040425c
mov edx, dword [ebp - 0x1f0]
mov eax, esi
call fcn.004043ec
call fcn.00402b70
mov eax, esi
call fcn.00402c30
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40a7bd
mov eax, dword [ebp - 4]
call fcn.00403ffc
mov edx, eax
sub edx, ebx
lea eax, [ebp - 4]
mov ecx, ebx
call fcn.0040429c
push 1
push 0
push 0
lea eax, [ebp - 0x1f4]
mov ecx, dword [ebp - 0xc]
mov edx, 0x40a880
call fcn.00404048
mov eax, dword [ebp - 0x1f4]
call fcn.004041fc
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA
mov edx, dword [ebp - 8]
mov eax, 0x40a868
call fcn.00404340
test eax, eax
jg 0x40a6b3
mov eax, dword [ebp - 0x14]
call fcn.004041fc
push eax
call sub.kernel32.dll_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a856
lea eax, [ebp - 0x1f4]
mov edx, 5
call fcn.00403e9c
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00403e9c
ret