Function at 0x140001420
Capabilities:
Get common file path

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x290]
sub rsp, 0x390
mov rax, qword [0x14000c040]
xor rax, rsp
mov qword [rbp + 0x280], rax
mov rbx, r9
mov r14, r8
mov rsi, rdx
mov rdi, rcx
lea rdx, [rbp + 0x170]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x14000151e
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
mov ecx, 0x20
call fcn.140006180
mov rdx, rax
mov qword [rsp + 0x30], rax
movdqa xmm0, xmmword [0x140008df0]
movdqu xmmword [rsp + 0x40], xmm0
movups xmm0, xmmword [str.Failed_to_get_temporary_path.]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x140008618]
movsd qword [rax + 0x10], xmm0
mov ecx, dword [0x140008620]
mov dword [rax + 0x18], ecx
movzx eax, byte [0x140008624]
mov byte [rdx + 0x1c], al
mov byte [rdx + 0x1d], 0
lea rcx, [rsp + 0x30]
call fcn.140001290
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x1400015ef
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400015ea
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400015ea
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp qword [rbx + 0x18], 0xf
jbe 0x140001528
mov rbx, qword [rbx]
lea r9, [rbp + 0x60]
xor r8d, r8d
mov rdx, rbx
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x1400015f6
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
mov ecx, 0x30
call fcn.140006180
mov rdx, rax
mov qword [rsp + 0x30], rax
movdqa xmm0, xmmword [0x140008e00]
movdqu xmmword [rsp + 0x40], xmm0
movups xmm0, xmmword [str.Failed_to_create_temporary_file_name.]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x140008638]
movups xmmword [rax + 0x10], xmm1
mov ecx, dword [0x140008648]
mov dword [rax + 0x20], ecx
movzx eax, byte [0x14000864c]
mov byte [rdx + 0x24], al
mov byte [rdx + 0x25], 0
lea rcx, [rsp + 0x30]
call fcn.140001290
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x1400015ef
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400015ea
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400015ea
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400061bc
xor al, al
jmp 0x140001748
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x20
lea rdx, [rbp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.140004aa0
nop
cmp qword [rbp - 0x28], 0
jne 0x1400016d9
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
mov ecx, 0x30
call fcn.140006180
mov rcx, rax
mov qword [rsp + 0x30], rax
movdqa xmm0, xmmword [0x140008e30]
movdqu xmmword [rsp + 0x40], xmm0
movups xmm0, xmmword [str.Failed_to_open_temporary_file_for_writing.]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x140008660]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x140008670]
movsd qword [rax + 0x20], xmm0
movzx eax, word [0x140008678]
mov word [rcx + 0x28], ax
mov byte [rcx + 0x2a], 0
lea rcx, [rsp + 0x30]
call fcn.140001290
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x1400016d5
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400016d0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400016d0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400061bc
xor bl, bl
jmp 0x14000173b
mov r8, rsi
mov rdx, rdi
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const____ptr64__long_long___int64_____ptr64]
lea rcx, [rsp + 0x58]
call fcn.140004f70
test rax, rax
jne 0x140001718
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x50]
add rcx, rax
xor r8d, r8d
mov edx, 2
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
lea rax, [rbp + 0x60]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140001723
lea rdx, [rbp + 0x60]
mov rcx, r14
call fcn.140005220
mov bl, 1
lea rcx, [rsp + 0x50]
call fcn.140001360
movzx eax, bl
mov rcx, qword [rbp + 0x280]
xor rcx, rsp
call fcn.140006160
add rsp, 0x390
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret