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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ded28
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x524a60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [0x52a958]
call fcn.00418d40
mov eax, dword [eax + 0x34]
sub eax, 0x10
push eax
call fcn.00404230
add esp, 4
lea edi, [eax + 0x10]
mov dword [ebp - 0x18], edi
or esi, 0xffffffff
mov dword [ebp - 4], 0
cmp dword [edi - 0xc], 0
jne 0x40ebef
xor ebx, ebx
jmp 0x40eda9
lea eax, [ebp - 0x10]
push eax
call fcn.00411140
add esp, 4
push dword [ebp - 0x10]
mov byte [ebp - 4], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ec25
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x10]
push str._AddStartMenu__Delete__s
call fcn.00433e30
add esp, 8
mov ecx, dword [0x52a958]
call fcn.00418d40
mov eax, dword [eax + 0x98]
sub eax, 0x10
push eax
call fcn.00404230
mov ebx, eax
add esp, 4
lea eax, [ebx + 0x10]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 2
call fcn.004045a0
mov ecx, eax
test ecx, ecx
je 0x40edd9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push str.__fromdesk_icon
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.004040f0
test al, al
jne 0x40ec8c
push 0x10
push str.__fromdesk_icon
lea ecx, [ebp - 0x14]
call fcn.00404e90
mov ecx, dword [0x52a958]
mov byte [ebp - 4], 4
call fcn.00418d40
mov eax, dword [eax + 0x7c]
sub eax, 0x10
push eax
call fcn.00404230
lea esi, [eax + 0x10]
mov dword [ebp - 0x20], esi
push 0
push esi
push dword [ebp - 0x10]
lea eax, [ebx + 0x10]
mov byte [ebp - 4], 5
push dword [ebp - 0x14]
push eax
push edi
call fcn.0040fb60
push str._AddDesktopIcon__success
call fcn.00433e30
sub esp, 8
mov eax, esp
mov dword [ebp - 0x24], esp
mov dword [eax + 0x24], 0
mov ecx, dword [0x52a958]
mov byte [ebp - 4], 6
call fcn.00418d40
push 1
push 0
push str.add_desk_icon
push dword [eax + 0x90]
call fcn.0040dbe0
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.00441c00
push 0
push 0x2a
push 0x1a
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageW]
push 0
push 0
push 0x1000
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
lea edx, [esi - 0x10]
mov byte [ebp - 4], 4
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ed4e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
mov eax, esi
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ed6c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov edx, ebx
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ed86
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x10]
mov eax, esi
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40eda4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, 1
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x40edc5
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00403f90
int3