Function at 0x10015c90
Capabilities:
Check if file exists
Connect pipe
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100581d3
mov eax, dword fs:[0]
push eax
mov eax, 0x2034
call fcn.10037d90
mov eax, dword [0x10074068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x2040], eax
sub esp, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2038]
call fcn.10016150
mov byte [ebp - 4], 1
mov edi, dword [ebp + 0x1c]
test edi, edi
je 0x10015d19
cmp dword [ebp + 0x20], 8
lea esi, [ebp + 0xc]
push dword [ebp - 0x2040]
cmovae esi, dword [ebp + 0xc]
lea edx, [ebp + 0xc]
cmovae edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x2038]
lea eax, [esi + edi*2]
push eax
push edx
push dword [ebp - 0x2034]
call fcn.1001a7b0
mov esi, dword [ebp - 0x2030]
mov eax, dword [ebp - 0x2034]
mov byte [ebp - 0x2029], 0
cmp esi, eax
je 0x10015d3c
mov byte [eax], 0
inc eax
mov dword [ebp - 0x2034], eax
jmp 0x10015d5b
lea ecx, [ebp - 0x2029]
push ecx
push eax
lea ecx, [ebp - 0x2038]
call fcn.10016480
mov esi, dword [ebp - 0x2030]
mov eax, dword [ebp - 0x2034]
mov byte [ebp - 0x2029], 0
cmp esi, eax
je 0x10015d72
mov byte [eax], 0
inc eax
mov dword [ebp - 0x2034], eax
jmp 0x10015d91
lea ecx, [ebp - 0x2029]
push ecx
push eax
lea ecx, [ebp - 0x2038]
call fcn.10016480
mov esi, dword [ebp - 0x2030]
mov eax, dword [ebp - 0x2034]
mov edi, dword [ebp - 0x2038]
sub eax, edi
mov ebx, dword [ebp + 8]
push 0x2000
push 0
mov dword [edi], eax
lea eax, [ebp - 0x2010]
push eax
mov dword [edi + 4], ebx
call fcn.10038ed0
add esp, 0xc
mov dword [ebp - 0x203c], 0
lea eax, [ebp - 0x2028]
push eax
call fcn.10015f60
cmp dword [eax + 0x14], 8
jb 0x10015dd5
mov eax, dword [eax]
push 0
lea ecx, [ebp - 0x203c]
push ecx
push 0x2000
lea ecx, [ebp - 0x2010]
push ecx
push dword [edi]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CallNamedPipeW]
mov edx, dword [ebp - 0x2014]
test eax, eax
sete al
mov byte [ebp - 0x2029], al
cmp edx, 8
jb 0x10015e45
mov ecx, dword [ebp - 0x2028]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10015e35
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10015f51
push edx
push ecx
call fcn.10036da6
mov al, byte [ebp - 0x2029]
add esp, 8
test al, al
je 0x10015e5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 2
setne bl
add ebx, 0xfffffffe
jmp 0x10015f03
mov ecx, dword [ebp - 0x203c]
cmp ecx, 8
jae 0x10015e74
mov ebx, 0xfffffffd
jmp 0x10015f03
mov eax, dword [ebp - 0x200c]
cmp eax, ebx
je 0x10015e89
test eax, eax
je 0x10015e89
mov ebx, 0xfffffffd
jmp 0x10015f03
mov eax, dword [ebp - 0x2010]
cmp eax, ecx
jbe 0x10015e9a
mov ebx, 0xfffffffd
jmp 0x10015f03
mov ebx, dword [ebp - 0x2040]
test ebx, ebx
je 0x10015efe
lea ecx, [eax - 8]
test ecx, ecx
jg 0x10015eb2
mov ebx, 0xfffffffd
jmp 0x10015f03
test cl, 1
je 0x10015ebe
mov ebx, 0xfffffffd
jmp 0x10015f03
cmp word [ebp + eax - 0x2011], 0
je 0x10015ed0
mov ebx, 0xfffffffd
jmp 0x10015f03
lea edx, [ebp - 0x2008]
lea ecx, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10015ee0
sub edx, ecx
lea eax, [ebp - 0x2008]
sar edx, 1
mov ecx, ebx
push edx
push eax
call fcn.1000b7d0
mov ebx, 1
sub esi, edi
mov eax, edi
cmp esi, 0x1000
jb 0x10015f1f
mov edi, dword [edi - 4]
add esi, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10015f56
push esi
push edi
call fcn.10036da6
add esp, 8
lea ecx, [ebp + 0xc]
call fcn.1000bcd0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10036d72
mov esp, ebp
pop ebp
ret 0x20
call fcn.1003be19
call fcn.1003be19
int3