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

Disassembly:
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov r12, rcx
mov qword [rsp + 0x40], rdx
add rcx, 0x30
mov r13, rdx
mov rdx, qword [rcx + 8]
cmp rdx, qword [rcx + 0x10]
je 0x140013f3c
mov qword [rdx], r13
add qword [rcx + 8], 8
jmp 0x140013f46
lea r8, [rsp + 0x40]
call fcn.140003260
xor edi, edi
mov r14d, edi
cmp qword [r12 + 0x60], rdi
jbe 0x140013fb1
cmp qword [r12 + 0x68], 0xf
lea r8, [r12 + 0x50]
jbe 0x140013f62
mov r8, qword [r8]
lea r9, [r13 + 0x20]
lea rdx, str._s_s
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_wsprintfA]
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
lea rcx, [rsp + 0x70]
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r14, rax
test rax, rax
jne 0x140014001
cmp qword [r12 + 0x60], rdi
jne 0x140014001
lea r8, [r13 + 0x20]
lea rdx, [0x1400316d4]
lea rcx, [rsp + 0x70]
call qword [sym.imp.USER32.dll_wsprintfA]
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
lea rcx, [rsp + 0x70]
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r14, rax
test rax, rax
je 0x140014224
xor edx, edx
mov qword [rsp + 0x190], r15
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r15d, eax
cmp eax, 0xffffffff
jne 0x14001402c
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14001421c
mov eax, r15d
mov qword [rsp + 0x1e0], rbx
and eax, 0x1f
mov qword [rsp + 0x198], rsi
mov ecx, 0x20
sub ecx, eax
test eax, eax
cmove ecx, edi
add ecx, r15d
mov ebx, ecx
call fcn.14002ea50
mov r8d, ebx
xor edx, edx
mov rcx, rax
mov rsi, rax
call sub.VCRUNTIME140.dll_memset
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rdi
mov r8d, r15d
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rbx, qword [rsp + 0x1e0]
test eax, eax
jne 0x1400140a5
mov rcx, rsi
call fcn.14002ea1c
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140014214
mov r8d, dword [rsp + 0x48]
lea rcx, [rsp + 0x50]
xorps xmm0, xmm0
mov rdx, rsi
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
call fcn.1400283c0
test eax, eax
jne 0x1400140de
mov rcx, rsi
call fcn.14002ea1c
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140014212
cmp byte [rsi], 0x52
mov qword [rsp + 0x50], rsi
je 0x1400140fe
cmp byte [rsi + 1], 0x49
je 0x1400140fe
cmp byte [rsi + 2], 0x46
je 0x1400140fe
cmp byte [rsi + 3], 0x46
jne 0x1400141c5
cmp byte [rsi + 8], 0x57
lea rax, [rsi + 8]
je 0x14001411e
cmp byte [rax + 1], 0x41
je 0x14001411e
cmp byte [rax + 2], 0x56
je 0x14001411e
cmp byte [rax + 3], 0x45
jne 0x1400141c5
add rax, 4
lea r9, [rsi + r15]
movdqu xmmword [rsp + 0x58], xmm0
cmp rax, r9
jge 0x1400141c5
mov rdx, qword [rsp + 0x60]
mov r8, qword [rsp + 0x58]
nop
movzx ecx, byte [rax]
cmp cl, 0x66
jne 0x14001415f
cmp byte [rax + 1], 0x6d
jne 0x14001417d
cmp byte [rax + 2], 0x74
jne 0x14001417d
cmp byte [rax + 3], 0x20
jne 0x14001417d
mov r8, rax
jmp 0x14001417d
cmp cl, 0x64
jne 0x14001417d
cmp byte [rax + 1], 0x61
jne 0x14001417d
cmp byte [rax + 2], 0x74
jne 0x14001417d
cmp byte [rax + 3], 0x61
cmove rdx, rax
mov qword [rsp + 0x60], rdx
mov ecx, dword [rax + 4]
add rax, 8
add rax, rcx
cmp rax, r9
jl 0x140014140
mov qword [rsp + 0x58], r8
test r8, r8
je 0x1400141c5
test rdx, rdx
je 0x1400141c5
cmp word [r8 + 8], 1
jne 0x1400141c5
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.140028190
mov rcx, rax
test rax, rax
je 0x1400141c5
mov eax, dword [rsp + 0x40]
mov rdi, rcx
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
lea rcx, [r12 + 0xe00]
mov dword [rsp + 0x58], eax
lea rdx, [rsp + 0x40]
mov eax, dword [r13 + 0x1c]
mov dword [rsp + 0x5c], eax
mov eax, dword [r13 + 8]
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x50], rdi
call fcn.1400146a0
movups xmm0, xmmword [rsp + 0x50]
mov rcx, r14
movups xmmword [rax], xmm0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call fcn.14002ea1c
mov edi, 1
mov eax, edi
mov rsi, qword [rsp + 0x198]
mov r15, qword [rsp + 0x190]
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.14002e9c0
add rsp, 0x1a0
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret