Function at 0x45ccaf
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4a601c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0x4c], esi
xor ecx, ecx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x3c], edx
mov dword [ebp - 8], 7
mov dword [ebp - 0xc], edx
mov word [ebp - 0x1c], cx
cmp dword [esi + 0x18], edx
je 0x45ce1a
mov ebx, str.Not_Available
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x1c]
call fcn.00406219
xor eax, eax
push eax
push eax
push eax
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
push eax
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_GetNamedPipeInfo]
mov eax, dword [ebp - 0x48]
xor ebx, ebx
mov ecx, eax
inc ebx
and ecx, ebx
mov dword [ebp - 0x40], ecx
je 0x45cd31
test byte [ebp - 0x44], bl
je 0x45cd3b
test al, 2
je 0x45cd86
test byte [ebp - 0x44], 1
je 0x45cd86
push ebx
call dword [sym.imp.infra.dll_bool___cdecl_logging::ShouldCreateLogMessage_int_]
pop ecx
test al, al
je 0x45cd80
push ebx
push 0x144
push str.ipc_channel_win.cc
lea ecx, [ebp - 0x100]
mov dword [ebp - 0x3c], 8
call dword [sym.imp.infra.dll_public:_void___thiscall_logging::LogMessage::constructor_char_const___int__int_]
push dword [ebp - 0x48]
add eax, 8
push str.Inconsistent_open_mode._Mode_:
push eax
call fcn.0040225e
pop ecx
pop ecx
mov ecx, eax
call dword [sym.imp.MSVCP140.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 - 0x3c], 8
jmp 0x45cdfb
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [ebp - 0x50]
push 2
push 0
push 0
push eax
call esi
push eax
mov eax, dword [ebp - 0x4c]
push dword [eax + 0x18]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x45ce12
push ebx
call dword [sym.imp.infra.dll_bool___cdecl_logging::ShouldCreateLogMessage_int_]
pop ecx
test al, al
je 0x45cdf7
push ebx
push 0x14f
push str.ipc_channel_win.cc
lea ecx, [ebp - 0x100]
mov dword [ebp - 0x3c], 0x10
call dword [sym.imp.infra.dll_public:_void___thiscall_logging::LogMessage::constructor_char_const___int__int_]
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.0040225e
pop ecx
pop ecx
mov ecx, eax
call dword [sym.imp.MSVCP140.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 - 0x3c], 0x10
je 0x45cfa1
lea ecx, [ebp - 0x100]
call dword [sym.imp.infra.dll_public:_void___thiscall_logging::LogMessage::destructor_void_]
jmp 0x45cfa1
push dword [ebp - 0x50]
jmp 0x45cee7
xor ebx, ebx
mov ecx, eax
inc ebx
and ecx, ebx
mov dword [ebp - 0x40], ecx
je 0x45ce8f
lea eax, [edi + 0x10b8]
push eax
lea eax, [ebp - 0x34]
push esi
push eax
call fcn.0045d3a5
lea ecx, [ebp - 0x1c]
add esp, 0xc
cmp ecx, eax
je 0x45ce4b
push 0xffffffffffffffff
push 0
push eax
call fcn.00406333
push 0
push ebx
lea ecx, [ebp - 0x34]
call fcn.004061c2
xor edx, edx
mov ecx, 0x1000
cmp dword [edi + 0x10b8], edx
push edx
push 0x1388
push ecx
push ecx
setne al
cmp dword [ebp - 8], 8
push ebx
mov byte [edi + 0x10b2], al
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push edx
push 0x40080003
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
jmp 0x45cee6
test al, 2
je 0x45cef2
lea eax, [edi + 0x10b8]
push eax
lea eax, [ebp - 0x34]
push esi
push eax
call fcn.0045d3a5
lea ecx, [ebp - 0x1c]
add esp, 0xc
cmp ecx, eax
je 0x45ceb8
push 0xffffffffffffffff
push 0
push eax
call fcn.00406333
push 0
push ebx
lea ecx, [ebp - 0x34]
call fcn.004061c2
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
xor ecx, ecx
push ecx
push 0x40100000
push 3
push ecx
push ecx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [edi + 0x1080]
call fcn.0043e50b
push dword [edi + 0x1080]
call fcn.0043d183
pop ecx
test al, al
jne 0x45cfaa
push ebx
call dword [sym.imp.infra.dll_bool___cdecl_logging::ShouldCreateLogMessage_int_]
mov esi, 0x100
pop ecx
test al, al
je 0x45cf90
mov dword [ebp - 0x3c], esi
call dword [sym.imp.infra.dll_unsigned_long_int___cdecl_logging::GetLastSystemErrorCode_void_]
push eax
push ebx
push 0x172
push str.ipc_channel_win.cc
lea ecx, [ebp - 0x108]
call dword [sym.imp.infra.dll_public:_void___thiscall_logging::Win32ErrorLogMessage::constructor_char_const___int__int__unsigned_long_int_]
add eax, 0x10
push str.Unable_to_create_pipe__
push eax
call fcn.0040225e
cmp dword [ebp - 8], 8
lea ecx, [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.infra.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::operator___class_std::basic_ostream_char__struct_std::char_traits_char_____wchar_t_const__]
add esp, 0x10
mov edx, str.client
cmp dword [ebp - 0x40], 0
mov ecx, str.server
cmove ecx, edx
push str._mode
push ecx
push str.__in
push eax
call fcn.0040225e
pop ecx
pop ecx
push eax
call fcn.0040225e
pop ecx
pop ecx
push eax
call fcn.0040225e
pop ecx
pop ecx
test dword [ebp - 0x3c], esi
je 0x45cfa1
lea ecx, [ebp - 0x108]
call dword [sym.imp.infra.dll_public:_void___thiscall_logging::Win32ErrorLogMessage::destructor_void_]
mov byte [ebp - 0x35], 0
jmp 0x45d05d
push 0x20
call fcn.00460973
pop ecx
test eax, eax
je 0x45cfc8
push 2
push 0xffff
push 0xfffffffffffffffe
mov ecx, eax
call fcn.0045de17
jmp 0x45cfca
xor eax, eax
cmp byte [edi + 0x10b2], 0
mov esi, eax
mov dword [ebp - 0x3c], eax
je 0x45cfdc
xor eax, eax
jmp 0x45cfe2
mov eax, dword [edi + 0x10b8]
mov dword [ebp - 0x40], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [ebp - 0x3c]
push eax
call dword [sym.imp.infra.dll_public:_bool___thiscall_base::Pickle::WriteInt_int_]
test al, al
je 0x45d043
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x45d00e
mov ecx, dword [ebp - 0x3c]
push eax
call dword [sym.imp.infra.dll_public:_bool___thiscall_base::Pickle::WriteUInt32_unsigned_int_]
test al, al
je 0x45d043
push 0xc
call fcn.00460973
pop ecx
test eax, eax
je 0x45d02b
push dword [ebp - 0x3c]
mov ecx, eax
xor esi, esi
call fcn.0045e927
mov dword [ebp - 0x40], eax
jmp 0x45d02f
and dword [ebp - 0x40], 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [edi + 0x109c]
call fcn.0045dcc8
mov byte [ebp - 0x35], bl
jmp 0x45d052
lea ecx, [edi + 0x1080]
call fcn.0043e4d5
mov byte [ebp - 0x35], 0
test esi, esi
je 0x45d05d
mov edx, dword [esi]
mov ecx, esi
push ebx
call dword [edx]
push 0
push ebx
lea ecx, [ebp - 0x1c]
call fcn.004061c2
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x35]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00460962
mov esp, ebp
pop ebp
ret 8