Function at 0x47f500
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x524004
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x579630]
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 ebx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
or ebx, 8
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 0x47f57e
or eax, eax
jmp 0x47f77c
push 9
xor eax, eax
mov byte [ebp - 0x60], 0
push str._pipe_
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call fcn.00407750
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.004208a2
add esp, 0xc
test eax, eax
jne 0x47f6fb
push str.DeviceNamedPipe_
lea ecx, [ebp - 0x58]
call fcn.004076f0
mov eax, dword [ebp - 0x30]
cmp word [edi + eax*2], 0
lea edx, [edi + eax*2]
mov byte [ebp - 4], 1
jne 0x47f5ee
xor ecx, ecx
jmp 0x47f606
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x6c], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47f5f6
sub ecx, dword [ebp - 0x6c]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.0040ef80
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.00430460
add esp, 8
test al, al
je 0x47f672
cmp dword [ebp - 0x18], 0
je 0x47f672
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.00409df7
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 0x47f683
push dword [ebp - 0x28]
call fcn.004085be
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 0x47f6ab
push dword [ebp - 0x58]
call fcn.004085be
add esp, 4
cmp byte [ebp - 0x60], 0
je 0x47f6fb
mov eax, ebx
mov dword [ebp - 0x5c], 0xffffffff
and eax, 0x80000
or eax, 0x100000
test bl, 1
je 0x47f6ce
or eax, 0x89
test bl, 2
je 0x47f6d8
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 0x47f766
mov esi, dword [ebp - 0x5c]
jmp 0x47f769
call fcn.00412c10
test eax, eax
jg 0x47f75f
call fcn.00412c10
test eax, eax
jg 0x47f747
push 0
push 0x31
push str.src_named_pipe_policy.cc
lea ecx, [ebp - 0x11c]
call fcn.0046e250
push edi
add eax, 8
mov byte [ebp - 4], 3
push str.SameObject_check_failed:
push eax
mov dword [ebp - 0x64], 1
call fcn.0045b4a0
add esp, 8
push eax
call fcn.0046e6c0
add esp, 8
test byte [ebp - 0x64], 1
mov dword [ebp - 4], 0
je 0x47f75f
lea ecx, [ebp - 0x11c]
call fcn.0046e3c0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, 0xffffffff
cmp dword [ebp - 0x2c], 8
jb 0x47f77a
push dword [ebp - 0x40]
call fcn.004085be
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.00401590
mov esp, ebp
pop ebp
ret