Function at 0x4066b0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43307f
mov eax, dword fs:[0]
push eax
mov eax, 0x224c
call fcn.004263c0
mov eax, dword [0x442080]
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 - 0x2228], eax
mov dword [ebp - 0x2224], esi
mov dword [ebp - 0x2220], esi
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2244], eax
mov eax, ebx
mov dword [ebp - 4], esi
call fcn.00405dfe
mov edi, eax
cmp edi, esi
jl 0x406b8b
cmp word [ebx], 0x7d
je 0x406b89
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.Delete
push ebx
mov dword [ebp - 0x2230], 1
call edi
mov esi, eax
neg esi
push str.ForceRemove
sbb esi, esi
push ebx
inc esi
call edi
test eax, eax
je 0x40675c
test esi, esi
je 0x406816
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.00405dfe
mov edi, eax
test edi, edi
jl 0x406b74
xor edi, edi
cmp dword [ebp + 0x10], edi
je 0x406818
push 0x5c
mov eax, ebx
mov dword [ebp - 0x2240], edi
mov dword [ebp - 0x223c], edi
call fcn.00405db2
pop ecx
test eax, eax
jne 0x406ce6
push ebx
call fcn.0040625c
test eax, eax
je 0x4067d0
mov eax, dword [ebp - 0x2228]
push ebx
lea ecx, [ebp - 0x2240]
mov dword [ebp - 0x2240], eax
mov dword [ebp - 0x223c], edi
call fcn.0040565b
mov dword [ebp - 0x2240], edi
mov dword [ebp - 0x223c], edi
cmp esi, edi
je 0x40680e
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.00405dfe
mov edi, eax
test edi, edi
jl 0x406b74
mov ecx, dword [ebp - 0x221c]
mov edi, ebx
call fcn.004062bd
mov edi, eax
test edi, edi
jl 0x406b74
and dword [ebp - 0x223c], 0
jmp 0x406c87
mov dword [ebp - 0x223c], edi
jmp 0x406818
xor edi, edi
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x406847
and dword [ebp - 0x2230], eax
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.00405dfe
mov edi, eax
test edi, edi
jl 0x406b74
xor edi, edi
push 0x4389a0
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x406980
mov ecx, dword [ebp - 0x221c]
lea eax, [ebp - 0x2218]
call fcn.00405dfe
mov edi, eax
test edi, edi
jl 0x406b74
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.00405dfe
mov edi, eax
test edi, edi
jl 0x406b74
cmp word [ebx], 0x3d
jne 0x406d04
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x4068f2
mov eax, dword [ebp - 0x2228]
mov ecx, dword [ebp - 0x221c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x2254], eax
push ebx
lea eax, [ebp - 0x2218]
push eax
lea edx, [ebp - 0x2254]
mov dword [ebp - 0x2250], esi
call fcn.00405f14
mov edi, eax
cmp edi, esi
mov dword [ebp - 0x2254], esi
mov dword [ebp - 0x2250], esi
jl 0x406d5a
mov byte [ebp - 4], 0
mov dword [ebp - 0x2250], esi
jmp 0x406c87
cmp dword [ebp + 0x14], esi
jne 0x40696a
cmp dword [ebp - 0x2230], esi
je 0x40696a
push esi
push dword [ebp - 0x2228]
mov eax, 0x20006
lea ecx, [ebp - 0x2238]
mov dword [ebp - 0x2238], esi
mov dword [ebp - 0x2234], esi
call fcn.004055d8
cmp eax, esi
jne 0x406d0d
lea eax, [ebp - 0x2218]
push eax
push dword [ebp - 0x2238]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, esi
je 0x40694a
cmp eax, 2
jne 0x406d0d
cmp dword [ebp - 0x2238], esi
je 0x406964
push dword [ebp - 0x2238]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2238], esi
mov dword [ebp - 0x2234], esi
mov ecx, dword [ebp - 0x221c]
mov edi, ebx
call fcn.004062bd
mov edi, eax
cmp edi, esi
jmp 0x406cd1
push 0x5c
mov eax, ebx
call fcn.00405db2
pop ecx
test eax, eax
jne 0x406ce6
cmp dword [ebp + 0x10], edi
je 0x406a73
push ebx
push dword [ebp - 0x2228]
mov esi, 0x2001f
mov eax, esi
lea ecx, [ebp - 0x2224]
call fcn.004055d8
test eax, eax
je 0x406a2f
push ebx
push dword [ebp - 0x2228]
lea eax, [esi - 6]
lea ecx, [ebp - 0x2224]
call fcn.004055d8
test eax, eax
je 0x406a2f
lea eax, [ebp - 0x2258]
push eax
lea eax, [ebp - 0x2230]
push eax
push edi
push esi
push edi
push edi
push edi
push ebx
push dword [ebp - 0x2228]
mov dword [ebp - 0x2230], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
jne 0x406d31
xor eax, eax
cmp dword [ebp - 0x2224], edi
je 0x406a15
push dword [ebp - 0x2224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x2230]
mov dword [ebp - 0x2224], ecx
mov dword [ebp - 0x2220], edi
cmp eax, edi
jne 0x406d31
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.00405dfe
mov edi, eax
test edi, edi
jl 0x406b74
cmp word [ebx], 0x3d
jne 0x406c87
mov ecx, dword [ebp - 0x221c]
push ebx
push 0
lea edx, [ebp - 0x2224]
call fcn.00405f14
mov edi, eax
test edi, edi
jl 0x406b74
jmp 0x406c87
cmp dword [ebp + 0x14], edi
jne 0x406a97
push ebx
push dword [ebp - 0x2228]
mov eax, 0x20019
lea ecx, [ebp - 0x2224]
call fcn.004055d8
mov dword [ebp - 0x222c], eax
jmp 0x406aa1
mov dword [ebp - 0x222c], 2
cmp dword [ebp - 0x222c], edi
je 0x406ab0
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0041ba4e
push eax
call fcn.00401d3d
mov ecx, dword [ebp - 0x221c]
add esp, 0x14
mov eax, ebx
call fcn.00405dfe
mov edi, eax
test edi, edi
jl 0x406b74
mov ecx, dword [ebp - 0x221c]
mov edi, ebx
call fcn.004062bd
mov edi, eax
test edi, edi
jl 0x406b74
cmp word [ebx], 0x7b
jne 0x406b3f
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x406b3f
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x221c]
push 0
push dword [ebp - 0x2224]
push ebx
call fcn.004066b0
mov edi, eax
test edi, edi
jge 0x406b2c
cmp dword [ebp + 0x14], 0
je 0x406b74
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.00405dfe
mov edi, eax
test edi, edi
jl 0x406b74
cmp dword [ebp - 0x222c], 2
mov eax, dword [ebp - 0x2244]
mov dword [ebp + 0x14], eax
je 0x406cd7
xor esi, esi
cmp dword [ebp - 0x222c], esi
je 0x406ba7
cmp eax, esi
jne 0x406cd7
mov eax, dword [ebp - 0x222c]
call fcn.004053f8
mov edi, eax
cmp dword [ebp - 0x2224], 0
je 0x406b89
push dword [ebp - 0x2224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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.0041a944
leave
ret 0x10
cmp eax, esi
je 0x406bf2
push dword [ebp - 0x2224]
call fcn.00406288
test eax, eax
je 0x406bf2
lea eax, [ebp - 0x218]
push eax
call fcn.0040625c
test eax, eax
je 0x406cd7
cmp dword [ebp - 0x2230], 0
je 0x406cd7
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2224]
call fcn.0040565b
jmp 0x406cd7
push dword [ebp - 0x2224]
call fcn.00406288
mov dword [ebp - 0x222c], eax
xor eax, eax
cmp dword [ebp - 0x2224], esi
je 0x406c1f
push dword [ebp - 0x2224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2224], esi
mov dword [ebp - 0x2220], esi
cmp eax, esi
jne 0x406d53
cmp dword [ebp - 0x2230], esi
je 0x406cd7
cmp dword [ebp - 0x222c], 0
jne 0x406cd7
mov eax, dword [ebp - 0x2228]
and dword [ebp - 0x2248], 0
mov dword [ebp - 0x224c], eax
lea eax, [ebp - 0x218]
push eax
lea esi, [ebp - 0x224c]
call fcn.0040556a
and dword [ebp - 0x224c], 0
and dword [ebp - 0x2248], 0
test eax, eax
jne 0x406b6d
and dword [ebp - 0x2248], eax
cmp dword [ebp + 0x10], 0
je 0x406cd7
cmp word [ebx], 0x7b
jne 0x406cd7
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x406cd7
mov ecx, dword [ebp - 0x221c]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x2224]
push ebx
call fcn.004066b0
mov edi, eax
test edi, edi
jl 0x406b74
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.00405dfe
mov edi, eax
test edi, edi
jl 0x406b74
cmp word [ebx], 0x7d
jne 0x406729
jmp 0x406b74
cmp dword [ebp - 0x2224], edi
je 0x406cfa
push dword [ebp - 0x2224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x406b8b
cmp dword [ebp - 0x2224], 0
jmp 0x406cec
call fcn.004053f8
mov edi, eax
cmp dword [ebp - 0x2238], esi
je 0x406b74
push dword [ebp - 0x2238]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x406b74
call fcn.004053f8
mov esi, eax
cmp dword [ebp - 0x2224], edi
je 0x406d4c
push dword [ebp - 0x2224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x406b8b
call fcn.004053f8
mov edi, eax
cmp dword [ebp - 0x2224], esi
jmp 0x406b7b