Function at 0x410972
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a6f30
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x4de270]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
push esi
push edi
mov eax, dword [0x4de270]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
push str.RefreshUserSearchProviderList___start
lea esi, [esp + 0x70]
call fcn.00404db2
xor ebx, ebx
mov dword [esp + 0xd0], ebx
call fcn.00404e64
or dword [esp + 0xd0], 0xffffffff
xor edi, edi
push ebx
inc edi
push edi
call fcn.00404f5a
lea eax, [esp + 0xa4]
push eax
mov dword [esp + 0x14], ebx
call fcn.0042997f
pop ecx
mov dword [esp + 0xd0], edi
xor eax, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], ebx
mov word [esp + 0x54], ax
lea eax, [esp + 0x50]
push eax
lea edi, [esp + 0x18]
mov byte [esp + 0xd4], 2
call fcn.00429a5f
jmp 0x410bc0
lea eax, [esp + 0xa4]
push eax
lea esi, [esp + 0x8c]
call fcn.004047eb
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x58]
mov ecx, esi
mov byte [esp + 0xd8], 3
call fcn.004048ce
mov eax, esi
push eax
lea esi, [esp + 0x70]
call fcn.004047eb
push str._search.sqlite
lea esi, [esp + 0x1c]
mov byte [esp + 0xd4], 4
call fcn.00404db2
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x74]
mov byte [esp + 0xd8], 5
call fcn.004048ce
push ebx
push 1
mov byte [esp + 0xd8], 4
call fcn.00404f5a
lea ecx, [esp + 0x6c]
call fcn.0041073c
lea eax, [esp + 0x88]
push eax
lea esi, [esp + 0x38]
call fcn.004047eb
push str._search.json
lea esi, [esp + 0x1c]
mov byte [esp + 0xd4], 6
call fcn.00404db2
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x3c]
mov byte [esp + 0xd8], 7
call fcn.004048ce
push ebx
push 1
mov byte [esp + 0xd8], 6
call fcn.00404f5a
push str.RefreshUserSearchProviderList___check_if_search.json_file_exists___path:
lea esi, [esp + 0x1c]
call fcn.00404db2
mov eax, esi
push eax
lea ebx, [esp + 0x38]
mov byte [esp + 0xd4], 8
call fcn.00404975
pop ecx
xor edi, edi
push 0
inc edi
push edi
mov byte [esp + 0xd8], 6
call fcn.00404f5a
cmp dword [esp + 0x4c], 8
mov eax, dword [esp + 0x38]
jae 0x410b34
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, edi
jne 0x410b84
push str.RefreshUserSearchProviderList___try_to_delete_search.json___path:
lea esi, [esp + 0x1c]
call fcn.00404db2
mov eax, esi
push eax
lea ebx, [esp + 0x38]
mov byte [esp + 0xd4], 9
call fcn.00404975
pop ecx
push 0
push edi
call fcn.00404f5a
cmp dword [esp + 0x4c], 8
mov eax, dword [esp + 0x38]
jae 0x410b79
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0x10], eax
xor ebx, ebx
push ebx
push edi
lea esi, [esp + 0x3c]
call fcn.00404f5a
push ebx
push edi
lea esi, [esp + 0x74]
call fcn.00404f5a
push ebx
push edi
lea esi, [esp + 0x90]
mov byte [esp + 0xd8], 2
call fcn.00404f5a
lea eax, [esp + 0x50]
push eax
lea edi, [esp + 0x18]
call fcn.00429a5f
pop ecx
test al, al
jne 0x410a2b
push str.RefreshUserSearchProviderList___end__return:
lea esi, [esp + 0x1c]
call fcn.00404db2
cmp dword [esp + 0x10], ebx
mov byte [esp + 0xd0], 0xa
setne al
movzx eax, al
push eax
mov eax, esi
push eax
call fcn.00406bc9
pop ecx
pop ecx
push ebx
push 1
call fcn.00404f5a
push ebx
push 1
lea esi, [esp + 0x58]
call fcn.00404f5a
push ebx
push 1
lea esi, [esp + 0xac]
call fcn.00404f5a
mov eax, dword [esp + 0x10]
neg eax
sbb eax, eax
and eax, 0xfffffffb
add eax, 5
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.004812cc
mov esp, ebp
pop ebp
ret