Function at 0x40ca60
Capabilities:
Create process on windows
Delete file
Get common file path
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x42638b
push eax
mov eax, 0x1214
mov dword fs:[0], esp
call fcn.00411c60
push ebx
push ebp
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x1b], 0x5c
je 0x40cae3
mov edi, 0x42e158
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x120]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x42f390]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x122c], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea edx, [esp + 0x14]
push str.tmp__u.exe
push edx
call fcn.0041e21c
mov edi, dword [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
add esp, 8
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x14]
and ecx, 3
mov dword [esp + 0x1c], esp
rep movsb byte es:[edi], byte [esi]
mov ecx, esp
push eax
call fcn.0041eb47
call fcn.00402a70
add esp, 4
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and al, 0xfe
lea edx, [esp + 0x1c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x1c]
push 0x42e508
push ecx
call fcn.00412307
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40cd23
mov esi, dword [esp + 0x123c]
xor edi, edi
test esi, esi
jbe 0x40cc87
mov ebp, dword [esp + 0x1238]
mov edx, esi
sub edx, edi
cmp edx, 0x1000
jbe 0x40cc3d
mov edx, dword [esp + 0x1234]
push 0x2ee0
lea eax, [esp + 0x18]
push ebp
push eax
lea ecx, [esp + 0x230]
push 0x1000
push ecx
push edx
call fcn.00408b30
add esp, 0x18
test al, al
push ebx
je 0x40cd10
push 0x1000
lea eax, [esp + 0x22c]
push 1
push eax
call fcn.00411dcd
add esp, 0x10
cmp eax, 0x1000
jne 0x40ccf0
add edi, eax
cmp edi, esi
jae 0x40cc87
jmp 0x40cbd6
mov eax, dword [esp + 0x1234]
push 0x2ee0
lea ecx, [esp + 0x18]
sub esi, edi
push ebp
push ecx
lea edx, [esp + 0x230]
push esi
push edx
push eax
call fcn.00408b30
add esp, 0x18
test al, al
push ebx
je 0x40cd00
push esi
lea ecx, [esp + 0x22c]
push 1
push ecx
call fcn.00411dcd
add esp, 0x10
cmp eax, esi
jne 0x40cd0f
push ebx
call fcn.00412259
add esp, 4
lea eax, [esp + 0x120]
lea ecx, [esp + 0x1c]
push 1
push eax
push 0
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x10]
mov dword [esp + 0x122c], 0xffffffff
call fcn.0041edd2
mov al, 1
mov ecx, dword [esp + 0x1224]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1220
ret
push ebx
call fcn.00412259
add esp, 4
lea eax, [esp + 0x1c]
push eax
jmp 0x40cd1d
call fcn.00412259
add esp, 4
lea ecx, [esp + 0x1c]
push ecx
jmp 0x40cd1d
push ebx
call fcn.00412259
add esp, 4
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x10]
mov dword [esp + 0x122c], 0xffffffff
call fcn.0041edd2
xor al, al
jmp 0x40ccd7