Function at 0x14000aa40
Capabilities:
Get common file path

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x320
mov rdi, rsp
mov ecx, 0xc8
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x330]
mov rax, qword [0x140056008]
xor rax, rsp
mov qword [rsp + 0x318], rax
lea rcx, [rsp + 0x38]
call fcn.1400078c4
nop
mov dword [rsp + 0x64], 1
lea rax, [rsp + 0x80]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov edx, 0x104
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x14000aadb
mov dword [rsp + 0x300], 0
lea rcx, [rsp + 0x38]
call fcn.1400021bc
mov eax, dword [rsp + 0x300]
jmp 0x14000ad7f
lea r8, [0x140034040]
mov edx, 0x104
lea rcx, [rsp + 0x80]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
test eax, eax
je 0x14000ab1a
mov dword [rsp + 0x304], 0
lea rcx, [rsp + 0x38]
call fcn.1400021bc
mov eax, dword [rsp + 0x304]
jmp 0x14000ad7f
lea rcx, [rsp + 0x80]
call fcn.140012278
mov dword [rsp + 0x294], eax
cmp dword [rsp + 0x294], 0
jne 0x14000ab59
mov dword [rsp + 0x308], 0
lea rcx, [rsp + 0x38]
call fcn.1400021bc
mov eax, dword [rsp + 0x308]
jmp 0x14000ad7f
mov r8d, dword [rsp + 0x294]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x298], rax
cmp qword [rsp + 0x298], 0
je 0x14000ad5b
mov qword [rsp + 0x2a8], 0
lea r8, [rsp + 0x2a8]
mov edx, 8
mov rcx, qword [rsp + 0x298]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14000ad43
mov qword [rsp + 0x2b8], 0
mov dword [rsp + 0x2c4], 0
lea rax, [rsp + 0x2c4]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, qword [rsp + 0x2b8]
mov edx, 1
mov rcx, qword [rsp + 0x2a8]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x14000ad2b
mov eax, dword [rsp + 0x2c4]
mov qword [rsp + 0x310], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, qword [rsp + 0x310]
mov r8, rcx
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x2b8], rax
cmp qword [rsp + 0x2b8], 0
je 0x14000ad21
lea rax, [rsp + 0x2c4]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x2c4]
mov r8, qword [rsp + 0x2b8]
mov edx, 1
mov rcx, qword [rsp + 0x2a8]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x14000acfe
lea rdx, [rsp + 0x2e8]
mov rax, qword [rsp + 0x2b8]
mov rcx, qword [rax]
call sub.ADVAPI32.dll_ConvertSidToStringSidW
test eax, eax
je 0x14000ace6
mov rdx, qword [rsp + 0x2e8]
lea rcx, [rsp + 0x38]
call fcn.14000dd4c
lea rdx, [0x14003405c]
lea rcx, [rsp + 0x38]
call fcn.14000dd4c
mov eax, dword [rsp + 0x338]
mov r8, qword [rsp + 0x2e8]
mov edx, eax
mov rcx, qword [rsp + 0x330]
call fcn.14000ce94
test eax, eax
je 0x14000ace4
mov dword [rsp + 0x64], 0
jmp 0x14000acee
mov dword [rsp + 0x64], 0
mov rcx, qword [rsp + 0x2e8]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14000ad06
mov dword [rsp + 0x64], 0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x2b8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x14000ad29
mov dword [rsp + 0x64], 0
jmp 0x14000ad33
mov dword [rsp + 0x64], 0
mov rcx, qword [rsp + 0x2a8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000ad4b
mov dword [rsp + 0x64], 0
mov rcx, qword [rsp + 0x298]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000ad63
mov dword [rsp + 0x64], 0
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x30c], eax
lea rcx, [rsp + 0x38]
call fcn.1400021bc
mov eax, dword [rsp + 0x30c]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x140036700]
call fcn.140015370
mov rax, rdi
mov rcx, qword [rsp + 0x318]
xor rcx, rsp
call fcn.140015470
add rsp, 0x320
pop rdi
ret