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

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1804610b0]
xor rax, rsp
mov qword [rbp - 8], rax
mov r14, r8
mov rbx, rdx
xor r12d, r12d
mov qword [r8 + 0x10], r12
mov rax, r8
cmp qword [r8 + 0x18], 0x10
jb 0x18008beaa
mov rax, qword [r8]
mov byte [rax], r12b
cmp qword [rdx + 0x10], r12
jne 0x18008beba
xor al, al
jmp 0x18008c0bc
mov qword [rbp - 0x40], r12
mov ecx, 8
call fcn.1802994e4
mov qword [rbp - 0x10], rax
mov qword [rax], 0xffffffffffffffff
mov qword [rbp - 0x40], rax
mov dword [rsp + 0x20], 3
mov r9d, 1
mov r8d, 0x80000000
mov rdx, rbx
lea rcx, [rbp - 0x40]
call fcn.18016bb70
mov rbx, qword [rbp - 0x40]
test al, al
je 0x18008c089
test rbx, rbx
je 0x18008c089
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x18008c06f
lea rdx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp eax, 0xffffffff
jne 0x18008bf38
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x18008c06f
mov ecx, dword [rbp - 0x10]
shl rcx, 0x20
mov rax, rdi
add rcx, rdi
je 0x18008c06f
mov edi, ecx
mov ecx, ecx
lea rdx, [0x180488a90]
call fcn.180299938
mov rsi, rax
test rax, rax
je 0x18008c06f
mov dword [rbp - 0x30], r12d
cmp qword [rbx], 0xffffffffffffffff
je 0x18008bf97
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x30]
mov r8d, edi
mov rdx, rax
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18008bf97
cmp dword [rbp - 0x30], edi
jne 0x18008bf97
mov r15b, 1
jmp 0x18008bf9a
xor r15b, r15b
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x18008bfb4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x18008bfb4
mov qword [rbx], 0xffffffffffffffff
test r15b, r15b
je 0x18008c065
cmp edi, dword [rbp - 0x30]
jne 0x18008c065
xor eax, eax
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], r12
lea r8, [rbp - 0x28]
mov edx, dword [rbp - 0x30]
mov rcx, rsi
call fcn.18018bae0
mov rdi, qword [rbp - 0x28]
mov rcx, rsi
test al, al
jne 0x18008c004
call fcn.180299904
xor sil, sil
jmp 0x18008c01e
call fcn.180299904
mov r8, qword [rbp - 0x20]
sub r8, rdi
mov rdx, rdi
mov rcx, r14
call fcn.180037c20
mov sil, 1
test rdi, rdi
je 0x18008c08c
mov rdx, qword [rbp - 0x18]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x18008c04f
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18008c0e1
mov rcx, rdi
call fcn.180299904
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], r12
jmp 0x18008c08c
mov rcx, rsi
call fcn.180299904
jmp 0x18008c089
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x18008c089
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x18008c089
mov qword [rbx], 0xffffffffffffffff
xor sil, sil
test rbx, rbx
je 0x18008c0b8
mov rcx, qword [rbx]
lea r8, [rcx - 1]
cmp r8, 0xfffffffffffffffd
ja 0x18008c0a7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], r12
mov edx, 8
mov rcx, rbx
call fcn.180299904
mov qword [rbp - 0x40], r12
movzx eax, sil
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1802994c0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.1802a54c4
nop
int3