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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4afede
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x4d25ac]
xor eax, esp
mov dword [esp + 0xa0], eax
push ebx
push esi
push edi
mov eax, dword [0x4d25ac]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x94]
push ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
call fcn.0047d190
add esp, 4
xor ebx, ebx
mov dword [esp + 0xc0], ebx
xor edx, edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x74], 7
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], dx
lea eax, [esp + 0x5c]
push eax
lea edi, [esp + 0x14]
mov byte [esp + 0xc4], 1
call fcn.0047d380
add esp, 4
test al, al
je 0x40ecb7
xor ecx, ecx
push 0xffffffffffffffff
mov word [esp + 0x2c], cx
push ebx
lea eax, [esp + 0x9c]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], ebx
call fcn.00401c20
push ebx
lea edx, [esp + 0x60]
push edx
or eax, 0xffffffff
lea esi, [esp + 0x2c]
mov byte [esp + 0xc8], 2
call fcn.00403510
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0x48], ax
push ebx
mov eax, esi
lea ecx, [esp + 0x48]
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], ebx
call fcn.00401c20
push 0xc
mov eax, str._search.json
lea ecx, [esp + 0x44]
mov byte [esp + 0xc4], 3
call fcn.00403430
push 0xf
mov eax, str._searchplugins_
mov ecx, esi
call fcn.00403430
mov ecx, dword [esp + 0x20]
push ebx
push ecx
or eax, 0xffffffff
call fcn.00403510
mov eax, dword [esp + 0x28]
mov edi, 8
cmp dword [esp + 0x3c], edi
jae 0x40eb9f
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x40ec5d
cmp byte [ebp + 0x10], bl
je 0x40ebdf
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x3c], edi
jae 0x40ebc2
lea eax, [esp + 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
cmp dword [esp + 0x58], 8
mov eax, dword [esp + 0x44]
jae 0x40ebda
lea eax, [esp + 0x44]
push eax
call edi
jmp 0x40ec58
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov byte [edx], 1
cmp dword [esi + 0x14], ebx
je 0x40ec5d
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x3c], edi
jae 0x40ebfd
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x7c]
push eax
call fcn.004055b0
add esp, 8
mov byte [esp + 0xc0], 4
mov eax, dword [esp + 0x7c]
cmp dword [esp + 0x90], edi
jae 0x40ec24
lea eax, [esp + 0x7c]
mov edi, dword [esp + 0x8c]
push eax
mov eax, dword [esi + 0x14]
mov ecx, esi
call fcn.00403710
test eax, eax
jne 0x40ec41
mov ecx, dword [esp + 0x14]
mov byte [ecx], 1
cmp dword [esp + 0x90], 8
jb 0x40ec58
mov edx, dword [esp + 0x7c]
push edx
call fcn.00491101
add esp, 4
mov edi, 8
cmp dword [esp + 0x58], edi
jb 0x40ec70
mov eax, dword [esp + 0x44]
push eax
call fcn.00491101
add esp, 4
xor ecx, ecx
mov byte [esp + 0xc0], 1
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], cx
cmp dword [esp + 0x3c], edi
jb 0x40ec9e
mov edx, dword [esp + 0x28]
push edx
call fcn.00491101
add esp, 4
lea eax, [esp + 0x5c]
push eax
lea edi, [esp + 0x14]
call fcn.0047d380
add esp, 4
test al, al
jne 0x40eaf7
mov esi, 8
cmp dword [esp + 0x74], esi
jb 0x40eccf
mov ecx, dword [esp + 0x60]
push ecx
call fcn.00491101
add esp, 4
xor edx, edx
mov dword [esp + 0x74], 7
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], dx
cmp dword [esp + 0xac], esi
jb 0x40ecfb
mov eax, dword [esp + 0x98]
push eax
call fcn.00491101
add esp, 4
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.0049110c
mov esp, ebp
pop ebp
ret 0xc