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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x390
mov eax, dword [0x4a4300]
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.00452270
add esp, 0xc
mov byte [ebp - 0x74], 0
lea eax, [ebp - 0x73]
push 0x63
push 0
push eax
call fcn.00452270
add esp, 0xc
lea edx, [ebp - 0xdc]
mov ecx, esi
call fcn.004024e0
cmp eax, 1
jne 0x40331e
lea edx, [ebp - 0x74]
mov ecx, ebx
call fcn.004024e0
cmp eax, 1
jne 0x40331e
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0xdc]
push eax
call fcn.004572e3
add esp, 8
test eax, eax
je 0x40331e
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
call edi
test eax, eax
jne 0x40331e
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 3
je 0x40331b
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 0x403353
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push ebx
call edi
cmp eax, 1
jne 0x403353
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 3
je 0x403353
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call edi
test eax, eax
je 0x4034c1
push 0x257
lea eax, [ebp - 0x333]
mov byte [ebp - 0x334], 0
push 0
push eax
call fcn.00452270
lea edi, [ebp - 0x334]
add esp, 0xc
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x403382
mov ax, word [0x482934]
mov esi, ebx
mov word [edi], ax
mov cl, byte [ebx]
inc ebx
test cl, cl
jne 0x403397
lea edi, [ebp - 0x334]
sub ebx, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4033a7
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 0x4033c4
mov ecx, dword [str.____DEL__]
mov dword [edx], ecx
mov ecx, dword [0x482990]
mov dword [edx + 4], ecx
mov cx, word [0x482994]
mov word [edx + 8], cx
mov edx, dword [ebp - 0x390]
mov esi, edx
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x4033f2
lea edi, [ebp - 0x334]
sub edx, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403402
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
nop
mov cl, byte [edi + 1]
lea edi, [edi + 1]
test cl, cl
jne 0x403420
push 0x40
mov word [edi], ax
lea eax, [ebp - 0x378]
push 0
push eax
call fcn.00452270
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 0x4034ae
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.00451570
mov esp, ebp
pop ebp
ret
push 0x482958
call fcn.004027e0
add esp, 4
call fcn.00401440
int3