Function at 0x1400053c4
Capabilities:
Get common file path
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5a8]
sub rsp, 0x680
mov rax, qword [0x140011020]
xor rax, rsp
mov qword [rbp + 0x570], rax
xor r12d, r12d
mov rsi, rcx
mov r15b, r12b
mov ebx, r12d
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], r12
call qword [sym.imp.OLEAUT32.dll_VariantInit]
mov r14d, eax
mov eax, 0x104
cmp r14d, eax
jae 0x1400055f5
lea rdx, [rbp + 0x150]
mov r8d, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1400055f5
or rdi, 0xffffffffffffffff
mov word [rbp + 0x356], r12w
lea rcx, [rbp + 0x150]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], r12w
jne 0x140005459
lea rdx, [rbp + 0x150]
mov r8d, eax
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_wcsncmp]
test eax, eax
jne 0x1400055f5
lea r13d, [rax + 1]
test r14d, r14d
je 0x1400054b9
lea rcx, [rbp + 0x360]
lea rax, [rbp + 0x360]
mov rdx, r14
sub rsi, rcx
cmp word [rsi + rax], 0x2f
jne 0x1400054a9
mov ecx, 0x5c
jmp 0x1400054ad
movzx ecx, word [rsi + rax]
mov word [rax], cx
add rax, 2
sub rdx, r13
jne 0x14000549b
mov rax, r14
add rax, rax
cmp rax, 0x208
jae 0x1400056e9
lea rdx, [rbp + 0x360]
lea rcx, [rsp + 0x40]
mov word [rbp + rax + 0x360], r12w
call qword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
test eax, eax
je 0x1400055f5
lea rcx, [rsp + 0x40]
mov word [rbp + 0x146], r12w
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea rcx, [0x140001720]
mov r14d, 0x7f
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rcx
mov r9d, edi
mov ecx, r14d
mov r8, rax
mov edx, r13d
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x1400055f5
lea r9, [rsp + 0x30]
lea rcx, [0x140001140]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
mov ebx, eax
test eax, eax
jns 0x140005581
mov rcx, qword [0x140011038]
lea rdx, [0x140011038]
cmp rcx, rdx
je 0x1400055f5
test byte [rcx + 0x1c], 8
je 0x1400055f5
cmp byte [rcx + 0x19], 2
jb 0x1400055f5
call fcn.140007e1c
lea edx, [r14 - 0x2b]
jmp 0x1400055cb
lea r9, [rsp + 0x38]
lea rcx, [0x140001150]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
mov ebx, eax
test eax, eax
jns 0x140005656
mov rax, qword [0x140011038]
lea rdx, [0x140011038]
cmp rax, rdx
je 0x1400055f5
test byte [rax + 0x1c], 8
je 0x1400055f5
cmp byte [rax + 0x19], 2
jb 0x1400055f5
call fcn.140007e1c
mov edx, 0x55
mov rcx, qword [0x140011038]
mov r9d, eax
lea rax, [0x140001738]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140001d00]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
call fcn.140003248
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140005605
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140005615
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test ebx, ebx
js 0x140005624
mov eax, 0x80070057
test r15b, r15b
cmove ebx, eax
mov eax, ebx
mov rcx, qword [rbp + 0x570]
xor rcx, rsp
call fcn.14000e330
lea r11, [rsp + 0x680]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov rax, qword [rsp + 0x30]
mov rcx, rdi
inc rcx
cmp word [rax + rcx*2], r12w
jne 0x14000565e
mov rax, qword [rsp + 0x38]
inc rdi
cmp word [rax + rdi*2], r12w
jne 0x14000566d
mov esi, 0x104
cmp ecx, esi
jg 0x1400056af
mov rax, qword [rsp + 0x30]
mov dword [rsp + 0x28], ecx
mov r9d, ecx
lea r8, [rsp + 0x40]
mov edx, r13d
mov ecx, r14d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_CompareStringW]
cmp eax, 2
jne 0x1400056af
mov r15b, r13b
jmp 0x1400055f5
cmp edi, esi
jg 0x1400055f5
mov rax, qword [rsp + 0x38]
lea r8, [rsp + 0x40]
mov r9d, edi
mov edx, r13d
mov ecx, r14d
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_CompareStringW]
movzx r15d, r15b
cmp eax, 2
cmove r15d, r13d
jmp 0x1400055f5
call fcn.14000e658
int3