Function at 0x5015c0
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xb8
mov eax, dword [0x63a1e8]
mov edi, dword [ebp + 8]
xor ebx, ebx
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [edi + 0xb], 0
mov eax, edi
jns 0x5015e5
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
jne 0x501668
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x50172f
cmp byte [edi + 0xb], 0
mov eax, edi
jns 0x50161b
mov eax, dword [edi]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x5015db
push 2
call fcn.004824f0
add esp, 4
test al, al
je 0x501776
call fcn.00482ea0
lea esi, [ebp - 0xbc]
mov ecx, esi
push eax
push 2
push 0x6c
push str..._.._third_party_crashpad_crashpad_util_win_registration_protocol_win.cc
call fcn.00482fd0
lea eax, [ebp - 0xb4]
push 0xd
push str.WaitNamedPipe
jmp 0x501766
mov esi, eax
lea eax, [ebp - 0xc0]
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 0x50177d
lea eax, [ebp - 0xc4]
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 0x5017b6
cmp dword [ebp - 0xc4], 0xc
mov bl, 1
je 0x501802
push 2
call fcn.004824f0
add esp, 4
test al, al
je 0x501800
lea edi, [ebp - 0xbc]
mov ecx, edi
push 2
push 0x87
push str..._.._third_party_crashpad_crashpad_util_win_registration_protocol_win.cc
call fcn.00482590
lea eax, [ebp - 0xb4]
push 0x1c
push str.TransactNamedPipe:_expected
push eax
call fcn.00401baa
add esp, 0xc
mov ecx, eax
push 0xc
call fcn.00462850
push 0xb
push str.__observed
push eax
call fcn.00401baa
add esp, 0xc
mov ecx, eax
push dword [ebp - 0xc4]
call fcn.00462850
mov ecx, edi
call fcn.00482940
jmp 0x501800
push 2
call fcn.004824f0
add esp, 4
test al, al
je 0x501776
call fcn.00482ea0
lea esi, [ebp - 0xbc]
mov ecx, esi
push eax
push 2
push 0x67
push str..._.._third_party_crashpad_crashpad_util_win_registration_protocol_win.cc
call fcn.00482fd0
lea eax, [ebp - 0xb4]
push 0xa
push str.CreateFile
push eax
call fcn.00401baa
add esp, 0xc
mov ecx, esi
call fcn.00483090
xor ebx, ebx
jmp 0x50180b
push 2
call fcn.004824f0
add esp, 4
test al, al
je 0x501800
call fcn.00482ea0
lea edi, [ebp - 0xbc]
mov ecx, edi
push eax
push 2
push 0x75
push str..._.._third_party_crashpad_crashpad_util_win_registration_protocol_win.cc
call fcn.00482fd0
lea eax, [ebp - 0xb4]
push 0x17
push 0x5d67ef
jmp 0x5017f0
push 2
call fcn.004824f0
add esp, 4
test al, al
je 0x501800
call fcn.00482ea0
lea edi, [ebp - 0xbc]
mov ecx, edi
push eax
push 2
push 0x83
push str..._.._third_party_crashpad_crashpad_util_win_registration_protocol_win.cc
call fcn.00482fd0
lea eax, [ebp - 0xb4]
push 0x11
push 0x5d6807
push eax
call fcn.00401baa
add esp, 0xc
mov ecx, edi
call fcn.00483090
xor ebx, ebx
push esi
call fcn.00500dc8
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005909f1
mov eax, ebx
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
ret