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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b1319
mov eax, dword fs:[0]
push eax
sub esp, 0x1d4
mov eax, dword [0x4d8c20]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x30], edi
mov esi, edx
cmp edi, ebx
jne 0x41a2d7
push 0x257
push str.env.cpp
lea esi, [ebp - 0x128]
call fcn.00414f70
mov esi, eax
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x41a2be
lea edi, [esi + 0x10]
cmp edi, ebx
je 0x41a295
lea eax, [esi + 0x20]
jmp 0x41a297
xor eax, eax
push str.ERROR:
push eax
call fcn.00407256
add esp, 8
cmp edi, ebx
je 0x41a2ae
lea eax, [esi + 0x20]
jmp 0x41a2b0
xor eax, eax
push str.application_is_not_specified
push eax
call fcn.00407256
add esp, 8
lea ecx, [ebp - 0x128]
mov dword [ebp - 4], 0xffffffff
call fcn.00415130
xor al, al
jmp 0x41a477
push 0x38
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.0047f860
add esp, 0xc
push edi
mov dword [ebp - 0x70], 0x3c
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], str.open
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], 5
mov dword [ebp - 0x5c], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41a31a
test al, 0x10
je 0x41a38c
push 0x267
push str.env.cpp
lea esi, [ebp - 0x128]
call fcn.00414f70
mov edi, eax
mov dword [ebp - 4], 1
cmp edi, ebx
je 0x41a2be
lea esi, [edi + 0x10]
cmp esi, ebx
je 0x41a348
lea eax, [edi + 0x20]
jmp 0x41a34a
xor eax, eax
push str.ERROR:
push eax
call fcn.00407256
add esp, 8
cmp esi, ebx
je 0x41a361
lea eax, [edi + 0x20]
jmp 0x41a363
xor eax, eax
push str.there_is_no_file_specified:
push eax
call fcn.00407256
add esp, 8
cmp esi, ebx
je 0x41a381
mov ecx, dword [ebp - 0x30]
lea eax, [edi + 0x20]
push ecx
jmp 0x41a2b5
mov ecx, dword [ebp - 0x30]
xor eax, eax
push ecx
jmp 0x41a2b5
lea edx, [ebp - 0x70]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x41a475
lea esi, [ebp - 0x2c]
call fcn.0041ab40
mov dword [ebp - 0x34], eax
push 0x26d
push str.env.cpp
lea esi, [ebp - 0x1e0]
mov dword [ebp - 4], 2
call fcn.00414f70
mov edi, eax
mov byte [ebp - 4], 3
cmp edi, ebx
je 0x41a44c
lea esi, [edi + 0x10]
cmp esi, ebx
je 0x41a3db
lea eax, [edi + 0x20]
jmp 0x41a3dd
xor eax, eax
push str.ERROR:
push eax
call fcn.00407256
add esp, 8
cmp esi, ebx
je 0x41a3f4
lea eax, [edi + 0x20]
jmp 0x41a3f6
xor eax, eax
push str.failed_to_ShellExecuteEx__file_was_found_._error:
push eax
call fcn.00407256
add esp, 8
cmp esi, ebx
je 0x41a40d
lea eax, [edi + 0x20]
jmp 0x41a40f
xor eax, eax
mov ecx, dword [ebp - 0x34]
push eax
call fcn.0040741c
add esp, 4
cmp esi, ebx
je 0x41a424
lea eax, [edi + 0x20]
jmp 0x41a426
xor eax, eax
push 0x4bee58
push eax
call fcn.00407256
add esp, 8
cmp esi, ebx
je 0x41a43d
lea eax, [edi + 0x20]
jmp 0x41a43f
xor eax, eax
mov ecx, dword [ebp - 0x30]
push ecx
push eax
call fcn.00407256
add esp, 8
lea ecx, [ebp - 0x1e0]
mov byte [ebp - 4], 2
call fcn.00415130
cmp dword [ebp - 0x18], 8
jb 0x41a2d0
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00475dcb
add esp, 4
xor al, al
jmp 0x41a477
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004751dc
mov esp, ebp
pop ebp
ret