Function at 0x411830
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x45f603
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push ebx
xor ebx, ebx
push esi
mov dword [esp + 0x20], ebx
push str._tcc.exe
lea eax, [esp + 0x10]
push 0x47d618
push eax
mov dword [esp + 0x98], ebx
call fcn.00404d90
lea ecx, [esp + 0xa4]
push ecx
lea edx, [esp + 0x20]
push str.__DUSE_GXPCDEMOSUPER__DUSE_TCC_EXE
push edx
mov byte [esp + 0xa4], 1
call fcn.00403c30
add esp, 0x18
push ebx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x9c], 2
mov dword [esp + 0x34], 0xc
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x411967
push ebx
push 0x30
push str.Error_On_CreatePipe__
call fcn.00454571
mov esi, dword [esp + 0x94]
push str.Error_On_CreatePipe__
mov ecx, esi
call fcn.004018c0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x8c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41190d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x8c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411932
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x98]
add eax, 0xfffffff0
mov dword [esp + 0x8c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411b4d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x411b4d
push edi
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0x48], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x84], eax
mov dword [esp + 0x80], eax
mov word [esp + 0x74], bx
mov dword [esp + 0x70], 0x101
cmp dword [edi - 4], 1
jle 0x4119b5
mov ecx, dword [edi - 0xc]
push ecx
lea ecx, [esp + 0x18]
call fcn.00401320
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cmp dword [eax - 4], 1
jle 0x4119d0
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esp + 0x14]
call fcn.00401320
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x48]
push edx
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x411a12
push ebx
push 0x30
push str.Error_on_CreateProcess__
call fcn.00454571
mov esi, dword [esp + 0x98]
push str.Error_on_CreateProcess__
mov ecx, esi
call fcn.004018c0
jmp 0x411ad9
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x4638ee
lea ecx, [esp + 0x1c]
call fcn.004018c0
mov eax, dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea ecx, [esp + 0x28]
push ecx
push 1
lea edx, [esp + 0x18]
push edx
push eax
mov byte [esp + 0xa4], 3
mov byte [esp + 0x20], bl
mov byte [esp + 0x21], bl
call esi
test eax, eax
je 0x411a97
lea esp, [esp]
lea eax, [esp + 0xc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x411a67
sub eax, edx
push eax
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x20]
call fcn.004016e0
mov ecx, dword [esp + 0x20]
push ebx
lea edx, [esp + 0x28]
push edx
push 1
lea eax, [esp + 0x18]
push eax
push ecx
call esi
test eax, eax
jne 0x411a60
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
push eax
call fcn.00401bd0
mov esi, dword [esp + 0x9c]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 4
mov byte [esp + 0x90], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x411ad9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
mov byte [esp + 0x90], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411afb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x90], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411b20
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x9c]
add eax, 0xfffffff0
mov dword [esp + 0x90], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411b4c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
mov ecx, dword [esp + 0x84]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x88
ret 8