Function at 0x1400511a8
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 [0x14010e0c0]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
xor ebx, ebx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x50]
call fcn.1400abfe0
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 0x140051225
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x68]
call fcn.140003d9c
nop
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], 7
cmova rdx, qword [rsp + 0x68]
mov r9, qword [rsp + 0x78]
test r9, r9
je 0x140051284
lea rcx, [r9 - 1]
mov rax, r15
cmp rcx, r15
cmovb rax, rcx
lea r8, [rdx + rax*2]
jmp 0x140051275
cmp r8, rdx
je 0x140051284
sub r8, 2
cmp word [r8], 0x5c
jne 0x14005126c
sub r8, rdx
sar r8, 1
jmp 0x140051287
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.140003d9c
nop
mov r13d, 0x1000
mov rdx, qword [rbp - 0x80]
cmp rdx, 7
jbe 0x1400512fe
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, r13
jb 0x1400512f9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400514b4
call fcn.140082b60
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.14003e6b4
cmp rax, r15
je 0x14005144d
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.140003d9c
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x1400513be
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, r13
jb 0x1400513b9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400514ba
call fcn.140082b60
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 0x1400514c0
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.14003e808
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.1400186c8
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x48]
cmp rsi, 7
jbe 0x140051480
lea rdx, [rsi*2 + 2]
mov rax, rdi
cmp rdx, r13
jb 0x140051478
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400514ae
mov rcx, rdi
call fcn.140082b60
mov al, bl
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.140082b40
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.140089c50
int3
call fcn.140089c50
nop
call fcn.140089c50
nop
call fcn.1400017e4
int3