Function at 0x1003e5c4
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1006e1e0]
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 - 0x50], 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 0x1003e723
mov ebx, str.Not_Available
push ebx
call fcn.10005ac0
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x1c]
call fcn.10007a20
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 0x1003e645
test byte [ebp - 0x48], bl
je 0x1003e64f
test al, 2
je 0x1003e695
test byte [ebp - 0x48], 1
je 0x1003e695
call fcn.10009620
cmp eax, ebx
jg 0x1003e68f
push ebx
push 0xe6
push str.b:_sienium_srcipcipc_channel_win.cc
lea ecx, [ebp - 0x100]
mov dword [ebp - 0x40], 8
call fcn.10009690
push dword [ebp - 0x4c]
add eax, 8
push str.Inconsistent_open_mode._Mode_:
push eax
call fcn.100024c0
pop ecx
pop ecx
mov ecx, eax
call fcn.1000a090
test byte [ebp - 0x40], 8
jmp 0x1003e705
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [ebp - 0x3c]
push 2
push 0
push 0
push eax
call esi
push eax
mov eax, dword [ebp - 0x50]
push dword [eax + 0x18]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x1003e71b
call fcn.10009620
cmp eax, ebx
jg 0x1003e701
push ebx
push 0xf1
push str.b:_sienium_srcipcipc_channel_win.cc
lea ecx, [ebp - 0x100]
mov dword [ebp - 0x40], 0x10
call fcn.10009690
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.100024c0
pop ecx
pop ecx
mov ecx, eax
call fcn.1000a1d0
test byte [ebp - 0x40], 0x10
je 0x1003e8a3
lea ecx, [ebp - 0x100]
call fcn.100096e0
jmp 0x1003e8a3
push dword [ebp - 0x3c]
jmp 0x1003e7f0
xor ebx, ebx
mov ecx, eax
inc ebx
and ecx, ebx
mov dword [ebp - 0x44], ecx
je 0x1003e798
lea eax, [edi + 0x1084]
push eax
lea eax, [ebp - 0x34]
push esi
push eax
call fcn.1003ebc0
lea ecx, [ebp - 0x1c]
add esp, 0xc
cmp ecx, eax
je 0x1003e754
push 0xffffffffffffffff
push 0
push eax
call fcn.100072a0
push 0
push ebx
lea ecx, [ebp - 0x34]
call fcn.10001fc0
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 0x1003e7ef
test al, 2
je 0x1003e7fb
lea eax, [edi + 0x1084]
push eax
lea eax, [ebp - 0x34]
push esi
push eax
call fcn.1003ebc0
lea ecx, [ebp - 0x1c]
add esp, 0xc
cmp ecx, eax
je 0x1003e7c1
push 0xffffffffffffffff
push 0
push eax
call fcn.100072a0
push 0
push ebx
lea ecx, [ebp - 0x34]
call fcn.10001fc0
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 + 0x1060]
call fcn.10010700
push dword [edi + 0x1060]
call fcn.10010570
pop ecx
test al, al
jne 0x1003e8a9
call fcn.10009620
mov esi, 0x100
cmp eax, ebx
jg 0x1003e893
mov dword [ebp - 0x40], esi
call sub.KERNEL32.dll_GetLastError
push eax
push ebx
push 0x114
push str.b:_sienium_srcipcipc_channel_win.cc
lea ecx, [ebp - 0x108]
call fcn.10009e90
add eax, 0x10
push str.Unable_to_create_pipe__
push eax
call fcn.100024c0
cmp dword [ebp - 8], 8
lea ecx, [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x1c]
push ecx
push eax
call fcn.10009f70
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.100024c0
pop ecx
pop ecx
push eax
call fcn.100024c0
pop ecx
pop ecx
push eax
call fcn.100024c0
pop ecx
pop ecx
test dword [ebp - 0x40], esi
je 0x1003e8a3
lea ecx, [ebp - 0x108]
call fcn.10009ef0
mov byte [ebp - 0x35], 0
jmp 0x1003e91f
push 0x1c
call fcn.10042bca
pop ecx
test eax, eax
je 0x1003e8c9
push 2
push 0xffff
push 0xfffffffffffffffe
mov ecx, eax
call fcn.1003df4d
mov esi, eax
jmp 0x1003e8cb
xor esi, esi
cmp byte [edi + 0x107e], 0
je 0x1003e8d8
xor eax, eax
jmp 0x1003e8de
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.10016300
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x1003e90a
mov dword [ebp - 0x3c], eax
mov ecx, esi
lea eax, [ebp - 0x3c]
push eax
call fcn.10016300
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], esi
push eax
lea ecx, [edi + 0x1068]
call fcn.1003f1f0
mov byte [ebp - 0x35], bl
push 0
push ebx
lea ecx, [ebp - 0x1c]
call fcn.10001fc0
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x35]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.100433a9
mov esp, ebp
pop ebp
ret 8