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

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x10b8
call fcn.14003a860
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1020], xmm6
mov qword [rbp + 0x1018], 0xfffffffffffffffe
mov qword [rbp + 0xfe8], rdx
mov dword [rbp + 0xfe8], edx
mov r12, rcx
lea r13, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, r13
xor edx, edx
call fcn.14003b780
invalid
loop case.0x140021387.87
invalid
xorps xmm6, xmm6
lea r14, [rbp + 0xffc]
lea rbx, [0x140023510]
lea r15, [rbp + 0xfb0]
mov rax, qword [sym.imp.KERNEL32.dll_ReadFileEx]
lea rsi, [0x14005dda4]
mov rdi, qword [sym.imp.KERNEL32.dll_SleepEx]
mov qword [rbp + 0xff0], r12
mov dword [rbp + 0xffc], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r14
mov qword [rsp + 0x20], rbx
mov rcx, r12
mov rdx, r13
mov r8d, 0x1000
mov r9, r15
call rax
test eax, eax
je 0x14002d5c0
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rbp + 0xffc], 0
je case.0x140020fc5.164
movsxd rax, dword [rbp + 0x1000]
test rax, rax
je 0x14002d600
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x1010], rax
mov qword [rbp + 0x1008], 1
mov ecx, eax
and ecx, 3
loope 0x14002d5b3
movsxd rcx, dword [rsi + rcx*4]
add rcx, rsi
jmp rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x1010], rax
mov qword [rbp + 0x1008], 1
mov ecx, eax
and ecx, 3
movsxd rcx, dword [rsi + rcx*4]
add rcx, rsi
jmp rcx
mov eax, dword [rbp + 0x1004]
mov qword [rbp + 0x1010], rax
mov qword [rbp + 0x1008], 0
jmp 0x14002d654
mov rax, qword [rbp + 0x1008]
mov qword [rbp + 0xfd0], rax
mov rax, qword [rbp + 0x1010]
mov qword [rbp + 0xfd8], rax
cmp qword [rbp + 0xfd0], 0
jne 0x14002d8ec
mov r12, qword [rbp + 0xfd8]
test r12, r12
je 0x14002d8b8
cmp r12, 0x1000
ja 0x14002d91c
mov rsi, r13
xor r13d, r13d
nop word cs:[rax + rax]
mov r8d, r12d
sub r8d, r13d
lea rdx, [r13 - 0x50]
add rdx, rbp
mov dword [rbp + 0xffc], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r14
mov qword [rsp + 0x20], rbx
mov rcx, qword [rbp + 0xfe8]
mov r9, r15
call qword [sym.imp.KERNEL32.dll_WriteFileEx]
test eax, eax
je 0x14002d88c
invalid
mov eax, dword [rcx]
add dword [rax], eax
invalid
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rbp + 0xffc], 0
je 0x14002d710
movsxd rax, dword [rbp + 0x1000]
test rax, rax
jne 0x14002d892
mov eax, dword [rbp + 0x1004]
add r13, rax
cmp r13, r12
je case.0x140023072.72
jbe 0x14002d6b0
jmp 0x14002d908
mov r12, qword [rbp + 0xff0]
mov r13, rsi
mov rax, qword [sym.imp.KERNEL32.dll_ReadFileEx]
lea rsi, [0x14005dda4]
jmp case.0x14002121f.232
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x1010], rax
mov qword [rbp + 0x1008], 1
lea rcx, [rbp + 0x1010]
call fcn.1400182a0
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0xff0]
call rsi
mov rcx, qword [rbp + 0xfe8]
call rsi
movaps xmm6, xmmword [rbp + 0x1020]
add rsp, 0x10b8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [rbp + 0xfd8]
call fcn.1400182a0
jmp 0x14002d8b8
lea r8, str.library_std_src_syspalwindowspipe.rs
mov rcx, r13
mov rdx, r12
call fcn.1400492c0
jmp 0x14002d930
lea r8, str.library_std_src_syspalwindowspipe.rs
mov edx, 0x1000
mov rcx, r12
call fcn.140049040
ud2