Function at 0x1400a6b90
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov eax, dword [rdx]
mov edi, dword [rcx + 0x150]
and eax, 3
mov rbx, rcx
mov r14, rdx
cmp eax, 1
je 0x1400a6dc0
cmp byte [rdx + 4], 0
jne 0x1400a6d98
mov rbp, qword [rcx + 0x180]
cmp rbp, 0xffffffffffffffff
je 0x1400a6d80
mov rsi, qword [r14 + 0x10]
cmp rsi, rbp
jle 0x1400a6d60
mov eax, dword [rbx + 0x170]
test eax, eax
je 0x1400a6d60
mov rcx, qword [rbx + 0x178]
lea r8d, [rax - 1]
xor edx, edx
shl r8, 4
lea rax, [rcx + 0x10]
add r8, rax
jmp 0x1400a6c14
add rax, 0x10
mov ecx, dword [rcx]
add rdx, rcx
mov rcx, rax
cmp r8, rax
jne 0x1400a6c10
sub rsi, rbp
cmp rsi, rdx
cmovg rsi, rdx
test rsi, rsi
je 0x1400a6d60
mov ecx, dword [0x1402feee0]
mov rax, rbp
mov r8, rbp
cqo
idiv rcx
mov rcx, qword [r14 + 8]
sub r8, rdx
lea rax, [rsi + rdx]
mov qword [rsp + 0x38], rdx
mov edx, 4
mov r9d, r8d
mov qword [rsp + 0x20], rax
shr r8, 0x20
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400a6de0
mov r8d, dword [rbx + 0x170]
xor r13d, r13d
xor r15d, r15d
test r8d, r8d
jne 0x1400a6cb5
mov r8d, 0x33e
lea rdx, str.src_win_fs.c
lea rcx, str.done_read__read_size
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x1400a6d04
cmp rsi, r15
jbe 0x1400a6cff
mov eax, r13d
mov r8, rsi
shl rax, 4
add rax, qword [rbx + 0x178]
sub r8, r15
mov edx, dword [rax]
mov rcx, qword [rax + 8]
mov rax, qword [rsp + 0x38]
cmp r8, rdx
cmovbe rdx, r8
add r13d, 1
mov r12, rdx
lea rdx, [rax + r15]
add rdx, qword [rsp + 0x30]
mov r8, r12
add r15, r12
call sub.msvcrt.dll_memcpy
cmp dword [rbx + 0x170], r13d
ja 0x1400a6cb0
cmp rsi, r15
jne 0x1400a6c8c
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
je 0x1400a6de0
cmp qword [rbx + 0x180], 0xffffffffffffffff
je 0x1400a6e01
mov qword [rbx + 0x88], rsi
cmp rsi, 0xffffffffffffffff
jne 0x1400a6d6b
mov r8d, 0x34a
lea rdx, str.src_win_fs.c
lea rcx, str.req__result____1
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp qword [sym.imp.msvcrt.dll__assert]
mov qword [rbx + 0x88], 0
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rbp, qword [rdx + 0x18]
mov rsi, qword [r14 + 0x10]
cmp rsi, rbp
jg 0x1400a6be2
jmp 0x1400a6d60
mov dword [rcx + 0x14c], 1
mov ecx, 1
call fcn.1400a4200
cdqe
mov qword [rbx + 0x88], rax
jmp 0x1400a6d6b
mov dword [rcx + 0x14c], 0x3ec
mov ecx, 0x3ec
call fcn.1400a4200
cdqe
mov qword [rbx + 0x88], rax
jmp 0x1400a6d6b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x14c], eax
mov ecx, eax
call fcn.1400a4200
cdqe
mov qword [rbx + 0x88], rax
jmp 0x1400a6d6b
add rbp, rsi
lea r12, [0x140587f00]
lea r13, [0x1402fef00]
mov qword [r14 + 0x18], rbp
mov rcx, r12
movzx ebp, dil
call sub.KERNEL32.dll_EnterCriticalSection
mov rax, rbp
shl rax, 4
add rax, r13
mov r8, qword [rax]
test r8, r8
mov rcx, r8
setne r9b
and ecx, 0xf
jne 0x1400a6ed8
test r9b, r9b
je 0x1400a6ed8
mov r10, qword [rax + 8]
mov ecx, 0x10
mov rdx, r10
xor eax, eax
jmp 0x1400a6e71
add rax, 1
add rdx, 0x28
cmp rcx, rax
jbe 0x1400a6eed
cmp edi, dword [rdx]
jne 0x1400a6e60
lea rax, [rax + rax*4]
lea rax, [r10 + rax*8]
test rax, rax
jne 0x1400a6eb8
mov r15d, r8d
and r15d, 0xf
jne 0x1400a6e94
test r9b, r9b
jne 0x1400a6f3d
shl rbp, 4
mov eax, r15d
add r8, 1
lea rdx, [r13 + rbp]
lea rax, [rax + rax*4]
mov rcx, qword [rdx + 8]
mov qword [rdx], r8
lea rax, [rcx + rax*8]
mov dword [rax], edi
nop dword [rax]
movdqu xmm0, xmmword [r14]
mov rcx, r12
movups xmmword [rax + 8], xmm0
movdqu xmm1, xmmword [r14 + 0x10]
movups xmmword [rax + 0x18], xmm1
call fcn.1400bc310
jmp 0x1400a6d25
mov rax, rbp
shl rax, 4
mov r10, qword [r13 + rax + 8]
test rcx, rcx
jne 0x1400a6e54
mov rcx, qword [r10 + 0x280]
test rcx, rcx
je 0x1400a6e82
nop dword [rax]
mov rdx, rcx
xor eax, eax
nop dword [rax]
cmp edi, dword [rdx]
je 0x1400a6f30
add eax, 1
add rdx, 0x28
cmp eax, 0x10
jne 0x1400a6f08
mov rcx, qword [rcx + 0x280]
test rcx, rcx
jne 0x1400a6f00
jmp 0x1400a6e82
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8]
jmp 0x1400a6eb8
mov ecx, 0x288
call fcn.14009f970
mov rdx, rax
test rax, rax
je 0x1400a6f70
mov rax, rbp
shl rax, 4
add rax, r13
mov rcx, qword [rax + 8]
mov qword [rdx + 0x280], rcx
mov r8, qword [rax]
mov qword [rax + 8], rdx
jmp 0x1400a6e94
lea rdx, [0x14029d747]
mov ecx, 0xe
call fcn.1400a4140
nop
nop word cs:[rax + rax]
nop dword [rax]