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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b0528
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x19014
call fcn.0056c9b0
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
call fcn.00560aa0
xor eax, eax
mov dword [ebp - 0x18], eax
cmp eax, dword [edi + 0xb8]
jge 0x5613e8
mov ecx, dword [0x65ec1c]
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.0058148b
mov edx, dword [ebp - 0x1c]
add esp, 0xc
push 0x63ea50
push edx
call fcn.005565a0
add esp, 8
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x561199
call fcn.0056eea7
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 0x5613d0
mov ecx, dword [0x65ec1c]
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.0058148b
mov ecx, dword [0x663778]
add esp, 0x10
test ecx, ecx
je 0x56116b
mov edx, dword [ebp - 0x14]
push 1
push edx
call fcn.00478c60
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.005886c0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.005886c0
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 0x63add8
mov eax, dword [esi + eax]
push eax
call fcn.0056dabf
mov ebx, eax
add esp, 8
test ebx, ebx
mov dword [ebp - 0x24], ebx
jne 0x561217
mov ecx, dword [0x65ec1c]
mov dword [ebp - 0x18], ecx
mov eax, dword [edi + 0xb4]
mov byte [ebp - 4], 3
add esi, eax
call fcn.0056eea7
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.0058148b
mov ecx, dword [0x663778]
add esp, 0x10
test ecx, ecx
je 0x5611ff
mov edx, dword [ebp - 0x18]
push 1
push edx
call fcn.00478c60
mov eax, dword [ebp - 0x14]
push eax
call fcn.00556eb0
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
jmp 0x561172
mov esi, dword [ebp - 0x14]
push esi
call fcn.00556e40
add esp, 4
test eax, eax
jne 0x5613b7
lea ecx, [ebp - 0x19024]
push 0x19000
push ecx
push esi
call fcn.00556ab0
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
jne 0x5612db
mov edi, dword [ebp - 0x14]
lea edx, [ebp - 0x18]
push edx
push edi
call fcn.00556f30
mov esi, eax
mov eax, dword [0x65ec1c]
add esp, 8
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 4
call fcn.0056eea7
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.0058148b
mov ecx, dword [0x663778]
add esp, 0x18
test ecx, ecx
je 0x5612a0
mov edx, dword [ebp - 0x14]
push 1
push edx
call fcn.00478c60
push ebx
call fcn.0056d8d8
push edi
call fcn.00556eb0
add esp, 8
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.005886c0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.005886c0
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 0x561217
push ebx
push esi
lea eax, [ebp - 0x19024]
push 1
push eax
call fcn.0056d955
add esp, 0x10
cmp eax, esi
je 0x561217
call fcn.0056eea7
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.00561420
add esp, 0xc
test al, al
jne 0x56132e
mov ebx, 0x755f
jmp 0x56137a
mov eax, dword [0x65ec1c]
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.0058148b
mov ecx, dword [0x663778]
add esp, 0x10
test ecx, ecx
je 0x56136e
mov edx, dword [ebp - 0x20]
push 1
push edx
call fcn.00478c60
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.005886c0
mov eax, dword [ebp - 0x14]
push eax
call fcn.00556eb0
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.0056d8d8
add esp, 8
test ebx, ebx
jne 0x561398
mov ebx, 1
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.005886c0
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.00556eb0
push ebx
call fcn.0056d8d8
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.005886c0
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
jmp 0x5610bc
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