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

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x50], rax
movzx eax, word [rcx + 0x20]
lea r14d, [r8 - 1]
mov rsi, rcx
xor ebx, ebx
mov dword [rsp + 0x48], ebx
xor r9d, r9d
lea rdx, [rax + rax*4]
mov rax, qword [rcx + 0x58]
lea rdi, [rax + rdx*8]
mov rdx, qword [rcx + 0x48]
mov r8d, dword [rdx + 0x24]
add r14d, r8d
mov ecx, dword [rdx + 0x20]
lea ebp, [r8 - 1]
add ebp, dword [rdi - 0x18]
lea r15d, [rcx - 1]
add r15d, dword [rdi - 0x20]
neg ecx
and r15d, ecx
lea ecx, [r8 - 1]
add r15d, dword [rdi - 0x1c]
not ecx
and ebp, ecx
and r14d, ecx
add ebp, dword [rdi - 0x14]
xor r8d, r8d
mov rcx, qword [rsi + 0x10]
lea edx, [r14 + rbp]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x140001e62
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], rbx
mov r9d, 0x400
mov edi, eax
mov dword [rsp + 0x28], ebx
lea rax, [rsp + 0x40]
mov r8d, edi
xor edx, edx
mov qword [rsp + 0x20], rax
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
lea r8, [0x140003750]
mov rdx, qword [rsp + 0x40]
lea rcx, [rsi + 0x10a0]
mov qword [rsp + 0x20], rdx
mov r9d, edi
lea rdx, [0x140003738]
call fcn.1400018b0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
jmp 0x140001fba
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140001eaa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], rbx
mov r9d, 0x400
mov edi, eax
mov dword [rsp + 0x28], ebx
lea rax, [rsp + 0x40]
mov r8d, edi
xor edx, edx
mov qword [rsp + 0x20], rax
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
lea r8, [0x140003770]
jmp 0x140001e30
xor eax, eax
lea rdx, str..Patch
xorps xmm0, xmm0
mov rcx, rdi
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
lea r8d, [rax + 8]
mov qword [rdi + 0x20], rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov dword [rdi + 8], r14d
xor r9d, r9d
mov dword [rdi + 0xc], r15d
xor r8d, r8d
mov dword [rdi + 0x14], ebp
mov rdx, rbx
mov dword [rdi + 0x10], r14d
mov dword [rdi + 0x24], 0xe0000040
mov rax, qword [rsi + 0x40]
inc word [rax + 2]
mov rax, qword [rsi + 0x48]
inc word [rsi + 0x20]
add dword [rax + 0x38], r14d
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x140001f4c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], rbx
mov r9d, 0x400
mov edi, eax
mov dword [rsp + 0x28], ebx
lea rax, [rsp + 0x40]
mov r8d, edi
xor edx, edx
mov qword [rsp + 0x20], rax
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
lea r8, [0x140003790]
jmp 0x140001e30
mov rax, qword [rsi + 0x48]
lea r9, [rsp + 0x48]
mov rdx, qword [rsi + 0x28]
mov rcx, qword [rsi + 0x10]
mov qword [rsp + 0x20], rbx
mov r8d, dword [rax + 0x3c]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140001fad
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x30], rbx
mov r9d, 0x400
mov edi, eax
mov dword [rsp + 0x28], ebx
lea rax, [rsp + 0x40]
mov r8d, edi
xor edx, edx
mov qword [rsp + 0x20], rax
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
lea r8, [0x1400037b8]
jmp 0x140001e30
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rax, rdi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140001ff0
mov rbx, qword [rsp + 0x98]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret