Function at 0x1400e3aa0
Capabilities:
Check if file exists
Get common file path
Get file attributes
Get program files directory

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x100a0
call fcn.140180a70
sub rsp, rax
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x100f8], rbx
mov rax, qword [0x14020e318]
xor rax, rsp
mov qword [rsp + 0x10090], rax
mov rax, r8
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x88], rax
xor r14d, r14d
mov dword [rsp + 0x30], r14d
call fcn.14013e120
mov rcx, rax
mov eax, r14d
test rcx, rcx
setne al
test eax, eax
jne 0x1400e3b1e
mov ecx, 0x80004005
call fcn.140001c70
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
lea rsi, [rax + 0x18]
mov qword [rsp + 0x38], rsi
lea rdx, [0x14019bd68]
mov r15, rdx
or r13, 0xffffffffffffffff
shr r15, 0x10
mov qword [rsp + 0x68], r15
jne 0x1400e3b6c
movzx edi, dx
mov ecx, edi
call fcn.14014c5c0
test rax, rax
je 0x1400e3b8d
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140005140
mov rsi, qword [rsp + 0x38]
jmp 0x1400e3b8d
xor eax, eax
mov rcx, r13
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [rsp + 0x38]
call fcn.1400038f0
mov rsi, qword [rsp + 0x38]
xor edx, edx
mov r8d, 0xfffe
lea rcx, [rsp + 0x90]
call fcn.1401601f0
lea rdx, [rsp + 0x90]
mov qword [rsp + 0x20], rdx
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x26]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov r12d, 1
test eax, eax
js 0x1400e3d86
xor eax, eax
mov rcx, r13
lea rdi, [rsp + 0x90]
repne scasw ax, word [rdi]
not rcx
cmp word [rsp + rcx*2 + 0x8c], 0x5c
jne 0x1400e3bf5
mov word [rsp + rcx*2 + 0x8c], ax
mov rcx, r13
lea rdi, [rsp + 0x90]
repne scasw ax, word [rdi]
not rcx
sub rcx, r12
mov rdi, rcx
test ecx, ecx
jne 0x1400e3c70
lea rdx, [rsi - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x1400e3cf8
cmp dword [rdx + 0x10], eax
jge 0x1400e3c41
cmp dword [rsi - 0xc], eax
jge 0x1400e3c35
mov ecx, 0x80070057
call fcn.140001c70
int3
mov dword [rsi - 0x10], r14d
mov word [rsi], ax
jmp 0x1400e3cf8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400e3c59
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rsi, [rax + 0x18]
mov qword [rsp + 0x38], rsi
jmp 0x1400e3cf8
mov ebx, dword [rsi - 0x10]
lea rbp, [rsp + 0x90]
sub rbp, rsi
sar rbp, 1
mov ecx, r12d
sub ecx, dword [rsi - 8]
mov eax, dword [rsi - 0xc]
sub eax, edi
or eax, ecx
jge 0x1400e3ca1
mov edx, edi
lea rcx, [rsp + 0x38]
call fcn.140001c90
mov rsi, qword [rsp + 0x38]
cmp rbp, rbx
ja 0x1400e3cc1
movsxd rax, edi
lea rbx, [rax + rax]
lea r8, [rsi + rbp*2]
mov r9, rbx
mov rdx, rbx
mov rcx, rsi
call fcn.14015c620
jmp 0x1400e3cde
movsxd rax, edi
lea rbx, [rax + rax]
mov r9, rbx
lea r8, [rsp + 0x90]
mov rdx, rbx
mov rcx, rsi
call fcn.14015c410
test edi, edi
js 0x1400e3d7b
cmp edi, dword [rsi - 0xc]
jg 0x1400e3d7b
mov dword [rsi - 0x10], edi
mov word [rbx + rsi], 0
mov rbp, qword [rsp + 0x48]
mov rbp, qword [rbp]
movsxd r15, dword [rbp - 0x10]
mov rbx, rbp
sub rbx, rsi
sar rbx, 1
mov r14d, dword [rsi - 0x10]
lea edi, [r14 + r15]
mov ecx, r12d
sub ecx, dword [rsi - 8]
mov eax, dword [rsi - 0xc]
sub eax, edi
or eax, ecx
jge 0x1400e3d36
mov edx, edi
lea rcx, [rsp + 0x38]
call fcn.140001c90
mov rsi, qword [rsp + 0x38]
cmp rbx, r14
ja 0x1400e3d3f
lea rbp, [rsi + rbx*2]
mov rdx, r15
add rdx, rdx
lea rcx, [rsi + r14*2]
mov r9, rdx
mov r8, rbp
call fcn.14015c410
test edi, edi
js 0x1400e3d70
cmp edi, dword [rsi - 0xc]
jg 0x1400e3d70
mov dword [rsi - 0x10], edi
movsxd rax, edi
mov word [rsi + rax*2], 0
mov r15, qword [rsp + 0x68]
jmp 0x1400e3d86
mov ecx, 0x80070057
call fcn.140001c70
int3
mov ecx, 0x80070057
call fcn.140001c70
int3
lea rbp, [rsi - 0x18]
mov rcx, qword [rbp]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rbp + 0x10], 0
jl 0x1400e3dad
cmp rax, qword [rbp]
jne 0x1400e3dad
mov rbx, rbp
lock add dword [rbp + 0x10], r12d
jmp 0x1400e3dec
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rbp + 8]
call qword [rax]
mov rbx, rax
test rax, rax
jne 0x1400e3dc9
call fcn.1400c63c0
int3
mov eax, dword [rbp + 8]
mov dword [rbx + 8], eax
mov eax, dword [rbp + 8]
add eax, r12d
movsxd rdx, eax
lea r9, [rdx + rdx]
lea r8, [rbp + 0x18]
add rdx, rdx
lea rcx, [rbx + 0x18]
call fcn.14015c410
add rbx, 0x18
mov qword [rsp + 0x80], rbx
xor eax, eax
lea r14, [0x14019bd68]
mov rdi, r14
mov rsi, rbx
mov rcx, r12
repe cmpsw word [rsi], word [rdi]
je 0x1400e3e14
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
jne 0x1400e3e3b
lea rdx, [rbx - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400e3e69
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1400e3e69
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400e3ef6
lea rdx, [rbx - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400e3e69
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
call fcn.14013e120
mov rcx, rax
test rax, rax
mov eax, 0
setne al
test eax, eax
jne 0x1400e3e8b
mov ecx, 0x80004005
call fcn.140001c70
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
test r15, r15
jne 0x1400e3ec1
movzx edi, r14w
mov ecx, edi
call fcn.14014c5c0
test rax, rax
je 0x1400e3ee1
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140005140
jmp 0x1400e3ee1
xor eax, eax
mov rcx, r13
mov rdi, r14
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
mov rdx, r14
lea rcx, [rsp + 0x40]
call fcn.1400038f0
nop
lea rax, [rsp + 0x40]
mov r12d, 2
mov dword [rsp + 0x30], r12d
jmp 0x1400e3f97
lea rdx, [rbx - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400e3f12
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rbp + 0x10], 0
jl 0x1400e3f35
cmp rax, qword [rbp]
jne 0x1400e3f35
mov rdi, rbp
lock add dword [rbp + 0x10], r12d
jmp 0x1400e3f74
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rbp + 8]
call qword [rax]
mov rdi, rax
test rax, rax
jne 0x1400e3f51
call fcn.1400c63c0
int3
mov eax, dword [rbp + 8]
mov dword [rdi + 8], eax
mov eax, dword [rbp + 8]
add eax, r12d
movsxd rdx, eax
lea r9, [rdx + rdx]
lea r8, [rbp + 0x18]
add rdx, rdx
lea rcx, [rdi + 0x18]
call fcn.14015c410
lea rax, [rdi + 0x18]
mov qword [rsp + 0x70], rax
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call fcn.1400e38a0
nop
mov dword [rsp + 0x30], r12d
mov rdi, qword [rax]
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rdi - 8], 0
jl 0x1400e3fc3
cmp rax, qword [rdi - 0x18]
jne 0x1400e3fc3
lea rsi, [rdi - 0x18]
lock add dword [rdi - 8], 1
mov r12d, dword [rsp + 0x30]
jmp 0x1400e4001
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rdi - 0x10]
call qword [rax]
mov rsi, rax
test rax, rax
jne 0x1400e3fdf
call fcn.1400c63c0
int3
mov eax, dword [rdi - 0x10]
mov dword [rsi + 8], eax
mov eax, dword [rdi - 0x10]
add eax, 1
movsxd rdx, eax
lea r9, [rdx + rdx]
mov r8, rdi
add rdx, rdx
lea rcx, [rsi + 0x18]
call fcn.14015c410
lea rax, [rsi + 0x18]
mov rdi, qword [rsp + 0x60]
mov qword [rdi], rax
or r12d, 4
mov dword [rsp + 0x30], r12d
test r12b, 2
je 0x1400e4052
and r12d, 0xfffffffd
mov dword [rsp + 0x30], r12d
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400e404d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r12d, dword [rsp + 0x30]
jmp 0x1400e4052
mov r12d, dword [rsp + 0x30]
test r12b, 1
je 0x1400e407a
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400e407a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov eax, r13d
lock xadd dword [rbp + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400e4097
mov rcx, qword [rbp]
mov rax, qword [rcx]
mov rdx, rbp
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rax, qword [rsp + 0x48]
mov rdx, qword [rax]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], r13d
add r13d, 0xffffffff
test r13d, r13d
jg 0x1400e40bb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, rdi
mov rcx, qword [rsp + 0x10090]
xor rcx, rsp
call fcn.14015b6f0
mov rbx, qword [rsp + 0x100f8]
add rsp, 0x100a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret