Function at 0x1400050a0
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x1c8]
sub rsp, 0x2c0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14005a138]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
call fcn.140014120
xor edi, edi
lea rsi, [0x140041130]
test al, al
je 0x140005320
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140047c70]
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jns 0x14000517a
xor r8d, r8d
lea edx, [rdi + 4]
lea rcx, [rbp - 0x80]
call fcn.140031590
nop
lea rcx, [rbp - 0x80]
call fcn.140032300
test al, al
je 0x140005147
lea rdx, str.temp_file_manager:_local_low_temp_path_failed
lea rcx, [rbp - 0x80]
call fcn.140027c50
nop
lea rcx, [rbp - 0x80]
call fcn.140027520
xor al, al
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.140035b50
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
movdqa xmm0, xmmword [0x140041580]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], di
mov rdx, qword [rsp + 0x20]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rdx + r8*2], di
jne 0x1400051a0
lea rcx, [rsp + 0x40]
call fcn.140002c80
nop
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rdx, str.Temp
lea rcx, [rsp + 0x40]
call fcn.140037e60
lea rax, [rsp + 0x40]
cmp rbx, rax
je 0x1400051f9
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x50]
mov rcx, rbx
call fcn.140002c80
mov rcx, rbx
call fcn.140004e70
test al, al
jne 0x140005310
mov dword [rsp + 0x28], edi
mov byte [rsp + 0x2c], al
mov qword [rsp + 0x30], rsi
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.140039e00
nop
cmp dword [rsp + 0x28], 0
je 0x140005310
xor r8d, r8d
lea edx, [r8 + 4]
lea rcx, [rbp - 0x80]
call fcn.140031590
nop
lea rcx, [rbp - 0x80]
call fcn.140032300
test al, al
je 0x1400052f6
lea rdx, str.temp_file_manager:_create_directories_of
lea rcx, [rbp - 0x80]
call fcn.140027c50
mov rdx, rbx
mov rcx, rax
call fcn.140027990
lea rdx, str._failed__
mov rcx, rax
call fcn.140027c50
mov rbx, rax
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rcx]
mov r9, qword [rdx + 0x28]
mov r8d, dword [rsp + 0x28]
lea rdx, [rsp + 0x60]
call r9
nop
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.140027870
lea rdx, [0x140041904]
mov rcx, rax
call fcn.140027c50
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x1400052f6
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400052f0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400052f0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140035a38
nop
lea rcx, [rbp - 0x80]
call fcn.140027520
nop
lea rcx, [rsp + 0x40]
call fcn.1400027d0
nop
jmp 0x140005150
lea rcx, [rsp + 0x40]
call fcn.1400027d0
nop
jmp 0x1400053a5
lea rcx, [0x140041908]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wgetenv]
test rax, rax
je 0x140005357
cmp word [rax], di
je 0x140005357
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], di
jne 0x140005340
mov rdx, rax
mov rcx, rbx
call fcn.140002c80
jmp 0x1400053a5
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.14003ac60
nop
lea rax, [rsp + 0x40]
cmp rbx, rax
je 0x14000539a
mov rcx, rbx
call fcn.1400027d0
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rbx + 0x10], xmm1
movdqa xmm0, xmmword [0x140041580]
movdqu xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x40], di
lea rcx, [rsp + 0x40]
call fcn.1400027d0
nop
mov rax, qword [rbx + 0x10]
test rax, rax
jne 0x1400053e9
xor r8d, r8d
lea edx, [rax + 4]
lea rcx, [rbp - 0x80]
call fcn.140031590
nop
lea rcx, [rbp - 0x80]
call fcn.140032300
test al, al
je 0x1400053dc
lea rdx, str.temp_file_manager:_temp_directory_path_empty
lea rcx, [rbp - 0x80]
call fcn.140027c50
nop
lea rcx, [rbp - 0x80]
call fcn.140027520
mov rax, qword [rbx + 0x10]
mov dword [rsp + 0x60], edi
mov byte [rsp + 0x64], 0
mov qword [rsp + 0x68], rsi
mov dword [rsp + 0x40], edi
mov byte [rsp + 0x44], 0
mov qword [rsp + 0x48], rsi
test rax, rax
je 0x140005150
lea r8, [rsp + 0x60]
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.14003aab0
cmp dword [rax], 1
jbe 0x140005150
cmp dword [rsp + 0x60], 0
jne 0x140005150
lea r8, [rsp + 0x40]
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.14003aab0
cmp dword [rax], 3
jne 0x140005150
cmp dword [rsp + 0x40], 0
jne 0x140005150
mov al, 1
jmp 0x140005152