Function at 0x14000a128
Capabilities:
Get common file path

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x320
lea rdi, [rsp + 0x30]
mov ecx, 0xbc
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x330]
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x318], rax
lea rcx, [rsp + 0x38]
call fcn.1400072fc
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 0x14000a1c5
mov dword [rsp + 0x300], 0
lea rcx, [rsp + 0x38]
call fcn.1400020e0
mov eax, dword [rsp + 0x300]
jmp 0x14000a469
lea r8, [0x1400344f0]
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 0x14000a204
mov dword [rsp + 0x304], 0
lea rcx, [rsp + 0x38]
call fcn.1400020e0
mov eax, dword [rsp + 0x304]
jmp 0x14000a469
lea rcx, [rsp + 0x80]
call fcn.1400115cc
mov dword [rsp + 0x294], eax
cmp dword [rsp + 0x294], 0
jne 0x14000a243
mov dword [rsp + 0x308], 0
lea rcx, [rsp + 0x38]
call fcn.1400020e0
mov eax, dword [rsp + 0x308]
jmp 0x14000a469
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 0x14000a445
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 0x14000a42d
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 0x14000a415
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 0x14000a40b
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 0x14000a3e8
lea rdx, [rsp + 0x2e8]
mov rax, qword [rsp + 0x2b8]
mov rcx, qword [rax]
call sub.ADVAPI32.dll_ConvertSidToStringSidW
test eax, eax
je 0x14000a3d0
mov rdx, qword [rsp + 0x2e8]
lea rcx, [rsp + 0x38]
call fcn.14000d1c4
lea rdx, [0x14003450c]
lea rcx, [rsp + 0x38]
call fcn.14000d1c4
mov eax, dword [rsp + 0x338]
mov r8, qword [rsp + 0x2e8]
mov edx, eax
mov rcx, qword [rsp + 0x330]
call fcn.14000c3d0
test eax, eax
je 0x14000a3ce
mov dword [rsp + 0x64], 0
jmp 0x14000a3d8
mov dword [rsp + 0x64], 0
mov rcx, qword [rsp + 0x2e8]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14000a3f0
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 0x14000a413
mov dword [rsp + 0x64], 0
jmp 0x14000a41d
mov dword [rsp + 0x64], 0
mov rcx, qword [rsp + 0x2a8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000a435
mov dword [rsp + 0x64], 0
mov rcx, qword [rsp + 0x298]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000a44d
mov dword [rsp + 0x64], 0
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x30c], eax
lea rcx, [rsp + 0x38]
call fcn.1400020e0
mov eax, dword [rsp + 0x30c]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x140036b60]
call fcn.140014604
mov rax, rdi
mov rcx, qword [rsp + 0x318]
xor rcx, rsp
call fcn.140014710
add rsp, 0x320
pop rdi
ret