Function at 0x1400a7120
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x260
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x2a0], rbx
mov rax, qword [0x14030bc70]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r15, rdx
mov r12, rcx
xor ebx, ebx
mov edi, ebx
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov esi, 3
mov dword [rsp + 0x20], esi
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x1400a73f1
mov dword [rsp + 0x48], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x44]
lea r8d, [rbx + 0xc]
lea rdx, [rsp + 0x68]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x1400a73dd
cmp dword [rsp + 0x44], 0xc
jne 0x1400a73dd
cmp dword [rsp + 0x6c], 0xff231ac2
jne 0x1400a73dd
mov rcx, r14
cmp dword [rsp + 0x70], 0x60000
jne 0x1400a727a
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x44]
mov r8d, 0x1d0
lea rdx, [rsp + 0x80]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
jne 0x1400a73dd
cmp dword [rsp + 0x44], 0x1d0
jne 0x1400a73dd
cmp dword [rsp + 0x84], 0xff231ac2
jne 0x1400a73dd
cmp dword [rsp + 0x88], 0x60000
jne 0x1400a73dd
mov r8d, 0x1cc
lea rdx, [rsp + 0x84]
or ecx, 0xffffffff
call fcn.1400e11c0
cmp dword [rsp + 0x80], eax
je 0x1400a7294
jmp 0x1400a73dd
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0x68]
call fcn.1400ac620
test eax, eax
je 0x1400a73d6
mov dword [rsp + 0x48], 1
mov ecx, 0x332
call fcn.1400dba80
mov rdi, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x1400a72c5
xor edx, edx
mov r8d, 0x332
mov rcx, rax
call fcn.140141ad0
jmp 0x1400a72c8
mov rdi, rbx
mov qword [rsp + 0x50], rdi
mov r8d, 0x103
mov rdx, r12
mov rcx, rdi
call fcn.140157390
mov dword [rsp + 0x4c], ebx
lea rdx, [rsp + 0x4c]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, eax
lea rax, [rdi + 0x15a]
lea rcx, [rsp + 0x80]
movups xmm0, xmmword [rcx]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rax + 0x30], xmm1
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [rax + 0x40], xmm0
movups xmm1, xmmword [rcx + 0x50]
movups xmmword [rax + 0x50], xmm1
movups xmm0, xmmword [rcx + 0x60]
movups xmmword [rax + 0x60], xmm0
lea rax, [rax + 0x80]
movups xmm1, xmmword [rcx + 0x70]
movups xmmword [rax - 0x10], xmm1
lea rcx, [rcx + 0x80]
sub rsi, 1
jne 0x1400a7301
movups xmm0, xmmword [rcx]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rax + 0x30], xmm1
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [rax + 0x40], xmm0
mov ecx, dword [rsp + 0x4c]
shl rcx, 0x20
add rcx, rdx
mov qword [rdi + 0x32a], rcx
mov eax, dword [rsp + 0x124]
mov dword [rdi + 0x124], eax
lea rcx, [rsp + 0xa4]
call fcn.1400a9c70
mov dword [rdi + 0x120], eax
lea rcx, [rdi + 0x128]
lea r8d, [rsi + 0x32]
lea rdx, [rsp + 0xa4]
call fcn.140157390
mov byte [rdi + 0x159], sil
mov dword [rdi + 0x11c], 1
jmp 0x1400a73e6
mov ebx, 6
jmp 0x1400a73e2
mov ebx, 5
mov dword [rsp + 0x40], ebx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400a7403
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
setne bl
inc ebx
mov dword [rsp + 0x40], ebx
test r15, r15
je 0x1400a740b
mov dword [r15], ebx
mov rax, rdi
jmp 0x1400a7415
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140113910
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x260
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret