Function at 0x1400ade70
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 0x1400ae0a0
cmp byte [rdx + 4], 0
jne 0x1400ae078
mov rbp, qword [rcx + 0x180]
cmp rbp, 0xffffffffffffffff
je 0x1400ae060
mov rsi, qword [r14 + 0x10]
cmp rsi, rbp
jle 0x1400ae040
mov eax, dword [rbx + 0x170]
test eax, eax
je 0x1400ae040
mov rcx, qword [rbx + 0x178]
lea r8d, [rax - 1]
xor edx, edx
shl r8, 4
lea rax, [rcx + 0x10]
add r8, rax
jmp 0x1400adef4
add rax, 0x10
mov ecx, dword [rcx]
add rdx, rcx
mov rcx, rax
cmp r8, rax
jne 0x1400adef0
sub rsi, rbp
cmp rsi, rdx
cmovg rsi, rdx
test rsi, rsi
je 0x1400ae040
mov ecx, dword [0x1402fb500]
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 0x1400ae0c0
mov r8d, dword [rbx + 0x170]
xor r13d, r13d
xor r15d, r15d
test r8d, r8d
jne 0x1400adf95
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 0x1400adfe4
cmp rsi, r15
jbe 0x1400adfdf
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 0x1400adf90
cmp rsi, r15
jne 0x1400adf6c
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
je 0x1400ae0c0
cmp qword [rbx + 0x180], 0xffffffffffffffff
je 0x1400ae0e1
mov qword [rbx + 0x88], rsi
cmp rsi, 0xffffffffffffffff
jne 0x1400ae04b
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 0x1400adec2
jmp 0x1400ae040
mov dword [rcx + 0x14c], 1
mov ecx, 1
call fcn.1400ab4e0
cdqe
mov qword [rbx + 0x88], rax
jmp 0x1400ae04b
mov dword [rcx + 0x14c], 0x3ec
mov ecx, 0x3ec
call fcn.1400ab4e0
cdqe
mov qword [rbx + 0x88], rax
jmp 0x1400ae04b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0x14c], eax
mov ecx, eax
call fcn.1400ab4e0
cdqe
mov qword [rbx + 0x88], rax
jmp 0x1400ae04b
add rbp, rsi
lea r12, [0x140584520]
lea r13, [0x1402fb520]
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 0x1400ae1b8
test r9b, r9b
je 0x1400ae1b8
mov r10, qword [rax + 8]
mov ecx, 0x10
mov rdx, r10
xor eax, eax
jmp 0x1400ae151
add rax, 1
add rdx, 0x28
cmp rcx, rax
jbe 0x1400ae1cd
cmp edi, dword [rdx]
jne 0x1400ae140
lea rax, [rax + rax*4]
lea rax, [r10 + rax*8]
test rax, rax
jne 0x1400ae198
mov r15d, r8d
and r15d, 0xf
jne 0x1400ae174
test r9b, r9b
jne 0x1400ae21d
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.1400c35f0
jmp 0x1400ae005
mov rax, rbp
shl rax, 4
mov r10, qword [r13 + rax + 8]
test rcx, rcx
jne 0x1400ae134
mov rcx, qword [r10 + 0x280]
test rcx, rcx
je 0x1400ae162
nop dword [rax]
mov rdx, rcx
xor eax, eax
nop dword [rax]
cmp edi, dword [rdx]
je 0x1400ae210
add eax, 1
add rdx, 0x28
cmp eax, 0x10
jne 0x1400ae1e8
mov rcx, qword [rcx + 0x280]
test rcx, rcx
jne 0x1400ae1e0
jmp 0x1400ae162
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8]
jmp 0x1400ae198
mov ecx, 0x288
call fcn.1400a6950
mov rdx, rax
test rax, rax
je 0x1400ae250
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 0x1400ae174
lea rdx, [0x14029c947]
mov ecx, 0xe
call fcn.1400ab420
nop
nop word cs:[rax + rax]
nop dword [rax]