Function at 0x4d962e
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf8
mov eax, dword [ebp + 0x1c]
mov word [ebp - 0xbc], ax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x88]
mov dword [esp], eax
call sym._mz_zip_zero_struct
mov eax, dword [ebp + 0x20]
test eax, eax
jns 0x4d966b
mov dword [ebp + 0x20], 6
cmp dword [ebp + 8], 0
je 0x4d96a6
cmp dword [ebp + 0xc], 0
je 0x4d96a9
cmp dword [ebp + 0x14], 0
je 0x4d9685
cmp dword [ebp + 0x10], 0
je 0x4d96ac
jmp 0x4d9686
nop
cmp word [ebp - 0xbc], 0
je 0x4d9698
cmp dword [ebp + 0x18], 0
je 0x4d96af
jmp 0x4d9699
nop
mov eax, dword [ebp + 0x20]
and eax, 0xf
cmp eax, 0xa
jbe 0x4d96c9
jmp 0x4d96b0
nop
jmp 0x4d96b0
nop
jmp 0x4d96b0
nop
jmp 0x4d96b0
nop
cmp dword [ebp + 0x24], 0
je 0x4d96bf
mov eax, dword [ebp + 0x24]
mov dword [eax], 0x18
mov eax, 0
jmp 0x4d9909
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._mz_zip_writer_validate_archive_name
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4d96f6
cmp dword [ebp + 0x24], 0
je 0x4d96ec
mov eax, dword [ebp + 0x24]
mov dword [eax], 0x19
mov eax, 0
jmp 0x4d9909
lea eax, [ebp - 0xac]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._stat
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4d976d
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
lea eax, [ebp - 0x88]
mov dword [esp], eax
call sym._mz_zip_writer_init_file_v2
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x4d9761
cmp dword [ebp + 0x24], 0
je 0x4d9757
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp + 0x24]
mov dword [eax], edx
mov eax, 0
jmp 0x4d9909
mov dword [ebp - 0x10], 1
jmp 0x4d9820
mov eax, dword [ebp + 0x20]
or ah, 8
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
lea eax, [ebp - 0x88]
mov dword [esp], eax
call sym._mz_zip_reader_init_file_v2
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4d97cd
cmp dword [ebp + 0x24], 0
je 0x4d97c3
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp + 0x24]
mov dword [eax], edx
mov eax, 0
jmp 0x4d9909
mov eax, dword [ebp + 0x20]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
lea eax, [ebp - 0x88]
mov dword [esp], eax
call sym._mz_zip_writer_init_from_reader_v2
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x4d9820
cmp dword [ebp + 0x24], 0
je 0x4d9800
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp + 0x24]
mov dword [eax], edx
mov dword [esp + 4], 0
lea eax, [ebp - 0x88]
mov dword [esp], eax
call sym._mz_zip_reader_end_internal
mov eax, 0
jmp 0x4d9909
movzx eax, word [ebp - 0xbc]
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov edx, dword [ebp + 0x20]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x88]
mov dword [esp], eax
call sym._mz_zip_writer_add_mem_ex
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x88]
mov dword [esp], eax
call sym._mz_zip_writer_finalize_archive
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x4d98a7
cmp dword [ebp - 0x14], 0
jne 0x4d98a0
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x88]
mov dword [esp], eax
call sym._mz_zip_writer_end_internal
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x4d98d8
cmp dword [ebp - 0x14], 0
jne 0x4d98d1
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0
jne 0x4d98f8
cmp dword [ebp - 0x10], 0
je 0x4d98f8
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._remove
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
cmp dword [ebp + 0x24], 0
je 0x4d9906
mov eax, dword [ebp + 0x24]
mov edx, dword [ebp - 0x14]
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
leave
ret