Function at 0x1003dda6
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x100701f0]
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 - 0x3c], esi
xor ecx, ecx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x40], edx
mov dword [ebp - 8], 7
mov dword [ebp - 0xc], edx
mov word [ebp - 0x1c], cx
cmp dword [esi + 0x18], edx
je 0x1003df04
mov ebx, str.Not_Available
push ebx
call fcn.10005bf0
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x1c]
call fcn.10007bc0
xor eax, eax
push eax
push eax
push eax
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push eax
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_GetNamedPipeInfo]
mov eax, dword [ebp - 0x4c]
xor ebx, ebx
mov ecx, eax
inc ebx
and ecx, ebx
mov dword [ebp - 0x44], ecx
je 0x1003de27
test byte [ebp - 0x48], bl
je 0x1003de31
test al, 2
je 0x1003de77
test byte [ebp - 0x48], 1
je 0x1003de77
call fcn.10009750
cmp eax, ebx
jg 0x1003de71
push ebx
push 0x109
push str.b:core_srcipcipc_channel_win.cc
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0x40], 4
call fcn.100097c0
push dword [ebp - 0x4c]
add eax, 8
push str.Inconsistent_open_mode._Mode_:
push eax
call fcn.100038f0
pop ecx
pop ecx
mov ecx, eax
call fcn.10003cb0
test byte [ebp - 0x40], 4
jmp 0x1003deee
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [edi + 0x1060]
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 0x1003dfd6
call fcn.10009750
cmp eax, ebx
jg 0x1003deea
push ebx
push 0x113
push str.b:core_srcipcipc_channel_win.cc
lea ecx, [ebp - 0xfc]
mov dword [ebp - 0x40], 8
call fcn.100097c0
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.100038f0
pop ecx
pop ecx
mov ecx, eax
call fcn.1000a1b0
test byte [ebp - 0x40], 8
je 0x1003e077
lea ecx, [ebp - 0xfc]
call fcn.10009810
jmp 0x1003e077
xor ebx, ebx
mov ecx, eax
inc ebx
and ecx, ebx
mov dword [ebp - 0x44], ecx
je 0x1003df79
lea eax, [edi + 0x1084]
push eax
lea eax, [ebp - 0x34]
push esi
push eax
call fcn.1003e3e1
lea ecx, [ebp - 0x1c]
add esp, 0xc
cmp ecx, eax
je 0x1003df35
push 0xffffffffffffffff
push 0
push eax
call fcn.100073e0
push 0
push ebx
lea ecx, [ebp - 0x34]
call fcn.10002f90
xor edx, edx
mov ecx, 0x1000
cmp dword [edi + 0x1084], edx
push edx
push 0x1388
push ecx
push ecx
setne al
cmp dword [ebp - 8], 8
push ebx
mov byte [edi + 0x107e], al
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push edx
push 0x40080003
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
jmp 0x1003dfd0
test al, 2
je 0x1003dfd6
lea eax, [edi + 0x1084]
push eax
lea eax, [ebp - 0x34]
push esi
push eax
call fcn.1003e3e1
lea ecx, [ebp - 0x1c]
add esp, 0xc
cmp ecx, eax
je 0x1003dfa2
push 0xffffffffffffffff
push 0
push eax
call fcn.100073e0
push 0
push ebx
lea ecx, [ebp - 0x34]
call fcn.10002f90
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
xor ecx, ecx
push ecx
push 0x40110000
push 3
push ecx
push ecx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 0x1060], eax
cmp dword [edi + 0x1060], 0xffffffff
jne 0x1003e07d
call fcn.10009750
cmp eax, ebx
jg 0x1003e066
mov dword [ebp - 0x40], 0x80
call sub.KERNEL32.dll_GetLastError
push eax
push ebx
push 0x135
push str.b:core_srcipcipc_channel_win.cc
lea ecx, [ebp - 0x104]
call fcn.10009f80
add eax, 0x10
push str.Unable_to_create_pipe__
push eax
call fcn.100038f0
cmp dword [ebp - 8], 8
lea ecx, [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x1c]
push ecx
push eax
call fcn.1000a060
add esp, 0x10
mov edx, str.client
cmp dword [ebp - 0x44], 0
mov ecx, str.server
cmove ecx, edx
push str._mode
push ecx
push str.__in
push eax
call fcn.100038f0
pop ecx
pop ecx
push eax
call fcn.100038f0
pop ecx
pop ecx
push eax
call fcn.100038f0
pop ecx
pop ecx
test byte [ebp - 0x40], 0x80
je 0x1003e077
lea ecx, [ebp - 0x104]
call fcn.10009fe0
mov byte [ebp - 0x35], 0
jmp 0x1003e0f9
push 0x18
call fcn.1004240d
pop ecx
test eax, eax
je 0x1003e09d
push 2
push 0xffff
push 0xfffffffffffffffe
mov ecx, eax
call fcn.1003d7cc
mov esi, eax
jmp 0x1003e09f
xor esi, esi
cmp byte [edi + 0x107e], 0
je 0x1003e0ac
xor eax, eax
jmp 0x1003e0b2
mov eax, dword [edi + 0x1084]
mov dword [ebp - 0x44], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x3c], eax
mov ecx, esi
lea eax, [ebp - 0x3c]
push eax
call fcn.10014ab0
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x1003e0de
mov dword [ebp - 0x3c], eax
mov ecx, esi
lea eax, [ebp - 0x3c]
push eax
call fcn.10014ab0
or dword [edi + 0x1080], ebx
lea eax, [ebp - 0x3c]
push eax
lea ecx, [edi + 0x1068]
mov dword [ebp - 0x3c], esi
call fcn.1003eaa0
mov byte [ebp - 0x35], bl
push 0
push ebx
lea ecx, [ebp - 0x1c]
call fcn.10002f90
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x35]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.10042bf9
mov esp, ebp
pop ebp
ret 8