Function at 0x140071ee0
Capabilities:
Clear file content
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xff80]
mov eax, 0x10080
call fcn.14007e550
sub rsp, rax
mov rax, qword [0x1400b6018]
xor rax, rsp
mov qword [rbp + 0xff70], rax
mov rax, rcx
mov qword [rsp + 0x60], rcx
mov rcx, qword [rbp + 0xffe0]
mov r12, rdx
mov qword [rsp + 0x68], rcx
lea rdx, [rsp + 0x58]
xor r13d, r13d
mov rcx, rax
and dword [rsp + 0x50], r13d
mov r15, r9
and qword [rsp + 0x58], r13
mov r14, r8
call fcn.1400730a0
mov esi, eax
test eax, eax
jns 0x140071f60
lea rax, str.Failed_to_get_size_of_source.
mov edx, 0x383
jmp 0x1400721be
mov rdi, qword [rsp + 0x58]
test r14, r14
je 0x140071f71
cmp r14, rdi
cmovb rdi, r14
test r15, r15
je 0x140071fc2
mov rax, qword [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
mov rax, qword [rsp + 0x60]
xor edx, edx
mov qword [rsp + 0x38], r12
mov rcx, rdi
mov qword [rsp + 0x30], rax
mov rax, r15
mov dword [rsp + 0x28], 1
and dword [rsp + 0x20], r13d
call qword [0x14007f838]
sub eax, 1
je 0x140072024
sub eax, 1
je 0x140072024
cmp eax, 1
jne 0x140071fc2
xor r15d, r15d
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14007202e
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
mov edx, 0x3a3
or esi, 0x80070000
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
mov r8d, esi
call fcn.1400012b0
lea rax, str.Failed_to_set_end_of_target_file.
mov edx, 0x3a3
jmp 0x1400721be
mov esi, 0x800704d3
jmp 0x1400721dd
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x140072086
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
mov edx, 0x3a8
or esi, 0x80070000
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
mov r8d, esi
call fcn.1400012b0
lea rax, str.Failed_to_reset_target_file_pointer.
mov edx, 0x3a8
jmp 0x1400721be
mov ecx, 0x10000
test r14, r14
je 0x140072099
cmp r13, r14
jae 0x1400721dd
mov r8d, r14d
lea r9, [rsp + 0x50]
sub r8d, r13d
lea rdx, [rsp + 0x70]
mov rax, r14
sub rax, r13
cmp rax, rcx
cmova r8d, ecx
test r14, r14
cmove r8d, ecx
mov rcx, qword [rsp + 0x60]
and qword [rsp + 0x20], 0
mov dword [rsp + 0x50], r8d
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140072180
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x1400721dd
mov r8d, eax
lea rdx, [rsp + 0x70]
mov rcx, r12
call fcn.1400735fc
mov esi, eax
test eax, eax
js 0x140072172
mov eax, dword [rsp + 0x50]
mov ecx, 0x10000
add r13, rax
test r15, r15
je 0x14007208b
mov rax, qword [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
mov rax, qword [rsp + 0x60]
mov rdx, r13
mov qword [rsp + 0x38], r12
mov rcx, rdi
mov qword [rsp + 0x30], rax
mov rax, r15
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
call qword [0x14007f838]
sub eax, 1
je 0x140072024
sub eax, 1
je 0x140072024
mov ecx, 0x10000
cmp eax, 1
jne 0x14007208b
xor r15d, r15d
jmp 0x14007208b
lea rax, str.Failed_to_write_to_target.
mov edx, 0x3b7
jmp 0x1400721be
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
mov edx, 0x3b1
or esi, 0x80070000
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
mov r8d, esi
call fcn.1400012b0
lea rax, str.Failed_to_read_from_source.
mov edx, 0x3b1
mov r9d, 0x13
mov qword [rsp + 0x28], rax
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutil_fileutil.cpp
mov dword [rsp + 0x20], esi
lea r8d, [r9 - 0xe]
call fcn.1400012b4
mov eax, esi
mov rcx, qword [rbp + 0xff70]
xor rcx, rsp
call fcn.140053b50
add rsp, 0x10080
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret