Function at 0x14001e910
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 [0x1400b29a0]
mov ecx, 4
mov rdx, qword [rax + rdx*8]
mov eax, dword [rcx + rdx]
cmp dword [0x1400b2790], eax
jg 0x14001ebd7
xor r12d, r12d
mov qword [rsp + 0x290], rbx
cmp qword [0x1400af538], r12
lea rbp, [0x1400af528]
lea r15d, [r12 + 7]
jne 0x14001eb48
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 0x14001e9a0
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.140014c30
mov rdx, qword [0x1400af540]
cmp rdx, 8
jb 0x14001e9ff
mov rcx, qword [0x1400af528]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14001e9fa
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001ebd1
mov rcx, r8
call fcn.14003f840
movups xmm0, xmmword [rsp + 0x30]
lea rcx, str.Shell32.dll
mov qword [rsp + 0x2a0], rsi
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [0x1400af528], xmm0
movups xmmword [0x1400af538], xmm1
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14001eb40
lea rdx, str.SHGetKnownFolderPath
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001eab4
lea r9, [rsp + 0x298]
mov qword [rsp + 0x298], r12
xor r8d, r8d
lea rcx, [0x14008de68]
xor edx, edx
call rax
mov rcx, qword [rsp + 0x298]
test eax, eax
js 0x14001eaa0
cmp word [rcx], r12w
je 0x14001eaa0
nop dword [rax]
inc rbx
cmp word [rcx + rbx*2], r12w
jne 0x14001ea80
mov rdx, rcx
mov r8, rbx
mov rcx, rbp
call fcn.140014c30
mov rcx, qword [rsp + 0x298]
test rcx, rcx
je 0x14001eb37
call qword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x14001eb37
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 0x14001eb2f
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x20a
call fcn.140043980
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 0x14001eb2f
cmp eax, 1
je 0x14001eb2f
cmp word [rsp + 0x50], r12w
je 0x14001eb2f
lea rax, [rsp + 0x50]
inc rbx
cmp word [rax + rbx*2], r12w
jne 0x14001eb15
mov r8, rbx
lea rdx, [rsp + 0x50]
mov rcx, rbp
call fcn.140014c30
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 [0x1400af540], 8
mov rbx, qword [0x1400af538]
cmovae rbp, qword [0x1400af528]
cmp rbx, 8
jae 0x14001eb76
movups xmm0, xmmword [rbp]
movups xmmword [rdi], xmm0
jmp 0x14001ebb0
movabs rax, 0x7ffffffffffffffe
mov r15, rbx
or r15, 7
mov rcx, rdi
cmp r15, rax
cmova r15, rax
lea rdx, [r15 + 1]
call fcn.140014a40
lea r8, [rbx*2 + 2]
mov qword [rdi], rax
mov rdx, rbp
mov rcx, rax
call fcn.140043570
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.14004dd7c
int3
lea rcx, [0x1400b2790]
call fcn.14003fd88
cmp dword [0x1400b2790], 0xffffffff
jne 0x14001e948
lea rcx, [0x140085260]
call fcn.14003fa80
lea rcx, [0x1400b2790]
call fcn.14003fd28
jmp 0x14001e948