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

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r9
mov qword [rbp - 0x18], rdx
mov qword [rbp - 0x20], rcx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x8000080
mov dword [rsp + 0x20], 3
mov qword [rbp - 0x10], r8
mov rcx, r8
mov edx, 0x80000000
mov r8d, 3
xor r9d, r9d
call sub.KERNEL32.dll_CreateFileW
cmp rax, 0xffffffffffffffff
je 0x14002ae2c
mov dword [rbp - 0x24], 0
lea rdx, [rbp - 0x24]
mov rbx, rax
mov rcx, rax
call sub.KERNEL32.dll_GetFileSize
cmp eax, 0xffffffff
je 0x14002ae3e
mov ecx, dword [rbp - 0x24]
shl rcx, 0x20
mov esi, eax
or rsi, rcx
cmp rsi, rdi
cmovae rsi, rdi
mov rcx, qword [0x1400f88c8]
mov rax, qword [rcx]
mov rdx, rsi
mov r8d, 2
xor r9d, r9d
call qword [rax + 0x48]
mov qword [rbp - 0x38], rax
test rsi, rsi
mov rcx, rbx
je 0x14002ad3e
xor r14d, r14d
mov r15d, 0xffff0000
lea rdi, [rbp - 0x3c]
mov qword [rbp - 0x30], rcx
nop
mov rbx, rsi
sub rbx, r14
cmp rbx, r15
cmovae rbx, r15
mov rax, qword [rbp - 0x38]
lea rdx, [rax + r14]
mov qword [rsp + 0x20], 0
mov r8d, ebx
mov r9, rdi
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x14002ad62
cmp dword [rbp - 0x3c], ebx
jne 0x14002ad62
add r14, rbx
cmp r14, rsi
mov rcx, qword [rbp - 0x30]
jne 0x14002ad00
call sub.KERNEL32.dll_CloseHandle
test eax, eax
je 0x14002ae68
mov rax, rsi
mov rdx, qword [rbp - 0x38]
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov rsi, qword [rbp - 0x20]
mov rax, qword [rbp - 0x18]
mov rdi, rax
test rax, rax
jne 0x14002ad98
cmp qword [rbp - 0x10], 0
jne 0x14002ad7d
xor ecx, ecx
jmp 0x14002ad89
mov rcx, qword [rbp - 0x10]
call fcn.140099574
mov rcx, rax
mov rdx, qword [rbp - 0x10]
call fcn.140029490
mov rsi, rax
mov rdi, rdx
lea rcx, [0x1400f17b0]
call fcn.140067130
mov rbx, rax
lea rax, [0x1400c5100]
mov qword [rbx], rax
mov qword [rbx + 8], 0
movups xmm0, xmmword [0x1400c50b8]
movups xmmword [rbx + 0x10], xmm0
movups xmm0, xmmword [0x1400c50c8]
movups xmmword [rbx + 0x20], xmm0
movups xmm0, xmmword [0x1400c50d8]
movups xmmword [rbx + 0x30], xmm0
movups xmm0, xmmword [0x1400c50e8]
movups xmmword [rbx + 0x40], xmm0
mov rax, qword [0x1400c50f8]
mov qword [rbx + 0x50], rax
call sub.KERNEL32.dll_GetLastError
lea rcx, str.std_file.d
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 0x1d2
mov qword [rsp + 0x20], 0xa
mov rcx, rbx
mov rdx, rsi
mov r8, rdi
mov r9d, eax
call fcn.14002ab30
mov rcx, rbx
call fcn.140046240
cmp qword [rbp - 0x18], 0
jne 0x14002aea2
cmp qword [rbp - 0x10], 0
jne 0x14002ae85
xor ecx, ecx
jmp 0x14002ae91
mov qword [rbp - 0x30], rbx
mov rsi, qword [rbp - 0x20]
mov rax, qword [rbp - 0x18]
mov rdi, rax
test rax, rax
jne 0x14002af34
cmp qword [rbp - 0x10], 0
jne 0x14002af19
xor ecx, ecx
jmp 0x14002af25
cmp qword [rbp - 0x18], 0
jne 0x14002afe5
cmp qword [rbp - 0x10], 0
jne 0x14002afc8
xor ecx, ecx
jmp 0x14002afd4
mov rcx, qword [rbp - 0x10]
call fcn.140099574
mov rcx, rax
mov rdx, qword [rbp - 0x10]
call fcn.140029490
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdx
lea rcx, [0x1400f17b0]
call fcn.140067130
mov rsi, rax
lea rax, [0x1400c5100]
mov qword [rsi], rax
mov qword [rsi + 8], 0
movups xmm0, xmmword [0x1400c50b8]
movups xmmword [rsi + 0x10], xmm0
movups xmm0, xmmword [0x1400c50c8]
movups xmmword [rsi + 0x20], xmm0
movups xmm0, xmmword [0x1400c50d8]
movups xmmword [rsi + 0x30], xmm0
movups xmm0, xmmword [0x1400c50e8]
movups xmmword [rsi + 0x40], xmm0
mov rax, qword [0x1400c50f8]
mov qword [rsi + 0x50], rax
call sub.KERNEL32.dll_GetLastError
lea rcx, str.std_file.d
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 0x1c5
jmp 0x14002b057
mov rcx, qword [rbp - 0x10]
call fcn.140099574
mov rcx, rax
mov rdx, qword [rbp - 0x10]
call fcn.140029490
mov rsi, rax
mov rdi, rdx
lea rcx, [0x1400f17b0]
call fcn.140067130
mov rbx, rax
lea rax, [0x1400c5100]
mov qword [rbx], rax
mov qword [rbx + 8], 0
movups xmm0, xmmword [0x1400c50b8]
movups xmmword [rbx + 0x10], xmm0
movups xmm0, xmmword [0x1400c50c8]
movups xmmword [rbx + 0x20], xmm0
movups xmm0, xmmword [0x1400c50d8]
movups xmmword [rbx + 0x30], xmm0
movups xmm0, xmmword [0x1400c50e8]
movups xmmword [rbx + 0x40], xmm0
mov rax, qword [0x1400c50f8]
mov qword [rbx + 0x50], rax
call sub.KERNEL32.dll_GetLastError
lea rcx, str.std_file.d
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 0x1c8
mov qword [rsp + 0x20], 0xa
mov rcx, rbx
mov rdx, rsi
mov r8, rdi
mov r9d, eax
call fcn.14002ab30
mov rcx, rbx
call fcn.140046240
mov rcx, qword [rbp - 0x10]
call fcn.140099574
mov rcx, rax
mov rdx, qword [rbp - 0x10]
call fcn.140029490
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdx
lea rcx, [0x1400f17b0]
call fcn.140067130
mov rsi, rax
lea rax, [0x1400c5100]
mov qword [rsi], rax
mov qword [rsi + 8], 0
movups xmm0, xmmword [0x1400c50b8]
movups xmmword [rsi + 0x10], xmm0
movups xmm0, xmmword [0x1400c50c8]
movups xmmword [rsi + 0x20], xmm0
movups xmm0, xmmword [0x1400c50d8]
movups xmmword [rsi + 0x30], xmm0
movups xmm0, xmmword [0x1400c50e8]
movups xmmword [rsi + 0x40], xmm0
mov rax, qword [0x1400c50f8]
mov qword [rsi + 0x50], rax
call sub.KERNEL32.dll_GetLastError
lea rcx, str.std_file.d
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 0x1c6
mov qword [rsp + 0x20], 0xa
mov rcx, rsi
mov rdx, qword [rbp - 0x20]
mov r8, qword [rbp - 0x18]
mov r9d, eax
call fcn.14002ab30
mov rcx, rsi
call fcn.140046240
lea rdx, [0x1400f7f30]
mov rcx, rbp
call fcn.1400469a0
mov rcx, qword [0x1400f88c8]
mov rax, qword [rcx]
mov rdx, qword [rbp - 0x38]
call qword [rax + pe_nt_image_headers64]
mov rcx, qword [rbp]
call fcn.140046240
int3