Function at 0x14000a280
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x78]
sub rsp, 0x160
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1401730f8]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov ebx, edx
mov rdi, rcx
mov qword [rsp + 0x50], rcx
xor esi, esi
mov dword [rsp + 0x24], esi
lea r14, [0x140102478]
mov qword [rbp - 0x50], r14
lea r15, [0x1401025f8]
mov qword [rbp - 0x10], r15
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 8], eax
mov qword [rbp - 0x38], rsi
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x30], 7
mov qword [rbp - 0x38], rsi
mov word [rbp - 0x48], si
mov qword [rbp - 0x28], rsi
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], rsi
mov rax, qword [rbp - 0x10]
movsxd rcx, dword [rax + 4]
mov ecx, dword [rbp + rcx - 0x10]
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
mov r8d, 0x104
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x50]
call fcn.140009620
cmp ebx, 1
jne 0x14000a431
mov byte [rax + 8], bl
mov rcx, qword [rax]
call fcn.140002ef0
mov edx, 0x104
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
sete bl
lea rcx, [rsp + 0x30]
call fcn.140009c60
test bl, bl
je 0x14000a3bf
lea rax, vtable.std::exception.0
mov qword [rsp + 0x60], rax
xor eax, eax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
lea rax, vtable.is::win32_exception.0
mov qword [rsp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x78], eax
mov qword [rbp - 0x80], rsi
mov byte [rbp - 0x78], sil
lea ecx, [rsi + 4]
call fcn.1400b3630
mov dword [rax], 1
mov qword [rbp - 0x70], rax
lea rdx, [0x14016fb70]
lea rcx, [rsp + 0x60]
call fcn.1400b5470
int3
lea rbx, [0x140102478]
mov qword [rbp], rbx
lea rsi, [0x1401025f8]
mov qword [rbp + 0x40], rsi
xor r9d, r9d
lea r8, [rsp + 0x20]
lea rdx, str.sysnative
lea rcx, [rbp]
call fcn.140003cb0
nop
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x60], rbx
mov qword [rbp - 0x60], rsi
xor r8d, r8d
lea rdx, [rbp]
lea rcx, [rsp + 0x60]
call fcn.140006eb0
nop
mov r8d, 0x5c
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x50]
call fcn.1400094d0
nop
lea rcx, [rbp]
jmp 0x14000a5be
cmp ebx, 2
jne 0x14000a535
mov byte [rax + 8], 1
mov rcx, qword [rax]
call fcn.140002ef0
mov edx, 0x104
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
sete bl
lea rcx, [rsp + 0x30]
call fcn.140009c60
test bl, bl
je 0x14000a4c3
lea rax, vtable.std::exception.0
mov qword [rsp + 0x60], rax
xor eax, eax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
lea rax, vtable.is::win32_exception.0
mov qword [rsp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x78], eax
mov qword [rbp - 0x80], rsi
mov byte [rbp - 0x78], 0
mov ecx, 4
call fcn.1400b3630
mov dword [rax], 1
mov qword [rbp - 0x70], rax
lea rdx, [0x14016fb70]
lea rcx, [rsp + 0x60]
call fcn.1400b5470
int3
lea rbx, [0x140102478]
mov qword [rsp + 0x60], rbx
lea rsi, [0x1401025f8]
mov qword [rbp - 0x60], rsi
xor r9d, r9d
lea r8, [rsp + 0x20]
lea rdx, str.syswow64
lea rcx, [rsp + 0x60]
call fcn.140003cb0
nop
lea rax, [rbp]
mov qword [rsp + 0x28], rax
mov qword [rbp], rbx
mov qword [rbp + 0x40], rsi
xor r8d, r8d
lea rdx, [rsp + 0x60]
lea rcx, [rbp]
call fcn.140006eb0
nop
mov r8d, 0x5c
lea rdx, [rbp]
lea rcx, [rbp - 0x50]
call fcn.1400094d0
nop
lea rcx, [rsp + 0x60]
jmp 0x14000a5be
mov byte [rax + 8], 1
mov rcx, qword [rax]
call fcn.140002ef0
mov edx, 0x104
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
sete bl
lea rcx, [rsp + 0x30]
call fcn.140009c60
test bl, bl
je 0x14000a5c3
lea rax, vtable.std::exception.0
mov qword [rsp + 0x60], rax
xor eax, eax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
lea rax, vtable.is::win32_exception.0
mov qword [rsp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x78], eax
mov qword [rbp - 0x80], rsi
mov byte [rbp - 0x78], 0
mov ecx, 4
call fcn.1400b3630
mov dword [rax], 1
mov qword [rbp - 0x70], rax
lea rdx, [0x14016fb70]
lea rcx, [rsp + 0x60]
call fcn.1400b5470
int3
call fcn.1400048d0
lea rdx, [0x140102600]
lea rcx, [rbp - 0x50]
call fcn.14000a190
mov qword [rdi], r14
mov qword [rdi + 0x40], r15
xor r8d, r8d
mov rdx, rax
mov rcx, rdi
call fcn.140006eb0
nop
mov dword [rsp + 0x24], 1
lea rcx, [rbp - 0x50]
call fcn.1400048d0
mov rax, rdi
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.1400b31f0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret