Function at 0x1400113a0
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 0x140011413
jmp 0x140011418
call fcn.1400c07f0
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 0x14001159e
cmp qword [rsp + 0x2d0], 8
jg 0x14001159e
cmp qword [rsp + 0x2d0], 1
jne 0x14001147f
mov dword [rsp + 0x2ec], 5
jmp 0x140011574
cmp qword [rsp + 0x2d0], 2
jne 0x14001149a
mov dword [rsp + 0x2f0], 6
jmp 0x140011566
cmp qword [rsp + 0x2d0], 3
jne 0x1400114b5
mov dword [rsp + 0x2f4], SafeArrayLock
jmp 0x140011558
cmp qword [rsp + 0x2d0], 4
jne 0x1400114cd
mov dword [rsp + 0x2f8], reloc.OLEAUT32.dll_SafeArrayLock
jmp 0x14001154a
cmp qword [rsp + 0x2d0], 5
jne 0x1400114e5
mov dword [rsp + 0x2fc], reloc.OLEAUT32.dll_VariantChangeType
jmp 0x14001153c
cmp qword [rsp + 0x2d0], 6
jne 0x1400114fd
mov dword [rsp + 0x300], 2
jmp 0x14001152e
cmp qword [rsp + 0x2d0], 7
jne 0x140011515
mov dword [rsp + 0x304], 7
jmp 0x140011520
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 0x140011689
cmp qword [rsp + 0x2d0], 9
jne 0x1400115ef
mov edx, 0x104
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jbe 0x1400115ce
mov qword [rsp + 0x308], 1
jmp 0x1400115da
mov qword [rsp + 0x308], 0
mov rax, qword [rsp + 0x308]
mov qword [rsp + 0x2c8], rax
jmp 0x140011689
cmp qword [rsp + 0x2d0], 0xa
jne 0x14001163d
mov edx, 0x104
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x14001161f
mov qword [rsp + 0x310], 1
jmp 0x14001162b
mov qword [rsp + 0x310], 0
mov rax, qword [rsp + 0x310]
mov qword [rsp + 0x2c8], rax
jmp 0x140011689
cmp qword [rsp + 0x2d0], 0xb
jne 0x140011689
lea rdx, [rsp + 0xb0]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jbe 0x14001166d
mov qword [rsp + 0x318], 1
jmp 0x140011679
mov qword [rsp + 0x318], 0
mov rax, qword [rsp + 0x318]
mov qword [rsp + 0x2c8], rax
cmp qword [rsp + 0x2c8], 0
je 0x1400116b0
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x30]
call fcn.140054800
lea rcx, [rsp + 0x30]
call fcn.140011940
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.1400c02e0
mov rax, rdi
mov rcx, qword [rsp + 0x320]
xor rcx, rsp
call fcn.1400c05d0
add rsp, 0x330
pop rdi
ret