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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x225c
call fcn.0040af80
mov eax, dword [0x41d340]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x2214], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [ebp - 0x2210], ecx
mov dword [ebp - 0x2220], ebx
mov dword [ebp - 0x221c], ebx
mov dword [ebp - 0x2218], ebx
mov dword [ebp - 0x224c], eax
call fcn.00406dca
mov esi, eax
cmp esi, ebx
jl 0x4081e2
jmp 0x408177
mov esi, dword [0x4180d0]
push str.Delete
push edi
mov dword [ebp - 0x2230], 1
call esi
neg eax
push str.ForceRemove
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x407c85
test ebx, ebx
je 0x407d5c
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.00406dca
mov esi, eax
test esi, esi
js 0x4081e2
cmp dword [ebp + 0x10], 0
je 0x407d5c
xor esi, esi
push 0x5c
push edi
mov dword [ebp - 0x222c], esi
mov dword [ebp - 0x2228], esi
mov dword [ebp - 0x2224], esi
call fcn.00406d55
pop ecx
pop ecx
test eax, eax
jne 0x408183
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.00406ee0
test eax, eax
je 0x407d11
mov eax, dword [ebp - 0x2214]
push edi
lea ecx, [ebp - 0x222c]
mov dword [ebp - 0x222c], eax
mov dword [ebp - 0x2228], esi
mov dword [ebp - 0x2224], esi
call fcn.0040707c
mov dword [ebp - 0x222c], esi
mov dword [ebp - 0x2228], esi
mov dword [ebp - 0x2224], esi
cmp ebx, esi
je 0x407d51
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.00406dca
mov esi, eax
test esi, esi
js 0x408195
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.00406f44
lea ecx, [ebp - 0x222c]
mov esi, eax
call fcn.0040307e
test esi, esi
js 0x4081e2
jmp 0x408130
lea ecx, [ebp - 0x222c]
call fcn.0040307e
push str.NoRemove
push edi
call dword [0x4180d0]
test eax, eax
jne 0x407d88
mov ecx, dword [ebp - 0x2210]
and dword [ebp - 0x2230], eax
push edi
call fcn.00406dca
mov esi, eax
test esi, esi
js 0x4081e2
push 0x418af0
push edi
call dword [0x4180d0]
test eax, eax
jne 0x407eb7
mov ecx, dword [ebp - 0x2210]
lea eax, [ebp - 0x220c]
push eax
call fcn.00406dca
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x4081e2
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.00406dca
mov esi, eax
cmp esi, ebx
jl 0x4081e2
cmp word [edi], 0x3d
jne 0x40818e
cmp dword [ebp + 0x10], ebx
je 0x407e3d
mov eax, dword [ebp - 0x2214]
mov ecx, dword [ebp - 0x2210]
mov dword [ebp - 0x223c], eax
push edi
lea eax, [ebp - 0x220c]
push eax
lea eax, [ebp - 0x223c]
push eax
mov dword [ebp - 0x2238], ebx
mov dword [ebp - 0x2234], ebx
call fcn.00407903
lea ecx, [ebp - 0x223c]
mov esi, eax
mov dword [ebp - 0x223c], ebx
mov dword [ebp - 0x2238], ebx
mov dword [ebp - 0x2234], ebx
call fcn.0040307e
cmp esi, ebx
jl 0x4081e2
jmp 0x408130
cmp dword [ebp + 0x14], ebx
jne 0x407ea6
cmp dword [ebp - 0x2230], ebx
je 0x407ea6
push 0x20006
push ebx
push dword [ebp - 0x2214]
lea ecx, [ebp - 0x2248]
mov dword [ebp - 0x2248], ebx
mov dword [ebp - 0x2244], ebx
mov dword [ebp - 0x2240], ebx
call fcn.00403099
cmp eax, ebx
jne 0x40819d
lea eax, [ebp - 0x220c]
push eax
push dword [ebp - 0x2248]
call dword [0x418004]
cmp eax, ebx
je 0x407e9b
cmp eax, 2
jne 0x40819d
lea ecx, [ebp - 0x2248]
call fcn.0040307e
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.00406f44
jmp 0x407c45
push 0x5c
push edi
call fcn.00406d55
pop ecx
pop ecx
test eax, eax
jne 0x40818e
cmp dword [ebp + 0x10], eax
je 0x407f68
mov esi, 0x2001f
push esi
push edi
push dword [ebp - 0x2214]
lea ecx, [ebp - 0x2220]
call fcn.00403099
test eax, eax
je 0x407f2c
push 0x20019
push edi
push dword [ebp - 0x2214]
lea ecx, [ebp - 0x2220]
call fcn.00403099
test eax, eax
je 0x407f2c
xor ebx, ebx
push ebx
push ebx
push esi
push ebx
push ebx
push edi
push dword [ebp - 0x2214]
lea ecx, [ebp - 0x2220]
call fcn.00406aa1
mov esi, eax
cmp esi, ebx
jne 0x4081ac
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.00406dca
mov esi, eax
test esi, esi
js 0x4081e2
cmp word [edi], 0x3d
jne 0x408130
mov ecx, dword [ebp - 0x2210]
push edi
push 0
lea eax, [ebp - 0x2220]
push eax
call fcn.00407903
mov esi, eax
jmp 0x407d44
cmp dword [ebp + 0x14], 0
jne 0x407f89
push 0x20019
push edi
push dword [ebp - 0x2214]
lea ecx, [ebp - 0x2220]
call fcn.00403099
mov ebx, eax
jmp 0x407f8c
push 2
pop ebx
test ebx, ebx
je 0x407f97
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040b9e6
push eax
call fcn.0040108a
mov ecx, dword [ebp - 0x2210]
add esp, 0x14
push edi
call fcn.00406dca
mov esi, eax
test esi, esi
js 0x4081e2
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.00406f44
mov esi, eax
test esi, esi
js 0x4081e2
cmp word [edi], 0x7b
jne 0x40802f
push edi
call dword [0x418070]
cmp eax, 1
jne 0x40802f
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x2210]
push 0
push dword [ebp - 0x2220]
push edi
call fcn.00407bf6
mov esi, eax
test esi, esi
jns 0x408019
cmp dword [ebp + 0x14], 0
je 0x4081e2
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.00406dca
mov esi, eax
test esi, esi
js 0x4081e2
mov eax, dword [ebp - 0x224c]
mov dword [ebp + 0x14], eax
cmp ebx, 2
je 0x408177
test ebx, ebx
je 0x40805b
test eax, eax
jne 0x408177
push ebx
call fcn.004068f8
pop ecx
mov esi, eax
jmp 0x4081e2
test eax, eax
je 0x4080b2
push dword [ebp - 0x2220]
mov ecx, dword [ebp - 0x2210]
call fcn.00406f0f
test eax, eax
je 0x4080b2
mov ecx, dword [ebp - 0x2210]
lea eax, [ebp - 0x20c]
push eax
call fcn.00406ee0
test eax, eax
je 0x408177
cmp dword [ebp - 0x2230], 0
je 0x408177
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x2220]
call fcn.0040707c
jmp 0x408177
push dword [ebp - 0x2220]
mov ecx, dword [ebp - 0x2210]
call fcn.00406f0f
lea ecx, [ebp - 0x2220]
mov dword [ebp - 0x2250], eax
call fcn.0040307e
mov ebx, eax
test ebx, ebx
jne 0x4081c0
cmp dword [ebp - 0x2230], eax
je 0x408177
cmp dword [ebp - 0x2250], eax
jne 0x408177
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x2214]
call dword [0x418014]
xor ecx, ecx
mov dword [ebp - 0x225c], ecx
mov dword [ebp - 0x2258], ecx
mov dword [ebp - 0x2254], ecx
cmp eax, ecx
jne 0x4081ce
lea ecx, [ebp - 0x225c]
call fcn.0040307e
cmp dword [ebp + 0x10], 0
je 0x408177
cmp word [edi], 0x7b
jne 0x408177
push edi
call dword [0x418070]
cmp eax, 1
jne 0x408177
mov ecx, dword [ebp - 0x2210]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x2220]
push edi
call fcn.00407bf6
mov esi, eax
test esi, esi
js 0x4081e2
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.00406dca
mov esi, eax
test esi, esi
js 0x4081e2
cmp word [edi], 0x7d
jne 0x407c54
jmp 0x4081e2
lea ecx, [ebp - 0x222c]
call fcn.0040307e
mov esi, 0x80020009
jmp 0x4081e2
lea ecx, [ebp - 0x222c]
jmp 0x4081dd
push eax
call fcn.004068f8
pop ecx
lea ecx, [ebp - 0x2248]
jmp 0x4081db
lea ecx, [ebp - 0x2220]
call fcn.0040307e
push esi
call fcn.004068f8
pop ecx
jmp 0x4081ef
lea ecx, [ebp - 0x2220]
call fcn.0040307e
push ebx
jmp 0x4081b8
push eax
call fcn.004068f8
pop ecx
lea ecx, [ebp - 0x225c]
mov esi, eax
call fcn.0040307e
lea ecx, [ebp - 0x2220]
call fcn.0040307e
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a70d
leave
ret 0x10