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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r14
lea rbp, [rax - 0x588]
sub rsp, 0x670
mov rax, qword [0x14002e040]
xor rax, rsp
mov qword [rbp + 0x560], rax
mov r12d, 0x104
lea rcx, [rbp + 0x120]
mov r8d, r12d
xor edx, edx
call fcn.1400071f8
xor r9d, r9d
lea rax, [rbp + 0x120]
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea edx, [r9 + 0x1a]
call qword [0x14002ec60]
mov rdx, qword [0x14002f978]
lea rcx, [rbp + 0x120]
call qword [0x14002ec70]
mov r8d, r12d
lea rcx, [rbp + 0x230]
xor edx, edx
call fcn.1400071f8
lea rdx, [rbp + 0x120]
lea rcx, [rbp + 0x230]
call qword [0x14002ec68]
mov rdx, qword [0x14002f948]
lea rcx, [rbp + 0x230]
call qword [0x14002ec70]
and qword [rsp + 0x30], 0
lea rcx, [rbp + 0x230]
mov r8d, 3
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
mov dword [rsp + 0x20], r8d
lea edx, [r8 - 2]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400069c6
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea ecx, [rbx + 1]
call fcn.140004268
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov r8d, ebx
mov rdx, rax
mov rcx, rsi
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov byte [rbx + rdi], 0
mov rcx, rdi
mov rdx, qword [0x14002f980]
call qword [0x14002ecc0]
test rax, rax
je 0x1400069b5
mov rdx, qword [0x14002f988]
mov rcx, rdi
mov r14b, byte [rax + 0xb]
call qword [0x14002ecc0]
mov rbx, rax
test rax, rax
je 0x1400069b5
lea rdx, [0x140021ac4]
mov rcx, rax
call qword [0x14002ecc0]
test rax, rax
je 0x1400069b5
mov r8d, r12d
mov byte [rax], 0
xor edx, edx
lea rcx, [rbp + 0x340]
call fcn.1400071f8
cmp r14b, 0x31
jne 0x140006881
lea rdx, [rbp + 0x120]
lea rcx, [rbp + 0x340]
call qword [0x14002ec68]
lea rdx, [rbx + 5]
lea rcx, [rbp + 0x340]
call qword [0x14002ec70]
lea rcx, [rbp - 0x20]
call fcn.1400070dc
lea rdx, [rbp + 0x120]
lea rcx, [rbp + 0x450]
call qword [0x14002ec68]
lea rdx, [rbp - 0x20]
lea rcx, [rbp + 0x450]
call qword [0x14002ec70]
lea rdx, [rbp + 0x450]
lea rcx, [rbp + 0x340]
call fcn.140006eb4
mov r8, r12
lea rcx, [rbp + 0x10]
xor edx, edx
call fcn.1400071f8
mov rdx, qword [0x14002f960]
lea rcx, [rbp + 0x10]
call qword [0x14002ec68]
mov rdx, qword [0x14002f8f0]
lea rcx, [rbp + 0x10]
call qword [0x14002ec70]
mov rdx, qword [0x14002f990]
lea rcx, [rbp + 0x10]
call qword [0x14002ec70]
lea rdx, [0x140021a7c]
lea rcx, [rbp + 0x10]
call qword [0x14002ec70]
lea rdx, [rbp + 0x450]
lea rcx, [rbp + 0x10]
call qword [0x14002ec70]
lea rdx, [0x140021a7c]
lea rcx, [rbp + 0x10]
call qword [0x14002ec70]
mov ebx, 0x68
lea rcx, [rsp + 0x70]
mov r8d, ebx
xor edx, edx
call fcn.1400071f8
lea rax, [0x14002fbd0]
mov dword [rsp + 0x70], ebx
mov qword [rbp - 0x80], rax
lea rdx, [rbp + 0x10]
xor eax, eax
xorps xmm0, xmm0
mov qword [rsp + 0x68], rax
xor r9d, r9d
lea rax, [rsp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x48], rax
xor ecx, ecx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
movups xmmword [rsp + 0x58], xmm0
call qword [0x14002ed48]
mov rcx, rsi
call qword [0x14002ec00]
mov rcx, rdi
call fcn.140007374
mov rcx, qword [rbp + 0x560]
xor rcx, rsp
call fcn.140007650
lea r11, [rsp + 0x670]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop r12
pop rbp
ret