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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x773d16
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x88bba0]
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 edi, ecx
cmp dword [edi + 0x18], 0x10
lea ebx, [edi + 4]
jb 0x485abd
mov ecx, dword [ebx]
jmp 0x485abf
mov ecx, ebx
mov eax, dword [edi + 0x1c]
push 0
push 0
push eax
push eax
push 1
push 8
push 0x40000003
push ecx
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov dword [edi + 0x24], eax
cmp eax, 0xffffffff
jne 0x485c21
push 0x43
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0
push str.NamedPipeServer::ProcessMessages:_Failed_to_open_pipe__s__GLE___lu
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.0042fb60
mov dword [ebp - 4], 0
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xffffffffffffffff
push 0
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0
mov esi, eax
push ebx
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.0042fa30
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x8c]
call fcn.00483380
mov edi, eax
mov byte [ebp - 4], 4
lea eax, [ebp - 0x40]
push eax
mov ecx, edi
call fcn.00483650
push esi
mov ecx, edi
call fcn.00483710
mov byte [ebp - 4], 3
cmp dword [ebp - 0x2c], 0x10
jb 0x485b94
push dword [ebp - 0x40]
call fcn.00489b60
add esp, 4
mov ecx, edi
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.00483750
mov byte [ebp - 4], 5
push eax
call fcn.00481260
add esp, 4
mov byte [ebp - 4], 3
cmp dword [ebp - 0x44], 0x10
jb 0x485bcf
push dword [ebp - 0x58]
call fcn.00489b60
add esp, 4
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x8c]
call fcn.00483470
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 0x10
jb 0x485c08
push dword [ebp - 0x28]
call fcn.00489b60
add esp, 4
mov dword [ebp - 0x14], 0xf
xor al, al
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jmp 0x4860f1
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [edi + 0x44], 0
mov bl, 1
jne 0x4860d9
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [edi + 0x30]
push eax
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x114], 0
test eax, eax
jne 0x485f4d
call esi
cmp eax, 0x3e5
jne 0x485f4d
push 1
lea eax, [ebp - 0x114]
push eax
lea eax, [edi + 0x30]
push eax
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
push dword [edi + 0x40]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test esi, esi
jne 0x485dde
push 0x50
mov dword [ebp - 0x30], esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], esi
push str.NamedPipeServer::ProcessMessages:_GetOverlappedResult_failed_on_pipe__s__GLE_lu
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], esi
mov byte [ebp - 0x40], 0
call fcn.0042fb60
mov dword [ebp - 4], 6
lea eax, [ebp - 0xa4]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
push 0xffffffffffffffff
mov esi, eax
mov dword [ebp - 0x18], 0
push 0
lea eax, [edi + 4]
mov dword [ebp - 0x14], 0
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.0042fa30
mov byte [ebp - 4], 7
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x110]
call fcn.00483380
mov ebx, eax
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x28]
push eax
mov ecx, ebx
call fcn.00483650
push esi
mov ecx, ebx
call fcn.00483710
mov byte [ebp - 4], 9
cmp dword [ebp - 0x14], 0x10
jb 0x485d44
push dword [ebp - 0x28]
call fcn.00489b60
add esp, 4
mov ecx, ebx
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00483750
mov byte [ebp - 4], 0xb
push eax
call fcn.00481d00
add esp, 4
mov byte [ebp - 4], 9
cmp dword [ebp - 0x90], 0x10
jb 0x485d85
push dword [ebp - 0xa4]
call fcn.00489b60
add esp, 4
mov dword [ebp - 0x90], 0xf
mov dword [ebp - 0x94], 0
mov byte [ebp - 0xa4], 0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x110]
call fcn.00483470
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x2c], 0x10
jb 0x485dc7
push dword [ebp - 0x40]
call fcn.00489b60
add esp, 4
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
jmp 0x4860bc
push 0
lea eax, [ebp - 0x114]
push eax
push dword [edi + 0x1c]
push dword [edi + 0x2c]
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x485f06
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov esi, eax
test bl, bl
je 0x485e17
cmp esi, 0x218
je 0x4860bc
push str.NamedPipeServer::ProcessMessages:_ReadFile_failed_on_pipe__s__GLE_lu
lea ecx, [ebp - 0x58]
call fcn.00404f70
mov dword [ebp - 4], 0xc
lea eax, [ebp - 0xbc]
push eax
push esi
sub esp, 0x18
lea eax, [edi + 4]
mov ecx, esp
mov dword [ebp - 0x118], esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.0042fa30
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0xf4]
call fcn.00483380
mov byte [ebp - 4], 0xe
mov byte [ebp - 4], 0xf
mov ecx, eax
call fcn.0045b340
mov ecx, eax
call fcn.00483750
mov byte [ebp - 4], 0x10
push eax
call fcn.00481d00
add esp, 4
mov byte [ebp - 4], 0xf
cmp dword [ebp - 0xa8], 0x10
jb 0x485ead
push dword [ebp - 0xbc]
call fcn.00489b60
add esp, 4
mov dword [ebp - 0xa8], 0xf
mov dword [ebp - 0xac], 0
mov byte [ebp - 0xbc], 0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0xf4]
call fcn.00483470
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x44], 0x10
jb 0x485eef
push dword [ebp - 0x58]
call fcn.00489b60
add esp, 4
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
jmp 0x4860bc
push dword [edi + 0x1c]
mov eax, dword [edi]
lea ecx, [ebp - 0x114]
push ecx
push dword [edi + 0x2c]
mov ecx, edi
mov eax, dword [eax + 0x14]
call eax
test al, al
je 0x4860bc
push 0
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 0x114]
push dword [edi + 0x2c]
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
jmp 0x4860bc
push 0x56
mov dword [ebp - 0x60], 0
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x5c], 0
push str.NamedPipeServer::ProcessMessages:_ConnectNamedPipe_failed_on_pipe__s__fRes_d__GLE_lu
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
call fcn.0042fb60
mov dword [ebp - 4], 0x11
lea eax, [ebp - 0x88]
push eax
call esi
push 0xffffffffffffffff
mov esi, eax
mov dword [ebp - 0x120], 0
push 0
lea eax, [edi + 4]
mov dword [ebp - 0x11c], 0
push eax
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x130], 0
call fcn.0042fa30
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0xd8]
call fcn.00483380
mov ebx, eax
mov byte [ebp - 4], 0x15
lea eax, [ebp - 0x130]
push eax
mov ecx, ebx
call fcn.00483650
push dword [ebp - 0x118]
mov ecx, ebx
call fcn.004836e0
push esi
mov ecx, ebx
call fcn.00483710
mov byte [ebp - 4], 0x14
cmp dword [ebp - 0x11c], 0x10
jb 0x486027
push dword [ebp - 0x130]
call fcn.00489b60
add esp, 4
mov ecx, ebx
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x130], 0
call fcn.00483750
mov byte [ebp - 4], 0x16
push eax
call fcn.00481d00
add esp, 4
mov byte [ebp - 4], 0x14
cmp dword [ebp - 0x74], 0x10
jb 0x48606e
push dword [ebp - 0x88]
call fcn.00489b60
add esp, 4
mov dword [ebp - 0x74], 0xf
mov dword [ebp - 0x78], 0
mov byte [ebp - 0x88], 0
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0xd8]
call fcn.00483470
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x5c], 0x10
jb 0x4860aa
push dword [ebp - 0x70]
call fcn.00489b60
add esp, 4
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [edi + 0x30]
xor bl, bl
cmp byte [edi + 0x44], bl
je 0x485c41
mov eax, dword [edi + 0x24]
cmp eax, 0xffffffff
je 0x4860ef
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x24], 0xffffffff
mov al, 1
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.00722035
mov esp, ebp
pop ebp
ret