Function at 0x4064f0
Capabilities:
Check if file exists
Create a process with modified i/o handles and window
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x555fe1
mov eax, dword fs:[0]
push eax
sub esp, 0x734
mov eax, dword [0x5d7b20]
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 esi, ecx
lea ecx, [ebp - 0x6dc]
mov dword [ebp - 0x6ec], esi
call fcn.004489d0
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x6e4], ebx
call fcn.0044c104
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x406556
push 0x80004005
call fcn.00403e70
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x6e0], edi
push str.CCncidrvApp::Win64PathThrough_Win64PathThrough___________________________IN._n
push 5
mov byte [ebp - 4], 1
mov dword [ebp - 0x6e8], ebx
call fcn.00403ab0
add esp, 8
cmp dword [ebp - 0x64c], ebx
je 0x406856
push ebx
push ebx
push 0x101
lea ecx, [ebp - 0x21c]
push ecx
mov ecx, dword [esi + 0x68]
push 0x105
lea edx, [ebp - 0x428]
push edx
push 4
lea eax, [ebp - 0x18]
push eax
push ecx
call fcn.0053e704
lea eax, [ebp - 0x18]
add esp, 0x24
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4065c0
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x6e0]
call fcn.00404df0
lea eax, [ebp - 0x428]
lea edx, [eax + 2]
jmp 0x4065f0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4065f0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x6e0]
call fcn.00405330
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
jmp 0x406620
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x406620
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x6e0]
call fcn.00405330
cmp dword [ebp - 0x63c], ebx
je 0x40665e
push 8
push str..x64.EXE
lea ecx, [ebp - 0x6e0]
call fcn.00405330
jmp 0x406676
cmp dword [ebp - 0x638], ebx
je 0x406676
push str..IA64.EXE
lea ecx, [ebp - 0x6e0]
call fcn.004062b0
mov edi, dword [ebp - 0x6e0]
mov ecx, dword [edi - 8]
mov eax, 1
sub eax, dword [edi - 4]
or ecx, eax
jge 0x40669d
push ebx
lea ecx, [ebp - 0x6e0]
call fcn.004045b0
mov edi, dword [ebp - 0x6e0]
push edi
push str.CCncidrvApp::Win64PathThrough_strWin64Exe____1_s___n
push 4
call fcn.00403ab0
mov ecx, dword [edi - 8]
mov eax, 1
sub eax, dword [edi - 4]
add esp, 0xc
or ecx, eax
jge 0x4066ce
push ebx
lea ecx, [ebp - 0x6e0]
call fcn.004045b0
mov edi, dword [ebp - 0x6e0]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x406856
call fcn.0044c104
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4066f8
push 0x80004005
call fcn.00403e70
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x6e4], eax
lea ecx, [ebp - 0x6e0]
push ecx
lea ecx, [ebp - 0x6e4]
mov byte [ebp - 4], 2
call fcn.00405460
push 1
push 0x568c68
lea ecx, [ebp - 0x6e4]
call fcn.00405330
call fcn.0044bf0f
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x48]
cmp ecx, ebx
jne 0x406745
xor eax, eax
jmp 0x40675f
mov eax, ecx
lea esi, [eax + 2]
lea ebx, [ebx]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x406750
sub eax, esi
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x6e4]
call fcn.00405330
mov esi, dword [ebp - 0x6e4]
push esi
push str.CCncidrvApp::Win64PathThrough_strCmdLine____1_s___n
push 4
call fcn.00403ab0
push 0x44
lea edx, [ebp - 0x740]
push ebx
push edx
call fcn.0053e550
mov dword [ebp - 0x740], 0x44
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
dec eax
add esp, 0x18
or eax, ecx
jge 0x4067be
push 1
lea ecx, [ebp - 0x6e4]
call fcn.004045b0
mov esi, dword [ebp - 0x6e4]
lea eax, [ebp - 0x6fc]
push eax
lea ecx, [ebp - 0x740]
push ecx
push ebx
push ebx
push 0x20
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40681a
mov edx, dword [ebp - 0x6f8]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call ebx
mov eax, dword [ebp - 0x6fc]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x6fc]
lea ecx, [ebp - 0x6e8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x6fc]
push eax
call ebx
mov ecx, dword [ebp - 0x6e8]
mov edx, dword [ebp - 0x6ec]
mov dword [edx + 0xf8], ecx
lea eax, [esi - 0x10]
mov dword [ebp - 0x6e4], 1
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406856
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.CCncidrvApp::Win64PathThrough_Win64PathThrough___________________________OUT._n
push 5
call fcn.00403ab0
lea eax, [edi - 0x10]
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406885
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x6dc]
mov dword [ebp - 4], 0xffffffff
call fcn.004488b0
mov eax, dword [ebp - 0x6e4]
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.0053e1ad
mov esp, ebp
pop ebp
ret