Function at 0x14001faf3
Capabilities:
Delete file

Disassembly:
push rbp
sub rsp, 0x120
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xb0], rcx
mov qword [rbp + 0xb8], rdx
mov qword [rbp + 0xc0], r8
mov qword [rbp + 0xc8], r9
mov eax, dword [rbp + 0xd8]
mov word [rbp - 0x24], ax
mov dword [rbp + 0x98], 0
mov dword [rbp + 0x94], 0
lea rax, [rbp + 0x20]
mov rcx, rax
call sym.mz_zip_zero_struct
mov eax, dword [rbp + 0xe0]
test eax, eax
jns 0x14001fb5d
mov dword [rbp + 0xe0], 6
cmp qword [rbp + 0xb0], 0
je 0x14001fba4
cmp qword [rbp + 0xb8], 0
je 0x14001fba4
cmp qword [rbp + 0xc8], 0
je 0x14001fb85
cmp qword [rbp + 0xc0], 0
je 0x14001fba4
cmp word [rbp - 0x24], 0
je 0x14001fb96
cmp qword [rbp + 0xd0], 0
je 0x14001fba4
mov eax, dword [rbp + 0xe0]
and eax, 0xf
cmp eax, 0xa
jbe 0x14001fbc5
cmp qword [rbp + 0xe8], 0
je 0x14001fbbb
mov rax, qword [rbp + 0xe8]
mov dword [rax], 0x18
mov eax, 0
jmp 0x14001fe0f
mov rax, qword [rbp + 0xb8]
mov rcx, rax
call sym.mz_zip_writer_validate_archive_name
test eax, eax
jne 0x14001fbf9
cmp qword [rbp + 0xe8], 0
je 0x14001fbef
mov rax, qword [rbp + 0xe8]
mov dword [rax], 0x19
mov eax, 0
jmp 0x14001fe0f
lea rax, [rbp - 0x20]
mov rdx, rax
mov rcx, qword [rbp + 0xb0]
call sym.mz_stat64
test eax, eax
je 0x14001fc65
mov edx, dword [rbp + 0xe0]
lea rax, [rbp + 0x20]
mov r9d, edx
mov r8d, 0
mov rdx, qword [rbp + 0xb0]
mov rcx, rax
call sym.mz_zip_writer_init_file_v2
test eax, eax
jne 0x14001fc56
cmp qword [rbp + 0xe8], 0
je 0x14001fc4c
mov edx, dword [rbp + 0x3c]
mov rax, qword [rbp + 0xe8]
mov dword [rax], edx
mov eax, 0
jmp 0x14001fe0f
mov dword [rbp + 0x98], 1
jmp 0x14001fd0a
mov eax, dword [rbp + 0xe0]
or ah, 8
mov edx, eax
lea rax, [rbp + 0x20]
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, edx
mov rdx, qword [rbp + 0xb0]
mov rcx, rax
call sym.mz_zip_reader_init_file_v2
test eax, eax
jne 0x14001fcb9
cmp qword [rbp + 0xe8], 0
je 0x14001fcaf
mov edx, dword [rbp + 0x3c]
mov rax, qword [rbp + 0xe8]
mov dword [rax], edx
mov eax, 0
jmp 0x14001fe0f
mov edx, dword [rbp + 0xe0]
lea rax, [rbp + 0x20]
mov r8d, edx
mov rdx, qword [rbp + 0xb0]
mov rcx, rax
call sym.mz_zip_writer_init_from_reader_v2
test eax, eax
jne 0x14001fd0a
cmp qword [rbp + 0xe8], 0
je 0x14001fcef
mov edx, dword [rbp + 0x3c]
mov rax, qword [rbp + 0xe8]
mov dword [rax], edx
lea rax, [rbp + 0x20]
mov edx, 0
mov rcx, rax
call sym.mz_zip_reader_end_internal
mov eax, 0
jmp 0x14001fe0f
movzx ecx, word [rbp - 0x24]
mov r9, qword [rbp + 0xc8]
mov r10, qword [rbp + 0xc0]
mov rdx, qword [rbp + 0xb8]
lea rax, [rbp + 0x20]
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov r8d, dword [rbp + 0xe0]
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x28], ecx
mov rcx, qword [rbp + 0xd0]
mov qword [rsp + 0x20], rcx
mov r8, r10
mov rcx, rax
call sym.mz_zip_writer_add_mem_ex
mov dword [rbp + 0x9c], eax
mov eax, dword [rbp + 0x3c]
mov dword [rbp + 0x94], eax
lea rax, [rbp + 0x20]
mov rcx, rax
call sym.mz_zip_writer_finalize_archive
test eax, eax
jne 0x14001fd9a
cmp dword [rbp + 0x94], 0
jne 0x14001fd90
mov eax, dword [rbp + 0x3c]
mov dword [rbp + 0x94], eax
mov dword [rbp + 0x9c], 0
mov edx, dword [rbp + 0x9c]
lea rax, [rbp + 0x20]
mov rcx, rax
call sym.mz_zip_writer_end_internal
test eax, eax
jne 0x14001fdcc
cmp dword [rbp + 0x94], 0
jne 0x14001fdc2
mov eax, dword [rbp + 0x3c]
mov dword [rbp + 0x94], eax
mov dword [rbp + 0x9c], 0
cmp dword [rbp + 0x9c], 0
jne 0x14001fdf0
cmp dword [rbp + 0x98], 0
je 0x14001fdf0
mov rcx, qword [rbp + 0xb0]
call sym.remove
mov dword [rbp + 0x90], eax
cmp qword [rbp + 0xe8], 0
je 0x14001fe09
mov rax, qword [rbp + 0xe8]
mov edx, dword [rbp + 0x94]
mov dword [rax], edx
mov eax, dword [rbp + 0x9c]
add rsp, 0x120
pop rbp
ret