Function at 0x4ca120
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cde54
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x50e018]
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, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov esi, ecx
mov dword [ebp - 0x50], eax
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], cx
mov dword [ebp - 4], eax
cmp dword [edi + 0x1c], eax
je 0x4ca2c3
push 0xd
push str.Not_Available
lea ecx, [ebp - 0x2c]
call fcn.00411070
mov eax, dword [edi + 0x1c]
push 0
push 0
push 0
lea edx, [ebp - 0x54]
push edx
push eax
mov dword [ebp - 0x54], 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeInfo]
mov eax, ebx
and eax, 1
mov dword [ebp - 0x4c], eax
mov al, byte [ebp - 0x54]
mov dword [ebp - 4], 0
je 0x4ca1b9
test al, 1
je 0x4ca1c2
test bl, 2
je 0x4ca229
test al, 1
je 0x4ca229
call sub.brbase.dll_int___cdecl_logging::GetMinLogLevel_void_
cmp eax, 1
jg 0x4ca208
push 1
push 0xe1
push str.ipc_channel_win.cc
lea ecx, [ebp - 0x104]
call sub.brbase.dll_public:_void___thiscall_logging::LogMessage::constructor_char_const___int__int_
push ebx
add eax, 8
push str.Inconsistent_open_mode._Mode_:
push eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x50], 4
call fcn.00405c70
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP100.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 byte [ebp - 0x50], 4
mov dword [ebp - 4], 0
je 0x4ca559
lea ecx, [ebp - 0x104]
call sub.brbase.dll_public:_void___thiscall_logging::LogMessage::destructor_void_
jmp 0x4ca559
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 0
push 0
lea edx, [esi + 0x1064]
push edx
call ebx
push eax
mov eax, dword [edi + 0x1c]
push eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x4ca3b4
call sub.brbase.dll_int___cdecl_logging::GetMinLogLevel_void_
cmp eax, 1
jg 0x4ca2a2
push 1
push 0xeb
push str.ipc_channel_win.cc
lea ecx, [ebp - 0x104]
call sub.brbase.dll_public:_void___thiscall_logging::LogMessage::constructor_char_const___int__int_
mov esi, eax
mov byte [ebp - 4], 4
mov dword [ebp - 0x50], 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DuplicateHandle_failed._Error_:
add esi, 8
push esi
call fcn.00405c70
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP100.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 byte [ebp - 0x50], 8
mov dword [ebp - 4], 0
je 0x4ca559
lea ecx, [ebp - 0x104]
call sub.brbase.dll_public:_void___thiscall_logging::LogMessage::destructor_void_
jmp 0x4ca559
mov ecx, ebx
and ecx, 1
mov dword [ebp - 0x4c], ecx
je 0x4ca346
lea ebx, [esi + 0x1088]
push ebx
lea edx, [ebp - 0x48]
push edi
push edx
call fcn.004c9990
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 6
call fcn.00410ba0
mov edi, 8
mov byte [ebp - 4], 0
cmp dword [ebp - 0x34], edi
jb 0x4ca30c
mov eax, dword [ebp - 0x48]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp dword [ebx], 0
mov eax, dword [ebp - 0x2c]
setne cl
mov byte [esi + 0x1086], cl
cmp dword [ebp - 0x18], edi
jae 0x4ca323
lea eax, [ebp - 0x2c]
push 0
push 0x1388
push 0x1000
push 0x1000
push 1
push 0
push 0x40080003
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
jmp 0x4ca3ae
test bl, 2
je 0x4ca3b4
lea edx, [esi + 0x1088]
push edx
lea eax, [ebp - 0x48]
push edi
push eax
call fcn.004c9990
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 8
call fcn.00410ba0
mov edi, 8
mov byte [ebp - 4], 0
cmp dword [ebp - 0x34], edi
jb 0x4ca38a
mov ecx, dword [ebp - 0x48]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x4ca395
lea eax, [ebp - 0x2c]
push 0
push 0x40110000
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x1064], eax
cmp dword [esi + 0x1064], 0xffffffff
jne 0x4ca48a
call sub.brbase.dll_int___cdecl_logging::GetMinLogLevel_void_
cmp eax, 1
jg 0x4ca45f
cmp dword [ebp - 0x4c], 0
mov edi, str.server
jne 0x4ca3df
mov edi, str.client
push 1
push 0x10d
push str.ipc_channel_win.cc
lea ecx, [ebp - 0x104]
call sub.brbase.dll_public:_void___thiscall_logging::LogMessage::constructor_char_const___int__int_
add eax, 8
push str.Unable_to_create_pipe__
push eax
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x50], 0x80
call fcn.00405c70
mov ecx, dword [ebp - 0x2c]
add esp, 8
cmp dword [ebp - 0x18], 8
jae 0x4ca41e
lea ecx, [ebp - 0x2c]
push ecx
push eax
call sub.brbase.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_operator___class_std::basic_ostream_char__struct_std::char_traits_char_____wchar_t_const__
add esp, 8
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._mode._Error_:
push edi
push str.__in
push esi
call fcn.00405c70
add esp, 8
push eax
call fcn.00405c70
add esp, 8
push eax
call fcn.00405c70
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP100.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 byte [ebp - 0x50], 0x80
mov dword [ebp - 4], 0
je 0x4ca477
lea ecx, [ebp - 0x104]
call sub.brbase.dll_public:_void___thiscall_logging::LogMessage::destructor_void_
cmp dword [ebp - 0x18], 8
jb 0x4ca56b
mov edx, dword [ebp - 0x2c]
push edx
jmp 0x4ca563
push 0x18
call fcn.004a66e4
add esp, 4
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 0xb
test eax, eax
je 0x4ca4b3
push 2
push 0xffff
push 0xfffffffffffffffe
mov ecx, eax
call fcn.004c8790
mov edi, eax
jmp 0x4ca4b5
xor edi, edi
mov dword [ebp - 0x54], edi
cmp byte [esi + 0x1086], 0
mov byte [ebp - 4], 0xc
je 0x4ca4c9
xor ebx, ebx
jmp 0x4ca4cf
mov ebx, dword [esi + 0x1088]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x4c], eax
push 4
lea eax, [ebp - 0x4c]
push eax
mov ecx, edi
call sub.brbase.dll_public:_bool___thiscall_Pickle::WriteBytes_void_const___int_
test al, al
je 0x4ca530
test ebx, ebx
je 0x4ca501
push 4
lea ecx, [ebp - 0x4c]
push ecx
mov ecx, edi
mov dword [ebp - 0x4c], ebx
call sub.brbase.dll_public:_bool___thiscall_Pickle::WriteBytes_void_const___int_
test al, al
je 0x4ca530
lea edx, [ebp - 0x4c]
push edx
lea ecx, [esi + 0x106c]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x4c], edi
call fcn.004c9670
cmp dword [ebp - 0x18], 8
jb 0x4ca52c
mov eax, dword [ebp - 0x2c]
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov al, 1
jmp 0x4ca56d
mov ecx, dword [esi + 0x1064]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x1064], 0xffffffff
mov byte [ebp - 4], 0
test edi, edi
je 0x4ca559
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
cmp dword [ebp - 0x18], 8
jb 0x4ca56b
mov ecx, dword [ebp - 0x2c]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor al, al
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.004a665a
mov esp, ebp
pop ebp
ret 8