Function at 0x14004a1d4
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.140105bf0
sub rsp, rax
mov rax, qword [0x14016a900]
xor rax, rsp
mov qword [rbp + 0x5010], rax
xor r13d, r13d
mov r12b, r8b
cmp byte [0x1401724a0], r13b
mov rdi, rdx
mov rsi, rcx
jne 0x14004a24d
cmp word [rdx], 0x2e
jne 0x14004a24d
movzx ecx, word [rdi + 2]
call fcn.140086f60
test al, al
je 0x14004a23c
add rdi, 4
cmp word [rdi], 0x2e
je 0x14004a225
cmp word [rdi], 0x2e
jne 0x14004a24d
cmp word [rdi + 2], r13w
je 0x14004a771
mov r8d, 0x800
lea rdx, [rbp + 0x2f40]
mov rcx, rdi
call fcn.14008696c
cmp word [rdi], 0x5c
jne 0x14004a274
cmp word [rdi + 2], r13w
jne 0x14004a274
mov r15d, r13d
jmp 0x14004a27b
sbb r15d, r15d
or r15d, 1
mov rcx, rdi
call fcn.1400876c8
mov rbx, rax
movzx ecx, word [rax]
call fcn.140086f60
test al, al
je 0x14004a2c0
test r15d, r15d
je 0x14004a2c0
lea r8, [rbp + 0x2f40]
mov rcx, rdi
sub r8, rdi
movzx eax, word [rcx]
movzx edx, word [rcx + r8]
sub eax, edx
jne 0x14004a2b8
add rcx, 2
test edx, edx
jne 0x14004a2a4
test eax, eax
je 0x14004a2c0
mov word [rbx], r13w
movzx eax, word [rdi]
mov ebx, r13d
mov r14, rdi
jmp 0x14004a308
cmp ax, 0x2e
jne 0x14004a30d
cmp word [r14 + 2], ax
jne 0x14004a30d
movzx ecx, word [r14 + 4]
call fcn.140086f60
test al, al
jne 0x14004a2ed
cmp word [r14 + 4], r13w
jne 0x14004a30d
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 0x14004a2cb
cmp byte [0x1401724a0], r13b
je 0x14004a33b
test r12b, r12b
je 0x14004a33b
mov rcx, rdi
call fcn.140086e6c
test al, al
jne 0x14004a333
mov rcx, rdi
call fcn.140086e3c
test al, al
je 0x14004a33b
mov rcx, rsi
call fcn.14004a7f0
cmp byte [rsi + 0x107e], r13b
je 0x14004a36d
mov edx, dword [rsi + 0x2280]
mov eax, ebx
cmp ebx, edx
cmovge eax, edx
test r15d, r15d
cmovne edx, eax
test edx, edx
je 0x14004a36d
xor r8d, r8d
mov rcx, rsi
call fcn.14004b9b4
xor edx, edx
jmp 0x14004a769
mov byte [rsi + 0x107e], r13b
cmp byte [0x1401724a0], r13b
je 0x14004a449
xor r8d, r8d
lea rdx, str.FlatView
lea rcx, str.FileList
call fcn.1400add30
test eax, eax
je 0x14004a3a3
test ebx, ebx
je 0x14004a771
mov r14d, 0x800
lea r15, [0x14019de40]
mov r8d, r14d
lea rdx, [rbp + 0x1f40]
mov rcx, r15
call fcn.140006c34
cmp word [rdi], 0x5c
jne 0x14004a3cf
cmp word [rdi + 2], r13w
je 0x14004a3f8
mov rdx, rdi
mov rcx, r15
call fcn.140008618
test al, al
je 0x14004a3f8
test ebx, ebx
lea rdx, [rbp + 0x1f40]
mov rcx, rsi
cmovle rdx, r13
call fcn.14004ea1c
jmp 0x14004a771
mov r8, r14
lea rdx, [rsp + 0x40]
mov rcx, r15
call fcn.140006578
lea rbx, [rsi + 0x1080]
mov r8, r14
mov rcx, rbx
lea rdx, [rsp + 0x40]
call fcn.14009ccc8
mov rcx, rbx
call fcn.140087740
mov rcx, rsi
call fcn.14004a7f0
test al, al
je 0x14004a771
lea rcx, [rsp + 0x40]
call fcn.1400876ec
mov rdx, rax
jmp 0x14004a769
lea r14, [rsi + 0x1080]
mov r8d, 0x800
mov rdx, r14
lea rcx, [rbp + 0x1f40]
call fcn.14009ccc8
mov rcx, r14
mov word [rsp + 0x40], r13w
call fcn.1400876c8
movzx ecx, word [r14]
mov r12, rax
call fcn.140086f60
test al, al
je 0x14004a584
movzx ecx, word [r12]
call fcn.140086f60
test al, al
je 0x14004a584
cmp r12, r14
jbe 0x14004a584
mov word [r12], r13w
jmp 0x14004a584
cmp byte [rsi + 0x107e], r13b
jne 0x14004a58c
mov rcx, r14
call fcn.140086e3c
test al, al
je 0x14004a540
movzx ecx, word [rsi + 0x1084]
call fcn.140086f60
test al, al
je 0x14004a540
cmp word [rsi + 0x1086], r13w
jne 0x14004a540
cmp dword [rsi + 0x2280], r13d
jle 0x14004a4f1
mov byte [rsi + 0x107e], 1
jmp 0x14004a563
mov rcx, qword [rsi + 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, [0x1401a0cb0]
call fcn.14005115c
mov rcx, qword [0x1401dcb78]
mov rdx, qword [rsp + 0x30]
mov rax, qword [rcx]
mov rax, qword [rax + 0x28]
call qword [case.0x140092c6b.0]
jmp 0x14004a563
mov rcx, r14
call fcn.1400876ec
mov rdx, rax
lea rcx, [rsp + 0x40]
mov r8d, 0x800
call fcn.14009ccc8
mov rcx, r14
call fcn.140087740
dec ebx
jmp 0x14004a56b
add rdi, 2
movzx eax, word [rdi]
cmp ax, 0x2e
je 0x14004a567
movzx ecx, ax
call fcn.140086f60
test al, al
je 0x14004a584
add rdi, 2
test ebx, ebx
jg 0x14004a4ac
test r15d, r15d
jne 0x14004a5b2
mov r15d, 0x800
lea rdx, [rbp + 0xf40]
mov r8d, r15d
mov rcx, r14
call fcn.14008696c
lea rdx, [rbp + 0xf40]
jmp 0x14004a5c7
mov rcx, rdi
call fcn.140086e6c
test al, al
je 0x14004a5d4
mov r15d, 0x800
mov rdx, rdi
mov r8, r15
mov rcx, r14
call fcn.14009ccc8
jmp 0x14004a63d
mov rcx, rdi
call fcn.140086e3c
test al, al
je 0x14004a618
movzx ecx, word [rdi]
call fcn.14009fd48
movzx ecx, word [r14]
mov ebx, eax
call fcn.14009fd48
mov r15d, 0x800
cmp ebx, eax
je 0x14004a60b
mov r8d, r15d
mov rdx, r14
mov rcx, rdi
call fcn.1400d6b7c
mov rdx, r15
mov rcx, r14
call fcn.140085ac8
jmp 0x14004a63d
mov r15d, 0x800
cmp word [rdi], r13w
je 0x14004a63d
mov edx, r15d
mov rcx, r14
call fcn.140085ac8
mov r8d, r15d
mov rdx, rdi
mov rcx, r14
call fcn.14009cca0
mov rcx, r14
call fcn.140086940
mov ebx, eax
cmp eax, 0xffffffff
je 0x14004a66d
call fcn.1400d5988
bt eax, ebx
jb 0x14004a66d
mov r8, r15
lea rdx, [rbp + 0x1f40]
mov rcx, r14
call fcn.14009ccc8
jmp 0x14004a771
cmp byte [rsi + 0x107e], r13b
jne 0x14004a756
mov rcx, r14
call fcn.140076738
test al, al
jne 0x14004a756
mov r8d, r15d
lea rdx, [rbp + 0xf40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x7fe
ja 0x14004a6c2
lea rcx, [rbp + 0xf40]
call fcn.140076738
test al, al
je 0x14004a6c2
lea rdx, [rbp + 0xf40]
jmp 0x14004a74b
cmp word [r14], 0x5c
jne 0x14004a6fd
cmp word [rsi + 0x1082], 0x5c
jne 0x14004a6fd
lea rcx, [rsi + 0x1084]
lea rdx, [0x140130628]
call fcn.140116560
test rax, rax
jne 0x14004a6fd
cmp dword [rsi + 0x2280], r13d
jle 0x14004a6fd
mov byte [rsi + 0x107e], 1
jmp 0x14004a756
mov ecx, 0x6c
call fcn.140096d58
mov r8, rax
lea rcx, [rbp + 0x3f40]
mov r9, r14
mov edx, 0x864
call fcn.1400027fc
mov ecx, 0x66
call fcn.140096d58
mov rcx, qword [0x140172470]
lea rdx, [rbp + 0x3f40]
mov r9d, 0x10
mov r8, rax
call fcn.1400d7004
lea rdx, [rbp + 0x1f40]
mov r8, r15
mov rcx, r14
call fcn.14009ccc8
movzx eax, word [rsp + 0x40]
neg ax
lea rax, [rsp + 0x40]
sbb rdx, rdx
and rdx, rax
mov rcx, rsi
call fcn.14004f9d4
mov rcx, qword [rbp + 0x5010]
xor rcx, rsp
call fcn.140105c50
mov rbx, qword [rsp + 0x5170]
add rsp, 0x5120
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret