Function at 0x471110
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
mov eax, dword [0x4931e0]
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 0x47128c
push 0xd
push str.Not_Available
lea ecx, [ebp - 0x1c]
call fcn.00408370
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 0x47118c
test cl, 1
je 0x471195
test al, 2
je 0x4711ef
test cl, 1
je 0x4711ef
call fcn.0044b430
cmp eax, 1
jg 0x4711d6
push 1
push 0xe4
push str.ipc_channel_win.cc
lea ecx, [ebp - 0xf8]
mov ebx, 8
call fcn.0044a9b0
push dword [ebp - 0x40]
add eax, ebx
push str.Inconsistent_open_mode._Mode_:
push eax
call fcn.004022c0
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 0x47148b
lea ecx, [ebp - 0xf8]
call fcn.0044aba0
jmp 0x47148b
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 0x471276
call fcn.0044b430
cmp eax, 1
jg 0x47125d
push 1
push 0xef
push str.ipc_channel_win.cc
lea ecx, [ebp - 0xf8]
mov ebx, 0x10
call fcn.0044a9b0
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.004022c0
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 0x47148b
lea ecx, [ebp - 0xf8]
call fcn.0044aba0
jmp 0x47148b
push dword [ebp - 0x48]
lea ecx, [edi + 0x1060]
call fcn.0040ae50
mov esi, dword [ebp - 0x38]
jmp 0x471370
mov esi, eax
and esi, 1
je 0x471306
lea eax, [edi + 0x1084]
push eax
push ecx
lea eax, [ebp - 0x34]
push eax
call fcn.004716b0
lea ecx, [ebp - 0x1c]
add esp, 0xc
cmp ecx, eax
je 0x4712b8
push 0xffffffffffffffff
push 0
push eax
call fcn.00408570
cmp dword [ebp - 0x20], 8
jb 0x4712c9
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 0x471364
test al, 2
je 0x471370
lea eax, [edi + 0x1084]
push eax
push ecx
lea eax, [ebp - 0x34]
push eax
call fcn.004716b0
lea ecx, [ebp - 0x1c]
add esp, 0xc
cmp ecx, eax
je 0x47132f
push 0xffffffffffffffff
push 0
push eax
call fcn.00408570
cmp dword [ebp - 0x20], 8
jb 0x471340
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.0040ae50
mov eax, dword [edi + 0x1060]
test eax, eax
je 0x4713f4
cmp eax, 0xffffffff
je 0x4713f4
push 0x18
call sub.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x4713a1
push 2
push 0xffff
push 0xfffffffffffffffe
mov ecx, eax
call fcn.00470a60
mov esi, eax
jmp 0x4713a3
xor esi, esi
cmp byte [edi + 0x107e], bl
je 0x4713af
xor ebx, ebx
jmp 0x4713b5
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.0044bbd0
test ebx, ebx
je 0x4713db
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], ebx
push eax
mov ecx, esi
call fcn.0044bbd0
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], esi
push eax
lea ecx, [edi + 0x1068]
call fcn.00471f70
mov bl, 1
jmp 0x47148d
call fcn.0044b430
cmp eax, 1
jg 0x471478
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.0044ab70
add eax, 0x10
push str.Unable_to_create_pipe__
push eax
call fcn.004022c0
cmp dword [ebp - 8], 8
lea ecx, [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x1c]
push ecx
push eax
call fcn.0044aed0
add esp, 0x10
mov edx, str.client
test esi, esi
mov ecx, str.server
cmove ecx, edx
push 0x4796f0
push ecx
push str.__in
push eax
call fcn.004022c0
add esp, 8
push eax
call fcn.004022c0
add esp, 8
push eax
call fcn.004022c0
add esp, 8
test ebx, 0x100
je 0x47148b
lea ecx, [ebp - 0x100]
call fcn.0044ae50
xor bl, bl
cmp dword [ebp - 8], 8
jb 0x47149e
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.0047259d
mov esp, ebp
pop ebp
ret 8