Function at 0x14000166c
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov dword [rax + 8], ecx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r12, rdx
movsxd rsi, ecx
xor edx, edx
xor ecx, ecx
mov r13, r8
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
nop dword [rax + rax]
lea ebx, [rax + 0xc]
lea rcx, [rbx + rbx]
mov edi, ebx
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
xor ebp, ebp
mov ecx, 0x8007000e
mov qword [r13], rax
lea r15d, [rcx + 0x49]
lea r14d, [rbp + 1]
test rax, rax
jne 0x1400016d8
mov ebx, ecx
jmp 0x1400017c1
mov rdx, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
nop dword [rax + rax]
test eax, eax
jne 0x14000170f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
jne 0x1400017c1
mov r8, qword [r13]
lea rax, [rdi - 1]
cmp rax, 0x7ffffffe
mov ebx, ebp
cmova ebx, r15d
test ebx, ebx
js 0x14000175a
mov rcx, rdi
mov rax, r8
test rdi, rdi
je 0x140001740
cmp word [rax], bp
je 0x140001740
add rax, 2
sub rcx, r14
jne 0x140001732
mov rax, rcx
neg rax
sbb ebx, ebx
not ebx
and ebx, r15d
test rcx, rcx
je 0x14000175a
mov rdx, rdi
sub rdx, rcx
jmp 0x14000175d
mov rdx, rbp
test ebx, ebx
js 0x1400017c1
mov rcx, rdi
lea r8, [r8 + rdx*2]
sub rcx, rdx
je 0x1400017a6
mov r9, rcx
sub r9, rdi
add r9, 0x7ffffffe
add r9, rdx
lea rdx, str.ddodiag.xml
sub rdx, r8
test r9, r9
je 0x1400017a6
movzx eax, word [rdx + r8]
test ax, ax
je 0x1400017a6
mov word [r8], ax
sub r9, r14
add r8, 2
sub rcx, r14
jne 0x140001787
test rcx, rcx
lea rax, [r8 - 2]
cmovne rax, r8
neg rcx
sbb ebx, ebx
not ebx
and ebx, 0x8007007a
mov word [rax], bp
mov ebp, r14d
mov r15, rsi
cmp rsi, r14
jle 0x140001919
mov rsi, r14
lea r14, [r12 + 0x10]
mov rcx, qword [r12 + rsi*8]
lea rdx, [0x140004900]
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
xor edi, edi
test eax, eax
je 0x140001814
mov rcx, qword [r12 + rsi*8]
lea rdx, [0x140004908]
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
jne 0x140001914
inc ebp
cmp ebp, dword [rsp + 0x50]
jge 0x140001914
mov rax, qword [r14]
mov ecx, 0x2d
cmp cx, word [rax]
je 0x140001914
mov rcx, qword [r13]
test rcx, rcx
je 0x14000184a
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov qword [r13], rdi
mov rcx, qword [r12 + rsi*8 + 8]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], di
jne 0x140001853
inc eax
mov edi, eax
lea rcx, [rax + rax]
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
xor r9d, r9d
mov qword [r13], rax
test rax, rax
mov rdx, rax
mov eax, 0x8007000e
cmove ebx, eax
test ebx, ebx
jne 0x1400018ff
mov r8, qword [r12 + rsi*8 + 8]
lea rcx, [rdi - 1]
mov r10d, 0x7ffffffe
mov ebx, r9d
cmp rcx, r10
mov eax, 0x80070057
cmova ebx, eax
test ebx, ebx
js 0x1400018f6
test rdi, rdi
je 0x1400018d8
mov ecx, r10d
sub rcx, rdi
sub r8, rdx
lea rax, [rcx + rdi]
test rax, rax
je 0x1400018d8
movzx eax, word [r8 + rdx]
test ax, ax
je 0x1400018d8
mov word [rdx], ax
add rdx, 2
sub rdi, 1
jne 0x1400018b8
test rdi, rdi
lea rax, [rdx - 2]
cmovne rax, rdx
neg rdi
sbb ebx, ebx
not ebx
and ebx, 0x8007007a
mov word [rax], r9w
jmp 0x1400018ff
test rdi, rdi
je 0x1400018ff
mov word [rdx], r9w
inc ebp
add rsi, 2
add r14, 0x10
cmp rsi, r15
jl 0x1400017d8
jmp 0x140001919
mov ebx, 0x80070057
mov rbp, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret