Function at 0x14001721c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x140036150]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor edi, edi
mov rbx, rdx
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x40], rdi
test rdx, rdx
je 0x140017251
mov word [rdx], di
lea r9, [rbp - 0x40]
lea r8, [rbp - 0x18]
call fcn.1400170fc
test eax, eax
js 0x140017280
movabs r10, 0xa3e5bf4030d1b870
mov rax, qword [rbp - 0x40]
mov rdx, rbx
mov ecx, 0x104
call qword [0x1400187f0]
jmp 0x140017294
mov rdx, rbx
mov ecx, 0x104
call qword [sym.imp.api_ms_win_core_file_l1_2_0.dll_GetTempPathW]
nop dword [rax + rax]
test eax, eax
jne 0x14001733a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jne 0x1400172b3
mov ebx, 0x36fd
jmp 0x1400172c6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x1400172c6
int3
mov dword [rbp - 0x28], 0x89
lea rax, str.onecore_basewcp_rtllibwin32libpathwin32_library.cpp
mov qword [rbp - 0x38], rax
lea rax, str.Windows::COM::GetTemporaryPath
mov qword [rbp - 0x30], rax
lea rax, [0x140033840]
mov qword [rbp - 0x20], rax
test ebx, ebx
jle 0x1400172fb
movzx ebx, bx
or ebx, 0x80070000
mov r8d, ebx
lea rcx, [rbp - 0x38]
call fcn.140017434
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x140017333
call qword [sym.imp.api_ms_win_core_libraryloader_l1_1_0.dll_FreeLibrary]
nop dword [rax + rax]
test eax, eax
jne 0x140017333
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ecx, 7
int 0x29
mov eax, ebx
jmp 0x14001740d
cmp eax, 0xffffffff
jne 0x1400173a9
lea rax, str.onecore_basewcp_rtllibwin32libpathwin32_library.cpp
mov dword [rbp - 0x28], 0x8d
mov qword [rbp - 0x38], rax
lea rcx, [rbp - 0x38]
lea rax, str.Windows::COM::GetTemporaryPath
mov r8d, 0x8007050c
mov qword [rbp - 0x30], rax
lea rax, str.static_cast_DWORD__1292L_
mov qword [rbp - 0x20], rax
call fcn.140017434
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x1400173a2
call qword [sym.imp.api_ms_win_core_libraryloader_l1_1_0.dll_FreeLibrary]
nop dword [rax + rax]
test eax, eax
jne 0x1400173a2
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ecx, 7
int 0x29
mov eax, 0x8007050c
jmp 0x14001740d
mov rcx, qword [rbp - 0x18]
cmp eax, 0x104
jbe 0x1400173e3
test rcx, rcx
je 0x1400173dc
call qword [sym.imp.api_ms_win_core_libraryloader_l1_1_0.dll_FreeLibrary]
nop dword [rax + rax]
test eax, eax
jne 0x1400173dc
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ecx, 7
int 0x29
mov eax, 0x8007007a
jmp 0x14001740d
test rcx, rcx
je 0x14001740b
call qword [sym.imp.api_ms_win_core_libraryloader_l1_1_0.dll_FreeLibrary]
nop dword [rax + rax]
test eax, eax
jne 0x14001740b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ecx, 7
int 0x29
xor eax, eax
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140001450
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret