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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
xor r13d, r13d
mov qword [rbp - 0x28], 0xf
mov rax, rdx
mov qword [rsp + 0x30], r13
mov r15, rcx
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov qword [rbp - 0x30], r13
lea r8d, [r13 + 1]
mov byte [rbp - 0x40], r13b
mov rcx, qword [rax]
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1800033e9
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r12d, eax
test eax, eax
je 0x1800033e9
mov rcx, qword [rbp - 0x30]
cmp r12, rcx
ja 0x1800032e8
cmp qword [rbp - 0x28], 0x10
lea rcx, [rbp - 0x40]
mov qword [rbp - 0x30], r12
cmovae rcx, qword [rbp - 0x40]
mov byte [rcx + r12], r13b
jmp 0x18000334b
mov rdx, qword [rbp - 0x28]
mov qword [rsp + 0xb0], rsi
mov rax, rdx
mov rsi, r12
sub rax, rcx
sub rsi, rcx
cmp rsi, rax
ja 0x18000332c
cmp rdx, 0x10
mov qword [rbp - 0x30], r12
lea rbx, [rbp - 0x40]
mov r8, rsi
cmovae rbx, qword [rbp - 0x40]
xor edx, edx
add rbx, rcx
mov rcx, rbx
call sub.msvcrt.dll_memset
mov byte [rbx + rsi], r13b
jmp 0x180003343
mov r9, rsi
mov byte [rsp + 0x20], r13b
xor r8d, r8d
lea rcx, [rbp - 0x40]
mov rdx, rsi
call fcn.180004220
mov rsi, qword [rsp + 0xb0]
cmp qword [rbp - 0x28], 0x10
lea rbx, [rbp - 0x40]
jb 0x180003363
mov rbx, qword [rbp - 0x40]
test rbx, rbx
je 0x1800033e9
mov r8, r12
xor edx, edx
mov rcx, rbx
call sub.msvcrt.dll_memset
lea r9, [rbp + 0x38]
mov dword [rbp + 0x38], r13d
mov r8d, r12d
mov qword [rsp + 0x20], r13
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
lea rcx, [r15 + 8]
mov byte [r15], 1
lea rdx, [rbp - 0x40]
call fcn.180004920
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbp - 0x28]
cmp rdx, 0x10
jb 0x180003486
mov rcx, qword [rbp - 0x40]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180003481
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800034ac
jmp 0x180003481
movdqa xmm0, xmmword [0x180035120]
lea rcx, [r15 + 8]
lea rdx, [rbp - 0x20]
mov byte [rbp - 0x20], r13b
movdqu xmmword [rbp - 0x10], xmm0
mov byte [r15], r13b
call fcn.180004920
mov rdx, qword [rbp - 8]
cmp rdx, 0x10
jb 0x180003441
mov rcx, qword [rbp - 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000343c
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800034a6
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
test r14, r14
je 0x18000344f
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbp - 0x28]
cmp rdx, 0x10
jb 0x180003486
mov rcx, qword [rbp - 0x40]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180003481
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800034a6
call sub.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_
lea r11, [rsp + 0x80]
mov rax, r15
mov rbx, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.18002b620
int3
call fcn.18002b620
int3