Function at 0x1001f004
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
movzx eax, byte [ebp + 0x30]
test eax, eax
je 0x1001f3cb
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x6c], eax
lea eax, [ebp + 0x28]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x8c]
movzx eax, byte [eax]
test eax, eax
je 0x1001f07e
push 0x206a
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreatePipe]
jmp 0x1001f3c9
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x5c], 0x15ba
cmp dword [ebp - 0x5c], 0xe2f
jge 0x1001f13b
lea eax, [ebp - 0x10]
push eax
push 0x10008ae8
call fcn.1004eb10
pop ecx
pop ecx
cmp dword [ebp - 0x10], 2
jg 0x1001f0c5
push 0x10008c44
call fcn.1004f621
pop ecx
push 0x10008c48
call fcn.1004f621
pop ecx
mov eax, dword [ebp - 0x10]
inc eax
cdq
sub eax, edx
sar eax, 1
push eax
push 0x10008b1c
call fcn.1004f14f
pop ecx
pop ecx
mov eax, dword [ebp - 0x10]
dec eax
push eax
push 0x10008b30
call fcn.1004f14f
pop ecx
pop ecx
mov dword [ebp - 0xc], 1
jmp 0x1001f107
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jg 0x1001f130
mov eax, dword [ebp - 0x10]
inc eax
cdq
sub eax, edx
sar eax, 1
cmp dword [ebp - 0xc], eax
jne 0x1001f11f
jmp 0x1001f100
push dword [ebp - 0xc]
push 0x10008b30
call fcn.1004f14f
pop ecx
pop ecx
jmp 0x1001f100
push 0x10008a51
call fcn.1004f621
pop ecx
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x1001f1bd
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 1
jg 0x1001f3c9
mov dword [ebp - 0x18], 0
jmp 0x1001f1d9
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 3
jge 0x1001f1ef
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0xb4], 0xd2c990b5
jmp 0x1001f1d2
mov eax, dword [ebp - 8]
mov dword [eax], 1
jmp 0x1001f205
mov eax, dword [ebp - 8]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jl 0x1001f3c4
mov dword [ebp - 0x1c], 0
jmp 0x1001f221
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 1
jge 0x1001f234
mov eax, dword [ebp - 0x1c]
mov dword [ebp + eax*4 - 0x30], 0xffffffff
jmp 0x1001f21a
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x14]
call fcn.10028ca3
push 4
pop eax
shl eax, 1
mov eax, dword [ebp + eax - 0xb4]
mov dword [ebp - 0xbc], eax
push 4
pop eax
shl eax, 1
mov eax, dword [ebp + eax - 0xb4]
inc eax
push 4
pop ecx
shl ecx, 1
mov dword [ebp + ecx - 0xb4], eax
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x14]
call fcn.10028ca3
mov ecx, dword [ebp - 0x70]
mov eax, dword [eax]
add eax, dword [ecx]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x14]
call fcn.10028ca3
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
cmp dword [ebp - 0x24], 0
je 0x1001f2d4
push 1
mov ecx, dword [ebp - 0x14]
call fcn.10028ca3
push 4
pop ecx
shl ecx, 1
mov ecx, dword [ebp + ecx - 0xb4]
cmp dword [eax], ecx
je 0x1001f2be
mov dword [ebp - 0x2c], 1
jmp 0x1001f2c2
and dword [ebp - 0x2c], 0
cmp dword [ebp - 0x2c], 0xaed4
jg 0x1001f2d4
mov dword [ebp - 0x3c], 1
jmp 0x1001f2d8
and dword [ebp - 0x3c], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x30]
cmp dword [ebp - 0x3c], eax
jle 0x1001f2f0
mov dword [ebp - 0x34], 1
jmp 0x1001f2f4
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [ebp - 0x34], eax
je 0x1001f313
push 0
mov ecx, dword [ebp - 0x14]
call fcn.10028ca3
cmp dword [eax], 0
jne 0x1001f313
and dword [ebp - 0x44], 0
jmp 0x1001f31a
mov dword [ebp - 0x44], 1
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp dword [ebp - 0x44], eax
jne 0x1001f335
mov eax, dword [ebp - 0x78]
cmp dword [eax], 0
je 0x1001f335
mov dword [ebp - 0x28], 1
jmp 0x1001f339
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x28]
mov dword [eax], ecx
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x30]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0x38]
cmp dword [eax], 0
je 0x1001f367
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x1001f367
and dword [ebp - 0x20], 0
jmp 0x1001f36e
mov dword [ebp - 0x20], 1
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
cmp dword [ebp - 0x20], 0
je 0x1001f38e
mov eax, 0xcd6c
test eax, eax
je 0x1001f38e
mov dword [ebp - 0x40], 1
jmp 0x1001f392
and dword [ebp - 0x40], 0
cmp dword [ebp - 0x40], 0
jae 0x1001f3ad
push 4
pop eax
shl eax, 1
cmp dword [ebp + eax - 0xb4], 0
jne 0x1001f3ad
and dword [ebp - 0x48], 0
jmp 0x1001f3b4
mov dword [ebp - 0x48], 1
mov eax, dword [ebp - 0x88]
mov ecx, dword [ebp - 0x48]
mov dword [eax], ecx
jmp 0x1001f1fa
jmp 0x1001f1b2
jmp 0x1001f402
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xa0], eax
push dword [ebp - 0x90]
push dword [ebp - 0x98]
push dword [ebp - 0xa0]
push 1
call fcn.1000f89b
add esp, 0x10
mov esp, ebp
pop ebp
ret