Function at 0x140010720
Capabilities:
Get common file path

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x330
lea rdi, [rsp + 0x20]
mov ecx, 0xc4
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x340]
mov rax, qword [0x1402558e8]
xor rax, rsp
mov qword [rsp + 0x320], rax
mov dword [rsp + 0x2e8], 0
lea rcx, [rsp + 0x30]
call fcn.140006a00
nop
mov eax, 2
imul rax, rax, 0
mov qword [rsp + 0x2e0], rax
cmp qword [rsp + 0x2e0], 0x208
jae 0x140010793
jmp 0x140010798
call fcn.1400c00f0
xor eax, eax
mov rcx, qword [rsp + 0x2e0]
mov word [rsp + rcx + 0xb0], ax
mov qword [rsp + 0x2c8], 0
movsxd rax, dword [rsp + 0x348]
mov qword [rsp + 0x2d0], rax
cmp qword [rsp + 0x2d0], 1
jl 0x14001091e
cmp qword [rsp + 0x2d0], 8
jg 0x14001091e
cmp qword [rsp + 0x2d0], 1
jne 0x1400107ff
mov dword [rsp + 0x2ec], 5
jmp 0x1400108f4
cmp qword [rsp + 0x2d0], 2
jne 0x14001081a
mov dword [rsp + 0x2f0], 6
jmp 0x1400108e6
cmp qword [rsp + 0x2d0], 3
jne 0x140010835
mov dword [rsp + 0x2f4], SafeArrayLock
jmp 0x1400108d8
cmp qword [rsp + 0x2d0], 4
jne 0x14001084d
mov dword [rsp + 0x2f8], reloc.OLEAUT32.dll_SafeArrayLock
jmp 0x1400108ca
cmp qword [rsp + 0x2d0], 5
jne 0x140010865
mov dword [rsp + 0x2fc], reloc.OLEAUT32.dll_VariantChangeType
jmp 0x1400108bc
cmp qword [rsp + 0x2d0], 6
jne 0x14001087d
mov dword [rsp + 0x300], 2
jmp 0x1400108ae
cmp qword [rsp + 0x2d0], 7
jne 0x140010895
mov dword [rsp + 0x304], 7
jmp 0x1400108a0
mov dword [rsp + 0x304], SafeArrayAllocDescriptor
mov eax, dword [rsp + 0x304]
mov dword [rsp + 0x300], eax
mov eax, dword [rsp + 0x300]
mov dword [rsp + 0x2fc], eax
mov eax, dword [rsp + 0x2fc]
mov dword [rsp + 0x2f8], eax
mov eax, dword [rsp + 0x2f8]
mov dword [rsp + 0x2f4], eax
mov eax, dword [rsp + 0x2f4]
mov dword [rsp + 0x2f0], eax
mov eax, dword [rsp + 0x2f0]
mov dword [rsp + 0x2ec], eax
xor r9d, r9d
mov r8d, dword [rsp + 0x2ec]
lea rdx, [rsp + 0xb0]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cdqe
mov qword [rsp + 0x2c8], rax
jmp 0x140010a09
cmp qword [rsp + 0x2d0], 9
jne 0x14001096f
mov edx, 0x104
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jbe 0x14001094e
mov qword [rsp + 0x308], 1
jmp 0x14001095a
mov qword [rsp + 0x308], 0
mov rax, qword [rsp + 0x308]
mov qword [rsp + 0x2c8], rax
jmp 0x140010a09
cmp qword [rsp + 0x2d0], 0xa
jne 0x1400109bd
mov edx, 0x104
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x14001099f
mov qword [rsp + 0x310], 1
jmp 0x1400109ab
mov qword [rsp + 0x310], 0
mov rax, qword [rsp + 0x310]
mov qword [rsp + 0x2c8], rax
jmp 0x140010a09
cmp qword [rsp + 0x2d0], 0xb
jne 0x140010a09
lea rdx, [rsp + 0xb0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jbe 0x1400109ed
mov qword [rsp + 0x318], 1
jmp 0x1400109f9
mov qword [rsp + 0x318], 0
mov rax, qword [rsp + 0x318]
mov qword [rsp + 0x2c8], rax
cmp qword [rsp + 0x2c8], 0
je 0x140010a30
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x30]
call fcn.140054100
lea rcx, [rsp + 0x30]
call fcn.140010cc0
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x340]
call fcn.140006960
mov eax, dword [rsp + 0x2e8]
or eax, 1
mov dword [rsp + 0x2e8], eax
lea rcx, [rsp + 0x30]
call fcn.140006c20
mov rax, qword [rsp + 0x340]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.1400bfbe0
mov rax, rdi
mov rcx, qword [rsp + 0x320]
xor rcx, rsp
call fcn.1400bfed0
add rsp, 0x330
pop rdi
ret