Function at 0x14000b608
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.1400087e0
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 0x14000b6a5
mov dword [rsp + 0x300], 0
lea rcx, [rsp + 0x38]
call fcn.140002884
mov eax, dword [rsp + 0x300]
jmp 0x14000b949
lea r8, [0x1400364b0]
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 0x14000b6e4
mov dword [rsp + 0x304], 0
lea rcx, [rsp + 0x38]
call fcn.140002884
mov eax, dword [rsp + 0x304]
jmp 0x14000b949
lea rcx, [rsp + 0x80]
call fcn.140012a2c
mov dword [rsp + 0x294], eax
cmp dword [rsp + 0x294], 0
jne 0x14000b723
mov dword [rsp + 0x308], 0
lea rcx, [rsp + 0x38]
call fcn.140002884
mov eax, dword [rsp + 0x308]
jmp 0x14000b949
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 0x14000b925
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 0x14000b90d
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 0x14000b8f5
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 0x14000b8eb
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 0x14000b8c8
lea rdx, [rsp + 0x2e8]
mov rax, qword [rsp + 0x2b8]
mov rcx, qword [rax]
call sub.ADVAPI32.dll_ConvertSidToStringSidW
test eax, eax
je 0x14000b8b0
mov rdx, qword [rsp + 0x2e8]
lea rcx, [rsp + 0x38]
call fcn.14000e644
lea rdx, [0x1400364cc]
lea rcx, [rsp + 0x38]
call fcn.14000e644
mov eax, dword [rsp + 0x338]
mov r8, qword [rsp + 0x2e8]
mov edx, eax
mov rcx, qword [rsp + 0x330]
call fcn.14000d8b0
test eax, eax
je 0x14000b8ae
mov dword [rsp + 0x64], 0
jmp 0x14000b8b8
mov dword [rsp + 0x64], 0
mov rcx, qword [rsp + 0x2e8]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x14000b8d0
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 0x14000b8f3
mov dword [rsp + 0x64], 0
jmp 0x14000b8fd
mov dword [rsp + 0x64], 0
mov rcx, qword [rsp + 0x2a8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000b915
mov dword [rsp + 0x64], 0
mov rcx, qword [rsp + 0x298]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000b92d
mov dword [rsp + 0x64], 0
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x30c], eax
lea rcx, [rsp + 0x38]
call fcn.140002884
mov eax, dword [rsp + 0x30c]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x140038b20]
call fcn.140015a64
mov rax, rdi
mov rcx, qword [rsp + 0x318]
xor rcx, rsp
call fcn.140015b70
add rsp, 0x320
pop rdi
ret