Function at 0x140060240
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 [0x14010b0c0]
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 0x1400605d1
lea rdx, [rcx + 0x80]
mov rax, qword [0x14010c010]
cmp rax, qword [0x14010c008]
jne 0x1400602af
mov rcx, rdi
call fcn.140017d24
jmp 0x1400605d1
mov r10, qword [rdx + 0x10]
mov r9, rdx
cmp qword [rdx + 0x18], 7
jbe 0x1400602c0
mov r9, qword [rdx]
test r10, r10
je 0x1400602f1
lea rcx, [r10 - 1]
mov rax, r15
cmp rcx, r15
cmovb rax, rcx
lea r8, [r9 + rax*2]
jmp 0x1400602e2
cmp r8, r9
je 0x1400602f1
sub r8, 2
cmp word [r8], 0x5c
jne 0x1400602d9
sub r8, r9
sar r8, 1
jmp 0x1400602f4
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 0x140060314
mov rdx, qword [rdx]
lea rcx, [rbp - 0x61]
call fcn.140003dfc
mov ebx, 0x40
mov dword [rsp + 0x40], ebx
mov rsi, qword [0x14010c008]
mov r14, qword [0x14010c010]
jmp 0x14006050c
mov rcx, rsi
cmp qword [rsi + 0x18], 7
jbe 0x140060346
mov rcx, qword [rsi]
mov qword [rsp + 0x20], 2
lea r9, [0x1400f7190]
xor r8d, r8d
mov rdx, qword [rsi + 0x10]
call fcn.14003e500
cmp rax, r15
jne 0x14006040b
movabs rax, 0x7ffffffffffffffe
mov rcx, qword [rbp - 0x51]
sub rax, rcx
cmp rax, 1
jb 0x1400606d3
lea r9, [rbp - 0x61]
cmp qword [rbp - 0x49], 7
cmova r9, qword [rbp - 0x61]
mov qword [rsp + 0x30], 1
lea rax, [0x1400f5b08]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 1]
call fcn.14003e654
or ebx, 8
or ebx, 1
mov dword [rsp + 0x40], ebx
mov rdx, rsi
cmp qword [rsi + 0x18], 7
jbe 0x1400603ce
mov rdx, qword [rsi]
mov r8, qword [rsi + 0x10]
lea rcx, [rbp - 1]
call fcn.14003e76c
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 0x14006043f
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 0x140060427
mov rdx, qword [rsi]
mov r8, qword [rsi + 0x10]
lea rcx, [rbp - 0x41]
call fcn.140019ee8
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.140019ee8
nop
test bl, 4
je 0x140060481
and ebx, 0xfffffffb
mov dword [rsp + 0x40], ebx
lea rcx, [rbp - 0x41]
call fcn.140018728
nop
test bl, 2
je 0x140060497
and ebx, 0xfffffffd
mov dword [rsp + 0x40], ebx
lea rcx, [rbp - 0x21]
call fcn.140018728
nop
test bl, 1
je 0x1400604ac
and ebx, 0xfffffffe
mov dword [rsp + 0x40], ebx
lea rcx, [rbp - 1]
call fcn.140018728
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 0x14006051a
mov rdx, qword [rbp - 0x69]
cmp rdx, 7
jbe 0x140060508
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140060503
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400606cd
call fcn.140083110
add rsi, 0x20
cmp rsi, r14
jne 0x140060339
jmp 0x1400605b2
lea rax, [rsp + 0x58]
cmp rdi, rax
je 0x140060571
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 0x140060565
mov rsi, rdi
cmp qword [rdi + 0x18], 7
jbe 0x14006054b
mov rsi, qword [rdi]
mov qword [rdi + 0x10], rbx
lea r8, [rbx + rbx]
mov rdx, r9
mov rcx, rsi
call fcn.1400adf20
mov word [rsi + rbx*2], r12w
jmp 0x140060571
mov rdx, rbx
mov rcx, rdi
call fcn.140019da4
nop
mov rdx, qword [rbp - 0x69]
cmp rdx, 7
jbe 0x1400605b2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400605ad
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400606cd
call fcn.140083110
cmp qword [rdi + 0x10], r12
jne 0x1400605c8
lea rdx, [r13 + 0x80]
mov rcx, rdi
call fcn.140017d24
nop
lea rcx, [rbp - 0x61]
call fcn.140018728
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x1400605de
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14006069b
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x1400605fa
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 0x14006069b
mov qword [rsp + 0x48], r12
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140060691
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call fcn.140083764
mov rsi, rax
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.1400ae5c0
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 0x140060689
movsxd rax, dword [rsi + 0x3c]
mov r15d, dword [rax + rsi + 8]
mov rcx, rsi
call fcn.140083110
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, rdi
call fcn.140018728
mov rax, r15
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.1400830f0
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.14008a200
nop
call fcn.140001844
int3