Function at 0x49db60
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55ec64
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x5c7cec]
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 - 0x74], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x68], 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 - 0x68]
push ebx
mov dword [ebp - 0x70], 0
mov ebx, dword [ebp - 0x5c]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov esi, eax
mov dword [ebp - 0x64], esi
cmp esi, 0xffffffff
jne 0x49dbe1
or eax, eax
jmp 0x49de05
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.00408740
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.004263eb
add esp, 0xc
test eax, eax
jne 0x49dd8d
push 0x12
push str.DeviceNamedPipe_
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00408740
mov eax, dword [ebp - 0x30]
mov byte [ebp - 4], 1
lea eax, [edi + eax*2]
mov ecx, eax
mov dword [ebp - 0x6c], eax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49dc60
mov eax, dword [ebp - 0x14]
sub ecx, edx
mov edx, dword [ebp - 0x18]
sub eax, edx
sar ecx, 1
cmp ecx, eax
ja 0x49dcad
cmp dword [ebp - 0x14], 8
lea esi, [ebp - 0x28]
lea eax, [ecx + ecx]
cmovae esi, dword [ebp - 0x28]
lea edi, [edx + ecx]
push eax
push dword [ebp - 0x6c]
mov dword [ebp - 0x18], edi
lea eax, [esi + edx*2]
push eax
call fcn.00528b70
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
mov esi, dword [ebp - 0x64]
mov edi, dword [ebp - 0x68]
jmp 0x49dcc1
push ecx
push dword [ebp - 0x6c]
mov byte [ebp - 0x64], 0
push dword [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x28]
call fcn.004465c0
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 2
push eax
push esi
call fcn.0043eae0
add esp, 8
test al, al
je 0x49dd23
cmp dword [ebp - 0x48], 0
je 0x49dd23
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x58]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x44], 8
push ecx
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.0040b363
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
lea ecx, [ebp - 0x58]
call fcn.00408e50
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00408e50
cmp byte [ebp - 0x60], 0
je 0x49dd8d
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
push 1
mov eax, ecx
or eax, 0x112
and bl, 2
push 0
cmove eax, ecx
push eax
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x74]
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x49ddf8
mov esi, dword [ebp - 0x5c]
jmp 0x49ddfb
call fcn.00414d00
test eax, eax
jg 0x49ddf1
call fcn.00414d00
test eax, eax
jg 0x49ddd9
push 0
push 0x31
push str.d:dcbcbt_mainimportsopenchromechrome_src_sandbox_src_named_pipe_policy.cc
lea ecx, [ebp - 0x124]
call fcn.0048d090
push edi
add eax, 8
mov byte [ebp - 4], 3
push str.SameObject_check_failed:
push eax
mov dword [ebp - 0x70], 1
call fcn.00473f90
add esp, 8
push eax
call fcn.0048d680
add esp, 8
test byte [ebp - 0x70], 1
mov dword [ebp - 4], 0
je 0x49ddf1
lea ecx, [ebp - 0x124]
call fcn.0048d350
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00408e50
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.0040154f
mov esp, ebp
pop ebp
ret