Function at 0x140060334
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 [0x14010c0c0]
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 0x1400606c5
lea rdx, [rcx + 0x80]
mov rax, qword [0x14010cff0]
cmp rax, qword [0x14010cfe8]
jne 0x1400603a3
mov rcx, rdi
call fcn.140017c64
jmp 0x1400606c5
mov r10, qword [rdx + 0x10]
mov r9, rdx
cmp qword [rdx + 0x18], 7
jbe 0x1400603b4
mov r9, qword [rdx]
test r10, r10
je 0x1400603e5
lea rcx, [r10 - 1]
mov rax, r15
cmp rcx, r15
cmovb rax, rcx
lea r8, [r9 + rax*2]
jmp 0x1400603d6
cmp r8, r9
je 0x1400603e5
sub r8, 2
cmp word [r8], 0x5c
jne 0x1400603cd
sub r8, r9
sar r8, 1
jmp 0x1400603e8
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 0x140060408
mov rdx, qword [rdx]
lea rcx, [rbp - 0x61]
call fcn.140003d3c
mov ebx, 0x40
mov dword [rsp + 0x40], ebx
mov rsi, qword [0x14010cfe8]
mov r14, qword [0x14010cff0]
jmp 0x140060600
mov rcx, rsi
cmp qword [rsi + 0x18], 7
jbe 0x14006043a
mov rcx, qword [rsi]
mov qword [rsp + 0x20], 2
lea r9, [0x1400f50fc]
xor r8d, r8d
mov rdx, qword [rsi + 0x10]
call fcn.14003e440
cmp rax, r15
jne 0x1400604ff
movabs rax, 0x7ffffffffffffffe
mov rcx, qword [rbp - 0x51]
sub rax, rcx
cmp rax, 1
jb 0x1400607c7
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.14003e594
or ebx, 8
or ebx, 1
mov dword [rsp + 0x40], ebx
mov rdx, rsi
cmp qword [rsi + 0x18], 7
jbe 0x1400604c2
mov rdx, qword [rsi]
mov r8, qword [rsi + 0x10]
lea rcx, [rbp - 1]
call fcn.14003e6ac
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 0x140060533
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 0x14006051b
mov rdx, qword [rsi]
mov r8, qword [rsi + 0x10]
lea rcx, [rbp - 0x41]
call fcn.140019e28
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.140019e28
nop
test bl, 4
je 0x140060575
and ebx, 0xfffffffb
mov dword [rsp + 0x40], ebx
lea rcx, [rbp - 0x41]
call fcn.140018668
nop
test bl, 2
je 0x14006058b
and ebx, 0xfffffffd
mov dword [rsp + 0x40], ebx
lea rcx, [rbp - 0x21]
call fcn.140018668
nop
test bl, 1
je 0x1400605a0
and ebx, 0xfffffffe
mov dword [rsp + 0x40], ebx
lea rcx, [rbp - 1]
call fcn.140018668
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 0x14006060e
mov rdx, qword [rbp - 0x69]
cmp rdx, 7
jbe 0x1400605fc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400605f7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400607c1
call fcn.1400826b0
add rsi, 0x20
cmp rsi, r14
jne 0x14006042d
jmp 0x1400606a6
lea rax, [rsp + 0x58]
cmp rdi, rax
je 0x140060665
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 0x140060659
mov rsi, rdi
cmp qword [rdi + 0x18], 7
jbe 0x14006063f
mov rsi, qword [rdi]
mov qword [rdi + 0x10], rbx
lea r8, [rbx + rbx]
mov rdx, r9
mov rcx, rsi
call fcn.1400ab490
mov word [rsi + rbx*2], r12w
jmp 0x140060665
mov rdx, rbx
mov rcx, rdi
call fcn.140019ce4
nop
mov rdx, qword [rbp - 0x69]
cmp rdx, 7
jbe 0x1400606a6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400606a1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400607c1
call fcn.1400826b0
cmp qword [rdi + 0x10], r12
jne 0x1400606bc
lea rdx, [r13 + 0x80]
mov rcx, rdi
call fcn.140017c64
nop
lea rcx, [rbp - 0x61]
call fcn.140018668
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x1400606d2
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14006078f
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x1400606ee
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 0x14006078f
mov qword [rsp + 0x48], r12
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140060785
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call fcn.140082d04
mov rsi, rax
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.1400abb30
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 0x14006077d
movsxd rax, dword [rsi + 0x3c]
mov r15d, dword [rax + rsi + 8]
mov rcx, rsi
call fcn.1400826b0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, rdi
call fcn.140018668
mov rax, r15
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.140082690
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.1400897a0
nop
call fcn.140001784
int3