Function at 0x40cef0
Capabilities:
Delete directory
Delete file
Delete registry key
Get installed programs

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3fc
mov eax, dword [0x445164]
push ebx
mov dword [esp + 0x3fc], eax
mov eax, dword [0x4460e8]
mov ebx, ecx
mov ecx, dword [eax + 0x1c]
movzx edx, word [ecx]
mov eax, dword [eax + 0x14]
mov ecx, dword [eax + 0x1c]
push esi
push edi
shl edx, 0x10
or edx, 1
push edx
xor esi, esi
push esi
push 0x401
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [0x4460e8]
mov word [esp + 0x18], si
xor eax, eax
mov ecx, 0xf9
lea edi, [esp + 0x1a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [edx + 0x1c]
mov edi, dword [eax + 0x5c]
cmp edi, dword [eax + 0x60]
mov dword [esp + 0x10], esi
je 0x40cfad
lea ecx, [ecx]
mov esi, dword [edi]
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x40cf7b
push esi
mov ecx, ebx
mov dword [ebx + 0x10], esi
call fcn.0040ce10
mov eax, dword [esi + 0x28]
test eax, eax
jne 0x40cf8f
mov eax, dword [0x4460e8]
mov ecx, dword [eax + 0x1c]
mov eax, dword [ecx + 0x60]
add edi, 4
cmp edi, eax
jne 0x40cf60
jmp 0x40cfad
mov edx, dword [esi + 8]
push edx
lea eax, [esp + 0x1c]
push 0x438298
push eax
mov dword [esp + 0x1c], 1
call fcn.00419260
add esp, 0xc
mov ecx, ebx
call fcn.0040cd80
test eax, eax
jne 0x40d071
mov ecx, dword [ebx + 0x10]
push 0x4375c0
add ecx, 0x50
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.00406000
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call esi
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cffb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebx + 0x10]
push 0x4375ac
add eax, 0x50
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.00406000
mov edx, dword [eax]
push edx
call esi
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d034
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea edx, [esp + 0x14]
push edx
push 0xf003f
push 0
push 0x4375f0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d071
mov eax, dword [esp + 0x14]
push 0x438288
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, dword [0x4460e8]
mov ecx, dword [eax + 0x1c]
mov edx, dword [ecx + 4]
mov esi, 1
cmp edx, esi
jne 0x40d0a0
mov ecx, dword [eax + 0x24]
call fcn.0040d170
mov edx, dword [0x4460e8]
mov ecx, dword [edx + 0x28]
call fcn.00409ce0
mov eax, dword [0x4460e8]
mov dword [eax + 4], esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40d0d0
mov eax, dword [0x4460e8]
mov ecx, dword [eax + 0x1c]
mov ecx, dword [ecx + 0x20]
push esi
push ecx
mov ecx, dword [eax + 8]
lea edx, [esp + 0x20]
push edx
call fcn.0042895b
cmp eax, esi
jne 0x40d0d0
mov ecx, ebx
call fcn.0040cd00
mov eax, dword [0x4460e8]
mov eax, dword [eax + 8]
test eax, eax
je 0x40d0ee
mov ecx, dword [eax + 0x1c]
push 0
push esi
push 0x464
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x404]
call fcn.0041923c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret