Function at 0x140051f7c
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 [0x1401110c0]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
xor ebx, ebx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x50]
call fcn.1400ad7d0
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 0x140051ff9
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 0x140052058
lea rcx, [r9 - 1]
mov rax, r15
cmp rcx, r15
cmovb rax, rcx
lea r8, [rdx + rax*2]
jmp 0x140052049
cmp r8, rdx
je 0x140052058
sub r8, 2
cmp word [r8], 0x5c
jne 0x140052040
sub r8, rdx
sar r8, 1
jmp 0x14005205b
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 0x1400520d2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, r13
jb 0x1400520cd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140052288
call fcn.140084350
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.14003e7a8
cmp rax, r15
je 0x140052221
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 0x140052192
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, r13
jb 0x14005218d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005228e
call fcn.140084350
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 0x140052294
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.14003e8fc
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 0x140052254
lea rdx, [rsi*2 + 2]
mov rax, rdi
cmp rdx, r13
jb 0x14005224c
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140052282
mov rcx, rdi
call fcn.140084350
mov al, bl
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.140084330
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.14008b440
int3
call fcn.14008b440
nop
call fcn.14008b440
nop
call fcn.140001844
int3