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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55b458
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 edi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
call fcn.005133a0
xor eax, eax
mov dword [ebp - 0x18], eax
cmp eax, dword [edi + 0xb8]
jge 0x513ce8
mov ecx, dword [0x5b5ecc]
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.0053091a
mov edx, dword [ebp - 0x1c]
add esp, 0xc
push 0x59cee0
push edx
call fcn.00509300
add esp, 8
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x513a99
call fcn.0051ec14
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 0x513cd0
mov ecx, dword [0x5b5ecc]
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.0053091a
mov ecx, dword [0x5ba970]
add esp, 0x10
test ecx, ecx
je 0x513a6b
mov edx, dword [ebp - 0x14]
push 1
push edx
call fcn.004593e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00537b04
lea ecx, [ebp - 0x1c]
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
mov eax, dword [edi + 0xb4]
push 0x599920
mov eax, dword [esi + eax]
push eax
call fcn.0051dc3f
mov ebx, eax
add esp, 8
test ebx, ebx
mov dword [ebp - 0x24], ebx
jne 0x513b17
mov ecx, dword [0x5b5ecc]
mov dword [ebp - 0x18], ecx
mov eax, dword [edi + 0xb4]
mov byte [ebp - 4], 3
add esi, eax
call fcn.0051ec14
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.0053091a
mov ecx, dword [0x5ba970]
add esp, 0x10
test ecx, ecx
je 0x513aff
mov edx, dword [ebp - 0x18]
push 1
push edx
call fcn.004593e0
mov eax, dword [ebp - 0x14]
push eax
call fcn.00509c10
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
jmp 0x513a72
mov esi, dword [ebp - 0x14]
push esi
call fcn.00509ba0
add esp, 4
test eax, eax
jne 0x513cb7
lea ecx, [ebp - 0x19024]
push 0x19000
push ecx
push esi
call fcn.00509810
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
jne 0x513bdb
mov edi, dword [ebp - 0x14]
lea edx, [ebp - 0x18]
push edx
push edi
call fcn.00509c90
mov esi, eax
mov eax, dword [0x5b5ecc]
add esp, 8
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 4
call fcn.0051ec14
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.0053091a
mov ecx, dword [0x5ba970]
add esp, 0x18
test ecx, ecx
je 0x513ba0
mov edx, dword [ebp - 0x14]
push 1
push edx
call fcn.004593e0
push ebx
call fcn.0051da58
push edi
call fcn.00509c10
add esp, 8
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00537b04
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.00537b04
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 0x513b17
push ebx
push esi
lea eax, [ebp - 0x19024]
push 1
push eax
call fcn.0051dad5
add esp, 0x10
cmp eax, esi
je 0x513b17
call fcn.0051ec14
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.00513d20
add esp, 0xc
test al, al
jne 0x513c2e
mov ebx, 0x755f
jmp 0x513c7a
mov eax, dword [0x5b5ecc]
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.0053091a
mov ecx, dword [0x5ba970]
add esp, 0x10
test ecx, ecx
je 0x513c6e
mov edx, dword [ebp - 0x20]
push 1
push edx
call fcn.004593e0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00537b04
mov eax, dword [ebp - 0x14]
push eax
call fcn.00509c10
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.0051da58
add esp, 8
test ebx, ebx
jne 0x513c98
mov ebx, 1
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0
call fcn.00537b04
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.00509c10
push ebx
call fcn.0051da58
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.00537b04
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
jmp 0x5139bc
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