Function at 0x140061f60
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rax, qword [0x14036a3c8]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rbx, rcx
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x140062119
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
xor edi, edi
mov qword [rbp - 9], rdi
mov qword [rbp + 7], rdi
mov qword [rbp + 0xf], 7
lea r8d, [rdi + 0x1b]
lea rdx, str.SetFilePointerEx_get_error:
lea rcx, [rbp - 9]
call fcn.14000a410
mov edx, esi
lea rcx, [rbp + 0x17]
call fcn.140060790
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x140061fe4
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp - 9]
call fcn.14000a290
mov rbx, rax
mov qword [rbp - 0x29], rdi
mov qword [rbp - 0x19], rdi
mov qword [rbp - 0x11], 7
mov r8d, 0x1e
lea rdx, str.seven_zip::FileStream::SetSize
lea rcx, [rbp - 0x29]
call fcn.14000a410
mov rdx, rbx
lea rcx, [rbp - 0x29]
call fcn.1400347a0
mov rdx, qword [rbp - 0x11]
cmp rdx, 8
jb 0x140062065
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140062060
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400622b8
call fcn.140240d18
mov qword [rbp - 0x19], rdi
mov qword [rbp - 0x11], 7
mov word [rbp - 0x29], di
mov rdx, qword [rbp + 0x2f]
cmp rdx, 8
jb 0x1400620b5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x17]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400620b0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400622b8
call fcn.140240d18
mov qword [rbp + 0x27], rdi
mov qword [rbp + 0x2f], 7
mov word [rbp + 0x17], di
mov rdx, qword [rbp + 0xf]
cmp rdx, 8
jb 0x140062105
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140062100
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400622b8
call fcn.140240d18
test esi, esi
jle 0x140062112
movzx esi, si
or esi, 0x80070000
mov eax, esi
jmp 0x140062299
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140062297
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
xor edi, edi
mov qword [rbp - 9], rdi
mov qword [rbp + 7], rdi
mov qword [rbp + 0xf], 7
lea r8d, [rdi + 0x17]
lea rdx, str.SetEndOfFile_get_error:
lea rcx, [rbp - 9]
call fcn.14000a410
mov edx, esi
lea rcx, [rbp + 0x17]
call fcn.140060790
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x140062172
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp - 9]
call fcn.14000a290
mov rbx, rax
mov qword [rbp - 0x29], rdi
mov qword [rbp - 0x19], rdi
mov qword [rbp - 0x11], 7
mov r8d, 0x1e
lea rdx, str.seven_zip::FileStream::SetSize
lea rcx, [rbp - 0x29]
call fcn.14000a410
mov rdx, rbx
lea rcx, [rbp - 0x29]
call fcn.1400347a0
mov rdx, qword [rbp - 0x11]
cmp rdx, 8
jb 0x1400621f3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400621ee
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400622be
call fcn.140240d18
mov qword [rbp - 0x19], rdi
mov qword [rbp - 0x11], 7
mov word [rbp - 0x29], di
mov rdx, qword [rbp + 0x2f]
cmp rdx, 8
jb 0x140062243
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x17]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006223e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400622be
call fcn.140240d18
mov qword [rbp + 0x27], rdi
mov qword [rbp + 0x2f], 7
mov word [rbp + 0x17], di
mov rdx, qword [rbp + 0xf]
cmp rdx, 8
jb 0x140062105
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140062100
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400622be
jmp 0x140062100
xor eax, eax
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140240e30
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
call fcn.1402480bc
int3
call fcn.1402480bc
int3