Function at 0x4cf5e4
Capabilities:
Delete registry key

Disassembly:
push 0x90
mov eax, 0x6987bc
call fcn.0056e23b
mov dword [ebp - 0x94], ecx
mov esi, dword [ebp + 8]
xor ebx, ebx
push 7
pop ecx
xor eax, eax
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
mov edi, 0x20019
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x7c], ebx
mov word [ebp - 0x8c], ax
mov dword [ebp - 4], 1
mov dword [ebp - 0x44], ebx
push ebx
mov dword [ebp - 0x44], ecx
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x48], ebx
push 0x6d4f14
mov dword [ebp - 0x48], ebx
mov word [ebp - 0x58], ax
call fcn.004044d0
mov byte [ebp - 4], 2
test esi, esi
mov eax, 0x6d4f18
lea ecx, [ebp - 0x40]
cmovne eax, esi
push eax
call fcn.00409600
mov byte [ebp - 4], 3
xor eax, eax
push ebx
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], ebx
push 0x6d4f1c
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
call fcn.004044d0
mov byte [ebp - 4], 4
cmp dword [ebp - 0x30], ebx
je 0x4cfa47
mov esi, 0x6d4f20
push esi
call fcn.00647fd1
pop ecx
push eax
push ebx
push esi
lea ecx, [ebp - 0x40]
call fcn.0042c956
push eax
push ebx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x40]
call fcn.00407b80
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
push eax
call fcn.004d1682
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x70]
push ebx
push 1
call fcn.00401d60
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x6d4f24
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0064806f
pop ecx
pop ecx
test eax, eax
jne 0x4cf6fc
mov ebx, SysReAllocString
jmp 0x4cf732
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x6d4f48
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0064806f
pop ecx
pop ecx
test eax, eax
jne 0x4cfa47
cmp dword [ebp + 0xc], 0
mov edi, 0x20119
mov eax, 0x20219
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
cmovne edi, eax
mov esi, 0x6d4f70
mov dword [ebp - 0x98], ebx
push esi
call fcn.00647fd1
pop ecx
push eax
push 0
push esi
lea ecx, [ebp - 0x40]
call fcn.0042c956
push 0xffffffffffffffff
inc eax
lea ecx, [ebp - 0x40]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00407b80
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 8
jb 0x4cf76c
mov eax, dword [eax]
lea ecx, [ebp - 0x90]
push ecx
push edi
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
setne bl
mov byte [ebp - 4], 4
push 0
push 1
lea ecx, [ebp - 0x70]
call fcn.00401d60
test bl, bl
jne 0x4cfa45
mov ebx, dword [ebp - 0x94]
lea eax, [ebp - 0x58]
push eax
push 0x6d4f74
push dword [ebp - 0x90]
mov ecx, ebx
call fcn.004d097d
test eax, eax
je 0x4cfa45
push dword [ebp - 0x90]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x44], 8
lea eax, [ebp - 0x58]
push 0x6d4f98
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.0064806f
mov edi, dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
pop ecx
pop ecx
test eax, eax
jne 0x4cf8b9
mov esi, 0x6d4f9c
push esi
call fcn.00647fd1
pop ecx
push eax
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x40]
call fcn.0042c89c
push 0xffffffffffffffff
inc eax
lea ecx, [ebp - 0x40]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00407b80
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 8
jb 0x4cf825
mov eax, dword [eax]
lea ecx, [ebp - 0x58]
push ecx
push eax
mov ecx, ebx
call fcn.004d0f0d
mov esi, eax
mov byte [ebp - 4], 4
push 0
push 1
lea ecx, [ebp - 0x70]
call fcn.00401d60
test esi, esi
je 0x4cf8b9
mov esi, 0x6d4fa0
push esi
call fcn.00647fd1
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.004044d0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x28]
call fcn.00404690
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call edi
mov esi, 0x6d4ff0
push esi
call fcn.00647fd1
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.004044d0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x28]
call fcn.00404690
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push SysReAllocString
call edi
mov eax, dword [ebp + 0xc]
mov esi, 0x6d4fec
push esi
mov dword [ebp - 0x74], eax
call fcn.00647fd1
pop ecx
push eax
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x40]
call fcn.0042c89c
push eax
push 0
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x40]
call fcn.00407b80
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x8c]
push eax
call fcn.004d1682
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x70]
push 0
push 1
call fcn.00401d60
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x94]
lea edi, [ebx + 4]
push eax
mov ecx, edi
call fcn.004d1aad
mov eax, dword [eax]
cmp dword [edi], eax
jne 0x4cf9a3
mov esi, 0x6d5040
push esi
call fcn.00647fd1
pop ecx
push eax
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x40]
call fcn.0042c89c
push 0x6d5044
mov esi, eax
call fcn.00647fd1
pop ecx
push eax
push 0
push 0x6d5044
lea ecx, [ebp - 0x40]
call fcn.00427f5c
push esi
push eax
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x40]
call fcn.00407b80
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], 8
jb 0x4cf973
mov eax, dword [eax]
push dword [ebp + 0xc]
mov ecx, ebx
push eax
push dword [ebp - 0x98]
call fcn.004d0c9a
mov ebx, eax
neg ebx
sbb bl, bl
mov byte [ebp - 4], 4
push 0
push 1
lea ecx, [ebp - 0x70]
call fcn.00401d60
add bl, 1
jne 0x4cfa45
lea eax, [ebp - 0x8c]
mov ecx, edi
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.004d1aad
mov esi, 0x6d5048
push esi
mov edi, dword [eax]
call fcn.00647fd1
pop ecx
push eax
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x40]
call fcn.0042c89c
push 0xffffffffffffffff
inc eax
lea ecx, [ebp - 0x40]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00407b80
mov esi, eax
mov byte [ebp - 4], 0xa
cmp dword [esi + 0x14], 8
jb 0x4cf9f0
mov esi, dword [esi]
xor ebx, ebx
cmp word [esi], bx
jne 0x4cf9fb
mov eax, ebx
jmp 0x4cfa02
push esi
call fcn.00647fd1
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.004044d0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x70]
push ebx
push 1
call fcn.00401d60
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push dword [edi + 0x34]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
cmp eax, 2
je 0x4cfa39
test eax, eax
jne 0x4cfa47
mov dword [ebp - 0x9c], 1
jmp 0x4cfa47
xor ebx, ebx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
push ebx
push 1
call fcn.00401d60
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
push ebx
push 1
call fcn.00401d60
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
push ebx
push 1
call fcn.00401d60
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x8c]
push ebx
push 1
call fcn.00401d60
mov eax, dword [ebp - 0x9c]
call fcn.0056e1e5
ret 8