Function at 0x14001e810
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 [0x1400b19a0]
mov ecx, 0x10
mov rdx, qword [rax + rdx*8]
mov eax, dword [rcx + rdx]
cmp dword [0x1400b1790], eax
jg 0x14001ead7
xor r12d, r12d
mov qword [rsp + 0x290], rbx
cmp qword [0x1400ae538], r12
lea rbp, [0x1400ae528]
lea r15d, [r12 + 7]
jne 0x14001ea48
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 0x14001e8a0
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.140014b30
mov rdx, qword [0x1400ae540]
cmp rdx, 8
jb 0x14001e8ff
mov rcx, qword [0x1400ae528]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14001e8fa
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001ead1
mov rcx, r8
call fcn.14003f8c0
movups xmm0, xmmword [rsp + 0x30]
lea rcx, str.Shell32.dll
mov qword [rsp + 0x2a0], rsi
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [0x1400ae528], xmm0
movups xmmword [0x1400ae538], xmm1
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14001ea40
lea rdx, str.SHGetKnownFolderPath
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001e9b4
lea r9, [rsp + 0x298]
mov qword [rsp + 0x298], r12
xor r8d, r8d
lea rcx, [0x14008d1d8]
xor edx, edx
call rax
mov rcx, qword [rsp + 0x298]
test eax, eax
js 0x14001e9a0
cmp word [rcx], r12w
je 0x14001e9a0
nop dword [rax]
inc rbx
cmp word [rcx + rbx*2], r12w
jne 0x14001e980
mov rdx, rcx
mov r8, rbx
mov rcx, rbp
call fcn.140014b30
mov rcx, qword [rsp + 0x298]
test rcx, rcx
je 0x14001ea37
call qword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x14001ea37
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 0x14001ea2f
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x20a
call fcn.140043b10
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 0x14001ea2f
cmp eax, 1
je 0x14001ea2f
cmp word [rsp + 0x50], r12w
je 0x14001ea2f
lea rax, [rsp + 0x50]
inc rbx
cmp word [rax + rbx*2], r12w
jne 0x14001ea15
mov r8, rbx
lea rdx, [rsp + 0x50]
mov rcx, rbp
call fcn.140014b30
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 [0x1400ae540], 8
mov rbx, qword [0x1400ae538]
cmovae rbp, qword [0x1400ae528]
cmp rbx, 8
jae 0x14001ea76
movups xmm0, xmmword [rbp]
movups xmmword [rdi], xmm0
jmp 0x14001eab0
movabs rax, 0x7ffffffffffffffe
mov r15, rbx
or r15, 7
mov rcx, rdi
cmp r15, rax
cmova r15, rax
lea rdx, [r15 + 1]
call fcn.140014940
lea r8, [rbx*2 + 2]
mov qword [rdi], rax
mov rdx, rbp
mov rcx, rax
call fcn.140043700
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.14004df0c
int3
lea rcx, [0x1400b1790]
call fcn.14003fe08
cmp dword [0x1400b1790], 0xffffffff
jne 0x14001e848
lea rcx, [0x1400853c0]
call fcn.14003fb00
lea rcx, [0x1400b1790]
call fcn.14003fda8
jmp 0x14001e848