Function at 0x14004ed70
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 [0x1400f2688]
xor rax, rsp
mov qword [rbp - 0x10], rax
lea rcx, [rbp - 0x30]
call fcn.14004e230
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 0x14004efbf
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 0x14004ee0e
cmp word [r8], 0x5c
je 0x14004ee0b
cmp rax, 1
je 0x14004ee0e
dec rax
add r8, 2
cmp word [r8], 0x5c
jne 0x14004edf7
mov rcx, r8
mov r8, rcx
test rcx, rcx
je 0x14004efbf
mov r9d, 5
mov rax, r12
movzx ecx, word [rcx]
mov edx, 0x5c
cmp cx, dx
jb 0x14004ee55
mov r10, r8
sub r10, r12
cmp cx, dx
ja 0x14004ee55
cmp r9, 1
je 0x14004ee5b
dec r9
add rax, 2
movzx ecx, word [r10 + rax]
movzx edx, word [rax]
cmp cx, dx
jae 0x14004ee39
add r8, 2
jmp 0x14004ede2
sub r8, rbx
sar r8, 1
cmp r8, 0xffffffffffffffff
je 0x14004efbf
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.140029620
lea rcx, [rbp - 0x30]
call fcn.140028d70
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 0x14004f02b
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 0x14004ef27
mov rbx, rsi
or rbx, 7
cmp rbx, rcx
jbe 0x14004ef07
mov rbx, rcx
jmp 0x14004ef13
mov eax, 0xa
cmp rbx, rax
cmovb rbx, rax
lea rdx, [rbx + 1]
lea rcx, [rbp - 0x50]
call fcn.140029380
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.14008a080
movups xmm0, xmmword [str.cover.jpg]
movups xmmword [rdi + rbx], xmm0
mov eax, dword [0x1400bb540]
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 0x14004efb5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004efb0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004f031
call fcn.140087c4c
mov rdi, qword [rbp - 0x18]
mov r11, qword [rbp - 0x30]
jmp 0x14004efc1
xor bl, bl
cmp rdi, 8
jb 0x14004eff8
lea rdx, [rdi*2 + 2]
mov rax, r11
cmp rdx, 0x1000
jb 0x14004eff0
add rdx, 0x27
mov r11, qword [r11 - 8]
sub rax, r11
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004f025
mov rcx, r11
call fcn.140087c4c
movzx eax, bl
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140088250
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.14008e46c
nop
call fcn.140029080
nop
call fcn.14008e46c
int3