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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x5020]
mov eax, 0x5120
call fcn.1400f31b0
sub rsp, rax
mov rax, qword [0x1401542d0]
xor rax, rsp
mov qword [rbp + 0x5010], rax
xor r13d, r13d
mov r15b, r8b
cmp byte [0x14015bbe2], r13b
mov rbx, rdx
mov rdi, rcx
jne 0x14003d409
cmp word [rdx], 0x2e
jne 0x14003d409
movzx ecx, word [rbx + 2]
call fcn.1400796a8
test al, al
je 0x14003d3f8
add rbx, 4
cmp word [rbx], 0x2e
je 0x14003d3e1
cmp word [rbx], 0x2e
jne 0x14003d409
cmp word [rbx + 2], r13w
je 0x14003d85f
mov r8d, 0x800
lea rdx, [rbp + 0x2f40]
mov rcx, rbx
call fcn.1400790ac
movzx ecx, word [rbx]
movzx eax, word [0x14011105c]
sub ecx, eax
jne 0x14003d439
movzx ecx, word [rbx + 2]
movzx eax, word [0x14011105e]
sub ecx, eax
test ecx, ecx
mov rcx, rbx
sete r12b
call fcn.140079c38
mov rsi, rax
movzx ecx, word [rax]
call fcn.1400796a8
test al, al
je 0x14003d484
test r12b, r12b
jne 0x14003d484
lea r8, [rbp + 0x2f40]
mov rcx, rbx
sub r8, rbx
movzx eax, word [rcx]
movzx edx, word [rcx + r8]
sub eax, edx
jne 0x14003d47c
add rcx, 2
test edx, edx
jne 0x14003d468
test eax, eax
je 0x14003d484
mov word [rsi], r13w
mov r14d, r13d
mov rsi, rbx
cmp word [rbx], r13w
je 0x14003d4ce
cmp word [rsi], 0x2e
jne 0x14003d4ce
cmp word [rsi + 2], 0x2e
jne 0x14003d4ce
movzx ecx, word [rsi + 4]
call fcn.1400796a8
test al, al
jne 0x14003d4b1
cmp word [rsi + 4], r13w
jne 0x14003d4ce
movzx eax, word [rsi + 4]
neg ax
sbb rcx, rcx
inc r14d
and ecx, 2
add rcx, 4
add rsi, rcx
cmp word [rsi], r13w
jne 0x14003d490
cmp byte [0x14015bbe2], r13b
je 0x14003d4f0
test r15b, r15b
je 0x14003d4f0
mov rcx, rbx
call fcn.1400795a8
test al, al
je 0x14003d4f0
mov rcx, rdi
call fcn.14003d8e0
cmp byte [rdi + 0x1082], r13b
je 0x14003d524
mov eax, dword [rdi + 0x2288]
cmp r14d, eax
mov edx, eax
cmovl edx, r14d
test r12b, r12b
cmovne edx, eax
test edx, edx
je 0x14003d524
xor r8d, r8d
mov rcx, rdi
call fcn.14003eaac
xor edx, edx
jmp 0x14003d857
mov byte [rdi + 0x1082], r13b
cmp byte [0x14015bbe2], r13b
je 0x14003d60d
xor r8d, r8d
lea rdx, str.FlatView
lea rcx, str.FileList
call fcn.1400a0584
test eax, eax
je 0x14003d55b
test r14d, r14d
je 0x14003d85f
mov esi, 0x800
lea r15, [0x14017e620]
mov r8d, esi
lea rdx, [rbp + 0x1f40]
mov rcx, r15
call fcn.1400054f8
movzx eax, word [rbx]
cmp ax, word [0x14011105c]
jne 0x14003d592
movzx eax, word [rbx + 2]
cmp ax, word [0x14011105e]
je 0x14003d5bc
mov rdx, rbx
mov rcx, r15
call fcn.140006d94
test al, al
je 0x14003d5bc
test r14d, r14d
lea rdx, [rbp + 0x1f40]
mov rcx, rdi
cmovle rdx, r13
call fcn.140041acc
jmp 0x14003d85f
mov r8, rsi
lea rdx, [rsp + 0x40]
mov rcx, r15
call fcn.140005120
lea rbx, [rdi + 0x1084]
mov r8, rsi
mov rcx, rbx
lea rdx, [rsp + 0x40]
call fcn.14008eff0
mov rcx, rbx
call fcn.140079cb0
mov rcx, rdi
call fcn.14003d8e0
test al, al
je 0x14003d85f
lea rcx, [rsp + 0x40]
call fcn.140079c5c
mov rdx, rax
jmp 0x14003d857
lea rsi, [rdi + 0x1084]
mov r15d, 0x800
mov r8d, r15d
lea rcx, [rbp + 0x1f40]
mov rdx, rsi
call fcn.14008eff0
mov word [rsp + 0x40], r13w
jmp 0x14003d703
cmp byte [rdi + 0x1082], r13b
jne 0x14003d70c
mov rcx, rsi
call fcn.140079574
test al, al
je 0x14003d6c4
movzx ecx, word [rdi + 0x1088]
call fcn.1400796a8
test al, al
je 0x14003d6c4
cmp word [rdi + 0x108a], r13w
jne 0x14003d6c4
cmp dword [rdi + 0x2288], r13d
jle 0x14003d67c
mov byte [rdi + 0x1082], 1
jmp 0x14003d6e4
mov rcx, qword [rdi + 0x60]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x30], r13
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea edx, [r9 + 0x11]
call qword [sym.imp.SHELL32.dll_SHGetFolderLocation]
mov rdx, qword [rsp + 0x30]
lea rcx, [0x140181400]
call fcn.140043ee0
mov rcx, qword [0x1401bd670]
mov rdx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x28]
jmp 0x14003d6e4
mov rcx, rsi
call fcn.140079c5c
mov rdx, rax
lea rcx, [rsp + 0x40]
mov r8, r15
call fcn.14008eff0
mov rcx, rsi
call fcn.140079cb0
dec r14d
jmp 0x14003d6ed
add rbx, 2
cmp word [rbx], 0x2e
je 0x14003d6e9
movzx ecx, word [rbx]
call fcn.1400796a8
test al, al
je 0x14003d703
add rbx, 2
test r14d, r14d
jg 0x14003d637
test r12b, r12b
je 0x14003d72c
mov r8, r15
lea rdx, [rbp + 0xf40]
mov rcx, rsi
call fcn.1400790ac
lea rdx, [rbp + 0xf40]
jmp 0x14003d73b
mov rcx, rbx
call fcn.1400795a8
test al, al
je 0x14003d748
mov rdx, rbx
mov r8, r15
mov rcx, rsi
call fcn.14008eff0
jmp 0x14003d767
cmp word [rbx], r13w
je 0x14003d767
mov rdx, r15
mov rcx, rsi
call fcn.1400782a4
mov r8, r15
mov rdx, rbx
mov rcx, rsi
call fcn.14008efc8
mov rcx, rsi
call fcn.140079080
mov r14d, eax
cmp eax, 0xffffffff
je 0x14003d799
call fcn.1400c6c10
bt eax, r14d
jb 0x14003d799
mov r8, r15
lea rdx, [rbp + 0x1f40]
mov rcx, rsi
call fcn.14008eff0
jmp 0x14003d85f
cmp byte [rdi + 0x1082], r13b
jne 0x14003d844
mov rcx, rsi
call fcn.140069278
test al, al
jne 0x14003d844
mov r8d, r15d
lea rdx, [rbp + 0xf40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x7fe
ja 0x14003d7eb
lea rcx, [rbp + 0xf40]
call fcn.140069278
test al, al
je 0x14003d7eb
lea rdx, [rbp + 0xf40]
jmp 0x14003d839
mov ecx, 0x6c
call fcn.140088ebc
mov r8, rax
lea rcx, [rbp + 0x3f40]
mov r9, rsi
mov edx, 0x864
call fcn.140002694
mov ecx, 0x66
call fcn.140088ebc
mov rcx, qword [0x14015bc78]
lea rdx, [rbp + 0x3f40]
mov r8, rax
mov r9d, 0x10
call fcn.1400c81a0
lea rdx, [rbp + 0x1f40]
mov r8, r15
mov rcx, rsi
call fcn.14008eff0
movzx eax, word [rsp + 0x40]
neg ax
lea rax, [rsp + 0x40]
sbb rdx, rdx
and rdx, rax
mov rcx, rdi
call fcn.140042678
mov rcx, qword [rbp + 0x5010]
xor rcx, rsp
call fcn.1400f3220
mov rbx, qword [rsp + 0x5170]
add rsp, 0x5120
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret