Function at 0x46bcf0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x553948]
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 0x46bedd
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.004063e0
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
jae 0x46bd81
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x10]
push edx
push eax
push edi
call fcn.00417b2b
add esp, 0xc
test eax, eax
jne 0x46be66
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.004063e0
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 0x46bdc0
sub eax, edi
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x58]
call fcn.0040e6e0
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.0042d6d0
add esp, 8
test al, al
je 0x46be2d
cmp dword [ebp - 0x2c], ebx
je 0x46be2d
mov ecx, dword [ebp - 0x58]
mov eax, 8
cmp dword [ebp - 0x44], eax
jae 0x46be10
lea ecx, [ebp - 0x58]
cmp dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x3c]
jae 0x46be1b
lea eax, [ebp - 0x3c]
push ecx
push eax
call fcn.00408866
add esp, 8
test eax, eax
jne 0x46be2d
mov byte [ebp - 0x59], 1
cmp dword [ebp - 0x28], 8
jb 0x46be3f
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.00406fa9
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 0x46be5d
mov eax, dword [ebp - 0x58]
push eax
call fcn.00406fa9
add esp, 4
cmp byte [ebp - 0x59], bl
jne 0x46bef1
call fcn.0040ee70
test eax, eax
jg 0x46bec4
call fcn.0040ee70
test eax, eax
jg 0x46beb1
push 0
push 0x31
push str.src_named_pipe_policy.cc
lea ecx, [ebp - 0x120]
mov ebx, 1
call fcn.0045c530
mov ecx, dword [ebp - 0x64]
push ecx
add eax, 8
push str.SameObject_check_failed:
push eax
call fcn.00449da0
add esp, 8
push eax
call fcn.0045c5c0
add esp, 8
jmp 0x46beb4
mov bl, byte [ebp - 0x6c]
test bl, 1
je 0x46bec4
lea ecx, [ebp - 0x120]
call fcn.0045cab0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], 8
jb 0x46bedd
mov edx, dword [ebp - 0x20]
push edx
call fcn.00406fa9
add esp, 4
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.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 0x46bf11
or eax, 0x89
test cl, 2
je 0x46bf1b
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 0x46becb
cmp dword [ebp - 0xc], 8
mov esi, dword [ebp - 0x60]
jb 0x46bf4e
mov eax, dword [ebp - 0x20]
push eax
call fcn.00406fa9
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401316
mov esp, ebp
pop ebp
ret