Function at 0x14000a310
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x28]
sub rsp, 0x120
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov rax, qword [0x14008d598]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov ecx, dword [0x1400a09f0]
mov rax, qword gs:[0x58]
mov edx, 4
mov rcx, qword [rax + rcx*8]
mov eax, dword [rdx + rcx]
cmp dword [0x1400900b8], eax
jg 0x14000a5ea
mov rax, qword [0x1400900a8]
cmp qword [0x1400900a0], rax
jne 0x14000a5c2
lea rax, [0x1400580a0]
mov qword [rsp + 0x50], rax
lea rax, str.FOLDERID_ProgramData
mov qword [rsp + 0x58], rax
lea rax, [0x140058050]
mov qword [rsp + 0x60], rax
lea rax, str.FOLDERID_ProgramFiles
mov qword [rsp + 0x68], rax
lea rax, [0x140058060]
mov qword [rsp + 0x70], rax
lea rax, str.FOLDERID_ProgramFilesX64
mov qword [rsp + 0x78], rax
lea rax, [0x140058090]
mov qword [rbp - 0x80], rax
lea rax, str.FOLDERID_ProgramFilesX86
mov qword [rbp - 0x78], rax
lea rax, [0x140058070]
mov qword [rbp - 0x70], rax
lea rax, str.FOLDERID_ProgramFilesCommon
mov qword [rbp - 0x68], rax
lea rax, [0x140058080]
mov qword [rbp - 0x60], rax
lea rax, str.FOLDERID_ProgramFilesCommonX64
mov qword [rbp - 0x58], rax
lea rax, [0x140058030]
mov qword [rbp - 0x50], rax
lea rax, str.FOLDERID_ProgramFilesCommonX86
mov qword [rbp - 0x48], rax
lea rax, [0x140057ff0]
mov qword [rbp - 0x40], rax
lea rax, str.FOLDERID_Public
mov qword [rbp - 0x38], rax
lea rax, [0x1400580b0]
mov qword [rbp - 0x30], rax
lea rax, str.FOLDERID_PublicDesktop
mov qword [rbp - 0x28], rax
lea rax, [0x140058000]
mov qword [rbp - 0x20], rax
lea rax, str.FOLDERID_PublicDocuments
mov qword [rbp - 0x18], rax
lea rax, [0x140058010]
mov qword [rbp - 0x10], rax
lea rax, str.FOLDERID_PublicDownloads
mov qword [rbp - 8], rax
lea rax, [0x140058040]
mov qword [rbp], rax
lea rax, str.FOLDERID_Windows
mov qword [rbp + 8], rax
lea rbx, [rsp + 0x50]
xor edi, edi
nop
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbx]
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x14000a5a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x14000a4c4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dl, 1
lea rcx, str.Got_known_folder
call fcn.14000e9c0
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], di
mov rdx, qword [rsp + 0x20]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x14000a4f1
lea rcx, [rsp + 0x30]
call fcn.140005ed0
nop
mov rdx, qword [0x1400900a8]
cmp qword [0x1400900b0], rdx
je 0x14000a53c
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rdx + 0x10], xmm1
mov edx, 7
mov word [rsp + 0x30], di
add qword [0x1400900a8], 0x20
jmp 0x14000a552
lea r8, [rsp + 0x30]
lea rcx, [0x1400900a0]
call fcn.14000a6e0
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x14000a58f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000a58a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000a620
call fcn.140028ef4
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rcx, str.Freed_mem
jmp 0x14000a5aa
lea rcx, str.Failed_to_get_known_folder_location.
mov dl, 1
call fcn.14000e9c0
add rbx, 0x10
lea rax, [rbp + 0x10]
cmp rbx, rax
jne 0x14000a490
lea rax, [0x1400900a0]
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.140028f90
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
lea rcx, [0x1400900b8]
call fcn.140029800
cmp dword [0x1400900b8], 0xffffffff
jne 0x14000a365
lea rcx, [0x140053cb0]
call fcn.140029364
lea rcx, [0x1400900b8]
call fcn.1400297a0
jmp 0x14000a365
call fcn.140033494
int3