Function at 0x100a8d20
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.100a8410
mov eax, dword [esi]
mov ecx, dword [esp + 0xc]
push eax
push ecx
lea ecx, [esp + 0x248]
call fcn.100a93f0
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x100a8d9d
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x548]
xor ecx, esp
call fcn.100b1b48
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], pe_nt_image_headers32
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 0x100a8e2f
cmp dword [edi], 3
jne 0x100a8e2f
mov eax, dword [edi + 4]
mov edi, edx
test ebx, ebx
je 0x100a8e3d
cmp dword [ebx], 3
jne 0x100a8e3d
mov edi, dword [ebx + 4]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], edx
test ecx, ecx
je 0x100a8e55
cmp dword [ecx], 3
jne 0x100a8e55
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 0x100a8e87
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 0x100a8e93
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100a8e93
push 2
push 1
push 0
push ecx
push esi
push eax
push esi
call ebx
cmp dword [esp + 0x70], 0xffffffff
jne 0x100a8ecd
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 0x100a9319
cmp edi, 0xffffffff
jne 0x100a8f33
mov eax, 1
cmp dword [0x100d3448], eax
jne 0x100a8f0d
cmp dword [esp + 0x10], eax
jne 0x100a8f0d
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 0x100a8f46
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100a8f46
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 0x100a8f46
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 0x100a8f82
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 0x100a9319
mov eax, dword [esp + 0x1c]
cmp eax, edi
jne 0x100a8fb0
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 0x100a8fc3
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 0x100a8ffc
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 0x100a9319
cmp dword [0x100d3448], 2
jne 0x100a9054
call fcn.100a93b0
test eax, eax
je 0x100a9015
xor ebx, ebx
jmp 0x100a922e
mov eax, 1
cmp dword [esp + 0x10], eax
jne 0x100a904a
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 0x100a922e
mov ebx, 8
jmp 0x100a922e
call fcn.100a93b0
mov ebx, eax
neg ebx
sbb ebx, ebx
and ebx, 0xfffffff8
mov eax, 1
add ebx, 8
cmp dword [esp + 0x10], eax
jne 0x100a922e
test ebx, ebx
je 0x100a9086
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, 0x100d35ac
call fcn.10098a20
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 0x100a90fb
cmp byte [ecx], 0x2f
je 0x100a913f
dec ecx
cmp ecx, eax
ja 0x100a90f1
cmp byte [ecx], 0x2f
je 0x100a913f
push 0
push 0x100bc30c
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 0x100a912a
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 0x100a9319
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 0x100a9186
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 0x100a91eb
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 0x100a91c6
push esi
call sym.tcl85.dll_TclFreeObj
add esp, 4
dec dword [edi]
cmp dword [edi], 0
jg 0x100a91d6
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 0x100a9319
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 0x100a920e
push esi
call sym.tcl85.dll_TclFreeObj
add esp, 4
dec dword [edi]
cmp dword [edi], 0
jg 0x100a921e
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.100a9820
mov edx, dword [esp + 0x98]
add esp, 8
lea eax, [esp + 0x80]
push eax
mov eax, dword [0x100d3a70]
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 0x100a92b7
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 0x100bcfd0
push edx
push str.couldnt_execute__
push esi
call sym.tcl85.dll_Tcl_AppendResult
add esp, 0x18
jmp 0x100a9319
cmp dword [esp + 0x10], 1
jne 0x100a92ce
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 0x100a9311
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 0x100a9335
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 0x100a9373
push eax
call esi
mov eax, dword [esp + 0x74]
cmp eax, 0xffffffff
je 0x100a937f
push eax
call esi
mov eax, dword [esp + 0x78]
cmp eax, 0xffffffff
je 0x100a938b
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.100b1b48
mov esp, ebp
pop ebp
ret