Function at 0x1400a8610
Capabilities:
Get common file path

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
mov dword [rsp + 0x40], 0
mov rbx, rcx
lea rbp, [rsp + 0x60]
lea rsi, [rsp + 0x50]
call sym.unk_5167
xor r8d, r8d
mov qword [rsp + 0x50], rbp
mov rdi, qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov qword [rsp + 0x48], rax
mov edx, 0x400
mov qword [rsp + 0x58], 0
mov word [rsp + 0x60], r8w
nop dword [rax]
xor r8d, r8d
mov rcx, rsi
call sym.unk_5621
mov rdx, qword [rsp + 0x50]
mov ecx, dword [rsp + 0x58]
call rdi
mov edx, eax
cmp qword [rsp + 0x58], rdx
jb 0x1400a8660
xor edi, edi
test eax, eax
je 0x1400a8770
xor r8d, r8d
mov rcx, rsi
call sym.unk_5621
mov rax, qword [rsp + 0x50]
lea rdx, [rbx + 0x10]
mov rcx, qword [rsp + 0x58]
mov qword [rbx], rdx
cmp rax, rbp
je 0x1400a87d8
mov qword [rbx], rax
mov rax, qword [rsp + 0x60]
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rcx
lea r12, [rbx + 0x20]
xor ecx, ecx
mov word [rsp + 0x60], cx
mov rcx, r12
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], 0
call sym.unk_5825
mov rcx, rbx
call sym.unk_5845
mov rcx, qword [rsp + 0x50]
cmp rcx, rbp
je 0x1400a8700
mov rax, qword [rsp + 0x60]
lea rdx, [rax + rax + 2]
call sym.operator_delete_void__unsigned_long_long_
test edi, edi
je 0x1400a8790
cmp qword [rbx + 8], 0
jne 0x1400a8889
mov ecx, 0x30
call sym.unk_2059
lea rdx, str.temp_directory_path
mov rcx, rsi
mov rbp, rax
call sym.unk_5743
movdqa xmm0, xmmword [rsp + 0x40]
lea r8, [rsp + 0x30]
mov rdx, rsi
mov rcx, rbp
movaps xmmword [rsp + 0x30], xmm0
call sym.unk_5871
mov rcx, rsi
call sym.unk_4955
lea r8, [sym.unk_5883]
lea rdx, [0x140160690]
mov rcx, rbp
call sym.unk_2101
nop dword [rax + rax]
mov qword [rsp + 0x28], rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, qword [rsp + 0x28]
mov dword [rsp + 0x40], eax
mov edi, eax
jmp 0x1400a8689
lea rdx, [rsp + 0x40]
mov rcx, rbx
call sym.unk_5775
mov edx, dword [rsp + 0x40]
test edx, edx
jne 0x1400a8708
cmp al, 2
je 0x1400a87c4
call sym.unk_5168
mov dword [rsp + 0x40], 0x14
mov qword [rsp + 0x48], rax
jmp 0x1400a8708
mov rax, rbx
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rax, [rcx + rcx + 2]
cmp eax, 8
jae 0x1400a8820
test al, 4
jne 0x1400a8870
test eax, eax
je 0x1400a86ba
movzx r8d, byte [rbp]
mov byte [rbx + 0x10], r8b
test al, 2
je 0x1400a86ba
mov eax, eax
movzx r8d, word [rbp + rax - 2]
mov word [rdx + rax - 2], r8w
jmp 0x1400a86ba
mov r8, qword [rbp]
mov r11, rbp
mov qword [rbx + 0x10], r8
mov r8d, eax
mov r9, qword [rbp + r8 - 8]
mov qword [rdx + r8 - 8], r9
lea r9, [rbx + 0x18]
and r9, 0xfffffffffffffff8
sub rdx, r9
add eax, edx
sub r11, rdx
and eax, 0xfffffff8
cmp eax, 8
jb 0x1400a86ba
and eax, 0xfffffff8
xor edx, edx
mov r8d, edx
add edx, 8
mov r10, qword [r11 + r8]
mov qword [r9 + r8], r10
cmp edx, eax
jb 0x1400a8859
jmp 0x1400a86ba
mov r8d, dword [rbp]
mov eax, eax
mov dword [rbx + 0x10], r8d
mov r8d, dword [rbp + rax - 4]
mov dword [rdx + rax - 4], r8d
jmp 0x1400a86ba
mov ecx, 0x30
call sym.unk_2059
lea rdx, str.temp_directory_path
mov rcx, rsi
mov rbp, rax
call sym.unk_5743
movdqa xmm1, xmmword [rsp + 0x40]
mov r8, rbx
mov rdx, rsi
mov rcx, rbp
lea r9, [rsp + 0x30]
movaps xmmword [rsp + 0x30], xmm1
call sym.unk_5875
mov rcx, rsi
call sym.unk_4955
lea r8, [sym.unk_5883]
lea rdx, [0x140160690]
mov rcx, rbp
call sym.unk_2101
mov rdx, qword [rbx + 0x20]
mov rdi, rax
test rdx, rdx
je 0x1400a88f5
mov rcx, r12
call sym.unk_5820
mov rcx, rbx
call sym.unk_5553
mov rcx, rsi
call sym.unk_5553
mov rcx, rdi
call dbg._Unwind_Resume
mov rdi, rax
jmp 0x1400a88f5