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

Disassembly:
mov rax, rsp
push rbp
push r12
push r14
lea rbp, [rax - 0x7b8]
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 [0x1806c4cd8]
xor rax, rsp
mov qword [rbp + 0x790], rax
mov byte [0x18075f210], 1
xor edx, edx
mov r8d, 0x410
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memset
xor r12d, r12d
mov qword [rsp + 0x20], r12
lea r8, [rsp + 0x20]
lea edx, [r12 + 0x1a]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x1802b7e9f
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x1802b7e99
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x1802b7e9f
call qword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x1802b7e9f
mov word [rsp + 0x60], r12w
lea rcx, [rsp + 0x60]
sub rcx, 2
nop dword [rax + rax]
lea rcx, [rcx + 2]
cmp word [rcx], r12w
jne 0x1802b7eb0
mov eax, dword [0x1805e5728]
mov dword [rcx], eax
lea rax, [rsp + 0x60]
sub rax, 2
nop dword [rax + rax]
lea rax, [rax + 2]
cmp word [rax], r12w
jne 0x1802b7ed0
movups xmm0, xmmword [str.2345Pic]
movups xmmword [rax], xmm0
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1802b7efa
mov word [rsp + 0x60], r12w
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], r12w
jne 0x1802b7f20
test rax, rax
je 0x1802b7fba
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], r12w
jne 0x1802b7f55
test rax, rax
je 0x1802b7fba
lea rcx, [rbp + 0x370]
sub rcx, 2
nop
lea rcx, [rcx + 2]
cmp word [rcx], r12w
jne 0x1802b7f70
mov eax, dword [0x1805e5728]
mov dword [rcx], eax
lea rcx, [rbp + 0x370]
sub rcx, 2
nop dword [rax]
lea rcx, [rcx + 2]
cmp word [rcx], r12w
jne 0x1802b7f90
movups xmm0, xmmword [str.2345Image.hzv]
movups xmmword [rcx], xmm0
movsd xmm1, qword [0x1805fd868]
movsd qword [rcx + 0x10], xmm1
mov eax, dword [0x1805fd870]
mov dword [rcx + 0x18], eax
call fcn.1802be660
mov rsi, rax
lea rax, [rbp + 0x370]
mov rcx, rbx
nop dword [rax]
inc rcx
cmp word [rax + rcx*2], r12w
jne 0x1802b7fd0
test rcx, rcx
je 0x1802b815f
mov qword [rsp + 0x50], r12
mov rdi, qword [rsi]
mov qword [rsp + 0x50], rdi
test rdi, rdi
je 0x1802b8004
mov rcx, qword [rdi]
test rcx, rcx
je 0x1802b8004
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
movdqa xmm1, xmmword [0x180601b00]
movdqu xmmword [rsp + 0x38], xmm1
mov word [rsp + 0x28], r12w
lea rax, [rbp + 0x370]
nop dword [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1802b8030
mov r8, rbx
lea rdx, [rbp + 0x370]
lea rcx, [rsp + 0x28]
call fcn.18007da60
nop
mov rbx, qword [rsi]
add rbx, 0x28
lea rcx, [rsp + 0x28]
mov rsi, qword [rsp + 0x28]
mov r14, qword [rsp + 0x40]
cmp r14, 8
cmovae rcx, rsi
mov r8, rbx
cmp qword [rbx + 0x18], 8
jb 0x1802b807a
mov r8, qword [rbx]
mov rdx, qword [rbx + 0x10]
cmp rdx, qword [rsp + 0x38]
jne 0x1802b80a6
test rdx, rdx
je 0x1802b80f5
sub r8, rcx
nop dword [rax]
movzx eax, word [rcx]
cmp word [r8 + rcx], ax
jne 0x1802b80a6
add rcx, 2
sub rdx, 1
jne 0x1802b8090
jmp 0x1802b80f5
mov rcx, rbx
call fcn.1802bfaa0
lea rax, [rsp + 0x28]
cmp rbx, rax
je 0x1802b80dc
lea rdx, [rsp + 0x28]
cmp r14, 8
cmovae rdx, rsi
mov r8, qword [rsp + 0x38]
mov rcx, rbx
call fcn.18007da60
mov r14, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x28]
mov rdx, qword [rbx + 0x28]
mov rcx, qword [rbx + 0x20]
call fcn.1802c3300
mov rax, qword [rbx + 0x20]
mov qword [rbx + 0x28], rax
mov byte [rbx + 0x38], 0
cmp r14, 8
jb 0x1802b8133
lea rdx, [r14*2 + 2]
mov rax, rsi
cmp rdx, 0x1000
jb 0x1802b812b
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1802b812b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rsi
call fcn.180468ddc
movdqa xmm0, xmmword [0x180601b00]
movdqu xmmword [rsp + 0x38], xmm0
mov word [rsp + 0x28], r12w
test rdi, rdi
je 0x1802b815f
mov rcx, qword [rdi]
test rcx, rcx
je 0x1802b815a
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rsp + 0x50], r12
mov rcx, qword [rbp + 0x790]
xor rcx, rsp
call fcn.1804688c0
lea r11, [rsp + 0x8a0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop r12
pop rbp
ret