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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dee10
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x524a60]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x20]
push 1
push eax
call fcn.00411300
add esp, 8
mov eax, dword [ebp - 0x20]
or ebx, 0xffffffff
mov dword [ebp - 4], 0
cmp dword [eax - 0xc], 0
jne 0x40f1c0
xor esi, esi
jmp 0x40f4f2
mov ecx, dword [0x52a958]
call fcn.00418d40
mov eax, dword [eax + 0x2c]
sub eax, 0x10
push eax
call fcn.00404230
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
cmp dword [esi - 0xc], 0
mov byte [ebp - 4], 1
jne 0x40f226
mov ecx, dword [0x52a958]
call fcn.00418d40
add eax, 0x34
lea ecx, [ebp - 0x14]
push eax
call fcn.00403aa0
mov esi, dword [ebp - 0x14]
cmp dword [esi - 0xc], 0
jne 0x40f226
mov ecx, dword [0x52a958]
call fcn.00418d40
add eax, 0x84
lea ecx, [ebp - 0x14]
push eax
call fcn.00403aa0
mov esi, dword [ebp - 0x14]
call fcn.004045a0
mov ecx, eax
test ecx, ecx
je 0x40f525
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24], eax
push esi
push dword [ebp - 0x20]
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 2
push str._s_s.lnk
push eax
call fcn.00407c50
mov edi, dword [ebp - 0x24]
add esp, 0x10
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40f27c
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
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 - 0x2c], eax
mov byte [ebp - 4], 3
call fcn.004045a0
mov ecx, eax
test ecx, ecx
je 0x40f52f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
push str.__fromstart_menu
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.004040f0
test al, al
jne 0x40f2e3
push 0x11
push str.__fromstart_menu
lea ecx, [ebp - 0x1c]
call fcn.00404e90
mov ecx, dword [0x52a958]
mov byte [ebp - 4], 5
call fcn.00418d40
mov eax, dword [eax + 0x7c]
sub eax, 0x10
push eax
call fcn.00404230
mov dword [ebp - 0x28], eax
add eax, 0x10
mov dword [ebp - 0x30], eax
push 0
push eax
push edi
push dword [ebp - 0x1c]
lea eax, [ebx + 0x10]
mov byte [ebp - 4], 6
push eax
push esi
call fcn.0040fb60
mov ecx, dword [0x52a958]
add esp, 0x1c
call fcn.00418d40
cmp dword [eax + 0x30], 0
jne 0x40f45f
mov ecx, dword [0x52a958]
call fcn.00418d40
mov eax, dword [eax + 0x20]
sub eax, 0x10
push eax
call fcn.00404230
add eax, 0x10
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [eax - 0xc], 0
mov byte [ebp - 4], 7
je 0x40f443
call fcn.004045a0
mov ecx, eax
test ecx, ecx
je 0x40f539
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 8
push dword [ebp - 0x20]
push str._s_s.lnk
push eax
call fcn.00407c50
add esp, 0x10
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40f3bd
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 eax, dword [ebp - 0x28]
push 0
add eax, 0x10
push eax
push dword [ebp - 0x10]
lea eax, [ebx + 0x10]
push str.__uninstall___fromstart_menu
push eax
push dword [ebp - 0x18]
call fcn.0040fb60
push str._AddStartMenu__success
call fcn.00433e30
sub esp, 0xc
mov eax, esp
mov dword [ebp - 0x34], esp
mov dword [eax + 0x24], 0
mov ecx, dword [0x52a958]
mov byte [ebp - 4], 9
call fcn.00418d40
push 1
push 0
push str.add_start_menu
push dword [eax + 0x90]
call fcn.0040dbe0
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.00441c00
mov edx, dword [ebp - 0x10]
or eax, 0xffffffff
mov byte [ebp - 4], 7
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40f440
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x18]
lea edx, [eax - 0x10]
mov byte [ebp - 4], 6
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40f45f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x28]
or eax, 0xffffffff
mov byte [ebp - 4], 5
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40f47b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1c]
or eax, 0xffffffff
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40f49a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, ebx
mov byte [ebp - 4], 2
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40f4b7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40f4d2
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40f4ed
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 1
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40f511
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
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
push 0x80004005
call fcn.00403f90
push 0x80004005
call fcn.00403f90
int3