Function at 0x54202c
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 [0x674014]
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 0x542065
mov eax, dword [edi + 8]
mov dword [ebp - 0x14], eax
movsd xmm0, qword [edi]
movsd qword [ebp - 0x1c], xmm0
jmp 0x542072
lea ecx, [ebp - 0x1c]
push dword [edi + 4]
push dword [edi]
call fcn.004ab2ee
movzx eax, byte [ebp - 0x11]
test al, al
jns 0x54207d
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x5420d4
call fcn.004bb260
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.004c0f20
add esp, 0x18
cmp byte [ebp - 0x11], 0
jns 0x5420c4
push dword [ebp - 0x1c]
call fcn.005dc756
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 0x5420e9
jne 0x5420f8
jmp 0x5420f3
cmp dword [edi + 0x10], 0
je 0x5420f3
mov eax, dword [eax]
jmp 0x5420f8
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
je 0x54221e
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.00436773
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 0x542176
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.0041dc1e
lea ebx, [ebp - 0x44]
mov ecx, ebx
call fcn.004f1b32
mov esp, dword [ebp - 0x48]
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x1c]
push eax
call fcn.0042da00
mov esi, esp
sub esp, 8
mov ecx, esp
push ebx
call fcn.004f1ae0
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.004f1a94
mov esp, esi
mov ecx, ebx
call fcn.004f1b60
cmp byte [ebp - 0x31], 0
jns 0x5421eb
push dword [ebp - 0x3c]
call fcn.005dc756
add esp, 4
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x5421f9
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp byte [ebp - 0x11], 0
jns 0x54220a
push dword [ebp - 0x1c]
call fcn.005dc756
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005dd6f3
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea esi, [ebp - 0x28]
push 0x3a
push str.....mojopubliccppplatform_named_platform_channel_win.cc
push esi
call fcn.00541fc0
add esp, 0xc
mov ecx, esi
call fcn.00541f80
mov ecx, esi
call fcn.00541f90
jmp 0x542110