Function at 0x140002820
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x7c8]
sub rsp, 0x8a0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x140022008]
xor rax, rsp
mov qword [rbp + 0x790], rax
mov byte [0x140022e10], 1
xor edx, edx
mov r8d, 0x410
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memset
xor r13d, r13d
mov qword [rsp + 0x20], r13
lea r8, [rsp + 0x20]
lea edx, [r13 + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x1400028c2
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x1400028bc
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x1400028c2
call qword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x1400028c2
mov word [rsp + 0x60], r13w
lea rcx, [rsp + 0x60]
sub rcx, 2
nop dword [rax + rax]
lea rcx, [rcx + 2]
cmp word [rcx], r13w
jne 0x1400028d0
mov eax, dword [0x1400199e0]
mov dword [rcx], eax
lea rax, [rsp + 0x60]
sub rax, 2
nop dword [rax + rax]
lea rax, [rax + 2]
cmp word [rax], r13w
jne 0x1400028f0
movups xmm0, xmmword [str.2345Pic]
movups xmmword [rax], xmm0
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14000291a
mov word [rsp + 0x60], r13w
xor edx, edx
mov r8d, 0x412
lea rcx, [rbp + 0x370]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x60]
mov rbx, 0xffffffffffffffff
mov rax, rbx
nop dword [rax]
inc rax
cmp word [rcx + rax*2], r13w
jne 0x140002940
test rax, rax
je 0x1400029da
mov r8d, 0x207
lea rdx, [rsp + 0x60]
lea rcx, [rbp + 0x370]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
lea rcx, [rbp + 0x370]
mov rax, rbx
inc rax
cmp word [rcx + rax*2], r13w
jne 0x140002975
test rax, rax
je 0x1400029da
lea rcx, [rbp + 0x370]
sub rcx, 2
nop
lea rcx, [rcx + 2]
cmp word [rcx], r13w
jne 0x140002990
mov eax, dword [0x1400199e0]
mov dword [rcx], eax
lea rcx, [rbp + 0x370]
sub rcx, 2
nop dword [rax]
lea rcx, [rcx + 2]
cmp word [rcx], r13w
jne 0x1400029b0
movups xmm0, xmmword [str.2345Image.hzv]
movups xmmword [rcx], xmm0
movsd xmm1, qword [0x140019a08]
movsd qword [rcx + 0x10], xmm1
mov eax, dword [0x140019a10]
mov dword [rcx + 0x18], eax
call fcn.140005f10
mov rdi, rax
lea rax, [rbp + 0x370]
mov rcx, rbx
nop dword [rax]
inc rcx
cmp word [rax + rcx*2], r13w
jne 0x1400029f0
test rcx, rcx
je 0x140002b8e
mov qword [rsp + 0x50], r13
mov r14, qword [rdi]
mov qword [rsp + 0x50], r14
test r14, r14
je 0x140002a24
mov rcx, qword [r14]
test rcx, rcx
je 0x140002a24
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
movdqa xmm1, xmmword [0x14001adf0]
movdqu xmmword [rsp + 0x38], xmm1
mov word [rsp + 0x28], r13w
lea rax, [rbp + 0x370]
nop dword [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140002a50
mov r8, rbx
lea rdx, [rbp + 0x370]
lea rcx, [rsp + 0x28]
call fcn.140003780
nop
mov rdi, qword [rdi]
add rdi, 0x28
lea rcx, [rsp + 0x28]
mov r15, qword [rsp + 0x28]
mov r12, qword [rsp + 0x40]
cmp r12, 8
cmovae rcx, r15
mov r8, rdi
cmp qword [rdi + 0x18], 8
jb 0x140002a9a
mov r8, qword [rdi]
mov rdx, qword [rdi + 0x10]
mov rbx, qword [rsp + 0x38]
cmp rdx, rbx
jne 0x140002ac6
test rdx, rdx
je 0x140002b24
sub r8, rcx
movzx eax, word [rcx]
cmp word [r8 + rcx], ax
jne 0x140002ac6
add rcx, 2
sub rdx, 1
jne 0x140002ab0
jmp 0x140002b24
mov rcx, rdi
call fcn.14000b630
lea rax, [rsp + 0x28]
cmp rdi, rax
je 0x140002afa
lea rdx, [rsp + 0x28]
cmp r12, 8
cmovae rdx, r15
mov r8, rbx
mov rcx, rdi
call fcn.140003780
mov r12, qword [rsp + 0x40]
mov r15, qword [rsp + 0x28]
mov rsi, qword [rdi + 0x28]
mov rbx, qword [rdi + 0x20]
cmp rbx, rsi
je 0x140002b1c
mov rcx, rbx
call fcn.14000bce0
sub rbx, 0xffffffffffffff80
cmp rbx, rsi
jne 0x140002b07
mov rbx, qword [rdi + 0x20]
mov qword [rdi + 0x28], rbx
mov byte [rdi + 0x38], 0
cmp r12, 8
jb 0x140002b62
lea rdx, [r12*2 + 2]
mov rax, r15
cmp rdx, 0x1000
jb 0x140002b5a
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002b5a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r15
call fcn.140014ec0
movdqa xmm0, xmmword [0x14001adf0]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], r13w
test r14, r14
je 0x140002b8e
mov rcx, qword [r14]
test rcx, rcx
je 0x140002b89
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rsp + 0x50], r13
mov rcx, qword [rbp + 0x790]
xor rcx, rsp
call fcn.140014e60
lea r11, [rsp + 0x8a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret