Function at 0x55ea70
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
mov eax, dword [0x5ca1c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 8], 7
mov dword [ebp - 0xc], ebx
mov word [ebp - 0x1c], dx
cmp dword [ecx + 0x18], edx
je 0x55ebec
push 0xd
push str.Not_Available
lea ecx, [ebp - 0x1c]
call fcn.00401fa1
push ebx
push ebx
push ebx
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], ebx
push eax
mov eax, dword [ebp - 0x3c]
push dword [eax + 0x18]
call dword [sym.imp.KERNEL32.dll_GetNamedPipeInfo]
mov eax, dword [ebp - 0x40]
mov ecx, eax
and ecx, 1
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp - 0x44]
je 0x55eaec
test cl, 1
je 0x55eaf5
test al, 2
je 0x55eb4f
test cl, 1
je 0x55eb4f
call fcn.0053e160
cmp eax, 1
jg 0x55eb36
push 1
push 0xe4
push str.ipc_channel_win.cc
lea ecx, [ebp - 0xf8]
mov ebx, 8
call fcn.0053d6e0
push dword [ebp - 0x40]
add eax, ebx
push str.Inconsistent_open_mode._Mode_:
push eax
call fcn.00409e4f
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP120.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
test bl, 8
je 0x55edeb
lea ecx, [ebp - 0xf8]
call fcn.0053d8d0
jmp 0x55edeb
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [ebp - 0x48]
push 2
push 0
push 0
push eax
call esi
push eax
mov eax, dword [ebp - 0x3c]
push dword [eax + 0x18]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x55ebd6
call fcn.0053e160
cmp eax, 1
jg 0x55ebbd
push 1
push 0xef
push str.ipc_channel_win.cc
lea ecx, [ebp - 0xf8]
mov ebx, 0x10
call fcn.0053d6e0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esi + 8]
push str.DuplicateHandle_failed._Error_:
push eax
call fcn.00409e4f
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP120.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
test bl, 0x10
je 0x55edeb
lea ecx, [ebp - 0xf8]
call fcn.0053d8d0
jmp 0x55edeb
push dword [ebp - 0x48]
lea ecx, [edi + 0x1060]
call fcn.0053363a
mov esi, dword [ebp - 0x38]
jmp 0x55ecd0
mov esi, eax
and esi, 1
je 0x55ec66
lea eax, [edi + 0x1084]
push eax
push ecx
lea eax, [ebp - 0x34]
push eax
call fcn.0055eff0
lea ecx, [ebp - 0x1c]
add esp, 0xc
cmp ecx, eax
je 0x55ec18
push 0xffffffffffffffff
push 0
push eax
call fcn.00401f12
cmp dword [ebp - 0x20], 8
jb 0x55ec29
push dword [ebp - 0x34]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [edi + 0x1084], ebx
push 0
push 0x1388
push 0x1000
push 0x1000
setne al
cmp dword [ebp - 8], 8
push 1
mov byte [edi + 0x107e], al
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push 0
push 0x40080003
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
jmp 0x55ecc4
test al, 2
je 0x55ecd0
lea eax, [edi + 0x1084]
push eax
push ecx
lea eax, [ebp - 0x34]
push eax
call fcn.0055eff0
lea ecx, [ebp - 0x1c]
add esp, 0xc
cmp ecx, eax
je 0x55ec8f
push 0xffffffffffffffff
push 0
push eax
call fcn.00401f12
cmp dword [ebp - 0x20], 8
jb 0x55eca0
push dword [ebp - 0x34]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
push 0
cmovae eax, dword [ebp - 0x1c]
push 0x40110000
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [edi + 0x1060]
call fcn.0053363a
mov eax, dword [edi + 0x1060]
test eax, eax
je 0x55ed54
cmp eax, 0xffffffff
je 0x55ed54
push 0x18
call fcn.0056004e
add esp, 4
test eax, eax
je 0x55ed01
push 2
push 0xffff
push 0xfffffffffffffffe
mov ecx, eax
call fcn.0055e3c0
mov esi, eax
jmp 0x55ed03
xor esi, esi
cmp byte [edi + 0x107e], bl
je 0x55ed0f
xor ebx, ebx
jmp 0x55ed15
mov ebx, dword [edi + 0x1084]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x38], eax
mov ecx, esi
lea eax, [ebp - 0x38]
push eax
call fcn.00541430
test ebx, ebx
je 0x55ed3b
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], ebx
push eax
mov ecx, esi
call fcn.00541430
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], esi
push eax
lea ecx, [edi + 0x1068]
call fcn.0055f8b0
mov bl, 1
jmp 0x55eded
call fcn.0053e160
cmp eax, 1
jg 0x55edd8
mov ebx, 0x100
call sub.KERNEL32.dll_GetLastError
push eax
push 1
push 0x112
push str.ipc_channel_win.cc
lea ecx, [ebp - 0x100]
call fcn.0053d8a0
add eax, 0x10
push str.Unable_to_create_pipe__
push eax
call fcn.00409e4f
cmp dword [ebp - 8], 8
lea ecx, [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x1c]
push ecx
push eax
call fcn.0053dc00
add esp, 0x10
mov edx, str.client
test esi, esi
mov ecx, str.server
cmove ecx, edx
push 0x5816fc
push ecx
push str.__in
push eax
call fcn.00409e4f
add esp, 8
push eax
call fcn.00409e4f
add esp, 8
push eax
call fcn.00409e4f
add esp, 8
test ebx, 0x100
je 0x55edeb
lea ecx, [ebp - 0x100]
call fcn.0053db80
xor bl, bl
cmp dword [ebp - 8], 8
jb 0x55edfe
push dword [ebp - 0x1c]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055fedc
mov esp, ebp
pop ebp
ret 8