Function at 0x140061e50
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 [0x14012a098]
xor rax, rsp
mov qword [rbp - 0x10], rax
lea rcx, [rbp - 0x30]
call fcn.140061cb0
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 0x1400620d7
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 0x140061eee
cmp word [r8], 0x5c
je 0x140061eeb
cmp rax, 1
je 0x140061eee
dec rax
add r8, 2
cmp word [r8], 0x5c
jne 0x140061ed7
mov rcx, r8
mov r8, rcx
test rcx, rcx
je 0x1400620d7
mov r9d, 5
mov rax, r13
movzx ecx, word [rcx]
mov edx, 0x5c
cmp cx, dx
jb 0x140061f35
mov r10, r8
sub r10, r13
cmp cx, dx
ja 0x140061f35
cmp r9, 1
je 0x140061f3b
dec r9
add rax, 2
movzx ecx, word [r10 + rax]
movzx edx, word [rax]
cmp cx, dx
jae 0x140061f19
add r8, 2
jmp 0x140061ec2
sub r8, rbx
sar r8, 1
cmp r8, 0xffffffffffffffff
je 0x1400620d7
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.140005480
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x140061fb7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140061fb2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140062143
call fcn.1400998c0
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 0x140062149
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 0x14006203f
mov rbx, rsi
or rbx, 7
cmp rbx, rcx
jbe 0x14006201f
mov rbx, rcx
jmp 0x14006202b
mov eax, 0xa
cmp rbx, rax
cmovb rbx, rax
lea rdx, [rbx + 1]
lea rcx, [rbp - 0x50]
call fcn.14001dd60
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.14009bcc0
movups xmm0, xmmword [str.cover.jpg]
movups xmmword [rbx + rdi], xmm0
mov eax, dword [0x140110ba8]
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 0x1400620cd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400620c8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006214f
call fcn.1400998c0
mov rdi, qword [rbp - 0x18]
mov r11, qword [rbp - 0x30]
jmp 0x1400620d9
xor bl, bl
cmp rdi, 8
jb 0x140062110
lea rdx, [rdi*2 + 2]
mov rax, r11
cmp rdx, 0x1000
jb 0x140062108
add rdx, 0x27
mov r11, qword [r11 - 8]
sub rax, r11
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006213d
mov rcx, r11
call fcn.1400998c0
movzx eax, bl
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400998a0
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.1400a03a4
nop
call fcn.1400a03a4
nop
call fcn.140002380
int3
call fcn.1400a03a4
int3