Function at 0x140042490
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 [0x1400da080]
xor rax, rsp
mov qword [rbp - 0x10], rax
lea rcx, [rbp - 0x30]
call fcn.1400422f0
nop
lea rbx, [rbp - 0x30]
mov rdi, qword [rbp - 0x18]
cmp rdi, 8
setae r15b
mov r11, qword [rbp - 0x30]
cmovae rbx, r11
mov rsi, qword [rbp - 0x20]
cmp rsi, 5
jb 0x140042717
lea r14, [rsi - 4]
lea r14, [rbx + r14*2]
mov r8, rbx
xor r12d, r12d
lea r13, str.x64_
mov rax, r14
sub rax, r8
sar rax, 1
mov rcx, r12
je 0x14004252e
cmp word [r8], 0x5c
je 0x14004252b
cmp rax, 1
je 0x14004252e
dec rax
add r8, 2
cmp word [r8], 0x5c
jne 0x140042517
mov rcx, r8
mov r8, rcx
test rcx, rcx
je 0x140042717
mov r9d, 5
mov rax, r13
movzx ecx, word [rcx]
mov edx, 0x5c
cmp cx, dx
jb 0x140042575
mov r10, r8
sub r10, r13
cmp cx, dx
ja 0x140042575
cmp r9, 1
je 0x14004257b
dec r9
add rax, 2
movzx ecx, word [r10 + rax]
movzx edx, word [rax]
cmp cx, dx
jae 0x140042559
add r8, 2
jmp 0x140042502
sub r8, rbx
sar r8, 1
cmp r8, 0xffffffffffffffff
je 0x140042717
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x40], r12
mov ebx, 7
mov qword [rbp - 0x38], rbx
cmp rsi, r8
cmovb r8, rsi
lea rdx, [rbp - 0x30]
test r15b, r15b
cmovne rdx, r11
lea rcx, [rbp - 0x50]
call fcn.140005030
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x1400425f7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400425f2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140042783
call fcn.1400742a0
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 r14, xmm1
sub rax, r14
cmp rax, 0xa
jb 0x140042789
lea r15, [rbp - 0x30]
cmp qword [rbp - 0x38], 8
cmovae r15, qword [rbp - 0x50]
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x38], r12
lea rsi, [r14 + 0xa]
lea rdi, [rbp - 0x50]
cmp rsi, 7
jbe 0x14004267f
mov rbx, rsi
or rbx, 7
cmp rbx, rcx
jbe 0x14004265f
mov rbx, rcx
jmp 0x14004266b
mov eax, 0xa
cmp rbx, rax
cmovb rbx, rax
lea rdx, [rbx + 1]
lea rcx, [rbp - 0x50]
call fcn.14001d7c0
mov rdi, rax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x40], rsi
mov qword [rbp - 0x38], rbx
lea rbx, [r14 + r14]
mov r8, rbx
mov rdx, r15
mov rcx, rdi
call fcn.1400766b0
movups xmm0, xmmword [str.cover.jpg]
movups xmmword [rbx + rdi], xmm0
mov eax, dword [0x1400c7370]
mov dword [rbx + rdi + 0x10], eax
mov word [rdi + rsi*2], r12w
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 0x14004270d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140042708
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004278f
call fcn.1400742a0
mov rdi, qword [rbp - 0x18]
mov r11, qword [rbp - 0x30]
jmp 0x140042719
xor bl, bl
cmp rdi, 8
jb 0x140042750
lea rdx, [rdi*2 + 2]
mov rax, r11
cmp rdx, 0x1000
jb 0x140042748
add rdx, 0x27
mov r11, qword [r11 - 8]
sub rax, r11
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004277d
mov rcx, r11
call fcn.1400742a0
movzx eax, bl
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140074280
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.14007abbc
nop
call fcn.14007abbc
nop
call fcn.140001f20
int3
call fcn.14007abbc
int3