Function at 0x140057810
Capabilities:
Read pipe
Write pipe

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x188
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x100], 0xfffffffffffffffe
mov rdi, r8
mov rbx, rdx
mov r12, rcx
cmp byte [rcx + 0x17], 0
jns 0x140057849
mov rcx, qword [r12]
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 qword [rbp + 0xf0], rax
cmp rax, 0xffffffffffffffff
je 0x14005797c
mov rsi, rax
mov dword [rbp + 0xf8], 2
lea rdx, [rbp + 0xf8]
mov rcx, rax
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
je 0x140057a16
mov dword [rbp + 0xfc], 0
lea rax, [rbp + 0xfc]
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 0x140057a5c
mov dil, 1
cmp dword [rbp + 0xfc], 0xc
je 0x140057aab
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 - 0x40]
mov r9d, 0x88
call fcn.140005c30
lea rcx, [rbp - 0x38]
lea rdx, str.TransactNamedPipe:_expected
mov r8d, 0x1c
call fcn.1400048b0
mov edx, 0xc
mov rcx, rax
call fcn.14001fad0
lea rdx, str.__observed
mov r8d, 0xb
mov rcx, rax
call fcn.1400048b0
mov edx, dword [rbp + 0xfc]
mov rcx, rax
call fcn.14001f510
lea rcx, [rbp - 0x40]
call fcn.140006650
jmp 0x140057aa9
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14, qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
mov r15, qword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x1400579d8
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 r15
mov qword [rbp + 0xf0], rax
cmp rax, 0xffffffffffffffff
jne 0x140057884
call r13
cmp eax, 0xe7
jne 0x140057ab8
cmp byte [r12 + 0x17], 0
mov rcx, r12
jns 0x1400579f5
mov rcx, qword [r12]
mov edx, 0xffffffff
call r14
test eax, eax
je 0x140057afe
cmp byte [r12 + 0x17], 0
mov rcx, r12
jns 0x1400579a0
mov rcx, qword [r12]
jmp 0x1400579a0
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 - 0x40]
mov r9d, 0x76
call fcn.1400069d0
lea rcx, [rbp - 0x38]
lea rdx, [0x1400cd845]
mov r8d, 0x17
call fcn.1400048b0
jmp 0x140057aa0
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 - 0x40]
mov r9d, 0x84
call fcn.1400069d0
lea rcx, [rbp - 0x38]
lea rdx, [0x1400cd85d]
mov r8d, 0x11
call fcn.1400048b0
lea rcx, [rbp - 0x40]
call fcn.140006a90
xor edi, edi
mov rcx, rsi
call fcn.14004b650
jmp 0x140057b4d
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 - 0x40]
mov r9d, 0x68
call fcn.1400069d0
lea rdx, str.CreateFile
mov r8d, 0xa
lea rcx, [rbp - 0x38]
call fcn.1400048b0
jmp 0x140057b42
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 - 0x40]
mov r9d, 0x6d
call fcn.1400069d0
lea rdx, str.WaitNamedPipe
mov r8d, 0xd
lea rcx, [rbp - 0x38]
call fcn.1400048b0
lea rcx, [rbp - 0x40]
call fcn.140006a90
xor edi, edi
mov eax, edi
add rsp, 0x188
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret