Function at 0x1400c7c80
Capabilities:
Read file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x108
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x70], xmm6
mov qword [rbp + 0x68], 0xfffffffffffffffe
mov qword [rbp + 0x58], r8
mov qword [rbp + 0x10], rdx
mov al, 1
mov dword [rbp + 0x64], eax
test r9, r9
je 0x1400c7ce7
mov r13, qword [rbp + 0xf0]
add r13, 0x400
jb 0x1400c7cf0
mov rax, r13
and rax, 0x1fff
je 0x1400c7ce9
mov edx, 0x2000
sub rdx, rax
add r13, rdx
setb al
mov dword [rbp + 0x64], eax
jmp 0x1400c7cf0
jmp 0x1400c7cf0
mov dword [rbp + 0x64], 0
mov qword [rbp + 0x50], rcx
mov rax, qword [rbp + 0x58]
mov r14, qword [rax + 8]
mov rsi, qword [rax + 0x10]
xor r15d, r15d
xorps xmm6, xmm6
mov rbx, qword [sym.imp.kernel32.dll_SleepEx]
mov qword [rbp + 0x48], r14
mov qword [rbp + 0x30], rsi
jmp 0x1400c7d34
mov edx, 0x18
mov r8d, 8
mov rcx, qword [rbp + 0x18]
call fcn.140078bc0
cmp rsi, r14
je 0x1400c7e59
mov rax, qword [rbp + 0x58]
mov rax, qword [rax]
add rax, rsi
mov rcx, r14
sub rcx, rsi
cmp rcx, r13
mov rdx, r13
cmovb rdx, rcx
cmp byte [rbp + 0x64], 0
cmovne rdx, rcx
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rdx
mov qword [rbp], 0
mov qword [rbp + 8], r15
mov rcx, qword [rbp + 0x10]
lea rdx, [rbp - 0x10]
xor r8d, r8d
call fcn.1400bfa00
test rax, rax
je case.default.0x1400c7da3
mov r12, rax
mov edi, r12d
and edi, 3
lea rcx, [0x1400c81e0]
movsxd rax, dword [rcx + rdi*4]
add rax, rcx
jmp rax
movzx eax, byte [r12 + 0x10]
jmp 0x1400c7dcc
cmp al, 0x23
jne 0x1400c80d3
lea rax, [rdi - 2]
cmp rax, 2
jb 0x1400c7d34
test rdi, rdi
je 0x1400c7d34
mov rax, r12
dec rax
mov qword [rbp + 0x18], rax
mov rcx, qword [r12 - 1]
mov rax, qword [r12 + 7]
mov qword [rbp + 0x28], rcx
mov qword [rbp + 0x20], rax
call qword [rax]
mov rax, qword [rbp + 0x20]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1400c7d20
mov r8, qword [rax + 0x10]
mov rcx, qword [rbp + 0x28]
call fcn.140078bc0
jmp 0x1400c7d20
mov r8d, 0x20
mov rsi, qword [rbp + 0x58]
mov rcx, rsi
mov rdx, r14
call fcn.1400f9190
mov r14, qword [rsi + 8]
mov rsi, qword [rsi + 0x10]
jmp 0x1400c7d3d
mov rcx, qword [rbp]
test rcx, rcx
je 0x1400c8133
mov rax, qword [rbp + 8]
mov r15, rax
sub r15, rcx
jb 0x1400c815e
mov rdx, qword [rbp - 8]
cmp rax, rdx
ja 0x1400c816f
cmp rcx, rdx
ja 0x1400c8180
add rsi, rcx
mov rax, qword [rbp + 0x58]
mov qword [rax + 0x10], rsi
cmp r14, rsi
jne 0x1400c7d34
cmp r14, qword [rbp + 0x48]
jne 0x1400c7d34
movaps xmmword [rbp - 0x20], xmm6
movaps xmmword [rbp - 0x30], xmm6
mov rax, qword [rbp + 0x10]
mov r14, qword [rax]
lea rsi, [rbp + 0x38]
jmp 0x1400c7f09
call qword [sym.imp.kernel32.dll_GetLastError]
mov r12d, eax
mov ecx, r12d
call fcn.1400ca740
cmp al, 0x23
jne 0x1400c80fa
mov dword [rbp + 0x38], 0
movaps xmmword [rbp - 0x50], xmm6
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x38], rsi
lea rax, [0x1400bfb00]
mov qword [rsp + 0x20], rax
mov rcx, r14
lea rdx, [rbp - 0x30]
mov r8d, 0x20
lea r9, [rbp - 0x50]
call qword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
je 0x1400c7ef0
nop word [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rbx
cmp dword [rbp + 0x38], 0
je 0x1400c7f50
mov r12d, dword [rbp + 0x3c]
test r12d, r12d
jne 0x1400c7ef9
mov r12d, dword [rbp + 0x40]
test r12, r12
je 0x1400c8102
cmp r12d, 0x21
jae 0x1400c8148
mov rdi, qword [rbp + 0x58]
mov rcx, rdi
mov rdx, qword [rbp + 0x48]
mov r8, r12
call fcn.1400f9190
mov r14, qword [rdi + 8]
mov rsi, qword [rdi + 0x10]
mov rcx, qword [rdi]
add rcx, rsi
lea rdx, [rbp - 0x30]
mov r8, r12
call fcn.1400f7010
add rsi, r12
mov qword [rdi + 0x10], rsi
jmp 0x1400c7d34
mov rax, qword [rbp + 0x50]
mov qword [rax + 8], r12
mov qword [rax], 1
movaps xmm6, xmmword [rbp + 0x70]
add rsp, 0x108
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
movzx eax, al
cmp eax, 0xb
jne 0x1400c8119
mov rcx, qword [rbp + 0x48]
sub rcx, qword [rbp + 0x30]
mov rax, qword [rbp + 0x50]
mov qword [rax + 8], rcx
xor ecx, ecx
mov qword [rax], rcx
jmp 0x1400c80e2
shl r12, 0x20
or r12, 2
mov rax, qword [rbp + 0x50]
mov qword [rax + 8], r12
mov ecx, 1
mov qword [rax], rcx
jmp 0x1400c80e2
sub rsi, qword [rbp + 0x30]
mov rax, qword [rbp + 0x50]
mov qword [rax + 8], rsi
mov qword [rax], 0
jmp 0x1400c80e2
mov ecx, r12d
lea r8, [0x14010ce88]
mov edx, 0x20
call fcn.1400fd4c0
ud2
lea r8, str.library_std_srcio_readbuf.rslibrary_std_srciomod.rs
mov rdx, rax
call fcn.1400fd540
ud2
lea r8, str.library_std_srcio_readbuf.rslibrary_std_srciomod.rs
mov rcx, rax
call fcn.1400fd4c0
ud2
lea r8, str.library_std_srcio_readbuf.rslibrary_std_srciomod.rs
call fcn.1400fd4c0
ud2