Function at 0x25133430
Capabilities:
Read pipe
Write pipe

Disassembly:
push rbp
mov rbp, rsp
lea rsp, [rsp - 0x300]
mov qword [rbp - 0x2c0], rbx
mov qword [rbp - 0x2b8], rdi
mov qword [rbp - 0x2b0], rsi
mov qword [rbp - 0x2a8], r12
mov qword [rbp - 0x2a0], r13
mov qword [rbp - 0x298], r14
mov qword [rbp - 0x290], r15
mov rbx, rcx
mov r13, rdx
mov r12d, r8d
mov rdi, r9
mov r15d, dword [rbp + 0x30]
mov esi, dword [rbp + 0x38]
mov r14b, byte [rbp + 0x40]
mov byte [rbp - 0x288], 0
mov eax, 0
mov qword [rbp - 0x280], rax
lea rcx, [rbp - 0x278]
mov r8d, 0
movabs rdx, 0x20a
call fcn.25121fe0
lea rcx, [rbp - 0x278]
lea rdx, str..pipe_
call sub.kernel32.dll_lstrcpyW
lea rcx, [rbp - 0x278]
mov rdx, rbx
call sub.kernel32.dll_lstrcatW
lea rcx, [rbp - 0x278]
mov edx, esi
call sub.kernel32.dll_WaitNamedPipeW
test eax, eax
je 0x251337c2
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x40000000
mov dword [rsp + 0x20], 3
lea rcx, [rbp - 0x278]
movabs r9, 0
mov r8d, 0
mov edx, 0xc0000000
call sub.kernel32.dll_CreateFileW
mov rbx, rax
cmp rbx, 0xffffffffffffffff
je 0x251337c2
movabs r9, 0
mov r8d, 0
mov edx, 0xffffffff
movabs rcx, 0
call sub.kernel32.dll_CreateEventW
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x25133589
call sub.kernel32.dll_GetLastError
mov edx, eax
mov qword [rbp - 0x280], rdx
mov rcx, rbx
call sub.kernel32.dll_CloseHandle
mov eax, dword [rbp - 0x280]
mov ecx, eax
call sub.kernel32.dll_SetLastError
jmp 0x251337c2
mov dword [rbp - 0x10], 2
lea rdx, [rbp - 0x10]
mov rcx, rbx
movabs r9, 0
movabs r8, 0
call sub.kernel32.dll_SetNamedPipeHandleState
test eax, eax
jne 0x251335e5
call sub.kernel32.dll_GetLastError
mov edx, eax
mov qword [rbp - 0x280], rdx
mov rcx, rbx
call sub.kernel32.dll_CloseHandle
mov rcx, qword [rbp - 8]
call sub.kernel32.dll_CloseHandle
mov eax, dword [rbp - 0x280]
mov ecx, eax
call sub.kernel32.dll_SetLastError
jmp 0x251337c2
lea rcx, [rbp - 0x38]
mov r8d, 0
mov edx, 0x20
call fcn.2512c5b0
mov rax, qword [rbp - 8]
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x18], 0
lea rax, [rbp - 0x18]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
lea rax, [rbp - 0x38]
mov qword [rsp + 0x30], rax
mov r9, rdi
mov r8d, r12d
mov rdx, r13
mov rcx, rbx
call sub.kernel32.dll_TransactNamedPipe
test eax, eax
jne 0x2513379d
call sub.kernel32.dll_GetLastError
mov edx, eax
mov qword [rbp - 0x280], rdx
mov eax, dword [rbp - 0x280]
cmp eax, 0x3e5
jne 0x2513377d
test r15d, r15d
jne 0x25133692
mov byte [rbp - 0x288], 1
mov eax, 0
mov qword [rbp - 0x280], rax
mov rcx, rbx
call sub.kernel32.dll_CloseHandle
mov rcx, qword [rbp - 8]
call sub.kernel32.dll_CloseHandle
mov eax, dword [rbp - 0x280]
mov ecx, eax
call sub.kernel32.dll_SetLastError
jmp 0x251337c2
mov rcx, qword [rbp - 8]
call sub.kernel32.dll_ResetEvent
test r14b, r14b
je 0x251336fe
mov dword [rsp + 0x20], 0xff
lea rdx, [rbp - 8]
mov r9d, 0xffffffff
mov r8d, 0
mov ecx, 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
jne 0x251336fe
lea rcx, [rbp - 0x68]
mov r9d, 0
mov r8d, 0
movabs rdx, 0
call sub.user32.dll_GetMessageW
test eax, eax
je 0x251336a0
lea rcx, [rbp - 0x68]
call sub.user32.dll_TranslateMessage
lea rcx, [rbp - 0x68]
call sub.user32.dll_DispatchMessageW
jmp 0x251336a0
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x38]
mov rcx, rbx
mov r9d, 0xffffffff
call sub.kernel32.dll_GetOverlappedResult
test eax, eax
jne 0x25133749
call sub.kernel32.dll_GetLastError
mov edx, eax
mov qword [rbp - 0x280], rdx
mov rcx, rbx
call sub.kernel32.dll_CloseHandle
mov rcx, qword [rbp - 8]
call sub.kernel32.dll_CloseHandle
mov eax, dword [rbp - 0x280]
mov ecx, eax
call sub.kernel32.dll_SetLastError
jmp 0x251337c2
mov eax, dword [rbp - 0x18]
cmp eax, r15d
jae 0x2513379d
mov eax, 0xd
mov qword [rbp - 0x280], rax
mov rcx, rbx
call sub.kernel32.dll_CloseHandle
mov rcx, qword [rbp - 8]
call sub.kernel32.dll_CloseHandle
mov eax, dword [rbp - 0x280]
mov ecx, eax
call sub.kernel32.dll_SetLastError
jmp 0x251337c2
mov rcx, rbx
call sub.kernel32.dll_CloseHandle
mov rcx, qword [rbp - 8]
call sub.kernel32.dll_CloseHandle
mov eax, dword [rbp - 0x280]
mov ecx, eax
call sub.kernel32.dll_SetLastError
jmp 0x251337c2
mov byte [rbp - 0x288], 1
mov rcx, rbx
call sub.kernel32.dll_CloseHandle
mov rcx, qword [rbp - 8]
call sub.kernel32.dll_CloseHandle
mov eax, dword [rbp - 0x280]
mov ecx, eax
call sub.kernel32.dll_SetLastError
movzx eax, byte [rbp - 0x288]
mov rbx, qword [rbp - 0x2c0]
mov rdi, qword [rbp - 0x2b8]
mov rsi, qword [rbp - 0x2b0]
mov r12, qword [rbp - 0x2a8]
mov r13, qword [rbp - 0x2a0]
mov r14, qword [rbp - 0x298]
mov r15, qword [rbp - 0x290]
lea rsp, [rbp]
pop rbp
ret