Function at 0x14001d820
Capabilities:
Get common file path

Disassembly:
push rbp
push rdi
push r12
push r15
sub rsp, 0x268
mov rax, qword gs:[0x58]
mov rdi, rcx
mov edx, dword [0x1400ae7dc]
mov ecx, 4
mov rdx, qword [rax + rdx*8]
mov eax, dword [rcx + rdx]
cmp dword [0x1400ae5c0], eax
jg 0x14001dae7
xor r12d, r12d
mov qword [rsp + 0x290], rbx
cmp qword [0x1400ab538], r12
lea rbp, [0x1400ab528]
lea r15d, [r12 + 7]
jne 0x14001da58
lea rdx, [rsp + 0x50]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov rbx, 0xffffffffffffffff
mov qword [rsp + 0x40], r12
mov r8, rbx
mov qword [rsp + 0x48], r15
mov word [rsp + 0x30], r12w
lea rax, [rsp + 0x50]
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], r12w
jne 0x14001d8b0
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.140014450
mov rdx, qword [0x1400ab540]
cmp rdx, 8
jb 0x14001d90f
mov rcx, qword [0x1400ab528]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14001d90a
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001dae1
mov rcx, r8
call fcn.14003e23c
movups xmm0, xmmword [rsp + 0x30]
lea rcx, str.Shell32.dll
mov qword [rsp + 0x2a0], rsi
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [0x1400ab528], xmm0
movups xmmword [0x1400ab538], xmm1
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14001da50
lea rdx, str.SHGetKnownFolderPath
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001d9c4
lea r9, [rsp + 0x298]
mov qword [rsp + 0x298], r12
xor r8d, r8d
lea rcx, [0x14008af58]
xor edx, edx
call rax
mov rcx, qword [rsp + 0x298]
test eax, eax
js 0x14001d9b0
cmp word [rcx], r12w
je 0x14001d9b0
nop dword [rax]
inc rbx
cmp word [rcx + rbx*2], r12w
jne 0x14001d990
mov rdx, rcx
mov r8, rbx
mov rcx, rbp
call fcn.140014450
mov rcx, qword [rsp + 0x298]
test rcx, rcx
je 0x14001da47
call qword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x14001da47
lea rdx, str.SHGetFolderPathW
mov qword [rsp + 0x260], r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
test rax, rax
je 0x14001da3f
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x20a
call fcn.140042410
xor r9d, r9d
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea edx, [r9 + 0x1a]
call r14
test eax, eax
js 0x14001da3f
cmp eax, 1
je 0x14001da3f
cmp word [rsp + 0x50], r12w
je 0x14001da3f
lea rax, [rsp + 0x50]
inc rbx
cmp word [rax + rbx*2], r12w
jne 0x14001da25
mov r8, rbx
lea rdx, [rsp + 0x50]
mov rcx, rbp
call fcn.140014450
mov r14, qword [rsp + 0x260]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rsi, qword [rsp + 0x2a0]
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], r12
cmp qword [0x1400ab540], 8
mov rbx, qword [0x1400ab538]
cmovae rbp, qword [0x1400ab528]
cmp rbx, 8
jae 0x14001da86
movups xmm0, xmmword [rbp]
movups xmmword [rdi], xmm0
jmp 0x14001dac0
movabs rax, 0x7ffffffffffffffe
mov r15, rbx
or r15, 7
mov rcx, rdi
cmp rax, r15
cmovb r15, rax
lea rdx, [r15 + 1]
call fcn.140014260
lea r8, [rbx*2 + 2]
mov qword [rdi], rax
mov rdx, rbp
mov rcx, rax
call fcn.140042000
mov qword [rdi + 0x10], rbx
mov rax, rdi
mov qword [rdi + 0x18], r15
mov rbx, qword [rsp + 0x290]
add rsp, 0x268
pop r15
pop r12
pop rdi
pop rbp
ret
call fcn.14004bd18
int3
lea rcx, [0x1400ae5c0]
call fcn.14003e688
cmp dword [0x1400ae5c0], 0xffffffff
jne 0x14001d858
lea rcx, [0x140082550]
call fcn.14003e47c
lea rcx, [0x1400ae5c0]
call fcn.14003e628
jmp 0x14001d858