Function at 0x1400565c0
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.14011a0f0
sub rsp, rax
mov rax, qword [0x140183c48]
xor rax, rsp
mov qword [rbp + 0x5010], rax
xor r13d, r13d
mov r12b, r8b
cmp byte [0x14018b804], r13b
mov rdi, rdx
mov rsi, rcx
jne 0x140056639
cmp word [rdx], 0x2e
jne 0x140056639
movzx ecx, word [rdi + 2]
call fcn.140096898
test al, al
je 0x140056628
add rdi, 4
cmp word [rdi], 0x2e
je 0x140056611
cmp word [rdi], 0x2e
jne 0x140056639
cmp word [rdi + 2], r13w
je 0x140056b5d
mov r8d, 0x800
lea rdx, [rbp + 0x2f40]
mov rcx, rdi
call fcn.1400962c0
cmp word [rdi], 0x5c
jne 0x140056660
cmp word [rdi + 2], r13w
jne 0x140056660
mov r15d, r13d
jmp 0x140056667
sbb r15d, r15d
or r15d, 1
mov rcx, rdi
call fcn.140097008
mov rbx, rax
movzx ecx, word [rax]
call fcn.140096898
test al, al
je 0x1400566ac
test r15d, r15d
je 0x1400566ac
lea r8, [rbp + 0x2f40]
mov rcx, rdi
sub r8, rdi
movzx eax, word [rcx]
movzx edx, word [rcx + r8]
sub eax, edx
jne 0x1400566a4
add rcx, 2
test edx, edx
jne 0x140056690
test eax, eax
je 0x1400566ac
mov word [rbx], r13w
movzx eax, word [rdi]
mov ebx, r13d
mov r14, rdi
jmp 0x1400566f4
cmp ax, 0x2e
jne 0x1400566f9
cmp word [r14 + 2], ax
jne 0x1400566f9
movzx ecx, word [r14 + 4]
call fcn.140096898
test al, al
jne 0x1400566d9
cmp word [r14 + 4], r13w
jne 0x1400566f9
movzx eax, word [r14 + 4]
neg ax
sbb rcx, rcx
and ecx, 2
add rcx, 4
add r14, rcx
inc ebx
movzx eax, word [r14]
test ax, ax
jne 0x1400566b7
cmp byte [0x14018b804], r13b
je 0x140056727
test r12b, r12b
je 0x140056727
mov rcx, rdi
call fcn.1400967c0
test al, al
jne 0x14005671f
mov rcx, rdi
call fcn.140096790
test al, al
je 0x140056727
mov rcx, rsi
call fcn.140056be4
cmp byte [rsi + 0x106e], r13b
je 0x140056759
mov edx, dword [rsi + 0x2270]
mov eax, ebx
cmp ebx, edx
cmovge eax, edx
test r15d, r15d
cmovne edx, eax
test edx, edx
je 0x140056759
xor r8d, r8d
mov rcx, rsi
call fcn.140057dbc
xor edx, edx
jmp 0x140056b55
mov byte [rsi + 0x106e], r13b
cmp byte [0x14018b804], r13b
je 0x140056835
xor r8d, r8d
lea rdx, str.FlatView
lea rcx, str.FileList
call fcn.1400bd490
test eax, eax
je 0x14005678f
test ebx, ebx
je 0x140056b5d
mov r14d, 0x800
lea r15, [0x1401bb630]
mov r8d, r14d
lea rdx, [rbp + 0x1f40]
mov rcx, r15
call fcn.140009f04
cmp word [rdi], 0x5c
jne 0x1400567bb
cmp word [rdi + 2], r13w
je 0x1400567e4
mov rdx, rdi
mov rcx, r15
call fcn.14000baa8
test al, al
je 0x1400567e4
test ebx, ebx
lea rdx, [rbp + 0x1f40]
mov rcx, rsi
cmovle rdx, r13
call fcn.14005adcc
jmp 0x140056b5d
mov r8, r14
lea rdx, [rsp + 0x40]
mov rcx, r15
call fcn.14000985c
lea rbx, [rsi + 0x1070]
mov r8, r14
mov rcx, rbx
lea rdx, [rsp + 0x40]
call fcn.1400ac908
mov rcx, rbx
call fcn.140097080
mov rcx, rsi
call fcn.140056be4
test al, al
je 0x140056b5d
lea rcx, [rsp + 0x40]
call fcn.14009702c
mov rdx, rax
jmp 0x140056b55
lea r14, [rsi + 0x1070]
mov r8d, 0x800
mov rdx, r14
lea rcx, [rbp + 0x1f40]
call fcn.1400ac908
mov rcx, r14
mov word [rsp + 0x40], r13w
call fcn.140097008
movzx ecx, word [r14]
mov r12, rax
call fcn.140096898
test al, al
je 0x140056970
movzx ecx, word [r12]
call fcn.140096898
test al, al
je 0x140056970
cmp r12, r14
jbe 0x140056970
mov word [r12], r13w
jmp 0x140056970
cmp byte [rsi + 0x106e], r13b
jne 0x140056978
mov rcx, r14
call fcn.140096790
test al, al
je 0x14005692c
movzx ecx, word [rsi + 0x1074]
call fcn.140096898
test al, al
je 0x14005692c
cmp word [rsi + 0x1076], r13w
jne 0x14005692c
cmp dword [rsi + 0x2270], r13d
jle 0x1400568dd
mov byte [rsi + 0x106e], 1
jmp 0x14005694f
mov rcx, qword [rsi + 0x50]
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, [0x1401be3f0]
call fcn.14005d3ac
mov rcx, qword [0x1401f8cf8]
mov rdx, qword [rsp + 0x30]
mov rax, qword [rcx]
mov rax, qword [rax + 0x28]
call qword [case.0x1400a26d7.0]
jmp 0x14005694f
mov rcx, r14
call fcn.14009702c
mov rdx, rax
lea rcx, [rsp + 0x40]
mov r8d, 0x800
call fcn.1400ac908
mov rcx, r14
call fcn.140097080
dec ebx
jmp 0x140056957
add rdi, 2
movzx eax, word [rdi]
cmp ax, 0x2e
je 0x140056953
movzx ecx, ax
call fcn.140096898
test al, al
je 0x140056970
add rdi, 2
test ebx, ebx
jg 0x140056898
test r15d, r15d
jne 0x14005699e
mov r15d, 0x800
lea rdx, [rbp + 0xf40]
mov r8d, r15d
mov rcx, r14
call fcn.1400962c0
lea rdx, [rbp + 0xf40]
jmp 0x1400569b3
mov rcx, rdi
call fcn.1400967c0
test al, al
je 0x1400569c0
mov r15d, 0x800
mov rdx, rdi
mov r8, r15
mov rcx, r14
call fcn.1400ac908
jmp 0x140056a29
mov rcx, rdi
call fcn.140096790
test al, al
je 0x140056a04
movzx ecx, word [rdi]
call fcn.1400af988
movzx ecx, word [r14]
mov ebx, eax
call fcn.1400af988
mov r15d, 0x800
cmp ebx, eax
je 0x1400569f7
mov r8d, r15d
mov rdx, r14
mov rcx, rdi
call fcn.1400e997c
mov rdx, r15
mov rcx, r14
call fcn.1400953f0
jmp 0x140056a29
mov r15d, 0x800
cmp word [rdi], r13w
je 0x140056a29
mov edx, r15d
mov rcx, r14
call fcn.1400953f0
mov r8d, r15d
mov rdx, rdi
mov rcx, r14
call fcn.1400ac8e0
mov rcx, r14
call fcn.140096294
mov ebx, eax
cmp eax, 0xffffffff
je 0x140056a59
call fcn.1400e8738
bt eax, ebx
jb 0x140056a59
mov r8, r15
lea rdx, [rbp + 0x1f40]
mov rcx, r14
call fcn.1400ac908
jmp 0x140056b5d
cmp byte [rsi + 0x106e], r13b
jne 0x140056b42
mov rcx, r14
call fcn.140085aac
test al, al
jne 0x140056b42
mov r8d, r15d
lea rdx, [rbp + 0xf40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x7fe
ja 0x140056aae
lea rcx, [rbp + 0xf40]
call fcn.140085aac
test al, al
je 0x140056aae
lea rdx, [rbp + 0xf40]
jmp 0x140056b37
cmp word [r14], 0x5c
jne 0x140056ae9
cmp word [rsi + 0x1072], 0x5c
jne 0x140056ae9
lea rcx, [rsi + 0x1074]
lea rdx, [0x1401466e8]
call fcn.14012b2f0
test rax, rax
jne 0x140056ae9
cmp dword [rsi + 0x2270], r13d
jle 0x140056ae9
mov byte [rsi + 0x106e], 1
jmp 0x140056b42
mov ecx, 0x6c
call fcn.1400a685c
mov r8, rax
lea rcx, [rbp + 0x3f40]
mov r9, r14
mov edx, 0x864
call fcn.140004dcc
mov ecx, 0x66
call fcn.1400a685c
mov rcx, qword [0x14018b7d0]
lea rdx, [rbp + 0x3f40]
mov r9d, 0x10
mov r8, rax
call fcn.1400e9e04
lea rdx, [rbp + 0x1f40]
mov r8, r15
mov rcx, r14
call fcn.1400ac908
movzx eax, word [rsp + 0x40]
neg ax
lea rax, [rsp + 0x40]
sbb rdx, rdx
and rdx, rax
mov rcx, rsi
call fcn.14005bc20
mov rcx, qword [rbp + 0x5010]
xor rcx, rsp
call fcn.14011a150
mov rbx, qword [rsp + 0x5170]
add rsp, 0x5120
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret