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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43fdd0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x455440]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
push dword [esi + 0x54]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40e9e9
push dword [esi + 0x54]
push str.File_doesnt_exist__ls
push 0xc
push str.Process::Run
call fcn.004110a0
add esp, 0x10
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
push dword [ebp + 8]
xor ecx, ecx
mov ebx, eax
cmp byte [ebp + 0x10], cl
mov eax, 8
push dword [esi + 0x54]
cmovne ecx, eax
lea eax, [esp + 0x18]
or ebx, ecx
push str.__s___s
push eax
or ebx, 0x1000400
call fcn.00406b20
add esp, 0x10
mov dword [esp + 0x30], 0
mov dword [esp + 0x14], 0
mov byte [esp + 0x30], 1
mov edx, 3
lea ecx, [esp + 0x1c]
call fcn.00401c10
mov byte [esp + 0x30], 2
mov ecx, dword [eax]
call fcn.0040f950
mov dword [esp + 0x18], eax
mov byte [esp + 0x30], 1
mov ecx, dword [esp + 0x20]
dec dword [ecx]
jne 0x40ea95
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x40ea85
mov ecx, edi
call fcn.00406ca0
push edi
call fcn.00422ded
add esp, 4
mov dword [esp + 0x1c], 0
push dword [esp + 0x20]
call fcn.00422ded
mov eax, dword [esp + 0x1c]
add esp, 4
test eax, eax
je 0x40eb2c
push 1
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40ead6
call edi
test eax, eax
jle 0x40eac3
movzx eax, ax
or eax, 0x80070000
push eax
mov edx, 0x19
mov ecx, str.Process::Run
call fcn.00411130
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
cmp dword [eax - 4], 1
jle 0x40eaf8
push dword [eax - 0xc]
lea ecx, [esp + 0x14]
call fcn.004061f0
mov eax, dword [esp + 0x10]
push esi
lea ecx, [esi + 0x10]
push ecx
push 0
push dword [esp + 0x24]
push ebx
push 1
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40eb8c
call edi
test eax, eax
jle 0x40eb25
movzx eax, ax
or eax, 0x80070000
mov edx, 0x25
jmp 0x40eb7a
mov eax, dword [esp + 0x10]
cmp dword [eax - 4], 1
jle 0x40eb46
push dword [eax - 0xc]
lea ecx, [esp + 0x14]
call fcn.004061f0
mov eax, dword [esp + 0x10]
push esi
lea ecx, [esi + 0x10]
push ecx
push 0
push 0
push ebx
push 1
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40eb8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40eb75
movzx eax, ax
or eax, 0x80070000
mov edx, 0x2d
push eax
mov ecx, str.Process::Run
call fcn.00411130
add esp, 4
xor bl, bl
jmp 0x40eb8e
mov bl, 1
mov byte [esp + 0x30], 0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40eba2
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov dword [esp + 0x30], 0xffffffff
or ecx, 0xffffffff
mov esi, dword [esp + 0x10]
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40ebc8
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc