Function at 0x1802ea320
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
add rcx, 8
jmp 0x1802ea320
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x400]
sub rsp, 0x500
mov rax, qword [0x18065f280]
xor rax, rsp
mov qword [rbp + 0x3f0], rax
mov r15, rcx
xor r13d, r13d
lea rsi, [0x180660030]
mov qword [rsp + 0x40], rsi
xor r9d, r9d
mov r8d, 0x28
lea rdx, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov r14d, 0xffffffff
lea r12, [0x180660020]
test eax, eax
je 0x1802ea3d2
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x20]
call fcn.18001d210
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.18018e080
nop
mov rcx, qword [rsp + 0x20]
add rcx, 0xfffffffffffffff0
cmp rcx, r12
je 0x1802ea3d7
mov eax, r14d
lock xadd dword [rcx], eax
dec eax
cmp eax, r14d
jne 0x1802ea3d7
call fcn.18011d9c0
jmp 0x1802ea3d7
mov qword [rsp + 0x30], rsi
lea rdx, str.Locate_instrument_folder
lea rcx, [rsp + 0x20]
call fcn.18001d070
nop
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x50], rax
lea rdi, [rax - 0x10]
cmp rdi, r12
je 0x1802ea3ff
lock inc dword [rdi]
mov qword [rsp + 0x58], rsi
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x60], rax
lea rbx, [rax - 0x10]
cmp rbx, r12
je 0x1802ea41a
lock inc dword [rbx]
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], r13
mov word [rbp - 0x80], 1
mov qword [rbp - 0x40], r13
mov qword [rbp - 0x38], r13
mov qword [rbp - 0x30], r13
lea rcx, [rsp + 0x40]
call fcn.180179a40
test al, al
jne 0x1802ea486
lea rdx, [0x1803b3a28]
lea rcx, [rsp + 0x28]
call fcn.18001d070
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x58], rcx
lea rcx, [rax - 0x10]
cmp rcx, r12
je 0x1802ea486
mov eax, r14d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x1802ea486
call fcn.18011d9c0
nop
cmp rdi, r12
je 0x1802ea4a2
mov eax, r14d
lock xadd dword [rdi], eax
dec eax
cmp eax, 0xffffffff
jne 0x1802ea4a2
mov rcx, rdi
call fcn.18011d9c0
nop
cmp rbx, r12
je 0x1802ea4be
mov eax, r14d
lock xadd dword [rbx], eax
dec eax
cmp eax, 0xffffffff
jne 0x1802ea4be
mov rcx, rbx
call fcn.18011d9c0
nop
mov edx, 9
lea rcx, [rsp + 0x50]
call fcn.18028dab0
test al, al
je 0x1802ea5e8
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.18028d570
cmp dword [rsp + 0x3c], 0
jle 0x1802ea532
mov rdi, qword [rsp + 0x30]
mov rdi, qword [rdi]
lea rax, [rdi - 0x10]
cmp rax, r12
je 0x1802ea4ff
lock inc dword [rax]
lea rax, [rsp + 0x28]
mov qword [rsp + 0x20], rdi
mov qword [rax], rsi
mov rcx, qword [rsp + 0x28]
add rcx, 0xfffffffffffffff0
mov rbx, rdi
cmp rcx, r12
je 0x1802ea563
mov eax, r14d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x1802ea563
call fcn.18011d9c0
jmp 0x1802ea563
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rsi
mov qword [rax], rsi
mov rcx, qword [rsp + 0x40]
add rcx, 0xfffffffffffffff0
mov rbx, rsi
cmp rcx, r12
je 0x1802ea563
mov eax, r14d
lock xadd dword [rcx], eax
dec eax
cmp eax, 0xffffffff
jne 0x1802ea563
call fcn.18011d9c0
lea rcx, [rsp + 0x30]
call fcn.180009780
mov rcx, qword [rsp + 0x30]
call fcn.180124068
nop
cmp byte [rbx], 0
je 0x1802ea5c6
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.180017f90
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop
cmp eax, 0xffffffff
je 0x1802ea5c6
mov rax, qword [r15]
mov rcx, qword [rax + 0x1d0]
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x30], rax
add rax, 0xfffffffffffffff0
cmp rax, r12
je 0x1802ea5bb
lock inc dword [rax]
lea rdx, [rsp + 0x30]
call fcn.180151d90
nop
mov rcx, qword [rsp + 0x20]
add rcx, 0xfffffffffffffff0
cmp rcx, r12
je 0x1802ea5e8
lock xadd dword [rcx], r14d
dec r14d
cmp r14d, 0xffffffff
jne 0x1802ea5e8
call fcn.18011d9c0
nop
lea rcx, [rsp + 0x50]
call fcn.1802c2c80
mov rcx, qword [rbp + 0x3f0]
xor rcx, rsp
call fcn.18011d9a0
lea r11, [rsp + 0x500]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret