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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10064b36
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 0x1001bfde
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x1001bfcb
mov edx, 1
jmp 0x1001bfdb
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 0x1001c05a
test al, al
jne 0x1001c05a
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 0x1001c186
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 0x1001c07a
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 0x1001c0a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x1001c14d
mov ecx, dword [ebp - 0x3c]
mov eax, esi
add dword [ebp - 0x30], ecx
cmp dword [esi + 0x14], 7
jbe 0x1001c0b5
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 0x1001c0c7
mov eax, dword [esi]
push eax
lea ecx, [ebp - 0x28]
call fcn.10006e30
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 0x1001c070
cmp dword [ebp - 0x40], 0
je 0x1001c14d
cmp dword [ebp - 0x30], 0
je 0x1001c14d
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 0x1001c186
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.1004d46a
mov esp, ebp
pop ebp
ret 0xc