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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c8606
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x50e7dc]
xor eax, esp
mov dword [esp + 0xb4], eax
push esi
push edi
mov eax, dword [0x50e7dc]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push str.RefreshUserSearchProviderList___start
lea ecx, [esp + 0x54]
mov dword [esp + 0x18], eax
call fcn.00404bd0
lea eax, [esp + 0x50]
xor esi, esi
push eax
mov dword [esp + 0xd4], esi
call fcn.004017f5
or dword [esp + 0xd4], 0xffffffff
pop ecx
xor edi, edi
push esi
inc edi
push edi
lea ecx, [esp + 0x58]
call fcn.004058b3
lea eax, [esp + 0xa4]
push eax
mov dword [esp + 0x10], esi
call fcn.0042b708
pop ecx
mov dword [esp + 0xd0], edi
push esi
lea ecx, [esp + 0x70]
mov dword [esp + 0x14], esi
mov dword [esp + 0x88], 7
call fcn.00405ece
mov byte [esp + 0xd0], 2
jmp 0x413cbb
lea eax, [esp + 0xa4]
push eax
lea ecx, [esp + 0x8c]
call fcn.00404bf2
push 0xffffffffffffffff
push esi
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x94]
mov byte [esp + 0xdc], 3
call fcn.00405c92
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x54]
call fcn.00404bf2
push str._search.sqlite
lea ecx, [esp + 0x1c]
mov byte [esp + 0xd4], 4
call fcn.00404bd0
push 0xffffffffffffffff
push esi
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0xdc], 5
call fcn.00405c92
push esi
push edi
lea ecx, [esp + 0x20]
mov byte [esp + 0xd8], 4
call fcn.004058b3
push dword [esp + 0x14]
lea ecx, [esp + 0x54]
call fcn.00413761
pop ecx
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x38]
call fcn.00404bf2
push str._search.json
lea ecx, [esp + 0x1c]
mov byte [esp + 0xd4], 6
call fcn.00404bd0
push 0xffffffffffffffff
push esi
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0xdc], 7
call fcn.00405c92
push esi
push edi
lea ecx, [esp + 0x20]
mov byte [esp + 0xd8], 6
call fcn.004058b3
push str.RefreshUserSearchProviderList___check_if_search.json_file_exists___path:
lea ecx, [esp + 0x1c]
call fcn.00404bd0
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0xd8], 8
call fcn.00401985
pop ecx
pop ecx
push esi
push edi
lea ecx, [esp + 0x20]
mov byte [esp + 0xd8], 6
call fcn.004058b3
cmp dword [esp + 0x4c], 8
mov eax, dword [esp + 0x38]
jae 0x413c38
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, edi
jne 0x413c8f
push str.RefreshUserSearchProviderList___try_to_delete_search.json___path:
lea ecx, [esp + 0x1c]
call fcn.00404bd0
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0xd8], 9
call fcn.00401985
pop ecx
pop ecx
push esi
push edi
lea ecx, [esp + 0x20]
call fcn.004058b3
cmp dword [esp + 0x4c], 8
mov eax, dword [esp + 0x38]
jae 0x413c84
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0xc], eax
push esi
push edi
lea ecx, [esp + 0x3c]
call fcn.004058b3
push esi
push edi
lea ecx, [esp + 0x58]
call fcn.004058b3
push esi
push edi
lea ecx, [esp + 0x90]
mov byte [esp + 0xd8], 2
call fcn.004058b3
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.0042b7fb
pop ecx
pop ecx
test al, al
jne 0x413b13
push str.RefreshUserSearchProviderList___end__return:
lea ecx, [esp + 0x1c]
call fcn.00404bd0
cmp dword [esp + 0xc], esi
mov byte [esp + 0xd0], 0xa
setne al
movzx eax, al
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00401927
pop ecx
pop ecx
push esi
push edi
lea ecx, [esp + 0x20]
call fcn.004058b3
push esi
push edi
lea ecx, [esp + 0x74]
call fcn.004058b3
push esi
push edi
lea ecx, [esp + 0xac]
call fcn.004058b3
mov eax, dword [esp + 0xc]
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
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.0049f533
mov esp, ebp
pop ebp
ret 4