Function at 0x504b4c
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x6401e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea edi, [ebp - 0x28]
mov ecx, edi
push ebx
call fcn.00478e44
movzx eax, byte [edi + 0xb]
test al, al
jns 0x504b78
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x504c2b
call fcn.004855d0
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.0048b8d0
add esp, 0x18
movzx eax, byte [esi + 0xb]
test al, al
jns 0x504bbd
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x34]
push eax
push esi
push ecx
call fcn.0048c140
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x504bdc
push dword [ebp - 0x1c]
call fcn.00596316
add esp, 4
cmp byte [ebp - 0x1d], 0
lea edi, [ebp - 0x28]
mov ebx, dword [ebp + 0xc]
js 0x504bf4
mov word [ebp - 0x28], 0
mov byte [ebp - 0x1d], 0
jmp 0x504c1b
mov eax, dword [ebp - 0x28]
mov word [eax], 0
mov dword [ebp - 0x24], 0
cmp byte [ebp - 0x1d], 0
jns 0x504c1b
push dword [ebp - 0x28]
call fcn.00596316
add esp, 4
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x20], eax
movsd xmm0, qword [ebp - 0x34]
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 0x504c40
jne 0x504c4f
jmp 0x504c4a
cmp dword [ebx + 0x10], 0
je 0x504c4a
mov eax, dword [eax]
jmp 0x504c4f
mov eax, str.D:_A__GA___SY__A__GA___BA__A__GA___OW_
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 0x504d69
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x1c], 0xc
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov esi, ebx
movzx ebx, byte [ebx + 0x18]
shl ebx, 0x13
or ebx, 0x40000003
mov eax, edi
lea edi, [ebp - 0x34]
push eax
push str..pipemojo.
push edi
call fcn.0041ff87
add esp, 0xc
mov dword [ebp - 0x50], esp
push eax
mov dword [ebp - 0x4c], esp
xor ecx, ecx
inc ecx
cmp byte [esi + 0x18], 0
mov eax, 0xff
cmovne eax, ecx
cmp byte [edi + 0xb], 0
jns 0x504cbe
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]
xor ecx, ecx
mov edx, dword [ebp - 0x4c]
mov dword [edx], ecx
mov ecx, edx
push eax
call fcn.00408a9a
lea esi, [ebp - 0x44]
mov ecx, esi
call fcn.004be7a6
mov esp, dword [ebp - 0x50]
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x28]
push eax
call fcn.00478fb4
mov edi, esp
sub esp, 8
mov ecx, esp
push esi
call fcn.004be754
mov ebx, dword [ebp + 8]
mov ecx, ebx
call fcn.004be708
mov esp, edi
mov ecx, esi
call fcn.004be7ce
cmp byte [ebp - 0x29], 0
jns 0x504d36
push dword [ebp - 0x34]
call fcn.00596316
add esp, 4
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x504d44
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp byte [ebp - 0x1d], 0
jns 0x504d55
push dword [ebp - 0x28]
call fcn.00596316
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00596351
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.00504ae0
add esp, 0xc
mov ecx, esi
call fcn.00504ab0
mov ecx, esi
call fcn.00504ac0
jmp 0x504c67