Function at 0x45a7e4
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x7f8]
sub rsp, 0x8e0
mov r14, r8
mov rbx, rdx
mov rsi, rcx
xor edx, edx
mov r8d, 0x428
lea rcx, [rbp + 0x3b0]
call fcn.00424830
lea rax, [0x004837b8]
mov dword [rbp - 0x7c], 0x104
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
lea rax, [rbp - 0x78]
xor r15d, r15d
mov rdx, r14
mov qword [rsp + 0x78], rax
or rdi, 0xffffffffffffffff
mov dword [rbp - 0x80], r15d
mov word [rbp - 0x78], r15w
call fcn.00403ec4
lea rax, [0x0048d7e0]
mov qword [rsp + 0x70], rax
test rbx, rbx
je 0x45aaab
test r14, r14
je 0x45aaab
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x45aaab
lea rax, [rbp + 0x1a8]
mov dword [rbp + 0x1a0], r15d
lea r14, [0x004837b8]
mov qword [rbp + 0x198], rax
mov rdx, rbx
mov qword [rbp + 0x190], r14
lea rcx, [rbp + 0x190]
mov dword [rbp + reloc.OLEAUT32.dll_OleTranslateColor], 0x104
mov word [rbp + 0x1a8], r15w
call fcn.00403ec4
lea rax, [0x0048d7e0]
mov qword [rbp + 0x190], rax
cmp dword [rbp + 0x1a0], r15d
jbe 0x45a92c
mov rcx, qword [rbp + 0x198]
test rcx, rcx
je 0x45a923
mov qword [rsp + 0x30], r15
lea r8d, [rdi + 2]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rdi, 0xffffffffffffffff
setne al
jmp 0x45a92f
mov al, r15b
mov qword [rbp + 0x190], r14
mov qword [rbp + 0x198], r15
mov dword [rbp + 0x1a0], r15d
test al, al
je 0x45aaab
lea rdx, [rbp + 0x3b0]
lea rcx, [rsp + 0x54]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov eax, dword [rsp + 0x40]
mov dword [rbp + 0x3c8], eax
mov qword [rbp + 0x3c0], r15
mov qword [rbp + 0x808], r15
cmp rdi, 0xffffffffffffffff
je 0x45a997
lea rdx, [rbp + 0x808]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
mov rax, qword [rbp + 0x808]
jne 0x45a99a
mov rax, r15
mov r8, qword [rsp + 0x78]
mov qword [rbp + 0x7d0], rax
mov eax, dword [rbp - 0x80]
test eax, eax
je 0x45a9db
test r8, r8
je 0x45a9f5
mov ecx, r15d
test eax, eax
je 0x45a9db
mov edx, ecx
cmp word [r8 + rdx*2], 0x5c
jne 0x45a9d5
mov eax, 0x2f
mov word [r8 + rdx*2], ax
mov eax, dword [rbp - 0x80]
mov r8, qword [rsp + 0x78]
inc ecx
cmp ecx, eax
jb 0x45a9b9
test r8, r8
je 0x45a9f5
or r9, 0xffffffffffffffff
lea rcx, [rbp + 0x3cc]
mov edx, 0x200
call fcn.00435528
lea rdx, [rbp + 0x3b0]
mov rcx, rsi
call fcn.00459d04
test al, al
je 0x45aaab
cmp qword [rsi + 0x2f8], r15
jne 0x45aa32
lea rdx, [0x0047b0a0]
mov ecx, 0x400080
call fcn.0042267c
mov qword [rsi + 0x2f8], rax
test rax, rax
je 0x45aaab
mov r14, qword [rsi + 0x2f8]
cmp rdi, 0xffffffffffffffff
je 0x45aaf1
test r14, r14
je 0x45aaf1
mov ebx, r15d
mov r8d, 0x400000
mov edx, ebx
sub r8d, ebx
mov dword [rbp + 0x808], r15d
add rdx, r14
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x808]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45aa91
mov eax, dword [rbp + 0x808]
test eax, eax
je 0x45aa91
add ebx, eax
cmp ebx, 0x400000
jb 0x45aa4f
test ebx, ebx
je 0x45aaf1
mov rdx, qword [rsi + 0x2f8]
mov r8d, ebx
mov rcx, rsi
call fcn.00459be8
test al, al
jne 0x45aa32
mov bl, r15b
mov qword [rsp + 0x78], r15
lea rax, [0x004837b8]
mov qword [rsp + 0x70], rax
mov dword [rbp - 0x80], r15d
cmp rdi, 0xffffffffffffffff
je 0x45aad2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x8e0]
mov al, bl
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov rcx, rsi
call fcn.0045971c
mov bl, al
jmp 0x45aaae