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

Disassembly:
push 0xffffffffffffffff
push 0x4afe7c
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x4d25ac]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d25ac]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
xor eax, eax
mov word [esp + 0x3c], ax
mov edi, 7
xor ebx, ebx
push 0x25
mov eax, str.RefreshUserSearchProviderList___start
lea esi, [esp + 0x3c]
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ebx
call fcn.00401f30
mov ecx, esi
push ecx
mov dword [esp + 0x9c], ebx
call fcn.00403780
mov ebp, 8
add esp, 4
mov dword [esp + 0x98], 0xffffffff
cmp dword [esp + 0x50], ebp
jb 0x40edc0
mov edx, dword [esp + 0x3c]
push edx
call fcn.00491101
add esp, 4
lea eax, [esp + 0x70]
push eax
mov dword [esp + 0x34], ebx
call fcn.0047d190
mov dword [esp + 0x9c], 1
xor ecx, ecx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], cx
lea edx, [esp + 0x58]
push edx
lea edi, [esp + 0x3c]
mov byte [esp + 0xa0], 2
call fcn.0047d380
add esp, 8
test al, al
je 0x40efc8
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0x40], ax
mov edi, 7
push ebx
lea eax, [esp + 0x78]
lea ecx, [esp + 0x40]
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], ebx
call fcn.00401c20
push ebx
lea ecx, [esp + 0x58]
push ecx
or eax, 0xffffffff
lea esi, [esp + 0x40]
mov byte [esp + 0xa0], 3
call fcn.00403510
xor edx, edx
push 0xc
mov eax, str._search.json
lea esi, [esp + 0x18]
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], dx
call fcn.00401f30
mov eax, esi
push ebx
push eax
or eax, 0xffffffff
lea esi, [esp + 0x40]
mov byte [esp + 0xa0], 4
call fcn.00403510
mov byte [esp + 0x98], 3
cmp dword [esp + 0x2c], ebp
jb 0x40ee9d
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00491101
add esp, 4
xor edx, edx
push 0x49
mov eax, str.RefreshUserSearchProviderList___check_if_search.json_file_exists___path:
lea esi, [esp + 0x18]
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], dx
call fcn.00401f30
mov byte [esp + 0x98], 5
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x50], ebp
jae 0x40eed2
lea eax, [esp + 0x3c]
cmp eax, ebx
setne al
movzx ecx, al
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00403190
add esp, 8
mov byte [esp + 0x98], 3
cmp dword [esp + 0x2c], ebp
jb 0x40ef03
mov eax, dword [esp + 0x18]
push eax
call fcn.00491101
add esp, 4
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x50], ebp
jae 0x40ef11
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x40ef94
xor ecx, ecx
push 0x42
mov eax, str.RefreshUserSearchProviderList___try_to_delete_search.json___path:
lea esi, [esp + 0x18]
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], cx
call fcn.00401f30
mov byte [esp + 0x98], 6
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x50], ebp
jae 0x40ef52
lea eax, [esp + 0x3c]
cmp eax, ebx
setne dl
movzx eax, dl
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00403190
add esp, 8
cmp dword [esp + 0x2c], ebp
jb 0x40ef7b
mov edx, dword [esp + 0x18]
push edx
call fcn.00491101
add esp, 4
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x50], ebp
jae 0x40ef89
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0x30], eax
mov byte [esp + 0x98], 2
cmp dword [esp + 0x50], ebp
jb 0x40efaf
mov eax, dword [esp + 0x3c]
push eax
call fcn.00491101
add esp, 4
lea ecx, [esp + 0x54]
push ecx
lea edi, [esp + 0x38]
call fcn.0047d380
add esp, 4
test al, al
jne 0x40ee0d
xor edx, edx
mov edi, 7
push 0x2c
mov eax, str.RefreshUserSearchProviderList___end__return:
lea esi, [esp + 0x18]
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], dx
call fcn.00401f30
mov esi, dword [esp + 0x30]
cmp esi, ebx
setne al
movzx ecx, al
push ecx
lea edx, [esp + 0x18]
push edx
mov byte [esp + 0xa0], 7
call fcn.00403190
add esp, 8
cmp dword [esp + 0x2c], ebp
jb 0x40f021
mov eax, dword [esp + 0x18]
push eax
call fcn.00491101
add esp, 4
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 5
cmp dword [esp + 0x6c], ebp
jb 0x40f03e
mov ecx, dword [esp + 0x58]
push ecx
call fcn.00491101
add esp, 4
xor edx, edx
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], ebx
mov word [esp + 0x58], dx
cmp dword [esp + 0x88], ebp
jb 0x40f063
mov eax, dword [esp + 0x74]
push eax
call fcn.00491101
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.0049110c
add esp, 0x88
ret