Function at 0x140053858
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.1400af970
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 0x1400538d5
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x68]
call fcn.140005dcc
nop
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], 7
cmova rdx, qword [rsp + 0x68]
mov r9, qword [rsp + 0x78]
test r9, r9
je 0x140053934
lea rcx, [r9 - 1]
mov rax, r15
cmp rcx, r15
cmovb rax, rcx
lea r8, [rdx + rax*2]
jmp 0x140053925
cmp r8, rdx
je 0x140053934
sub r8, 2
cmp word [r8], 0x5c
jne 0x14005391c
sub r8, rdx
sar r8, 1
jmp 0x140053937
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.140005dcc
nop
mov r13d, 0x1000
mov rdx, qword [rbp - 0x80]
cmp rdx, 7
jbe 0x1400539ae
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, r13
jb 0x1400539a9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140053b64
call fcn.1400864f0
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.1400410bc
cmp rax, r15
je 0x140053afd
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.140005dcc
mov rdx, qword [rsp + 0x60]
cmp rdx, 7
jbe 0x140053a6e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, r13
jb 0x140053a69
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140053b6a
call fcn.1400864f0
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 0x140053b70
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.14001d98c
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.14001a780
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x48]
cmp rsi, 7
jbe 0x140053b30
lea rdx, [rsi*2 + 2]
mov rax, rdi
cmp rdx, r13
jb 0x140053b28
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140053b5e
mov rcx, rdi
call fcn.1400864f0
mov al, bl
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.1400864d0
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.14008d5e0
int3
call fcn.14008d5e0
nop
call fcn.14008d5e0
nop
call fcn.140001784
int3