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

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x7a8]
sub rsp, 0x8a0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
mov rax, qword [0x180122010]
xor rax, rsp
mov qword [rbp + 0x790], rax
cmp byte [0x180126f10], 0
jne 0x18008e162
mov byte [0x180126f10], 1
xor edx, edx
mov r8d, 0x410
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memset
xor r14d, r14d
mov qword [rsp + 0x20], r14
lea r8, [rsp + 0x20]
lea edx, [r14 + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x18008df1b
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x18008df15
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x18008df1b
call qword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x18008df1b
mov word [rsp + 0x60], r14w
lea rcx, [rsp + 0x60]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], r14w
jne 0x18008df24
mov eax, dword [0x1800d8e34]
mov dword [rcx], eax
lea rax, [rsp + 0x60]
sub rax, 2
nop
lea rax, [rax + 2]
cmp word [rax], r14w
jne 0x18008df40
movups xmm0, xmmword [str.2345Pic]
movups xmmword [rax], xmm0
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x18008df6a
mov word [rsp + 0x60], r14w
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], r14w
jne 0x18008df90
test rax, rax
je 0x18008e02a
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], r14w
jne 0x18008dfc5
test rax, rax
je 0x18008e02a
lea rcx, [rbp + 0x370]
sub rcx, 2
nop
lea rcx, [rcx + 2]
cmp word [rcx], r14w
jne 0x18008dfe0
mov eax, dword [0x1800d8e34]
mov dword [rcx], eax
lea rcx, [rbp + 0x370]
sub rcx, 2
nop dword [rax]
lea rcx, [rcx + 2]
cmp word [rcx], r14w
jne 0x18008e000
movups xmm0, xmmword [str.2345Image.hzv]
movups xmmword [rcx], xmm0
movsd xmm1, qword [0x1800e0fb8]
movsd qword [rcx + 0x10], xmm1
mov eax, dword [0x1800e0fc0]
mov dword [rcx + 0x18], eax
call fcn.1800ac6a0
mov rsi, rax
lea rax, [rbp + 0x370]
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], r14w
jne 0x18008e040
test rbx, rbx
je 0x18008e162
mov qword [rsp + 0x50], r14
mov rdi, qword [rsi]
mov qword [rsp + 0x50], rdi
test rdi, rdi
je 0x18008e074
mov rcx, qword [rdi]
test rcx, rcx
je 0x18008e074
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
movdqa xmm1, xmmword [0x1800e3630]
movdqu xmmword [rsp + 0x38], xmm1
mov word [rsp + 0x28], r14w
lea rdx, [rbp + 0x370]
lea rcx, [rsp + 0x28]
call fcn.1800034f0
nop
mov rbx, qword [rsi]
add rbx, 0x28
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
mov r8, rbx
cmp qword [rbx + 0x18], 8
jb 0x18008e0c8
mov r8, qword [rbx]
mov rdx, qword [rbx + 0x10]
cmp rdx, qword [rsp + 0x38]
jne 0x18008e0f6
test rdx, rdx
je 0x18008e13f
sub r8, rcx
nop dword [rax + rax]
movzx eax, word [rcx]
cmp word [r8 + rcx], ax
jne 0x18008e0f6
add rcx, 2
sub rdx, 1
jne 0x18008e0e0
jmp 0x18008e13f
mov rcx, rbx
call fcn.1800b2a70
lea rax, [rsp + 0x28]
cmp rbx, rax
je 0x18008e126
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rdx, qword [rsp + 0x28]
mov r8, qword [rsp + 0x38]
mov rcx, rbx
call fcn.180003570
mov rdx, qword [rbx + 0x28]
mov rcx, qword [rbx + 0x20]
call fcn.1800b6030
mov rax, qword [rbx + 0x20]
mov qword [rbx + 0x28], rax
mov byte [rbx + 0x38], 0
lea rcx, [rsp + 0x28]
call fcn.180003470
nop
test rdi, rdi
je 0x18008e162
mov rcx, qword [rdi]
test rcx, rcx
je 0x18008e15d
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rsp + 0x50], r14
mov rcx, qword [rbp + 0x790]
xor rcx, rsp
call fcn.1800ba9e0
lea r11, [rsp + 0x8a0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret