Function at 0x1400537a8
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 [0x14010c0c0]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
xor ebx, ebx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x50]
call fcn.1400af720
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 0x140053825
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x68]
call fcn.140005d6c
nop
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], 7
cmova rdx, qword [rsp + 0x68]
mov r9, qword [rsp + 0x78]
test r9, r9
je 0x140053884
lea rcx, [r9 - 1]
mov rax, r15
cmp rcx, r15
cmovb rax, rcx
lea r8, [rdx + rax*2]
jmp 0x140053875
cmp r8, rdx
je 0x140053884
sub r8, 2
cmp word [r8], 0x5c
jne 0x14005386c
sub r8, rdx
sar r8, 1
jmp 0x140053887
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.140005d6c
nop
mov r13d, 0x1000
mov rdx, qword [rbp - 0x80]
cmp rdx, 7
jbe 0x1400538fe
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, r13
jb 0x1400538f9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140053ab4
call fcn.1400862a0
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.14004105c
cmp rax, r15
je 0x140053a4d
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.140005d6c
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x1400539be
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, r13
jb 0x1400539b9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140053aba
call fcn.1400862a0
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 0x140053ac0
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.14001d92c
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.14001a720
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x48]
cmp rsi, 7
jbe 0x140053a80
lea rdx, [rsi*2 + 2]
mov rax, rdi
cmp rdx, r13
jb 0x140053a78
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140053aae
mov rcx, rdi
call fcn.1400862a0
mov al, bl
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.140086280
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.14008d390
int3
call fcn.14008d390
nop
call fcn.14008d390
nop
call fcn.140001724
int3