Function at 0x14003a580
Capabilities:
Read pipe
Write pipe

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
lea rbp, [rsp - 0xe8]
sub rsp, 0x1e8
mov rsi, r8
mov qword [rsp + 0x1e0], r15
mov r14, rdx
mov rdi, rcx
xor r12d, r12d
nop dword [rax]
cmp qword [rdi + 0x18], 8
mov rcx, rdi
jb 0x14003a5bd
mov rcx, qword [rdi]
mov qword [rsp + 0x30], r12
xor r9d, r9d
mov dword [rsp + 0x28], 0x110000
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14003a6da
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x14003a687
cmp qword [rdi + 0x18], 8
mov rcx, rdi
jb 0x14003a60e
mov rcx, qword [rdi]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x14003a5b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.WaitNamedPipe_failed:__d
lea rcx, str.client
call fcn.14005df40
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x28], eax
lea r8, str..._.._.._util_win_registration_protocol_win.cc
mov r9d, 0x6e
mov dword [rsp + 0x20], 2
lea rdx, str.bool___cdecl_crashpad::SendToCrashHandlerServer_const_class_std::basic_string_wchar_t_struct_std::char_traits_wchar_t__class_std::allocator_wchar_t_____const_struct_crashpad::ClientToServerMessage__union_crashpad::ServerToClientMessage__
lea rcx, [rbp - 0x70]
call fcn.140028500
lea rdx, str.WaitNamedPipe
mov rcx, rax
call fcn.140007ed0
lea rcx, [rbp - 0x70]
call fcn.140028830
xor dil, dil
jmp 0x14003aa89
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.CreateFile_failed:__d
lea rcx, str.client
call fcn.14005df40
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x28], eax
lea r8, str..._.._.._util_win_registration_protocol_win.cc
mov r9d, 0x68
mov dword [rsp + 0x20], 2
lea rdx, str.bool___cdecl_crashpad::SendToCrashHandlerServer_const_class_std::basic_string_wchar_t_struct_std::char_traits_wchar_t__class_std::allocator_wchar_t_____const_struct_crashpad::ClientToServerMessage__union_crashpad::ServerToClientMessage__
lea rcx, [rbp - 0x70]
call fcn.140028500
lea rdx, str.CreateFile
jmp 0x14003a66e
xor r9d, r9d
mov dword [rbp + 0x138], 2
xor r8d, r8d
lea rdx, [rbp + 0x138]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
jne 0x14003a765
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.SetNamedPipeHandleState_failed:__d
lea rcx, str.client
call fcn.14005df40
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x28], eax
lea r8, str..._.._.._util_win_registration_protocol_win.cc
mov r9d, 0x78
mov dword [rsp + 0x20], 2
lea rdx, str.bool___cdecl_crashpad::SendToCrashHandlerServer_const_class_std::basic_string_wchar_t_struct_std::char_traits_wchar_t__class_std::allocator_wchar_t_____const_struct_crashpad::ClientToServerMessage__union_crashpad::ServerToClientMessage__
lea rcx, [rbp - 0x70]
call fcn.140028500
mov rcx, rax
lea rdx, [0x1400cd250]
call fcn.140007ed0
lea rcx, [rbp - 0x70]
call fcn.140028830
jmp 0x14003aa73
lea rax, [rbp + 0x120]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], rax
mov r9, rsi
mov r8d, 0x224
mov dword [rsp + 0x20], 0xc
mov rdx, r14
mov dword [rbp + 0x120], r12d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TransactNamedPipe]
test eax, eax
jne 0x14003a805
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.TransactNamedPipe_failed:__d.
lea rcx, str.client
call fcn.14005df40
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x28], eax
lea r8, str..._.._.._util_win_registration_protocol_win.cc
mov r9d, 0x87
mov dword [rsp + 0x20], 2
lea rdx, str.bool___cdecl_crashpad::SendToCrashHandlerServer_const_class_std::basic_string_wchar_t_struct_std::char_traits_wchar_t__class_std::allocator_wchar_t_____const_struct_crashpad::ClientToServerMessage__union_crashpad::ServerToClientMessage__
lea rcx, [rbp - 0x70]
call fcn.140028500
mov rcx, rax
lea rdx, [0x1400cd288]
call fcn.140007ed0
lea rcx, [rbp - 0x70]
call fcn.140028830
jmp 0x14003aa73
mov r9d, dword [rbp + 0x120]
cmp r9d, 0xc
je 0x14003aa7e
mov r8d, 0xc
lea rdx, str.TransactNamedPipe:_expected:__lld__observed__lld.
lea rcx, str.client
call fcn.14005df40
mov r9d, 0x8f
mov dword [rsp + 0x20], 2
lea r8, str..._.._.._util_win_registration_protocol_win.cc
lea rdx, str.bool___cdecl_crashpad::SendToCrashHandlerServer_const_class_std::basic_string_wchar_t_struct_std::char_traits_wchar_t__class_std::allocator_wchar_t_____const_struct_crashpad::ClientToServerMessage__union_crashpad::ServerToClientMessage__
lea rcx, [rbp - 0x70]
call fcn.140028380
mov rcx, rax
lea rdx, str.TransactNamedPipe:_expected
call fcn.140007ed0
mov rdx, rax
lea rcx, [rsp + 0x40]
mov r14, rax
mov r15d, r12d
call fcn.140009fd0
mov edi, 4
cmp byte [rsp + 0x48], r12b
je 0x14003a926
mov rcx, qword [r14]
movsxd rdx, dword [rcx + 4]
mov rcx, qword [rdx + r14 + 0x40]
mov rsi, qword [rcx + 8]
mov rcx, rsi
mov qword [rsp + 0x58], rsi
mov rax, qword [rsi]
call qword [rax + 8]
lea rcx, [rsp + 0x50]
call fcn.1400094b0
mov r12, rax
test rsi, rsi
je 0x14003a8d0
mov rdx, qword [rsi]
mov rcx, rsi
call qword [rdx + 0x10]
test rax, rax
je 0x14003a8d0
mov r8, qword [rax]
lea edx, [rdi - 3]
mov rcx, rax
call qword [r8]
mov rax, qword [r14]
lea r8, [rsp + 0x50]
mov r10, qword [r12]
lea rdx, [rsp + 0x60]
mov byte [rsp + 0x50], r15b
mov rcx, r12
mov qword [rsp + 0x28], 0xc
movsxd r9, dword [rax + 4]
add r9, r14
mov rax, qword [r9 + 0x48]
mov qword [rsp + 0x58], rax
movaps xmm0, xmmword [rsp + 0x50]
movzx eax, byte [r9 + 0x58]
movdqa xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x20], al
call qword [r10 + 0x30]
cmp byte [rsp + 0x60], r15b
cmovne r15d, edi
xor r12d, r12d
mov rax, qword [r14]
movsxd rcx, dword [rax + 4]
mov eax, edi
add rcx, r14
cmp qword [rcx + 0x48], 0
cmovne eax, r12d
or eax, dword [rcx + 0x10]
or eax, r15d
and eax, 0x17
mov dword [rcx + 0x10], eax
and eax, dword [rcx + 0x14]
jne 0x14003aaf4
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x228], r13
call fcn.14000a580
mov r13d, dword [rbp + 0x120]
lea rdx, str.__observed
mov rcx, r14
call fcn.140007ed0
mov rdx, rax
lea rcx, [rsp + 0x50]
mov r14, rax
mov r15d, r12d
call fcn.140009fd0
cmp byte [rsp + 0x58], 0
je 0x14003aa34
mov rcx, qword [r14]
movsxd rdx, dword [rcx + 4]
mov rcx, qword [rdx + r14 + 0x40]
mov rsi, qword [rcx + 8]
mov rcx, rsi
mov qword [rsp + 0x48], rsi
mov rdx, qword [rsi]
call qword [rdx + 8]
lea rcx, [rsp + 0x40]
call fcn.1400094b0
mov r12, rax
test rsi, rsi
je 0x14003a9e2
mov rdx, qword [rsi]
mov rcx, rsi
call qword [rdx + 0x10]
test rax, rax
je 0x14003a9e2
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
mov rax, qword [r14]
lea r8, [rsp + 0x40]
mov r10, qword [r12]
lea rdx, [rsp + 0x70]
mov byte [rsp + 0x40], 0
mov rcx, r12
mov dword [rsp + 0x28], r13d
movsxd r9, dword [rax + 4]
add r9, r14
mov rax, qword [r9 + 0x48]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movzx eax, byte [r9 + 0x58]
movdqa xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x20], al
call qword [r10 + 0x40]
cmp byte [rsp + 0x70], 0
cmovne r15d, edi
xor r12d, r12d
mov rax, qword [r14]
mov r13, qword [rsp + 0x228]
movsxd rcx, dword [rax + 4]
add rcx, r14
cmp qword [rcx + 0x48], 0
cmovne edi, r12d
or edi, dword [rcx + 0x10]
or edi, r15d
and edi, 0x17
mov dword [rcx + 0x10], edi
and edi, dword [rcx + 0x14]
jne 0x14003aaa5
lea rcx, [rsp + 0x50]
call fcn.14000a580
lea rcx, [rbp - 0x70]
call fcn.140028580
xor dil, dil
cmp rbx, 0xffffffffffffffff
je 0x14003aa89
jmp 0x14003aa81
mov dil, 1
mov rcx, rbx
call fcn.140039d20
mov r15, qword [rsp + 0x1e0]
movzx eax, dil
add rsp, 0x1e8
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
test dil, 4
je 0x14003aab4
lea rbx, str.ios_base::badbit_set
jmp 0x14003aaca
test dil, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x40]
call fcn.1400103c0
mov r8, rax
lea rcx, [rbp + 0xb8]
mov rdx, rbx
call fcn.140009f00
mov rcx, rax
call fcn.140007380
int3
test dil, al
je 0x14003ab02
lea rbx, str.ios_base::badbit_set
jmp 0x14003ab16
test al, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rbp - 0x80]
call fcn.1400103c0
mov r8, rax
lea rcx, [rbp + 0x98]
mov rdx, rbx
call fcn.140009f00
mov rcx, rax
call fcn.140007380
int3