Function at 0x1400f5c60
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, 0x10a8
call fcn.140116fc0
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1010], xmm6
mov qword [rbp + 0x1008], 0xfffffffffffffffe
mov qword [rbp + 0xfd8], rdx
mov qword [rbp + 0xfe0], rcx
lea rcx, [rbp - 0x50]
mov r8d, 0x1000
xor edx, edx
call sub.VCRUNTIME140.dll_memset
xorps xmm6, xmm6
lea r12, [rbp + 0xffc]
lea r13, [0x1400eae50]
lea rdi, [rbp + 0xfb0]
mov r15, qword [sym.imp.KERNEL32.dll_WriteFileEx]
mov rsi, qword [sym.imp.KERNEL32.dll_SleepEx]
mov dword [rbp + 0xffc], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r12
mov qword [rsp + 0x20], r13
mov rcx, qword [rbp + 0xfe0]
lea rdx, [rbp - 0x50]
mov r8d, 0x1000
mov r9, rdi
call qword [sym.imp.KERNEL32.dll_ReadFileEx]
test eax, eax
je 0x1400f5d60
nop
mov ecx, 0xffffffff
mov edx, 1
call rsi
cmp dword [rbp + 0xffc], 1
jne 0x1400f5d20
mov eax, dword [rbp + 0x1000]
mov ebx, dword [rbp + 0x1004]
mov rcx, rax
shl rcx, 0x20
or rcx, 2
test eax, eax
cmovne rbx, rcx
jne 0x1400f5d73
jmp 0x1400f5db6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov rcx, rbx
mov eax, ecx
and eax, 3
shr rcx, 0x20
cmp eax, 2
jne 0x1400f5da0
call fcn.1400e17c0
cmp al, 0xb
mov eax, 0
cmove rbx, rax
je 0x1400f5db6
jmp 0x1400f5e8b
cmp rcx, 0xb
mov eax, 0
cmove rbx, rax
cmp ecx, 0xb
jne 0x1400f5e8b
test rbx, rbx
je 0x1400f5e57
cmp rbx, 0x1000
ja 0x1400f5f25
xor r14d, r14d
nop
cmp rbx, r14
jb 0x1400f5f11
mov r8d, ebx
sub r8d, r14d
lea rdx, [r14 + rbp]
add rdx, 0xffffffffffffffb0
mov dword [rbp + 0xffc], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], r12
mov qword [rsp + 0x20], r13
mov rcx, qword [rbp + 0xfd8]
mov r9, rdi
call r15
test eax, eax
je 0x1400f5e51
mov ecx, 0xffffffff
mov edx, 1
call rsi
cmp dword [rbp + 0xffc], 1
jne 0x1400f5e20
cmp dword [rbp + 0x1000], 0
jne 0x1400f5e57
mov eax, dword [rbp + 0x1004]
add r14, rax
cmp r14, rbx
jne 0x1400f5dd0
jmp 0x1400f5cd8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0xfe0]
call rsi
mov rcx, qword [rbp + 0xfd8]
call rsi
movaps xmm6, xmmword [rbp + 0x1010]
add rsp, 0x10a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov eax, ebx
and eax, 3
cmp eax, 1
jne 0x1400f5e57
lea rax, [rbx - 1]
mov qword [rbp + 0xfd0], rax
mov rax, qword [rbx - 1]
mov qword [rbp + 0xfe8], rax
mov rax, qword [rbx + 7]
mov qword [rbp + 0xff0], rax
mov rax, qword [rax]
test rax, rax
je 0x1400f5ec7
mov rcx, qword [rbp + 0xfe8]
call rax
mov r8, qword [rbp + 0xfe8]
mov rax, qword [rbp + 0xff0]
cmp qword [rax + 8], 0
je 0x1400f5ef6
cmp qword [rax + 0x10], 0x11
jb 0x1400f5ee7
mov r8, qword [r8 - 8]
mov rcx, qword [0x14017de28]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x14017de28]
xor edx, edx
mov r8, qword [rbp + 0xfd0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1400f5e57
lea r8, str.std_src_syspalwindowspipe.rs
mov rcx, r14
mov rdx, rbx
call fcn.140118ff0
jmp 0x1400f5f39
lea r8, str.std_src_syspalwindowspipe.rs
mov edx, 0x1000
mov rcx, rbx
call fcn.140118c50
ud2