Function at 0x560cc0
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5faea8
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x298
mov eax, dword [0x70f200]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x2a4], esi
mov eax, dword [ebx + 8]
mov dword [ebp - 0x298], eax
test eax, eax
je 0x5610b7
push str.Clearing_Waterfoxs_history...
push 0xffffffffffffffff
call fcn.0057b610
push 0
push 1
mov ecx, esi
call fcn.005494d0
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x20]
movq qword [ebp - 0x20], xmm0
call fcn.005dc5e0
sub esp, 8
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
movq qword [ebp - 0x2c], xmm0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str.WaterfoxProfiles_
push ecx
mov ecx, esi
call fcn.0057c260
push eax
lea ecx, [ebp - 0x2c]
call fcn.005dc520
push ecx
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0057c1c0
push eax
lea ecx, [ebp - 0x2c]
call fcn.005dad50
xor edi, edi
lea eax, [ebp - 0x290]
push 0x250
xorps xmm0, xmm0
mov dword [ebp - 0x2a0], edi
push edi
movups xmmword [ebp - 0x40], xmm0
push eax
mov dword [ebp - 0x40], 0xffffffff
call fcn.00420090
add esp, 0xc
push edi
push 1
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.005494d0
mov ecx, str.Waterfox.exe
call fcn.005cc330
mov ecx, dword [ebp - 0x298]
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x29c], edi
cmp dword [ecx], edi
jbe 0x561076
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
xor eax, eax
mov dword [ebp - 0x294], eax
mov esi, dword [ecx + 4]
lea ecx, [ebp - 0x2c]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x624384
add esi, eax
call fcn.005dc190
push eax
mov ecx, esi
call fcn.005dc190
push eax
lea ecx, [ebp - 0x20]
call fcn.005dc200
lea ecx, [ebp - 0x20]
call fcn.005dc190
mov esi, eax
mov eax, dword [ebp - 0x40]
cmp eax, 0xffffffff
je 0x560e55
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x290]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edx, eax
mov dword [ebp - 0x40], edx
cmp edx, 0xffffffff
je 0x561040
mov eax, 5
mov dword [ebp - 0x3c], eax
nop dword [eax]
cmp word [ebp - 0x264], 0x2e
jne 0x560eae
mov cx, word [ebp - 0x262]
test cx, cx
je 0x560fe9
cmp cx, 0x2e
jne 0x560eae
cmp word [ebp - 0x260], 0
je 0x560fe9
test eax, eax
je 0x560ed9
mov ecx, dword [ebp - 0x290]
test al, 1
je 0x560ec8
test ecx, 0x400
jne 0x560fe9
test al, 2
je 0x560fd5
test cl, 0x10
jne 0x560fe9
mov dword [ebp - 0x2a0], 1
mov ecx, dword [ebp - 0x2a4]
push 0
push 1
call fcn.005494d0
mov eax, dword [ebp - 0x298]
lea ecx, [ebp - 0x2c]
push 0
push 0
push 0
mov esi, dword [eax + 4]
lea eax, [ebp - 0x264]
add esi, dword [ebp - 0x294]
push 0
push 0
push 0
push 0
push 0
push str.cache2
push eax
call fcn.005dc190
push eax
mov ecx, esi
call fcn.005dc190
push eax
lea ecx, [ebp - 0x20]
call fcn.005dc200
lea ecx, [ebp - 0x20]
call fcn.005dc190
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x560f59
push 2
lea ecx, [ebp - 0x20]
call fcn.005dc190
push eax
call fcn.005771e0
mov eax, dword [ebp - 0x40]
cmp eax, 0xffffffff
je 0x561040
lea ecx, [ebp - 0x290]
push ecx
push eax
call edi
test eax, eax
je 0x56102c
mov edx, dword [ebp - 0x40]
cmp edx, 0xffffffff
je 0x561040
cmp word [ebp - 0x264], 0x2e
jne 0x560fa9
mov ax, word [ebp - 0x262]
test ax, ax
je 0x561016
cmp ax, 0x2e
jne 0x560fa9
cmp word [ebp - 0x260], 0
je 0x561016
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x560ee3
mov ecx, dword [ebp - 0x290]
test al, 1
je 0x560fc6
test ecx, 0x400
jne 0x561016
test al, 2
je 0x561002
test cl, 0x10
je 0x560ee3
jmp 0x561016
test al, 4
je 0x560ed9
test ecx, 0x10
jne 0x560ed9
lea eax, [ebp - 0x290]
push eax
push edx
call edi
test eax, eax
je 0x56102c
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x40]
jmp 0x560e80
test al, 4
je 0x560ee3
test ecx, 0x10
jne 0x560ee3
lea eax, [ebp - 0x290]
push eax
push edx
call edi
test eax, eax
je 0x56102c
mov edx, dword [ebp - 0x40]
jmp 0x560f83
push dword [ebp - 0x40]
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
call esi
mov dword [ebp - 0x40], 0xffffffff
jmp 0x561046
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 0x29c]
mov ecx, dword [ebp - 0x298]
inc edx
mov eax, dword [ebp - 0x294]
add eax, 0xc
mov dword [ebp - 0x29c], edx
mov dword [ebp - 0x294], eax
cmp edx, dword [ecx]
jb 0x560e07
mov edi, dword [ebp - 0x2a0]
push 0
push 0
mov ecx, str.Failed_to_delete
test edi, edi
mov eax, str.Successfully_deleted
cmove eax, ecx
mov ecx, dword [ebp - 0x2a4]
push str._Waterfoxs_history
push eax
call fcn.0057b7e0
mov ecx, dword [ebp - 0x40]
cmp ecx, 0xffffffff
je 0x5610a5
push ecx
call esi
lea ecx, [ebp - 0x2c]
call fcn.005dc430
lea ecx, [ebp - 0x20]
call fcn.005dc430
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041e1b5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4