Function at 0x40ce9d
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push 0x26c
mov eax, 0x439c0b
call fcn.0041ea10
push str.InvokeToastMessage...
lea ecx, [ebp - 0x220]
call fcn.004020ed
xor ebx, ebx
lea eax, [ebp - 0x220]
push ebx
push eax
push 2
mov dword [ebp - 4], ebx
call fcn.00403025
mov ecx, dword [ebp - 0x220]
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00401a64
push 0x208
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.0041ff30
mov eax, dword [0x4518bc]
add esp, 0xc
test eax, eax
je 0x40d0e8
push eax
call dword [sym.imp.kernel32.dll_lstrlenW]
test eax, eax
je 0x40d0e8
push dword [0x4518bc]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40cf8a
push dword [0x4518bc]
lea ecx, [ebp - 0x21c]
call fcn.004020ed
xor esi, esi
lea ecx, [ebp - 0x220]
inc esi
push str.file_missing:
mov dword [ebp - 4], esi
call fcn.004020ed
push ebx
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x220]
push eax
push esi
call fcn.00402ada
mov ecx, dword [ebp - 0x220]
add esp, 0x10
lea ecx, [ecx - 0x10]
call fcn.00401a64
mov ecx, dword [ebp - 0x21c]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00401a64
push str.Openwith__
mov esi, 0x104
lea eax, [ebp - 0x218]
push esi
push eax
call main
add esp, 0xc
test eax, eax
jne 0x40d0ba
push dword [0x4518bc]
lea eax, [ebp - 0x218]
push esi
push eax
call main
add esp, 0xc
test eax, eax
jne 0x40d0ba
push 0x43e320
lea eax, [ebp - 0x218]
push esi
push eax
call main
add esp, 0xc
test eax, eax
jne 0x40d0ba
push 0x44
pop esi
push esi
lea eax, [ebp - 0x278]
mov byte [0x4518c0], 1
push ebx
push eax
call fcn.0041ff30
xor eax, eax
mov dword [ebp - 0x278], esi
lea edi, [ebp - 0x234]
stosd dword es:[edi], eax
push 0x10
push ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x234]
push eax
call fcn.0041ff30
add esp, 0x18
push ebx
call dword [sym.imp.kernel32.dll_SetLastError]
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x278]
push eax
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.kernel32.dll_CreateProcessW]
test eax, eax
jne 0x40d08e
push str.CreateProcess_failed:
lea ecx, [ebp - 0x21c]
call fcn.004020ed
mov dword [ebp - 4], 3
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
lea eax, [ebp - 0x21c]
push eax
push 2
call fcn.00403025
mov ecx, dword [ebp - 0x21c]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.00401a64
cmp dword [ebp - 0x234], 0
je 0x40d0a3
push dword [ebp - 0x234]
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp dword [ebp - 0x230], 0
je 0x40d11f
push dword [ebp - 0x230]
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x40d11f
push str.failed_to_create_cmd
lea ecx, [ebp - 0x21c]
call fcn.004020ed
push ebx
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 4
push eax
push 2
call fcn.00403025
mov ecx, dword [ebp - 0x21c]
jmp 0x40d114
push str.empty_gDummyFilePath
lea ecx, [ebp - 0x224]
call fcn.004020ed
push ebx
lea eax, [ebp - 0x224]
mov dword [ebp - 4], 5
push eax
push 2
call fcn.00403025
mov ecx, dword [ebp - 0x224]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.00401a64
call fcn.0041e9ba
ret