Function at 0x140010630
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 [0x1402548e8]
xor rax, rsp
mov qword [rsp + 0x320], rax
mov dword [rsp + 0x2e8], 0
lea rcx, [rsp + 0x30]
call fcn.140006910
nop
mov eax, 2
imul rax, rax, 0
mov qword [rsp + 0x2e0], rax
cmp qword [rsp + 0x2e0], 0x208
jae 0x1400106a3
jmp 0x1400106a8
call fcn.1400bfc70
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 0x14001082e
cmp qword [rsp + 0x2d0], 8
jg 0x14001082e
cmp qword [rsp + 0x2d0], 1
jne 0x14001070f
mov dword [rsp + 0x2ec], 5
jmp 0x140010804
cmp qword [rsp + 0x2d0], 2
jne 0x14001072a
mov dword [rsp + 0x2f0], 6
jmp 0x1400107f6
cmp qword [rsp + 0x2d0], 3
jne 0x140010745
mov dword [rsp + 0x2f4], SafeArrayLock
jmp 0x1400107e8
cmp qword [rsp + 0x2d0], 4
jne 0x14001075d
mov dword [rsp + 0x2f8], reloc.OLEAUT32.dll_SafeArrayLock
jmp 0x1400107da
cmp qword [rsp + 0x2d0], 5
jne 0x140010775
mov dword [rsp + 0x2fc], reloc.OLEAUT32.dll_VariantChangeType
jmp 0x1400107cc
cmp qword [rsp + 0x2d0], 6
jne 0x14001078d
mov dword [rsp + 0x300], 2
jmp 0x1400107be
cmp qword [rsp + 0x2d0], 7
jne 0x1400107a5
mov dword [rsp + 0x304], 7
jmp 0x1400107b0
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 0x140010919
cmp qword [rsp + 0x2d0], 9
jne 0x14001087f
mov edx, 0x104
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jbe 0x14001085e
mov qword [rsp + 0x308], 1
jmp 0x14001086a
mov qword [rsp + 0x308], 0
mov rax, qword [rsp + 0x308]
mov qword [rsp + 0x2c8], rax
jmp 0x140010919
cmp qword [rsp + 0x2d0], 0xa
jne 0x1400108cd
mov edx, 0x104
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x1400108af
mov qword [rsp + 0x310], 1
jmp 0x1400108bb
mov qword [rsp + 0x310], 0
mov rax, qword [rsp + 0x310]
mov qword [rsp + 0x2c8], rax
jmp 0x140010919
cmp qword [rsp + 0x2d0], 0xb
jne 0x140010919
lea rdx, [rsp + 0xb0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jbe 0x1400108fd
mov qword [rsp + 0x318], 1
jmp 0x140010909
mov qword [rsp + 0x318], 0
mov rax, qword [rsp + 0x318]
mov qword [rsp + 0x2c8], rax
cmp qword [rsp + 0x2c8], 0
je 0x140010940
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x30]
call fcn.140053c90
lea rcx, [rsp + 0x30]
call fcn.140010bd0
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x340]
call fcn.140006870
mov eax, dword [rsp + 0x2e8]
or eax, 1
mov dword [rsp + 0x2e8], eax
lea rcx, [rsp + 0x30]
call fcn.140006b30
mov rax, qword [rsp + 0x340]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.1400bf760
mov rax, rdi
mov rcx, qword [rsp + 0x320]
xor rcx, rsp
call fcn.1400bfa50
add rsp, 0x330
pop rdi
ret