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

Disassembly:
push rbp
push r15
push r14
push r13
push rbp
push r12
push rsi
push rdi
push rbx
mov eax, 0x10b8
invalid
adc byte [rax], al
invalid
call fcn.14003b510
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1020], xmm6
mov qword [rbp + 0x1018], 0xfffffffffffffffe
mov qword [rbp + 0xfe8], rdx
mov r12, rcx
lea r13, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, r13
xor edx, edx
shr al, cl
add byte [rax], al
invalid
xorps xmm6, xmm6
lea r14, [rbp + 0xffc]
mov ch, 0xfc
sldt word [rax]
lea rbx, [0x1400231e0]
lea r15, [rbp + 0xfb0]
mov rax, qword [sym.imp.KERNEL32.dll_ReadFileEx]
lea rsi, [0x14005eed4]
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 eax, 0x1000
mov r9, r15
call rax
test eax, eax
je 0x14002d290
nop word cs:[rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rbp + 0xffc], 0
je case.0x140020db5.164
movsxd rax, dword [rbp + 0x1000]
test rax, rax
je 0x14002d2d0
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x1010], rax
mov qword [rbp + 0x1008], 1
mov ecx, eax
and ecx, 3
loope 0x14002d283
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
invalid
mov eax, dword [rbp + 0x1004]
mov qword [rbp + 0x1010], rax
mov qword [rbp + 0x1008], 0
jmp 0x14002d324
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 0x14002d5bc
mov r12, qword [rbp + 0xfd8]
test r12, r12
je 0x14002d588
cmp r12, 0x1000
ja 0x14002d5ec
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 0x14002d55c
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 0x14002d3e0
movsxd rax, dword [rbp + 0x1000]
test rax, rax
jne 0x14002d562
mov eax, dword [rbp + 0x1004]
add r13, rax
cmp r13, r12
je case.0x140022e62.72
jbe 0x14002d380
jmp 0x14002d5d8
mov r12, qword [rbp + 0xff0]
mov r13, rsi
mov rax, qword [sym.imp.KERNEL32.dll_ReadFileEx]
lea rsi, [0x14005eed4]
jmp 0x14002d1f5
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.140017020
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.140017020
jmp 0x14002d588
lea r8, str.library_std_src_syspalwindowspipe.rs
mov rcx, r13
mov rdx, r12
call fcn.140049f70
jmp 0x14002d600
lea r8, str.library_std_src_syspalwindowspipe.rs
mov edx, 0x1000
mov rcx, r12
call fcn.140049cf0
ud2