Function at 0x4627ee
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x49d01c]
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 0x462959
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.00406202
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 0x462870
test byte [ebp - 0x44], bl
je 0x46287a
test al, 2
je 0x4628c5
test byte [ebp - 0x44], 1
je 0x4628c5
push ebx
call dword [sym.imp.infra.dll_bool___cdecl_logging::ShouldCreateLogMessage_int_]
pop ecx
test al, al
je 0x4628bf
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.00402252
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 0x46293a
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 0x462951
push ebx
call dword [sym.imp.infra.dll_bool___cdecl_logging::ShouldCreateLogMessage_int_]
pop ecx
test al, al
je 0x462936
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.00402252
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 0x462ae0
lea ecx, [ebp - 0x100]
call dword [sym.imp.infra.dll_public:_void___thiscall_logging::LogMessage::destructor_void_]
jmp 0x462ae0
push dword [ebp - 0x50]
jmp 0x462a26
xor ebx, ebx
mov ecx, eax
inc ebx
and ecx, ebx
mov dword [ebp - 0x40], ecx
je 0x4629ce
lea eax, [edi + 0x10b8]
push eax
lea eax, [ebp - 0x34]
push esi
push eax
call fcn.00462ee4
lea ecx, [ebp - 0x1c]
add esp, 0xc
cmp ecx, eax
je 0x46298a
push 0xffffffffffffffff
push 0
push eax
call fcn.0040631c
push 0
push ebx
lea ecx, [ebp - 0x34]
call fcn.004061ab
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 0x462a25
test al, 2
je 0x462a31
lea eax, [edi + 0x10b8]
push eax
lea eax, [ebp - 0x34]
push esi
push eax
call fcn.00462ee4
lea ecx, [ebp - 0x1c]
add esp, 0xc
cmp ecx, eax
je 0x4629f7
push 0xffffffffffffffff
push 0
push eax
call fcn.0040631c
push 0
push ebx
lea ecx, [ebp - 0x34]
call fcn.004061ab
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.00442010
push dword [edi + 0x1080]
call fcn.00440c81
pop ecx
test al, al
jne 0x462ae9
push ebx
call dword [sym.imp.infra.dll_bool___cdecl_logging::ShouldCreateLogMessage_int_]
mov esi, 0x100
pop ecx
test al, al
je 0x462acf
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.00402252
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.00402252
pop ecx
pop ecx
push eax
call fcn.00402252
pop ecx
pop ecx
push eax
call fcn.00402252
pop ecx
pop ecx
test dword [ebp - 0x3c], esi
je 0x462ae0
lea ecx, [ebp - 0x108]
call dword [sym.imp.infra.dll_public:_void___thiscall_logging::Win32ErrorLogMessage::destructor_void_]
mov byte [ebp - 0x35], 0
jmp 0x462b9c
push 0x20
call fcn.00465d37
pop ecx
test eax, eax
je 0x462b07
push 2
push 0xffff
push 0xfffffffffffffffe
mov ecx, eax
call fcn.00463922
jmp 0x462b09
xor eax, eax
cmp byte [edi + 0x10b2], 0
mov esi, eax
mov dword [ebp - 0x3c], eax
je 0x462b1b
xor eax, eax
jmp 0x462b21
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 0x462b82
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x462b4d
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 0x462b82
push 0xc
call fcn.00465d37
pop ecx
test eax, eax
je 0x462b6a
push dword [ebp - 0x3c]
mov ecx, eax
xor esi, esi
call fcn.00464545
mov dword [ebp - 0x40], eax
jmp 0x462b6e
and dword [ebp - 0x40], 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [edi + 0x109c]
call fcn.004637d3
mov byte [ebp - 0x35], bl
jmp 0x462b91
lea ecx, [edi + 0x1080]
call fcn.00441fda
mov byte [ebp - 0x35], 0
test esi, esi
je 0x462b9c
mov edx, dword [esi]
mov ecx, esi
push ebx
call dword [edx]
push 0
push ebx
lea ecx, [ebp - 0x1c]
call fcn.004061ab
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x35]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00465d26
mov esp, ebp
pop ebp
ret 8