Function at 0x180004a78
Capabilities:
Clear file content
Delete file
Get file size
Read file on windows
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1798]
mov eax, 0x1870
call sub.ntdll.dll___chkstk
sub rsp, rax
and qword [rsp + 0x30], 0
mov r14, rdx
mov r12, r9
xor r9d, r9d
mov r13d, r8d
mov r15, rcx
lea r8d, [r9 + 1]
mov edx, 0x80000000
mov rcx, r14
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x180004cef
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, qword [0x180013580]
xor edx, edx
mov r8d, eax
mov edi, eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x17c0]
mov rdx, rax
mov r8d, edi
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180004b32
cmp dword [rbp + 0x17c0], edi
je 0x180004b48
mov rcx, qword [0x180013580]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ebx, ebx
xor edi, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x180004cef
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x68]
mov dword [rsp + 0x54], eax
lea rax, [rsp + 0x54]
mov edx, edi
mov qword [rsp + 0x28], rax
mov rax, qword [r15 + 8]
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.1800063f0
mov rsi, qword [rsp + 0x68]
mov rdx, qword [r15 + 8]
mov rcx, qword [r15]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov r8, r12
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], r13d
call fcn.180001a60
xor r15d, r15d
test eax, eax
je 0x180004ccb
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea r9, [rbp + 0xf70]
lea rdx, [rbp + 0x770]
mov rcx, r14
call fcn.18000cf7c
movzx r9d, word [rbp + 0x770]
mov word [rsp + 0x70], r9w
test r9w, r9w
je 0x180004c1c
mov ecx, r15d
lea rcx, [rcx + 2]
movzx eax, word [rbp + rcx + 0x770]
mov word [rsp + rcx + 0x70], ax
test ax, ax
jne 0x180004c06
lea rdx, [0x1800104b4]
lea rcx, [rsp + 0x70]
call fcn.18000cad0
lea rdx, [rbp + 0xf70]
lea rcx, [rsp + 0x70]
call fcn.18000cad0
lea rdx, [0x1800104a8]
lea rcx, [rsp + 0x70]
call fcn.18000cad0
mov qword [rsp + 0x30], r15
lea rcx, [rsp + 0x70]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180004cb7
mov r8d, dword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
lea r9, [rsp + 0x50]
mov rcx, rax
mov dword [rsp + 0x50], r15d
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, qword [rsp + 0x60]
mov rcx, qword [0x180013580]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x180013580]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x180013580]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r11, [rsp + 0x1870]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret