Function at 0x1800265a0
Capabilities:
Clear file content
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xf0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov rsi, rdx
mov r14, rcx
xor r12d, r12d
lea rax, [rdx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1800267b3
mov rax, qword [rcx]
xor r8d, r8d
xor edx, edx
mov rax, qword [rax + 0x98]
call qword [case.0x180062b2e.0]
mov ebx, eax
cmp eax, 0xc8
jne 0x180026808
mov rax, qword [r14 + 0x38]
movsxd rcx, dword [rax + 8]
lea rbx, [r14 + 0x38]
add rbx, rcx
mov qword [rsp + 0x58], rbx
je 0x180026624
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax]
call qword [case.0x180062b2e.0]
nop
xor eax, eax
mov qword [rsp + 0x50], rax
xor edx, edx
lea r9d, [rax + 1]
lea r8, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x180026671
lea rdi, [0x18008d218]
mov rcx, qword [0x18008d218]
cmp rcx, rdi
je 0x180026678
test byte [rcx + 0x1c], 2
je 0x180026678
lea edx, [rax + 0x25]
lea r8, [0x180073ab8]
mov rcx, qword [rcx + 0x10]
call fcn.180001310
jmp 0x180026678
lea rdi, [0x18008d218]
mov dword [rsp + 0x148], 1
and qword [rsp + 0x38], 0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
xor r13d, r13d
mov rax, qword [rsp + 0x140]
mov rdx, rax
sub rdx, r13
lea r8, [rsp + 0x38]
mov rcx, r14
call fcn.180026f98
mov r8, rax
xor r15d, r15d
test rax, rax
setne r15b
mov dword [rsp + 0x148], r15d
add r13, rax
and dword [rsp + 0x30], 0
mov rcx, qword [rsp + 0x38]
xor edx, edx
cmp qword [rsp + 0x40], rcx
cmovne rdx, rcx
test r15d, r15d
je 0x180026708
test rdx, rdx
je 0x180026708
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180026863
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x40], rcx
test r15d, r15d
je 0x180026723
mov rax, qword [rsp + 0x140]
cmp r13, rax
jb 0x18002669d
test rcx, rcx
je 0x18002675b
mov rdx, qword [rsp + 0x48]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180026755
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800268c6
call fcn.180040d20
nop
jmp 0x18002677e
test r12d, r12d
js 0x1800268cc
test rbx, rbx
je 0x18002679d
mov rcx, qword [rbx]
mov rax, qword [rcx + 0x10]
mov rcx, rbx
call qword [case.0x180062b2e.0]
nop
mov eax, r15d
add rsp, 0xf0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
lea rdi, [0x18008d218]
mov rcx, qword [0x18008d218]
cmp rcx, rdi
je 0x1800267e1
test byte [rcx + 0x1c], 1
je 0x1800267e1
mov edx, 0x23
lea r8, [0x180073ab8]
mov rcx, qword [rcx + 0x10]
call fcn.180001310
mov edx, 0x80070057
lea rcx, [rsp + 0xc8]
call fcn.18003b9b4
lea rdx, [0x180089f50]
lea rcx, [rsp + 0xc8]
call fcn.1800425b8
int3
lea rdi, [0x18008d218]
mov rcx, qword [0x18008d218]
cmp rcx, rdi
je 0x180026839
test byte [rcx + 0x1c], 1
je 0x180026839
lea edx, [r12 + 0x24]
mov r9d, eax
lea r8, [0x180073ab8]
mov rcx, qword [rcx + 0x10]
call fcn.180001330
movzx edx, bx
or edx, 0x80070000
test ebx, ebx
cmovle edx, ebx
lea rcx, [rsp + 0x68]
call fcn.18003b9b4
lea rdx, [0x180089f50]
lea rcx, [rsp + 0x68]
call fcn.1800425b8
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ebx, eax
mov rcx, qword [0x18008d218]
cmp rcx, rdi
je 0x180026896
test byte [rcx + 0x1c], 1
je 0x180026896
mov edx, 0x26
mov r9d, eax
lea r8, [0x180073ab8]
mov rcx, qword [rcx + 0x10]
call fcn.180001330
movzx edx, bx
or edx, 0x80070000
test ebx, ebx
cmovle edx, ebx
lea rcx, [rsp + 0x88]
call fcn.18003b9b4
lea rdx, [0x180089f50]
lea rcx, [rsp + 0x88]
call fcn.1800425b8
nop
call fcn.18004afbc
nop
lfence
mov rcx, qword [0x18008d218]
cmp rcx, rdi
je 0x1800268f9
test byte [rcx + 0x1c], 1
je 0x1800268f9
mov edx, 0x27
mov r9d, r12d
lea r8, [0x180073ab8]
mov rcx, qword [rcx + 0x10]
call fcn.180001330
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov edx, r12d
lea rcx, [rsp + 0xa8]
call fcn.18003b9b4
lea rdx, [0x180089f50]
lea rcx, [rsp + 0xa8]
call fcn.1800425b8
int3