Function at 0x1002f140
Capabilities:
Create pipe
Create two anonymous pipes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1007b00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], ecx
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x28], 0xc
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x20], 1
push eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 8], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x1002f1e5
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [ebp - 0x10]
push 2
push 0
push 0
push eax
mov dword [ebp - 0x10], 0xffffffff
call edi
push eax
push dword [ebp - 0xc]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
mov eax, dword [ebp - 0xc]
jne 0x1002f1f7
test eax, eax
je 0x1002f1d6
cmp eax, 0xffffffff
je 0x1002f1d6
push eax
call esi
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp - 8]
test eax, eax
je 0x1002f1e5
cmp eax, 0xffffffff
je 0x1002f1e5
push eax
call esi
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x1002f20a
cmp eax, 0xffffffff
je 0x1002f20a
push eax
call esi
mov dword [ebp - 0xc], 0xffffffff
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x14], 0xffffffff
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0xffffffff
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x1002f281
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x1002f246
cmp eax, 0xffffffff
je 0x1002f246
push eax
call esi
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp - 8]
test eax, eax
je 0x1002f25c
cmp eax, 0xffffffff
je 0x1002f25c
push eax
call esi
mov dword [ebp - 8], 0xffffffff
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1002f1e5
cmp eax, 0xffffffff
je 0x1002f1e5
push eax
call esi
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0xffffffff
push eax
call edi
push eax
push dword [ebp - 0x18]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x1002f32a
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x1002f2bf
cmp eax, 0xffffffff
je 0x1002f2bf
push eax
call esi
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp - 8]
test eax, eax
je 0x1002f2d5
cmp eax, 0xffffffff
je 0x1002f2d5
push eax
call esi
mov dword [ebp - 8], 0xffffffff
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1002f2eb
cmp eax, 0xffffffff
je 0x1002f2eb
push eax
call esi
mov dword [ebp - 0x14], 0xffffffff
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1002f301
cmp eax, 0xffffffff
je 0x1002f301
push eax
call esi
mov dword [ebp - 0x18], 0xffffffff
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1002f1e5
cmp eax, 0xffffffff
je 0x1002f1e5
push eax
call esi
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1002f340
cmp eax, 0xffffffff
je 0x1002f340
push eax
call esi
mov dword [ebp - 0x18], 0xffffffff
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
call fcn.1002f440
test eax, eax
jne 0x1002f3bc
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1002f367
cmp eax, 0xffffffff
je 0x1002f367
push eax
call esi
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 8]
test eax, eax
je 0x1002f37d
cmp eax, 0xffffffff
je 0x1002f37d
push eax
call esi
mov dword [ebp - 8], 0xffffffff
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1002f393
cmp eax, 0xffffffff
je 0x1002f393
push eax
call esi
mov dword [ebp - 0x14], 0xffffffff
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1002f1e5
cmp eax, 0xffffffff
je 0x1002f1e5
push eax
call esi
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005b6db
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.1002f560
mov ecx, dword [ebp - 0x10]
mov edi, eax
test ecx, ecx
je 0x1002f3e4
cmp ecx, 0xffffffff
je 0x1002f3e4
push ecx
call esi
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 8]
test eax, eax
je 0x1002f3fa
cmp eax, 0xffffffff
je 0x1002f3fa
push eax
call esi
mov dword [ebp - 8], 0xffffffff
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1002f410
cmp eax, 0xffffffff
je 0x1002f410
push eax
call esi
mov dword [ebp - 0x14], 0xffffffff
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1002f41f
cmp eax, 0xffffffff
je 0x1002f41f
push eax
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.1005b6db
mov esp, ebp
pop ebp
ret