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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xe0
mov rax, qword [0x1402bf5c8]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r15, r8
mov rdi, rdx
mov qword [rsp + 0x38], rdx
mov qword [rbp - 0x39], rdx
movups xmm0, xmmword [0x140248ec0]
movups xmmword [rbp - 0x71], xmm0
movups xmm1, xmmword [0x140248ed0]
movups xmmword [rbp - 0x61], xmm1
movups xmm0, xmmword [0x140248eb0]
movups xmmword [rbp - 0x51], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x11], xmm1
xor r13d, r13d
mov qword [rbp - 1], r13
lea ecx, [r13 + 0x30]
call fcn.1401a9cf4
mov qword [rbp - 0x11], rax
mov qword [rbp - 9], rax
lea r12, [rax + 0x30]
mov qword [rbp - 0x79], r12
mov qword [rbp - 1], r12
lea r8d, [r13 + 0x30]
lea rdx, [rbp - 0x71]
mov rcx, rax
call fcn.1401cfe40
mov qword [rbp - 9], r12
mov r14, qword [rbp - 0x11]
cmp r14, r12
je 0x1401020cf
movzx ebx, byte [rsp + 0x30]
nop dword [rax]
movups xmm0, xmmword [r14]
movups xmmword [rbp + 7], xmm0
mov qword [rbp - 0x41], r13
mov qword [rbp - 0x31], r13
mov qword [rbp - 0x21], r13
mov qword [rbp - 0x19], 7
mov word [rbp - 0x31], r13w
lea r9, [rbp - 0x41]
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 7]
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jne 0x140101fbd
mov qword [rbp - 0x71], r13
mov qword [rbp - 0x61], r13
mov qword [rbp - 0x59], 7
mov rdx, qword [rbp - 0x41]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140101f30
lea rcx, [rbp - 0x71]
call fcn.140018360
lea rcx, [rbp - 0x31]
call fcn.1400272a0
movups xmm0, xmmword [rbp - 0x71]
movups xmmword [rbp - 0x31], xmm0
movups xmm1, xmmword [rbp - 0x61]
movups xmmword [rbp - 0x21], xmm1
mov rdx, qword [rdi + 0x10]
mov r9, rdi
cmp qword [rdi + 0x18], 8
jb 0x140101f6e
mov r9, qword [rdi]
mov rax, qword [rbp - 0x59]
mov rcx, qword [rbp - 0x61]
sub rax, rcx
cmp rdx, rax
ja 0x140101fab
lea rsi, [rcx + rdx]
mov qword [rbp - 0x21], rsi
lea rdi, [rbp - 0x31]
cmp qword [rbp - 0x19], 8
cmovae rdi, qword [rbp - 0x31]
lea rcx, [rdi + rcx*2]
lea r8, [rdx + rdx]
mov rdx, r9
call fcn.1401cfe40
mov word [rdi + rsi*2], r13w
jmp 0x140101fbd
mov qword [rsp + 0x20], rdx
movzx r8d, bl
lea rcx, [rbp - 0x31]
call fcn.14002dc10
lea rcx, [rbp - 0x31]
cmp qword [rbp - 0x19], 8
cmovae rcx, qword [rbp - 0x31]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140102079
mov rdi, qword [r15 + 8]
cmp rdi, qword [r15 + 0x10]
je 0x140102069
mov qword [rdi], r13
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], r13
mov r13, qword [rbp - 0x21]
lea r12, [rbp - 0x31]
cmp qword [rbp - 0x19], 8
cmovae r12, qword [rbp - 0x31]
cmp r13, 8
jae 0x140102019
movups xmm0, xmmword [r12]
movups xmmword [rdi], xmm0
mov esi, 7
jmp 0x140102053
mov rsi, r13
or rsi, 7
movabs rax, 0x7ffffffffffffffe
cmp rsi, rax
cmova rsi, rax
lea rdx, [rsi + 1]
mov rcx, rdi
call fcn.140023c30
mov qword [rdi], rax
lea r8, [r13*2 + 2]
mov rdx, r12
mov rcx, rax
call fcn.1401cfe40
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], rsi
add qword [r15 + 8], 0x20
mov r12, qword [rbp - 0x79]
xor r13d, r13d
jmp 0x140102079
lea r8, [rbp - 0x31]
mov rdx, rdi
mov rcx, r15
call fcn.140039d40
nop
mov rdx, qword [rbp - 0x19]
cmp rdx, 8
jb 0x1401020b9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401020b4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140102143
call fcn.1401a9a50
add r14, 0x10
mov rdi, qword [rsp + 0x38]
cmp r14, r12
jne 0x140101ed0
mov r14, qword [rbp - 0x11]
test r14, r14
je 0x140102114
mov rdx, qword [rbp - 1]
sub rdx, r14
and rdx, 0xfffffffffffffff0
mov rax, r14
cmp rdx, 0x1000
jb 0x140102100
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140102149
mov rcx, r14
call fcn.1401a9a50
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x11], xmm0
mov qword [rbp - 1], r13
mov rcx, rdi
call fcn.1400272a0
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1401a9a30
mov rbx, qword [rsp + 0x120]
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1401e3dbc
nop
call fcn.1401e3dbc
int3