Function at 0x1001bf30
Capabilities:
Connect pipe
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10064b06
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x100ad040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov al, byte [ebp + 0x10]
xor edx, edx
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x34], 0
test al, al
jne 0x1001bf9e
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x1001bf8b
mov edx, 1
jmp 0x1001bf9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
cmp eax, 0x217
sete dl
mov al, byte [ebp + 0x10]
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
xor ecx, ecx
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], cx
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x2c]
test edx, edx
jne 0x1001c01a
test al, al
jne 0x1001c01a
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
xor eax, eax
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov dword [ebp - 0x34], 1
mov byte [ebp - 4], al
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
jmp 0x1001c146
xor eax, eax
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x30], eax
add esi, 0x3c
nop dword [eax]
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x1001c03a
mov eax, dword [esi]
push 0
lea edx, [ebp - 0x3c]
push edx
push 0x400
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x40], eax
test eax, eax
jne 0x1001c065
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x1001c10d
mov ecx, dword [ebp - 0x3c]
mov eax, esi
add dword [ebp - 0x30], ecx
cmp dword [esi + 0x14], 7
jbe 0x1001c075
mov eax, dword [esi]
shr ecx, 1
xor edx, edx
mov word [eax + ecx*2], dx
mov eax, esi
cmp dword [esi + 0x14], 7
jbe 0x1001c087
mov eax, dword [esi]
push eax
lea ecx, [ebp - 0x28]
call fcn.10006e20
lea eax, [ebp - 0x38]
push eax
push 0
push 0
push 0
push 0
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
cmp dword [ebp - 0x38], 0
mov ecx, dword [ebp - 0x2c]
ja 0x1001c030
cmp dword [ebp - 0x40], 0
je 0x1001c10d
cmp dword [ebp - 0x30], 0
je 0x1001c10d
xorps xmm0, xmm0
mov dword [ebp - 0x34], 1
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
xor eax, eax
movups xmm0, xmmword [ebp - 0x28]
mov dword [edi + 0x14], 0
mov word [ebp - 0x28], ax
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov byte [ebp - 4], al
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
jmp 0x1001c146
xorps xmm0, xmm0
xor eax, eax
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov dword [ebp - 0x34], 1
mov byte [ebp - 4], al
lea ecx, [ebp - 0x28]
call fcn.10005610
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004d40a
mov esp, ebp
pop ebp
ret 0xc