Function at 0x406080
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 0x534df1
mov eax, dword fs:[0]
push eax
sub esp, 0x754
mov eax, dword [0x5a6a30]
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 - 0x6fc]
mov dword [ebp - 0x70c], esi
call fcn.00429620
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x704], ebx
call fcn.0042aa6c
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4060e6
push 0x80004005
call fcn.004010e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x700], edi
push str.CCncidrvApp::Win64PathThrough_Win64PathThrough___________________________IN._n
push 5
mov byte [ebp - 4], 1
mov dword [ebp - 0x708], ebx
call fcn.00403750
add esp, 8
cmp dword [ebp - 0x64c], ebx
je 0x4063e6
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.0051e95e
lea eax, [ebp - 0x18]
add esp, 0x24
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x406150
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x700]
call fcn.00401bc0
lea eax, [ebp - 0x428]
lea edx, [eax + 2]
jmp 0x406180
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x406180
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x700]
call fcn.004049b0
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
jmp 0x4061b0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4061b0
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x700]
call fcn.004049b0
cmp dword [ebp - 0x63c], ebx
je 0x4061ee
push 8
push str..x64.EXE
lea ecx, [ebp - 0x700]
call fcn.004049b0
jmp 0x406206
cmp dword [ebp - 0x638], ebx
je 0x406206
push str..IA64.EXE
lea ecx, [ebp - 0x700]
call fcn.00405650
mov edi, dword [ebp - 0x700]
mov ecx, dword [edi - 8]
mov eax, 1
sub eax, dword [edi - 4]
or ecx, eax
jge 0x40622d
push ebx
lea ecx, [ebp - 0x700]
call fcn.004015a0
mov edi, dword [ebp - 0x700]
push edi
push str.CCncidrvApp::Win64PathThrough_strWin64Exe____1_s___n
push 4
call fcn.00403750
mov ecx, dword [edi - 8]
mov eax, 1
sub eax, dword [edi - 4]
add esp, 0xc
or ecx, eax
jge 0x40625e
push ebx
lea ecx, [ebp - 0x700]
call fcn.004015a0
mov edi, dword [ebp - 0x700]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4063e6
call fcn.0042aa6c
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x406288
push 0x80004005
call fcn.004010e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x704], eax
lea ecx, [ebp - 0x700]
push ecx
lea ecx, [ebp - 0x704]
mov byte [ebp - 4], 2
call fcn.00404a70
push 1
push 0x5453c8
lea ecx, [ebp - 0x704]
call fcn.004049b0
call fcn.0042cb3b
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x48]
cmp ecx, ebx
jne 0x4062d5
xor eax, eax
jmp 0x4062ef
mov eax, ecx
lea esi, [eax + 2]
lea ebx, [ebx]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x4062e0
sub eax, esi
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x704]
call fcn.004049b0
mov esi, dword [ebp - 0x704]
push esi
push str.CCncidrvApp::Win64PathThrough_strCmdLine____1_s___n
push 4
call fcn.00403750
push 0x44
lea edx, [ebp - 0x760]
push ebx
push edx
call fcn.0051eb70
mov dword [ebp - 0x760], 0x44
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
dec eax
add esp, 0x18
or eax, ecx
jge 0x40634e
push 1
lea ecx, [ebp - 0x704]
call fcn.004015a0
mov esi, dword [ebp - 0x704]
lea eax, [ebp - 0x71c]
push eax
lea ecx, [ebp - 0x760]
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 0x4063aa
mov edx, dword [ebp - 0x718]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call ebx
mov eax, dword [ebp - 0x71c]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x71c]
lea ecx, [ebp - 0x708]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x71c]
push eax
call ebx
mov ecx, dword [ebp - 0x708]
mov edx, dword [ebp - 0x70c]
mov dword [edx + 0x120], ecx
lea eax, [esi - 0x10]
mov dword [ebp - 0x704], 1
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4063e6
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.00403750
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 0x406415
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x6fc]
mov dword [ebp - 4], 0xffffffff
call fcn.00429500
mov eax, dword [ebp - 0x704]
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.0051e701
mov esp, ebp
pop ebp
ret