Function at 0x140023c40
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 [0x140137088]
xor rax, rsp
mov qword [rbp + 0x580], rax
mov r14, r8
mov r15, rdx
mov rdi, rcx
lea rcx, [rsp + 0x30]
call fcn.140008ad0
nop
xor r12d, r12d
mov qword [rsp + 0x28], r12
lea rdx, [0x14013b540]
lea rcx, [rsp + 0x28]
call fcn.140011c6c
nop
lea rcx, [0x14013b560]
call fcn.140002300
test al, al
jne 0x140023cee
lea rcx, [0x14013b560]
call fcn.140002370
lea rdx, [rsp + 0x30]
cmp rdx, rax
je 0x140023da8
lea rcx, [0x14013b560]
call fcn.140002370
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x140023ce5
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
jmp 0x140023d9d
xor edx, edx
mov r8d, 0x20c
lea rcx, [rsp + 0x50]
call fcn.1400ab220
lea rdx, [rsp + 0x50]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x140023f55
mov word [rbp + 0x15a], r12w
xor edx, edx
mov r8d, 0x412
lea rcx, [rbp + 0x160]
call fcn.1400ab220
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 0x140023d8b
mov eax, eax
add rax, rax
cmp rax, 0x412
jae 0x140023f8f
mov word [rbp + rax + 0x160], r12w
lea rcx, [rbp + 0x160]
call fcn.140002620
lea rdx, [rbp + 0x160]
jmp 0x140023d9a
lea rcx, [rsp + 0x50]
call fcn.140002620
lea rdx, [rsp + 0x50]
mov r8, rax
lea rcx, [rsp + 0x30]
call fcn.140002400
nop
lea rcx, [rsp + 0x28]
call fcn.140011c94
lea rsi, [rdi + 8]
cmp byte [rdi], 0
je 0x140023dca
mov rcx, rsi
call fcn.14002c2e0
test al, al
sete al
mov byte [rdi], al
xor edx, edx
mov r8d, 0x20c
lea rcx, [rsp + 0x50]
call fcn.1400ab220
mov rcx, r15
call fcn.140002310
mov rbx, rax
lea rcx, [rsp + 0x30]
call fcn.140002310
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 0x140023e60
mov word [rbp + 0x15a], r12w
call fcn.140002620
mov r8, rax
lea rdx, [rsp + 0x50]
mov rcx, r14
call fcn.140002400
mov rcx, r14
call fcn.140002370
cmp rsi, rax
je 0x140023e56
call fcn.140002370
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x140023e4a
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
mov rcx, rsi
call fcn.140002400
mov byte [rdi], 1
mov bl, 1
jmp 0x140023f61
xor edx, edx
mov r8d, 0x20c
call fcn.1400ab220
mov edx, 0x105
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x140023f5f
mov word [rbp + 0x15a], r12w
lea rcx, [rsp + 0x50]
call fcn.140002620
mov r8, rax
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.140002400
cmp byte [rdi], 0
je 0x140023ec2
mov rcx, rsi
call fcn.14002c2e0
test al, al
sete al
mov byte [rdi], al
xor edx, edx
mov r8d, 0x20c
lea rcx, [rsp + 0x50]
call fcn.1400ab220
mov rcx, r15
call fcn.140002310
mov rbx, rax
lea rcx, [rsp + 0x30]
call fcn.140002310
mov rcx, rax
lea r9, [rsp + 0x50]
xor r8d, r8d
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x140023f5f
mov word [rbp + 0x15a], r12w
lea rcx, [rsp + 0x50]
call fcn.140002620
mov r8, rax
lea rdx, [rsp + 0x50]
mov rcx, r14
call fcn.140002400
mov bl, 1
mov rcx, r14
call fcn.140002370
cmp rsi, rax
je 0x140023f50
call fcn.140002370
mov rdx, rax
cmp qword [rax + 0x18], 8
jb 0x140023f44
mov rdx, qword [rax]
mov r8, qword [rax + 0x10]
mov rcx, rsi
call fcn.140002400
mov byte [rdi], 1
jmp 0x140023f61
lea rcx, [rsp + 0x28]
call fcn.140011c94
xor bl, bl
lea rcx, [rsp + 0x30]
call fcn.140002320
movzx eax, bl
mov rcx, qword [rbp + 0x580]
xor rcx, rsp
call fcn.1400a8f20
add rsp, 0x690
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.1400a9448
nop
int3