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

Disassembly:
mov rax, rsp
push rbp
sub rsp, 0x490
cmp qword [rcx + 0xd18], 0
mov rbp, rcx
je 0x14008f191
cmp word [rcx + 0xbd0], 0
je 0x14008f191
cmp qword [rcx + 0xce8], 0
je 0x14008f191
mov qword [rax + 0x10], rbx
add rcx, 0x18
mov qword [rax + 0x20], rdi
mov qword [rax - 0x10], r14
mov qword [rax - 0x18], r15
mov qword [rax + 0x18], rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [rbp + 0x18]
mov dword [rbp + 0x8a0], 8
mov qword [rbp + 0x8a8], 0x40000
mov qword [rbp + 0x8b0], 0x3e8
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [rbp + 0x10]
call fcn.140024cd0
mov rbx, qword [rbp + 0xd18]
xor r15d, r15d
mov qword [rsp + 0x4a0], r15
mov edi, r15d
test rbx, rbx
je 0x14008f0de
nop word [rax + rax]
xor edx, edx
mov word [rsp + 0x270], r15w
mov r8d, 0x206
lea rcx, [rsp + 0x272]
call fcn.14014d290
xor eax, eax
xorps xmm0, xmm0
xor r9d, r9d
mov dword [rsp + 0x50], eax
lea rax, [rsp + 0x270]
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], rax
movups xmmword [rsp + 0x30], xmm0
lea edx, [r9 + 0x1a]
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x14008f02b
lea rax, [rsp + 0x270]
mov qword [rsp + 0x28], rbx
lea r9, str._sMetaQuotesWebInstall_S
mov qword [rsp + 0x20], rax
mov edx, 0x104
lea rcx, [rsp + 0x60]
mov r8, 0xffffffffffffffff
call fcn.140003a90
lea r8, [rsp + 0x30]
xor edx, edx
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x14008efa5
mov eax, dword [rsp + 0x50]
test eax, eax
jne 0x14008f003
cmp word [rbx + 0x20], r15w
lea rsi, [rbx + 0x20]
je 0x14008f02b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14008f02b
mov qword [rsp + 0x28], rbx
lea r9, str._s_S
mov edx, 0x104
mov qword [rsp + 0x20], rsi
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0x60]
call fcn.140003a90
lea r8, [rsp + 0x30]
xor edx, edx
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x14008f02b
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x14008f02b
cmp eax, dword [rbx + 0x228]
jne 0x14008f020
lea rcx, [rbx + 0x230]
lea rdx, [rsp + 0x60]
call fcn.14000c7f0
test al, al
jne 0x14008f07b
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea r8, [rsp + 0x4a0]
mov rdx, rbx
mov rcx, rbp
call fcn.14008ec20
test al, al
je 0x14008f166
mov rcx, rbx
call fcn.14008ce40
test al, al
jne 0x14008f073
lea r9, str.value_Sunitfile
mov qword [rsp + 0x20], rbx
lea r8, str.Install_File_Save_Failed
xor edx, edx
lea rcx, [0x140214a00]
call fcn.1400595c0
mov rdi, qword [rsp + 0x4a0]
movsxd rax, dword [rbx + 0x228]
mov rcx, qword [rbp + 0xc60]
add rdi, rax
mov qword [rsp + 0x4a0], rdi
test rcx, rcx
je 0x14008f0ad
mov r9, rdi
mov edx, 0x464
mov r8d, 3
call qword [sym.imp.USER32.dll_PostMessageW]
lea r9, str.value_Sunitfile
mov qword [rsp + 0x20], rbx
lea r8, str.Install_File_Success
xor edx, edx
lea rcx, [0x140214a00]
call fcn.1400595c0
mov rbx, qword [rbx + 0x258]
test rbx, rbx
jne 0x14008ef00
lea rcx, [rbp + 0x10]
call fcn.1400249d0
mov ecx, 0xfa
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r9, str.value_I64uunitbytes
mov qword [rsp + 0x20], rdi
lea r8, str.Install_File_Size
xor edx, edx
lea rcx, [0x140214a00]
call fcn.1400595c0
mov rcx, qword [rbp + 0xc60]
test rcx, rcx
je 0x14008f133
mov r9, rdi
mov edx, 0x464
mov r8d, 4
call qword [sym.imp.USER32.dll_PostMessageW]
mov al, 1
mov rsi, qword [rsp + 0x4b0]
mov rdi, qword [rsp + 0x4b8]
mov r14, qword [rsp + 0x488]
mov rbx, qword [rsp + 0x4a8]
mov r15, qword [rsp + 0x480]
add rsp, 0x490
pop rbp
ret
mov rcx, qword [rbp + 0xc60]
test rcx, rcx
je 0x14008f184
xor r9d, r9d
mov edx, 0x464
lea r8d, [r9 + 7]
call qword [sym.imp.USER32.dll_PostMessageW]
lea rcx, [rbp + 0x10]
call fcn.1400249d0
xor al, al
jmp 0x14008f135
mov rcx, qword [rcx + 0xc60]
test rcx, rcx
je 0x14008f1af
xor r9d, r9d
mov edx, 0x464
lea r8d, [r9 + 7]
call qword [sym.imp.USER32.dll_PostMessageW]
xor al, al
add rsp, 0x490
pop rbp
ret