Function at 0x14008fdd0
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 0x140090111
cmp word [rcx + 0xbd0], 0
je 0x140090111
cmp qword [rcx + 0xce8], 0
je 0x140090111
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.140025080
mov rbx, qword [rbp + 0xd18]
xor r15d, r15d
mov qword [rsp + 0x4a0], r15
mov edi, r15d
test rbx, rbx
je 0x14009005e
nop word [rax + rax]
xor edx, edx
mov word [rsp + 0x270], r15w
mov r8d, 0x206
lea rcx, [rsp + 0x272]
call fcn.14014e180
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 0x14008ffab
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.140003dd0
lea r8, [rsp + 0x30]
xor edx, edx
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x14008ff25
mov eax, dword [rsp + 0x50]
test eax, eax
jne 0x14008ff83
cmp word [rbx + 0x20], r15w
lea rsi, [rbx + 0x20]
je 0x14008ffab
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14008ffab
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.140003dd0
lea r8, [rsp + 0x30]
xor edx, edx
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x14008ffab
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x14008ffab
cmp eax, dword [rbx + 0x228]
jne 0x14008ffa0
lea rcx, [rbx + 0x230]
lea rdx, [rsp + 0x60]
call fcn.14000c6b0
test al, al
jne 0x14008fffb
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea r8, [rsp + 0x4a0]
mov rdx, rbx
mov rcx, rbp
call fcn.14008fba0
test al, al
je 0x1400900e6
mov rcx, rbx
call fcn.14008de50
test al, al
jne 0x14008fff3
lea r9, str.value_Sunitfile
mov qword [rsp + 0x20], rbx
lea r8, str.Install_File_Save_Failed
xor edx, edx
lea rcx, [0x140215a10]
call fcn.140059ad0
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 0x14009002d
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, [0x140215a10]
call fcn.140059ad0
mov rbx, qword [rbx + 0x258]
test rbx, rbx
jne 0x14008fe80
lea rcx, [rbp + 0x10]
call fcn.140024d90
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, [0x140215a10]
call fcn.140059ad0
mov rcx, qword [rbp + 0xc60]
test rcx, rcx
je 0x1400900b3
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 0x140090104
xor r9d, r9d
mov edx, 0x464
lea r8d, [r9 + 7]
call qword [sym.imp.USER32.dll_PostMessageW]
lea rcx, [rbp + 0x10]
call fcn.140024d90
xor al, al
jmp 0x1400900b5
mov rcx, qword [rcx + 0xc60]
test rcx, rcx
je 0x14009012f
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