Function at 0x14001a9f0
Capabilities:
Print debug messages

Disassembly:
push r15
push r14
push r13
push r12
push rbp
lea rbp, str.PivotPush
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rsi, qword [0x14002d650]
mov dword [rsp + 0x48], 0
lea r15, [rsp + 0x4c]
mov rax, qword [rsi]
mov dword [rsp + 0x4c], 0
mov rbx, qword [rax + 0x902]
test rbx, rbx
je 0x14001aca8
cmp qword [rbx + 0x18], 0
je 0x14001ac9f
mov dword [rsp + 0x3c], 0x1e
lea r13, [rsp + 0x48]
mov rax, qword [rsi]
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], r13
mov qword [rsp + 0x28], 0
call qword [rax + 0x360]
test eax, eax
je 0x14001abba
cmp dword [rsp + 0x48], 3
jbe 0x14001ac9f
mov rax, qword [rsi]
mov rcx, qword [rbx + 0x18]
xor r9d, r9d
mov qword [rsp + 0x20], r13
mov qword [rsp + 0x28], 0
mov r8d, 4
mov rdx, r15
call qword [rax + 0x360]
test eax, eax
mov rax, qword [rsi]
je 0x14001ab95
mov edx, dword [rsp + 0x4c]
mov ecx, 0x40
bswap edx
add edx, 4
mov dword [rsp + 0x4c], edx
call qword [rax + 0x3a8]
mov rcx, qword [rbx + 0x18]
mov r8d, dword [rsp + 0x4c]
mov r9, r13
mov r14, rax
mov rax, qword [rsi]
mov qword [rsp + 0x20], 0
mov rdx, r14
call qword [rax + 0x398]
test eax, eax
je 0x14001ab4d
mov ecx, 0x9d8
call sym.PackageCreate
mov edx, 0xc
mov rcx, rax
mov r12, rax
call sym.PackageAddInt32
mov r8d, dword [rsp + 0x48]
mov rcx, r12
mov rdx, r14
call sym.PackageAddBytes
mov rcx, r12
call sym.PackageTransmit
test r14, r14
je 0x14001ac95
mov ecx, dword [rsp + 0x4c]
mov rdi, r14
xor eax, eax
rep stosb byte [rdi], al
mov rax, qword [rsi]
mov rcx, r14
call qword [rax + 0x3b0]
jmp 0x14001ac95
mov rax, qword [rsi]
mov r8d, 0x118
mov rdx, rbp
lea rcx, str._DEBUG::_s::_d__ReadFile:_Failed__d__n
mov rax, qword [rax + 0x8c2]
mov r9d, dword [rax + 0x68]
call sym.DbgPrint
test r14, r14
je 0x14001ac9f
mov ecx, dword [rsp + 0x4c]
mov rdi, r14
xor eax, eax
rep stosb byte [rdi], al
mov rax, qword [rsi]
mov rcx, r14
call qword [rax + 0x3b0]
jmp 0x14001ac9f
mov rax, qword [rax + 0x8c2]
mov r8d, 0x11f
mov rdx, rbp
lea rcx, str._DEBUG::_s::_d__PeekNamedPipe:_Failed__d__n
mov r9d, dword [rax + 0x68]
call sym.DbgPrint
jmp 0x14001ac9f
mov rax, qword [rsi]
mov rdx, rbp
mov r8d, 0x126
lea rcx, str._DEBUG::_s::_d__PeekNamedPipe:_Failed__d__n
mov rax, qword [rax + 0x8c2]
mov r9d, dword [rax + 0x68]
call sym.DbgPrint
mov rax, qword [rsi]
mov rax, qword [rax + 0x8c2]
mov edx, dword [rax + 0x68]
cmp edx, 0x6d
jne 0x14001ac89
lea r9, str.ERROR_BROKEN_PIPE._Remove_pivot
mov r8d, 0x12a
mov rdx, rbp
lea rcx, [0x14002a0d0]
call sym.printf.constprop.0_18
mov r14d, dword [rbx]
mov rbx, qword [rbx + 0x20]
mov ecx, r14d
call sym.PivotRemove
lea r9, [0x14002a105]
mov rdx, rbp
mov r8d, 0x130
test eax, eax
mov r13d, eax
lea rax, [0x14002a10a]
cmove r9, rax
lea rcx, str._DEBUG::_s::_d__Pivot_removed:__s_n
call sym.DbgPrint
mov ecx, 0x9d8
call sym.PackageCreate
mov edx, 0xb
mov r12, rax
mov rcx, rax
call sym.PackageAddInt32
mov edx, r13d
mov rcx, r12
call sym.PackageAddInt32
mov rcx, r12
mov edx, r14d
call sym.PackageAddInt32
mov rcx, r12
call sym.PackageTransmit
test rbx, rbx
je 0x14001aca8
jmp 0x14001ac9f
mov ecx, 1
call sym.PackageTransmitError
jmp 0x14001ac9f
dec dword [rsp + 0x3c]
jne 0x14001aa4e
mov rbx, qword [rbx + 0x20]
jmp 0x14001aa2d
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret