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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x5d0]
sub rsp, 0x6d0
mov r15, r8
mov rdi, rdx
mov r14, rcx
test rdx, rdx
je 0x14006ae85
test r8, r8
je 0x14006ae85
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x14006ae85
lea rax, [0x1401b76b0]
mov qword [rsp + 0x40], rax
xor r12d, r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r12 + 3]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rsp + 0x48], rax
cmp rax, 0xffffffffffffffff
jne 0x14006ac42
xor dil, dil
jmp 0x14006ae5e
xor edx, edx
mov r8d, 0x428
lea rcx, [rbp + 0x1a0]
call fcn.14014e180
lea r13, [0x1401b7738]
mov qword [rbp - 0x80], r13
lea rax, [rbp - 0x68]
mov qword [rbp - 0x78], rax
mov dword [rbp - 0x70], r12d
mov dword [rbp - 0x6c], 0x104
mov word [rbp - 0x68], r12w
mov edx, 0x104
mov rcx, r15
call fcn.14003c814
mov r8, rax
mov eax, dword [rbp - 0x6c]
cmp r8d, eax
jb 0x14006ac95
lea r8d, [rax - 1]
lea edx, [r8 + r8]
mov rax, qword [rbp - 0x78]
mov ecx, edx
shr rcx, 2
mov rdi, rax
mov rsi, r15
rep movsd dword [rdi], dword [rsi]
mov ecx, edx
and ecx, 3
je 0x14006acc0
and rdx, 0xfffffffffffffffc
lea rsi, [rdx + r15]
lea rdi, [rdx + rax]
rep movsb byte [rdi], byte [rsi]
mov dword [rbp - 0x70], r8d
mov ecx, r8d
mov rax, qword [rbp - 0x78]
mov word [rax + rcx*2], r12w
lea rax, [0x1401b7690]
mov qword [rbp - 0x80], rax
lea rdx, [rbp + 0x1a0]
lea rcx, [rsp + 0x64]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
mov qword [rbp + 0x1b0], r12
mov eax, dword [rsp + 0x50]
mov dword [rbp + 0x1b8], eax
mov qword [rbp + 0x628], r12
lea rdx, [rbp + 0x628]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rcx, r12
test eax, eax
cmovne rcx, qword [rbp + 0x628]
mov qword [rbp + 0x5c0], rcx
mov edi, dword [rbp - 0x70]
mov r8, qword [rbp - 0x78]
test edi, edi
je 0x14006ad5e
test r8, r8
je 0x14006ad7b
mov ecx, r12d
test edi, edi
je 0x14006ad5e
mov eax, ecx
lea rdx, [r8 + rax*2]
cmp word [rdx], 0x5c
jne 0x14006ad58
mov word [rdx], 0x2f
mov edi, dword [rbp - 0x70]
mov r8, qword [rbp - 0x78]
inc ecx
cmp ecx, edi
jb 0x14006ad40
test r8, r8
je 0x14006ad7b
mov edx, 0x200
mov r9, 0xffffffffffffffff
lea rcx, [rbp + 0x1bc]
call fcn.14003c5c8
lea rdx, [rbp + 0x1a0]
mov rcx, r14
call fcn.140069e80
test al, al
je 0x14006ae4f
cmp qword [r14 + 0x2f8], 0
jne 0x14006adc0
lea rdx, [0x1401ae572]
mov ecx, 0x400080
call fcn.14002ec60
mov qword [r14 + 0x2f8], rax
test rax, rax
je 0x14006ae4f
nop dword [rax]
mov rsi, qword [r14 + 0x2f8]
test rsi, rsi
je 0x14006ae78
mov edi, r12d
nop dword [rax]
nop word [rax + rax]
mov dword [rbp + 0x618], r12d
mov r8d, 0x400000
sub r8d, edi
mov edx, edi
add rdx, rsi
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0x618]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14006ae22
mov eax, dword [rbp + 0x618]
test eax, eax
je 0x14006ae22
add edi, eax
cmp edi, 0x400000
jb 0x14006ade0
mov eax, edi
lock add qword [0x1401f4d70], rax
test edi, edi
je 0x14006ae73
mov r8d, edi
mov rdx, qword [r14 + 0x2f8]
mov rcx, r14
call fcn.140069d20
mov rbx, qword [rsp + 0x48]
test al, al
jne 0x14006adc0
xor dil, dil
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x78], r12
mov dword [rbp - 0x70], r12d
cmp rbx, 0xffffffffffffffff
je 0x14006ae6d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, dil
jmp 0x14006ae87
mov rbx, qword [rsp + 0x48]
mov rcx, r14
call fcn.1400698b0
movzx edi, al
jmp 0x14006ae52
xor al, al
mov rbx, qword [rsp + 0x710]
add rsp, 0x6d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret