Function at 0x4030a0
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 [0x4a2300]
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.00451650
add esp, 0xc
mov byte [ebp - 0x74], 0
lea eax, [ebp - 0x73]
push 0x63
push 0
push eax
call fcn.00451650
add esp, 0xc
lea edx, [ebp - 0xdc]
mov ecx, esi
call fcn.00402460
cmp eax, 1
jne 0x40314e
lea edx, [ebp - 0x74]
mov ecx, ebx
call fcn.00402460
cmp eax, 1
jne 0x40314e
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0xdc]
push eax
call fcn.00456643
add esp, 8
test eax, eax
je 0x40314e
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
call edi
test eax, eax
jne 0x40314e
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 3
je 0x40314b
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 0x403183
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push ebx
call edi
cmp eax, 1
jne 0x403183
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 3
je 0x403183
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call edi
test eax, eax
jne 0x40319f
push 0x480918
call fcn.00402630
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.00451650
lea edi, [ebp - 0x334]
add esp, 0xc
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x4031c3
mov ax, word [0x4808f4]
mov esi, ebx
mov word [edi], ax
mov cl, byte [ebx]
inc ebx
test cl, cl
jne 0x4031d8
lea edi, [ebp - 0x334]
sub ebx, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4031e8
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 0x403205
mov ecx, dword [str.____DEL__]
mov dword [edx], ecx
mov ecx, dword [0x480950]
mov dword [edx + 4], ecx
mov cx, word [0x480954]
mov word [edx + 8], cx
mov edx, dword [ebp - 0x390]
mov esi, edx
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x403233
lea edi, [ebp - 0x334]
sub edx, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403243
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 0x403260
push 0x40
mov word [edi], ax
lea eax, [ebp - 0x378]
push 0
push eax
call fcn.00451650
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 0x4032ee
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.0045094b
mov esp, ebp
pop ebp
ret