Function at 0x14010849c
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 - 0x38]
mov eax, 0x110
call fcn.14024eae0
sub rsp, rax
xor r12d, r12d
mov edi, r9d
mov r13, r8
mov r14, rdx
mov r15, rcx
mov dword [rbp + 0x40], r12d
cmp dword [rcx + 0x34], r12d
je 0x140108536
cmp edi, 0x40000
jb 0x140108536
mov rcx, qword [rcx + 0x28]
lea rax, fcn.14000d960
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x30]
mov rax, qword [rbp + 0x68]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x48], r8
mov r8d, edi
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x40], r12
call fcn.14010c97c
mov rdx, qword [rbp + 0x60]
mov ebx, eax
mov ecx, dword [rsp + 0x30]
add dword [rdx], ecx
jmp 0x14010875a
mov eax, 0x10000
mov dword [rsp + 0x48], edx
mov esi, eax
mov qword [rsp + 0x50], r12
cmp edi, eax
mov rax, rdx
jmp 0x140108618
mov rcx, qword [r15 + 0x28]
lea rax, [rsp + 0x38]
lea r9, [rbp + 0x40]
mov qword [rsp + 0x20], rax
mov r8d, esi
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor r8d, r8d
mov r12d, eax
mov eax, r8d
mov dword [rsp + 0x30], eax
test r12d, r12d
jne 0x14010858d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
xor r8d, r8d
cmp dword [r15 + 0x34], r8d
je 0x1401085c3
test r12d, r12d
jne 0x1401085e7
cmp eax, 0x3e5
jne 0x1401085c8
mov rcx, qword [r15 + 0x28]
lea r9d, [r12 + 1]
lea r8, [rbp + 0x40]
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
xor r8d, r8d
test eax, eax
mov r12d, r8d
setne r12b
test r12d, r12d
jne 0x1401085e7
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 0x14010875a
mov ecx, dword [rbp + 0x40]
mov rax, qword [rbp + 0x60]
add r14, rcx
add r13, rcx
add dword [rax], ecx
sub edi, ecx
je 0x14010875a
cmp esi, ecx
jne 0x14010863b
mov eax, 0x10000
mov dword [rsp + 0x48], r14d
mov esi, eax
mov qword [rsp + 0x50], r8
cmp edi, eax
mov rax, r14
mov rcx, qword [rbp + 0x68]
cmovb esi, edi
shr rax, 0x20
mov dword [rsp + 0x4c], eax
call fcn.140106f10
mov ebx, eax
test eax, eax
jns 0x140108550
jmp 0x14010875a
cmp dword [r15 + 0x34], r8d
lea rdx, [0x140279280]
lea rax, [0x140279418]
mov dword [rbp - 0x50], edi
mov qword [rbp - 0x48], rax
setne byte [rbp - 0x38]
lea rax, str.m_fOverlapped
mov dword [rsp + 0x68], esi
mov qword [rbp - 0x40], rax
xor r9d, r9d
lea rax, str.cbData
mov word [rbp - 0x36], r8w
mov qword [rbp - 0x58], rax
mov edi, 0x763
lea rax, str.lastErrorFromReadFile
mov qword [rbp - 0x60], rdx
mov qword [rbp - 0x70], rax
lea ebx, [r9 + 0xa]
mov eax, dword [rsp + 0x30]
mov esi, 0x6ca013
mov dword [rbp - 0x68], eax
lea rax, str.cbRead
mov qword [rsp + 0x78], rax
lea rax, str.dwChunkSize
mov word [rbp - 0x4c], r8w
mov qword [rbp - 0x78], rdx
mov word [rbp - 0x64], r8w
mov qword [rsp + 0x70], rdx
mov dword [rbp - 0x80], ecx
mov ecx, esi
mov word [rbp - 0x7c], r8w
mov qword [rsp + 0x58], rdx
mov edx, edi
mov word [rsp + 0x6c], r8w
mov r8d, ebx
mov qword [rsp + 0x60], rax
call fcn.140239eb0
test al, al
je 0x140108755
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rbp - 0x30], rax
mov r8d, ebx
lea rax, [rsp + 0x70]
mov edx, edi
mov qword [rbp - 0x28], rax
mov ecx, esi
lea rax, [rbp - 0x78]
mov qword [rbp - 0x20], rax
lea rax, [rbp - 0x60]
mov qword [rbp - 0x18], rax
lea rax, [rbp - 0x48]
mov qword [rbp - 0x10], rax
lea rax, vtable.Mso::Logging::CompositeStructuredTrace.0
mov qword [rbp - 8], rax
lea rax, [rbp - 0x30]
mov qword [rbp], rax
lea rax, [rbp - 8]
mov qword [rbp + 8], rax
lea rax, [rbp - 8]
mov qword [rsp + 0x28], rax
lea rax, [0x1402d4b88]
mov qword [rsp + 0x20], rax
call fcn.14023a300
mov ebx, 0x8000ffff
lea r11, [rsp + 0x110]
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