Function at 0x513630
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55b418
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x19014
call fcn.0051cbf0
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.00513620
mov ecx, esi
call fcn.005133a0
xor eax, eax
mov dword [ebp - 0x1c], eax
cmp eax, dword [esi + 0xb8]
jge 0x51394d
mov ecx, dword [0x5b5ecc]
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.0053091a
mov edx, dword [ebp - 0x14]
add esp, 0xc
push 0x5b5c58
push edx
call fcn.00509300
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x51372a
mov eax, dword [0x5b5ecc]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
call fcn.0051ec14
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.0053091a
mov ecx, dword [0x5ba970]
add esp, 0x10
test ecx, ecx
je 0x513706
mov edx, dword [ebp - 0x18]
push 1
push edx
call fcn.004593e0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00537b04
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00537b04
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
jmp 0x513676
mov eax, dword [esi + 0xb4]
push 0x59cee0
mov eax, dword [edi + eax]
push eax
call fcn.0051dc3f
mov esi, eax
add esp, 8
test esi, esi
jne 0x5137b2
mov ecx, dword [0x5b5ecc]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x20]
mov byte [ebp - 4], 3
add edi, dword [edx + 0xb4]
call fcn.0051ec14
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.0053091a
mov ecx, dword [0x5ba970]
add esp, 0x10
test ecx, ecx
je 0x51378e
mov eax, dword [ebp - 0x18]
push 1
push eax
call fcn.004593e0
push ebx
call fcn.00509c10
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.00537b04
jmp 0x513932
test byte [esi + 0xc], 0x10
jne 0x51390d
push esi
push 0x19000
lea edx, [ebp - 0x19024]
push 1
push edx
call fcn.0051ea00
mov edi, eax
mov al, byte [esi + 0xc]
add esp, 0x10
test al, 0x20
je 0x513850
mov eax, dword [0x5b5ecc]
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.0051ec14
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.0053091a
mov ecx, dword [0x5ba970]
add esp, 0x10
test ecx, ecx
je 0x513828
mov edx, dword [ebp - 0x18]
push 1
push edx
call fcn.004593e0
push ebx
call fcn.00509c10
mov eax, dword [ebp - 0x14]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call fcn.0051da58
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
jmp 0x5138e6
test edi, edi
jle 0x5137b2
lea ecx, [ebp - 0x19024]
push edi
push ecx
push ebx
call fcn.00509a40
add esp, 0xc
cmp eax, edi
je 0x5137b2
lea edx, [ebp - 0x24]
push edx
push ebx
call fcn.00509c90
mov edi, eax
mov eax, dword [0x5b5ecc]
add esp, 8
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 5
call fcn.0051ec14
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.0053091a
mov ecx, dword [0x5ba970]
add esp, 0x18
test ecx, ecx
je 0x5138c3
mov edx, dword [ebp - 0x1c]
push 1
push edx
call fcn.004593e0
push ebx
call fcn.00509c10
mov eax, dword [ebp - 0x14]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call fcn.0051da58
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00537b04
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00537b04
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.00509c10
push esi
call fcn.0051da58
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.00537b04
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x1c], eax
jmp 0x513676
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