Function at 0x14000ae10
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x250
mov rax, qword [0x1400dbc58]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdi, [0x1400dbce8]
mov r8d, 0x7cf
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14000b13c
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rdi + r8*2], 0
jne 0x14000ae70
mov rdx, rdi
lea rcx, [0x1400ddc38]
call fcn.1400022b0
lea rbx, [0x1400dcc86]
mov ebp, 0x2f
mov rcx, rbx
lea rsi, [0x1400dcc86]
mov r15d, 0x5c
nop word [rax + rax]
movzx eax, word [rcx]
lea r14, [0x1400dbce0]
cmp r15w, ax
je 0x14000aec5
cmp bp, ax
jne 0x14000aeca
cmp rsi, rcx
jne 0x14000af21
sub rcx, 2
cmp rcx, rdi
jae 0x14000aeb0
mov rdx, rdi
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x14000aee0
lea rcx, [0x1400ddc58]
call fcn.1400022b0
nop word [rax + rax]
movzx eax, word [rbx]
xor r12d, r12d
cmp r15w, ax
je 0x14000af11
cmp bp, ax
jne 0x14000af16
cmp rsi, rbx
jne 0x14000af3d
sub rbx, 2
cmp rbx, rdi
jae 0x14000af00
jmp 0x14000af55
sub rcx, rdi
sar rcx, 1
lea rax, [rcx - 1]
cmp rax, 0x7cd
ja 0x14000aed3
lea rdx, [r14 + 0xa]
lea rdx, [rdx + rcx*2]
jmp 0x14000aed6
sub rbx, rdi
sar rbx, 1
lea rax, [rbx - 1]
cmp rax, 0x7cd
ja 0x14000af55
mov word [r14 + rbx*2 + 0xa], r12w
xor r9d, r9d
lea rbx, [0x1400dcc88]
mov rdx, rbx
xor ecx, ecx
lea r8d, [r9 + 0x1a]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x14000aff6
mov rcx, 0xffffffffffffffff
nop dword [rax]
inc rcx
cmp word [rbx + rcx*2], r12w
jne 0x14000af80
lea rdx, [rcx + 1]
cmp rdx, 0x7cf
ja 0x14000aff6
lea rax, [rcx + 6]
cmp rax, 0x7cf
ja 0x14000aff6
test rcx, rcx
je 0x14000afcb
cmp word [r14 + rcx*2 + 0xfa6], r15w
je 0x14000afc8
lea rax, [rcx + 7]
cmp rax, 0x7cf
ja 0x14000aff6
mov word [r14 + rcx*2 + 0xfa8], r15w
mov rcx, rdx
movsd xmm0, qword [str.Zoom_]
movzx eax, word [0x1400c81b0]
movsd qword [r14 + rcx*2 + 0xfa8], xmm0
mov word [r14 + rcx*2 + 0xfb0], ax
mov word [r14 + rcx*2 + 0xfb2], r12w
mov ebp, 1
mov dword [rsp + 0x20], 0x24
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
lea r8d, [rbp + 7]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [0x1400ddc30], rax
test rax, rax
je 0x14000b13c
xor ecx, ecx
lea r14, [rsp + 0x20]
mov qword [rax], rcx
mov rdi, r12
nop word [rax + rax]
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x20c
call sub.VCRUNTIME140.dll_memset
mov ebx, dword [r14]
lea rdx, [rsp + 0x30]
xor r9d, r9d
mov r8d, ebx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x14000b08d
cmp ebx, 0x24
jne 0x14000b12f
mov edx, 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x14000b12f
lea rcx, [rsp + 0x30]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp word [rcx + rax*2], r12w
jne 0x14000b0a0
cmp word [rsp + rax*2 + 0x2e], r15w
je 0x14000b0bb
mov word [rsp + rax*2 + 0x30], r15w
inc rax
lea rbx, [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea r8, [rbx + 2]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [0x1400ddc30]
mov qword [rdi + rcx], rax
mov rax, qword [0x1400ddc30]
mov rcx, qword [rdi + rax]
test rcx, rcx
je 0x14000b12f
lea r8, [rbx + 2]
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [0x1400ddc30]
lea rdx, [rsp + 0x30]
mov r8, rbx
mov rcx, qword [rdi + rcx]
call sub.VCRUNTIME140.dll_memcpy
add r14, 4
add rdi, 8
cmp rdi, 8
jb 0x14000b040
mov qword [0x1400ddc28], rbp
mov eax, ebp
jmp 0x14000b13e
call fcn.14000ad70
mov eax, r12d
mov ebp, r12d
jmp 0x14000b13e
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14007e630
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret