Function at 0x1002cb65
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x1002cd65
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0x11fc
jl 0x1002cd0e
push 0
mov ecx, dword [ebp - 8]
call fcn.10017853
cmp dword [eax], 0xfffffffb
jne 0x1002cbdb
mov dword [ebp - 0x14], 1
jmp 0x1002cbdf
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov eax, dword [ebp - 4]
mov esi, dword [eax]
push 2
mov ecx, dword [ebp - 8]
call fcn.10017853
cmp esi, dword [eax]
jne 0x1002cc03
mov dword [ebp - 0x18], 1
jmp 0x1002cc07
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
sub ecx, dword [eax]
mov eax, dword [ebp - 4]
imul ecx, dword [eax]
cmp ecx, 0x9323
jg 0x1002cc26
mov dword [ebp - 0x1c], 1
jmp 0x1002cc2a
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [ebp - 0x1c], eax
jne 0x1002cc3d
mov dword [ebp - 0x20], 1
jmp 0x1002cc41
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
cmp dword [ebp - 0x20], eax
jge 0x1002cc54
mov dword [ebp - 0x24], 1
jmp 0x1002cc58
and dword [ebp - 0x24], 0
push 0
mov ecx, dword [ebp - 8]
call fcn.10017853
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [eax]
jge 0x1002cc72
mov dword [ebp - 0x28], 1
jmp 0x1002cc76
and dword [ebp - 0x28], 0
push 1
mov ecx, dword [ebp - 8]
call fcn.10017853
mov ecx, dword [ebp - 0x28]
sub ecx, dword [eax]
add ecx, 0xf839313
mov eax, dword [ebp - 4]
sub ecx, dword [eax]
je 0x1002cca3
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
je 0x1002cca3
mov dword [ebp - 0x2c], 1
jmp 0x1002cca7
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x2c]
sub eax, 0x42c8cda
cmp eax, 0xbb21
jge 0x1002ccbf
mov dword [ebp - 0x30], 1
jmp 0x1002ccc3
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
push 1
mov ecx, dword [ebp - 8]
call fcn.10017853
mov ecx, dword [ebp - 0x30]
add ecx, dword [eax]
cmp esi, ecx
jge 0x1002cce4
mov dword [ebp - 0x34], 1
jmp 0x1002cce8
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
cmp dword [ebp - 0x34], eax
je 0x1002ccfb
mov dword [ebp - 0x38], 1
jmp 0x1002ccff
and dword [ebp - 0x38], 0
cmp dword [ebp - 0x38], 1
jae 0x1002cd0e
mov dword [ebp - 0x3c], 1
jmp 0x1002cd12
and dword [ebp - 0x3c], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x3c]
sub ecx, dword [eax]
jne 0x1002cd2a
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x1002cd2a
and dword [ebp - 0x10], 0
jmp 0x1002cd31
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
cmp dword [ebp - 0x10], 0xfa75
je 0x1002cd4b
mov dword [ebp - 0x40], 1
jmp 0x1002cd4f
and dword [ebp - 0x40], 0
push 1
mov ecx, dword [ebp - 8]
call fcn.10017853
mov eax, dword [eax]
add eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
jmp 0x1002cd76
push 0x1f04
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreatePipe]
pop esi
mov esp, ebp
pop ebp
ret