Function at 0x1400094d0
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 [0x14004c008]
xor rax, rsp
mov qword [rsp + 0x318], rax
lea rcx, [rsp + 0x38]
call fcn.14000629c
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 0x14000956b
mov dword [rsp + 0x300], 0
lea rcx, [rsp + 0x38]
call fcn.1400068b0
mov eax, dword [rsp + 0x300]
jmp 0x14000980f
lea r8, [0x14002d040]
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 0x1400095aa
mov dword [rsp + 0x304], 0
lea rcx, [rsp + 0x38]
call fcn.1400068b0
mov eax, dword [rsp + 0x304]
jmp 0x14000980f
lea rcx, [rsp + 0x80]
call fcn.140011330
mov dword [rsp + 0x294], eax
cmp dword [rsp + 0x294], 0
jne 0x1400095e9
mov dword [rsp + 0x308], 0
lea rcx, [rsp + 0x38]
call fcn.1400068b0
mov eax, dword [rsp + 0x308]
jmp 0x14000980f
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 0x1400097eb
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 0x1400097d3
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 0x1400097bb
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 0x1400097b1
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 0x14000978e
lea rdx, [rsp + 0x2e8]
mov rax, qword [rsp + 0x2b8]
mov rcx, qword [rax]
call sub.ADVAPI32.dll_ConvertSidToStringSidW
test eax, eax
je 0x140009776
mov rdx, qword [rsp + 0x2e8]
lea rcx, [rsp + 0x38]
call fcn.14000caf8
lea rdx, [0x14002d05c]
lea rcx, [rsp + 0x38]
call fcn.14000caf8
mov eax, dword [rsp + 0x338]
mov r8, qword [rsp + 0x2e8]
mov edx, eax
mov rcx, qword [rsp + 0x330]
call fcn.14000b924
test eax, eax
je 0x140009774
mov dword [rsp + 0x64], 0
jmp 0x14000977e
mov dword [rsp + 0x64], 0
mov rcx, qword [rsp + 0x2e8]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140009796
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 0x1400097b9
mov dword [rsp + 0x64], 0
jmp 0x1400097c3
mov dword [rsp + 0x64], 0
mov rcx, qword [rsp + 0x2a8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400097db
mov dword [rsp + 0x64], 0
mov rcx, qword [rsp + 0x298]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400097f3
mov dword [rsp + 0x64], 0
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x30c], eax
lea rcx, [rsp + 0x38]
call fcn.1400068b0
mov eax, dword [rsp + 0x30c]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x14002f0c0]
call fcn.140013450
mov rax, rdi
mov rcx, qword [rsp + 0x318]
xor rcx, rsp
call fcn.140013550
add rsp, 0x320
pop rdi
ret