Function at 0x542790
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x590688
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x19014
call fcn.0054e3f0
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.00542780
mov ecx, esi
call fcn.00542500
xor eax, eax
mov dword [ebp - 0x1c], eax
cmp eax, dword [esi + 0xb8]
jge 0x542aad
mov ecx, dword [0x639ad4]
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.00562ecb
mov edx, dword [ebp - 0x14]
add esp, 0xc
push 0x635750
push edx
call fcn.00537ff0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x54288a
mov eax, dword [0x639ad4]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
call fcn.005508e7
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.00562ecb
mov ecx, dword [0x63e600]
add esp, 0x10
test ecx, ecx
je 0x542866
mov edx, dword [ebp - 0x18]
push 1
push edx
call fcn.0046f830
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0056a100
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.0056a100
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
jmp 0x5427d6
mov eax, dword [esi + 0xb4]
push 0x61b408
mov eax, dword [edi + eax]
push eax
call fcn.0054f48f
mov esi, eax
add esp, 8
test esi, esi
jne 0x542912
mov ecx, dword [0x639ad4]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x20]
mov byte [ebp - 4], 3
add edi, dword [edx + 0xb4]
call fcn.005508e7
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.00562ecb
mov ecx, dword [0x63e600]
add esp, 0x10
test ecx, ecx
je 0x5428ee
mov eax, dword [ebp - 0x18]
push 1
push eax
call fcn.0046f830
push ebx
call fcn.00538900
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.0056a100
jmp 0x542a92
test byte [esi + 0xc], 0x10
jne 0x542a6d
push esi
push 0x19000
lea edx, [ebp - 0x19024]
push 1
push edx
call fcn.00550655
mov edi, eax
mov al, byte [esi + 0xc]
add esp, 0x10
test al, 0x20
je 0x5429b0
mov eax, dword [0x639ad4]
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.005508e7
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.00562ecb
mov ecx, dword [0x63e600]
add esp, 0x10
test ecx, ecx
je 0x542988
mov edx, dword [ebp - 0x18]
push 1
push edx
call fcn.0046f830
push ebx
call fcn.00538900
mov eax, dword [ebp - 0x14]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call fcn.0054f2a8
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
jmp 0x542a46
test edi, edi
jle 0x542912
lea ecx, [ebp - 0x19024]
push edi
push ecx
push ebx
call fcn.00538730
add esp, 0xc
cmp eax, edi
je 0x542912
lea edx, [ebp - 0x24]
push edx
push ebx
call fcn.00538980
mov edi, eax
mov eax, dword [0x639ad4]
add esp, 8
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 5
call fcn.005508e7
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.00562ecb
mov ecx, dword [0x63e600]
add esp, 0x18
test ecx, ecx
je 0x542a23
mov edx, dword [ebp - 0x1c]
push 1
push edx
call fcn.0046f830
push ebx
call fcn.00538900
mov eax, dword [ebp - 0x14]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call fcn.0054f2a8
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.0056a100
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.0056a100
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.00538900
push esi
call fcn.0054f2a8
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.0056a100
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x1c], eax
jmp 0x5427d6
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