Function at 0x14002ad30
Capabilities:
Read file on windows
Read pipe

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rax, qword [0x14057b900]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r14, rcx
xor r15d, r15d
mov esi, r15d
mov dword [rbp - 0x19], r15d
lea rax, [rbp - 0x19]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x14002aff9
lea r12, str.Sledgehammer
lea r13, str.Invalid_parameter__p__u
mov ecx, dword [rbp - 0x19]
test ecx, ecx
je 0x14002aff9
mov eax, esi
inc esi
cmp eax, 0x64
ja 0x14002b0c0
mov dword [rbp - 0x15], r15d
xorps xmm0, xmm0
mov ebx, ecx
movdqu xmmword [rbp - 0x11], xmm0
mov qword [rbp - 1], r15
test ecx, ecx
je 0x14002ae28
cmp rcx, 0x1000
jb 0x14002ae04
add rcx, 0x27
cmp rcx, rbx
jbe 0x14002b109
call fcn.14014f518
mov rcx, rax
test rax, rax
je 0x14002b103
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x14002ae09
call fcn.14014f518
mov qword [rbp - 0x11], rax
lea rdi, [rax + rbx]
mov qword [rbp - 1], rdi
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.1403ec370
mov qword [rbp - 9], rdi
jmp 0x14002ae2c
mov rdi, qword [rbp - 9]
mov rdx, qword [rbp - 0x11]
sub rdi, rdx
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x15]
mov r8d, edi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002b028
mov ebx, dword [rbp - 0x15]
test ebx, ebx
je 0x14002b028
mov rdi, qword [rbp - 0x11]
test rdi, rdi
je 0x14002af56
cmp ebx, 8
jb 0x14002af56
movzx ecx, word [rdi + 4]
lea eax, [rcx*2 + 8]
cmp ebx, eax
jae 0x14002aeaf
call fcn.14002c3f0
mov rcx, qword [rax]
mov r10, qword [rcx + 0x20]
movzx ecx, word [rdi + 4]
mov dword [rsp + 0x40], ecx
mov dword [rsp + 0x38], ebx
lea rcx, str.Inconsistent_length__u__u
mov qword [rsp + 0x30], rcx
mov r9d, 0x7e
jmp 0x14002af76
mov r8, rcx
xorps xmm0, xmm0
movups xmmword [rbp + 7], xmm0
mov qword [rbp + 0x17], r15
mov qword [rbp + 0x1f], r15
lea rdx, [rdi + 6]
lea rcx, [rbp + 7]
call fcn.14001fb40
nop
call fcn.14002c3f0
mov rcx, qword [rax]
mov r10, qword [rcx + 0x18]
lea rdx, [rbp + 7]
cmp qword [rbp + 0x1f], 7
cmova rdx, qword [rbp + 7]
mov ecx, dword [rdi]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], ecx
mov r9d, 0x83
lea r8, str.D:JenkinsworkspaceN_MB5_InstallerService_srcPackagesSledgehammer.5.1.0.91_build_nativeincludeLogging.h
lea rdx, [0x1404e3f68]
mov rcx, rax
call r10
nop
mov rdx, qword [rbp + 0x1f]
cmp rdx, 7
jbe 0x14002af98
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002af4f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002b10f
call fcn.14014f510
jmp 0x14002af98
call fcn.14002c3f0
mov rcx, qword [rax]
mov r10, qword [rcx + 0x20]
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], r13
mov r9d, 0x77
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 2
lea r8, str.D:JenkinsworkspaceN_MB5_InstallerService_srcPackagesSledgehammer.5.1.0.91_build_nativeincludeLogging.h
lea rdx, [0x1404e3f68]
mov rcx, rax
call r10
nop
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x14002afd2
mov rdx, qword [rbp - 1]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002afcd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002b103
call fcn.14014f510
lea rax, [rbp - 0x19]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x14002ada1
mov al, 1
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14014f4f0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.14002c3f0
nop
mov rdi, rax
mov rcx, qword [rax]
mov rbx, qword [rcx + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x48], eax
mov ecx, dword [rbp - 0x15]
mov dword [rsp + 0x40], ecx
mov ecx, dword [rbp - 0x19]
mov dword [rsp + 0x38], ecx
lea rax, str.Read_error.__u__u__u
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 2
mov r9d, 0x67
lea r8, str.D:JenkinsworkspaceN_MB5_InstallerService_srcPackagesSledgehammer.5.1.0.91_build_nativeincludeLogging.h
lea rdx, [0x1404e3f68]
mov rcx, rdi
call rbx
nop
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x14002b0b9
mov rdx, qword [rbp - 1]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b0b4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002b103
call fcn.14014f510
xor al, al
jmp 0x14002affb
call fcn.14002c3f0
mov r10, qword [rax]
lea rcx, str.Limit_reached
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 2
mov r9d, 0x5f
lea r8, str.D:JenkinsworkspaceN_MB5_InstallerService_srcPackagesSledgehammer.5.1.0.91_build_nativeincludeLogging.h
lea rdx, [0x1404e3f68]
mov rcx, rax
call qword [r10 + 0x18]
xor al, al
jmp 0x14002affb
call fcn.14015fa1c
int3
call fcn.14001cd90
nop
call fcn.14015fa1c
int3