Function at 0x471ee0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x508f54
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x556620]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x24]
mov edx, dword [ebp + 0x20]
mov esi, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x28]
push eax
push ecx
push edx
push esi
push edi
mov edi, dword [ebp - 0x60]
push ebx
mov dword [ebp - 0x64], 0
mov ebx, dword [ebp - 0x5c]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x471f5b
or eax, eax
jmp 0x472159
push 9
xor eax, eax
mov byte [ebp - 0x60], 0
push 0x518694
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call fcn.004073d0
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
push eax
push edi
mov dword [ebp - 4], 0
call fcn.0041abf5
add esp, 0xc
test eax, eax
jne 0x4720d8
push str.DeviceNamedPipe_
lea ecx, [ebp - 0x58]
call fcn.00407370
mov eax, dword [ebp - 0x30]
cmp word [edi + eax*2], 0
lea edx, [edi + eax*2]
mov byte [ebp - 4], 1
jne 0x471fcb
xor ecx, ecx
jmp 0x471fe3
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x6c], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x471fd3
sub ecx, dword [ebp - 0x6c]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.0040efb0
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
push esi
call fcn.0042c8d0
add esp, 8
test al, al
je 0x47204f
cmp dword [ebp - 0x18], 0
je 0x47204f
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x58]
lea eax, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x58]
cmp dword [ebp - 0x14], 8
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004099a7
mov ecx, dword [ebp - 0x60]
add esp, 8
test eax, eax
movzx ecx, cl
mov edx, 1
cmove ecx, edx
mov dword [ebp - 0x60], ecx
cmp dword [ebp - 0x14], 8
jb 0x472060
push dword [ebp - 0x28]
call fcn.0040823e
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
cmp dword [ebp - 0x44], 8
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov byte [ebp - 4], al
jb 0x472088
push dword [ebp - 0x58]
call fcn.0040823e
add esp, 4
cmp byte [ebp - 0x60], 0
je 0x4720d8
mov eax, ebx
mov dword [ebp - 0x5c], 0xffffffff
and eax, 0x80000
or eax, 0x100000
test bl, 1
je 0x4720ab
or eax, 0x89
test bl, 2
je 0x4720b5
or eax, 0x112
push 1
push 0
push eax
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x68]
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x472143
mov esi, dword [ebp - 0x5c]
jmp 0x472146
call fcn.00410920
test eax, eax
jg 0x47213c
call fcn.00410920
test eax, eax
jg 0x472124
push 0
push 0x31
push str.src_named_pipe_policy.cc
lea ecx, [ebp - 0x11c]
call fcn.00461ff0
push edi
add eax, 8
mov byte [ebp - 4], 3
push str.SameObject_check_failed:
push eax
mov dword [ebp - 0x64], 1
call fcn.004506c0
add esp, 8
push eax
call fcn.00462450
add esp, 8
test byte [ebp - 0x64], 1
mov dword [ebp - 4], 0
je 0x47213c
lea ecx, [ebp - 0x11c]
call fcn.00462150
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, 0xffffffff
cmp dword [ebp - 0x2c], 8
jb 0x472157
push dword [ebp - 0x40]
call fcn.0040823e
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00401580
mov esp, ebp
pop ebp
ret