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

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov qword [rbp - 0x21], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1404680d8]
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 0x14000f9e8
lea r12, str.Sledgehammer
lea r13, str.Invalid_parameter__p__u
nop dword [rax + rax]
mov ecx, dword [rbp - 0x19]
test ecx, ecx
je 0x14000f9e8
mov eax, esi
inc esi
cmp eax, 0x64
ja 0x14000fab7
mov dword [rbp - 0x15], r15d
xor eax, eax
mov qword [rbp - 0x11], rax
mov qword [rbp - 9], rax
mov qword [rbp - 1], rax
mov edx, ecx
lea r8, [rbp - 0x29]
lea rcx, [rbp - 0x11]
call fcn.140025290
nop
mov r8, qword [rbp - 9]
mov rbx, qword [rbp - 0x11]
sub r8, rbx
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x15]
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000fa17
mov edi, dword [rbp - 0x15]
test edi, edi
je 0x14000fa17
test rbx, rbx
je 0x14000f93d
cmp edi, 8
jb 0x14000f93d
movzx ecx, word [rbx + 4]
lea eax, [rcx*2 + 8]
cmp edi, eax
jae 0x14000f8c6
call fcn.140024740
movzx ecx, word [rbx + 4]
mov dword [rsp + 0x40], ecx
mov dword [rsp + 0x38], edi
lea rcx, str.Inconsistent_length__u__u
mov qword [rsp + 0x30], rcx
mov r9d, 0x7e
jmp 0x14000f956
mov r8, rcx
mov qword [rbp + 0x17], r15
mov qword [rbp + 0x1f], r15
mov qword [rbp + 0x17], r15
mov qword [rbp + 0x1f], 7
mov word [rbp + 7], r15w
lea rdx, [rbx + 6]
lea rcx, [rbp + 7]
call fcn.14000d3a0
nop
call fcn.140024740
lea rcx, [rbp + 7]
cmp qword [rbp + 0x1f], 8
cmovae rcx, qword [rbp + 7]
mov r10, qword [rax]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], r12
mov ecx, dword [rbx]
mov dword [rsp + 0x20], ecx
mov r9d, 0x83
lea r8, str.d:jenkinsworkspace_a_mbam3_updaterexe_srcpackages_sledgehammer.5.0.0.70_build_nativeincludelogging.h
lea rdx, [0x1403b8fe8]
mov rcx, rax
call qword [r10 + 0x18]
nop
lea rcx, [rbp + 7]
call fcn.14000c340
jmp 0x14000f97c
call fcn.140024740
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], r13
mov r9d, 0x77
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 2
mov r10, qword [rax]
lea r8, str.d:jenkinsworkspace_a_mbam3_updaterexe_srcpackages_sledgehammer.5.0.0.70_build_nativeincludelogging.h
lea rdx, [0x1403b8fe8]
mov rcx, rax
call qword [r10 + 0x20]
nop
test rbx, rbx
je 0x14000f9c1
mov rdx, qword [rbp - 1]
sub rdx, rbx
mov rax, rbx
cmp rdx, 0x1000
jb 0x14000f9ad
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000fb00
mov rcx, rbx
call fcn.140282c34
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x11], xmm0
mov qword [rbp - 1], r15
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 0x14000f810
mov al, 1
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140282c10
lea r11, [rsp + 0xb0]
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.140024740
nop
mov rdi, rax
mov rsi, qword [rax]
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:jenkinsworkspace_a_mbam3_updaterexe_srcpackages_sledgehammer.5.0.0.70_build_nativeincludelogging.h
lea rdx, [0x1403b8fe8]
mov rcx, rdi
call qword [rsi + 0x20]
nop
test rbx, rbx
je 0x14000fab0
mov rdx, qword [rbp - 1]
sub rdx, rbx
mov rax, rbx
cmp rdx, 0x1000
jb 0x14000fa9c
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000fafa
mov rcx, rbx
call fcn.140282c34
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x11], xmm0
mov qword [rbp - 1], r15
xor al, al
jmp 0x14000f9ea
call fcn.140024740
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:jenkinsworkspace_a_mbam3_updaterexe_srcpackages_sledgehammer.5.0.0.70_build_nativeincludelogging.h
lea rdx, [0x1403b8fe8]
mov rcx, rax
call qword [r10 + 0x18]
xor al, al
jmp 0x14000f9ea
call fcn.14028ea2c
int3
call fcn.14028ea2c
int3