Function at 0x1400e13f4
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x4f]
sub rsp, 0xf0
xor r12d, r12d
mov edi, r9d
mov r13, r8
mov rsi, rdx
mov r15, rcx
mov dword [rbp + 0x57], r12d
cmp dword [rcx + 0x34], r12d
je 0x1400e1480
cmp edi, 0x40000
jb 0x1400e1480
mov rcx, qword [rcx + 0x28]
lea rax, fcn.1400038d0
mov qword [rbp - 0x71], rax
lea r9, [rbp - 0x79]
mov rax, qword [rbp + 0x7f]
mov qword [rbp - 0x59], rax
lea rax, [rbp - 0x71]
mov qword [rbp - 0x61], r8
mov r8d, edi
mov qword [rsp + 0x20], rax
mov qword [rbp - 0x79], r12
mov qword [rbp - 0x69], r12
call fcn.1400df96c
mov rdx, qword [rbp + 0x77]
mov ebx, eax
mov ecx, dword [rbp - 0x79]
add dword [rdx], ecx
jmp 0x1400e1640
mov eax, 0x10000
mov dword [rbp - 0x61], edx
mov r14d, eax
mov qword [rbp - 0x59], r12
cmp edi, eax
mov rax, rdx
jmp 0x1400e155c
mov rcx, qword [r15 + 0x28]
lea rax, [rbp - 0x71]
lea r9, [rbp + 0x57]
mov qword [rsp + 0x20], rax
mov r8d, r14d
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor r8d, r8d
mov r12d, eax
mov eax, r8d
mov dword [rbp - 0x79], eax
test r12d, r12d
jne 0x1400e14d3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x79], eax
xor r8d, r8d
cmp dword [r15 + 0x34], r8d
je 0x1400e1508
test r12d, r12d
jne 0x1400e152c
cmp eax, 0x3e5
jne 0x1400e150d
mov rcx, qword [r15 + 0x28]
lea r9d, [r12 + 1]
lea r8, [rbp + 0x57]
lea rdx, [rbp - 0x71]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
xor r8d, r8d
test eax, eax
mov r12d, r8d
setne r12b
test r12d, r12d
jne 0x1400e152c
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor r8d, r8d
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jne 0x1400e1640
mov ecx, dword [rbp + 0x57]
mov rax, qword [rbp + 0x77]
add rsi, rcx
add r13, rcx
add dword [rax], ecx
sub edi, ecx
je 0x1400e1640
cmp r14d, ecx
jne 0x1400e157f
mov eax, 0x10000
mov dword [rbp - 0x61], esi
mov r14d, eax
mov qword [rbp - 0x59], r8
cmp edi, eax
mov rax, rsi
mov rcx, qword [rbp + 0x7f]
cmovb r14d, edi
shr rax, 0x20
mov dword [rbp - 0x5d], eax
call fcn.1400df628
mov ebx, eax
test eax, eax
jns 0x1400e1499
jmp 0x1400e1640
cmp dword [r15 + 0x34], r8d
lea rdx, [0x14013c220]
lea rax, [0x14013c1f8]
mov word [rbp - 0x3f], r8w
mov qword [rbp - 0x51], rax
setne byte [rbp - 0x41]
lea rax, str.m_fOverlapped
mov qword [rbp - 0x39], rdx
mov qword [rbp - 0x49], rax
lea rax, str.cbData
mov qword [rbp - 0x31], rax
lea rax, str.lastErrorFromReadFile
mov qword [rbp - 0x19], rax
mov eax, dword [rbp - 0x79]
mov dword [rbp - 0x11], eax
lea rax, str.cbRead
mov qword [rbp - 1], rax
lea rax, str.dwChunkSize
mov qword [rbp + 0x17], rax
lea rax, [rbp - 0x51]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x39]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x21]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 9]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0xf]
mov qword [rsp + 0x28], rax
mov dword [rbp - 0x29], edi
mov word [rbp - 0x25], r8w
mov qword [rbp - 0x21], rdx
mov word [rbp - 0xd], r8w
mov qword [rbp - 9], rdx
mov dword [rbp + 7], ecx
mov word [rbp + 0xb], r8w
mov qword [rbp + 0xf], rdx
mov dword [rbp + 0x1f], r14d
mov word [rbp + 0x23], r8w
call fcn.1400e1a1c
mov ebx, 0x8000ffff
lea r11, [rsp + 0xf0]
mov eax, ebx
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret