Function at 0x140001b00
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x140013010]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov r14, rcx
xor esi, esi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], si
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
mov edx, 0x104
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x140001dbf
lea r8, [0x14000b968]
mov edx, 0x104
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
test eax, eax
jne 0x140001dbf
lea rcx, [rsp + 0x70]
call fcn.140001850
test eax, eax
je 0x140001dbf
mov r8d, eax
xor edx, edx
mov r15d, 0x400
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r13, rax
test rax, rax
je 0x140001dbf
mov qword [rsp + 0x38], rsi
lea r8, [rsp + 0x38]
lea edx, [rsi + 8]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140001db5
mov dword [rsp + 0x30], esi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 1]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x140001daa
mov ebx, dword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8d, ebx
lea edx, [rsi + 8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r12, rax
test rax, rax
je 0x140001daa
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x30]
mov r8, r12
lea edx, [rsi + 1]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x140001d96
lea rdx, [rsp + 0x40]
mov rcx, qword [r12]
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
je 0x140001d88
mov r9, qword [rsp + 0x40]
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [r9 + rdx*2], 0
jne 0x140001c83
mov rcx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x60]
mov rax, r8
sub rax, rcx
cmp rdx, rax
ja 0x140001cd1
lea rdi, [rcx + rdx]
mov qword [rsp + 0x58], rdi
lea rbx, [rsp + 0x48]
cmp r8, 8
cmovae rbx, qword [rsp + 0x48]
lea rcx, [rbx + rcx*2]
lea r8, [rdx + rdx]
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2], si
jmp 0x140001ce0
mov qword [rsp + 0x20], rdx
lea rcx, [rsp + 0x48]
call fcn.1400056c0
mov rdx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x60]
mov rax, r8
sub rax, rdx
cmp rax, 1
jb 0x140001d1f
lea rcx, [rdx + 1]
mov qword [rsp + 0x58], rcx
lea rax, [rsp + 0x48]
cmp r8, 8
cmovae rax, qword [rsp + 0x48]
mov r8d, 0x5c
mov word [rax + rdx*2], r8w
mov word [rax + rcx*2], si
jmp 0x140001d3e
mov qword [rsp + 0x20], 1
lea r9, [0x14000b8cc]
mov edx, 1
lea rcx, [rsp + 0x48]
call fcn.1400056c0
mov rdx, qword [rsp + 0x40]
mov rcx, rdx
sub rcx, r14
nop dword [rax]
lea rax, [r15 + 0x7ffffbfe]
test rax, rax
je 0x140001d74
movzx eax, word [rcx + r14]
test ax, ax
je 0x140001d74
mov word [r14], ax
add r14, 2
sub r15, 1
jne 0x140001d50
lea rax, [r14 - 2]
test r15, r15
cmovne rax, r14
mov word [rax], si
setne sil
jmp 0x140001d8d
mov rdx, qword [rsp + 0x40]
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_LocalFree]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, r12
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x140001e04
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001dff
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001dff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140009914
mov eax, esi
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.1400098f0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret