Function at 0x45a710
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 0x45a9d7
test r14, r14
je 0x45a9d7
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x45a9d7
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 0x45a858
mov rcx, qword [rbp + 0x198]
test rcx, rcx
je 0x45a84f
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 0x45a85b
mov al, r15b
mov qword [rbp + 0x190], r14
mov qword [rbp + 0x198], r15
mov dword [rbp + 0x1a0], r15d
test al, al
je 0x45a9d7
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 0x45a8c3
lea rdx, [rbp + 0x808]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
mov rax, qword [rbp + 0x808]
jne 0x45a8c6
mov rax, r15
mov r8, qword [rsp + 0x78]
mov qword [rbp + 0x7d0], rax
mov eax, dword [rbp - 0x80]
test eax, eax
je 0x45a907
test r8, r8
je 0x45a921
mov ecx, r15d
test eax, eax
je 0x45a907
mov edx, ecx
cmp word [r8 + rdx*2], 0x5c
jne 0x45a901
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 0x45a8e5
test r8, r8
je 0x45a921
or r9, 0xffffffffffffffff
lea rcx, [rbp + 0x3cc]
mov edx, 0x200
call fcn.00435528
lea rdx, [rbp + 0x3b0]
mov rcx, rsi
call fcn.00459c30
test al, al
je 0x45a9d7
cmp qword [rsi + 0x2f8], r15
jne 0x45a95e
lea rdx, [0x0047b0a0]
mov ecx, 0x400080
call fcn.0042267c
mov qword [rsi + 0x2f8], rax
test rax, rax
je 0x45a9d7
mov r14, qword [rsi + 0x2f8]
cmp rdi, 0xffffffffffffffff
je 0x45aa1d
test r14, r14
je 0x45aa1d
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 0x45a9bd
mov eax, dword [rbp + 0x808]
test eax, eax
je 0x45a9bd
add ebx, eax
cmp ebx, 0x400000
jb 0x45a97b
test ebx, ebx
je 0x45aa1d
mov rdx, qword [rsi + 0x2f8]
mov r8d, ebx
mov rcx, rsi
call fcn.00459b14
test al, al
jne 0x45a95e
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 0x45a9fe
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.00459648
mov bl, al
jmp 0x45a9da