Function at 0x1400e43c0
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.140181870
sub rsp, rax
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x100f8], rbx
mov rax, qword [0x140210348]
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.14013d07c
mov rcx, rax
mov eax, r14d
test rcx, rcx
setne al
test eax, eax
jne 0x1400e443e
mov ecx, 0x80004005
call fcn.140001c00
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
lea rsi, [rax + 0x18]
mov qword [rsp + 0x38], rsi
lea rdx, [0x14019cf88]
mov r15, rdx
or r13, 0xffffffffffffffff
shr r15, 0x10
mov qword [rsp + 0x68], r15
jne 0x1400e448c
movzx edi, dx
mov ecx, edi
call fcn.14013d654
test rax, rax
je 0x1400e44ad
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.1400020e0
mov rsi, qword [rsp + 0x38]
jmp 0x1400e44ad
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.140002390
mov rsi, qword [rsp + 0x38]
xor edx, edx
mov r8d, 0xfffe
lea rcx, [rsp + 0x90]
call fcn.140160e90
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 0x1400e46a6
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 0x1400e4515
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 0x1400e4590
lea rdx, [rsi - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x1400e4618
cmp dword [rdx + 0x10], eax
jge 0x1400e4561
cmp dword [rsi - 0xc], eax
jge 0x1400e4555
mov ecx, 0x80070057
call fcn.140001c00
int3
mov dword [rsi - 0x10], r14d
mov word [rsi], ax
jmp 0x1400e4618
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400e4579
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 0x1400e4618
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 0x1400e45c1
mov edx, edi
lea rcx, [rsp + 0x38]
call fcn.140001df0
mov rsi, qword [rsp + 0x38]
cmp rbp, rbx
ja 0x1400e45e1
movsxd rax, edi
lea rbx, [rax + rax]
lea r8, [rsi + rbp*2]
mov r9, rbx
mov rdx, rbx
mov rcx, rsi
call fcn.14015cf60
jmp 0x1400e45fe
movsxd rax, edi
lea rbx, [rax + rax]
mov r9, rbx
lea r8, [rsp + 0x90]
mov rdx, rbx
mov rcx, rsi
call fcn.14015cd30
test edi, edi
js 0x1400e469b
cmp edi, dword [rsi - 0xc]
jg 0x1400e469b
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 0x1400e4656
mov edx, edi
lea rcx, [rsp + 0x38]
call fcn.140001df0
mov rsi, qword [rsp + 0x38]
cmp rbx, r14
ja 0x1400e465f
lea rbp, [rsi + rbx*2]
mov rdx, r15
add rdx, rdx
lea rcx, [rsi + r14*2]
mov r9, rdx
mov r8, rbp
call fcn.14015cd30
test edi, edi
js 0x1400e4690
cmp edi, dword [rsi - 0xc]
jg 0x1400e4690
mov dword [rsi - 0x10], edi
movsxd rax, edi
mov word [rsi + rax*2], 0
mov r15, qword [rsp + 0x68]
jmp 0x1400e46a6
mov ecx, 0x80070057
call fcn.140001c00
int3
mov ecx, 0x80070057
call fcn.140001c00
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 0x1400e46cd
cmp rax, qword [rbp]
jne 0x1400e46cd
mov rbx, rbp
lock add dword [rbp + 0x10], r12d
jmp 0x1400e470c
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rbp + 8]
call qword [rax]
mov rbx, rax
test rax, rax
jne 0x1400e46e9
call fcn.1400c5210
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.14015cd30
add rbx, 0x18
mov qword [rsp + 0x80], rbx
xor eax, eax
lea r14, [0x14019cf88]
mov rdi, r14
mov rsi, rbx
mov rcx, r12
repe cmpsw word [rsi], word [rdi]
je 0x1400e4734
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
setne al
test al, al
jne 0x1400e475b
lea rdx, [rbx - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400e4789
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1400e4789
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400e4816
lea rdx, [rbx - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400e4789
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
call fcn.14013d07c
mov rcx, rax
test rax, rax
mov eax, 0
setne al
test eax, eax
jne 0x1400e47ab
mov ecx, 0x80004005
call fcn.140001c00
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
test r15, r15
jne 0x1400e47e1
movzx edi, r14w
mov ecx, edi
call fcn.14013d654
test rax, rax
je 0x1400e4801
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1400020e0
jmp 0x1400e4801
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.140002390
nop
lea rax, [rsp + 0x40]
mov r12d, 2
mov dword [rsp + 0x30], r12d
jmp 0x1400e48b7
lea rdx, [rbx - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400e4832
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 0x1400e4855
cmp rax, qword [rbp]
jne 0x1400e4855
mov rdi, rbp
lock add dword [rbp + 0x10], r12d
jmp 0x1400e4894
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rbp + 8]
call qword [rax]
mov rdi, rax
test rax, rax
jne 0x1400e4871
call fcn.1400c5210
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.14015cd30
lea rax, [rdi + 0x18]
mov qword [rsp + 0x70], rax
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call fcn.1400e41c0
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 0x1400e48e3
cmp rax, qword [rdi - 0x18]
jne 0x1400e48e3
lea rsi, [rdi - 0x18]
lock add dword [rdi - 8], 1
mov r12d, dword [rsp + 0x30]
jmp 0x1400e4921
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rdi - 0x10]
call qword [rax]
mov rsi, rax
test rax, rax
jne 0x1400e48ff
call fcn.1400c5210
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.14015cd30
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 0x1400e4972
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 0x1400e496d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r12d, dword [rsp + 0x30]
jmp 0x1400e4972
mov r12d, dword [rsp + 0x30]
test r12b, 1
je 0x1400e499a
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400e499a
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 0x1400e49b7
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 0x1400e49db
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.14015d000
mov rbx, qword [rsp + 0x100f8]
add rsp, 0x100a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret