Function at 0x10056490
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 0x100564c9
call fcn.100d8de4
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 0x10056585
test rax, rax
je 0x100567e6
lea rdx, [rsp + 0x88]
lea r9, [rsp + 0x28]
mov r8, rbx
call dbg.read2
test rax, rax
je 0x10056836
mov qword [rsp + 0x50], rax
lea rax, str.library_std_srcprocess.rs
mov qword [rsp + 0x20], rax
lea rcx, [0x1055cf78]
lea r9, sym.core::ptr::drop_in_place_std::io::error::Error_::he0cac720965b149f
lea r8, [rsp + 0x50]
mov edx, 0x2b
call dbg.unwrap_failed
jmp 0x10056a03
test rax, rax
je 0x10056836
mov qword [rsp + 0xc8], rbp
xorps xmm6, xmm6
lea rax, [0x1055f070]
mov qword [rsp + 0xc0], rax
xor r12d, r12d
xor r13d, r13d
xor edi, edi
jmp 0x100565d8
call fcn.100d8c94
mov r15d, eax
mov ecx, r15d
call dbg.decode_error_kind
cmp al, 0x23
jne 0x1005681a
mov r14, r12
sub r14, r13
jne 0x10056609
cmp r14, 0x20
jae 0x10056609
mov r8d, 0x20
lea rcx, [rsp + 0x28]
mov rdx, r12
call sym.alloc::raw_vec::RawVec_T_A_::reserve::do_reserve_and_handle::h70b37f0617af3d95
mov r12, qword [rsp + 0x28]
mov r13, qword [rsp + 0x38]
mov r14, r12
sub r14, r13
mov r8, r14
sub r8, rdi
jb 0x10056989
mov rbp, qword [rsp + 0x30]
add rbp, r13
lea rcx, [rdi + rbp]
xor edx, edx
call sub.msvcrt.dll_memset
invalid
or byte [rax], al
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 0x100565c0
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0xa0], 1
jne 0x10056690
mov r15d, dword [rsp + 0xa4]
test r15d, r15d
jne 0x100565c8
mov eax, dword [rsp + 0xa8]
cmp r14, rax
mov rdi, rax
cmova rdi, r14
test rax, rax
je 0x10056826
cmp r14, rax
jb 0x100569f0
sub rdi, rax
add r13, rax
mov qword [rsp + 0x38], r13
mov rax, r12
or rax, r13
jne 0x100565d8
movaps xmmword [rsp + 0xb0], xmm6
movaps xmmword [rsp + 0xa0], xmm6
lea rbp, [rsp + 0x40]
jmp 0x10056728
call fcn.100d8c94
mov r15d, eax
mov ecx, r15d
call dbg.decode_error_kind
cmp al, 0x23
jne 0x1005681a
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 0x10056710
nop
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0x40], 1
jne 0x10056770
mov r15d, dword [rsp + 0x44]
test r15d, r15d
jne 0x10056718
mov r15d, dword [rsp + 0x48]
test r15, r15
je 0x10056826
cmp r15d, 0x21
jae 0x100569d8
lea rcx, [rsp + 0x28]
xor edx, edx
mov r8, r15
call sym.alloc::raw_vec::RawVec_T_A_::reserve::do_reserve_and_handle::h70b37f0617af3d95
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 sub.msvcrt.dll_memcpy
add r13, r15
mov qword [rsp + 0x38], r13
jmp 0x100565d8
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::h42bad8ee61400202
cmp qword [rsp + 0x50], 0
jne 0x1005699d
mov rcx, qword [rsp + 0x40]
call fcn.100d8de4
jmp 0x10056836
movzx eax, al
cmp eax, 0xb
jne 0x10056951
mov rcx, rbx
call fcn.100d8de4
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 0x100568ab
call fcn.100d8c94
shl rax, 0x20
or rax, 2
mov qword [rbp], rax
mov qword [rbp + 8], 0
mov rdx, qword [rsp + 0x28]
test rdx, rdx
je 0x10056885
mov rcx, qword [rsp + 0x30]
mov r8d, 1
call sym.__rust_dealloc
mov rdx, qword [rsp + 0x88]
test rdx, rdx
je 0x10056921
mov rcx, qword [rsp + 0x90]
mov r8d, 1
call sym.__rust_dealloc
jmp 0x10056921
mov dword [rsp + 0x50], 0
lea rdx, [rsp + 0x50]
mov rcx, rdi
call sub.KERNEL32.dll_GetExitCodeProcess
test eax, eax
je 0x10056852
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.100d8de4
mov rcx, qword [rsi + 8]
call fcn.100d8de4
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, [0x1055cf78]
lea r9, sym.core::ptr::drop_in_place_std::io::error::Error_::he0cac720965b149f
lea r8, [rsp + 0x50]
mov edx, 0x2b
call dbg.unwrap_failed
jmp 0x10056a03
lea r8, [0x1055edf0]
mov rcx, rdi
mov rdx, r14
call dbg.slice_start_index_len_fail
jmp 0x10056a03
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0xa0], rax
lea rax, str.library_std_srcprocess.rs
mov qword [rsp + 0x20], rax
lea rcx, [0x1055cf78]
lea r9, sym.core::ptr::drop_in_place_std::io::error::Error_::he0cac720965b149f
lea r8, [rsp + 0xa0]
mov edx, 0x2b
call dbg.unwrap_failed
jmp 0x10056a03
lea rax, [0x1055f0a0]
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