Function at 0x405c50
Capabilities:
Check if file exists
Copy file
Create process on windows
Delete file
Get file attributes
Self delete
Set file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x390
mov eax, dword [0x4a3300]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0xdb]
push esi
push edi
push 0x63
mov esi, ecx
mov byte [ebp - 0xdc], 0
push 0
push eax
mov dword [ebp - 0x390], esi
call fcn.00453200
add esp, 0xc
mov byte [ebp - 0x74], 0
lea eax, [ebp - 0x73]
push 0x63
push 0
push eax
call fcn.00453200
add esp, 0xc
lea edx, [ebp - 0xdc]
mov ecx, esi
call fcn.00401470
cmp eax, 1
jne 0x405cfe
lea edx, [ebp - 0x74]
mov ecx, ebx
call fcn.00401470
cmp eax, 1
jne 0x405cfe
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0xdc]
push eax
call fcn.004581f3
add esp, 8
test eax, eax
je 0x405cfe
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
call edi
test eax, eax
jne 0x405cfe
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 3
je 0x405cfb
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call edi
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push ebx
call edi
test eax, eax
jne 0x405d33
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push ebx
call edi
cmp eax, 1
jne 0x405d33
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 3
je 0x405d33
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call edi
test eax, eax
jne 0x405d4f
push 0x481c90
call fcn.00401630
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x257
lea eax, [ebp - 0x333]
mov byte [ebp - 0x334], 0
push 0
push eax
call fcn.00453200
lea edi, [ebp - 0x334]
add esp, 0xc
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x405d73
mov ax, word [0x481c6c]
mov esi, ebx
mov word [edi], ax
mov cl, byte [ebx]
inc ebx
test cl, cl
jne 0x405d88
lea edi, [ebp - 0x334]
sub ebx, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x405d98
mov ecx, ebx
lea edx, [ebp - 0x334]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
dec edx
rep movsb byte es:[edi], byte [esi]
mov cl, byte [edx + 1]
lea edx, [edx + 1]
test cl, cl
jne 0x405db5
mov ecx, dword [str.____DEL__]
mov dword [edx], ecx
mov ecx, dword [0x481cc8]
mov dword [edx + 4], ecx
mov cx, word [0x481ccc]
mov word [edx + 8], cx
mov edx, dword [ebp - 0x390]
mov esi, edx
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x405de3
lea edi, [ebp - 0x334]
sub edx, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x405df3
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x334]
dec edi
mov cl, byte [edi + 1]
lea edi, [edi + 1]
test cl, cl
jne 0x405e10
push 0x40
mov word [edi], ax
lea eax, [ebp - 0x378]
push 0
push eax
call fcn.00453200
add esp, 0xc
mov dword [ebp - 0x37c], 0x44
lea eax, [ebp - 0x38c]
mov dword [ebp - 0x350], 0
xorps xmm0, xmm0
mov edi, 1
mov word [ebp - 0x34c], di
push eax
lea eax, [ebp - 0x37c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x334]
push eax
push 0
movdqu xmmword [ebp - 0x38c], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, edi
jne 0x405e9e
push dword [ebp - 0x388]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x38c]
call esi
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004524fc
mov esp, ebp
pop ebp
ret