Function at 0x1004fd50
Capabilities:
Check if file exists
Create pipe
Create two anonymous pipes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
mov ebx, ecx
xor al, al
mov dword [ebp - 8], ebx
cmp byte [ebx + 4], al
jne 0x1005018f
cmp byte [ebp + 0xc], 0
push esi
mov esi, dword [ebp + 8]
push edi
mov byte [ebp - 1], al
mov edi, str.Global_
mov eax, 0x1024cb86
push esi
cmove edi, eax
lea eax, [ebp - 0x118]
push edi
push str._s_s_SharedMemLock
push 0x104
push eax
call fcn.100bb550
push esi
push edi
push str._s_s_SharedMemFile
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.100bb550
add esp, 0x28
lea eax, [ebp - 0x118]
push eax
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x10050159
lea eax, [ebp - 0x21c]
push eax
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
jne 0x1004fe21
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenFileMapping_returned_NULL__errno_d_
push 0xf6
push str.C:_buildworker_steam_rel_client_win32_build_srccommonprocesspipe_any.cpp
call fcn.100ada00
add esp, 0x10
test al, al
jne 0x1005014c
int3
push 0x1388
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1004fe3e
cmp eax, 0x80
jne 0x10050144
push 0
push 0
push 0
push 2
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
jne 0x1004fe7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.MapViewOfFile_returned_NULL__errno_d_
push 0xff
push str.C:_buildworker_steam_rel_client_win32_build_srccommonprocesspipe_any.cpp
call fcn.100ada00
add esp, 0x10
test al, al
jne 0x10050141
int3
cmp dword [ebx + 4], 0
je 0x1004fea1
push str.pSharedMemFile__m_nLockState__k_EMasterStateAvailable
push 0x105
push str.C:_buildworker_steam_rel_client_win32_build_srccommonprocesspipe_any.cpp
call fcn.100ad9f0
add esp, 0xc
test al, al
jne 0x1004fea1
int3
mov edi, dword [ebp - 8]
mov eax, dword [edi + 0x9c]
mov eax, dword [eax]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
call sub.KERNEL32.dll_GetCurrentProcessId
push dword [ebx + 8]
mov dword [ebx + 0xc], eax
push 1
push 0x40
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x10050008
mov eax, dword [edi + 0xa0]
mov dword [ebp + 0xc], 0xffffffff
mov esi, dword [eax]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
push 0
push 0x1f0003
lea ecx, [ebp + 0xc]
push ecx
push dword [ebp - 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [ebp + 8], ecx
mov dword [ebx + 0x1c], eax
test ecx, ecx
je 0x1004fff9
mov eax, dword [edi + 0x9c]
mov dword [ebp + 0xc], 0xffffffff
mov esi, dword [eax]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
push 0
push 0x1f0003
lea ecx, [ebp + 0xc]
push ecx
push dword [ebp - 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
and dword [ebp + 8], eax
lea esi, [edi + 0xa8]
mov eax, dword [ebp + 0xc]
push 0x2000
push 0
mov dword [ebx + 0x18], eax
lea eax, [edi + 0x94]
mov edi, dword [sym.imp.KERNEL32.dll_CreatePipe]
push esi
push eax
call edi
and dword [ebp + 8], eax
mov esi, dword [esi]
mov dword [ebp + 0xc], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
push 0
push 0x40000000
lea ecx, [ebp + 0xc]
push ecx
push dword [ebp - 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
and dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 8]
push 0x2000
push 0
lea esi, [eax + 0xa4]
add eax, 0x98
push eax
push esi
call edi
mov edi, dword [ebp + 8]
mov esi, dword [esi]
and edi, eax
mov dword [ebp + 0xc], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
push 0
push SysReAllocString
lea ecx, [ebp + 0xc]
push ecx
push dword [ebp - 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, edi
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp - 8]
mov dword [ebx + 0x10], eax
setne al
mov byte [ebx + 0x20], al
mov eax, dword [ebp - 0xc]
cmp eax, 0xffffffff
je 0x10050008
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 4], 1
xor esi, esi
cmp dword [ebx + 4], 2
je 0x1005003a
cmp esi, 0x1388
jge 0x10050030
push 0x19
add esi, 0x19
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebx + 4], 2
jne 0x10050017
cmp dword [ebx + 4], 2
jne 0x10050131
cmp byte [ebx + 0x20], 0
jne 0x10050126
mov eax, dword [edi + 0x98]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xffffffff
je 0x10050062
push eax
call esi
mov dword [edi + 0x98], 0xffffffff
mov ecx, dword [edi + 0x94]
lea eax, [edi + 0x94]
cmp ecx, 0xffffffff
je 0x10050082
push ecx
call esi
lea eax, [edi + 0x94]
mov dword [eax], 0xffffffff
mov ecx, dword [edi + 0xa8]
mov dword [ebp + 0xc], eax
cmp ecx, 0xffffffff
je 0x100500a6
push ecx
call esi
lea eax, [edi + 0x94]
mov dword [edi + 0xa8], 0xffffffff
mov dword [ebp + 0xc], eax
mov eax, dword [edi + 0xa4]
cmp eax, 0xffffffff
je 0x100500c3
push eax
call esi
mov esi, dword [ebp + 0xc]
mov dword [edi + 0xa4], 0xffffffff
jmp 0x100500c9
lea esi, [edi + 0x94]
mov eax, dword [edi + 0xa0]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x100500f4
mov ecx, eax
call fcn.100aea80
push 8
push dword [ebp + 0xc]
call fcn.100c15fb
add esp, 8
mov dword [edi + 0xa0], 0
mov eax, dword [ebx + 0x10]
mov dword [esi], eax
mov eax, dword [ebx + 0x14]
push 8
mov dword [edi + 0x98], eax
call fcn.100c162c
add esp, 4
test eax, eax
je 0x1005011e
push 1
push dword [ebx + 0x1c]
mov ecx, eax
call fcn.100ae5c0
jmp 0x10050120
xor eax, eax
mov dword [edi + 0xa0], eax
mov dword [ebx + 4], 3
mov byte [ebp - 1], 1
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp - 8]
cmp edi, 0xffffffff
je 0x1005014c
push edi
call esi
mov eax, dword [ebp - 0x10]
cmp eax, 0xffffffff
je 0x10050181
push eax
call esi
jmp 0x10050181
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10050181
push eax
push str.OpenEvent_returned_NULL__errno_d_
push 0x15b
push str.C:_buildworker_steam_rel_client_win32_build_srccommonprocesspipe_any.cpp
call fcn.100ada00
add esp, 0x10
test al, al
jne 0x10050181
int3
mov al, byte [ebp - 1]
mov ecx, dword [ebp + 0x10]
pop edi
mov dword [ebx + 0xc], ecx
mov byte [ebx + 4], al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14