Function at 0x40e5e0
Capabilities:
Check if file exists
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dec78
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x524a60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 9
xor eax, eax
mov dword [ebp - 0x18], 0
push str.notempdir
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.004061e0
mov ecx, dword [0x52a958]
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 4], 0
call fcn.004057f0
mov ecx, eax
call fcn.004371c0
mov edx, dword [ebp - 0x14]
test eax, eax
mov dword [ebp - 4], 0xffffffff
sete bl
cmp edx, 8
jb 0x40e691
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40e687
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e99f
push edx
push ecx
call fcn.004a12e0
add esp, 8
test bl, bl
je 0x40e6a2
call fcn.00410500
test eax, eax
je 0x40e983
sub esp, 0x28
mov eax, esp
mov dword [ebp - 0x30], esp
mov dword [eax + 0x24], 0
mov ecx, dword [0x52a958]
mov dword [ebp - 4], 1
call fcn.00418d40
push 1
push 0
push str.uninstall
push dword [eax + 0x90]
call fcn.0040dbe0
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
call fcn.00441c00
call fcn.00411b50
call fcn.00412620
push str._RemoveAutoRun
call fcn.00433e30
mov ecx, dword [0x52a958]
add esp, 4
call fcn.00418d40
mov eax, dword [eax + 0x88]
sub eax, 0x10
push eax
call fcn.00404230
lea esi, [eax + 0x10]
mov dword [ebp - 0x2c], esi
push esi
mov dword [ebp - 4], 2
call fcn.00438ad0
push esi
call fcn.00438b40
or ebx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add esp, 0xc
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40e753
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [0x52a958]
call fcn.00418d40
mov eax, dword [eax + 4]
sub eax, 0x10
push eax
call fcn.00404230
add esp, 4
lea edi, [eax + 0x10]
mov dword [ebp - 0x30], edi
mov dword [ebp - 4], 3
call fcn.004045a0
mov ecx, eax
test ecx, ecx
je 0x40e9a4
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x2c], eax
push edi
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 4
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallLDSLiteGameBox__s
push eax
call fcn.00407c50
mov esi, dword [ebp - 0x2c]
add esp, 0xc
push esi
push reloc.gdiplus.dll_Ordinal_1
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
push str._RemoveUninstItem
call fcn.00433e30
add esp, 4
mov byte [ebp - 4], 3
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40e7e1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40e7ff
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x30]
push eax
call fcn.00411140
add esp, 4
push dword [ebp - 0x30]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 4], 5
call esi
mov edi, dword [sym.imp.USER32.dll_PostMessageW]
test eax, eax
je 0x40e87b
push dword [ebp - 0x30]
push str._RemoveDesktopIcon__delete__s
call fcn.00433e30
push dword [ebp - 0x30]
call fcn.00412d60
add esp, 0xc
push dword [ebp - 0x30]
call esi
test eax, eax
je 0x40e85a
push dword [ebp - 0x30]
push str._RemoveDesktopIcon__failed_delete__s
call fcn.00433e50
add esp, 8
jmp 0x40e87b
push 0
push 0x2a
push 0x1a
push 0xffff
call edi
push 0
push 0
push 0x1000
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov edx, dword [ebp - 0x30]
mov eax, ebx
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e89c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x2c]
push 0
push eax
call fcn.00411300
add esp, 8
push dword [ebp - 0x2c]
mov dword [ebp - 4], 6
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x40e912
push dword [ebp - 0x2c]
push str._RemoveStartMenu__delete__s
call fcn.00433e30
push dword [ebp - 0x2c]
call fcn.00412db0
add esp, 0xc
push dword [ebp - 0x2c]
call esi
test eax, eax
je 0x40e8f1
push dword [ebp - 0x2c]
push str._RemoveStartMenu__failed_delete__s
call fcn.00433e50
add esp, 8
jmp 0x40e912
push 0
push 0x2a
push 0x1a
push 0xffff
call edi
push 0
push 0
push 0x1000
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov edx, dword [ebp - 0x2c]
mov eax, ebx
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40e933
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [0x52a958]
call fcn.00418d40
mov eax, dword [eax + 0x94]
sub eax, 0x10
push eax
call fcn.00404230
add esp, 4
lea esi, [eax + 0x10]
push esi
push reloc.gdiplus.dll_Ordinal_1
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40e974
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00412240
call fcn.00412930
call fcn.00412440
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a1588
mov esp, ebp
pop ebp
ret
call fcn.004b3f79
push 0x80004005
call fcn.00403f90
int3