Function at 0x436b10
Capabilities:
Access peb ldr_data
Create pipe
Create process on windows
Create process suspended
Create thread
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
xor eax, eax
mov ecx, 0x11
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x154]
push ebx
sub esp, 0x194
mov dword [ebp - 0x158], 0x48
rep stosd dword es:[edi], eax
mov eax, dword [0x707bc4]
test eax, eax
je 0x436fa8
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x1000
mov dword [esp + 0x10], 0x1000
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 3
mov dword [esp], str..pipepseudoconsoleconn
call dword [sym.imp.kernel32.dll_CreateNamedPipeW]
sub esp, 0x20
mov edi, eax
call fcn.0057d110
mov esi, dword fs:[0x18]
mov dword [eax], 0x58f03f
mov dword [eax + 4], 0x12d8
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.CreateNamedPipeW_failed:__lu_n
mov dword [esp + 8], eax
xor eax, eax
cmp edi, 0xffffffff
setne al
mov dword [esp], eax
call fcn.00427ef0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x40000000
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc0000000
mov dword [esp], str..pipepseudoconsoleconn
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x58f03f
mov dword [eax + 4], 0x12dc
mov eax, dword [esi + 0x34]
mov dword [esp + 4], 0x5910bc
mov dword [esp + 8], eax
xor eax, eax
cmp ebx, 0xffffffff
setne al
mov dword [esp], eax
call fcn.00427ef0
mov dword [esp + 0xc], edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0x42cd50
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateThread]
mov edi, dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 0x18
mov dword [esp], eax
call edi
lea ecx, [ebp - 0x170]
sub esp, 4
mov dword [esp + 0x10], ecx
mov dword [esp + 8], ebx
mov dword [esp + 4], ebx
mov dword [esp + 0xc], 0
mov dword [esp], 0x1e0000
call dword [0x707bc4]
sub esp, 0x14
mov dword [ebp - 0x178], eax
call fcn.0057d110
mov edx, dword [ebp - 0x178]
mov dword [eax], 0x58f03f
mov dword [eax + 4], 0x12e4
xor eax, eax
cmp edx, 0x80070057
sete al
mov dword [esp + 8], edx
mov dword [esp + 4], str.CreatePseudoConsole_failed:__08lx_n
mov dword [esp], eax
call fcn.00427ef0
lea ecx, [ebp - 0x170]
mov dword [esp + 8], ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 4], ebx
mov dword [esp + 0xc], 0
mov dword [esp], 0x28
call dword [0x707bc4]
sub esp, 0x14
mov dword [ebp - 0x178], eax
call fcn.0057d110
mov edx, dword [ebp - 0x178]
mov dword [eax], 0x58f03f
mov dword [eax + 4], 0x12e9
xor eax, eax
cmp edx, 0x80070057
sete al
mov dword [esp + 8], edx
mov dword [esp + 4], str.CreatePseudoConsole_failed:__08lx_n
mov dword [esp], eax
call fcn.00427ef0
lea ecx, [ebp - 0x170]
mov dword [esp + 8], ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 4], ebx
mov dword [esp + 0xc], 0
mov dword [esp], 0x1e0028
call dword [0x707bc4]
sub esp, 0x14
mov dword [ebp - 0x178], eax
call fcn.0057d110
mov edx, dword [ebp - 0x178]
mov dword [eax], 0x58f03f
mov dword [eax + 4], 0x12ee
xor eax, eax
test edx, edx
sete al
mov dword [esp + 8], edx
mov dword [esp + 4], str.CreatePseudoConsole_failed:__08lx_n
mov dword [esp], eax
call fcn.00427ef0
mov dword [esp], ebx
call edi
lea edx, [ebp - 0x16c]
mov ebx, dword [sym.imp.kernel32.dll_InitializeProcThreadAttributeList]
sub esp, 4
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call ebx
mov eax, dword [ebp - 0x16c]
sub esp, 0x10
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
lea edx, [ebp - 0x16c]
sub esp, 0xc
mov dword [ebp - 0x114], eax
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], eax
call ebx
lea ebx, [ebp - 0x110]
sub esp, 0x10
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 4
mov eax, dword [ebp - 0x170]
mov dword [esp + 8], 0x20016
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x114]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_UpdateProcThreadAttribute]
lea eax, [ebp - 0x174]
sub esp, 0x1c
mov dword [esp], eax
call fcn.0057d960
mov eax, dword [ebp - 0x174]
mov edx, dword [eax + 4]
mov dword [esp + 0xc], edx
mov eax, dword [eax]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], str.__s___s___pseudo_console
call fcn.00426e80
lea eax, [ebp - 0x168]
mov dword [esp + 4], ebx
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x158]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80000
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateProcessA]
sub esp, 0x28
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x58f03f
mov dword [eax + 4], 0x12fa
mov eax, dword [esi + 0x34]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], str.CreateProcessW_failed:__lu_n
call fcn.00427ef0
mov eax, dword [ebp - 0x164]
mov dword [esp], eax
call edi
mov eax, dword [ebp - 0x114]
sub esp, 4
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
call fcn.0057d110
mov dword [eax], 0x58f03f
mov dword [eax + 4], 0x12fe
mov eax, dword [ebp - 0x168]
mov dword [esp], eax
call fcn.0057d980
mov eax, dword [ebp - 0x168]
mov dword [esp], eax
call edi
mov eax, dword [ebp - 0x170]
sub esp, 4
mov dword [esp], eax
call dword [0x707bc8]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0x12d2
call fcn.00427180
mov dword [esp], str.CreatePseudoConsole_not_available_n
call fcn.00427ec0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret