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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a005
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x44ec90]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.InvokeToastMessage...
lea ecx, [ebp - 0x278]
call main
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 0x278]
push eax
push 2
call main
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x278]
call main
xor ecx, ecx
mov word [ebp - 0x21c], cx
push 0x206
push 0
lea edx, [ebp - 0x21a]
push edx
call fcn.004148c0
add esp, 0xc
cmp dword [0x452ca0], 0
je 0x42cd06
mov eax, dword [0x452ca0]
push eax
call dword [sym.imp.kernel32.dll_lstrlenW]
test eax, eax
je 0x42cd06
mov ecx, dword [0x452ca0]
push ecx
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42cb61
mov edx, dword [0x452ca0]
push edx
lea ecx, [ebp - 0x27c]
call main
mov dword [ebp - 4], 1
push str.file_missing:
lea ecx, [ebp - 0x280]
call main
mov byte [ebp - 4], 2
push 0
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x280]
push ecx
push 1
call main
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x280]
call main
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x27c]
call main
push str.Openwith__
push 0x104
lea edx, [ebp - 0x21c]
push edx
call main
add esp, 0xc
test eax, eax
jne 0x42ccc8
mov eax, dword [0x452ca0]
push eax
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
call main
add esp, 0xc
test eax, eax
jne 0x42ccc8
push 0x441b34
push 0x104
lea edx, [ebp - 0x21c]
push edx
call main
add esp, 0xc
test eax, eax
jne 0x42ccc8
mov byte [0x452ca4], 1
mov dword [ebp - 0x274], 0
push 0x40
push 0
lea eax, [ebp - 0x270]
push eax
call fcn.004148c0
add esp, 0xc
mov dword [ebp - 0x22c], 0
xor ecx, ecx
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x274], 0x44
push 0x10
push 0
lea edx, [ebp - 0x22c]
push edx
call fcn.004148c0
add esp, 0xc
push 0
call dword [sym.imp.kernel32.dll_SetLastError]
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x274]
push ecx
push 0
push 0
push 0x20
push 0
push 0
push 0
lea edx, [ebp - 0x21c]
push edx
push 0
call dword [sym.imp.kernel32.dll_CreateProcessW]
test eax, eax
jne 0x42cc9a
push 0x441b38
lea ecx, [ebp - 0x284]
call main
mov dword [ebp - 4], 3
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
lea eax, [ebp - 0x284]
push eax
push 2
call main
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x284]
call main
cmp dword [ebp - 0x22c], 0
je 0x42ccb0
mov ecx, dword [ebp - 0x22c]
push ecx
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp dword [ebp - 0x228], 0
je 0x42ccc6
mov edx, dword [ebp - 0x228]
push edx
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x42cd04
push str.failed_to_create_cmd
lea ecx, [ebp - 0x288]
call main
mov dword [ebp - 4], 4
push 0
lea eax, [ebp - 0x288]
push eax
push 2
call main
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x288]
call main
jmp 0x42cd42
push str.empty_gDummyFilePath
lea ecx, [ebp - 0x28c]
call main
mov dword [ebp - 4], 5
push 0
lea ecx, [ebp - 0x28c]
push ecx
push 2
call main
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28c]
call main
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00414838
mov esp, ebp
pop ebp
ret