Function at 0x1400aac28
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x438]
sub rsp, 0x520
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1402d9850]
xor rax, rsp
mov qword [rbp + 0x410], rax
mov r14d, r8d
mov rdi, rdx
xor ebx, ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x24], ebx
mov dword [rsp + 0x20], 0x78
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x24]
lea rdx, str._VersionUpdate::GetFileNameByType_
lea rcx, [rsp + 0x48]
call fcn.14003fda0
nop
lea rcx, [rbp + 0x50]
call fcn.1400ce060
nop
lea rdx, [rbp + 0x200]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x1400aad01
lea esi, [rbx + 7]
mov qword [rdi + 0x18], rsi
mov qword [rdi + 0x10], rbx
cmp rsi, 8
jb 0x1400aacce
mov rax, qword [rdi]
jmp 0x1400aacd1
mov rax, rdi
mov word [rax], bx
cmp word [0], bx
je 0x1400aacef
or r8, 0xffffffffffffffff
inc r8
cmp word [rbx + r8*2], bx
jne 0x1400aace2
mov rbx, r8
mov r8, rbx
xor edx, edx
mov rcx, rdi
call fcn.140007090
jmp 0x1400ab066
mov r15d, 1
lea rsi, vtable.std::ios_base.0
mov rcx, qword [0x1402de630]
test rcx, rcx
je 0x1400aae26
mov rax, qword [rcx]
mov edx, 0x7d0
call qword [rax + 0x10]
test eax, eax
je 0x1400aae26
mov r8d, r15d
lea edx, [r15 + 1]
lea rcx, [rsp + 0x60]
call fcn.140040070
nop
call fcn.14010ab78
mov r8, rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x60]
add rcx, rax
lea rdx, [rsp + 0x30]
call fcn.140040f30
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400aad89
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x1400aad89
mov r8, qword [rax]
mov edx, r15d
mov rcx, rax
call qword [r8]
nop
lea rdx, str._VersionUpdate::GetFileNameByType_
lea rcx, [rsp + 0x60]
call fcn.140043d80
mov rcx, rax
lea rdx, str.Obtained_Temp_path:
call fcn.140043d80
mov rcx, rax
lea rdx, [rbp + 0x200]
call fcn.140043d80
lea rdx, [rbp + 0x1a0]
lea rcx, [rsp + 0x60]
call fcn.14003ffc0
nop
lea r8, [rbp + 0x1a0]
cmp qword [rbp + 0x1b8], 8
cmovae r8, qword [rbp + 0x1a0]
mov rcx, qword [0x1402de630]
mov rax, qword [rcx]
mov r9, qword [rbp + 0x1b0]
mov edx, 0x7d0
call qword [rax + 0x20]
nop
xor r8d, r8d
mov dl, r15b
lea rcx, [rbp + 0x1a0]
call fcn.140006e40
nop
lea rcx, [rbp - 0x18]
call fcn.14003fff0
nop
mov qword [rbp - 0x18], rsi
lea rcx, [rbp - 0x18]
call fcn.14010acb0
nop
mov esi, 7
mov qword [rbp + 0x1d8], rsi
mov qword [rbp + 0x1d0], rbx
mov word [rbp + 0x1c0], bx
cmp word [rbp + 0x200], bx
jne 0x1400aae4e
mov r8, rbx
jmp 0x1400aae63
lea rax, [rbp + 0x200]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], bx
jne 0x1400aae59
lea rdx, [rbp + 0x200]
lea rcx, [rbp + 0x1c0]
call fcn.140007090
nop
mov r8d, r15d
mov edx, 2
lea rcx, [rbp + 0xb0]
call fcn.140040070
nop
lea rdx, [rbp + 0x1c0]
lea rcx, [rbp + 0xb0]
call fcn.140044070
cmp r14d, 1
jne 0x1400aaeb8
lea rdx, str.vup.tmp
lea rcx, [rbp + 0xb0]
call fcn.140043a10
lea rdx, [rbp + 0x1e0]
lea rcx, [rbp + 0xb0]
call fcn.14003ffc0
nop
mov rcx, qword [0x1402de630]
test rcx, rcx
je 0x1400aafee
mov rax, qword [rcx]
mov edx, 0x7d0
call qword [rax + 0x10]
test eax, eax
je 0x1400aafee
mov r8d, r15d
mov edx, 2
lea rcx, [rsp + 0x60]
call fcn.140040070
nop
call fcn.14010ab78
mov r8, rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x60]
add rcx, rax
lea rdx, [rsp + 0x30]
call fcn.140040f30
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400aaf48
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x1400aaf48
mov r8, qword [rax]
mov edx, r15d
mov rcx, rax
call qword [r8]
nop
lea rdx, str._VersionUpdate::GetFileNameByType_
lea rcx, [rsp + 0x60]
call fcn.140043d80
mov rcx, rax
lea rdx, str.Obtained_Temp_file:
call fcn.140043d80
mov rcx, rax
lea rdx, [rbp + 0x1e0]
call fcn.140044070
lea rdx, [rbp + 0x1a0]
lea rcx, [rsp + 0x60]
call fcn.14003ffc0
nop
lea r8, [rbp + 0x1a0]
cmp qword [rbp + 0x1b8], 8
cmovae r8, qword [rbp + 0x1a0]
mov rcx, qword [0x1402de630]
mov rax, qword [rcx]
mov r9, qword [rbp + 0x1b0]
mov edx, 0x7d0
call qword [rax + 0x20]
nop
xor r8d, r8d
mov dl, r15b
lea rcx, [rbp + 0x1a0]
call fcn.140006e40
nop
lea rcx, [rbp - 0x18]
call fcn.14003fff0
nop
lea r14, vtable.std::ios_base.0
mov qword [rbp - 0x18], r14
lea rcx, [rbp - 0x18]
call fcn.14010acb0
nop
jmp 0x1400aaff5
lea r14, vtable.std::ios_base.0
mov qword [rdi + 0x18], rsi
mov qword [rdi + 0x10], rbx
cmp qword [rdi + 0x18], 8
jb 0x1400ab009
mov rax, qword [rdi]
jmp 0x1400ab00c
mov rax, rdi
mov word [rax], bx
lea rdx, [rbp + 0x1e0]
mov rcx, rdi
call fcn.140008160
nop
xor r8d, r8d
mov dl, r15b
lea rcx, [rbp + 0x1e0]
call fcn.140006e40
nop
lea rcx, [rbp + 0x138]
call fcn.14003fff0
nop
mov qword [rbp + 0x138], r14
lea rcx, [rbp + 0x138]
call fcn.14010acb0
nop
xor r8d, r8d
mov dl, r15b
lea rcx, [rbp + 0x1c0]
call fcn.140006e40
nop
lea rcx, [rbp + 0x50]
call fcn.140008080
nop
lea rcx, [rsp + 0x48]
call fcn.14003fbb0
nop
mov ecx, dword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rdi
mov rcx, qword [rbp + 0x410]
xor rcx, rsp
call fcn.14012a1e0
lea r11, [rsp + 0x520]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret