Function at 0x54d210
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
mov eax, dword [0x5b31c8]
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 0x54d38c
push 0xd
push str.Not_Available
lea ecx, [ebp - 0x1c]
call fcn.00401f42
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 0x54d28c
test cl, 1
je 0x54d295
test al, 2
je 0x54d2ef
test cl, 1
je 0x54d2ef
call fcn.0052c840
cmp eax, 1
jg 0x54d2d6
push 1
push 0xe4
push str.ipc_channel_win.cc
lea ecx, [ebp - 0xf8]
mov ebx, 8
call fcn.0052bdc0
push dword [ebp - 0x40]
add eax, ebx
push str.Inconsistent_open_mode._Mode_:
push eax
call fcn.00409e6d
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 0x54d58b
lea ecx, [ebp - 0xf8]
call fcn.0052bfb0
jmp 0x54d58b
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 0x54d376
call fcn.0052c840
cmp eax, 1
jg 0x54d35d
push 1
push 0xef
push str.ipc_channel_win.cc
lea ecx, [ebp - 0xf8]
mov ebx, 0x10
call fcn.0052bdc0
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.00409e6d
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 0x54d58b
lea ecx, [ebp - 0xf8]
call fcn.0052bfb0
jmp 0x54d58b
push dword [ebp - 0x48]
lea ecx, [edi + 0x1060]
call fcn.0051e636
mov esi, dword [ebp - 0x38]
jmp 0x54d470
mov esi, eax
and esi, 1
je 0x54d406
lea eax, [edi + 0x1084]
push eax
push ecx
lea eax, [ebp - 0x34]
push eax
call fcn.0054d7a0
lea ecx, [ebp - 0x1c]
add esp, 0xc
cmp ecx, eax
je 0x54d3b8
push 0xffffffffffffffff
push 0
push eax
call fcn.00401eb3
cmp dword [ebp - 0x20], 8
jb 0x54d3c9
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 0x54d464
test al, 2
je 0x54d470
lea eax, [edi + 0x1084]
push eax
push ecx
lea eax, [ebp - 0x34]
push eax
call fcn.0054d7a0
lea ecx, [ebp - 0x1c]
add esp, 0xc
cmp ecx, eax
je 0x54d42f
push 0xffffffffffffffff
push 0
push eax
call fcn.00401eb3
cmp dword [ebp - 0x20], 8
jb 0x54d440
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.0051e636
mov eax, dword [edi + 0x1060]
test eax, eax
je 0x54d4f4
cmp eax, 0xffffffff
je 0x54d4f4
push 0x18
call fcn.0054e7ae
add esp, 4
test eax, eax
je 0x54d4a1
push 2
push 0xffff
push 0xfffffffffffffffe
mov ecx, eax
call fcn.0054cb30
mov esi, eax
jmp 0x54d4a3
xor esi, esi
cmp byte [edi + 0x107e], bl
je 0x54d4af
xor ebx, ebx
jmp 0x54d4b5
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.0052faf0
test ebx, ebx
je 0x54d4db
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], ebx
push eax
mov ecx, esi
call fcn.0052faf0
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], esi
push eax
lea ecx, [edi + 0x1068]
call fcn.0054e000
mov bl, 1
jmp 0x54d58d
call fcn.0052c840
cmp eax, 1
jg 0x54d578
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.0052bf80
add eax, 0x10
push str.Unable_to_create_pipe__
push eax
call fcn.00409e6d
cmp dword [ebp - 8], 8
lea ecx, [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x1c]
push ecx
push eax
call fcn.0052c2e0
add esp, 0x10
mov edx, str.client
test esi, esi
mov ecx, str.server
cmove ecx, edx
push 0x56e59c
push ecx
push str.__in
push eax
call fcn.00409e6d
add esp, 8
push eax
call fcn.00409e6d
add esp, 8
push eax
call fcn.00409e6d
add esp, 8
test ebx, 0x100
je 0x54d58b
lea ecx, [ebp - 0x100]
call fcn.0052c260
xor bl, bl
cmp dword [ebp - 8], 8
jb 0x54d59e
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.0054e63c
mov esp, ebp
pop ebp
ret 8