Function at 0x467df0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x54e938]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x28]
push esi
mov esi, dword [ebp + 0x1c]
push edi
mov edi, dword [ebp + 0x20]
push ebx
mov dword [ebp - 0x68], edx
mov edx, dword [ebp + 0x24]
push edx
push edi
push esi
mov dword [ebp - 0x64], ecx
mov ecx, dword [ebp + 0x18]
mov edi, dword [ebp - 0x64]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x14]
push ecx
push eax
mov eax, dword [ebp - 0x68]
push eax
push edi
mov dword [ebp - 0x6c], 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov esi, eax
cmp esi, 0xffffffff
je 0x467fdd
xor ecx, ecx
push 9
mov word [ebp - 0x20], cx
xor ebx, ebx
push str._pipe_
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x59], 0
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], ebx
call fcn.00406300
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
jae 0x467e81
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x10]
push edx
push eax
push edi
call fcn.0041799b
add esp, 0xc
test eax, eax
jne 0x467f66
push 0x12
push str.DeviceNamedPipe_
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], ebx
mov word [ebp - 0x58], ax
call fcn.00406300
mov ecx, dword [ebp - 0x10]
lea ecx, [edi + ecx*2]
mov eax, ecx
lea edi, [eax + 2]
nop
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x467ec0
sub eax, edi
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x58]
call fcn.0040e560
lea eax, [ebp - 0x3c]
push eax
xor edx, edx
mov edi, 7
push esi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], ebx
mov word [ebp - 0x3c], dx
call fcn.0042b1f0
add esp, 8
test al, al
je 0x467f2d
cmp dword [ebp - 0x2c], ebx
je 0x467f2d
mov ecx, dword [ebp - 0x58]
mov eax, 8
cmp dword [ebp - 0x44], eax
jae 0x467f10
lea ecx, [ebp - 0x58]
cmp dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x3c]
jae 0x467f1b
lea eax, [ebp - 0x3c]
push ecx
push eax
call fcn.004086e6
add esp, 8
test eax, eax
jne 0x467f2d
mov byte [ebp - 0x59], 1
cmp dword [ebp - 0x28], 8
jb 0x467f3f
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00406ec9
add esp, 4
xor edx, edx
cmp dword [ebp - 0x44], 8
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], ebx
mov word [ebp - 0x3c], dx
jb 0x467f5d
mov eax, dword [ebp - 0x58]
push eax
call fcn.00406ec9
add esp, 4
cmp byte [ebp - 0x59], bl
jne 0x467ff1
call fcn.0040ecf0
test eax, eax
jg 0x467fc4
call fcn.0040ecf0
test eax, eax
jg 0x467fb1
push 0
push 0x31
push str.src_named_pipe_policy.cc
lea ecx, [ebp - 0x120]
mov ebx, 1
call fcn.00458750
mov ecx, dword [ebp - 0x64]
push ecx
add eax, 8
push str.SameObject_check_failed:
push eax
call fcn.004461c0
add esp, 8
push eax
call fcn.004587e0
add esp, 8
jmp 0x467fb4
mov bl, byte [ebp - 0x6c]
test bl, 1
je 0x467fc4
lea ecx, [ebp - 0x120]
call fcn.00458cd0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], 8
jb 0x467fdd
mov edx, dword [ebp - 0x20]
push edx
call fcn.00406ec9
add esp, 4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call int.00401316
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x68]
mov eax, ecx
and eax, 0x80000
or eax, 0x100000
mov dword [ebp - 0x60], 0xffffffff
test cl, 1
je 0x468011
or eax, 0x89
test cl, 2
je 0x46801b
or eax, 0x112
mov ecx, dword [ebp - 0x70]
push 1
push ebx
push eax
lea eax, [ebp - 0x60]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x467fcb
cmp dword [ebp - 0xc], 8
mov esi, dword [ebp - 0x60]
jb 0x46804e
mov eax, dword [ebp - 0x20]
push eax
call fcn.00406ec9
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call int.00401316
mov esp, ebp
pop ebp
ret