Function at 0x140025f20
Capabilities:
Delete file
Get disk size
Read file on windows
Write file on windows

Disassembly:
push rbp
push rbx
push r13
push r14
lea rbp, [rsp - 0x498]
sub rsp, 0x598
mov rax, qword [0x1400b52a0]
xor rax, rsp
mov qword [rbp + 0x470], rax
mov r13, r8
lea rax, [rsp + 0x50]
lea r8, str..X:
mov r10, rdx
sub r8, rax
lea rcx, [rsp + 0x50]
mov rbx, r9
mov edx, 0x5c
nop dword [rax]
movzx eax, word [r8 + rcx + 2]
mov word [rcx], dx
lea rcx, [rcx + 2]
movzx edx, ax
test ax, ax
jne 0x140025f70
movzx eax, word [r10]
xor r14d, r14d
mov word [rcx], r14w
mov word [rsp + 0x58], ax
cmp dword [r9], r14d
je 0x140025feb
mov r8d, 0x104
lea rdx, [rbp + 0x360]
lea rcx, [rsp + 0x50]
call fcn.140055830
mov r8d, 0x104
lea rdx, [rbp + 0x250]
mov rcx, r13
call fcn.140055830
mov r8, qword [sym.imp.FTMedia.dll_class_CFormatFactoryUI____ptr64___ptr64_gpFFUI]
lea rdx, [rbp + 0x250]
mov r9d, dword [rbx]
lea rcx, [rbp + 0x360]
mov r8, qword [r8]
call fcn.140004db0
jmp 0x14002623a
xor r9d, r9d
lea r8, [rsp + 0x48]
xor edx, edx
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x14002623a
xor r9d, r9d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
lea rcx, [rsp + 0x50]
mov edx, 0x80000000
mov qword [rsp + 0x5c0], rsi
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140026047
xor al, al
jmp 0x140026232
xor r9d, r9d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov edx, 0x40000000
mov rcx, r13
mov qword [rsp + 0x580], r15
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x14002608f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x14002622a
mov qword [rsp + reloc.mfc140u.dll_CRichEditCtrl::CRichEditCtrl], rdi
mov ecx, 0x40000
mov qword [rsp + 0x588], r12
mov r12b, 1
call fcn.14005c004
mov rdx, qword [rsp + 0x48]
mov rdi, rax
mov rbx, r14
test rdx, rdx
je 0x1400261e9
mov rax, qword [sym.imp.FTMedia.dll_class_CFormatFactoryUI____ptr64___ptr64_gpFFUI]
mov rcx, qword [rax]
cmp byte [rcx + 0x30a], 0
je 0x1400260e8
mov rax, qword [rcx]
call qword [rax + 0x138]
mov rdx, qword [rsp + 0x48]
mov rax, qword [sym.imp.FTMedia.dll_class_CFormatFactoryUI____ptr64___ptr64_gpFFUI]
mov rax, qword [rax]
cmp byte [rax + 0x309], 0
jne 0x1400261e6
mov rax, rdx
sub rax, rbx
cmp rax, 0x40000
jb 0x14002610d
mov edx, 0x40000
jmp 0x14002610f
sub edx, ebx
mov dword [rsp + 0x40], edx
lea r9, [rsp + 0x40]
mov r8d, edx
mov qword [rsp + 0x20], 0
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002619a
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov rdx, rdi
mov qword [rsp + 0x20], 0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14002619a
mov rax, qword [sym.imp.FTMedia.dll_class_CFormatFactoryUI____ptr64___ptr64_gpFFUI]
xor edx, edx
mov rcx, qword [rax]
mov rax, r14
div qword [rsp + 0x48]
mov r8, qword [rcx]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
call qword [r8 + 0xb0]
mov rdx, qword [rsp + 0x48]
add rbx, 0x40000
add r14, 0x1900000
cmp rbx, rdx
jb 0x1400260c0
jmp 0x1400261e9
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
xor r9d, r9d
mov qword [rsp + 0x30], rcx
mov r8d, eax
mov word [rbp + 0x50], cx
xor edx, edx
lea rcx, [rbp + 0x50]
mov dword [rsp + 0x28], 0x200
mov qword [rsp + 0x20], rcx
mov ecx, 0x1200
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov rax, qword [sym.imp.FTMedia.dll_class_CFormatFactoryUI____ptr64___ptr64_gpFFUI]
lea rdx, [rbp + 0x50]
mov rcx, qword [rax]
mov rax, qword [rcx]
call qword [rax + 0xe0]
xor r12b, r12b
mov edx, 1
mov rcx, rdi
call fcn.140009330
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + reloc.mfc140u.dll_CRichEditCtrl::CRichEditCtrl]
test r12b, r12b
jne 0x14002621e
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
movzx eax, r12b
mov r12, qword [rsp + 0x588]
mov r15, qword [rsp + 0x580]
mov rsi, qword [rsp + 0x5c0]
mov rcx, qword [rbp + 0x470]
xor rcx, rsp
call fcn.14005b9c0
add rsp, 0x598
pop r14
pop r13
pop rbx
pop rbp
ret