Function at 0x100aa2d0
Capabilities:
Create pipe
Create two anonymous pipes
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x548], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x20]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x34], edx
call fcn.100a99c0
mov eax, dword [esi]
mov ecx, dword [esp + 0xc]
push eax
push ecx
lea ecx, [esp + 0x248]
call fcn.100aa9a0
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x100aa34d
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x548]
xor ecx, esp
call fcn.100b30c8
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x9c]
mov dword [esp + 0x20], 1
mov dword [esp + 0x90], edx
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0xc8
mov byte [esp + 0x9c], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x44
mov esi, eax
lea eax, [esp + 0x3c]
push 0
push eax
call sub.MSVCR90.dll_memset
or edx, 0xffffffff
add esp, 0xc
mov dword [esp + 0x38], 0x44
mov dword [esp + 0x64], 0x100
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], edx
mov dword [esp + 0x24], 0xc
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 1
mov eax, edx
test edi, edi
je 0x100aa3df
cmp dword [edi], 3
jne 0x100aa3df
mov eax, dword [edi + 4]
mov edi, edx
test ebx, ebx
je 0x100aa3ed
cmp dword [ebx], 3
jne 0x100aa3ed
mov edi, dword [ebx + 4]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], edx
test ecx, ecx
je 0x100aa405
cmp dword [ecx], 3
jne 0x100aa405
mov ecx, dword [ecx + 4]
mov dword [esp + 0x1c], ecx
mov ebx, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
lea ecx, [esp + 0x70]
cmp eax, edx
jne 0x100aa437
push 0
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x100aa443
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100aa443
push 2
push 1
push 0
push ecx
push esi
push eax
push esi
call ebx
cmp dword [esp + 0x70], 0xffffffff
jne 0x100aa47d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.tcl85.dll_TclWinConvertError
mov esi, dword [esp + 0x10]
add esp, 4
push 0
push ecx
push esi
call sym.tcl85.dll_Tcl_PosixError
add esp, 8
push eax
push str.couldnt_duplicate_input_handle:
push esi
call sym.tcl85.dll_Tcl_AppendResult
add esp, 0x10
jmp 0x100aa8c9
cmp edi, 0xffffffff
jne 0x100aa4e3
mov eax, 1
cmp dword [0x100d43b8], eax
jne 0x100aa4bd
cmp dword [esp + 0x10], eax
jne 0x100aa4bd
push 0
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x100aa4f6
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100aa4f6
push 0
push 0x80
push 4
lea eax, [esp + 0x30]
push eax
push 0
push 0x40000000
push str.NUL:
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x74], eax
jmp 0x100aa4f6
push 2
push 1
push 0
lea ecx, [esp + 0x80]
push ecx
push esi
push edi
push esi
call ebx
or edi, 0xffffffff
cmp dword [esp + 0x74], edi
jne 0x100aa532
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.tcl85.dll_TclWinConvertError
mov esi, dword [esp + 0x10]
add esp, 4
push 0
push ecx
push esi
call sym.tcl85.dll_Tcl_PosixError
add esp, 8
push eax
push str.couldnt_duplicate_output_handle:
push esi
call sym.tcl85.dll_Tcl_AppendResult
add esp, 0x10
jmp 0x100aa8c9
mov eax, dword [esp + 0x1c]
cmp eax, edi
jne 0x100aa560
push 0
push 0x80
push 3
lea edx, [esp + 0x30]
push edx
push 0
push 0x40000000
push str.NUL:
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x78], eax
jmp 0x100aa573
push 2
push 1
push 0
lea ecx, [esp + 0x84]
push ecx
push esi
push eax
push esi
call ebx
cmp dword [esp + 0x78], edi
jne 0x100aa5ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.tcl85.dll_TclWinConvertError
mov esi, dword [esp + 0x10]
add esp, 4
push 0
push ecx
push esi
call sym.tcl85.dll_Tcl_PosixError
add esp, 8
push eax
push str.couldnt_duplicate_error_handle:
push esi
call sym.tcl85.dll_Tcl_AppendResult
add esp, 0x10
jmp 0x100aa8c9
cmp dword [0x100d43b8], 2
jne 0x100aa604
call fcn.100aa960
test eax, eax
je 0x100aa5c5
xor ebx, ebx
jmp 0x100aa7de
mov eax, 1
cmp dword [esp + 0x10], eax
jne 0x100aa5fa
or dword [esp + 0x64], eax
push 0xffffffffffffffff
lea ebx, [eax + 0xf]
lea eax, [esp + 0x94]
xor edx, edx
push str.cmd.exe__c
push eax
mov word [esp + 0x74], dx
call sym.tcl85.dll_Tcl_DStringAppend
add esp, 0xc
jmp 0x100aa7de
mov ebx, 8
jmp 0x100aa7de
call fcn.100aa960
mov ebx, eax
neg ebx
sbb ebx, ebx
and ebx, 0xfffffff8
mov eax, 1
add ebx, 8
cmp dword [esp + 0x10], eax
jne 0x100aa7de
test ebx, ebx
je 0x100aa636
xor ecx, ecx
or dword [esp + 0x64], eax
mov word [esp + 0x68], cx
lea ebx, [eax + 0xf]
push 0xffffffffffffffff
lea eax, [esp + 0x16c]
lea edx, [esp + 0x178]
push str.tclpip85.dll
push eax
mov dword [esp + 0x174], edx
mov dword [esp + 0x178], 0
mov dword [esp + 0x17c], 0xc8
mov byte [esp + 0x180], 0
call sym.tcl85.dll_Tcl_DStringAppend
add esp, 0xc
mov edi, 0x100d4630
call fcn.10099b10
lea ecx, [esp + 0x18]
mov esi, eax
inc dword [esi]
push ecx
push esi
call sym.tcl85.dll_Tcl_GetStringFromObj
mov edx, dword [esp + 0x20]
lea ecx, [edx + eax - 1]
add esp, 8
cmp ecx, eax
jbe 0x100aa6ab
cmp byte [ecx], 0x2f
je 0x100aa6ef
dec ecx
cmp ecx, eax
ja 0x100aa6a1
cmp byte [ecx], 0x2f
je 0x100aa6ef
push 0
push 0x100bd5d4
push eax
mov eax, dword [esp + 0x18]
push str.no___in_executable_path_name__
push eax
call sym.tcl85.dll_Tcl_AppendResult
dec dword [esi]
add esp, 0x14
cmp dword [esi], 0
jg 0x100aa6da
push esi
call sym.tcl85.dll_TclFreeObj
add esp, 4
lea ecx, [esp + 0x168]
push ecx
call sym.tcl85.dll_Tcl_DStringFree
add esp, 4
jmp 0x100aa8c9
sub ecx, eax
inc ecx
push ecx
push eax
call sym.tcl85.dll_Tcl_NewStringObj
mov edx, dword [esp + 0x170]
push 0
push accept
push 0xffffffffffffffff
mov edi, eax
push edx
push edi
call sym.tcl85.dll_Tcl_AppendLimitedToObj
mov eax, dword [esp + 0x28]
inc dword [edi]
add esp, 0x1c
push edi
push eax
call sym.tcl85.dll_Tcl_FSConvertToPathType
add esp, 8
test eax, eax
je 0x100aa736
push str.Tcl_FSConvertToPathType_failed
call sym.tcl85.dll_Tcl_Panic
add esp, 4
push 0
push edi
call sym.tcl85.dll_Tcl_FSAccess
mov ecx, dword [esp + 0x170]
add esp, 8
test eax, eax
je 0x100aa79b
mov edx, dword [esp + 0xc]
push 0
push str.__not_found
push ecx
push str.Tcl_pipe_dll__
push edx
call sym.tcl85.dll_Tcl_AppendResult
dec dword [esi]
add esp, 0x14
cmp dword [esi], 0
jg 0x100aa776
push esi
call sym.tcl85.dll_TclFreeObj
add esp, 4
dec dword [edi]
cmp dword [edi], 0
jg 0x100aa786
push edi
call sym.tcl85.dll_TclFreeObj
add esp, 4
lea eax, [esp + 0x168]
push eax
call sym.tcl85.dll_Tcl_DStringFree
add esp, 4
jmp 0x100aa8c9
push 0xffffffffffffffff
push ecx
lea edx, [esp + 0x98]
push edx
call sym.tcl85.dll_Tcl_DStringAppend
dec dword [esi]
add esp, 0xc
cmp dword [esi], 0
jg 0x100aa7be
push esi
call sym.tcl85.dll_TclFreeObj
add esp, 4
dec dword [edi]
cmp dword [edi], 0
jg 0x100aa7ce
push edi
call sym.tcl85.dll_TclFreeObj
add esp, 4
lea eax, [esp + 0x168]
push eax
call sym.tcl85.dll_Tcl_DStringFree
add esp, 4
mov ecx, dword [ebp + 0xc]
mov edi, dword [esp + 0x30]
push ecx
lea edx, [esp + 0x244]
push edx
lea edx, [esp + 0x98]
mov ecx, edi
call fcn.100aadd0
mov edx, dword [esp + 0x98]
add esp, 8
lea eax, [esp + 0x80]
push eax
mov eax, dword [0x100d4af8]
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [eax + 0x18]
push 0
push 0
push ebx
push 1
push 0
push 0
push edx
push 0
call ecx
test eax, eax
jne 0x100aa867
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.tcl85.dll_TclWinConvertError
mov esi, dword [esp + 0x10]
add esp, 4
push 0
push ecx
push esi
call sym.tcl85.dll_Tcl_PosixError
mov edx, dword [edi]
add esp, 8
push eax
push 0x100be318
push edx
push str.couldnt_execute__
push esi
call sym.tcl85.dll_Tcl_AppendResult
add esp, 0x18
jmp 0x100aa8c9
cmp dword [esp + 0x10], 1
jne 0x100aa87e
mov eax, dword [esp + 0x80]
push 0x32
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x80]
push 0x1388
push ecx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov edx, dword [esp + 0x84]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x34]
mov dword [ecx], eax
test eax, eax
je 0x100aa8c1
mov edx, dword [esp + 0x88]
push edx
push eax
call sym.tcl85.dll_TclWinAddProcess
add esp, 8
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x90]
lea ecx, [esp + 0x9c]
cmp eax, ecx
je 0x100aa8e5
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov eax, dword [esp + 0x70]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x9c]
mov dword [esp + 0x90], edx
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0xc8
mov byte [esp + 0x9c], 0
cmp eax, 0xffffffff
je 0x100aa923
push eax
call esi
mov eax, dword [esp + 0x74]
cmp eax, 0xffffffff
je 0x100aa92f
push eax
call esi
mov eax, dword [esp + 0x78]
cmp eax, 0xffffffff
je 0x100aa93b
push eax
call esi
mov ecx, dword [esp + 0x554]
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100b30c8
mov esp, ebp
pop ebp
ret