Function at 0x14002bf90
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x268]
sub rsp, 0x360
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14016ca00]
xor rax, rsp
mov qword [rbp + 0x250], rax
mov rdi, rcx
mov qword [rsp + 0x40], rcx
xor esi, esi
mov qword [rcx], rsi
lea rbx, [rcx + 8]
mov qword [rbx], rsi
mov qword [rbx + 8], rsi
mov dword [rbx + 0x34], esi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov r8, rbx
lea edx, [rsi + 0x28]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
nop
mov eax, dword [rbx + 0xc]
lea r8, [rax + 2]
lea r8, [rax + r8*2]
lea r8, [rbx + r8*4]
lea rdx, str.SeBackupPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x14002c030
mov eax, dword [rbx + 0xc]
add rax, 2
lea rax, [rax + rax*2]
mov dword [rbx + rax*4], 2
inc dword [rbx + 0xc]
mov eax, dword [rbx + 0xc]
lea r8, [rax + 2]
lea r8, [rax + r8*2]
lea r8, [rbx + r8*4]
lea rdx, str.SeRestorePrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x14002c067
mov eax, dword [rbx + 0xc]
add rax, 2
lea rax, [rax + rax*2]
mov dword [rbx + rax*4], 2
inc dword [rbx + 0xc]
lea r8, [rbx + 0xc]
cmp dword [r8], 2
jne 0x14002c2d1
lea rdx, [rbx + 8]
mov dword [rdx], 0x28
lea rax, [rbx + 0x34]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rax
xor edx, edx
lea r9d, [rdx + 0x28]
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
cmp eax, 1
jne 0x14002c2d1
mov word [rbp + 0x40], si
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x42]
call fcn.1400c2130
mov dword [rsp + 0x30], 0x104
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x40]
call qword [sym.imp.USERENV.dll_GetDefaultUserProfileDirectoryW]
test eax, eax
je 0x14002c2d1
mov qword [rbp - 0x30], 7
mov qword [rbp - 0x38], rsi
mov word [rbp - 0x48], si
mov r8d, 0x17
lea rdx, str.Keyboard_LayoutPreload
lea rcx, [rbp - 0x48]
call fcn.140006900
nop
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], rsi
mov word [rbp - 0x68], si
mov r8d, 0x15
lea rdx, str.DefaultUserProfileKey
lea rcx, [rbp - 0x68]
call fcn.140006900
nop
lea r8, [0x1400f6034]
lea rdx, [rbp - 0x68]
lea rcx, [rbp - 8]
call fcn.14000b590
nop
lea r8, [rbp - 0x48]
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.14000d0f0
nop
cmp qword [rbp + 0x10], 8
jb 0x14002c15e
mov rcx, qword [rbp - 8]
call fcn.1400bd20c
mov qword [rbp + 0x10], 7
mov qword [rbp + 8], rsi
mov word [rbp - 8], si
cmp qword [rbp - 0x50], 8
jb 0x14002c17e
mov rcx, qword [rbp - 0x68]
call fcn.1400bd20c
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], rsi
mov word [rbp - 0x68], si
mov qword [rbp - 0x10], 7
mov qword [rbp - 0x18], rsi
mov word [rbp - 0x28], si
cmp word [rbp + 0x40], 0
jne 0x14002c1aa
mov r8, rsi
jmp 0x14002c1bd
lea rax, [rbp + 0x40]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x14002c1b2
lea rdx, [rbp + 0x40]
lea rcx, [rbp - 0x28]
call fcn.140006900
nop
lea r8, [0x1400f6034]
lea rdx, [rbp - 0x28]
lea rcx, [rbp + 0x18]
call fcn.14000b590
nop
lea r8, str.NTUSER.DAT
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.14000b590
nop
cmp qword [rbp + 0x30], 8
jb 0x14002c205
mov rcx, qword [rbp + 0x18]
call fcn.1400bd20c
mov qword [rbp + 0x30], 7
mov qword [rbp + 0x28], rsi
mov word [rbp + 0x18], si
cmp qword [rbp - 0x10], 8
jb 0x14002c225
mov rcx, qword [rbp - 0x28]
call fcn.1400bd20c
lea r8, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae r8, qword [rsp + 0x58]
lea rdx, str.DefaultUserProfileKey
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
test eax, eax
jne 0x14002c279
lea rdx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rdx, qword [rsp + 0x78]
mov qword [rsp + 0x20], rdi
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp qword [rsp + 0x70], 8
jb 0x14002c28b
mov rcx, qword [rsp + 0x58]
call fcn.1400bd20c
mov word [rsp + 0x58], si
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], 7
cmp qword [rbp - 0x70], 8
jb 0x14002c2af
mov rcx, qword [rsp + 0x78]
call fcn.1400bd20c
mov word [rsp + 0x78], si
mov qword [rbp - 0x78], rsi
mov qword [rbp - 0x70], 7
cmp qword [rbp - 0x30], 8
jb 0x14002c2d1
mov rcx, qword [rbp - 0x48]
call fcn.1400bd20c
nop
mov rax, rdi
mov rcx, qword [rbp + 0x250]
xor rcx, rsp
call fcn.1400bcae0
lea r11, [rsp + 0x360]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret