Function at 0x542ae0
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5906c8
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 edi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
call fcn.00542500
xor eax, eax
mov dword [ebp - 0x18], eax
cmp eax, dword [edi + 0xb8]
jge 0x542e48
mov ecx, dword [0x639ad4]
mov dword [ebp - 0x1c], ecx
mov edx, dword [edi + 0xb4]
lea esi, [eax*4]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
mov eax, dword [esi + edx]
push eax
push str._s.z
push ecx
call fcn.00562ecb
mov edx, dword [ebp - 0x1c]
add esp, 0xc
push 0x61b408
push edx
call fcn.00537ff0
add esp, 8
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x542bf9
call fcn.005508e7
mov ebx, dword [eax]
mov eax, dword [edi + 0xb4]
mov esi, dword [esi + eax]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x542e30
mov ecx, dword [0x639ad4]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x1c]
push ebx
push edx
lea eax, [ebp - 0x14]
push str.uncompress:__s_zopen_err_and_mf_not_found__err___ld_n
push eax
mov byte [ebp - 4], 2
call fcn.00562ecb
mov ecx, dword [0x63e600]
add esp, 0x10
test ecx, ecx
je 0x542bcb
mov edx, dword [ebp - 0x14]
push 1
push edx
call fcn.0046f830
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.0056a100
lea ecx, [ebp - 0x1c]
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
mov eax, dword [edi + 0xb4]
push 0x617b38
mov eax, dword [esi + eax]
push eax
call fcn.0054f48f
mov ebx, eax
add esp, 8
test ebx, ebx
mov dword [ebp - 0x24], ebx
jne 0x542c77
mov ecx, dword [0x639ad4]
mov dword [ebp - 0x18], ecx
mov eax, dword [edi + 0xb4]
mov byte [ebp - 4], 3
add esi, eax
call fcn.005508e7
mov edx, dword [eax]
mov eax, dword [esi]
push edx
push eax
lea ecx, [ebp - 0x18]
push str.uncompress:_mf__s_fopen_error__errno___ld_n
push ecx
call fcn.00562ecb
mov ecx, dword [0x63e600]
add esp, 0x10
test ecx, ecx
je 0x542c5f
mov edx, dword [ebp - 0x18]
push 1
push edx
call fcn.0046f830
mov eax, dword [ebp - 0x14]
push eax
call fcn.00538900
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
jmp 0x542bd2
mov esi, dword [ebp - 0x14]
push esi
call fcn.00538890
add esp, 4
test eax, eax
jne 0x542e17
lea ecx, [ebp - 0x19024]
push 0x19000
push ecx
push esi
call fcn.00538500
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
jne 0x542d3b
mov edi, dword [ebp - 0x14]
lea edx, [ebp - 0x18]
push edx
push edi
call fcn.00538980
mov esi, eax
mov eax, dword [0x639ad4]
add esp, 8
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 4
call fcn.005508e7
mov ecx, dword [eax]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
push ecx
push edx
push esi
push eax
lea ecx, [ebp - 0x14]
push str.uncompress:__s_zread_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 0x542d00
mov edx, dword [ebp - 0x14]
push 1
push edx
call fcn.0046f830
push ebx
call fcn.0054f2a8
push edi
call fcn.00538900
add esp, 8
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0056a100
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.0056a100
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
jle 0x542c77
push ebx
push esi
lea eax, [ebp - 0x19024]
push 1
push eax
call fcn.0054f325
add esp, 0x10
cmp eax, esi
je 0x542c77
call fcn.005508e7
mov ecx, dword [edi + 0xb4]
mov edx, dword [ebp - 0x18]
mov ebx, dword [eax]
lea eax, [esi + 0x2800]
mov ecx, dword [ecx + edx*4]
cdq
push edx
push eax
push ecx
call fcn.00542e80
add esp, 0xc
test al, al
jne 0x542d8e
mov ebx, 0x755f
jmp 0x542dda
mov eax, dword [0x639ad4]
mov dword [ebp - 0x20], eax
mov ecx, dword [edi + 0xb4]
mov edx, dword [ebp - 0x18]
push ebx
mov byte [ebp - 4], 5
mov eax, dword [ecx + edx*4]
lea ecx, [ebp - 0x20]
push eax
push str.uncompress:_mf__s_fwrite_error__errno___ld_n
push ecx
call fcn.00562ecb
mov ecx, dword [0x63e600]
add esp, 0x10
test ecx, ecx
je 0x542dce
mov edx, dword [ebp - 0x20]
push 1
push edx
call fcn.0046f830
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.0056a100
mov eax, dword [ebp - 0x14]
push eax
call fcn.00538900
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.0054f2a8
add esp, 8
test ebx, ebx
jne 0x542df8
mov ebx, 1
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.0056a100
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.00538900
push ebx
call fcn.0054f2a8
mov edx, dword [ebp - 0x1c]
add esp, 8
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.0056a100
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
jmp 0x542b1c
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