Function at 0x494c48
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xc8
mov eax, dword [0x54c03c]
mov edi, dword [ebp + 8]
xor ebx, ebx
xor eax, ebp
mov dword [esp + 0xc0], eax
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x494c74
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]
mov esi, eax
cmp eax, 0xffffffff
jne 0x494cf3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x494da1
cmp dword [edi + 0x14], 7
mov eax, edi
jbe 0x494cac
mov eax, dword [edi]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x494c6a
push 2
call fcn.00414940
add esp, 4
test al, al
je 0x494de2
call sub.KERNEL32.dll_GetLastError
lea esi, [esp + 8]
mov ecx, esi
push eax
push 2
push 0x3d
push str..._.._third_party_crashpad_crashpad_util_win_registration_protocol_win.cc
call fcn.00415cc0
lea eax, [esp + 0x18]
push str.WaitNamedPipe
jmp 0x494dd2
lea eax, [esp + 4]
xor edi, edi
mov dword [eax], 2
push edi
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
je 0x494de6
mov eax, esp
mov dword [eax], edi
push edi
push eax
push 0xc
push dword [ebp + 0x10]
push 0x24
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
test eax, eax
je 0x494e19
cmp dword [esp], 0xc
mov bl, 1
je 0x494e5c
push 2
call fcn.00414940
add esp, 4
test al, al
je 0x494e5a
lea edi, [esp + 8]
mov ecx, edi
push 2
push 0x58
push str..._.._third_party_crashpad_crashpad_util_win_registration_protocol_win.cc
call fcn.004149d0
lea eax, [esp + 0x10]
push str.TransactNamedPipe:_expected
push eax
call fcn.004015c0
add esp, 8
mov ecx, eax
push 0xc
call fcn.00408404
push str.__observed
push eax
call fcn.004015c0
add esp, 8
mov ecx, eax
push dword [esp]
call fcn.004154c0
mov ecx, edi
call fcn.00413fc0
jmp 0x494e5a
push 2
call fcn.00414940
add esp, 4
test al, al
je 0x494de2
call sub.KERNEL32.dll_GetLastError
lea esi, [esp + 8]
mov ecx, esi
push eax
push 2
push 0x38
push str..._.._third_party_crashpad_crashpad_util_win_registration_protocol_win.cc
call fcn.00415cc0
lea eax, [esp + 0x18]
push 0x50edae
push eax
call fcn.004015c0
add esp, 8
mov ecx, esi
call fcn.00415de0
xor ebx, ebx
jmp 0x494e65
push 2
call fcn.00414940
add esp, 4
test al, al
je 0x494e5a
call sub.KERNEL32.dll_GetLastError
lea edi, [esp + 8]
mov ecx, edi
push eax
push 2
push 0x46
push str..._.._third_party_crashpad_crashpad_util_win_registration_protocol_win.cc
call fcn.00415cc0
lea eax, [esp + 0x18]
push 0x50edc7
jmp 0x494e4a
push 2
call fcn.00414940
add esp, 4
test al, al
je 0x494e5a
call sub.KERNEL32.dll_GetLastError
lea edi, [esp + 8]
mov ecx, edi
push eax
push 2
push 0x54
push str..._.._third_party_crashpad_crashpad_util_win_registration_protocol_win.cc
call fcn.00415cc0
lea eax, [esp + 0x18]
push 0x50eddf
push eax
call fcn.004015c0
add esp, 8
mov ecx, edi
call fcn.00415de0
xor ebx, ebx
push esi
call fcn.00494b84
add esp, 4
mov ecx, dword [esp + 0xc0]
xor ecx, ebp
call fcn.004d45c8
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret