Function at 0x140010e50
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 0x140010ec3
jmp 0x140010ec8
call fcn.1400c02a0
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 0x14001104e
cmp qword [rsp + 0x2d0], 8
jg 0x14001104e
cmp qword [rsp + 0x2d0], 1
jne 0x140010f2f
mov dword [rsp + 0x2ec], 5
jmp 0x140011024
cmp qword [rsp + 0x2d0], 2
jne 0x140010f4a
mov dword [rsp + 0x2f0], 6
jmp 0x140011016
cmp qword [rsp + 0x2d0], 3
jne 0x140010f65
mov dword [rsp + 0x2f4], SafeArrayLock
jmp 0x140011008
cmp qword [rsp + 0x2d0], 4
jne 0x140010f7d
mov dword [rsp + 0x2f8], reloc.OLEAUT32.dll_SafeArrayLock
jmp 0x140010ffa
cmp qword [rsp + 0x2d0], 5
jne 0x140010f95
mov dword [rsp + 0x2fc], reloc.OLEAUT32.dll_VariantChangeType
jmp 0x140010fec
cmp qword [rsp + 0x2d0], 6
jne 0x140010fad
mov dword [rsp + 0x300], 2
jmp 0x140010fde
cmp qword [rsp + 0x2d0], 7
jne 0x140010fc5
mov dword [rsp + 0x304], 7
jmp 0x140010fd0
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 0x140011139
cmp qword [rsp + 0x2d0], 9
jne 0x14001109f
mov edx, 0x104
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jbe 0x14001107e
mov qword [rsp + 0x308], 1
jmp 0x14001108a
mov qword [rsp + 0x308], 0
mov rax, qword [rsp + 0x308]
mov qword [rsp + 0x2c8], rax
jmp 0x140011139
cmp qword [rsp + 0x2d0], 0xa
jne 0x1400110ed
mov edx, 0x104
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x1400110cf
mov qword [rsp + 0x310], 1
jmp 0x1400110db
mov qword [rsp + 0x310], 0
mov rax, qword [rsp + 0x310]
mov qword [rsp + 0x2c8], rax
jmp 0x140011139
cmp qword [rsp + 0x2d0], 0xb
jne 0x140011139
lea rdx, [rsp + 0xb0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jbe 0x14001111d
mov qword [rsp + 0x318], 1
jmp 0x140011129
mov qword [rsp + 0x318], 0
mov rax, qword [rsp + 0x318]
mov qword [rsp + 0x2c8], rax
cmp qword [rsp + 0x2c8], 0
je 0x140011160
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x30]
call fcn.1400542b0
lea rcx, [rsp + 0x30]
call fcn.1400113f0
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.1400bfd90
mov rax, rdi
mov rcx, qword [rsp + 0x320]
xor rcx, rsp
call fcn.1400c0080
add rsp, 0x330
pop rdi
ret