Function at 0x1001977b
Capabilities:
Create pipe

Disassembly:
mov eax, 0x10081af8
call fcn.100812e0
sub esp, 0x64
push ebx
push esi
push edi
mov edi, edx
test cl, cl
je 0x100197a3
push 0x11e7
push 0
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
jmp 0x1001997f
push 2
lea ecx, [ebp - 0x48]
call fcn.100177e6
xor esi, esi
lea ecx, [ebp - 0x3c]
xor ebx, ebx
inc esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], 0x38ecf54c
push esi
call fcn.100177e6
mov dword [ebp - 0x14], ebx
jmp 0x100197da
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x48]
mov dword [eax + ecx*4], 0xb90d
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 2
jl 0x100197ca
mov dword [ebp - 0x14], ebx
jmp 0x100197f3
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x60], 0xd23b6182
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 3
jl 0x100197e5
mov dword [ebp - 0x14], ebx
jmp 0x1001980e
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x3c]
mov dword [eax + ecx*4], 0xddd1
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], esi
jl 0x100197fe
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x3c]
inc dword [eax]
call fcn.10018003
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.10018003
push dword [ebp - 0x20]
lea eax, [ebp - 0x60]
mov dword [ebp - 0x30], ebx
push eax
lea eax, [ebp - 0x70]
mov dword [ebp - 0x2c], ebx
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x28], ebx
push ebx
lea ecx, [ebp - 0x30]
movdqu xmmword [ebp - 0x70], xmm0
call fcn.10018d2b
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x14], 3
jg 0x100198a0
mov dword [ebp - 0x20], 0xf2e96673
mov dword [ebp - 0x18], 0xdbd0176d
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x14]
inc ecx
mov eax, dword [eax + edx*4]
add eax, ecx
jne 0x10019883
cmp dword [ebp - 0x14], ebx
jne 0x10019883
mov esi, ebx
mov ecx, dword [ebp - 0x14]
xor edx, edx
mov eax, dword [ebp - 0x30]
push 1
cmp dword [eax + ecx*4], esi
pop esi
setge dl
mov dword [ebp - 0x18], edx
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 3
jle 0x1001985d
lea ecx, [ebp - 0x30]
call fcn.10018003
mov dword [ebp - 0x14], 0xfffffff8
mov dword [ebp - 0x14], ebx
jmp 0x100198c2
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x24], 0xfffffffd
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], esi
jl 0x100198b4
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x14], ebx
jl 0x100198ea
mov byte [ebp - 0xd], bl
cmp byte [ebp - 0xd], bl
je 0x100198e5
push 0x1f04
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
dec dword [ebp - 0x14]
jns 0x100198cf
mov dword [ebp - 0x14], 0xfffffffb
jmp 0x10019902
mov dword [ebp - 0x18], 0xae77ab39
cmp dword [ebp - 0x18], ebx
jne 0x10019908
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x10
jl 0x100198f3
push 2
lea ecx, [ebp - 0x54]
call fcn.100177e6
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x18], 0xfffffff8
mov dword [ebp - 0x1c], 0xfffffff9
mov dword [ebp - 0x14], ebx
jmp 0x10019938
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x54]
mov dword [eax + ecx*4], ebx
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 2
jl 0x1001992c
mov dword [ebp - 0x14], ebx
jmp 0x1001996b
mov dword [ebp - 0x20], 6
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], esi
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], esi
jle 0x10019943
lea ecx, [ebp - 0x54]
call fcn.10018003
mov eax, dword [ebp + 8]
mov ecx, dword [edi]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret