Function at 0x40c476
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov eax, 0x481388
call fcn.0040f970
sub esp, 0x428
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 0x14]
and dword [ebp - 4], 0
mov edi, dword [ebp + 8]
mov dword [ebp - 0x24], eax
jmp 0x40c8d8
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.Delete
push edi
mov dword [ebp - 0x1c], 1
call esi
mov ebx, eax
neg ebx
push str.ForceRemove
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x40c4d2
test ebx, ebx
je 0x40c587
mov ecx, dword [ebp - 0x14]
push edi
call fcn.0040c097
mov esi, eax
test esi, esi
jl 0x40c932
cmp dword [ebp + 0x10], 0
je 0x40c587
and dword [ebp + 8], 0
xor ecx, ecx
mov cx, word [edi]
mov byte [ebp - 4], 1
mov eax, edi
jmp 0x40c510
cmp cx, 0x5c
je 0x40c517
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov cx, word [eax]
test cx, cx
jne 0x40c500
jmp 0x40c51f
test eax, eax
jne 0x40c8f0
mov esi, 0x48a79c
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40c54f
add esi, 4
cmp esi, str.TypeLib
jl 0x40c524
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
call fcn.0040c9d3
and dword [ebp + 8], 0
test ebx, ebx
je 0x40c57b
mov ecx, dword [ebp - 0x14]
push edi
call fcn.0040c097
mov esi, eax
test esi, esi
jl 0x40c8ff
mov ecx, dword [ebp - 0x14]
push edi
call fcn.0040c982
mov esi, eax
lea ecx, [ebp + 8]
test esi, esi
jmp 0x40c628
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call fcn.00406783
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40c5ad
mov ecx, dword [ebp - 0x14]
and dword [ebp - 0x1c], eax
push edi
call fcn.0040c097
mov esi, eax
test esi, esi
jl 0x40c932
push 0x48a904
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40c694
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x434]
push eax
call fcn.0040c097
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x40c932
mov ecx, dword [ebp - 0x14]
push edi
call fcn.0040c097
mov esi, eax
cmp esi, ebx
jl 0x40c932
cmp word [edi], 0x3d
jne 0x40c8f8
cmp dword [ebp + 0x10], ebx
je 0x40c637
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
push edi
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 2
call fcn.0040ca5d
mov esi, eax
mov dword [ebp - 0x20], ebx
lea ecx, [ebp - 0x20]
cmp esi, ebx
jl 0x40c92d
mov byte [ebp - 4], 0
jmp 0x40c8a1
cmp dword [ebp + 0x14], ebx
jne 0x40c682
cmp dword [ebp - 0x1c], ebx
je 0x40c682
push 0x20006
push ebx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
call fcn.004067e8
cmp eax, ebx
jne 0x40c904
lea eax, [ebp - 0x434]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
je 0x40c67a
cmp eax, 2
jne 0x40c904
lea ecx, [ebp - 0x18]
call fcn.00406783
mov ecx, dword [ebp - 0x14]
push edi
call fcn.0040c982
mov esi, eax
cmp esi, ebx
jmp 0x40c8e2
xor ecx, ecx
mov cx, word [edi]
mov eax, edi
jmp 0x40c6ad
cmp cx, 0x5c
je 0x40c6b4
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov cx, word [eax]
cmp cx, si
jne 0x40c69d
jmp 0x40c6bc
cmp eax, esi
jne 0x40c8f8
cmp dword [ebp + 0x10], esi
je 0x40c746
mov ebx, 0x2001f
push ebx
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.004067e8
test eax, eax
je 0x40c70b
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.004067e8
test eax, eax
je 0x40c70b
push esi
push esi
push ebx
push esi
push esi
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.0040679a
mov ebx, eax
cmp ebx, esi
jne 0x40c910
mov ecx, dword [ebp - 0x14]
push edi
call fcn.0040c097
mov esi, eax
test esi, esi
jl 0x40c932
cmp word [edi], 0x3d
jne 0x40c8a6
mov ecx, dword [ebp - 0x14]
push edi
push 0
lea eax, [ebp - 0x10]
push eax
call fcn.0040ca5d
mov esi, eax
test esi, esi
jl 0x40c932
jmp 0x40c8a6
cmp dword [ebp + 0x14], esi
jne 0x40c761
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.004067e8
mov dword [ebp - 0x18], eax
jmp 0x40c768
mov dword [ebp - 0x18], 2
cmp dword [ebp - 0x18], esi
je 0x40c774
mov dword [ebp + 0x14], 1
push 0x104
push edi
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov ebx, dword [ebp - 0x14]
push edi
mov ecx, ebx
call fcn.0040c097
mov esi, eax
test esi, esi
jl 0x40c932
push edi
mov ecx, ebx
call fcn.0040c982
mov esi, eax
test esi, esi
jl 0x40c932
cmp word [edi], 0x7b
jne 0x40c7e6
push dword [ebp + 0x14]
mov ecx, ebx
push 0
push dword [ebp - 0x10]
push edi
call fcn.0040c476
mov esi, eax
test esi, esi
jge 0x40c7d4
cmp dword [ebp + 0x14], 0
je 0x40c932
push edi
mov ecx, ebx
call fcn.0040c097
mov esi, eax
test esi, esi
jl 0x40c932
cmp dword [ebp - 0x18], 2
mov eax, dword [ebp - 0x24]
mov dword [ebp + 0x14], eax
je 0x40c8e4
xor eax, eax
cmp dword [ebp - 0x18], eax
je 0x40c816
cmp dword [ebp - 0x24], eax
jne 0x40c8e4
push dword [ebp - 0x18]
call fcn.004066fc
pop ecx
mov esi, eax
jmp 0x40c932
cmp dword [ebp - 0x24], eax
je 0x40c86c
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
call fcn.0040c94d
test eax, eax
je 0x40c86c
mov ebx, 0x48a79c
push dword [ebx]
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40c8e4
add ebx, 4
cmp ebx, str.TypeLib
jl 0x40c82f
cmp dword [ebp - 0x1c], 0
je 0x40c8e4
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040c9d3
jmp 0x40c8e4
lea ecx, [ebp - 0x10]
call fcn.00406783
mov ebx, eax
test ebx, ebx
jne 0x40c910
cmp dword [ebp - 0x1c], eax
je 0x40c8e4
lea eax, [ebp - 0x22c]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
and dword [ebp - 0x1c], ebx
test eax, eax
jne 0x40c921
lea ecx, [ebp - 0x1c]
call fcn.00406783
cmp dword [ebp + 0x10], 0
je 0x40c8e4
cmp word [edi], 0x7b
jne 0x40c8e4
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40c8e4
mov ecx, dword [ebp - 0x14]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push edi
call fcn.0040c476
mov esi, eax
test esi, esi
jl 0x40c932
mov ecx, dword [ebp - 0x14]
push edi
call fcn.0040c097
mov esi, eax
test esi, esi
jl 0x40c932
cmp word [edi], 0x7d
jne 0x40c4a2
jmp 0x40c932
lea ecx, [ebp + 8]
call fcn.00406783
mov esi, 0x80020009
jmp 0x40c932
lea ecx, [ebp + 8]
jmp 0x40c92d
push eax
call fcn.004066fc
pop ecx
lea ecx, [ebp - 0x18]
jmp 0x40c92b
lea ecx, [ebp - 0x10]
call fcn.00406783
push ebx
call fcn.004066fc
pop ecx
jmp 0x40c93c
push eax
call fcn.004066fc
pop ecx
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.00406783
lea ecx, [ebp - 0x10]
call fcn.00406783
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10