Function at 0x4e7820
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x40
mov edi, dword [ebp + 0xc]
mov eax, dword [0x7a8498]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor ebx, ebx
dec ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
cmp byte [edi + 0xb], 0
js 0x4e7859
mov eax, dword [edi + 8]
mov dword [ebp - 0x14], eax
movsd xmm0, qword [edi]
movsd qword [ebp - 0x1c], xmm0
jmp 0x4e7866
lea ecx, [ebp - 0x1c]
push dword [edi + 4]
push dword [edi]
call fcn.00455932
movzx eax, byte [ebp - 0x11]
test al, al
jns 0x4e7871
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x4e78c8
call fcn.00464bd0
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], edx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea ecx, [ebp - 0x28]
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
push esi
push eax
push str._lu._lu._I64u
push ecx
call fcn.00468ed0
add esp, 0x18
cmp byte [ebp - 0x11], 0
jns 0x4e78b8
push dword [ebp - 0x1c]
call fcn.006c90e6
add esp, 4
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
movsd xmm0, qword [ebp - 0x28]
movsd qword [ebp - 0x1c], xmm0
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], eax
lea eax, [edi + 0xc]
cmp byte [edi + 0x17], 0
js 0x4e78dd
jne 0x4e78ec
jmp 0x4e78e7
cmp dword [edi + 0x10], 0
je 0x4e78e7
mov eax, dword [eax]
jmp 0x4e78ec
mov eax, str.D:_A__GA___SY__A__GA___BA__A__GA___OW_
lea ecx, [ebp - 0x30]
lea edx, [ebp - 0x2c]
push ecx
push edx
push 1
push eax
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
jne 0x4e7926
lea esi, [ebp - 0x28]
push str.::ConvertStringSecurityDescriptorToSecurityDescriptor__options.security_descriptor.empty_____kDefaultSecurityDescriptor_:_options.security_descriptor.c_str____SDDL_REVISION_1__security_desc__security_desc_len_
push 0x3a
push str..._.._mojo_public_cpp_platform_named_platform_channel_win.cc
push esi
call fcn.00458e30
add esp, 0x10
mov ecx, esi
call fcn.00458d80
mov ecx, esi
call fcn.00458d90
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], 0xc
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x20], eax
movzx edi, byte [edi + 0x18]
shl edi, 0x13
or edi, 0x40000003
lea esi, [ebp - 0x3c]
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
lea eax, [ebp - 0x1c]
push eax
push str..pipemojo.
push esi
call fcn.0045acd0
add esp, 0xc
mov dword [ebp - 0x48], esp
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
push eax
mov ebx, esp
xor ecx, ecx
inc ecx
mov eax, dword [ebp + 0xc]
cmp byte [eax + 0x18], 0
mov eax, 0xff
cmovne eax, ecx
cmp byte [esi + 0xb], 0
jns 0x4e798c
mov esi, dword [ebp - 0x3c]
lea ecx, [ebp - 0x28]
mov edx, 0x1000
push ecx
push 0x1388
push edx
push edx
push eax
mov eax, 8
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
xor ecx, ecx
mov dword [ebx], ecx
mov ecx, ebx
push eax
call fcn.0048676a
lea ebx, [ebp - 0x44]
mov ecx, ebx
call fcn.0048685c
mov esp, dword [ebp - 0x48]
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x1c]
push eax
call fcn.00406340
mov esi, esp
sub esp, 8
mov ecx, esp
push ebx
call fcn.0048680a
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.004867bc
mov esp, esi
mov ecx, ebx
call fcn.00486890
cmp byte [ebp - 0x31], 0
jns 0x4e7a01
push dword [ebp - 0x3c]
call fcn.006c90e6
add esp, 4
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x4e7a0f
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp byte [ebp - 0x11], 0
jns 0x4e7a20
push dword [ebp - 0x1c]
call fcn.006c90e6
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006c9121
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret