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

Disassembly:
mov eax, 0x41cfa982
call fcn.41cf1a54
sub esp, 0x430
mov eax, dword [0x41d01320]
and dword [ebp - 0x428], 0
push esi
mov dword [ebp - 0x10], eax
push edi
mov dword [ebp - 0x424], ecx
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
and dword [ebp - 4], 0
push edi
mov dword [ebp - 0x438], eax
call fcn.41ceae1e
mov esi, eax
test esi, esi
jl 0x41ceb7a0
push ebx
jmp 0x41ceb756
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.Delete
push edi
mov dword [ebp - 0x430], 1
call esi
mov ebx, eax
neg ebx
push str.ForceRemove
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x41ceb28d
test ebx, ebx
je 0x41ceb34b
mov ecx, dword [ebp - 0x424]
push edi
call fcn.41ceae1e
mov esi, eax
test esi, esi
jl 0x41ceb79f
cmp dword [ebp + 0x10], 0
je 0x41ceb34b
and dword [ebp + 8], 0
xor ecx, ecx
mov cx, word [edi]
mov byte [ebp - 4], 1
mov eax, edi
jmp 0x41ceb2ce
cmp cx, 0x5c
je 0x41ceb2d5
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov cx, word [eax]
test cx, cx
jne 0x41ceb2be
jmp 0x41ceb2dd
test eax, eax
jne 0x41ceb762
mov esi, 0x41cfb6ac
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x41ceb30d
add esi, 4
cmp esi, str.TypeLib
jl 0x41ceb2e2
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
call fcn.41ceb86e
and dword [ebp + 8], 0
test ebx, ebx
je 0x41ceb33f
mov ecx, dword [ebp - 0x424]
push edi
call fcn.41ceae1e
mov esi, eax
test esi, esi
jl 0x41ceb771
mov ecx, dword [ebp - 0x424]
push edi
call fcn.41ceb80d
mov esi, eax
lea ecx, [ebp + 8]
test esi, esi
jmp 0x41ceb407
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call fcn.41ce6010
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x41ceb377
mov ecx, dword [ebp - 0x424]
and dword [ebp - 0x430], eax
push edi
call fcn.41ceae1e
mov esi, eax
test esi, esi
jl 0x41ceb79f
push 0x41cfb914
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x41ceb485
mov ecx, dword [ebp - 0x424]
lea eax, [ebp - 0x420]
push eax
call fcn.41ceae1e
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x41ceb79f
mov ecx, dword [ebp - 0x424]
push edi
call fcn.41ceae1e
mov esi, eax
cmp esi, ebx
jl 0x41ceb79f
cmp word [edi], 0x3d
jne 0x41ceb76a
cmp dword [ebp + 0x10], ebx
je 0x41ceb416
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x424]
mov dword [ebp - 0x434], eax
push edi
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x434]
push eax
mov byte [ebp - 4], 2
call fcn.41ceb919
mov esi, eax
mov dword [ebp - 0x434], ebx
lea ecx, [ebp - 0x434]
cmp esi, ebx
jl 0x41ceb79a
mov byte [ebp - 4], 0
jmp 0x41ceb70a
cmp dword [ebp + 0x14], ebx
jne 0x41ceb470
cmp dword [ebp - 0x430], ebx
je 0x41ceb470
push 0x20006
push ebx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x42c]
mov dword [ebp - 0x42c], ebx
call fcn.41ce6027
cmp eax, ebx
jne 0x41ceb776
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
je 0x41ceb465
cmp eax, 2
jne 0x41ceb776
lea ecx, [ebp - 0x42c]
call fcn.41ce6010
mov ecx, dword [ebp - 0x424]
push edi
call fcn.41ceb80d
mov esi, eax
cmp esi, ebx
jmp 0x41ceb754
xor ecx, ecx
mov cx, word [edi]
mov eax, edi
jmp 0x41ceb49e
cmp cx, 0x5c
je 0x41ceb4a5
push eax
call dword [sym.imp.USER32.dll_CharNextW]
mov cx, word [eax]
cmp cx, si
jne 0x41ceb48e
jmp 0x41ceb4ad
cmp eax, esi
jne 0x41ceb76a
cmp dword [ebp + 0x10], esi
je 0x41ceb575
mov ebx, 0x2001f
push ebx
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x428]
call fcn.41ce6027
test eax, eax
je 0x41ceb531
push CreateOleAdviseHolder
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x428]
call fcn.41ce6027
test eax, eax
je 0x41ceb531
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x430]
push eax
push esi
push ebx
push esi
push esi
push esi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x430], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x41ceb785
lea ecx, [ebp - 0x428]
call fcn.41ce6010
cmp eax, esi
mov ecx, dword [ebp - 0x430]
mov dword [ebp - 0x428], ecx
jne 0x41ceb785
mov ecx, dword [ebp - 0x424]
push edi
call fcn.41ceae1e
mov esi, eax
test esi, esi
jl 0x41ceb79f
cmp word [edi], 0x3d
jne 0x41ceb70f
mov ecx, dword [ebp - 0x424]
push edi
push 0
lea eax, [ebp - 0x428]
push eax
call fcn.41ceb919
mov esi, eax
test esi, esi
jl 0x41ceb79f
jmp 0x41ceb70f
cmp dword [ebp + 0x14], esi
jne 0x41ceb596
push CreateOleAdviseHolder
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x428]
call fcn.41ce6027
mov dword [ebp - 0x42c], eax
jmp 0x41ceb5a0
mov dword [ebp - 0x42c], 2
cmp dword [ebp - 0x42c], esi
je 0x41ceb5af
mov dword [ebp + 0x14], 1
push 0x104
push edi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov ebx, dword [ebp - 0x424]
push edi
mov ecx, ebx
call fcn.41ceae1e
mov esi, eax
test esi, esi
jl 0x41ceb79f
push edi
mov ecx, ebx
call fcn.41ceb80d
mov esi, eax
test esi, esi
jl 0x41ceb79f
cmp word [edi], 0x7b
jne 0x41ceb627
push dword [ebp + 0x14]
mov ecx, ebx
push 0
push dword [ebp - 0x428]
push edi
call fcn.41ceb20d
mov esi, eax
test esi, esi
jge 0x41ceb615
cmp dword [ebp + 0x14], 0
je 0x41ceb79f
push edi
mov ecx, ebx
call fcn.41ceae1e
mov esi, eax
test esi, esi
jl 0x41ceb79f
cmp dword [ebp - 0x42c], 2
mov eax, dword [ebp - 0x438]
mov dword [ebp + 0x14], eax
je 0x41ceb756
xor ebx, ebx
cmp dword [ebp - 0x42c], ebx
je 0x41ceb662
cmp eax, ebx
jne 0x41ceb756
push dword [ebp - 0x42c]
call fcn.41ceb7c5
pop ecx
mov esi, eax
jmp 0x41ceb79f
cmp dword [ebp - 0x438], ebx
je 0x41ceb6ca
push dword [ebp - 0x428]
mov ecx, dword [ebp - 0x424]
call fcn.41ceb7d8
test eax, eax
je 0x41ceb6ca
mov ebx, 0x41cfb6ac
push dword [ebx]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x41ceb756
add ebx, 4
cmp ebx, str.TypeLib
jl 0x41ceb684
cmp dword [ebp - 0x430], 0
je 0x41ceb756
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x428]
call fcn.41ceb86e
jmp 0x41ceb756
lea ecx, [ebp - 0x428]
call fcn.41ce6010
cmp eax, ebx
jne 0x41ceb785
cmp dword [ebp - 0x430], ebx
je 0x41ceb756
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
and dword [ebp - 0x430], 0
test eax, eax
jne 0x41ceb78b
lea ecx, [ebp - 0x430]
call fcn.41ce6010
cmp dword [ebp + 0x10], 0
je 0x41ceb756
cmp word [edi], 0x7b
jne 0x41ceb756
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x41ceb756
mov ecx, dword [ebp - 0x424]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x428]
push edi
call fcn.41ceb20d
mov esi, eax
test esi, esi
jl 0x41ceb79f
mov ecx, dword [ebp - 0x424]
push edi
call fcn.41ceae1e
mov esi, eax
test esi, esi
jl 0x41ceb79f
cmp word [edi], 0x7d
jne 0x41ceb25a
jmp 0x41ceb79f
lea ecx, [ebp + 8]
call fcn.41ce6010
mov esi, 0x80020009
jmp 0x41ceb79f
lea ecx, [ebp + 8]
jmp 0x41ceb79a
push eax
call fcn.41ceb7c5
pop ecx
lea ecx, [ebp - 0x42c]
jmp 0x41ceb798
push eax
jmp 0x41ceb655
push eax
call fcn.41ceb7c5
pop ecx
lea ecx, [ebp - 0x430]
mov esi, eax
call fcn.41ce6010
pop ebx
lea ecx, [ebp - 0x428]
call fcn.41ce6010
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov eax, esi
pop esi
call fcn.41cf14de
leave
ret 0x10