Function at 0x1400d4a70
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov eax, 0x1098
call sym.___chkstk_ms
sub rsp, rax
movaps xmmword [rsp + 0x1080], xmm6
mov rsi, rdx
mov r14, rcx
lea rbx, [rsp + 0x80]
mov r8d, 0x1000
mov rcx, rbx
xor edx, edx
call sub.msvcrt.dll_memset
mov dword [rsp + 0x28], 0
xorps xmm6, xmm6
movaps xmmword [rsp + 0x50], xmm6
mov qword [rsp + 0x60], 0
lea rdi, [rsp + 0x28]
mov qword [rsp + 0x68], rdi
lea r15, [sym._ZN3std3sys7windows4pipe8AnonPipe21alertable_io_internal8callback17h09050ed31b051827E.llvm.793214423941245703]
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x50]
mov qword [rsp + 0x38], r14
mov rcx, r14
mov rdx, rbx
mov r8d, 0x1000
call fcn.1401652ec
test eax, eax
je 0x1400d4c1e
mov ebx, 0xffffffff
lea rbp, [rsp + 0x44]
lea r14, [rsp + 0x50]
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0x28], 0
je 0x1400d4b10
mov ecx, dword [rsp + 0x2c]
test ecx, ecx
jne 0x1400d4c25
mov r12d, dword [rsp + 0x30]
test r12, r12
je 0x1400d4c82
cmp r12d, 0x1000
ja 0x1400d4cc4
xor r13d, r13d
mov r8, r12
sub r8, r13
lea rdx, [rsp + r13]
add rdx, 0x80
cmp r8, rbx
cmovae r8, rbx
mov dword [rsp + 0x44], 0
movaps xmmword [rsp + 0x50], xmm6
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x20], r15
mov rcx, rsi
mov r9, r14
call fcn.1401651d4
test eax, eax
je 0x1400d4c43
nop dword [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call sub.KERNEL32.dll_SleepEx
cmp dword [rsp + 0x44], 0
je 0x1400d4ba0
movsxd rax, dword [rsp + 0x48]
test rax, rax
jne 0x1400d4c48
mov eax, dword [rsp + 0x4c]
add r13, rax
cmp r13, r12
je 0x1400d4bdb
jbe 0x1400d4b50
jmp 0x1400d4cb0
mov dword [rsp + 0x28], 0
movaps xmmword [rsp + 0x50], xmm6
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x20], r15
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x80]
mov r8d, 0x1000
mov r9, r14
call fcn.1401652ec
test eax, eax
jne 0x1400d4b10
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
mov rbx, rcx
shl rbx, 0x20
or rbx, 2
call sym._ZN3std3sys7windows17decode_error_kind17hdbc276043523fafaE.llvm.793214423941245703
cmp al, 0xb
jne 0x1400d4c6a
mov rcx, rbx
call sym._ZN4core3ptr42drop_in_place_LT_std..io..error..Error_GT_17h5e3c89d72f40d3dcE.llvm.793214423941245703
jmp 0x1400d4c82
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 1
lea rcx, [rsp + 0x30]
call sym._ZN4core3ptr42drop_in_place_LT_std..io..error..Error_GT_17h5e3c89d72f40d3dcE.llvm.8576752959945271130
jmp 0x1400d4c82
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x70], 1
mov qword [rsp + 0x78], rbx
call sym._ZN4core3ptr42drop_in_place_LT_std..io..error..Error_GT_17h5e3c89d72f40d3dcE.llvm.8576752959945271130
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_CloseHandle
mov rcx, rsi
call sub.KERNEL32.dll_CloseHandle
movaps xmm6, xmmword [rsp + 0x1080]
add rsp, 0x1098
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea r8, [0x1401866d0]
mov rcx, r13
mov rdx, r12
call sym.core::slice::index::slice_index_order_fail::hc50742acf252e953
jmp 0x1400d4cd8
lea r8, [0x1401866d0]
mov edx, 0x1000
mov rcx, r12
call sym.core::slice::index::slice_end_index_len_fail::hdc10f6a9df671f4a
ud2