Function at 0x4897e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x532a6b
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x5c6150]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x21e]
push edx
push 0x104
push eax
mov dword [ebp - 0x224], 0
mov word [ebp - 0x16], 1
call fcn.004e1af2
add esp, 0xc
lea ecx, [ebp - 0x224]
call fcn.00460910
push 0x28
push 0x32
lea ecx, [ebp - 0x224]
mov dword [ebp - 4], 0
call fcn.004609e0
test al, al
jne 0x48986c
mov ecx, str._client__t_processPipeList::ConnectPipeToAgent_thr_WaitAppRunup_Fail
call fcn.00486b90
xor bl, bl
jmp 0x4899c5
mov ecx, str._client__t_processPipeList::ConnectPipeToAgent_thr_WaitAppRunup_Success
call fcn.00486b90
mov eax, dword [edi + 4]
xor bl, bl
mov esi, dword [edi]
push 0xc
push edi
mov dword [ebp - 0x228], eax
call fcn.004d72b2
add esp, 8
mov edi, 3
push 0
push 0x40000000
push edi
push 0
push 0
push 0xc0000000
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x14], eax
cmp eax, 0xffffffff
jne 0x48992e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
je 0x4898ce
cmp eax, 2
jne 0x48995e
test edi, edi
je 0x48997a
push 0x7d0
push dword [ebp - 0x228]
dec edi
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x489908
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4898fe
cmp eax, 0x5b4
jne 0x48996c
mov ecx, str._client__t_processPipeList::ConnectPipeToAgent_thr_WaitNamedPipe_Continue
call fcn.00486b90
push 0
push 0x40000000
push 3
push 0
push 0
push 0xc0000000
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x14], eax
cmp eax, 0xffffffff
je 0x4898b8
push 0
push 0
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x22c], 2
push eax
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
jne 0x489988
mov ecx, esi
call fcn.00489730
mov ecx, str._client__t_processPipeList::ConnectPipeToAgent_thr_SetNamedPipeHandleState_Fail
jmp 0x4899c0
mov ecx, esi
call fcn.00489730
mov ecx, str._client__t_processPipeList::ConnectPipeToAgent_thr_LASTError___ERROR_PIPE_BUSY__LASTError___ERROR_FILE_NOT_FOUND_Fail
jmp 0x4899c0
mov ecx, esi
call fcn.00489730
mov ecx, str._client__t_processPipeList::ConnectPipeToAgent_thr_WaitNamedPipe_Fail
jmp 0x4899c0
mov ecx, esi
call fcn.00489730
mov ecx, str._client__t_processPipeList::ConnectPipeToAgent_thr_nTry0_Fail
jmp 0x4899c0
cmp dword [esi + 0x1c], 0
jne 0x4899ad
push 0x20
call fcn.004e1b5b
add esp, 4
mov dword [esi + 0x1c], eax
test eax, eax
jne 0x4899ad
mov ecx, esi
call fcn.00489730
mov ecx, str._client__t_processPipeList::ConnectPipeToAgent_thr_AllocBuffer_Fail
jmp 0x4899c0
push 2
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov bl, 1
mov ecx, str._client__t_processPipeList::ConnectPipeToAgent_thr_bCreated_OK
call fcn.00486b90
cmp byte [ebp - 0x15], 0
jne 0x4899dc
mov ecx, dword [ebp - 0x224]
test ecx, ecx
je 0x4899dc
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004d6cfd
mov esp, ebp
pop ebp
ret