Function at 0x140061cec
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 [0x1401110c0]
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 0x14006207d
lea rdx, [rcx + 0x80]
mov rax, qword [0x140111ff0]
cmp rax, qword [0x140111fe8]
jne 0x140061d5b
mov rcx, rdi
call fcn.140017d24
jmp 0x14006207d
mov r10, qword [rdx + 0x10]
mov r9, rdx
cmp qword [rdx + 0x18], 7
jbe 0x140061d6c
mov r9, qword [rdx]
test r10, r10
je 0x140061d9d
lea rcx, [r10 - 1]
mov rax, r15
cmp rcx, r15
cmovb rax, rcx
lea r8, [r9 + rax*2]
jmp 0x140061d8e
cmp r8, r9
je 0x140061d9d
sub r8, 2
cmp word [r8], 0x5c
jne 0x140061d85
sub r8, r9
sar r8, 1
jmp 0x140061da0
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 0x140061dc0
mov rdx, qword [rdx]
lea rcx, [rbp - 0x61]
call fcn.140003dfc
mov ebx, 0x40
mov dword [rsp + 0x40], ebx
mov rsi, qword [0x140111fe8]
mov r14, qword [0x140111ff0]
jmp 0x140061fb8
mov rcx, rsi
cmp qword [rsi + 0x18], 7
jbe 0x140061df2
mov rcx, qword [rsi]
mov qword [rsp + 0x20], 2
lea r9, [0x1400f71c0]
xor r8d, r8d
mov rdx, qword [rsi + 0x10]
call fcn.14003e7a8
cmp rax, r15
jne 0x140061eb7
movabs rax, 0x7ffffffffffffffe
mov rcx, qword [rbp - 0x51]
sub rax, rcx
cmp rax, 1
jb 0x14006217f
lea r9, [rbp - 0x61]
cmp qword [rbp - 0x49], 7
cmova r9, qword [rbp - 0x61]
mov qword [rsp + 0x30], 1
lea rax, [0x1400f5ad8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 1]
call fcn.14003e8fc
or ebx, 8
or ebx, 1
mov dword [rsp + 0x40], ebx
mov rdx, rsi
cmp qword [rsi + 0x18], 7
jbe 0x140061e7a
mov rdx, qword [rsi]
mov r8, qword [rsi + 0x10]
lea rcx, [rbp - 1]
call fcn.14003ea14
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 0x140061eeb
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 0x140061ed3
mov rdx, qword [rsi]
mov r8, qword [rsi + 0x10]
lea rcx, [rbp - 0x41]
call fcn.140019f64
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.140019f64
nop
test bl, 4
je 0x140061f2d
and ebx, 0xfffffffb
mov dword [rsp + 0x40], ebx
lea rcx, [rbp - 0x41]
call fcn.140018728
nop
test bl, 2
je 0x140061f43
and ebx, 0xfffffffd
mov dword [rsp + 0x40], ebx
lea rcx, [rbp - 0x21]
call fcn.140018728
nop
test bl, 1
je 0x140061f58
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 0x140061fc6
mov rdx, qword [rbp - 0x69]
cmp rdx, 7
jbe 0x140061fb4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140061faf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140062179
call fcn.140084350
add rsi, 0x20
cmp rsi, r14
jne 0x140061de5
jmp 0x14006205e
lea rax, [rsp + 0x58]
cmp rdi, rax
je 0x14006201d
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 0x140062011
mov rsi, rdi
cmp qword [rdi + 0x18], 7
jbe 0x140061ff7
mov rsi, qword [rdi]
mov qword [rdi + 0x10], rbx
lea r8, [rbx + rbx]
mov rdx, r9
mov rcx, rsi
call fcn.1400ad130
mov word [rsi + rbx*2], r12w
jmp 0x14006201d
mov rdx, rbx
mov rcx, rdi
call fcn.140019e20
nop
mov rdx, qword [rbp - 0x69]
cmp rdx, 7
jbe 0x14006205e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140062059
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140062179
call fcn.140084350
cmp qword [rdi + 0x10], r12
jne 0x140062074
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 0x14006208a
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140062147
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x1400620a6
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 0x140062147
mov qword [rsp + 0x48], r12
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14006213d
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call fcn.1400849a4
mov rsi, rax
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.1400ad7d0
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 0x140062135
movsxd rax, dword [rsi + 0x3c]
mov r15d, dword [rax + rsi + 8]
mov rcx, rsi
call fcn.140084350
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.140084330
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.14008b440
nop
call fcn.140001844
int3