Function at 0x1400650b0
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 [0x14036e3c8]
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 0x140065269
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.14000a430
mov edx, esi
lea rcx, [rbp + 0x17]
call fcn.1400638e0
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x140065134
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp - 9]
call fcn.14000a2b0
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.14000a430
mov rdx, rbx
lea rcx, [rbp - 0x29]
call fcn.140037cb0
mov rdx, qword [rbp - 0x11]
cmp rdx, 8
jb 0x1400651b5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400651b0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140065408
call fcn.1402434a4
mov qword [rbp - 0x19], rdi
mov qword [rbp - 0x11], 7
mov word [rbp - 0x29], di
mov rdx, qword [rbp + 0x2f]
cmp rdx, 8
jb 0x140065205
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x17]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140065200
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140065408
call fcn.1402434a4
mov qword [rbp + 0x27], rdi
mov qword [rbp + 0x2f], 7
mov word [rbp + 0x17], di
mov rdx, qword [rbp + 0xf]
cmp rdx, 8
jb 0x140065255
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140065250
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140065408
call fcn.1402434a4
test esi, esi
jle 0x140065262
movzx esi, si
or esi, 0x80070000
mov eax, esi
jmp 0x1400653e9
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400653e7
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.14000a430
mov edx, esi
lea rcx, [rbp + 0x17]
call fcn.1400638e0
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x1400652c2
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp - 9]
call fcn.14000a2b0
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.14000a430
mov rdx, rbx
lea rcx, [rbp - 0x29]
call fcn.140037cb0
mov rdx, qword [rbp - 0x11]
cmp rdx, 8
jb 0x140065343
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006533e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006540e
call fcn.1402434a4
mov qword [rbp - 0x19], rdi
mov qword [rbp - 0x11], 7
mov word [rbp - 0x29], di
mov rdx, qword [rbp + 0x2f]
cmp rdx, 8
jb 0x140065393
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x17]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006538e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006540e
call fcn.1402434a4
mov qword [rbp + 0x27], rdi
mov qword [rbp + 0x2f], 7
mov word [rbp + 0x17], di
mov rdx, qword [rbp + 0xf]
cmp rdx, 8
jb 0x140065255
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140065250
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006540e
jmp 0x140065250
xor eax, eax
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1402435c0
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
call fcn.14024a84c
int3
call fcn.14024a84c
int3