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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50c0cc
mov eax, dword fs:[0]
push eax
mov eax, 0x224c
call fcn.004d60f0
mov eax, dword [0x56a5a0]
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
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x221c], ecx
mov dword [ebp - 0x2220], eax
mov dword [ebp - 0x2228], esi
mov dword [ebp - 0x2224], esi
mov dword [ebp - 4], esi
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x224c], eax
mov eax, ebx
call fcn.0040c158
mov edi, eax
cmp edi, esi
jge 0x40c84a
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x2228]
call fcn.00402262
mov eax, edi
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.004c9b4d
leave
ret 0x10
mov edi, dword [0x51a35c]
push str.Delete
push ebx
mov dword [ebp - 0x2238], 1
call edi
mov esi, eax
neg esi
push str.ForceRemove
sbb esi, esi
push ebx
inc esi
call edi
test eax, eax
je 0x40c339
test esi, esi
je 0x40c3fe
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.0040c158
mov edi, eax
test edi, edi
jl 0x40c2d9
cmp dword [ebp + 0x10], 0
je 0x40c3fe
xor edi, edi
mov dword [ebp - 0x2230], edi
mov dword [ebp - 0x222c], edi
mov byte [ebp - 4], 1
push 0x5c
mov eax, ebx
call fcn.0040bab1
pop ecx
test eax, eax
jne 0x40c859
push ebx
call fcn.0040c09f
test eax, eax
je 0x40c3ae
mov eax, dword [ebp - 0x2220]
push ebx
lea ecx, [ebp - 0x2230]
mov dword [ebp - 0x2230], eax
mov dword [ebp - 0x222c], edi
call fcn.0040ce46
mov dword [ebp - 0x2230], edi
mov dword [ebp - 0x222c], edi
cmp esi, edi
je 0x40c3ef
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.0040c158
mov edi, eax
test edi, edi
jl 0x40c872
mov ecx, dword [ebp - 0x221c]
mov esi, ebx
call fcn.0040c03a
mov edi, eax
test edi, edi
jl 0x40c872
mov byte [ebp - 4], 0
lea esi, [ebp - 0x2230]
jmp 0x40c7f5
mov byte [ebp - 4], 0
lea esi, [ebp - 0x2230]
call fcn.00402262
push str.NoRemove
push ebx
call dword [0x51a35c]
test eax, eax
jne 0x40c42b
and dword [ebp - 0x2238], eax
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.0040c158
mov edi, eax
test edi, edi
jl 0x40c2d9
push 0x52864c
push ebx
call dword [0x51a35c]
test eax, eax
jne 0x40c55f
mov ecx, dword [ebp - 0x221c]
lea eax, [ebp - 0x2218]
call fcn.0040c158
mov edi, eax
xor esi, esi
cmp edi, esi
jl 0x40c2d9
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.0040c158
mov edi, eax
cmp edi, esi
jl 0x40c2d9
cmp word [ebx], 0x3d
jne 0x40c868
cmp dword [ebp + 0x10], esi
je 0x40c4e2
mov dword [ebp - 0x2240], esi
mov dword [ebp - 0x223c], esi
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x2220]
mov ecx, dword [ebp - 0x221c]
mov dword [ebp - 0x2240], eax
push ebx
lea eax, [ebp - 0x2218]
push eax
lea edx, [ebp - 0x2240]
mov dword [ebp - 0x223c], esi
call fcn.0040bd21
mov edi, eax
cmp edi, esi
mov dword [ebp - 0x2240], esi
mov dword [ebp - 0x223c], esi
jl 0x40c87e
mov byte [ebp - 4], 0
lea esi, [ebp - 0x2240]
jmp 0x40c7f5
cmp dword [ebp + 0x14], esi
jne 0x40c54d
cmp dword [ebp - 0x2238], esi
je 0x40c54d
mov dword [ebp - 0x2254], esi
mov dword [ebp - 0x2250], esi
mov byte [ebp - 4], 3
push 0x20006
push esi
push dword [ebp - 0x2220]
lea eax, [ebp - 0x2254]
call fcn.00402279
cmp eax, esi
jne 0x40c892
lea eax, [ebp - 0x2218]
push eax
push dword [ebp - 0x2254]
call dword [0x51a01c]
cmp eax, esi
je 0x40c53e
cmp eax, 2
jne 0x40c892
mov byte [ebp - 4], 0
lea esi, [ebp - 0x2254]
call fcn.00402262
mov ecx, dword [ebp - 0x221c]
mov esi, ebx
call fcn.0040c03a
jmp 0x40c840
push 0x5c
mov eax, ebx
call fcn.0040bab1
pop ecx
test eax, eax
jne 0x40c868
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x40c610
push 0x2001f
push ebx
push dword [ebp - 0x2220]
lea eax, [ebp - 0x2228]
call fcn.00402279
cmp eax, esi
je 0x40c5cc
push 0x20019
push ebx
push dword [ebp - 0x2220]
lea eax, [ebp - 0x2228]
call fcn.00402279
cmp eax, esi
je 0x40c5cc
push ebx
push dword [ebp - 0x2220]
lea eax, [ebp - 0x2228]
call fcn.0040cf26
cmp eax, esi
jne 0x40c711
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.0040c158
mov edi, eax
test edi, edi
jl 0x40c2d9
cmp word [ebx], 0x3d
jne 0x40c7fa
mov ecx, dword [ebp - 0x221c]
push ebx
push 0
lea edx, [ebp - 0x2228]
call fcn.0040bd21
mov edi, eax
test edi, edi
jl 0x40c2d9
jmp 0x40c7fa
cmp dword [ebp + 0x14], esi
jne 0x40c634
push 0x20019
push ebx
push dword [ebp - 0x2220]
lea eax, [ebp - 0x2228]
call fcn.00402279
mov dword [ebp - 0x2234], eax
jmp 0x40c63e
mov dword [ebp - 0x2234], 2
cmp dword [ebp - 0x2234], esi
je 0x40c64d
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004cbc48
push eax
call fcn.0040249e
mov ecx, dword [ebp - 0x221c]
add esp, 0x14
mov eax, ebx
call fcn.0040c158
mov edi, eax
test edi, edi
jl 0x40c2d9
mov ecx, dword [ebp - 0x221c]
mov esi, ebx
call fcn.0040c03a
mov edi, eax
test edi, edi
jl 0x40c2d9
cmp word [ebx], 0x7b
jne 0x40c6e8
push ebx
call dword [0x51a3cc]
cmp eax, 1
jne 0x40c6e8
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x221c]
push 0
push dword [ebp - 0x2228]
push ebx
call fcn.0040c26a
mov edi, eax
test edi, edi
jge 0x40c6d1
cmp dword [ebp + 0x14], 0
je 0x40c2d9
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.0040c158
mov edi, eax
test edi, edi
jl 0x40c2d9
mov eax, dword [ebp - 0x224c]
mov dword [ebp + 0x14], eax
mov eax, dword [ebp - 0x2234]
cmp eax, 2
je 0x40c84a
test eax, eax
je 0x40c71d
cmp dword [ebp - 0x224c], 0
jne 0x40c84a
call fcn.0040c123
mov edi, eax
jmp 0x40c2d9
cmp dword [ebp - 0x224c], 0
je 0x40c76d
push dword [ebp - 0x2228]
call fcn.0040c0cb
test eax, eax
je 0x40c76d
lea eax, [ebp - 0x218]
push eax
call fcn.0040c09f
test eax, eax
je 0x40c84a
cmp dword [ebp - 0x2238], 0
je 0x40c84a
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2228]
call fcn.0040ce46
jmp 0x40c84a
push dword [ebp - 0x2228]
call fcn.0040c0cb
lea esi, [ebp - 0x2228]
mov dword [ebp - 0x2234], eax
call fcn.00402262
xor esi, esi
cmp eax, esi
jne 0x40c711
cmp dword [ebp - 0x2238], esi
je 0x40c84a
cmp dword [ebp - 0x2234], esi
jne 0x40c84a
mov dword [ebp - 0x2248], esi
mov dword [ebp - 0x2244], esi
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x2220]
lea ecx, [ebp - 0x218]
push ecx
push eax
mov dword [ebp - 0x2248], eax
mov dword [ebp - 0x2244], esi
call dword [0x51a010]
mov dword [ebp - 0x2248], esi
mov dword [ebp - 0x2244], esi
cmp eax, esi
jne 0x40c8a5
mov byte [ebp - 4], 0
lea esi, [ebp - 0x2248]
call fcn.00402262
cmp dword [ebp + 0x10], 0
je 0x40c84a
cmp word [ebx], 0x7b
jne 0x40c84a
push ebx
call dword [0x51a3cc]
cmp eax, 1
jne 0x40c84a
mov ecx, dword [ebp - 0x221c]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x2228]
push ebx
call fcn.0040c26a
mov edi, eax
test edi, edi
jl 0x40c2d9
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.0040c158
mov edi, eax
test edi, edi
jl 0x40c2d9
cmp word [ebx], 0x7d
jne 0x40c306
jmp 0x40c2d9
mov byte [ebp - 4], 0
lea esi, [ebp - 0x2230]
call fcn.00402262
mov edi, 0x80020009
jmp 0x40c2d9
mov byte [ebp - 4], 0
lea esi, [ebp - 0x2230]
jmp 0x40c888
mov byte [ebp - 4], 0
lea esi, [ebp - 0x2240]
call fcn.00402262
jmp 0x40c2d9
call fcn.0040c123
mov edi, eax
mov byte [ebp - 4], 0
lea esi, [ebp - 0x2254]
jmp 0x40c888
call fcn.0040c123
mov edi, eax
mov byte [ebp - 4], 0
lea esi, [ebp - 0x2248]
jmp 0x40c888