Function at 0x14016bd90
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x220]
sub rsp, 0x320
mov rax, qword [0x140344548]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov rbx, rcx
xor esi, esi
mov dword [rsp + 0x48], esi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
call fcn.140157180
test al, al
je 0x14016c145
mov qword [rsp + 0x48], rsi
lea r9, [rsp + 0x48]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140296550]
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jns 0x14016be5f
xor r8d, r8d
lea edx, [rsi + 4]
lea rcx, [rbp - 0x20]
call fcn.14025e800
nop
lea rcx, [rbp - 0x20]
call fcn.14025f760
test al, al
je 0x14016be2c
lea rdx, str.temp_file_manager:_local_low_temp_path_failed
lea rcx, [rbp - 0x20]
call fcn.140255d20
nop
lea rcx, [rbp - 0x20]
call fcn.140255600
xor al, al
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.140266400
lea r11, [rsp + 0x320]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov rdx, qword [rsp + 0x48]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rdx + r8*2], si
jne 0x14016be70
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], rsi
lea rcx, [rsp + 0x58]
call fcn.1400768b0
nop
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], rsi
mov qword [rbp - 0x68], rsi
mov r8d, 4
lea rdx, str.Temp
lea rcx, [rbp - 0x80]
call fcn.1400768b0
nop
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x58]
call fcn.14009c5c0
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x14016bf1b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14016bf15
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14016bf15
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140082030
nop
lea rax, [rsp + 0x58]
cmp rbx, rax
je 0x14016bf43
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rdx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x68]
mov rcx, rbx
call fcn.140093ff0
mov rcx, rbx
call fcn.14016ae90
test al, al
jne 0x14016c0f6
mov dword [rbp - 0x80], esi
lea rcx, [0x1403421b8]
mov qword [rbp - 0x78], rcx
lea rdx, [rbp - 0x80]
mov rcx, rbx
call fcn.1400f9350
mov esi, dword [rbp - 0x80]
test esi, esi
je 0x14016c0f6
xor r8d, r8d
lea edx, [r8 + 4]
lea rcx, [rbp - 0x20]
call fcn.14025e800
nop
lea rcx, [rbp - 0x20]
call fcn.14025f760
test al, al
je 0x14016c09d
lea rdx, str.temp_file_manager:_create_directories_of
lea rcx, [rbp - 0x20]
call fcn.140255d20
mov rdi, rax
mov rdx, rbx
lea rcx, [rbp - 0x40]
call fcn.14008dc70
nop
lea rdx, [rbp - 0x40]
mov rcx, rdi
call fcn.140255b00
lea rdx, str._failed__
mov rcx, rax
call fcn.140255d20
mov rbx, rax
mov rcx, qword [rbp - 0x78]
mov rdx, qword [rcx]
mov rdi, qword [rdx + 0x10]
mov r8d, esi
lea rdx, [rbp - 0x60]
call rdi
nop
lea rdx, [rbp - 0x60]
mov rcx, rbx
call fcn.140255ac0
lea rdx, [0x14027c86c]
mov rcx, rax
call fcn.140255d20
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 0x10
jb 0x14016c048
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14016c042
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14016c042
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140082030
nop
movdqa xmm0, xmmword [0x14027cff0]
movdqu xmmword [rbp - 0x50], xmm0
mov byte [rbp - 0x60], 0
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x14016c09d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14016c097
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14016c097
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140082030
nop
lea rcx, [rbp - 0x20]
call fcn.140255600
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x14016be35
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14016c0eb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14016c0eb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140082030
nop
jmp 0x14016be35
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x14016c363
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14016c13a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14016c13a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140082030
nop
jmp 0x14016c363
lea rcx, str.NITRO_TMP_FOLDER
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wgetenv]
test rax, rax
je 0x14016c1ee
cmp word [rax], si
je 0x14016c1ee
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], si
jne 0x14016c170
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x50], xmm1
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.1400768b0
lea rdx, [rbp - 0x60]
mov rcx, rbx
call fcn.140097570
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x14016c363
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14016c1e3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14016c1e3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140082030
nop
jmp 0x14016c363
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], si
mov dword [rsp + 0x48], 2
mov word [rsp + 0x20], si
mov r9d, 0x105
movzx r8d, byte [rsp + 0x30]
mov edx, r9d
lea rcx, [rsp + 0x58]
call fcn.14009c420
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rcx, qword [rsp + 0x58]
call fcn.140267b9c
mov qword [rsp + 0x38], rax
mov ecx, eax
mov r8, qword [rsp + 0x68]
cmp rcx, r8
ja 0x14016c272
lea rax, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rax, qword [rsp + 0x58]
mov qword [rsp + 0x68], rcx
mov word [rax + rcx*2], si
jmp 0x14016c2d1
mov rdx, rcx
sub rdx, r8
mov rdi, qword [rsp + 0x70]
mov rax, rdi
sub rax, r8
cmp rdx, rax
ja 0x14016c2b9
mov qword [rsp + 0x68], rcx
lea r9, [rsp + 0x58]
cmp rdi, 8
cmovae r9, qword [rsp + 0x58]
lea rdi, [r9 + r8*2]
test rdx, rdx
je 0x14016c2ae
movzx eax, si
mov rcx, rdx
rep stosw word [rdi], ax
lea rax, [rdx + r8]
mov word [r9 + rax*2], si
jmp 0x14016c2d1
mov word [rsp + 0x20], si
mov r9, rdx
movzx r8d, byte [rsp + 0x30]
lea rcx, [rsp + 0x58]
call fcn.14009c420
mov eax, dword [rsp + 0x3c]
cmp eax, 0xffffffff
jne 0x14016c2e8
mov eax, reloc.WS2_32.dll_sendto
lea rcx, [0x1403421a8]
jmp 0x14016c2ef
lea rcx, [0x1403421b8]
mov dword [rbp - 0x80], eax
mov qword [rbp - 0x78], rcx
movaps xmm0, xmmword [rbp - 0x80]
movdqa xmmword [rbp - 0x80], xmm0
mov dword [rsp + 0x48], 1
test eax, eax
jne 0x14016c417
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.140097570
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x14016c363
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14016c35d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14016c35d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140082030
nop
cmp qword [rbx + 0x10], 0
jne 0x14016c3ad
xor r8d, r8d
lea edx, [r8 + 4]
lea rcx, [rbp - 0x20]
call fcn.14025e800
nop
lea rcx, [rbp - 0x20]
call fcn.14025f760
test al, al
je 0x14016c399
lea rdx, str.temp_file_manager:_temp_directory_path_empty
lea rcx, [rbp - 0x20]
call fcn.140255d20
nop
lea rcx, [rbp - 0x20]
call fcn.140255600
cmp qword [rbx + 0x10], 0
je 0x14016be35
mov r8d, 3
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.1400981f0
movsd xmm0, qword [rax]
movsd qword [rsp + 0x38], xmm0
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x14016be35
cmp eax, 1
je 0x14016be35
mov r8d, 3
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.1400981f0
movsd xmm0, qword [rax]
movsd qword [rsp + 0x38], xmm0
cmp dword [rsp + 0x38], 3
jne 0x14016be35
cmp dword [rax + 8], 0
jne 0x14016be35
mov al, 1
jmp 0x14016be37
lea r8, [rsp + 0x58]
lea rdx, [rbp - 0x80]
lea rcx, str.temp_directory_path
call fcn.140098590
int3