Function at 0x1800af360
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 + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1804610b0]
xor rax, rsp
mov qword [rbp - 8], rax
mov r14, rdx
mov rbx, rcx
xor r12d, r12d
mov qword [rdx + 0x10], r12
mov rax, rdx
cmp qword [rdx + 0x18], 0x10
jb 0x1800af3aa
mov rax, qword [rdx]
mov byte [rax], r12b
cmp qword [rcx + 0x10], r12
jne 0x1800af3ba
xor al, al
jmp 0x1800af5bc
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 0x1800af589
test rbx, rbx
je 0x1800af589
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x1800af56f
lea rdx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp eax, 0xffffffff
jne 0x1800af438
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1800af56f
mov ecx, dword [rbp - 0x10]
shl rcx, 0x20
mov rax, rdi
add rcx, rdi
je 0x1800af56f
mov edi, ecx
mov ecx, ecx
lea rdx, [0x180488a90]
call fcn.180299938
mov rsi, rax
test rax, rax
je 0x1800af56f
mov dword [rbp - 0x30], r12d
cmp qword [rbx], 0xffffffffffffffff
je 0x1800af497
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 0x1800af497
cmp dword [rbp - 0x30], edi
jne 0x1800af497
mov r15b, 1
jmp 0x1800af49a
xor r15b, r15b
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x1800af4b4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1800af4b4
mov qword [rbx], 0xffffffffffffffff
test r15b, r15b
je 0x1800af565
cmp edi, dword [rbp - 0x30]
jne 0x1800af565
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 0x1800af504
call fcn.180299904
xor sil, sil
jmp 0x1800af51e
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 0x1800af58c
mov rdx, qword [rbp - 0x18]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x1800af54f
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800af5e1
mov rcx, rdi
call fcn.180299904
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], r12
jmp 0x1800af58c
mov rcx, rsi
call fcn.180299904
jmp 0x1800af589
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x1800af589
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1800af589
mov qword [rbx], 0xffffffffffffffff
xor sil, sil
test rbx, rbx
je 0x1800af5b8
mov rcx, qword [rbx]
lea r8, [rcx - 1]
cmp r8, 0xfffffffffffffffd
ja 0x1800af5a7
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 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.1802a54c4
nop
int3