Function at 0x41a0f0
Capabilities:
Check if file exists
Create a process with modified i/o handles and window
Create process on windows
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x890
mov eax, dword [0x5035d0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test esi, esi
jne 0x41a122
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a1365
mov esp, ebp
pop ebp
ret 4
push 0x412
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.004a4df0
lea eax, [edi + 0xac]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x41a146
mov eax, dword [eax]
push eax
push esi
push str.__s___s
push 0xffffffffffffffff
lea eax, [ebp - 0x830]
push 0x208
push eax
call fcn.00407510
xorps xmm0, xmm0
mov dword [ebp - 0x874], 0x44
xor eax, eax
movlpd qword [ebp - 0x870], xmm0
add esp, 0x18
movlpd qword [ebp - 0x868], xmm0
cmp dword [edi + 0x14], 1
movlpd qword [ebp - 0x860], xmm0
movlpd qword [ebp - 0x858], xmm0
movlpd qword [ebp - 0x850], xmm0
movlpd qword [ebp - 0x842], xmm0
movlpd qword [ebp - 0x83a], xmm0
mov word [ebp - 0x832], ax
mov dword [ebp - 0x848], 0x101
jne 0x41a1c8
mov eax, 1
jmp 0x41a1ca
xor eax, eax
push ebx
mov word [ebp - 0x844], ax
lea eax, [ebp - 0x88c]
push eax
lea eax, [ebp - 0x874]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x830]
push eax
push 0
movups xmmword [ebp - 0x88c], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
mov dword [ebp - 0x890], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x41a2df
push 0x13880
push dword [ebp - 0x88c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x888]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x88c]
call esi
cmp dword [edi + 0xdc], 0
mov eax, 1
je 0x41a2ca
cmp dword [edi + 0xf4], 0
je 0x41a2ca
cmp dword [edi + 0x10c], 0
je 0x41a2ca
cmp dword [edi + 0x110], 8
lea esi, [edi + 0xfc]
mov eax, esi
jb 0x41a272
mov eax, dword [esi]
cmp dword [edi + 0xf8], 8
lea ebx, [edi + 0xe4]
mov ecx, ebx
jb 0x41a285
mov ecx, dword [ebx]
push 0
push 0
push eax
push ecx
push dword [edi + 0xe0]
call fcn.00407950
add esp, 0x14
test eax, eax
jne 0x41a2c5
cmp dword [esi + 0x14], 8
jb 0x41a2a5
mov esi, dword [esi]
cmp dword [ebx + 0x14], 8
jb 0x41a2ad
mov ebx, dword [ebx]
push 0
push 0x40
push esi
push ebx
push dword [edi + 0xe0]
call fcn.00407950
add esp, 0x14
test eax, eax
je 0x41a2ca
mov eax, 1
cmp dword [edi + 0x10], 0
mov dword [edi + 0x118], eax
je 0x41a2e5
mov ecx, edi
call fcn.0041a430
jmp 0x41a2e5
mov dword [edi + 0x11c], eax
cmp dword [edi + 0x18], 0
je 0x41a414
cmp dword [edi + 0x2c], 0
je 0x41a414
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.004a4df0
mov ebx, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [ebp - 0x878]
add esp, 0xc
mov dword [ebp - 0x878], 0
push eax
push 0x10
push 0
call ebx
test eax, eax
jne 0x41a354
mov eax, dword [ebp - 0x878]
test eax, eax
je 0x41a354
lea ecx, [ebp - 0x210]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push dword [ebp - 0x878]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
add edi, 0x1c
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x41a361
mov eax, dword [edi]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x41a38f
lea eax, [ebp - 0x210]
push eax
call esi
push 0x20a
lea eax, [ebp - 0x41c]
push 0
push eax
call fcn.004a4df0
add esp, 0xc
mov dword [ebp - 0x87c], 0
lea eax, [ebp - 0x87c]
push eax
push 0x19
push 0
call ebx
test eax, eax
jne 0x41a3e4
mov eax, dword [ebp - 0x87c]
test eax, eax
je 0x41a3e4
lea ecx, [ebp - 0x41c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push dword [ebp - 0x87c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
cmp dword [edi + 0x14], 8
jb 0x41a3ec
mov edi, dword [edi]
push edi
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41a414
lea eax, [ebp - 0x41c]
push eax
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x890]
xor ecx, ebp
pop ebx
pop edi
pop esi
call fcn.004a1365
mov esp, ebp
pop ebp
ret 4