Function at 0x140001e80
Capabilities:
Get common file path
Get startup folder

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x2a0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rax, qword [0x14001b0a0]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rbp, rcx
mov rax, qword [rcx + 0x18]
cmp dword [rax - 0x10], 0
jne 0x140001efc
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [rsp + 0x66]
movzx eax, word [rsp + 0x62]
movzx r9d, word [rsp + 0x60]
mov dword [rsp + 0x28], edx
mov dword [rsp + 0x20], eax
lea r8, str.ESSETUP
lea rdx, str._s__04d_02d_02d.log
lea rcx, [rbp + 0x18]
call fcn.1400029c0
lea rcx, [0x14001b008]
mov rax, qword [0x14001b008]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x23]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
or rsi, 0xffffffffffffffff
test eax, eax
js 0x1400020f5
lea rdx, str.epsonessetup
lea rcx, [rsp + 0x80]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x1400020f5
lea rcx, [rsp + 0x80]
call qword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
xor eax, eax
mov rcx, rsi
lea rdi, [rsp + 0x80]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rdi, rcx
test ecx, ecx
jne 0x140001fe8
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x140002074
cmp dword [rdx + 0x10], eax
jge 0x140001fba
cmp dword [rbx - 0xc], eax
jge 0x140001faf
mov ecx, 0x80070057
call fcn.1400017f0
int3
mov dword [rbx - 0x10], eax
mov word [rbx], ax
jmp 0x140002074
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140001fd1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
jmp 0x140002074
mov r12d, dword [rbx - 0x10]
lea r13, [rsp + 0x80]
sub r13, rbx
sar r13, 1
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14000201c
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.140001810
mov rbx, qword [rsp + 0x30]
cmp r13, r12
ja 0x14000203c
movsxd rax, edi
lea r12, [rax + rax]
lea r8, [rbx + r13*2]
mov r9, r12
mov rdx, r12
mov rcx, rbx
call fcn.140003020
jmp 0x140002059
movsxd rax, edi
lea r12, [rax + rax]
mov r9, r12
lea r8, [rsp + 0x80]
mov rdx, r12
mov rcx, rbx
call fcn.140002f50
test edi, edi
js 0x1400020ea
cmp edi, dword [rbx - 0xc]
jg 0x1400020ea
mov dword [rbx - 0x10], edi
mov word [r12 + rbx], 0
mov dword [rsp + 0x38], 0
xor eax, eax
mov dword [rsp + 0x3c], eax
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x58], eax
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x1400020f5
test byte [rsp + 0x38], 0x10
je 0x1400020f5
mov rdx, rbx
mov rcx, rbp
call fcn.1400028f0
cmp dword [rbp], 0
je 0x1400020f5
lea rcx, [rbp + 0x20]
mov r9, qword [rbp + 0x18]
mov r8, rbx
lea rdx, str._s_s
call fcn.1400029c0
mov dword [rbp + 0x28], 1
jmp 0x1400020f5
mov ecx, 0x80070057
call fcn.1400017f0
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
add esi, 0xffffffff
test esi, esi
jg 0x14000210e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.140003130
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret