Function at 0x140056060
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.140119910
sub rsp, rax
mov rax, qword [0x140182c48]
xor rax, rsp
mov qword [rbp + 0x5010], rax
xor r13d, r13d
mov r12b, r8b
cmp byte [0x14018a804], r13b
mov rdi, rdx
mov rsi, rcx
jne 0x1400560d9
cmp word [rdx], 0x2e
jne 0x1400560d9
movzx ecx, word [rdi + 2]
call fcn.1400961b8
test al, al
je 0x1400560c8
add rdi, 4
cmp word [rdi], 0x2e
je 0x1400560b1
cmp word [rdi], 0x2e
jne 0x1400560d9
cmp word [rdi + 2], r13w
je 0x1400565fd
mov r8d, 0x800
lea rdx, [rbp + 0x2f40]
mov rcx, rdi
call fcn.140095be0
cmp word [rdi], 0x5c
jne 0x140056100
cmp word [rdi + 2], r13w
jne 0x140056100
mov r15d, r13d
jmp 0x140056107
sbb r15d, r15d
or r15d, 1
mov rcx, rdi
call fcn.140096928
mov rbx, rax
movzx ecx, word [rax]
call fcn.1400961b8
test al, al
je 0x14005614c
test r15d, r15d
je 0x14005614c
lea r8, [rbp + 0x2f40]
mov rcx, rdi
sub r8, rdi
movzx eax, word [rcx]
movzx edx, word [rcx + r8]
sub eax, edx
jne 0x140056144
add rcx, 2
test edx, edx
jne 0x140056130
test eax, eax
je 0x14005614c
mov word [rbx], r13w
movzx eax, word [rdi]
mov ebx, r13d
mov r14, rdi
jmp 0x140056194
cmp ax, 0x2e
jne 0x140056199
cmp word [r14 + 2], ax
jne 0x140056199
movzx ecx, word [r14 + 4]
call fcn.1400961b8
test al, al
jne 0x140056179
cmp word [r14 + 4], r13w
jne 0x140056199
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 0x140056157
cmp byte [0x14018a804], r13b
je 0x1400561c7
test r12b, r12b
je 0x1400561c7
mov rcx, rdi
call fcn.1400960e0
test al, al
jne 0x1400561bf
mov rcx, rdi
call fcn.1400960b0
test al, al
je 0x1400561c7
mov rcx, rsi
call fcn.140056684
cmp byte [rsi + 0x106e], r13b
je 0x1400561f9
mov edx, dword [rsi + 0x2270]
mov eax, ebx
cmp ebx, edx
cmovge eax, edx
test r15d, r15d
cmovne edx, eax
test edx, edx
je 0x1400561f9
xor r8d, r8d
mov rcx, rsi
call fcn.14005785c
xor edx, edx
jmp 0x1400565f5
mov byte [rsi + 0x106e], r13b
cmp byte [0x14018a804], r13b
je 0x1400562d5
xor r8d, r8d
lea rdx, str.FlatView
lea rcx, str.FileList
call fcn.1400bcdb0
test eax, eax
je 0x14005622f
test ebx, ebx
je 0x1400565fd
mov r14d, 0x800
lea r15, [0x1401ba630]
mov r8d, r14d
lea rdx, [rbp + 0x1f40]
mov rcx, r15
call fcn.140009ef0
cmp word [rdi], 0x5c
jne 0x14005625b
cmp word [rdi + 2], r13w
je 0x140056284
mov rdx, rdi
mov rcx, r15
call fcn.14000ba94
test al, al
je 0x140056284
test ebx, ebx
lea rdx, [rbp + 0x1f40]
mov rcx, rsi
cmovle rdx, r13
call fcn.14005a86c
jmp 0x1400565fd
mov r8, r14
lea rdx, [rsp + 0x40]
mov rcx, r15
call fcn.140009848
lea rbx, [rsi + 0x1070]
mov r8, r14
mov rcx, rbx
lea rdx, [rsp + 0x40]
call fcn.1400ac228
mov rcx, rbx
call fcn.1400969a0
mov rcx, rsi
call fcn.140056684
test al, al
je 0x1400565fd
lea rcx, [rsp + 0x40]
call fcn.14009694c
mov rdx, rax
jmp 0x1400565f5
lea r14, [rsi + 0x1070]
mov r8d, 0x800
mov rdx, r14
lea rcx, [rbp + 0x1f40]
call fcn.1400ac228
mov rcx, r14
mov word [rsp + 0x40], r13w
call fcn.140096928
movzx ecx, word [r14]
mov r12, rax
call fcn.1400961b8
test al, al
je 0x140056410
movzx ecx, word [r12]
call fcn.1400961b8
test al, al
je 0x140056410
cmp r12, r14
jbe 0x140056410
mov word [r12], r13w
jmp 0x140056410
cmp byte [rsi + 0x106e], r13b
jne 0x140056418
mov rcx, r14
call fcn.1400960b0
test al, al
je 0x1400563cc
movzx ecx, word [rsi + 0x1074]
call fcn.1400961b8
test al, al
je 0x1400563cc
cmp word [rsi + 0x1076], r13w
jne 0x1400563cc
cmp dword [rsi + 0x2270], r13d
jle 0x14005637d
mov byte [rsi + 0x106e], 1
jmp 0x1400563ef
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, [0x1401bd3f0]
call fcn.14005ce4c
mov rcx, qword [0x1401f7cf8]
mov rdx, qword [rsp + 0x30]
mov rax, qword [rcx]
mov rax, qword [rax + 0x28]
call qword [case.0x1400a1ff7.0]
jmp 0x1400563ef
mov rcx, r14
call fcn.14009694c
mov rdx, rax
lea rcx, [rsp + 0x40]
mov r8d, 0x800
call fcn.1400ac228
mov rcx, r14
call fcn.1400969a0
dec ebx
jmp 0x1400563f7
add rdi, 2
movzx eax, word [rdi]
cmp ax, 0x2e
je 0x1400563f3
movzx ecx, ax
call fcn.1400961b8
test al, al
je 0x140056410
add rdi, 2
test ebx, ebx
jg 0x140056338
test r15d, r15d
jne 0x14005643e
mov r15d, 0x800
lea rdx, [rbp + 0xf40]
mov r8d, r15d
mov rcx, r14
call fcn.140095be0
lea rdx, [rbp + 0xf40]
jmp 0x140056453
mov rcx, rdi
call fcn.1400960e0
test al, al
je 0x140056460
mov r15d, 0x800
mov rdx, rdi
mov r8, r15
mov rcx, r14
call fcn.1400ac228
jmp 0x1400564c9
mov rcx, rdi
call fcn.1400960b0
test al, al
je 0x1400564a4
movzx ecx, word [rdi]
call fcn.1400af2a8
movzx ecx, word [r14]
mov ebx, eax
call fcn.1400af2a8
mov r15d, 0x800
cmp ebx, eax
je 0x140056497
mov r8d, r15d
mov rdx, r14
mov rcx, rdi
call fcn.1400e908c
mov rdx, r15
mov rcx, r14
call fcn.140094d10
jmp 0x1400564c9
mov r15d, 0x800
cmp word [rdi], r13w
je 0x1400564c9
mov edx, r15d
mov rcx, r14
call fcn.140094d10
mov r8d, r15d
mov rdx, rdi
mov rcx, r14
call fcn.1400ac200
mov rcx, r14
call fcn.140095bb4
mov ebx, eax
cmp eax, 0xffffffff
je 0x1400564f9
call fcn.1400e7e48
bt eax, ebx
jb 0x1400564f9
mov r8, r15
lea rdx, [rbp + 0x1f40]
mov rcx, r14
call fcn.1400ac228
jmp 0x1400565fd
cmp byte [rsi + 0x106e], r13b
jne 0x1400565e2
mov rcx, r14
call fcn.1400855a0
test al, al
jne 0x1400565e2
mov r8d, r15d
lea rdx, [rbp + 0xf40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x7fe
ja 0x14005654e
lea rcx, [rbp + 0xf40]
call fcn.1400855a0
test al, al
je 0x14005654e
lea rdx, [rbp + 0xf40]
jmp 0x1400565d7
cmp word [r14], 0x5c
jne 0x140056589
cmp word [rsi + 0x1072], 0x5c
jne 0x140056589
lea rcx, [rsi + 0x1074]
lea rdx, [0x1401456d8]
call fcn.14012ab10
test rax, rax
jne 0x140056589
cmp dword [rsi + 0x2270], r13d
jle 0x140056589
mov byte [rsi + 0x106e], 1
jmp 0x1400565e2
mov ecx, 0x6c
call fcn.1400a617c
mov r8, rax
lea rcx, [rbp + 0x3f40]
mov r9, r14
mov edx, 0x864
call fcn.140004dcc
mov ecx, 0x66
call fcn.1400a617c
mov rcx, qword [0x14018a7d0]
lea rdx, [rbp + 0x3f40]
mov r9d, 0x10
mov r8, rax
call fcn.1400e9514
lea rdx, [rbp + 0x1f40]
mov r8, r15
mov rcx, r14
call fcn.1400ac228
movzx eax, word [rsp + 0x40]
neg ax
lea rax, [rsp + 0x40]
sbb rdx, rdx
and rdx, rax
mov rcx, rsi
call fcn.14005b6c0
mov rcx, qword [rbp + 0x5010]
xor rcx, rsp
call fcn.140119970
mov rbx, qword [rsp + 0x5170]
add rsp, 0x5120
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret