Function at 0x4a7890
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x576824
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x5edd38]
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 - 0x6c], 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 0x4a790e
or eax, eax
jmp 0x4a7b36
push 9
xor eax, eax
mov byte [ebp - 0x60], 0
push str._pipe_
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.00408f30
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.00420fc8
add esp, 0xc
test eax, eax
jne 0x4a7aaa
push 0x12
push str.DeviceNamedPipe_
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.00408f30
mov eax, dword [ebp - 0x30]
mov byte [ebp - 4], 1
lea edx, [edi + eax*2]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x68], eax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a7990
sub ecx, dword [ebp - 0x68]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.0040ddb0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
push esi
call fcn.004304a0
add esp, 8
test al, al
je 0x4a7a0c
cmp dword [ebp - 0x18], 0
je 0x4a7a0c
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.0040c291
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
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 3
cmp eax, 8
jb 0x4a7a25
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0040a2e0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 4
cmp eax, 8
jb 0x4a7a52
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.0040a2e0
cmp byte [ebp - 0x60], 0
mov byte [ebp - 4], 0
je 0x4a7aaa
test bl, 1
mov dword [ebp - 0x5c], 0xffffffff
mov eax, 0x100000
mov ecx, 0x100089
cmove ecx, eax
mov eax, ebx
and eax, 0x80000
or ecx, eax
test bl, 2
je 0x4a7a87
or ecx, 0x112
push 1
push 0
push ecx
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x6c]
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x4a7b15
mov esi, dword [ebp - 0x5c]
jmp 0x4a7b18
call fcn.00414d40
test eax, eax
jg 0x4a7b0e
call fcn.00414d40
test eax, eax
jg 0x4a7af6
push 0
push 0x31
push str.D:DCBCBT_MainImportsOpenChromeChrome_src_sandbox_src_named_pipe_policy.cc
lea ecx, [ebp - 0x11c]
call fcn.00496330
push edi
add eax, 8
mov byte [ebp - 4], 5
push str.SameObject_check_failed:
push eax
mov dword [ebp - 0x64], 1
call fcn.0047a5e0
add esp, 8
push eax
call fcn.004968a0
add esp, 8
test byte [ebp - 0x64], 1
mov dword [ebp - 4], 0
je 0x4a7b0e
lea ecx, [ebp - 0x11c]
call fcn.004965b0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, 0xffffffff
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 4], 8
cmp ecx, 8
jb 0x4a7b34
inc ecx
push ecx
push dword [ebp - 0x40]
lea ecx, [ebp - 0x40]
call fcn.0040a2e0
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.00401682
mov esp, ebp
pop ebp
ret