Function at 0x401440
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403080
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xc0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ax, word [0x4043d4]
xorps xmm0, xmm0
mov word [ebp - 0x18], ax
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0xa0]
movlpd qword [ebp - 0x9c], xmm0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
movlpd qword [ebp - 0x94], xmm0
lea eax, [ebp - 0x28]
movlpd qword [ebp - 0x8c], xmm0
movlpd qword [ebp - 0x84], xmm0
movlpd qword [ebp - 0x7c], xmm0
movlpd qword [ebp - 0x74], xmm0
movlpd qword [ebp - 0x6c], xmm0
movlpd qword [ebp - 0x64], xmm0
movups xmmword [ebp - 0xb0], xmm0
push eax
movups xmm0, xmmword [str.t6sp.exe]
push 0
mov dword [ebp - 0xa0], 0x44
movups xmmword [ebp - 0x28], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40172d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40157d
push str.Failed_to_find_file__t6sp.exe_
lea ecx, [ebp - 0x58]
call fcn.00401b20
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
push 0
cmovae eax, dword [ebp - 0x58]
push str.Error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 0x44]
cmp ecx, 8
jb 0x401726
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40171c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40171c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov edx, eax
lea ecx, [ebp - 0xcc]
call fcn.00401c40
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0xb8]
mov eax, edx
mov ecx, dword [ebp - 0xbc]
sub eax, ecx
cmp eax, 0x2f
jb 0x401635
cmp edx, 8
lea edi, [ebp - 0xcc]
lea eax, [ecx + 0x2f]
cmovae edi, dword [ebp - 0xcc]
mov dword [ebp - 0xbc], eax
cmp edi, 0x404476
jae 0x4015ed
lea eax, [edi + ecx*2]
cmp eax, str.Failed_to_create_t6sp.exe_process._Error_Code:
jb 0x4015ed
cmp edi, str.Failed_to_create_t6sp.exe_process._Error_Code:
ja 0x4015e1
xor esi, esi
jmp 0x4015f2
mov esi, edi
sub esi, str.Failed_to_create_t6sp.exe_process._Error_Code:
sar esi, 1
jmp 0x4015f2
mov esi, 0x2f
lea eax, [ecx*2 + 2]
push eax
lea eax, [edi + 0x5e]
push edi
push eax
call sub.VCRUNTIME140.dll_memmove
add esi, esi
push esi
push str.Failed_to_create_t6sp.exe_process._Error_Code:
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, 0x5e
sub eax, esi
push eax
lea eax, [esi + 0x404476]
push eax
lea eax, [esi + edi]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0x24
lea eax, [ebp - 0xcc]
jmp 0x401654
push 0x2f
sub esp, 8
mov byte [ebp - 0xb4], 0
lea ecx, [ebp - 0xcc]
push dword [ebp - 0xb4]
push 0x2f
call fcn.00401f20
mov dword [ebp - 0x30], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov ecx, dword [ebp - 0xb8]
cmp ecx, 8
jb 0x4016cf
mov edx, dword [ebp - 0xcc]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4016c5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4016c5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00402122
add esp, 8
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push 0
cmovae eax, dword [ebp - 0x40]
push str.Error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x401726
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40171c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40171c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00402122
add esp, 8
mov eax, 1
jmp 0x401756
push 0xbb8
push dword [ebp - 0xb0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0xb0]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xac]
call esi
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004020e4
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret