Function at 0x140008e6c
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x6a0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x14002b138]
xor rax, rsp
mov qword [rsp + 0x690], rax
mov rsi, r8
mov r12, rdx
mov rbp, rcx
xor r13d, r13d
mov dword [rsp + 0x20], r13d
lea r8, [rsp + 0x20]
lea rdx, [0x1400025d0]
lea rcx, [rsp + 0x38]
call fcn.1400214f4
nop
mov word [r12], r13w
mov word [rsi], r13w
lea rdx, [rsp + 0x60]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, r13d
jbe 0x140009093
mov dword [rsp + 0x48], r13d
xor eax, eax
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x54], eax
lea rcx, [rsp + 0x48]
call qword [sym.imp.ole32.dll_CoCreateGuid]
mov ebx, eax
mov dword [rsp + 0x20], eax
cmp eax, r13d
jl 0x140009119
mov qword [rsp + 0x28], r13
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ole32.dll_StringFromCLSID]
mov ebx, eax
mov dword [rsp + 0x20], eax
cmp eax, r13d
jl 0x140008fc7
mov r9, qword [rsp + 0x28]
lea r8, [0x1400025f8]
mov edx, 0x104
lea rcx, [rsp + 0x270]
call fcn.1400093f0
mov dword [rsp + 0x20], eax
lea rdi, [0x14002b160]
cmp eax, r13d
jl 0x140008f8c
mov r9, qword [rsp + 0x28]
lea r8, [0x140002620]
mov edx, 0x104
lea rcx, [rsp + 0x480]
call fcn.1400093f0
mov dword [rsp + 0x20], eax
cmp eax, r13d
jge 0x140008fb6
mov rcx, qword [0x14002b160]
cmp rcx, rdi
je 0x140008fb6
test byte [rcx + 0x1c], 4
je 0x140008fb6
mov edx, 0x11
mov r9d, eax
lea r8, [0x140002070]
mov rcx, qword [rcx + 0x10]
call fcn.140006078
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov ebx, dword [rsp + 0x20]
jmp 0x140008ffc
lea rdi, [0x14002b160]
mov rcx, qword [0x14002b160]
cmp rcx, rdi
je 0x140008ffc
test byte [rcx + 0x1c], 4
je 0x140008ffc
mov edx, 0x12
mov r9d, eax
lea r8, [0x140002070]
mov rcx, qword [rcx + 0x10]
call fcn.140006078
mov ebx, dword [rsp + 0x20]
cmp ebx, r13d
jl 0x140009119
lea r9, [rsp + 0x270]
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.SHELL32.dll_PathYetAnotherMakeUniqueName]
cmp eax, r13d
je 0x14000904a
lea r9, [rsp + 0x480]
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, r12
call qword [sym.imp.SHELL32.dll_PathYetAnotherMakeUniqueName]
cmp eax, r13d
je 0x14000904a
mov ebx, dword [rsp + 0x20]
jmp 0x1400090e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
cmp eax, r13d
cmovle ebx, eax
mov dword [rsp + 0x20], ebx
mov rcx, qword [0x14002b160]
cmp rcx, rdi
je 0x1400090e1
test byte [rcx + 0x1c], 4
je 0x1400090e1
mov edx, 0x13
mov r9d, ebx
lea r8, [0x140002070]
mov rcx, qword [rcx + 0x10]
call fcn.140006078
mov ebx, dword [rsp + 0x20]
jmp 0x1400090e1
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
cmp eax, r13d
cmovle ebx, eax
mov dword [rsp + 0x20], ebx
lea rdi, [0x14002b160]
mov rcx, qword [0x14002b160]
cmp rcx, rdi
je 0x1400090e1
test byte [rcx + 0x1c], 4
je 0x1400090e1
mov edx, 0x14
mov r9d, ebx
lea r8, [0x140002070]
mov rcx, qword [rcx + 0x10]
call fcn.140006078
mov ebx, dword [rsp + 0x20]
cmp ebx, r13d
jl 0x140009119
xor r8d, r8d
mov rdx, rsi
mov rcx, rbp
call fcn.14000fe68
mov ebx, eax
mov dword [rsp + 0x20], eax
cmp eax, r13d
jl 0x140009119
mov r9d, 1
mov r8, rsi
mov rdx, r12
mov rcx, rbp
call fcn.14001084c
mov ebx, eax
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x38]
call fcn.140021548
mov eax, ebx
mov rcx, qword [rsp + 0x690]
xor rcx, rsp
call fcn.1400247e0
mov rbx, qword [rsp + 0x6e8]
add rsp, 0x6a0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret