Function at 0x140010d60
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.140004cd0
nop
mov eax, 2
imul rax, rax, 0
mov qword [rsp + 0x2e0], rax
cmp qword [rsp + 0x2e0], 0x208
jae 0x140010dd3
jmp 0x140010dd8
call fcn.1400bfd90
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 0x140010f5e
cmp qword [rsp + 0x2d0], 8
jg 0x140010f5e
cmp qword [rsp + 0x2d0], 1
jne 0x140010e3f
mov dword [rsp + 0x2ec], 5
jmp 0x140010f34
cmp qword [rsp + 0x2d0], 2
jne 0x140010e5a
mov dword [rsp + 0x2f0], 6
jmp 0x140010f26
cmp qword [rsp + 0x2d0], 3
jne 0x140010e75
mov dword [rsp + 0x2f4], SafeArrayLock
jmp 0x140010f18
cmp qword [rsp + 0x2d0], 4
jne 0x140010e8d
mov dword [rsp + 0x2f8], reloc.OLEAUT32.dll_SafeArrayLock
jmp 0x140010f0a
cmp qword [rsp + 0x2d0], 5
jne 0x140010ea5
mov dword [rsp + 0x2fc], reloc.OLEAUT32.dll_VariantChangeType
jmp 0x140010efc
cmp qword [rsp + 0x2d0], 6
jne 0x140010ebd
mov dword [rsp + 0x300], 2
jmp 0x140010eee
cmp qword [rsp + 0x2d0], 7
jne 0x140010ed5
mov dword [rsp + 0x304], 7
jmp 0x140010ee0
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 0x140011049
cmp qword [rsp + 0x2d0], 9
jne 0x140010faf
mov edx, 0x104
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jbe 0x140010f8e
mov qword [rsp + 0x308], 1
jmp 0x140010f9a
mov qword [rsp + 0x308], 0
mov rax, qword [rsp + 0x308]
mov qword [rsp + 0x2c8], rax
jmp 0x140011049
cmp qword [rsp + 0x2d0], 0xa
jne 0x140010ffd
mov edx, 0x104
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x140010fdf
mov qword [rsp + 0x310], 1
jmp 0x140010feb
mov qword [rsp + 0x310], 0
mov rax, qword [rsp + 0x310]
mov qword [rsp + 0x2c8], rax
jmp 0x140011049
cmp qword [rsp + 0x2d0], 0xb
jne 0x140011049
lea rdx, [rsp + 0xb0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jbe 0x14001102d
mov qword [rsp + 0x318], 1
jmp 0x140011039
mov qword [rsp + 0x318], 0
mov rax, qword [rsp + 0x318]
mov qword [rsp + 0x2c8], rax
cmp qword [rsp + 0x2c8], 0
je 0x140011070
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x30]
call fcn.140053db0
lea rcx, [rsp + 0x30]
call fcn.140011300
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x340]
call fcn.140004c80
mov eax, dword [rsp + 0x2e8]
or eax, 1
mov dword [rsp + 0x2e8], eax
lea rcx, [rsp + 0x30]
call fcn.140004db0
mov rax, qword [rsp + 0x340]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.1400bf880
mov rax, rdi
mov rcx, qword [rsp + 0x320]
xor rcx, rsp
call fcn.1400bfb70
add rsp, 0x330
pop rdi
ret