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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r13
push r15
lea rbp, [rax - 0x1e8]
sub rsp, 0x2d0
mov rax, qword [0x1401060c0]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
xor ebx, ebx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x50]
call fcn.1400a9c50
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
mov r8d, 0x104
lea rdx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], rbx
mov qword [rbp - 0x80], rbx
lea rax, [rbp - 0x50]
or r15, 0xffffffffffffffff
mov r8, r15
inc r8
cmp word [rax + r8*2], bx
jne 0x14004ff71
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x68]
call fcn.140003dfc
nop
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], 7
cmova rdx, qword [rsp + 0x68]
mov r9, qword [rsp + 0x78]
test r9, r9
je 0x14004ffd0
lea rcx, [r9 - 1]
mov rax, r15
cmp rcx, r15
cmovb rax, rcx
lea r8, [rdx + rax*2]
jmp 0x14004ffc1
cmp r8, rdx
je 0x14004ffd0
sub r8, 2
cmp word [r8], 0x5c
jne 0x14004ffb8
sub r8, rdx
sar r8, 1
jmp 0x14004ffd3
mov r8, r15
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbx
cmp r9, r8
cmovb r8, r9
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], 7
cmova rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x48]
call fcn.140003dfc
nop
mov r13d, 0x1000
mov rdx, qword [rbp - 0x80]
cmp rdx, 7
jbe 0x14005004a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, r13
jb 0x140050045
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140050200
call fcn.1400807d0
mov qword [rsp + 0x78], rbx
mov qword [rbp - 0x80], 7
mov word [rsp + 0x68], bx
lea rcx, [rsp + 0x48]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x60]
cmp rsi, 7
cmova rcx, rdi
mov qword [rsp + 0x20], 5
lea r9, str.x64_
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
call fcn.14003d58c
cmp rax, r15
je 0x140050199
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x68], xmm1
cmp qword [rsp + 0x58], rax
cmovb rax, qword [rsp + 0x58]
lea rdx, [rsp + 0x48]
cmp rsi, 7
cmova rdx, rdi
mov r8, rax
lea rcx, [rbp - 0x78]
call fcn.140003dfc
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x14005010a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, r13
jb 0x140050105
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140050206
call fcn.1400807d0
movups xmm0, xmmword [rbp - 0x78]
movups xmmword [rsp + 0x48], xmm0
movups xmm1, xmmword [rbp - 0x68]
movups xmmword [rsp + 0x58], xmm1
movabs rax, 0x7ffffffffffffffe
movq rcx, xmm1
sub rax, rcx
cmp rax, 0xa
jb 0x14005020c
lea r9, [rsp + 0x48]
cmp qword [rsp + 0x60], 7
cmova r9, qword [rsp + 0x48]
mov qword [rsp + 0x30], 0xa
lea rax, str.cover.jpg
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x78]
call fcn.14003d6e0
lea rcx, [rbp - 0x78]
cmp qword [rbp - 0x60], 7
cmova rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
lea rcx, [rbp - 0x78]
call fcn.140018728
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x48]
cmp rsi, 7
jbe 0x1400501cc
lea rdx, [rsi*2 + 2]
mov rax, rdi
cmp rdx, r13
jb 0x1400501c4
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400501fa
mov rcx, rdi
call fcn.1400807d0
mov al, bl
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.1400807b0
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r13
pop rbp
ret
call fcn.1400878c0
int3
call fcn.1400878c0
nop
call fcn.1400878c0
nop
call fcn.140001844
int3