Function at 0x14005ea80
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xe8
movaps xmmword [rsp + 0xd0], xmm6
mov rsi, rdx
mov rbp, rcx
mov rcx, qword [rdx + 0x18]
cmp qword [rdx + 0x10], 0
mov qword [rdx + 0x10], 0
je 0x14005eab9
call fcn.1400e24b4
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x90], 1
mov qword [rsp + 0x98], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 1
mov qword [rsp + 0x38], 0
mov rcx, qword [rsi + 0x28]
cmp qword [rsi + 0x20], 0
mov rax, qword [rsi + 0x30]
mov qword [rsi + 0x20], 0
mov rbx, qword [rsi + 0x38]
mov qword [rsi + 0x30], 0
je 0x14005eb75
test rax, rax
je 0x14005edd6
lea rdx, [rsp + 0x88]
lea r9, [rsp + 0x28]
mov r8, rbx
call dbg.read2
test rax, rax
je 0x14005ee26
mov qword [rsp + 0x50], rax
lea rax, str.library_std_srcprocess.rs
mov qword [rsp + 0x20], rax
lea rcx, [0x1400ed2e8]
lea r9, sym.core::ptr::drop_in_place_std::io::error::Error_::hd19b2c5bd2a708fa
lea r8, [rsp + 0x50]
mov edx, 0x2b
call dbg.unwrap_failed
jmp 0x14005effb
test rax, rax
je 0x14005ee26
mov qword [rsp + 0xc8], rbp
xorps xmm6, xmm6
lea rax, [0x1400ef1d8]
mov qword [rsp + 0xc0], rax
xor r12d, r12d
xor r13d, r13d
xor edi, edi
jmp 0x14005ebc8
call sub.KERNEL32.dll_GetLastError
mov r15d, eax
mov ecx, r15d
call dbg.decode_error_kind
cmp al, 0x23
jne 0x14005ee0a
mov r14, r12
sub r14, r13
jne 0x14005ebf9
cmp r14, 0x20
jae 0x14005ebf9
mov r8d, 0x20
lea rcx, [rsp + 0x28]
mov rdx, r12
call sym.alloc::raw_vec::RawVec_T_A_::reserve::do_reserve_and_handle::h322975b10a0521ae
mov r12, qword [rsp + 0x28]
mov r13, qword [rsp + 0x38]
mov r14, r12
sub r14, r13
mov r8, r14
sub r8, rdi
jb 0x14005ef81
mov rbp, qword [rsp + 0x30]
add rbp, r13
lea rcx, [rdi + rbp]
xor edx, edx
call sub.msvcrt.dll_memset
mov eax, 0xffffffff
cmp r14, rax
mov r8d, 0xffffffff
cmovb r8, r14
mov dword [rsp + 0xa0], 0
movaps xmmword [rsp + 0x50], xmm6
mov qword [rsp + 0x60], 0
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x68], rax
lea rax, [dbg.callback]
mov qword [rsp + 0x20], rax
mov rcx, rbx
mov rdx, rbp
lea r9, [rsp + 0x50]
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
je 0x14005ebb0
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0xa0], 1
jne 0x14005ec80
mov r15d, dword [rsp + 0xa4]
test r15d, r15d
jne 0x14005ebb8
mov eax, dword [rsp + 0xa8]
cmp r14, rax
mov rdi, rax
cmova rdi, r14
test rax, rax
je 0x14005ee16
cmp r14, rax
jb 0x14005efe8
sub rdi, rax
add r13, rax
mov qword [rsp + 0x38], r13
mov rax, r12
or rax, r13
jne 0x14005ebc8
movaps xmmword [rsp + 0xb0], xmm6
movaps xmmword [rsp + 0xa0], xmm6
lea rbp, [rsp + 0x40]
jmp 0x14005ed18
call sub.KERNEL32.dll_GetLastError
mov r15d, eax
mov ecx, r15d
call dbg.decode_error_kind
cmp al, 0x23
jne 0x14005ee0a
mov dword [rsp + 0x40], 0
movaps xmmword [rsp + 0x50], xmm6
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], rbp
lea rax, [dbg.callback]
mov qword [rsp + 0x20], rax
mov rcx, rbx
lea rdx, [rsp + 0xa0]
mov r8d, 0x20
lea r9, [rsp + 0x50]
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
je 0x14005ed00
nop
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0x40], 1
jne 0x14005ed60
mov r15d, dword [rsp + 0x44]
test r15d, r15d
jne 0x14005ed08
mov r15d, dword [rsp + 0x48]
test r15, r15
je 0x14005ee16
cmp r15d, 0x21
jae 0x14005efd0
lea rcx, [rsp + 0x28]
xor edx, edx
mov r8, r15
call sym.alloc::raw_vec::RawVec_T_A_::reserve::do_reserve_and_handle::h322975b10a0521ae
mov r12, qword [rsp + 0x28]
mov r13, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
add rcx, r13
lea rdx, [rsp + 0xa0]
mov r8, r15
call sym.memcpy
add r13, r15
mov qword [rsp + 0x38], r13
jmp 0x14005ebc8
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x40]
lea r8, [rsp + 0x88]
call sym.std::sys::windows::pipe::AnonPipe::read_to_end::hfb6bda276b356810
cmp qword [rsp + 0x50], 0
jne 0x14005ef95
mov rcx, qword [rsp + 0x40]
call fcn.1400e24b4
jmp 0x14005ee26
movzx eax, al
cmp eax, 0xb
jne 0x14005ef49
mov rcx, rbx
call fcn.1400e24b4
mov rbp, qword [rsp + 0xc8]
mov qword [rsi + 0x10], 0
mov rdi, qword [rsi]
mov rcx, rdi
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
test eax, eax
je 0x14005eea3
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rbp], rax
mov qword [rbp + 8], 0
mov rdx, qword [rsp + 0x28]
test rdx, rdx
je 0x14005ee79
mov rcx, qword [rsp + 0x30]
mov r8, rdx
not r8
shr r8, 0x3f
call sym.__rust_dealloc
mov rdx, qword [rsp + 0x88]
test rdx, rdx
je 0x14005ef19
mov rcx, qword [rsp + 0x90]
mov r8, rdx
not r8
shr r8, 0x3f
call sym.__rust_dealloc
jmp 0x14005ef19
mov dword [rsp + 0x50], 0
lea rdx, [rsp + 0x50]
mov rcx, rdi
call sub.KERNEL32.dll_GetExitCodeProcess
test eax, eax
je 0x14005ee42
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x98]
mov qword [rsp + 0x60], rcx
movups xmm0, xmmword [rsp + 0x88]
movaps xmmword [rsp + 0x50], xmm0
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x78], rcx
movups xmm1, xmmword [rsp + 0x28]
movups xmmword [rsp + 0x68], xmm1
movups xmmword [rbp], xmm0
mov rcx, qword [rsp + 0x70]
mov qword [rbp + 0x20], rcx
mov rcx, qword [rsp + 0x78]
mov qword [rbp + 0x28], rcx
mov rcx, qword [rsp + 0x60]
mov qword [rbp + 0x10], rcx
mov rcx, qword [rsp + 0x68]
mov qword [rbp + 0x18], rcx
mov dword [rbp + 0x30], eax
mov rcx, rdi
call fcn.1400e24b4
mov rcx, qword [rsi + 8]
call fcn.1400e24b4
mov rax, rbp
movaps xmm6, xmmword [rsp + 0xd0]
add rsp, 0xe8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
shl r15, 0x20
or r15, 2
mov qword [rsp + 0x50], r15
lea rax, str.library_std_srcprocess.rs
mov qword [rsp + 0x20], rax
lea rcx, [0x1400ed2e8]
lea r9, sym.core::ptr::drop_in_place_std::io::error::Error_::hd19b2c5bd2a708fa
lea r8, [rsp + 0x50]
mov edx, 0x2b
call dbg.unwrap_failed
jmp 0x14005effb
lea r8, [0x1400ef1f0]
mov rcx, rdi
mov rdx, r14
call dbg.slice_start_index_len_fail
jmp 0x14005effb
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0xa0], rax
lea rax, str.library_std_srcprocess.rs
mov qword [rsp + 0x20], rax
lea rcx, [0x1400ed2e8]
lea r9, sym.core::ptr::drop_in_place_std::io::error::Error_::hd19b2c5bd2a708fa
lea r8, [rsp + 0xa0]
mov edx, 0x2b
call dbg.unwrap_failed
jmp 0x14005effb
lea rax, [0x1400ef488]
mov qword [rsp + 0xc0], rax
mov r14d, 0x20
mov rdi, r15
mov rcx, rdi
mov rdx, r14
mov r8, qword [rsp + 0xc0]
call dbg.slice_end_index_len_fail
ud2