Function at 0x140057b80
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x128
movaps xmmword [rsp + 0x110], xmm6
mov rbp, rdx
mov r12, rcx
mov rcx, qword [rdx + 0x18]
cmp qword [rdx + 0x10], 0
mov qword [rdx + 0x10], 0
je 0x140057bb9
call fcn.1400d47f8
mov qword [rsp + 0x70], 1
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
mov qword [rsp + 0x88], 1
movups xmmword [rsp + 0x90], xmm0
mov rbx, qword [rbp + 0x28]
cmp qword [rbp + 0x20], 0
mov rax, qword [rbp + 0x30]
mov qword [rbp + 0x20], 0
mov rdi, qword [rbp + 0x38]
mov qword [rbp + 0x30], 0
je 0x140057ebc
test rax, rax
je 0x140058153
lea rcx, [rsp + 0x30]
lea r8, [rsp + 0x70]
mov rdx, rbx
call sym.std::sys::windows::pipe::AsyncPipe::new::hf82efce177dd7b60
mov rbx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x50]
cmp rax, 3
je 0x1400586f3
mov rcx, qword [rsp + 0x58]
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rsp + 0xd8], xmm0
mov rdx, qword [rsp + 0x48]
mov qword [rsp + 0xe8], rdx
mov qword [rsp + 0xd0], rbx
mov qword [rsp + 0xf0], rax
mov qword [rsp + 0xf8], rcx
lea rcx, [rsp + 0x30]
lea r8, [rsp + 0x88]
mov rdx, rdi
call sym.std::sys::windows::pipe::AsyncPipe::new::hf82efce177dd7b60
mov rbx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x50]
cmp rax, 3
je 0x1400584d7
mov rcx, qword [rsp + 0x58]
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rsp + 0xa8], xmm0
mov rdx, qword [rsp + 0x48]
mov qword [rsp + 0xb8], rdx
mov qword [rsp + 0xa0], rbx
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0xc8], rcx
mov rax, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0xa8]
mov qword [rsp + 0x100], rax
mov qword [rsp + 0x108], rcx
lea r14, [rsp + 0x100]
lea rsi, [rsp + 0x30]
lea r15, [rsp + 0xa0]
lea rdi, [rsp + 0xd0]
nop dword [rax + rax]
mov ecx, 2
mov rdx, r14
xor r8d, r8d
mov r9d, 0xffffffff
call sub.KERNEL32.dll_WaitForMultipleObjects
cmp eax, 1
je 0x140057d90
test eax, eax
jne 0x1400584bb
mov rax, qword [rsp + 0xf0]
test rax, rax
je 0x140057e4e
cmp eax, 1
jne 0x140057e25
mov rcx, qword [rsp + 0xd0]
mov rdx, qword [rsp + 0xe0]
mov dword [rsp + 0x30], 0
mov r8, rsi
mov r9d, 1
call sub.KERNEL32.dll_GetOverlappedResult
test eax, eax
je 0x140057e93
mov eax, dword [rsp + 0x30]
jmp 0x140057e2d
mov rax, qword [rsp + 0xc0]
test rax, rax
je 0x140057dff
cmp eax, 1
jne 0x140057dd6
mov rcx, qword [rsp + 0xa0]
mov rdx, qword [rsp + 0xb0]
mov dword [rsp + 0x30], 0
mov r8, rsi
mov r9d, 1
call sub.KERNEL32.dll_GetOverlappedResult
test eax, eax
je 0x140057e74
mov eax, dword [rsp + 0x30]
jmp 0x140057dde
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0xc0], 0
mov rcx, qword [rsp + 0xb8]
add qword [rcx + 0x10], rax
test rax, rax
je 0x14005840f
mov rcx, rsi
mov rdx, r15
call dbg.schedule_read
cmp byte [rsp + 0x30], 0
jne 0x1400584b0
test byte [rsp + 0x31], 1
jne 0x140057d10
jmp 0x14005840f
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0xf0], 0
mov rcx, qword [rsp + 0xe8]
add qword [rcx + 0x10], rax
test rax, rax
je 0x14005840c
mov rcx, rsi
mov rdx, rdi
call dbg.schedule_read
cmp byte [rsp + 0x30], 0
jne 0x1400584b0
test byte [rsp + 0x31], 1
jne 0x140057d10
jmp 0x14005840c
call fcn.1400d46b0
cmp eax, 0x6d
je 0x140057eae
mov ebx, eax
mov eax, 0
cmp ebx, 0x26
je 0x140057dde
jmp 0x1400584c2
call fcn.1400d46b0
cmp eax, 0x6d
je 0x140057eb5
mov ebx, eax
mov eax, 0
cmp ebx, 0x26
je 0x140057e2d
jmp 0x1400584c2
xor eax, eax
jmp 0x140057dde
xor eax, eax
jmp 0x140057e2d
test rax, rax
je 0x1400584ed
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x28], rbp
mov r14d, 1
xorps xmm6, xmm6
lea rax, [0x140143df8]
mov qword [rsp + 0x68], rax
xor r15d, r15d
xor r13d, r13d
xor ebx, ebx
jmp 0x140057f08
call fcn.1400d46b0
mov r12d, eax
mov ecx, r12d
call dbg.decode_error_kind
cmp al, 0x23
jne 0x1400583d8
cmp r13, r15
jne 0x140057f3b
mov r8d, 0x20
lea rcx, [rsp + 0x88]
mov rdx, r15
call sym.alloc::raw_vec::RawVec_T_A_::reserve::do_reserve_and_handle::h2ec7fe4b38353873
mov r13, qword [rsp + 0x98]
mov r14, qword [rsp + 0x88]
mov r15, qword [rsp + 0x90]
lea rbp, [r14 + r13]
mov rsi, r15
sub rsi, r13
mov r8, rsi
sub r8, rbx
jb 0x1400586c5
je 0x140057f5e
lea rcx, [rbx + rbp]
xor edx, edx
call sub.msvcrt.dll_memset
mov eax, 0xffffffff
cmp rsi, rax
mov r8d, 0xffffffff
cmovb r8, rsi
mov dword [rsp + 0xa0], 0
movaps xmmword [rsp + 0x30], xmm6
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x48], rax
lea rax, [dbg.callback]
mov qword [rsp + 0x20], rax
mov rcx, rdi
mov rdx, rbp
lea r9, [rsp + 0x30]
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
je 0x140057ef0
nop word [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0xa0], 1
jne 0x140057fc0
mov r12d, dword [rsp + 0xa4]
test r12d, r12d
jne 0x140057ef8
mov eax, dword [rsp + 0xa8]
cmp rsi, rax
mov rbx, rax
cmova rbx, rsi
test rax, rax
je 0x1400583e4
cmp rsi, rax
jb 0x140058744
sub rbx, rax
add r13, rax
mov qword [rsp + 0x98], r13
mov rax, r15
or rax, r13
jne 0x140057f08
movaps xmmword [rsp + 0xb0], xmm6
movaps xmmword [rsp + 0xa0], xmm6
lea rsi, [rsp + 0xd0]
jmp 0x140058068
call fcn.1400d46b0
mov r12d, eax
mov ecx, r12d
call dbg.decode_error_kind
cmp al, 0x23
jne 0x1400583d8
mov dword [rsp + 0xd0], 0
movaps xmmword [rsp + 0x30], xmm6
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], rsi
lea rax, [dbg.callback]
mov qword [rsp + 0x20], rax
mov rcx, rdi
lea rdx, [rsp + 0xa0]
mov r8d, 0x20
lea r9, [rsp + 0x30]
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
je 0x140058050
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0xd0], 1
jne 0x1400580c0
mov r12d, dword [rsp + 0xd4]
test r12d, r12d
jne 0x140058058
mov r12d, dword [rsp + 0xd8]
test r12, r12
je 0x1400583e4
cmp r12d, 0x21
jae 0x140058730
lea rcx, [rsp + 0x88]
xor edx, edx
mov r8, r12
call sym.alloc::raw_vec::RawVec_T_A_::reserve::do_reserve_and_handle::h2ec7fe4b38353873
mov r14, qword [rsp + 0x88]
mov r15, qword [rsp + 0x90]
mov r13, qword [rsp + 0x98]
lea rcx, [r14 + r13]
lea rdx, [rsp + 0xa0]
mov r8, r12
call sym.memcpy
add r13, r12
mov qword [rsp + 0x98], r13
jmp 0x140057f08
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x28], rbp
mov r13d, 1
xorps xmm6, xmm6
lea rax, [0x140143df8]
mov qword [rsp + 0x68], rax
xor r14d, r14d
xor ebp, ebp
xor edi, edi
jmp 0x140058198
call fcn.1400d46b0
mov r12d, eax
mov ecx, r12d
call dbg.decode_error_kind
cmp al, 0x23
jne 0x1400583e9
cmp rbp, r14
jne 0x1400581c2
mov r8d, 0x20
lea rcx, [rsp + 0x70]
mov rdx, r14
call sym.alloc::raw_vec::RawVec_T_A_::reserve::do_reserve_and_handle::h2ec7fe4b38353873
mov rbp, qword [rsp + 0x80]
mov r13, qword [rsp + 0x70]
mov r14, qword [rsp + 0x78]
mov rsi, r13
add rsi, rbp
mov r15, r14
sub r15, rbp
mov r8, r15
sub r8, rdi
jb 0x1400586dc
je 0x1400581e7
lea rcx, [rsi + rdi]
xor edx, edx
call sub.msvcrt.dll_memset
mov eax, 0xffffffff
cmp r15, rax
mov r8d, 0xffffffff
cmovb r8, r15
mov dword [rsp + 0xa0], 0
movaps xmmword [rsp + 0x30], xmm6
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x48], rax
lea rax, [dbg.callback]
mov qword [rsp + 0x20], rax
mov rcx, rbx
mov rdx, rsi
lea r9, [rsp + 0x30]
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
je 0x140058180
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0xa0], 1
jne 0x140058250
mov r12d, dword [rsp + 0xa4]
test r12d, r12d
jne 0x140058188
mov eax, dword [rsp + 0xa8]
cmp r15, rax
mov rdi, rax
cmova rdi, r15
test rax, rax
je 0x1400583f5
cmp r15, rax
jb 0x14005876b
sub rdi, rax
add rbp, rax
mov qword [rsp + 0x80], rbp
mov rax, r14
or rax, rbp
jne 0x140058198
movaps xmmword [rsp + 0xb0], xmm6
movaps xmmword [rsp + 0xa0], xmm6
lea rsi, [rsp + 0xd0]
jmp 0x1400582f8
call fcn.1400d46b0
mov r12d, eax
mov ecx, r12d
call dbg.decode_error_kind
cmp al, 0x23
jne 0x1400583e9
mov dword [rsp + 0xd0], 0
movaps xmmword [rsp + 0x30], xmm6
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], rsi
lea rax, [dbg.callback]
mov qword [rsp + 0x20], rax
mov rcx, rbx
lea rdx, [rsp + 0xa0]
mov r8d, 0x20
lea r9, [rsp + 0x30]
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
je 0x1400582e0
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0xd0], 1
jne 0x140058350
mov r12d, dword [rsp + 0xd4]
test r12d, r12d
jne 0x1400582e8
mov r12d, dword [rsp + 0xd8]
test r12, r12
je 0x1400583f5
cmp r12d, 0x21
jae 0x140058756
lea rcx, [rsp + 0x70]
xor edx, edx
mov r8, r12
call sym.alloc::raw_vec::RawVec_T_A_::reserve::do_reserve_and_handle::h2ec7fe4b38353873
mov r13, qword [rsp + 0x70]
mov r14, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
mov rcx, r13
add rcx, rbp
lea rdx, [rsp + 0xa0]
mov r8, r12
call sym.memcpy
add rbp, r12
mov qword [rsp + 0x80], rbp
jmp 0x140058198
movzx eax, al
cmp eax, 0xb
jne 0x14005864f
mov rbx, rdi
jmp 0x1400583f5
movzx eax, al
cmp eax, 0xb
jne 0x14005868a
mov rbp, qword [rsp + 0x28]
mov r12, qword [rsp + 0x60]
mov rcx, rbx
call fcn.1400d47f8
jmp 0x1400584ed
mov rdi, r15
lea rsi, [rsp + 0x30]
nop word cs:[rax + rax]
mov rax, qword [rdi + 0x20]
test rax, rax
je 0x140058479
cmp eax, 1
jne 0x140058460
mov rdx, qword [rdi + 0x10]
mov dword [rsp + 0x30], 0
mov rcx, qword [rdi]
mov r8, rsi
mov r9d, 1
call sub.KERNEL32.dll_GetOverlappedResult
test eax, eax
je 0x140058494
mov eax, dword [rsp + 0x30]
jmp 0x140058464
mov rax, qword [rdi + 0x28]
mov qword [rdi + 0x20], 0
mov rcx, qword [rdi + 0x18]
add qword [rcx + 0x10], rax
test rax, rax
je 0x1400584b7
mov rcx, rsi
mov rdx, rdi
call dbg.schedule_read
cmp byte [rsp + 0x30], 0
jne 0x1400584b0
test byte [rsp + 0x31], 1
jne 0x140058420
jmp 0x1400584b7
call fcn.1400d46b0
cmp eax, 0x6d
je 0x1400584ac
mov ebx, eax
mov eax, 0
cmp ebx, 0x26
je 0x140058464
jmp 0x1400584c2
xor eax, eax
jmp 0x140058464
mov rbx, qword [rsp + 0x38]
jmp 0x1400584ca
xor ebx, ebx
jmp 0x1400584ca
call fcn.1400d46b0
mov ebx, eax
shl rbx, 0x20
or rbx, 2
lea rcx, [rsp + 0xa0]
call dbg.drop_in_place<std::sys::windows::pipe::AsyncPipe>
lea rcx, [rsp + 0xd0]
call dbg.drop_in_place<std::sys::windows::pipe::AsyncPipe>
test rbx, rbx
jne 0x1400586fb
mov rcx, qword [rbp + 0x18]
cmp qword [rbp + 0x10], 0
mov qword [rbp + 0x10], 0
je 0x140058505
call fcn.1400d47f8
mov rsi, qword [rbp]
mov rcx, rsi
mov edx, 0xffffffff
call sub.KERNEL32.dll_WaitForSingleObject
test eax, eax
je 0x14005857f
call fcn.1400d46b0
shl rax, 0x20
or rax, 2
mov qword [r12 + 8], rax
mov qword [r12], 0
mov rdx, qword [rsp + 0x90]
test rdx, rdx
je 0x140058558
mov rcx, qword [rsp + 0x88]
mov r8, rdx
not r8
shr r8, 0x3f
call sym.__rust_dealloc
mov rdx, qword [rsp + 0x78]
test rdx, rdx
je 0x1400585ff
mov rcx, qword [rsp + 0x70]
mov r8, rdx
not r8
shr r8, 0x3f
call sym.__rust_dealloc
jmp 0x1400585ff
mov dword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rsi
call sub.KERNEL32.dll_GetExitCodeProcess
test eax, eax
je 0x14005851a
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x40], rcx
movups xmm0, xmmword [rsp + 0x70]
movaps xmmword [rsp + 0x30], xmm0
mov rcx, qword [rsp + 0x98]
mov qword [rsp + 0x58], rcx
movups xmm1, xmmword [rsp + 0x88]
movups xmmword [rsp + 0x48], xmm1
movups xmmword [r12], xmm0
mov rcx, qword [rsp + 0x50]
mov qword [r12 + 0x20], rcx
mov rcx, qword [rsp + 0x58]
mov qword [r12 + 0x28], rcx
mov rcx, qword [rsp + 0x40]
mov qword [r12 + 0x10], rcx
mov rcx, qword [rsp + 0x48]
mov qword [r12 + 0x18], rcx
mov dword [r12 + 0x30], eax
mov rcx, rsi
call fcn.1400d47f8
mov rcx, qword [rbp + 8]
call fcn.1400d47f8
cmp qword [rbp + 0x20], 0
je 0x140058620
mov rcx, qword [rbp + 0x28]
call fcn.1400d47f8
cmp qword [rbp + 0x30], 0
je 0x140058630
mov rcx, qword [rbp + 0x38]
call fcn.1400d47f8
mov rax, r12
movaps xmm6, xmmword [rsp + 0x110]
add rsp, 0x128
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
shl r12, 0x20
or r12, 2
mov qword [rsp + 0x30], r12
lea rax, str.library_std_srcprocess.rs
mov qword [rsp + 0x20], rax
lea rcx, [0x140141e60]
lea r9, sym.core::ptr::drop_in_place_std::io::error::Error_::h5d403b6ccd08425d
lea r8, [rsp + 0x30]
mov edx, 0x2b
call dbg.unwrap_failed
jmp 0x14005877b
shl r12, 0x20
or r12, 2
mov qword [rsp + 0x30], r12
lea rax, str.library_std_srcprocess.rs
mov qword [rsp + 0x20], rax
lea rcx, [0x140141e60]
lea r9, sym.core::ptr::drop_in_place_std::io::error::Error_::h5d403b6ccd08425d
lea r8, [rsp + 0x30]
mov edx, 0x2b
call dbg.unwrap_failed
jmp 0x14005877b
lea r8, [0x140143e10]
mov rcx, rbx
mov rdx, rsi
call dbg.slice_start_index_len_fail
jmp 0x14005877b
lea r8, [0x140143e10]
mov rcx, rdi
mov rdx, r15
call dbg.slice_start_index_len_fail
jmp 0x14005877b
mov rcx, rdi
call fcn.1400d47f8
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x30], rbx
lea rax, str.library_std_srcprocess.rs
mov qword [rsp + 0x20], rax
lea rcx, [0x140141e60]
lea r9, sym.core::ptr::drop_in_place_std::io::error::Error_::h5d403b6ccd08425d
lea r8, [rsp + 0x30]
mov edx, 0x2b
call dbg.unwrap_failed
jmp 0x14005877b
lea rax, [0x1401440e0]
mov qword [rsp + 0x68], rax
mov esi, 0x20
mov rbx, r12
mov rcx, rbx
mov rdx, rsi
mov r8, qword [rsp + 0x68]
call dbg.slice_end_index_len_fail
jmp 0x14005877b
lea rax, [0x1401440e0]
mov qword [rsp + 0x68], rax
mov r15d, 0x20
mov rdi, r12
mov rcx, rdi
mov rdx, r15
mov r8, qword [rsp + 0x68]
call dbg.slice_end_index_len_fail
ud2