Function at 0x494f88
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xd8
mov eax, dword [0x582e50]
mov edi, dword [ebp + 8]
xor eax, ebp
mov dword [esp + 0xd0], eax
mov eax, edi
cmp dword [edi + 0x14], 7
jbe 0x494fb2
mov eax, dword [edi]
xor ebx, ebx
push ebx
push 0x110000
push 3
push ebx
push ebx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esp + 8], eax
mov byte [esp + 0xc], 0
je 0x49508f
lea ecx, [esp + 4]
mov dword [ecx], 2
push ebx
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
je 0x4950f9
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov esi, esp
mov dword [esi], edx
push edx
push esi
push 0xc
push eax
push 0x24
push ecx
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
test eax, eax
je 0x495133
cmp dword [esp], 0xc
mov bl, 1
je 0x4951e0
push 2
call fcn.00419f10
add esp, 4
test al, al
je 0x4951de
lea esi, [esp + 0x10]
mov ecx, esi
push 2
push 0x58
push str..._.._third_party_crashpad_crashpad_util_win_registration_protocol_win.cc
call fcn.00419fa0
lea eax, [esp + 0x18]
push str.TransactNamedPipe:_expected
push eax
call fcn.004014ea
add esp, 8
mov ecx, eax
push 0xc
call fcn.0040b5ea
push str.__observed
push eax
call fcn.004014ea
add esp, 8
mov ecx, eax
push dword [esp]
call fcn.00416d80
mov ecx, esi
call fcn.00419550
jmp 0x4951de
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xe7
jne 0x49516a
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x4950ac
mov eax, dword [edi]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x49519d
lea ecx, [esp + 8]
call fcn.0047c724
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x4950d0
mov eax, dword [edi]
push ebx
push 0x110000
push 3
push ebx
push ebx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esp + 8], eax
mov byte [esp + 0xc], 0
je 0x495095
jmp 0x494fdc
push 2
call fcn.00419f10
add esp, 4
test al, al
je 0x4951de
call fcn.0041abf0
lea esi, [esp + 0x10]
mov ecx, esi
push eax
push 2
push 0x46
push str..._.._third_party_crashpad_crashpad_util_win_registration_protocol_win.cc
call fcn.0041afa0
lea eax, [esp + 0x20]
push 0x542b8a
jmp 0x4951ce
push 2
call fcn.00419f10
add esp, 4
test al, al
je 0x4951de
call fcn.0041abf0
lea esi, [esp + 0x10]
mov ecx, esi
push eax
push 2
push 0x54
push str..._.._third_party_crashpad_crashpad_util_win_registration_protocol_win.cc
call fcn.0041afa0
lea eax, [esp + 0x20]
push 0x542ba2
jmp 0x4951ce
push 2
call fcn.00419f10
add esp, 4
test al, al
je 0x4951de
call fcn.0041abf0
lea esi, [esp + 0x10]
mov ecx, esi
push eax
push 2
push 0x38
push str..._.._third_party_crashpad_crashpad_util_win_registration_protocol_win.cc
call fcn.0041afa0
lea eax, [esp + 0x20]
push 0x542b71
jmp 0x4951ce
push 2
call fcn.00419f10
add esp, 4
test al, al
je 0x4951de
call fcn.0041abf0
lea esi, [esp + 0x10]
mov ecx, esi
push eax
push 2
push 0x3d
push str..._.._third_party_crashpad_crashpad_util_win_registration_protocol_win.cc
call fcn.0041afa0
lea eax, [esp + 0x20]
push str.WaitNamedPipe
push eax
call fcn.004014ea
add esp, 8
mov ecx, esi
call fcn.0041b0c0
xor ebx, ebx
lea ecx, [esp + 8]
call fcn.0047c724
mov ecx, dword [esp + 0xd0]
xor ecx, ebp
call fcn.004ed5a1
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret