Function at 0x14001ff93
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 0x14001fffd
mov dword [rbp + 0xe0], 6
cmp qword [rbp + 0xb0], 0
je 0x140020044
cmp qword [rbp + 0xb8], 0
je 0x140020044
cmp qword [rbp + 0xc8], 0
je 0x140020025
cmp qword [rbp + 0xc0], 0
je 0x140020044
cmp word [rbp - 0x24], 0
je 0x140020036
cmp qword [rbp + 0xd0], 0
je 0x140020044
mov eax, dword [rbp + 0xe0]
and eax, 0xf
cmp eax, 0xa
jbe 0x140020065
cmp qword [rbp + 0xe8], 0
je 0x14002005b
mov rax, qword [rbp + 0xe8]
mov dword [rax], 0x18
mov eax, 0
jmp 0x1400202af
mov rax, qword [rbp + 0xb8]
mov rcx, rax
call sym.mz_zip_writer_validate_archive_name
test eax, eax
jne 0x140020099
cmp qword [rbp + 0xe8], 0
je 0x14002008f
mov rax, qword [rbp + 0xe8]
mov dword [rax], 0x19
mov eax, 0
jmp 0x1400202af
lea rax, [rbp - 0x20]
mov rdx, rax
mov rcx, qword [rbp + 0xb0]
call sym.mz_stat64
test eax, eax
je 0x140020105
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 0x1400200f6
cmp qword [rbp + 0xe8], 0
je 0x1400200ec
mov edx, dword [rbp + 0x3c]
mov rax, qword [rbp + 0xe8]
mov dword [rax], edx
mov eax, 0
jmp 0x1400202af
mov dword [rbp + 0x98], 1
jmp 0x1400201aa
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 0x140020159
cmp qword [rbp + 0xe8], 0
je 0x14002014f
mov edx, dword [rbp + 0x3c]
mov rax, qword [rbp + 0xe8]
mov dword [rax], edx
mov eax, 0
jmp 0x1400202af
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 0x1400201aa
cmp qword [rbp + 0xe8], 0
je 0x14002018f
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 0x1400202af
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 0x14002023a
cmp dword [rbp + 0x94], 0
jne 0x140020230
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 0x14002026c
cmp dword [rbp + 0x94], 0
jne 0x140020262
mov eax, dword [rbp + 0x3c]
mov dword [rbp + 0x94], eax
mov dword [rbp + 0x9c], 0
cmp dword [rbp + 0x9c], 0
jne 0x140020290
cmp dword [rbp + 0x98], 0
je 0x140020290
mov rcx, qword [rbp + 0xb0]
call sym.remove
mov dword [rbp + 0x90], eax
cmp qword [rbp + 0xe8], 0
je 0x1400202a9
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