Function at 0x4ffffc
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov eax, dword [0x63a1e8]
mov ebx, dword [ebp + 0xc]
lea edi, [ebp - 0x28]
mov ecx, edi
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
call fcn.00478694
movzx eax, byte [edi + 0xb]
test al, al
jns 0x500028
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x5000db
call fcn.00484240
mov dword [ebp - 0x48], eax
mov edi, edx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea esi, [ebp - 0x1c]
push edi
push dword [ebp - 0x48]
push ebx
push eax
push str._lu._lu._I64u
push esi
call fcn.00489c60
add esp, 0x18
movzx eax, byte [esi + 0xb]
test al, al
jns 0x50006d
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x34]
push eax
push esi
push ecx
call fcn.0048a430
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x50008c
push dword [ebp - 0x1c]
call fcn.005909b6
add esp, 4
cmp byte [ebp - 0x1d], 0
mov ebx, dword [ebp + 0xc]
lea edi, [ebp - 0x28]
js 0x5000a4
mov word [ebp - 0x28], 0
mov byte [ebp - 0x1d], 0
jmp 0x5000cb
mov eax, dword [ebp - 0x28]
mov word [eax], 0
mov dword [ebp - 0x24], 0
cmp byte [ebp - 0x1d], 0
jns 0x5000cb
push dword [ebp - 0x28]
call fcn.005909b6
add esp, 4
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x2c]
movsd xmm0, qword [ebp - 0x34]
mov dword [ebp - 0x20], eax
movsd qword [ebp - 0x28], xmm0
xor eax, eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], eax
lea eax, [ebx + 0xc]
cmp byte [ebx + 0x17], 0
js 0x5000f0
jne 0x5000ff
jmp 0x5000fa
cmp dword [ebx + 0x10], 0
je 0x5000fa
mov eax, dword [eax]
jmp 0x5000ff
mov eax, 0x5d6474
lea ecx, [ebp - 0x3c]
lea edx, [ebp - 0x38]
push ecx
push edx
push 1
push eax
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
je 0x500219
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x1c], 0xc
mov esi, ebx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, edi
lea edi, [ebp - 0x34]
movzx ebx, byte [ebx + 0x18]
shl ebx, 0x13
or ebx, 0x40000003
push eax
push str..pipemojo.
push edi
call fcn.0041ff9a
add esp, 0xc
mov dword [ebp - 0x50], esp
push eax
xor ecx, ecx
mov eax, 0xff
mov dword [ebp - 0x4c], esp
inc ecx
cmp byte [esi + 0x18], 0
cmovne eax, ecx
cmp byte [edi + 0xb], 0
jns 0x50016e
mov edi, dword [ebp - 0x34]
lea ecx, [ebp - 0x1c]
mov edx, 0x1000
mov esi, 8
push ecx
push 0x1388
push edx
push edx
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov edx, dword [ebp - 0x4c]
xor ecx, ecx
mov dword [edx], ecx
mov ecx, edx
push eax
call fcn.00408a4a
lea esi, [ebp - 0x44]
mov ecx, esi
call fcn.004bb722
mov esp, dword [ebp - 0x50]
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x28]
push eax
call fcn.004787fa
mov edi, esp
sub esp, 8
mov ecx, esp
push esi
call fcn.004bb6c0
mov ebx, dword [ebp + 8]
mov ecx, ebx
call fcn.004bb674
mov esp, edi
mov ecx, esi
call fcn.004bb760
cmp byte [ebp - 0x29], 0
jns 0x5001e6
push dword [ebp - 0x34]
call fcn.005909b6
add esp, 4
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x5001f4
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp byte [ebp - 0x1d], 0
jns 0x500205
push dword [ebp - 0x28]
call fcn.005909b6
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005909f1
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea esi, [ebp - 0x1c]
push 0x3b
push str..._.._mojo_public_cpp_platform_named_platform_channel_win.cc
push esi
call fcn.004fff90
add esp, 0xc
mov ecx, esi
call fcn.004fff60
mov ecx, esi
call fcn.004fff70
jmp 0x500117