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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5667b8
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 edi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
call fcn.0051d910
xor eax, eax
mov dword [ebp - 0x18], eax
cmp eax, dword [edi + 0xb8]
jge 0x51e258
mov ecx, dword [0x5c2a74]
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.0053afda
mov edx, dword [ebp - 0x1c]
add esp, 0xc
push 0x5a9108
push edx
call fcn.00513870
add esp, 8
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x51e009
call fcn.00529287
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 0x51e240
mov ecx, dword [0x5c2a74]
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.0053afda
mov ecx, dword [0x5c7560]
add esp, 0x10
test ecx, ecx
je 0x51dfdb
mov edx, dword [ebp - 0x14]
push 1
push edx
call fcn.0045eb80
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.005421be
lea ecx, [ebp - 0x1c]
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
mov eax, dword [edi + 0xb4]
push 0x5a5a44
mov eax, dword [esi + eax]
push eax
call fcn.0052825f
mov ebx, eax
add esp, 8
test ebx, ebx
mov dword [ebp - 0x24], ebx
jne 0x51e087
mov ecx, dword [0x5c2a74]
mov dword [ebp - 0x18], ecx
mov eax, dword [edi + 0xb4]
mov byte [ebp - 4], 3
add esi, eax
call fcn.00529287
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.0053afda
mov ecx, dword [0x5c7560]
add esp, 0x10
test ecx, ecx
je 0x51e06f
mov edx, dword [ebp - 0x18]
push 1
push edx
call fcn.0045eb80
mov eax, dword [ebp - 0x14]
push eax
call fcn.00514180
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
jmp 0x51dfe2
mov esi, dword [ebp - 0x14]
push esi
call fcn.00514110
add esp, 4
test eax, eax
jne 0x51e227
lea ecx, [ebp - 0x19024]
push 0x19000
push ecx
push esi
call fcn.00513d80
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
jne 0x51e14b
mov edi, dword [ebp - 0x14]
lea edx, [ebp - 0x18]
push edx
push edi
call fcn.00514200
mov esi, eax
mov eax, dword [0x5c2a74]
add esp, 8
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 4
call fcn.00529287
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.0053afda
mov ecx, dword [0x5c7560]
add esp, 0x18
test ecx, ecx
je 0x51e110
mov edx, dword [ebp - 0x14]
push 1
push edx
call fcn.0045eb80
push ebx
call fcn.00528078
push edi
call fcn.00514180
add esp, 8
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.005421be
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.005421be
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 0x51e087
push ebx
push esi
lea eax, [ebp - 0x19024]
push 1
push eax
call fcn.005280f5
add esp, 0x10
cmp eax, esi
je 0x51e087
call fcn.00529287
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.0051e290
add esp, 0xc
test al, al
jne 0x51e19e
mov ebx, 0x755f
jmp 0x51e1ea
mov eax, dword [0x5c2a74]
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.0053afda
mov ecx, dword [0x5c7560]
add esp, 0x10
test ecx, ecx
je 0x51e1de
mov edx, dword [ebp - 0x20]
push 1
push edx
call fcn.0045eb80
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.005421be
mov eax, dword [ebp - 0x14]
push eax
call fcn.00514180
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.00528078
add esp, 8
test ebx, ebx
jne 0x51e208
mov ebx, 1
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.005421be
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.00514180
push ebx
call fcn.00528078
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.005421be
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
jmp 0x51df2c
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