Function at 0x458870
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
movaps xmmword [rsp + 0x70], xmm6
mov rsi, r8
mov r13, rdx
mov qword [rsp + 0x40], rcx
mov r12, qword [r8 + 8]
mov rbp, qword [r8 + 0x10]
xorps xmm6, xmm6
mov qword [rsp + 0x30], r12
mov rbx, rbp
mov qword [rsp + 0x48], rbp
nop dword [rax + rax]
cmp rbp, r12
jne 0x4588c1
mov rax, r12
sub rax, rbx
cmp rax, 0x1f
jbe 0x45893d
cmp rbx, r12
jae 0x4588d6
mov qword [rsi + 0x10], r12
mov rbx, r12
cmp r12, rbp
jb 0x458b36
mov rdi, rbx
sub rdi, rbp
jb 0x458b22
mov r14, qword [rsi]
lea rdx, [r14 + rbp]
mov dword [rsp + 0x50], 0
mov eax, 0xffffffff
cmp rdi, rax
mov r8d, 0xffffffff
cmovb r8d, edi
mov qword [rsp + 0x20], 0
mov rcx, r13
lea r9, [rsp + 0x50]
call sub.KERNEL32.dll_ReadFile
test eax, eax
jne 0x458964
call sub.KERNEL32.dll_GetLastError
mov r15d, eax
mov ecx, eax
call fcn.00455b40
cmp al, 0xb
je 0x458979
cmp al, 0x23
je 0x4588b0
jmp 0x458a8e
mov r8d, 0x20
mov rcx, rsi
mov rdx, rbx
call fcn.0043c040
mov r12, qword [rsi + 8]
mov rbx, qword [rsi + 0x10]
cmp rbx, r12
jb 0x4588c6
jmp 0x4588d6
mov eax, dword [rsp + 0x50]
mov rcx, rax
shr rcx, 8
mov edx, eax
and edx, 0xffff0000
jmp 0x45897f
xor eax, eax
xor ecx, ecx
xor edx, edx
shl ecx, 8
movzx ecx, cx
or rcx, rdx
movzx eax, al
or rax, rcx
je 0x458aeb
cmp rax, rdi
ja 0x458b4a
add rbp, rax
cmp rbp, r12
jne 0x4588b0
cmp r12, qword [rsp + 0x30]
jne 0x4588b0
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm6
nop
mov dword [rsp + 0x3c], 0
mov qword [rsp + 0x20], 0
mov rcx, r13
lea rdx, [rsp + 0x50]
mov r8d, 0x20
lea r9, [rsp + 0x3c]
call sub.KERNEL32.dll_ReadFile
test eax, eax
jne 0x458a08
call sub.KERNEL32.dll_GetLastError
mov ebp, eax
mov ecx, eax
call fcn.00455b40
cmp al, 0xb
je 0x458a1d
cmp al, 0x23
je 0x4589c0
jmp 0x458aac
mov eax, dword [rsp + 0x3c]
mov rdx, rax
shr rdx, 8
mov ecx, eax
and ecx, 0xffff0000
jmp 0x458a23
xor ecx, ecx
xor edx, edx
xor eax, eax
shl edx, 8
movzx edx, dx
or rdx, rcx
movzx ebp, al
or rbp, rdx
je 0x458b05
cmp rbp, 0x21
jae 0x458b64
mov rax, qword [rsp + 0x30]
sub rax, rbx
cmp rax, rbp
jb 0x458a73
add r14, rbx
mov rcx, r14
lea rdx, [rsp + 0x50]
mov r8, rbp
call sub.msvcrt.dll_memcpy
add rbx, rbp
mov qword [rsi + 0x10], rbx
add rbp, qword [rsp + 0x30]
jmp 0x4588b0
mov rcx, rsi
mov rdx, rbx
mov r8, rbp
call fcn.0043c040
mov rbx, qword [rsi + 0x10]
mov r14, qword [rsi]
mov r12, qword [rsi + 8]
jmp 0x458a4f
shl r15, 0x20
mov rax, qword [rsp + 0x40]
mov qword [rax + 8], r15
mov qword [rax + 0x10], 0
mov qword [rax], 1
jmp 0x458ace
shl rbp, 0x20
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 8], rbp
mov qword [rcx + 0x10], 0
mov eax, 1
mov qword [rcx], rax
mov rbp, qword [rsp + 0x30]
mov qword [rsi + 0x10], rbp
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, rbp
sub rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 8], rax
mov qword [rcx], 0
jmp 0x458ace
mov rbp, qword [rsp + 0x30]
mov rax, rbp
sub rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 8], rax
xor eax, eax
mov qword [rcx], rax
jmp 0x458ace
lea r8, [0x004829f8]
mov rcx, rbp
mov rdx, rbx
call fcn.0040fb70
ud2
lea r8, [0x004829e0]
mov rcx, rbp
mov rdx, r12
call fcn.0040fb70
ud2
lea rcx, str.assertion_failed:_n___buf.len__HAH
lea r8, [0x00482a10]
mov edx, 0x20
call fcn.00410120
ud2
lea r8, [0x00482a28]
mov edx, 0x20
mov rcx, rbp
call fcn.0040fbf0
ud2