Function at 0x100184f0
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create two anonymous pipes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100f96d1
push eax
mov dword fs:[0], esp
sub esp, 0xb8
push ebx
push ebp
mov ebp, dword [esp + 0xd4]
xor ebx, ebx
cmp ebp, ebx
push edi
je 0x10018522
mov ecx, ebp
call fcn.100e84a8
mov edi, dword [esp + 0xdc]
cmp edi, ebx
je 0x10018534
mov ecx, edi
call fcn.100e84a8
mov eax, dword [esp + 0xe0]
cmp eax, ebx
je 0x10018545
mov dword [eax], 0xffffffff
mov eax, dword [esp + 0xd4]
push eax
call fcn.10030ef0
add esp, 4
test eax, eax
je 0x10018560
xor eax, eax
jmp 0x100188b3
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x3c], ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreatePipe]
mov dword [esp + 0x34], edx
cmp ebp, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], 0xc
mov dword [esp + 0x34], 1
je 0x100185c9
lea eax, [esp + 0x2c]
push ebx
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
call esi
test eax, eax
je 0x1001882d
cmp edi, ebx
je 0x100185e7
lea eax, [esp + 0x2c]
push ebx
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x24]
push ecx
push edx
call esi
test eax, eax
je 0x10018837
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x84]
cmp ebp, ebx
rep stosd dword es:[edi], eax
mov dword [esp + 0x84], 0x44
mov dword [esp + 0xb0], 0x101
mov word [esp + 0xb4], bx
je 0x10018624
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc0], eax
mov esi, dword [esp + 0xe0]
cmp esi, ebx
je 0x1001863a
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xc4], ecx
mov eax, dword [0x1016eac8]
mov dword [esp + 0x28], eax
mov dword [esp + 0xd0], ebx
mov dword [esp + 0x24], eax
lea edx, [esp + 0x38]
mov ecx, dword [esp + 0xd8]
lea eax, [esp + 0x84]
push edx
push eax
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
push ecx
push ebx
mov byte [esp + 0xf8], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x10018841
cmp ebp, ebx
je 0x10018694
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x14], ebx
cmp esi, ebx
je 0x100186a7
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x5c]
call fcn.10030500
lea ecx, [esp + 0x48]
mov byte [esp + 0xd0], 2
call fcn.10030500
mov byte [esp + 0xd0], 3
mov ebp, 1
cmp dword [esp + 0xdc], ebx
je 0x100186f4
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x5c]
push ecx
push edx
call fcn.100188d0
add esp, 8
test eax, eax
je 0x100186f4
mov edi, 1
jmp 0x100186f6
xor edi, edi
cmp dword [esp + 0xe0], ebx
je 0x1001871c
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x48]
push eax
push ecx
call fcn.100188d0
add esp, 8
test eax, eax
je 0x1001871c
mov esi, 1
jmp 0x1001871e
xor esi, esi
cmp ebp, ebx
je 0x10018738
mov edx, dword [esp + 0x38]
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x10018738
xor ebp, ebp
cmp edi, ebx
jne 0x100186ce
cmp esi, ebx
jne 0x100186ce
cmp ebp, ebx
jne 0x100186ce
lea ecx, [esp + 0x70]
call fcn.10030500
mov edi, dword [esp + 0xdc]
mov byte [esp + 0xd0], 4
cmp edi, ebx
je 0x10018780
push ebx
lea ecx, [esp + 0x60]
call fcn.10030790
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x64]
neg eax
sbb eax, eax
mov ecx, edi
and eax, edx
push eax
call fcn.100e88ad
mov esi, dword [esp + 0xe0]
cmp esi, ebx
je 0x100187c2
push ebx
lea ecx, [esp + 0x4c]
call fcn.10030790
cmp esi, edi
jne 0x100187ac
mov eax, dword [esi]
cmp dword [eax - 8], ebx
je 0x100187ac
push 0x10124f30
mov ecx, esi
call fcn.100e88ad
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x50]
neg eax
sbb eax, eax
mov ecx, esi
and eax, edx
push eax
call fcn.100e88ad
mov esi, dword [esp + 0xe4]
cmp esi, ebx
je 0x100187df
mov ecx, dword [esp + 0x38]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x100187df
mov dword [esi], ebx
mov esi, 0x10101c30
lea ecx, [esp + 0x70]
mov dword [esp + 0x20], 1
mov byte [esp + 0xd0], 3
mov dword [esp + 0x70], esi
call fcn.10030700
lea ecx, [esp + 0x48]
mov byte [esp + 0xd0], 2
mov dword [esp + 0x48], esi
call fcn.10030700
lea ecx, [esp + 0x5c]
mov byte [esp + 0xd0], 1
mov dword [esp + 0x5c], esi
call fcn.10030700
jmp 0x10018845
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
jmp 0x10018869
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], ebx
jmp 0x10018869
mov dword [esp + 0x38], ebx
lea ecx, [esp + 0x24]
mov byte [esp + 0xd0], bl
call fcn.100e851d
lea ecx, [esp + 0x28]
mov dword [esp + 0xd0], 0xffffffff
call fcn.100e851d
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x1001887c
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
jmp 0x10018882
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x1001888d
push eax
call esi
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x10018898
push eax
call esi
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x100188a3
push eax
call esi
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x100188ae
push eax
call esi
mov eax, dword [esp + 0x20]
pop esi
mov ecx, dword [esp + 0xc4]
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xc4
ret