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

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x128]
sub rsp, 0x200
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x180122010]
xor rax, rsp
mov qword [rbp + 0xf0], rax
mov r14, rdx
mov r15, rcx
mov rcx, qword [rdx]
test rcx, rcx
je 0x1800a80c8
mov rcx, qword [rcx]
cmp rcx, 0xffffffffffffffff
je 0x1800a80c8
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1800a7a8a
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1800a80c8
mov edi, dword [rsp + 0x50]
shl rdi, 0x20
mov rax, rbx
add rdi, rbx
mov rcx, qword [r14]
test rcx, rcx
je 0x1800a80c8
cmp qword [rcx], 0xffffffffffffffff
je 0x1800a80c8
xor r12d, r12d
mov qword [rsp + 0x50], r12
xor r9d, r9d
lea r8, [rsp + 0x54]
xor edx, edx
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x50], eax
cmp eax, 0xffffffff
jne 0x1800a7ae0
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1800a80c8
xorps xmm0, xmm0
movdqa xmmword [rbp], xmm0
mov qword [rbp + 0x10], r12
mov qword [rbp + 0x18], r12
movdqa xmmword [rbp + 0x20], xmm0
movdqa xmmword [rbp + 0x30], xmm0
mov qword [rbp + 0x40], r12
mov dword [rbp + 0x48], 0xffffffff
lea rcx, [rbp]
call fcn.1800a6960
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r12
lea rdx, [rsp + 0x50]
lea rcx, [rbp]
call fcn.1800a7440
mov rsi, qword [rsp + 0x58]
sub rsi, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1800a7b93
mov rdx, qword [rsp + 0x60]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800a7b80
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800a7b80
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800baa40
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r12
lea rcx, [rbp]
call fcn.1800a9590
cmp rdi, rsi
jb 0x1800a80c8
xor eax, eax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x60], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], r12
mov byte [rsp + 0x30], al
lea rax, [rbp - 0x70]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x58], rax
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
lea r8, [rsp + 0x50]
mov rdx, rsi
lea rcx, [rbp - 0x70]
call fcn.1800287e0
mov dword [rsp + 0x40], r12d
mov rcx, qword [r14]
test rcx, rcx
je 0x1800a8078
mov rdx, qword [rbp - 0x70]
test rdx, rdx
je 0x1800a8078
cmp qword [rcx], 0xffffffffffffffff
je 0x1800a8078
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov r8d, esi
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800a8078
mov eax, dword [rsp + 0x40]
cmp rax, rsi
jne 0x1800a8078
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x48], r12
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x38], r12
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], r12
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], r12
mov dword [rbp - 8], 0xffffffff
mov qword [rsp + 0x50], r12
lea r8, [rbp - 0x50]
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x70]
call fcn.1800a7540
test al, al
jne 0x1800a7c92
xor bl, bl
jmp 0x1800a806d
mov qword [rbp + 0x50], r12
mov qword [rbp + 0x58], r12
mov qword [rbp + 0x60], r12
mov qword [rbp + 0x68], r12
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x70], xmm0
mov qword [rbp + 0x80], r12
mov qword [rbp + 0x88], r12
mov qword [rbp + 0x90], r12
mov dword [rbp + 0x98], 0xffffffff
lea rcx, [rbp + 0x50]
call fcn.1800a6960
mov r8, qword [rbp - 0x48]
mov rcx, qword [rbp - 0x50]
sub r8, rcx
mov rax, qword [rbp + 0x58]
mov rdx, qword [rbp + 0x50]
sub rax, rdx
cmp r8, rax
jne 0x1800a7cfa
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1800a7de7
mov qword [rbp], r12
mov qword [rbp + 8], r12
mov qword [rbp + 0x10], r12
mov qword [rbp + 0x18], r12
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x20], xmm0
movdqa xmmword [rbp + 0x30], xmm0
mov qword [rbp + 0x40], r12
mov dword [rbp + 0x48], 0xffffffff
lea rcx, [rbp]
call fcn.1800a6b10
mov r8, qword [rbp - 0x48]
mov rcx, qword [rbp - 0x50]
sub r8, rcx
mov rax, qword [rbp + 8]
mov rdx, qword [rbp]
sub rax, rdx
cmp r8, rax
jne 0x1800a7d53
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1800a7dde
mov qword [rbp + 0xa0], r12
mov qword [rbp + 0xa8], r12
mov qword [rbp + 0xb0], r12
mov qword [rbp + 0xb8], r12
xorps xmm0, xmm0
movdqa xmmword [rbp + 0xc0], xmm0
movdqa xmmword [rbp + 0xd0], xmm0
mov qword [rbp + 0xe0], r12
mov dword [rbp + 0xe8], 0xffffffff
lea rcx, [rbp + 0xa0]
call fcn.1800a6cc0
mov r8, qword [rbp - 0x48]
mov rcx, qword [rbp - 0x50]
sub r8, rcx
mov rax, qword [rbp + 0xa8]
mov rdx, qword [rbp + 0xa0]
sub rax, rdx
cmp r8, rax
jne 0x1800a804b
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1800a804b
lea rcx, [rbp + 0xa0]
call fcn.1800a9590
nop
lea rcx, [rbp]
call fcn.1800a9590
mov r8, qword [rbp - 0x18]
mov rcx, qword [rbp - 0x20]
sub r8, rcx
mov rax, qword [rbp + 0x88]
mov rdx, qword [rbp + 0x80]
sub rax, rdx
cmp r8, rax
jne 0x1800a8061
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1800a8061
mov eax, dword [rbp + 0x98]
cmp dword [rbp - 8], eax
jne 0x1800a8061
lea rbx, [r15 + 0x38]
lea rdx, [rbp - 0x50]
mov rcx, rbx
call fcn.1800aa9a0
lea rcx, [rbx + 0x18]
lea rdx, [rbp - 0x38]
call fcn.1800aa9a0
lea rcx, [rbx + 0x30]
lea rdx, [rbp - 0x20]
call fcn.1800aa9a0
mov eax, dword [rbp - 8]
mov dword [rbx + 0x48], eax
cmp rdi, rsi
jne 0x1800a7e64
mov bl, 1
jmp 0x1800a8063
mov dword [rsp + 0x70], r12d
mov rcx, qword [r14]
test rcx, rcx
je 0x1800a8061
cmp qword [rcx], 0xffffffffffffffff
je 0x1800a8061
mov dword [rsp + 0x40], r12d
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov r8d, 4
lea rdx, [rsp + 0x70]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800a8061
cmp dword [rsp + 0x40], 4
jne 0x1800a8061
mov ebx, dword [rsp + 0x70]
sub rdi, rsi
cmp rbx, rdi
ja 0x1800a8061
xor eax, eax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
mov qword [rsp + 0x78], r12
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x78], r12
mov byte [rsp + 0x30], al
lea rax, [rsp + 0x78]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x58], rax
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
lea r8, [rsp + 0x50]
mov edx, ebx
lea rcx, [rsp + 0x78]
call fcn.1800287e0
mov rcx, qword [r14]
test rcx, rcx
je 0x1800a7ffc
mov rdx, qword [rsp + 0x78]
test rdx, rdx
je 0x1800a7ffc
cmp qword [rcx], 0xffffffffffffffff
je 0x1800a7ffc
mov dword [rsp + 0x40], r12d
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov r8d, ebx
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800a7ffc
mov eax, dword [rsp + 0x40]
cmp rax, rbx
jne 0x1800a7ffc
mov rax, qword [rbp - 0x20]
cmp rax, qword [rbp - 0x18]
je 0x1800a7ffc
cmp byte [rax], 0
jne 0x1800a7ffc
mov rcx, qword [rbp - 0x80]
movzx eax, cl
mov r9, qword [rsp + 0x78]
sub al, r9b
test al, 7
jne 0x1800a7ffc
cmp r9, rcx
je 0x1800a7fea
mov rax, qword [rbp - 0x30]
sub rax, qword [rbp - 0x38]
cmp rax, 0x10
jne 0x1800a7ffc
sub ecx, r9d
lea r8, [rsp + 0x50]
mov edx, ecx
mov rcx, r9
call fcn.1800a45c0
mov r8, r12
lea rax, [rsp + 0x50]
mov r9, qword [rbp - 0x38]
sub r9, rax
nop word [rax + rax]
lea rdx, [rsp + 0x50]
add rdx, r8
movzx eax, byte [rdx]
cmp byte [r9 + rdx], al
jne 0x1800a7ffc
inc r8
cmp r8, 0x10
jb 0x1800a7fd0
lea rdx, [rsp + 0x78]
mov rcx, r15
call fcn.1800a8270
movzx ebx, al
jmp 0x1800a7ffe
xor bl, bl
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1800a8063
mov rdx, qword [rbp - 0x78]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800a8037
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800a8037
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800baa40
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], r12
jmp 0x1800a8063
lea rcx, [rbp + 0xa0]
call fcn.1800a9590
nop
lea rcx, [rbp]
call fcn.1800a9590
xor bl, bl
lea rcx, [rbp + 0x50]
call fcn.1800a9590
nop
lea rcx, [rbp - 0x50]
call fcn.1800a9590
jmp 0x1800a807a
xor bl, bl
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x1800a80c3
mov rdx, qword [rbp - 0x60]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800a80b2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800a80b2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800baa40
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], r12
movzx eax, bl
jmp 0x1800a80ca
xor al, al
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.1800ba9e0
lea r11, [rsp + 0x200]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret