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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53a2e0
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 0x4132ee
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x1c], 0xffffffff
jne 0x4132ee
mov ecx, dword [ebp - 0x10]
call fcn.00413590
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.0040b100
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 0x4132e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x53daf0
call fcn.004139d0
add esp, 8
xor al, al
jmp 0x413573
jmp 0x413571
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x1c], 0xffffffff
jne 0x41347b
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.0040b100
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 0x413342
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Create_TrustAgent_Pipe_Failed__GetLastError__:_d_n
call fcn.004139d0
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 0x4133f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x41337b
push 0x53db4c
call fcn.004139d0
add esp, 4
jmp 0x4133ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x53db64
call fcn.004139d0
add esp, 8
mov ecx, dword [ebp - 0x10]
call fcn.00413210
test eax, eax
jne 0x4133b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ConnectNamedPipe_failed___GetLastError_d_n
call fcn.004139d0
add esp, 8
xor al, al
jmp 0x413573
push 0x53dbcc
lea ecx, [ebp - 0x28]
call fcn.00403e90
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.00413850
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004040f0
mov al, 1
jmp 0x413573
xor al, al
jmp 0x413573
push 0x53dbd4
call fcn.004139d0
add esp, 4
mov al, 1
jmp 0x413573
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 0x413528
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4134b4
push str.Pipe_does_not_exist__n
call fcn.004139d0
add esp, 4
jmp 0x413522
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Pipe_exists_but_disconnected__Connecting__GetLastError_d_n
call fcn.004139d0
add esp, 8
mov ecx, dword [ebp - 0x10]
call fcn.00413210
test eax, eax
jne 0x4134ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ConnectNamedPipe_failed__GetLastError_d_n
call fcn.004139d0
add esp, 8
xor al, al
jmp 0x413573
push 0x53dc98
lea ecx, [ebp - 0x70]
call fcn.00403e90
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x70]
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.00413850
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.004040f0
mov al, 1
jmp 0x413573
xor al, al
jmp 0x413573
push str.Pipe_exists__n
call fcn.004139d0
add esp, 4
mov al, 1
jmp 0x413573
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret