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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x464290
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x48672c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x3c], ebx
push 2
push 0x46f8f0
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x1c], 0xf
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
call fcn.00401790
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x34]
push ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], 1
call fcn.0041b190
add esp, 8
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.00422490
lea edx, [ebp - 0x34]
push edx
lea ecx, [edi + 0x10]
mov byte [ebp - 4], 2
call fcn.00415780
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], bl
call fcn.00422170
push ebx
push ebx
push 0x6d
push 0x80
push 1
push 6
push 3
push str..pipe_sputnik_4957CC43B4064c75B0C9D4C501FE396A
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov esi, eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 1
mov byte [ebp - 4], 6
cmp esi, ebx
je 0x41bd10
cmp esi, 0xffffffff
jne 0x41bd24
lea ecx, [ebp - 0x44]
call fcn.00409aa0
cmp dword [ebp - 0x1c], 0x10
jb 0x41bd4a
mov ecx, dword [ebp - 0x30]
push ecx
jmp 0x41bd42
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x41bd66
lea ecx, [ebp - 0x44]
call fcn.00409aa0
cmp dword [ebp - 0x1c], 0x10
jb 0x41bd4a
mov edx, dword [ebp - 0x30]
push edx
call fcn.00433b3e
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00434932
mov esp, ebp
pop ebp
ret
push 0x14
lea ecx, [edi + 0x20]
mov dword [ebp - 0x34], ebx
call fcn.004263a0
mov eax, dword [edi + 0x20]
push ebx
lea ecx, [ebp - 0x34]
push ecx
push 0x13
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41bd96
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x41be14
mov ecx, dword [ebp - 0x38]
call fcn.0041a1e0
cmp al, bl
je 0x41be14
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0x18]
cmp eax, ebx
je 0x41bdb8
add eax, 0x14
push eax
lea ecx, [edi + 0x20]
call fcn.004263a0
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x18]
cmp ecx, ebx
je 0x41bddb
mov eax, dword [edi + 0x20]
push ebx
lea edx, [ebp - 0x34]
push edx
inc ecx
push ecx
add eax, 0x13
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41be14
push 2
push 0x46f8f0
lea ecx, [ebp - 0x30]
call fcn.00401790
mov ecx, dword [ebp - 0x34]
mov edi, dword [edi + 0x20]
lea eax, [ebp - 0x30]
push eax
push ecx
mov ecx, dword [ebp - 0x38]
add edi, 0x13
push edi
call fcn.0041ab30
cmp al, bl
jne 0x41be14
push 6
push str.failed
lea ecx, [ebp - 0x30]
call fcn.00401790
cmp dword [ebp - 0x1c], 0x10
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x48], ebx
jae 0x41be23
lea eax, [ebp - 0x30]
mov ecx, dword [ebp - 0x20]
push ebx
lea edx, [ebp - 0x48]
push edx
inc ecx
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
lea ecx, [ebp - 0x44]
call fcn.00409aa0
mov edi, dword [ebp - 0x38]
jmp 0x41bcd8