Function at 0x1400af5e0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xd0
mov qword [rbp - 1], 0xfffffffffffffffe
mov qword [rsp + 0x128], rbx
mov rax, qword [0x1402f2080]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov r12, r8
mov r15, rdx
mov r14, rcx
mov byte [rcx + 0x2a8], 1
mov rcx, qword [rcx + 0x1f8]
add rcx, 0x10
mov qword [rbp - 0x11], rcx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
mov byte [rbp - 9], 1
mov rbx, qword [r14 + 0x1f8]
lea rcx, [rbx + 0x50]
call fcn.1400c7cf0
mov rdx, qword [rbx + 0x58]
mov r8, r15
cmp qword [rbx + 0x60], rdx
je 0x1400af668
call fcn.1400c7d70
add qword [rbx + 0x58], 0x50
jmp 0x1400af671
lea rcx, [rbx + 0x50]
call fcn.1400c7de0
mov rax, qword [r14 + 0x1f8]
mov dword [rax + 0x48], 4
xor eax, eax
mov qword [rbp + 7], rax
mov qword [rbp + 0xf], rax
mov rax, qword [r14 + 0x1f8]
mov qword [rbp - 0x69], rax
mov rbx, qword [r14 + 0x200]
test rbx, rbx
je 0x1400af6a8
lock inc dword [rbx + 8]
mov rax, qword [rbp - 0x69]
mov qword [rbp - 0x49], rax
mov qword [rbp - 0x41], rbx
test rbx, rbx
je 0x1400af6bd
lock inc dword [rbx + 8]
mov rax, qword [rbp - 0x69]
mov rax, qword [rax + 0x40]
mov qword [rbp - 0x39], rax
xor r13d, r13d
mov qword [rbp - 0x31], r13
lea esi, [r13 - 1]
test rbx, rbx
je 0x1400af700
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400af700
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400af700
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
nop
mov rax, qword [r14 + 0x2b0]
mov rcx, qword [rax]
lea r8, [rbp - 0x49]
mov rdx, qword [rcx + 0x18]
lea rcx, [rbp + 7]
call fcn.1400c43a0
nop
mov dword [rbp + 0x17], r13d
mov rdi, qword [rbp + 7]
mov qword [rsp + 0x20], rdi
lea r9, [rbp + 0x17]
mov r8d, r12d
mov rdx, qword [r15 + 0x30]
mov rcx, qword [r14 + 0x290]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test ebx, ebx
jne 0x1400af75b
cmp eax, 0x3e5
je 0x1400af765
cmp eax, 0xea
je 0x1400af765
cmp dword [rbp + 0x17], 0
je 0x1400af835
test rdi, rdi
je 0x1400af776
mov rdx, rdi
mov rcx, qword [rbp + 0xf]
call fcn.140078140
xorps xmm0, xmm0
movdqu xmmword [rbp + 7], xmm0
cmp byte [r14 + 0x94], 0
jne 0x1400af8ad
call fcn.1400a33e0
mov ecx, dword [r14 + 0x98]
sub ecx, eax
mov eax, ecx
imul rcx, rax, 0x3e8
mov qword [rbp - 0x71], rcx
lea rdx, [rbp - 0x71]
mov rcx, qword [r14 + 0x228]
call fcn.1400b82e0
mov rax, qword [r14 + 0x1f8]
mov qword [rbp - 0x59], rax
mov rbx, qword [r14 + 0x200]
test rbx, rbx
je 0x1400af7d6
lock inc dword [rbx + 8]
mov rax, qword [rbp - 0x59]
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x21], rbx
test rbx, rbx
je 0x1400af7eb
lock inc dword [rbx + 8]
mov rax, qword [rbp - 0x59]
mov rax, qword [rax + 0x40]
mov qword [rbp - 0x19], rax
test rbx, rbx
je 0x1400af823
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400af823
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1400af823
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
nop
lea rdx, [rbp - 0x29]
mov rcx, qword [r14 + 0x228]
call fcn.1400c1820
jmp 0x1400af8ad
test rdi, rdi
je 0x1400af8b1
mov r14d, 1
mov dword [rdi + 0x30], r14d
mov qword [rdi], r13
mov dword [rdi + 0x10], eax
mov dword [rdi + 0x14], r13d
mov r9, rdi
xor edx, edx
lea r8d, [r14 + 1]
mov rbx, qword [rbp + 0xf]
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
jne 0x1400af8a5
lea rcx, [rbx + 0x58]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
mov qword [rdi + 0x20], r13
mov rax, qword [rbx + 0x90]
test rax, rax
je 0x1400af889
mov qword [rax + 0x20], rdi
jmp 0x1400af890
mov qword [rbx + 0x88], rdi
mov qword [rbx + 0x90], rdi
xchg dword [rbx + 0x50], r14d
lea rcx, [rbx + 0x58]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
xorps xmm0, xmm0
movdqu xmmword [rbp + 7], xmm0
mov rdi, qword [rbp + 7]
test rdi, rdi
je 0x1400af8e0
mov qword [rbp - 0x79], r13
xor r9d, r9d
mov r8, r13
mov rdx, rdi
xor ecx, ecx
call qword [rdi + 0x28]
mov rax, qword [rbp + 0xf]
lock xadd dword [rax + 0x30], esi
cmp esi, 1
jne 0x1400af8e0
mov rcx, qword [rbp + 0xf]
call fcn.140077fe0
nop
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
xor eax, eax
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.140146480
mov rbx, qword [rsp + 0x128]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret