Function at 0x140054860
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.140117f40
sub rsp, rax
mov rax, qword [0x140181c48]
xor rax, rsp
mov qword [rbp + 0x5010], rax
xor r13d, r13d
mov r12b, r8b
cmp byte [0x140189804], r13b
mov rdi, rdx
mov rsi, rcx
jne 0x1400548d9
cmp word [rdx], 0x2e
jne 0x1400548d9
movzx ecx, word [rdi + 2]
call fcn.1400949c0
test al, al
je 0x1400548c8
add rdi, 4
cmp word [rdi], 0x2e
je 0x1400548b1
cmp word [rdi], 0x2e
jne 0x1400548d9
cmp word [rdi + 2], r13w
je 0x140054dfd
mov r8d, 0x800
lea rdx, [rbp + 0x2f40]
mov rcx, rdi
call fcn.1400943e8
cmp word [rdi], 0x5c
jne 0x140054900
cmp word [rdi + 2], r13w
jne 0x140054900
mov r15d, r13d
jmp 0x140054907
sbb r15d, r15d
or r15d, 1
mov rcx, rdi
call fcn.140095130
mov rbx, rax
movzx ecx, word [rax]
call fcn.1400949c0
test al, al
je 0x14005494c
test r15d, r15d
je 0x14005494c
lea r8, [rbp + 0x2f40]
mov rcx, rdi
sub r8, rdi
movzx eax, word [rcx]
movzx edx, word [rcx + r8]
sub eax, edx
jne 0x140054944
add rcx, 2
test edx, edx
jne 0x140054930
test eax, eax
je 0x14005494c
mov word [rbx], r13w
movzx eax, word [rdi]
mov ebx, r13d
mov r14, rdi
jmp 0x140054994
cmp ax, 0x2e
jne 0x140054999
cmp word [r14 + 2], ax
jne 0x140054999
movzx ecx, word [r14 + 4]
call fcn.1400949c0
test al, al
jne 0x140054979
cmp word [r14 + 4], r13w
jne 0x140054999
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 0x140054957
cmp byte [0x140189804], r13b
je 0x1400549c7
test r12b, r12b
je 0x1400549c7
mov rcx, rdi
call fcn.1400948e8
test al, al
jne 0x1400549bf
mov rcx, rdi
call fcn.1400948b8
test al, al
je 0x1400549c7
mov rcx, rsi
call fcn.140054e7c
cmp byte [rsi + 0x106e], r13b
je 0x1400549f9
mov edx, dword [rsi + 0x2270]
mov eax, ebx
cmp ebx, edx
cmovge eax, edx
test r15d, r15d
cmovne edx, eax
test edx, edx
je 0x1400549f9
xor r8d, r8d
mov rcx, rsi
call fcn.14005604c
xor edx, edx
jmp 0x140054df5
mov byte [rsi + 0x106e], r13b
cmp byte [0x140189804], r13b
je 0x140054ad5
xor r8d, r8d
lea rdx, str.FlatView
lea rcx, str.FileList
call fcn.1400bb570
test eax, eax
je 0x140054a2f
test ebx, ebx
je 0x140054dfd
mov r14d, 0x800
lea r15, [0x1401b9630]
mov r8d, r14d
lea rdx, [rbp + 0x1f40]
mov rcx, r15
call fcn.140009e90
cmp word [rdi], 0x5c
jne 0x140054a5b
cmp word [rdi + 2], r13w
je 0x140054a84
mov rdx, rdi
mov rcx, r15
call fcn.14000ba34
test al, al
je 0x140054a84
test ebx, ebx
lea rdx, [rbp + 0x1f40]
mov rcx, rsi
cmovle rdx, r13
call fcn.14005902c
jmp 0x140054dfd
mov r8, r14
lea rdx, [rsp + 0x40]
mov rcx, r15
call fcn.1400097e8
lea rbx, [rsi + 0x1070]
mov r8, r14
mov rcx, rbx
lea rdx, [rsp + 0x40]
call fcn.1400aa9e4
mov rcx, rbx
call fcn.1400951a8
mov rcx, rsi
call fcn.140054e7c
test al, al
je 0x140054dfd
lea rcx, [rsp + 0x40]
call fcn.140095154
mov rdx, rax
jmp 0x140054df5
lea r14, [rsi + 0x1070]
mov r8d, 0x800
mov rdx, r14
lea rcx, [rbp + 0x1f40]
call fcn.1400aa9e4
mov rcx, r14
mov word [rsp + 0x40], r13w
call fcn.140095130
movzx ecx, word [r14]
mov r12, rax
call fcn.1400949c0
test al, al
je 0x140054c10
movzx ecx, word [r12]
call fcn.1400949c0
test al, al
je 0x140054c10
cmp r12, r14
jbe 0x140054c10
mov word [r12], r13w
jmp 0x140054c10
cmp byte [rsi + 0x106e], r13b
jne 0x140054c18
mov rcx, r14
call fcn.1400948b8
test al, al
je 0x140054bcc
movzx ecx, word [rsi + 0x1074]
call fcn.1400949c0
test al, al
je 0x140054bcc
cmp word [rsi + 0x1076], r13w
jne 0x140054bcc
cmp dword [rsi + 0x2270], r13d
jle 0x140054b7d
mov byte [rsi + 0x106e], 1
jmp 0x140054bef
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, [0x1401bc3f0]
call fcn.14005b60c
mov rcx, qword [0x1401f6cf8]
mov rdx, qword [rsp + 0x30]
mov rax, qword [rcx]
mov rax, qword [rax + 0x28]
call qword [case.0x1400a07c7.0]
jmp 0x140054bef
mov rcx, r14
call fcn.140095154
mov rdx, rax
lea rcx, [rsp + 0x40]
mov r8d, 0x800
call fcn.1400aa9e4
mov rcx, r14
call fcn.1400951a8
dec ebx
jmp 0x140054bf7
add rdi, 2
movzx eax, word [rdi]
cmp ax, 0x2e
je 0x140054bf3
movzx ecx, ax
call fcn.1400949c0
test al, al
je 0x140054c10
add rdi, 2
test ebx, ebx
jg 0x140054b38
test r15d, r15d
jne 0x140054c3e
mov r15d, 0x800
lea rdx, [rbp + 0xf40]
mov r8d, r15d
mov rcx, r14
call fcn.1400943e8
lea rdx, [rbp + 0xf40]
jmp 0x140054c53
mov rcx, rdi
call fcn.1400948e8
test al, al
je 0x140054c60
mov r15d, 0x800
mov rdx, rdi
mov r8, r15
mov rcx, r14
call fcn.1400aa9e4
jmp 0x140054cc9
mov rcx, rdi
call fcn.1400948b8
test al, al
je 0x140054ca4
movzx ecx, word [rdi]
call fcn.1400ada68
movzx ecx, word [r14]
mov ebx, eax
call fcn.1400ada68
mov r15d, 0x800
cmp ebx, eax
je 0x140054c97
mov r8d, r15d
mov rdx, r14
mov rcx, rdi
call fcn.1400e77fc
mov rdx, r15
mov rcx, r14
call fcn.140093540
jmp 0x140054cc9
mov r15d, 0x800
cmp word [rdi], r13w
je 0x140054cc9
mov edx, r15d
mov rcx, r14
call fcn.140093540
mov r8d, r15d
mov rdx, rdi
mov rcx, r14
call fcn.1400aa9bc
mov rcx, r14
call fcn.1400943bc
mov ebx, eax
cmp eax, 0xffffffff
je 0x140054cf9
call fcn.1400e65b8
bt eax, ebx
jb 0x140054cf9
mov r8, r15
lea rdx, [rbp + 0x1f40]
mov rcx, r14
call fcn.1400aa9e4
jmp 0x140054dfd
cmp byte [rsi + 0x106e], r13b
jne 0x140054de2
mov rcx, r14
call fcn.140083dd0
test al, al
jne 0x140054de2
mov r8d, r15d
lea rdx, [rbp + 0xf40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x7fe
ja 0x140054d4e
lea rcx, [rbp + 0xf40]
call fcn.140083dd0
test al, al
je 0x140054d4e
lea rdx, [rbp + 0xf40]
jmp 0x140054dd7
cmp word [r14], 0x5c
jne 0x140054d89
cmp word [rsi + 0x1072], 0x5c
jne 0x140054d89
lea rcx, [rsi + 0x1074]
lea rdx, [0x1401446c8]
call fcn.140129140
test rax, rax
jne 0x140054d89
cmp dword [rsi + 0x2270], r13d
jle 0x140054d89
mov byte [rsi + 0x106e], 1
jmp 0x140054de2
mov ecx, 0x6c
call fcn.1400a493c
mov r8, rax
lea rcx, [rbp + 0x3f40]
mov r9, r14
mov edx, 0x864
call fcn.140004dcc
mov ecx, 0x66
call fcn.1400a493c
mov rcx, qword [0x1401897d0]
lea rdx, [rbp + 0x3f40]
mov r9d, 0x10
mov r8, rax
call fcn.1400e7c84
lea rdx, [rbp + 0x1f40]
mov r8, r15
mov rcx, r14
call fcn.1400aa9e4
movzx eax, word [rsp + 0x40]
neg ax
lea rax, [rsp + 0x40]
sbb rdx, rdx
and rdx, rax
mov rcx, rsi
call fcn.140059e80
mov rcx, qword [rbp + 0x5010]
xor rcx, rsp
call fcn.140117fa0
mov rbx, qword [rsp + 0x5170]
add rsp, 0x5120
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret