Function at 0x14005f2cc
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 [0x1401060c0]
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 0x14005f65d
lea rdx, [rcx + 0x80]
mov rax, qword [0x140106fe0]
cmp rax, qword [0x140106fd8]
jne 0x14005f33b
mov rcx, rdi
call fcn.140017d24
jmp 0x14005f65d
mov r10, qword [rdx + 0x10]
mov r9, rdx
cmp qword [rdx + 0x18], 7
jbe 0x14005f34c
mov r9, qword [rdx]
test r10, r10
je 0x14005f37d
lea rcx, [r10 - 1]
mov rax, r15
cmp rcx, r15
cmovb rax, rcx
lea r8, [r9 + rax*2]
jmp 0x14005f36e
cmp r8, r9
je 0x14005f37d
sub r8, 2
cmp word [r8], 0x5c
jne 0x14005f365
sub r8, r9
sar r8, 1
jmp 0x14005f380
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 0x14005f3a0
mov rdx, qword [rdx]
lea rcx, [rbp - 0x61]
call fcn.140003dfc
mov ebx, 0x40
mov dword [rsp + 0x40], ebx
mov rsi, qword [0x140106fd8]
mov r14, qword [0x140106fe0]
jmp 0x14005f598
mov rcx, rsi
cmp qword [rsi + 0x18], 7
jbe 0x14005f3d2
mov rcx, qword [rsi]
mov qword [rsp + 0x20], 2
lea r9, [0x1400f30dc]
xor r8d, r8d
mov rdx, qword [rsi + 0x10]
call fcn.14003d58c
cmp rax, r15
jne 0x14005f497
movabs rax, 0x7ffffffffffffffe
mov rcx, qword [rbp - 0x51]
sub rax, rcx
cmp rax, 1
jb 0x14005f75f
lea r9, [rbp - 0x61]
cmp qword [rbp - 0x49], 7
cmova r9, qword [rbp - 0x61]
mov qword [rsp + 0x30], 1
lea rax, [0x1400f1a48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 1]
call fcn.14003d6e0
or ebx, 8
or ebx, 1
mov dword [rsp + 0x40], ebx
mov rdx, rsi
cmp qword [rsi + 0x18], 7
jbe 0x14005f45a
mov rdx, qword [rsi]
mov r8, qword [rsi + 0x10]
lea rcx, [rbp - 1]
call fcn.14003d7f8
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 0x14005f4cb
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 0x14005f4b3
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 0x14005f50d
and ebx, 0xfffffffb
mov dword [rsp + 0x40], ebx
lea rcx, [rbp - 0x41]
call fcn.140018728
nop
test bl, 2
je 0x14005f523
and ebx, 0xfffffffd
mov dword [rsp + 0x40], ebx
lea rcx, [rbp - 0x21]
call fcn.140018728
nop
test bl, 1
je 0x14005f538
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 0x14005f5a6
mov rdx, qword [rbp - 0x69]
cmp rdx, 7
jbe 0x14005f594
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005f58f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005f759
call fcn.1400807d0
add rsi, 0x20
cmp rsi, r14
jne 0x14005f3c5
jmp 0x14005f63e
lea rax, [rsp + 0x58]
cmp rdi, rax
je 0x14005f5fd
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 0x14005f5f1
mov rsi, rdi
cmp qword [rdi + 0x18], 7
jbe 0x14005f5d7
mov rsi, qword [rdi]
mov qword [rdi + 0x10], rbx
lea r8, [rbx + rbx]
mov rdx, r9
mov rcx, rsi
call fcn.1400a95b0
mov word [rsi + rbx*2], r12w
jmp 0x14005f5fd
mov rdx, rbx
mov rcx, rdi
call fcn.140019da4
nop
mov rdx, qword [rbp - 0x69]
cmp rdx, 7
jbe 0x14005f63e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005f639
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005f759
call fcn.1400807d0
cmp qword [rdi + 0x10], r12
jne 0x14005f654
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 0x14005f66a
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14005f727
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x14005f686
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 0x14005f727
mov qword [rsp + 0x48], r12
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14005f71d
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call fcn.140080e24
mov rsi, rax
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.1400a9c50
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 0x14005f715
movsxd rax, dword [rsi + 0x3c]
mov r15d, dword [rax + rsi + 8]
mov rcx, rsi
call fcn.1400807d0
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.1400807b0
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.1400878c0
nop
call fcn.140001844
int3