Function at 0x401160
Capabilities:
Create pipe
Create process on windows
Create two anonymous pipes

Disassembly:
mov eax, 0x41f84c
call fcn.00411868
sub esp, 0xd4
push ebx
push esi
push edi
push 0xc
pop esi
xor ebx, ebx
push esi
lea eax, [ebp - 0x50]
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x38], ebx
call fcn.00411400
add esp, 0xc
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], esi
mov esi, dword [sym.imp.KERNEL32.dll_CreatePipe]
push ebx
push eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x48], 1
push eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x4c], ebx
call esi
test eax, eax
jne 0x401206
push dword [0x42b830]
lea ecx, [ebp - 0x30]
call fcn.0040f88a
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040fa96
push dword [ebp - 0x30]
lea ecx, [ebp - 0x74]
call fcn.0040e496
lea eax, [ebp - 0x74]
lea ecx, [ebp - 0x64]
push eax
mov byte [ebp - 4], 1
call fcn.00409301
lea eax, [ebp - 0x64]
push 0x423228
push eax
call fcn.00411936
push dword [ebp - 0x24]
lea ecx, [ebp - 0x3c]
call fcn.00401070
push dword [ebp - 0x44]
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 2
call fcn.00401070
lea eax, [ebp - 0x50]
push ebx
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 3
call esi
test eax, eax
jne 0x401284
push dword [0x42b830]
lea ecx, [ebp - 0x30]
call fcn.0040f88a
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040fa96
push dword [ebp - 0x30]
lea ecx, [ebp - 0x74]
call fcn.0040e496
lea eax, [ebp - 0x74]
lea ecx, [ebp - 0x64]
push eax
mov byte [ebp - 4], 5
call fcn.00409301
lea eax, [ebp - 0x64]
push 0x423228
push eax
call fcn.00411936
push dword [ebp - 0x40]
lea ecx, [ebp - 0x34]
call fcn.00401070
push dword [ebp - 0x38]
lea ecx, [ebp - 0x18]
call fcn.00401070
cmp byte [ebp + 8], bl
mov byte [ebp - 4], 7
mov dword [ebp - 0x14], ebx
jne 0x4012ad
mov dword [ebp - 0x14], 0x8000008
cmp byte [ebp + 0xc], bl
je 0x4012b6
or dword [ebp - 0x14], 0x10
push 0x44
lea eax, [ebp - 0xcc]
pop esi
push esi
push ebx
push eax
call fcn.00411400
mov eax, dword [ebp - 0x1c]
add esp, 0xc
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x18]
push 0xfffffffffffffff6
mov dword [ebp - 0xcc], esi
mov word [ebp - 0x9a], bx
mov dword [ebp - 0xc8], ebx
mov dword [ebp - 0x98], ebx
mov dword [ebp - 0xa0], 0x100
mov dword [ebp - 0x8c], eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea esi, [edi + 0x18]
mov dword [ebp - 0x94], eax
mov ecx, esi
mov word [ebp - 0x9c], bx
call fcn.0040edfb
test al, al
je 0x401326
xor edi, edi
jmp 0x40132f
mov ecx, esi
call fcn.0040ed7f
mov edi, eax
mov eax, dword [ebp - 0x20]
lea esi, [eax + 4]
mov ecx, esi
call fcn.0040edfb
test al, al
je 0x401344
xor eax, eax
jmp 0x40134b
mov ecx, esi
call fcn.0040ed7f
lea ecx, [ebp - 0x88]
push ecx
lea ecx, [ebp - 0xcc]
push ecx
push edi
push ebx
lea ecx, [ebp - 0x50]
push dword [ebp - 0x14]
push 1
push ecx
lea ecx, [ebp - 0x50]
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, ebx
jne 0x4013cb
push dword [0x42b830]
lea ecx, [ebp - 0x30]
call fcn.0040f88a
mov byte [ebp - 4], 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040fa96
push str.CreateProcess_failed___
lea ecx, [ebp - 0x60]
call fcn.0040e496
push dword [ebp - 0x30]
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 9
call fcn.0040e51c
lea eax, [ebp - 0x60]
lea ecx, [ebp - 0x78]
push eax
call fcn.00409301
lea eax, [ebp - 0x78]
push 0x423228
push eax
call fcn.00411936
lea ecx, [ebp - 0x1c]
call fcn.00401080
lea ecx, [ebp - 0x18]
call fcn.00401080
mov edi, 0x103
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
mov dword [ebp - 0x10], edi
cmp dword [ebp - 0x10], edi
jne 0x401414
cmp dword [ebp + 8], ebx
jne 0x401414
cmp dword [ebp + 0xc], ebx
jne 0x401414
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x88]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x401452
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [ebp - 0x20]
mov eax, dword [esi + 0x28]
cmp eax, ebx
je 0x40142c
push dword [ebp - 0x3c]
mov ecx, esi
push eax
call fcn.00401551
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x2c]
cmp eax, ebx
je 0x401441
push dword [ebp - 0x34]
mov ecx, esi
push eax
call fcn.00401551
mov dword [ebp + 0xc], eax
cmp dword [ebp - 0x10], edi
je 0x4013ee
cmp dword [ebp + 8], ebx
ja 0x4013e9
cmp dword [ebp + 0xc], ebx
jbe 0x4014af
jmp 0x4013e9
push dword [0x42b830]
lea ecx, [ebp - 0x5c]
call fcn.0040f88a
mov byte [ebp - 4], 0xa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x5c]
call fcn.0040fa96
push str.CreateProcess_unable_to_get_exit_code_for_process__
lea ecx, [ebp - 0x74]
call fcn.0040e496
push dword [ebp - 0x5c]
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0xb
call fcn.0040e51c
lea eax, [ebp - 0x74]
lea ecx, [ebp - 0xe0]
push eax
call fcn.00409301
lea eax, [ebp - 0xe0]
push 0x423228
push eax
call fcn.00411936
push dword [ebp - 0x84]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x88]
call esi
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [ebp - 0x10]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.0040107b
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.0040107b
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.0040107b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.0040107b
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8