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

Disassembly:
push 0x26c
mov eax, 0x43a1fc
call fcn.0041ef30
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.00403241
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.00420450
mov eax, dword [0x4518a8]
add esp, 0xc
test eax, eax
je 0x40d5f8
push eax
call dword [sym.imp.kernel32.dll_lstrlenW]
test eax, eax
je 0x40d5f8
push dword [0x4518a8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40d49a
push dword [0x4518a8]
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.00402aff
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 0x40d5ca
push dword [0x4518a8]
lea eax, [ebp - 0x218]
push esi
push eax
call main
add esp, 0xc
test eax, eax
jne 0x40d5ca
push 0x43e438
lea eax, [ebp - 0x218]
push esi
push eax
call main
add esp, 0xc
test eax, eax
jne 0x40d5ca
push 0x44
pop esi
push esi
lea eax, [ebp - 0x278]
mov byte [0x4518ac], 1
push ebx
push eax
call fcn.00420450
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.00420450
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 0x40d59e
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.00403241
mov ecx, dword [ebp - 0x21c]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.00401a64
cmp dword [ebp - 0x234], 0
je 0x40d5b3
push dword [ebp - 0x234]
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp dword [ebp - 0x230], 0
je 0x40d62f
push dword [ebp - 0x230]
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x40d62f
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.00403241
mov ecx, dword [ebp - 0x21c]
jmp 0x40d624
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.00403241
mov ecx, dword [ebp - 0x224]
add esp, 0xc
lea ecx, [ecx - 0x10]
call fcn.00401a64
call fcn.0041eeda
ret