Function at 0x55c630
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
mov eax, dword [0x5c31c8]
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 0x55c7ac
push 0xd
push str.Not_Available
lea ecx, [ebp - 0x1c]
call fcn.00402021
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 0x55c6ac
test cl, 1
je 0x55c6b5
test al, 2
je 0x55c70f
test cl, 1
je 0x55c70f
call fcn.0053bc30
cmp eax, 1
jg 0x55c6f6
push 1
push 0xe4
push str.ipc_channel_win.cc
lea ecx, [ebp - 0xf8]
mov ebx, 8
call fcn.0053b1b0
push dword [ebp - 0x40]
add eax, ebx
push str.Inconsistent_open_mode._Mode_:
push eax
call fcn.00409f76
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 0x55c9ab
lea ecx, [ebp - 0xf8]
call fcn.0053b3a0
jmp 0x55c9ab
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 0x55c796
call fcn.0053bc30
cmp eax, 1
jg 0x55c77d
push 1
push 0xef
push str.ipc_channel_win.cc
lea ecx, [ebp - 0xf8]
mov ebx, 0x10
call fcn.0053b1b0
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.00409f76
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 0x55c9ab
lea ecx, [ebp - 0xf8]
call fcn.0053b3a0
jmp 0x55c9ab
push dword [ebp - 0x48]
lea ecx, [edi + 0x1060]
call fcn.0053196a
mov esi, dword [ebp - 0x38]
jmp 0x55c890
mov esi, eax
and esi, 1
je 0x55c826
lea eax, [edi + 0x1084]
push eax
push ecx
lea eax, [ebp - 0x34]
push eax
call fcn.0055cbc0
lea ecx, [ebp - 0x1c]
add esp, 0xc
cmp ecx, eax
je 0x55c7d8
push 0xffffffffffffffff
push 0
push eax
call fcn.00401f92
cmp dword [ebp - 0x20], 8
jb 0x55c7e9
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 0x55c884
test al, 2
je 0x55c890
lea eax, [edi + 0x1084]
push eax
push ecx
lea eax, [ebp - 0x34]
push eax
call fcn.0055cbc0
lea ecx, [ebp - 0x1c]
add esp, 0xc
cmp ecx, eax
je 0x55c84f
push 0xffffffffffffffff
push 0
push eax
call fcn.00401f92
cmp dword [ebp - 0x20], 8
jb 0x55c860
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.0053196a
mov eax, dword [edi + 0x1060]
test eax, eax
je 0x55c914
cmp eax, 0xffffffff
je 0x55c914
push 0x18
call fcn.0055dc1e
add esp, 4
test eax, eax
je 0x55c8c1
push 2
push 0xffff
push 0xfffffffffffffffe
mov ecx, eax
call fcn.0055bf50
mov esi, eax
jmp 0x55c8c3
xor esi, esi
cmp byte [edi + 0x107e], bl
je 0x55c8cf
xor ebx, ebx
jmp 0x55c8d5
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.0053ef00
test ebx, ebx
je 0x55c8fb
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], ebx
push eax
mov ecx, esi
call fcn.0053ef00
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], esi
push eax
lea ecx, [edi + 0x1068]
call fcn.0055d480
mov bl, 1
jmp 0x55c9ad
call fcn.0053bc30
cmp eax, 1
jg 0x55c998
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.0053b370
add eax, 0x10
push str.Unable_to_create_pipe__
push eax
call fcn.00409f76
cmp dword [ebp - 8], 8
lea ecx, [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x1c]
push ecx
push eax
call fcn.0053b6d0
add esp, 0x10
mov edx, str.client
test esi, esi
mov ecx, str.server
cmove ecx, edx
push 0x57d704
push ecx
push str.__in
push eax
call fcn.00409f76
add esp, 8
push eax
call fcn.00409f76
add esp, 8
push eax
call fcn.00409f76
add esp, 8
test ebx, 0x100
je 0x55c9ab
lea ecx, [ebp - 0x100]
call fcn.0053b650
xor bl, bl
cmp dword [ebp - 8], 8
jb 0x55c9be
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.0055daac
mov esp, ebp
pop ebp
ret 8