Function at 0x457250
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 0x4572a1
mov rax, r12
sub rax, rbx
cmp rax, 0x1f
jbe 0x45731d
cmp rbx, r12
jae 0x4572b6
mov qword [rsi + 0x10], r12
mov rbx, r12
cmp r12, rbp
jb 0x457516
mov rdi, rbx
sub rdi, rbp
jb 0x457502
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 0x457344
call sub.KERNEL32.dll_GetLastError
mov r15d, eax
mov ecx, eax
call fcn.00454520
cmp al, 0xb
je 0x457359
cmp al, 0x23
je 0x457290
jmp 0x45746e
mov r8d, 0x20
mov rcx, rsi
mov rdx, rbx
call fcn.0043aa20
mov r12, qword [rsi + 8]
mov rbx, qword [rsi + 0x10]
cmp rbx, r12
jb 0x4572a6
jmp 0x4572b6
mov eax, dword [rsp + 0x50]
mov rcx, rax
shr rcx, 8
mov edx, eax
and edx, 0xffff0000
jmp 0x45735f
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 0x4574cb
cmp rax, rdi
ja 0x45752a
add rbp, rax
cmp rbp, r12
jne 0x457290
cmp r12, qword [rsp + 0x30]
jne 0x457290
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 0x4573e8
call sub.KERNEL32.dll_GetLastError
mov ebp, eax
mov ecx, eax
call fcn.00454520
cmp al, 0xb
je 0x4573fd
cmp al, 0x23
je 0x4573a0
jmp 0x45748c
mov eax, dword [rsp + 0x3c]
mov rdx, rax
shr rdx, 8
mov ecx, eax
and ecx, 0xffff0000
jmp 0x457403
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 0x4574e5
cmp rbp, 0x21
jae 0x457544
mov rax, qword [rsp + 0x30]
sub rax, rbx
cmp rax, rbp
jb 0x457453
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 0x457290
mov rcx, rsi
mov rdx, rbx
mov r8, rbp
call fcn.0043aa20
mov rbx, qword [rsi + 0x10]
mov r14, qword [rsi]
mov r12, qword [rsi + 8]
jmp 0x45742f
shl r15, 0x20
mov rax, qword [rsp + 0x40]
mov qword [rax + 8], r15
mov qword [rax + 0x10], 0
mov qword [rax], 1
jmp 0x4574ae
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 0x4574ae
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 0x4574ae
lea r8, [0x00481b38]
mov rcx, rbp
mov rdx, rbx
call fcn.0040e550
ud2
lea r8, [0x00481b20]
mov rcx, rbp
mov rdx, r12
call fcn.0040e550
ud2
lea rcx, str.assertion_failed:_n___buf.len__
lea r8, [0x00481b50]
mov edx, 0x20
call fcn.0040eb00
ud2
lea r8, [0x00481b68]
mov edx, 0x20
mov rcx, rbp
call fcn.0040e5d0
ud2