Function at 0x14004c920
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1400f5798]
xor rax, rsp
mov qword [rbp - 0x10], rax
lea rcx, [rbp - 0x30]
call fcn.14004bde0
nop
lea rbx, [rbp - 0x30]
mov rdi, qword [rbp - 0x18]
cmp rdi, 8
setae r15b
mov r11, qword [rbp - 0x30]
cmovae rbx, r11
mov r14, qword [rbp - 0x20]
cmp r14, 5
jb 0x14004cb6f
lea rsi, [r14 - 4]
lea rsi, [rbx + rsi*2]
mov r8, rbx
xor r13d, r13d
lea r12, str.x64_
mov rax, rsi
sub rax, r8
sar rax, 1
mov rcx, r13
je 0x14004c9be
cmp word [r8], 0x5c
je 0x14004c9bb
cmp rax, 1
je 0x14004c9be
dec rax
add r8, 2
cmp word [r8], 0x5c
jne 0x14004c9a7
mov rcx, r8
mov r8, rcx
test rcx, rcx
je 0x14004cb6f
mov r9d, 5
mov rax, r12
movzx ecx, word [rcx]
mov edx, 0x5c
cmp cx, dx
jb 0x14004ca05
mov r10, r8
sub r10, r12
cmp cx, dx
ja 0x14004ca05
cmp r9, 1
je 0x14004ca0b
dec r9
add rax, 2
movzx ecx, word [r10 + rax]
movzx edx, word [rax]
cmp cx, dx
jae 0x14004c9e9
add r8, 2
jmp 0x14004c992
sub r8, rbx
sar r8, 1
cmp r8, 0xffffffffffffffff
je 0x14004cb6f
mov qword [rbp - 0x50], r13
mov qword [rbp - 0x40], r13
mov ebx, 7
mov qword [rbp - 0x38], rbx
cmp r14, r8
cmovb r8, r14
lea rdx, [rbp - 0x30]
test r15b, r15b
cmovne rdx, r11
lea rcx, [rbp - 0x50]
call fcn.1400279c0
lea rcx, [rbp - 0x30]
call fcn.140027110
movups xmm0, xmmword [rbp - 0x50]
movups xmmword [rbp - 0x30], xmm0
movups xmm1, xmmword [rbp - 0x40]
movups xmmword [rbp - 0x20], xmm1
movabs rcx, 0x7ffffffffffffffe
mov rax, rcx
movq r15, xmm1
sub rax, r15
cmp rax, 0xa
jb 0x14004cbdb
lea r14, [rbp - 0x30]
cmp qword [rbp - 0x38], 8
cmovae r14, qword [rbp - 0x50]
mov qword [rbp - 0x50], r13
mov qword [rbp - 0x40], r13
mov qword [rbp - 0x38], r13
lea rsi, [r15 + 0xa]
lea rdi, [rbp - 0x50]
cmp rsi, rbx
jbe 0x14004cad7
mov rbx, rsi
or rbx, 7
cmp rbx, rcx
jbe 0x14004cab7
mov rbx, rcx
jmp 0x14004cac3
mov eax, 0xa
cmp rbx, rax
cmovb rbx, rax
lea rdx, [rbx + 1]
lea rcx, [rbp - 0x50]
call fcn.140027720
mov rdi, rax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x38], rbx
lea rbx, [r15 + r15]
mov r8, rbx
mov rdx, r14
mov rcx, rdi
call fcn.140087c80
movups xmm0, xmmword [str.cover.jpg]
movups xmmword [rdi + rbx], xmm0
mov eax, dword [0x1400b9430]
mov dword [rdi + rbx + 0x10], eax
mov word [rdi + rsi*2], r13w
lea rcx, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rcx, qword [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rdx, qword [rbp - 0x38]
cmp rdx, 8
jb 0x14004cb65
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004cb60
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004cbe1
call fcn.140085850
mov rdi, qword [rbp - 0x18]
mov r11, qword [rbp - 0x30]
jmp 0x14004cb71
xor bl, bl
cmp rdi, 8
jb 0x14004cba8
lea rdx, [rdi*2 + 2]
mov rax, r11
cmp rdx, 0x1000
jb 0x14004cba0
add rdx, 0x27
mov r11, qword [r11 - 8]
sub rax, r11
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004cbd5
mov rcx, r11
call fcn.140085850
movzx eax, bl
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140085e50
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.14008c06c
nop
call fcn.140027420
nop
call fcn.14008c06c
int3