Function at 0x140050d80
Capabilities:
Read pipe
Write pipe

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x178
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xf0], 0xfffffffffffffffe
mov rdi, r8
mov rbx, rdx
mov r14, rcx
cmp byte [rcx + 0x17], 0
jns 0x140050db8
mov rcx, qword [r14]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x110000
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
mov qword [rbp + 0xe0], rax
cmp rax, 0xffffffffffffffff
je 0x140050eeb
mov dword [rbp + 0xe8], 2
lea rdx, [rbp + 0xe8]
mov rcx, rsi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
je 0x140050f82
mov dword [rbp + 0xec], 0
lea rax, [rbp + 0xec]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 0xc
mov rcx, rsi
mov rdx, rbx
mov r8d, 0x24
mov r9, rdi
call qword [sym.imp.KERNEL32.dll_TransactNamedPipe]
test eax, eax
je 0x140050fc8
mov dil, 1
cmp dword [rbp + 0xec], 0xc
je 0x140051017
mov dword [rsp + 0x20], 2
lea rdx, str.bool___cdecl_crashpad::SendToCrashHandlerServer_const_std::wstring___const_ClientToServerMessage___ServerToClientMessage__
lea r8, str.third_party_crashpad_crashpad_util_win_registration_protocol_win.cc
lea rcx, [rbp - 0x48]
mov r9d, 0x88
call fcn.140005340
lea rdx, str.TransactNamedPipe:_expected
lea rcx, [rbp - 0x48]
mov r8d, 0x1c
call fcn.140003fb0
mov edx, 0xc
mov rcx, rax
call fcn.14001df40
lea rdx, str.__observed
mov r8d, 0xb
mov rcx, rax
call fcn.140003fb0
mov edx, dword [rbp + 0xec]
mov rcx, rax
call fcn.14001d9a0
lea rcx, [rbp - 0x48]
call fcn.140005c30
jmp 0x140051015
mov r15, qword [sym.imp.KERNEL32.dll_GetLastError]
mov r12, qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
mov r13, qword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x140050f48
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x110000
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call r13
mov qword [rbp + 0xe0], rax
cmp rax, 0xffffffffffffffff
jne 0x1400510cf
call r15
cmp eax, 0xe7
jne 0x140051024
cmp byte [r14 + 0x17], 0
mov rcx, r14
jns 0x140050f63
mov rcx, qword [r14]
mov edx, 0xffffffff
call r12
test eax, eax
je 0x14005106a
cmp byte [r14 + 0x17], 0
mov rcx, r14
jns 0x140050f10
mov rcx, qword [r14]
jmp 0x140050f10
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
lea rdx, str.bool___cdecl_crashpad::SendToCrashHandlerServer_const_std::wstring___const_ClientToServerMessage___ServerToClientMessage__
lea r8, str.third_party_crashpad_crashpad_util_win_registration_protocol_win.cc
lea rcx, [rbp - 0x48]
mov r9d, 0x76
call fcn.140005e40
lea rdx, [0x1400c5765]
lea rcx, [rbp - 0x48]
mov r8d, 0x17
call fcn.140003fb0
jmp 0x14005100c
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
lea rdx, str.bool___cdecl_crashpad::SendToCrashHandlerServer_const_std::wstring___const_ClientToServerMessage___ServerToClientMessage__
lea r8, str.third_party_crashpad_crashpad_util_win_registration_protocol_win.cc
lea rcx, [rbp - 0x48]
mov r9d, 0x84
call fcn.140005e40
lea rdx, [0x1400c577d]
lea rcx, [rbp - 0x48]
mov r8d, 0x11
call fcn.140003fb0
lea rcx, [rbp - 0x48]
call fcn.140005e70
xor edi, edi
mov rcx, rsi
call fcn.140045f90
jmp 0x1400510b9
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
lea rdx, str.bool___cdecl_crashpad::SendToCrashHandlerServer_const_std::wstring___const_ClientToServerMessage___ServerToClientMessage__
lea r8, str.third_party_crashpad_crashpad_util_win_registration_protocol_win.cc
lea rcx, [rbp - 0x48]
mov r9d, 0x68
call fcn.140005e40
lea rdx, str.CreateFile
lea rcx, [rbp - 0x48]
mov r8d, 0xa
call fcn.140003fb0
jmp 0x1400510ae
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
lea rdx, str.bool___cdecl_crashpad::SendToCrashHandlerServer_const_std::wstring___const_ClientToServerMessage___ServerToClientMessage__
lea r8, str.third_party_crashpad_crashpad_util_win_registration_protocol_win.cc
lea rcx, [rbp - 0x48]
mov r9d, 0x6d
call fcn.140005e40
lea rdx, str.WaitNamedPipe
lea rcx, [rbp - 0x48]
mov r8d, 0xd
call fcn.140003fb0
lea rcx, [rbp - 0x48]
call fcn.140005e70
xor edi, edi
mov eax, edi
add rsp, 0x178
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rsi, rax
jmp 0x140050df6