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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45713b
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x47706c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x8c], ecx
mov eax, dword [ebp - 0x8c]
cmp dword [eax], 1
jne 0x40ef16
mov ecx, dword [ebp - 0x8c]
cmp dword [ecx + 0x1c], 0xffffffff
jne 0x40ef16
mov ecx, dword [ebp - 0x8c]
call fcn.0040f210
mov edx, dword [ebp - 0x8c]
add edx, 0x20
push edx
push 0
push 0
push 0
push 0xff
push 6
push 3
mov ecx, dword [ebp - 0x8c]
add ecx, 4
call fcn.004040c0
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov ecx, dword [ebp - 0x8c]
mov dword [ecx + 0x1c], eax
mov edx, dword [ebp - 0x8c]
cmp dword [edx + 0x1c], 0xffffffff
jne 0x40ef11
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Create_Pipe_Failed___GetLastError_d_n
call fcn.0040ede0
add esp, 8
xor al, al
jmp 0x40f1c2
jmp 0x40f1c0
mov eax, dword [ebp - 0x8c]
cmp dword [eax + 0x1c], 0xffffffff
jne 0x40f0be
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
mov ecx, dword [ebp - 0x8c]
add ecx, 4
call fcn.004040c0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp - 0x8c]
mov dword [ecx + 0x1c], eax
mov edx, dword [ebp - 0x8c]
cmp dword [edx + 0x1c], 0xffffffff
jne 0x40ef76
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Create_TrustAgent_Pipe_Failed__GetLastError__:_d_n
call fcn.0040ede0
add esp, 8
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x8c]
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x40f032
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40efb2
push 0x4682c0
call fcn.0040ede0
add esp, 4
jmp 0x40f029
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4682d8
call fcn.0040ede0
add esp, 8
mov ecx, dword [ebp - 0x8c]
call fcn.0040f3b0
test eax, eax
jne 0x40eff0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ConnectNamedPipe_failed___GetLastError_d_n
call fcn.0040ede0
add esp, 8
xor al, al
jmp 0x40f1c2
push 0x468340
lea ecx, [ebp - 0x28]
call fcn.00404420
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
push edx
mov ecx, dword [ebp - 0x8c]
call fcn.0040f500
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00404250
mov al, 1
jmp 0x40f1c2
xor al, al
jmp 0x40f1c2
push 0x468348
call fcn.0040ede0
add esp, 4
mov al, 1
jmp 0x40f1c2
push 0
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0x8c]
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x40f174
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40f0fa
push str.Pipe_does_not_exist__n
call fcn.0040ede0
add esp, 4
jmp 0x40f16e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Pipe_exists_but_disconnected__Connecting__GetLastError_d_n
call fcn.0040ede0
add esp, 8
mov ecx, dword [ebp - 0x8c]
call fcn.0040f3b0
test eax, eax
jne 0x40f138
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ConnectNamedPipe_failed__GetLastError_d_n
call fcn.0040ede0
add esp, 8
xor al, al
jmp 0x40f1c2
push 0x46840c
lea ecx, [ebp - 0x70]
call fcn.00404420
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x70]
push ecx
mov ecx, dword [ebp - 0x8c]
call fcn.0040f500
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00404250
mov al, 1
jmp 0x40f1c2
xor al, al
jmp 0x40f1c2
push str.Pipe_exists__n
call fcn.0040ede0
add esp, 4
mov al, 1
jmp 0x40f1c2
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041f4e5
mov esp, ebp
pop ebp
ret