Function at 0x140018b30
Capabilities:
Get common file path

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2d0
mov rax, qword [0x14003d040]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
lea rcx, [rsp + 0x88]
call fcn.140009660
nop
mov dword [rsp + 0x30], 1
lea rax, [rsp + 0xb0]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov edx, 0x104
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x140018bb4
mov dword [rsp + 0x44], 0
lea rcx, [rsp + 0x88]
call fcn.140009460
mov eax, dword [rsp + 0x44]
jmp 0x140018e0b
lea r8, str.explorer.exe
mov edx, 0x104
lea rcx, [rsp + 0xb0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
test eax, eax
je 0x140018bf0
mov dword [rsp + 0x48], 0
lea rcx, [rsp + 0x88]
call fcn.140009460
mov eax, dword [rsp + 0x48]
jmp 0x140018e0b
lea rcx, [rsp + 0xb0]
call fcn.140018900
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x140018c26
mov dword [rsp + 0x4c], 0
lea rcx, [rsp + 0x88]
call fcn.140009460
mov eax, dword [rsp + 0x4c]
jmp 0x140018e0b
mov r8d, dword [rsp + 0x40]
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x140018dea
mov qword [rsp + 0x70], 0
lea r8, [rsp + 0x70]
mov edx, 8
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140018dd5
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x80], 0
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, qword [rsp + 0x38]
mov edx, 1
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x140018dc0
mov eax, dword [rsp + 0x80]
mov qword [rsp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov qword [rsp + 0x68], rax
mov r8, qword [rsp + 0x60]
mov edx, 8
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x140018db6
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x80]
mov r8, qword [rsp + 0x38]
mov edx, 1
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140018d96
lea rdx, [rsp + 0x78]
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
je 0x140018d81
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x88]
call fcn.14000d650
lea rdx, [0x1400273f4]
lea rcx, [rsp + 0x88]
call fcn.14000d650
mov eax, dword [rsp + 0x2e8]
mov r8, qword [rsp + 0x78]
mov edx, eax
mov rcx, qword [rsp + 0x2e0]
call fcn.1400152a0
test eax, eax
je 0x140018d7f
mov dword [rsp + 0x30], 0
jmp 0x140018d89
mov dword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140018d9e
mov dword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x140018dbe
mov dword [rsp + 0x30], 0
jmp 0x140018dc8
mov dword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140018ddd
mov dword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140018df2
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x88]
call fcn.140009460
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.14001f370
add rsp, 0x2d0
pop rdi
ret