Function at 0x140023990
Capabilities:
Get common file path

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x590]
sub rsp, 0x690
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x140133088]
xor rax, rsp
mov qword [rbp + 0x580], rax
mov r14, r8
mov r15, rdx
mov rdi, rcx
lea rcx, [rsp + 0x30]
call fcn.140008be0
nop
xor r12d, r12d
mov qword [rsp + 0x28], r12
lea rdx, [0x140137550]
lea rcx, [rsp + 0x28]
call fcn.140011d7c
nop
lea rcx, [0x140137570]
call fcn.1400024d0
test al, al
jne 0x140023a3e
lea rcx, [0x140137570]
call fcn.140002540
lea rdx, [rsp + 0x30]
cmp rdx, rax
je 0x140023af8
lea rcx, [0x140137570]
call fcn.140002540
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x140023a35
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
jmp 0x140023aed
xor edx, edx
mov r8d, 0x20c
lea rcx, [rsp + 0x50]
call fcn.1400a8b60
lea rdx, [rsp + 0x50]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x140023ca5
mov word [rbp + 0x15a], r12w
xor edx, edx
mov r8d, 0x412
lea rcx, [rbp + 0x160]
call fcn.1400a8b60
mov r8d, 0x208
lea rdx, [rbp + 0x160]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea ecx, [rax - 1]
cmp ecx, 0x207
ja 0x140023adb
mov eax, eax
add rax, rax
cmp rax, 0x412
jae 0x140023cdf
mov word [rbp + rax + 0x160], r12w
lea rcx, [rbp + 0x160]
call fcn.1400027f0
lea rdx, [rbp + 0x160]
jmp 0x140023aea
lea rcx, [rsp + 0x50]
call fcn.1400027f0
lea rdx, [rsp + 0x50]
mov r8, rax
lea rcx, [rsp + 0x30]
call fcn.1400025d0
nop
lea rcx, [rsp + 0x28]
call fcn.140011da4
lea rsi, [rdi + 8]
cmp byte [rdi], 0
je 0x140023b1a
mov rcx, rsi
call fcn.14002bf60
test al, al
sete al
mov byte [rdi], al
xor edx, edx
mov r8d, 0x20c
lea rcx, [rsp + 0x50]
call fcn.1400a8b60
mov rcx, r15
call fcn.1400024e0
mov rbx, rax
lea rcx, [rsp + 0x30]
call fcn.1400024e0
mov rcx, rax
lea r9, [rsp + 0x50]
xor r8d, r8d
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea rcx, [rsp + 0x50]
test eax, eax
je 0x140023bb0
mov word [rbp + 0x15a], r12w
call fcn.1400027f0
mov r8, rax
lea rdx, [rsp + 0x50]
mov rcx, r14
call fcn.1400025d0
mov rcx, r14
call fcn.140002540
cmp rsi, rax
je 0x140023ba6
call fcn.140002540
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x140023b9a
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
mov rcx, rsi
call fcn.1400025d0
mov byte [rdi], 1
mov bl, 1
jmp 0x140023cb1
xor edx, edx
mov r8d, 0x20c
call fcn.1400a8b60
mov edx, 0x105
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x140023caf
mov word [rbp + 0x15a], r12w
lea rcx, [rsp + 0x50]
call fcn.1400027f0
mov r8, rax
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.1400025d0
cmp byte [rdi], 0
je 0x140023c12
mov rcx, rsi
call fcn.14002bf60
test al, al
sete al
mov byte [rdi], al
xor edx, edx
mov r8d, 0x20c
lea rcx, [rsp + 0x50]
call fcn.1400a8b60
mov rcx, r15
call fcn.1400024e0
mov rbx, rax
lea rcx, [rsp + 0x30]
call fcn.1400024e0
mov rcx, rax
lea r9, [rsp + 0x50]
xor r8d, r8d
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x140023caf
mov word [rbp + 0x15a], r12w
lea rcx, [rsp + 0x50]
call fcn.1400027f0
mov r8, rax
lea rdx, [rsp + 0x50]
mov rcx, r14
call fcn.1400025d0
mov bl, 1
mov rcx, r14
call fcn.140002540
cmp rsi, rax
je 0x140023ca0
call fcn.140002540
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x140023c94
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
mov rcx, rsi
call fcn.1400025d0
mov byte [rdi], 1
jmp 0x140023cb1
lea rcx, [rsp + 0x28]
call fcn.140011da4
xor bl, bl
lea rcx, [rsp + 0x30]
call fcn.1400024f0
movzx eax, bl
mov rcx, qword [rbp + 0x580]
xor rcx, rsp
call fcn.1400a6810
add rsp, 0x690
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1400a6d38
nop
int3