Function at 0x411a50
Capabilities:
Check if file exists
Create pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x470adb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax], 1
jne 0x411ade
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x1c], 0xffffffff
jne 0x411ade
mov ecx, dword [ebp - 0x10]
call fcn.00411db0
mov edx, dword [ebp - 0x10]
add edx, 0x20
push edx
push 0
push 0
push 0
push 0xff
push 6
push 3
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.004047a0
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x1c], eax
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x1c], 0xffffffff
jne 0x411ad9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Create_Pipe_Failed___GetLastError_d_n
call fcn.004119d0
add esp, 8
xor al, al
jmp 0x411d63
jmp 0x411d61
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x1c], 0xffffffff
jne 0x411c6b
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.004047a0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x1c], eax
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x1c], 0xffffffff
jne 0x411b32
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Create_TrustAgent_Pipe_Failed__GetLastError__:_d_n
call fcn.004119d0
add esp, 8
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x411be5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x411b6b
push 0x4834b4
call fcn.004119d0
add esp, 4
jmp 0x411bdc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4834cc
call fcn.004119d0
add esp, 8
mov ecx, dword [ebp - 0x10]
call fcn.00411f40
test eax, eax
jne 0x411ba6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ConnectNamedPipe_failed___GetLastError_d_n
call fcn.004119d0
add esp, 8
xor al, al
jmp 0x411d63
push 0x483534
lea ecx, [ebp - 0x28]
call fcn.00404ab0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.00412090
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00404920
mov al, 1
jmp 0x411d63
xor al, al
jmp 0x411d63
push 0x48353c
call fcn.004119d0
add esp, 4
mov al, 1
jmp 0x411d63
push 0
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x411d18
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x411ca4
push str.Pipe_does_not_exist__n
call fcn.004119d0
add esp, 4
jmp 0x411d12
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Pipe_exists_but_disconnected__Connecting__GetLastError_d_n
call fcn.004119d0
add esp, 8
mov ecx, dword [ebp - 0x10]
call fcn.00411f40
test eax, eax
jne 0x411cdf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ConnectNamedPipe_failed__GetLastError_d_n
call fcn.004119d0
add esp, 8
xor al, al
jmp 0x411d63
push 0x483600
lea ecx, [ebp - 0x70]
call fcn.00404ab0
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x70]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.00412090
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00404920
mov al, 1
jmp 0x411d63
xor al, al
jmp 0x411d63
push str.Pipe_exists__n
call fcn.004119d0
add esp, 4
mov al, 1
jmp 0x411d63
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret