Function at 0x140010c70
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x58
mov edi, dword [rdx]
mov rbp, r8
mov r12, qword [rdx + 0x10]
mov rsi, rdx
imul rdi, r8
cmp dword [0x140029a60], 0
mov rbx, rcx
mov qword [rsp + 0x40], rdi
je 0x140010cca
mov rcx, qword [0x140027a70]
xor r14d, r14d
mov qword [rdx + 0x20], r8
mov dword [rdx + 0x28], r14d
mov rax, qword [rcx]
mov qword [rdx + 0x30], rax
xor eax, eax
mov dword [rcx + 0x10], r14d
add rsp, 0x58
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
lea r9, [rsp + 0x98]
mov rdx, rbp
lea r8, [rsp + 0xa0]
call fcn.140011250
test eax, eax
jne 0x140010eeb
cmp dword [rsp + 0x98], eax
jne 0x140010d21
mov rcx, qword [rsp + 0xa0]
inc dword [0x1400288c0]
mov qword [rsi + 0x20], rbp
mov eax, dword [rcx + 0x10]
mov dword [rsi + 0x28], eax
mov rax, qword [rcx]
mov qword [rsi + 0x30], rax
xor eax, eax
add rsp, 0x58
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov ecx, dword [0x1400288d0]
inc ecx
mov dword [0x1400288d0], ecx
cmp rdi, qword [r12 + 0x58]
je 0x140010d52
mov r8, rbp
mov rdx, rsi
mov rcx, rbx
call fcn.140010f00
test eax, eax
jne 0x140010eeb
mov ecx, dword [0x1400288d0]
mov r10, qword [r12]
xor r14d, r14d
mov qword [rsp + 0x90], r13
mov ebx, r14d
mov r13, qword [rsp + 0xa0]
mov qword [rsp + 0x50], r15
mov r15d, dword [rsi]
mov qword [rsp + 0xa8], r10
mov rax, qword [r13]
mov qword [rsp + 0xa0], rax
test r15, r15
je 0x140010e31
mov r8d, r15d
mov dword [rsp + 0x98], r14d
sub r8d, ebx
mov qword [rsp + 0x20], r14
lea rdx, [rbx + rax]
mov rcx, r10
lea r9, [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140010dd3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
je 0x140010df8
cmp eax, 0x26
je 0x140010dd3
cmp eax, 0x6d
jne 0x140010dfd
mov ecx, dword [rsp + 0x98]
add rbx, rcx
test ecx, ecx
je 0x140010e26
cmp rbx, r15
jae 0x140010e26
mov rax, qword [rsp + 0xa0]
mov r10, qword [rsp + 0xa8]
jmp 0x140010d91
mov edi, 0xffffbad2
mov ecx, edi
call fcn.140010560
mov r8, qword [r12 + 0x10]
lea rdx, str.input_read_failed
mov r9, rax
lea rcx, str.xdelta3:__s:__s:__s_n
call fcn.140010bb0
mov eax, edi
jmp 0x140010ede
mov ecx, dword [0x1400288d0]
mov rdi, qword [rsp + 0x40]
mov edx, dword [0x1400288c4]
cmp edx, 4
jle 0x140010e5c
mov rdx, qword [r12 + 0x10]
lea rcx, str.xdelta3:_read__s:__I64u_bytes_n
mov r8, rbx
call fcn.140010bb0
mov ecx, dword [0x1400288d0]
mov edx, dword [0x1400288c4]
add qword [r12 + 0x38], rbx
lea rax, [rbx + rdi]
mov qword [r12 + 0x58], rax
cmp edx, 3
jle 0x140010ec5
mov r9, qword [r13 + 8]
mov r8, rbx
mov eax, dword [0x1400288ec]
mov rdx, rbp
cmp r9, 0xffffffffffffffff
je 0x140010eaa
cmp r9, rbp
je 0x140010eaa
mov dword [rsp + 0x30], eax
mov eax, dword [0x1400288c0]
mov dword [rsp + 0x28], ecx
lea rcx, str.xdelta3:_source_block__I64u_read__I64u_ejects__I64u__lru_hits_u__lru_misses_u__lru_filled_u__n
mov dword [rsp + 0x20], eax
call fcn.140010bb0
jmp 0x140010ec5
mov r9d, dword [0x1400288c0]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
lea rcx, str.xdelta3:_source_block__I64u_read__I64u__lru_hits_u__lru_misses_u__lru_filled_u__n
call fcn.140010bb0
mov rax, qword [r13]
mov qword [rsi + 0x30], rax
xor eax, eax
mov qword [rsi + 0x20], rbp
mov dword [rsi + 0x28], ebx
mov dword [r13 + 0x10], ebx
mov qword [r13 + 8], rbp
mov r13, qword [rsp + 0x90]
mov r15, qword [rsp + 0x50]
add rsp, 0x58
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret