Function at 0x140019690
Capabilities:
Get common file path

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2d0
mov rax, qword [0x14008d010]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
lea rcx, [rsp + 0x88]
call fcn.1400096b0
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 0x140019714
mov dword [rsp + 0x44], 0
lea rcx, [rsp + 0x88]
call fcn.1400094a0
mov eax, dword [rsp + 0x44]
jmp 0x14001996b
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 0x140019750
mov dword [rsp + 0x48], 0
lea rcx, [rsp + 0x88]
call fcn.1400094a0
mov eax, dword [rsp + 0x48]
jmp 0x14001996b
lea rcx, [rsp + 0xb0]
call fcn.140019460
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x140019786
mov dword [rsp + 0x4c], 0
lea rcx, [rsp + 0x88]
call fcn.1400094a0
mov eax, dword [rsp + 0x4c]
jmp 0x14001996b
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 0x14001994a
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 0x140019935
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 0x140019920
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 0x140019916
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 0x1400198f6
lea rdx, [rsp + 0x78]
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
je 0x1400198e1
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x88]
call fcn.14000d560
lea rdx, [0x14002f6c4]
lea rcx, [rsp + 0x88]
call fcn.14000d560
mov eax, dword [rsp + 0x2e8]
mov r8, qword [rsp + 0x78]
mov edx, eax
mov rcx, qword [rsp + 0x2e0]
call fcn.140015d00
test eax, eax
je 0x1400198df
mov dword [rsp + 0x30], 0
jmp 0x1400198e9
mov dword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400198fe
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 0x14001991e
mov dword [rsp + 0x30], 0
jmp 0x140019928
mov dword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14001993d
mov dword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140019952
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0x88]
call fcn.1400094a0
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.140020090
add rsp, 0x2d0
pop rdi
ret