Function at 0x51dba0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x566778
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x19014
call fcn.00527220
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0
call fcn.0051db90
mov ecx, esi
call fcn.0051d910
xor eax, eax
mov dword [ebp - 0x1c], eax
cmp eax, dword [esi + 0xb8]
jge 0x51debd
mov ecx, dword [0x5c2a74]
mov dword [ebp - 0x14], ecx
mov edx, dword [esi + 0xb4]
lea edi, [eax*4]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
mov eax, dword [edi + edx]
push eax
push str._s.z
push ecx
call fcn.0053afda
mov edx, dword [ebp - 0x14]
add esp, 0xc
push 0x5c2800
push edx
call fcn.00513870
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x51dc9a
mov eax, dword [0x5c2a74]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
call fcn.00529287
mov ecx, dword [eax]
mov edx, dword [ebp - 0x14]
push ecx
push edx
lea eax, [ebp - 0x18]
push str.compress:__s_zopen_error__errno___ld_n
push eax
call fcn.0053afda
mov ecx, dword [0x5c7560]
add esp, 0x10
test ecx, ecx
je 0x51dc76
mov edx, dword [ebp - 0x18]
push 1
push edx
call fcn.0045eb80
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.005421be
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.005421be
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
jmp 0x51dbe6
mov eax, dword [esi + 0xb4]
push 0x5a9108
mov eax, dword [edi + eax]
push eax
call fcn.0052825f
mov esi, eax
add esp, 8
test esi, esi
jne 0x51dd22
mov ecx, dword [0x5c2a74]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x20]
mov byte [ebp - 4], 3
add edi, dword [edx + 0xb4]
call fcn.00529287
mov eax, dword [eax]
mov ecx, dword [edi]
push eax
push ecx
lea edx, [ebp - 0x18]
push str.compress:_mf__s_fopen_error__errno___ld_n
push edx
call fcn.0053afda
mov ecx, dword [0x5c7560]
add esp, 0x10
test ecx, ecx
je 0x51dcfe
mov eax, dword [ebp - 0x18]
push 1
push eax
call fcn.0045eb80
push ebx
call fcn.00514180
mov ecx, dword [ebp - 0x14]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.005421be
jmp 0x51dea2
test byte [esi + 0xc], 0x10
jne 0x51de7d
push esi
push 0x19000
lea edx, [ebp - 0x19024]
push 1
push edx
call fcn.00529030
mov edi, eax
mov al, byte [esi + 0xc]
add esp, 0x10
test al, 0x20
je 0x51ddc0
mov eax, dword [0x5c2a74]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 4], 4
mov edx, dword [ecx + 0xb4]
lea edi, [edx + eax*4]
call fcn.00529287
mov ecx, dword [eax]
mov edx, dword [edi]
push ecx
push edx
lea eax, [ebp - 0x18]
push str.compress:_mf__s_fread_error__errno___ld_n
push eax
call fcn.0053afda
mov ecx, dword [0x5c7560]
add esp, 0x10
test ecx, ecx
je 0x51dd98
mov edx, dword [ebp - 0x18]
push 1
push edx
call fcn.0045eb80
push ebx
call fcn.00514180
mov eax, dword [ebp - 0x14]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call fcn.00528078
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
jmp 0x51de56
test edi, edi
jle 0x51dd22
lea ecx, [ebp - 0x19024]
push edi
push ecx
push ebx
call fcn.00513fb0
add esp, 0xc
cmp eax, edi
je 0x51dd22
lea edx, [ebp - 0x24]
push edx
push ebx
call fcn.00514200
mov edi, eax
mov eax, dword [0x5c2a74]
add esp, 8
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 5
call fcn.00529287
mov ecx, dword [eax]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
push ecx
push edx
push edi
push eax
lea ecx, [ebp - 0x1c]
push str.uncompress:__s_zwrite_error__msg_s_n_zerr_ld__errno_ld_n
push ecx
call fcn.0053afda
mov ecx, dword [0x5c7560]
add esp, 0x18
test ecx, ecx
je 0x51de33
mov edx, dword [ebp - 0x1c]
push 1
push edx
call fcn.0045eb80
push ebx
call fcn.00514180
mov eax, dword [ebp - 0x14]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call fcn.00528078
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.005421be
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.005421be
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call fcn.00514180
push esi
call fcn.00528078
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
add esp, 8
mov edx, dword [ecx + 0xb4]
mov eax, dword [edx + eax*4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.005421be
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x1c], eax
jmp 0x51dbe6
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret