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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x100
mov rax, qword [0x14010e0c0]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov rdi, rdx
mov r13, rcx
mov qword [rsp + 0x50], rdx
xor r12d, r12d
mov dword [rsp + 0x40], r12d
or r15, 0xffffffffffffffff
cmp qword [rdx + 0x10], r12
jne 0x140060a1d
lea rdx, [rcx + 0x80]
mov rax, qword [0x14010eff0]
cmp rax, qword [0x14010efe8]
jne 0x1400606fb
mov rcx, rdi
call fcn.140017cc4
jmp 0x140060a1d
mov r10, qword [rdx + 0x10]
mov r9, rdx
cmp qword [rdx + 0x18], 7
jbe 0x14006070c
mov r9, qword [rdx]
test r10, r10
je 0x14006073d
lea rcx, [r10 - 1]
mov rax, r15
cmp rcx, r15
cmovb rax, rcx
lea r8, [r9 + rax*2]
jmp 0x14006072e
cmp r8, r9
je 0x14006073d
sub r8, 2
cmp word [r8], 0x5c
jne 0x140060725
sub r8, r9
sar r8, 1
jmp 0x140060740
mov r8, r15
xorps xmm0, xmm0
movups xmmword [rbp - 0x61], xmm0
mov qword [rbp - 0x51], r12
mov qword [rbp - 0x49], r12
cmp r10, r8
cmovb r8, r10
cmp qword [rdx + 0x18], 7
jbe 0x140060760
mov rdx, qword [rdx]
lea rcx, [rbp - 0x61]
call fcn.140003d9c
mov ebx, 0x40
mov dword [rsp + 0x40], ebx
mov rsi, qword [0x14010efe8]
mov r14, qword [0x14010eff0]
jmp 0x140060958
mov rcx, rsi
cmp qword [rsi + 0x18], 7
jbe 0x140060792
mov rcx, qword [rsi]
mov qword [rsp + 0x20], 2
lea r9, [0x1400f50fc]
xor r8d, r8d
mov rdx, qword [rsi + 0x10]
call fcn.14003e6b4
cmp rax, r15
jne 0x140060857
movabs rax, 0x7ffffffffffffffe
mov rcx, qword [rbp - 0x51]
sub rax, rcx
cmp rax, 1
jb 0x140060b1f
lea r9, [rbp - 0x61]
cmp qword [rbp - 0x49], 7
cmova r9, qword [rbp - 0x61]
mov qword [rsp + 0x30], 1
lea rax, [0x1400f3a58]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 1]
call fcn.14003e808
or ebx, 8
or ebx, 1
mov dword [rsp + 0x40], ebx
mov rdx, rsi
cmp qword [rsi + 0x18], 7
jbe 0x14006081a
mov rdx, qword [rsi]
mov r8, qword [rsi + 0x10]
lea rcx, [rbp - 1]
call fcn.14003e920
movups xmm1, xmmword [rax]
movups xmmword [rbp - 0x21], xmm1
movups xmm0, xmmword [rax + 0x10]
movups xmmword [rbp - 0x11], xmm0
mov qword [rax + 0x10], r12
mov qword [rax + 0x18], 7
mov word [rax], r12w
or ebx, 0x10
lea rdx, [rbp - 0x21]
or ebx, 2
movq rax, xmm1
jmp 0x14006088b
xorps xmm0, xmm0
movups xmmword [rbp - 0x41], xmm0
mov qword [rbp - 0x31], r12
mov qword [rbp - 0x29], r12
mov rdx, rsi
cmp qword [rsi + 0x18], 7
jbe 0x140060873
mov rdx, qword [rsi]
mov r8, qword [rsi + 0x10]
lea rcx, [rbp - 0x41]
call fcn.140019e88
lea rdx, [rbp - 0x41]
or ebx, 4
mov rax, qword [rbp - 0x41]
mov dword [rsp + 0x40], ebx
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rbp - 0x71], r12
mov qword [rbp - 0x69], r12
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 7
cmova rdx, rax
lea rcx, [rsp + 0x58]
call fcn.140019e88
nop
test bl, 4
je 0x1400608cd
and ebx, 0xfffffffb
mov dword [rsp + 0x40], ebx
lea rcx, [rbp - 0x41]
call fcn.1400186c8
nop
test bl, 2
je 0x1400608e3
and ebx, 0xfffffffd
mov dword [rsp + 0x40], ebx
lea rcx, [rbp - 0x21]
call fcn.1400186c8
nop
test bl, 1
je 0x1400608f8
and ebx, 0xfffffffe
mov dword [rsp + 0x40], ebx
lea rcx, [rbp - 1]
call fcn.1400186c8
lea rcx, [rsp + 0x58]
cmp qword [rbp - 0x69], 7
cmova rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140060966
mov rdx, qword [rbp - 0x69]
cmp rdx, 7
jbe 0x140060954
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006094f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140060b19
call fcn.140082b60
add rsi, 0x20
cmp rsi, r14
jne 0x140060785
jmp 0x1400609fe
lea rax, [rsp + 0x58]
cmp rdi, rax
je 0x1400609bd
mov rbx, qword [rbp - 0x71]
lea r9, [rsp + 0x58]
cmp qword [rbp - 0x69], 7
cmova r9, qword [rsp + 0x58]
cmp rbx, qword [rdi + 0x18]
ja 0x1400609b1
mov rsi, rdi
cmp qword [rdi + 0x18], 7
jbe 0x140060997
mov rsi, qword [rdi]
mov qword [rdi + 0x10], rbx
lea r8, [rbx + rbx]
mov rdx, r9
mov rcx, rsi
call fcn.1400ab940
mov word [rsi + rbx*2], r12w
jmp 0x1400609bd
mov rdx, rbx
mov rcx, rdi
call fcn.140019d44
nop
mov rdx, qword [rbp - 0x69]
cmp rdx, 7
jbe 0x1400609fe
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400609f9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140060b19
call fcn.140082b60
cmp qword [rdi + 0x10], r12
jne 0x140060a14
lea rdx, [r13 + 0x80]
mov rcx, rdi
call fcn.140017cc4
nop
lea rcx, [rbp - 0x61]
call fcn.1400186c8
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x140060a2a
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140060ae7
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x140060a46
mov rcx, qword [rdi]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov r8d, 3
mov dword [rsp + 0x20], r8d
xor r9d, r9d
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, r15
je 0x140060ae7
mov qword [rsp + 0x48], r12
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140060add
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call fcn.1400831b4
mov rsi, rax
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.1400abfe0
mov dword [rsp + 0x40], r12d
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x48]
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140060ad5
movsxd rax, dword [rsi + 0x3c]
mov r15d, dword [rax + rsi + 8]
mov rcx, rsi
call fcn.140082b60
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, rdi
call fcn.1400186c8
mov rax, r15
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.140082b40
mov rbx, qword [rsp + 0x150]
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140089c50
nop
call fcn.1400017e4
int3