Function at 0x140020640
Capabilities:
Delete file
Get common file path
Read file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rax - 0x2b8]
sub rsp, 0x390
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400f4d50]
xor rax, rsp
mov qword [rbp + 0x280], rax
mov rbx, rdx
mov r13, rcx
lea rdx, [rbp + 0x70]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov qword [rbp + 0x58], 7
xor r14d, r14d
mov qword [rbp + 0x50], r14
mov word [rbp + 0x40], r14w
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0x70]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp + 0x70]
lea rcx, [rbp + 0x40]
call fcn.140002510
nop
lea r8, [rbx + 0xb0]
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.1400033a0
nop
cmp qword [rbp + 0x58], 8
jb 0x1400206ec
mov rcx, qword [rbp + 0x40]
call fcn.140095520
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rcx, qword [rsp + 0x50]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x14002074e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp qword [rsp + 0x68], 8
jb 0x140020747
mov rcx, qword [rsp + 0x50]
call fcn.140095520
mov eax, edi
jmp 0x14002097d
mov dword [rbp - 0x78], 0x177d
mov qword [rbp - 0x58], 7
mov qword [rbp - 0x60], r14
mov word [rbp - 0x70], r14w
mov qword [rbp - 0x30], 7
mov qword [rbp - 0x38], r14
mov word [rbp - 0x48], r14w
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x10], r14
lea rax, vtable.CMultimediaFile.0
mov qword [rbp - 0x80], rax
mov qword [rbp + 0x18], 7
mov qword [rbp + 0x10], r14
mov word [rbp], r14w
mov qword [rbp + 0x28], r14
mov qword [rbp + 0x30], r14
mov qword [rbp + 0x38], r14
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbx + 0xb0]
lea rcx, [rbp]
call fcn.1400023e0
lea rdx, [rbx + 0x10]
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x70]
call fcn.1400023e0
lea rdx, [rbx + 0x38]
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x48]
call fcn.1400023e0
mov rbx, r14
mov ecx, 0x100000
call fcn.140076158
mov rdi, rax
mov dword [rsp + 0x40], r14d
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x40]
mov r8d, 0x100000
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140020896
nop
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x140020896
mov r8d, eax
mov rdx, rdi
mov rcx, rbx
call fcn.140075110
mov qword [rbp + 0x28], rbx
mov esi, dword [rsp + 0x40]
add rbx, rsi
mov rcx, qword [rbp + 0x30]
cmp rdi, rcx
je 0x14002084f
call fcn.14009667c
mov qword [rbp + 0x30], rdi
mov qword [rbp + 0x38], rsi
mov rcx, qword [r13 + 0x38]
mov rax, qword [rcx]
lea rdx, [rbp - 0x80]
call qword [rax]
mov ecx, 0x100000
call fcn.140076158
mov rdi, rax
mov dword [rsp + 0x40], r14d
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x40]
mov r8d, 0x100000
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140020820
mov rcx, rdi
call fcn.14009667c
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
mov rcx, qword [rbp + 0x30]
test rcx, rcx
je 0x1400208d1
call fcn.14009667c
mov qword [rbp + 0x30], r14
mov qword [rbp + 0x38], r14
cmp qword [rbp + 0x18], 8
jb 0x1400208e5
mov rcx, qword [rbp]
call fcn.140095520
mov qword [rbp + 0x18], 7
mov qword [rbp + 0x10], r14
mov word [rbp], r14w
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x14002091b
movzx r9d, byte [rsp + 0x44]
lea r8, [rbp - 8]
mov rdx, qword [rbp - 0x18]
call fcn.140014770
mov rcx, qword [rbp - 0x20]
call fcn.140095520
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x18], r14
mov qword [rbp - 0x10], r14
cmp qword [rbp - 0x30], 8
jb 0x140020937
mov rcx, qword [rbp - 0x48]
call fcn.140095520
mov qword [rbp - 0x30], 7
mov qword [rbp - 0x38], r14
mov word [rbp - 0x48], r14w
cmp qword [rbp - 0x58], 8
jb 0x140020958
mov rcx, qword [rbp - 0x70]
call fcn.140095520
mov qword [rbp - 0x58], 7
mov qword [rbp - 0x60], r14
mov word [rbp - 0x70], r14w
cmp qword [rsp + 0x68], 8
jb 0x14002097b
mov rcx, qword [rsp + 0x50]
call fcn.140095520
xor eax, eax
mov rcx, qword [rbp + 0x280]
xor rcx, rsp
call fcn.1400959a0
lea r11, [rsp + 0x390]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret