Function at 0x42d880
Capabilities:
Connect pipe
Create pipe
Read file on windows
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x6d3438]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x30], eax
cmp dword [esi + 4], 0xffffffff
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
jne 0x42d903
xor edi, edi
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x20]
mov word [ebp - 0x18], 0x100
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push 1
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], 0
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x42d974
mov dword [ebp - 0x20], edi
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x20], 0
jne 0x42d903
push 0
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x42daba
push 0
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42d92f
call edi
cmp eax, 0x217
jne 0x42db20
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x24]
push 0
push eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [esi + 4]
call ebx
test eax, eax
jne 0x42d953
call edi
cmp eax, 0xea
jne 0x42d95d
cmp dword [ebp - 0x24], 0
jne 0x42da45
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
jmp 0x42daba
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
lea ebx, [eax*2 + 0x20]
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x42d8ee
push 2
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
test eax, eax
je 0x42d8f5
push dword [ebp - 0x20]
push 0xc0000
push 2
push edi
call dword [sym.imp.ADVAPI32.dll_AddAccessDeniedAce]
test eax, eax
je 0x42d8f5
push dword [ebp - 0x20]
push 0x101f0001
push 2
push edi
call dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
test eax, eax
je 0x42d8f5
push 1
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x42d8f5
push 0
push edi
push 1
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x42d8f5
lea eax, [ebp - 0x50]
mov dword [ebp - 0x3c], 0xc
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x3c]
push eax
push 0
push 0x1000
push 0x1000
push 0xff
push 6
push 3
lea eax, [esi + 8]
mov dword [ebp - 0x34], 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 4], eax
jmp 0x42d8f5
mov ecx, dword [ebp - 0x10]
cmp dword [ebp - 0x14], ecx
cmova ecx, dword [ebp - 0x14]
lea eax, [ecx + 0x10]
push eax
mov dword [ebp - 0x20], eax
call fcn.0060dd8e
mov edi, eax
add esp, 4
test edi, edi
je 0x42d95d
push dword [ebp - 0x20]
push 0
push edi
call fcn.0060a8e0
movups xmm0, xmmword [ebp - 0x14]
add esp, 0xc
movd eax, xmm0
movups xmmword [edi], xmm0
test eax, eax
je 0x42dacf
push 0
lea ecx, [ebp - 0x24]
push ecx
push eax
lea eax, [edi + 0x10]
push eax
push dword [esi + 4]
call ebx
test eax, eax
je 0x42da9f
cmp dword [ebp - 0x24], 0
jne 0x42dacf
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push edi
call fcn.0060dd99
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00608185
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x42dadf
push edi
push dword [ebp - 0x30]
call eax
add esp, 8
push 0
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x10]
add eax, 0x10
push eax
push edi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42daa8
mov eax, dword [ebp - 0x10]
add eax, 0x10
cmp eax, dword [ebp - 0x28]
jne 0x42daa8
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
push edi
call fcn.0060dd99
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00608185
mov esp, ebp
pop ebp
ret 0x10