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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x288]
sub rsp, 0x388
mov rax, qword [0x1400b52a0]
xor rax, rsp
mov qword [rbp + 0x260], rax
xor r15d, r15d
mov dword [rsp + 0x70], r9d
mov r14, r8
mov qword [rbp - 0x70], rdx
mov rsi, rdx
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
lea r8d, [r15 + 1]
mov byte [rsp + 0x60], 0
mov edx, 0x120089
mov dword [rsp + 0x20], 3
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbp - 0x80], rax
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140004e67
mov qword [rsp + 0x30], r15
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x120116
mov dword [rsp + 0x20], 2
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x50], rax
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140004e6e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x140005366
cmp byte [rbx], 0x5c
mov qword [rsp + 0x380], r12
mov qword [rsp + 0x378], r13
jne 0x140004ec1
cmp byte [rbx + 1], 0x5c
jne 0x140004ec1
cmp byte [rbx + 2], 0x2e
jne 0x140004ec1
cmp byte [rbx + 3], 0x5c
jne 0x140004ec1
lea rcx, [rbx + 4]
xor r9d, r9d
lea r8, [rsp + 0x68]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x140004ebc
mov rbx, qword [rsp + 0x68]
test rbx, rbx
setne al
test al, al
jne 0x140004edc
mov rbx, r15
jmp 0x140004edc
lea rdx, [rsp + 0x58]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [rsp + 0x58]
shl rbx, 0x20
mov eax, eax
add rbx, rax
xor eax, eax
mov qword [rbp + 8], rbx
mov qword [rbp + 0x10], rax
mov qword [rbp], rax
shr rbx, 0xb
mov dword [rbp], 0x4f534943
mov byte [rbp + 0x14], 1
mov dword [rbp + 0x10], 0x800
lea eax, [rbx*4 + 4]
movsxd rdi, eax
mov rcx, rdi
mov dword [rsp + 0x5c], eax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, rdi
mov r12, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, dword [rbp + 0x10]
mov qword [rsp + 0x68], rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, dword [rbp + 0x10]
mov r15, rax
add ecx, ecx
mov qword [rsp + 0x48], rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r13, rax
test r12, r12
je 0x1400052b2
cmp qword [rsp + 0x68], 0
je 0x1400052a9
test r15, r15
je 0x1400052a9
test rax, rax
je 0x1400052a9
mov r8, rdi
xor edx, edx
mov rcx, r12
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsp + 0x68]
mov r8, rdi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
xor eax, eax
lea r9, [rsp + 0x40]
lea rdx, [rbp]
mov qword [rbp + 0x20], rax
mov rcx, rsi
mov qword [rbp + 0x28], rax
mov qword [rbp + 0x30], rax
lea r8d, [rax + 0x18]
mov qword [rbp + 0x38], rax
mov qword [rbp + 0x40], rax
mov qword [rbp + 0x48], rax
mov qword [rbp + 0x50], rax
mov qword [rbp + 0x58], rax
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400052a9
cmp dword [rsp + 0x40], 0x18
jne 0x1400052a9
mov r8d, dword [rsp + 0x5c]
lea r9, [rsp + 0x40]
mov rdx, r12
mov qword [rsp + 0x20], 0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400052a9
mov eax, dword [rsp + 0x5c]
cmp dword [rsp + 0x40], eax
jne 0x1400052a9
movzx ecx, byte [rbp + 0x15]
add rdi, 0x18
mov eax, 0x51eb851f
imul ebx
mov r9d, edx
movsxd rdx, ebx
sar r9d, 5
xor ebx, ebx
mov eax, r9d
mov qword [rbp - 0x78], rdx
shr eax, 0x1f
mov esi, ebx
add r9d, eax
mov eax, 1
shl eax, cl
mov r15d, r9d
mov dword [rsp + 0x78], eax
dec eax
mov dword [rsp + 0x74], eax
xor eax, eax
mov dword [rsp + 0x7c], r9d
mov dword [rsp + 0x58], eax
test rdx, rdx
jle 0x14000523f
nop dword [rax]
dec r15d
test r15d, r15d
jg 0x140005093
mov r8, qword [r14]
cdq
idiv r9d
mov rcx, r14
mov r15d, r9d
movd xmm1, eax
cvtdq2ps xmm1, xmm1
call qword [r8 + 0xb0]
cmp byte [r14 + 0x30a], 0
je 0x1400050a9
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x138]
cmp byte [r14 + 0x309], 0
jne 0x14000529f
mov edx, dword [rsp + 0x70]
lea rax, str.1.2.5
mov dword [rsp + 0x38], 0x58
lea rcx, [rbp - 0x60]
mov qword [rsp + 0x30], rax
mov r9d, 0xfffffff1
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 8
lea r8d, [r9 + 0x17]
call fcn.140061c50
test eax, eax
jne 0x14000529f
mov eax, edi
and eax, dword [rsp + 0x74]
je 0x14000513e
mov ebx, dword [rsp + 0x78]
lea r9, [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
lea rdx, [rbp + 0x20]
sub ebx, eax
mov qword [rsp + 0x20], 0
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000529f
cmp dword [rsp + 0x40], ebx
jne 0x14000529f
movsxd rax, ebx
add rdi, rax
xor ebx, ebx
movzx ecx, byte [rbp + 0x15]
lea r9, [rsp + 0x40]
mov rax, rdi
mov qword [rsp + 0x20], rbx
shr rax, cl
mov rcx, qword [rbp - 0x80]
mov dword [r12 + rsi*4], eax
mov r8d, dword [rbp + 0x10]
mov qword [rbp - 0x50], r13
lea eax, [r8 + r8]
mov dword [rbp - 0x48], eax
mov rax, qword [rsp + 0x48]
mov rdx, rax
mov qword [rbp - 0x60], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000529f
mov eax, dword [rsp + 0x40]
cmp dword [rbp + 0x10], eax
jne 0x14000529f
mov edx, 4
mov dword [rbp - 0x58], eax
lea rcx, [rbp - 0x60]
call fcn.140061160
cmp eax, 1
jne 0x14000529f
movsxd rax, dword [rbp + 0x10]
lea ebx, [rax + rax]
sub ebx, dword [rbp - 0x48]
cmp ebx, eax
jl 0x1400051d2
mov rdx, qword [rsp + 0x48]
mov r8, rax
mov rcx, r13
mov ebx, eax
call sub.VCRUNTIME140.dll_memcpy
or dword [r12 + rsi*4], 0x80000000
mov rcx, qword [rsp + 0x50]
lea r9, [rsp + 0x40]
mov r8d, ebx
mov qword [rsp + 0x20], 0
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14000529f
cmp dword [rsp + 0x40], ebx
jne 0x14000529f
movsxd rax, ebx
lea rcx, [rbp - 0x60]
add rdi, rax
call fcn.140061b50
test eax, eax
jne 0x14000529f
mov eax, dword [rsp + 0x58]
inc rsi
mov r9d, dword [rsp + 0x7c]
inc eax
mov ebx, 0
mov dword [rsp + 0x58], eax
cmp rsi, qword [rbp - 0x78]
jl 0x140005070
movzx ecx, byte [rbp + 0x15]
mov rsi, qword [rsp + 0x50]
xor r9d, r9d
shr rdi, cl
xor r8d, r8d
cdqe
mov rcx, rsi
lea edx, [r9 + 0x18]
mov dword [r12 + rax*4], edi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x40]
mov ebx, dword [rsp + 0x5c]
mov rdx, r12
mov r8d, ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r15, qword [rsp + 0x48]
test eax, eax
je 0x1400052a9
mov eax, dword [rsp + 0x60]
mov ecx, 1
cmp dword [rsp + 0x40], ebx
movzx eax, al
cmove eax, ecx
mov dword [rsp + 0x60], eax
jmp 0x1400052a9
mov r15, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rcx, r12
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rax, qword [rsp + 0x68]
mov r12, qword [rsp + 0x380]
test rax, rax
je 0x1400052cd
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test r15, r15
je 0x1400052db
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test r13, r13
je 0x1400052e9
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [rsp + 0x60]
mov r13, qword [rsp + 0x378]
test bl, bl
jne 0x140005363
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
xor r9d, r9d
mov qword [rsp + 0x30], rcx
mov r8d, eax
mov word [rbp + 0x60], cx
xor edx, edx
lea rcx, [rbp + 0x60]
mov dword [rsp + 0x28], 0x200
mov qword [rsp + 0x20], rcx
mov ecx, 0x1200
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov rdx, qword [sym.imp.FTMedia.dll_class_CFormatFactoryUI____ptr64___ptr64_gpFFUI]
mov rcx, qword [rdx]
lea rdx, [rbp + 0x60]
mov r8, qword [rcx]
call qword [r8 + 0xe0]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
movzx eax, bl
mov rcx, qword [rbp + 0x260]
xor rcx, rsp
call fcn.14005b9c0
add rsp, 0x388
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret