Function at 0x4066f0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x523f66
mov eax, dword fs:[0]
push eax
mov eax, 0x2260
call fcn.004bab30
mov eax, dword [0x590cc0]
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 edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x221c], ecx
mov dword [ebp - 0x2230], eax
mov dword [ebp - 0x2228], ebx
mov dword [ebp - 0x2224], ebx
mov dword [ebp - 0x2220], ebx
mov edx, dword [ebp + 0x14]
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x2244], edx
call fcn.004054b0
mov esi, eax
cmp esi, ebx
jl 0x406da1
cmp word [edi], 0x7d
je 0x406d9f
mov edi, edi
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
push str.Delete
push edi
mov dword [ebp - 0x2240], 1
call esi
neg eax
push str.ForceRemove
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x4067a1
test ebx, ebx
je 0x4068ed
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.004054b0
mov esi, eax
test esi, esi
js 0x406d8e
xor edx, edx
cmp dword [ebp + 0x10], edx
je 0x4068ed
movzx ecx, word [edi]
mov dword [ebp - 0x223c], edx
mov dword [ebp - 0x2238], edx
mov dword [ebp - 0x2234], edx
mov eax, edi
cmp cx, dx
je 0x4067ff
mov esi, dword [sym.imp.USER32.dll_CharNextW]
cmp cx, 0x5c
je 0x4067f7
push eax
call esi
movzx ecx, word [eax]
test cx, cx
jne 0x4067e4
jmp 0x4067ff
test eax, eax
jne 0x406d66
mov esi, 0x5398c4
mov eax, dword [esi]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
je 0x406855
add esi, 4
cmp esi, 0x5398f4
jl 0x406804
mov ecx, dword [ebp - 0x2230]
xor esi, esi
mov dword [ebp - 0x223c], ecx
push edi
lea ecx, [ebp - 0x223c]
mov dword [ebp - 0x2238], esi
mov dword [ebp - 0x2234], esi
call fcn.004057a0
mov dword [ebp - 0x223c], esi
mov dword [ebp - 0x2238], esi
mov dword [ebp - 0x2234], esi
test ebx, ebx
je 0x4068e3
mov ebx, dword [ebp - 0x221c]
push edi
mov ecx, ebx
call fcn.004054b0
mov esi, eax
test esi, esi
js 0x406d83
push edi
mov ecx, ebx
call fcn.004056b0
mov esi, eax
test esi, esi
js 0x406d83
mov dword [ebp - 0x2238], 0
cmp word [edi], 0x7b
jne 0x4068d4
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
cmp eax, 1
jne 0x4068d4
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x2228]
push 0
push eax
push ecx
push edi
mov ecx, ebx
call fcn.004066f0
mov esi, eax
test esi, esi
js 0x406d8e
push edi
mov ecx, ebx
call fcn.004054b0
mov esi, eax
test esi, esi
js 0x406d8e
cmp word [edi], 0x7d
jne 0x406770
jmp 0x406d8e
mov dword [ebp - 0x2238], 0
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x406919
mov ecx, dword [ebp - 0x221c]
push edi
mov dword [ebp - 0x2240], eax
call fcn.004054b0
mov esi, eax
test esi, esi
js 0x406d8e
push 0x539874
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x406a68
mov ecx, dword [ebp - 0x221c]
lea edx, [ebp - 0x2218]
push edx
call fcn.004054b0
mov esi, eax
test esi, esi
js 0x406d8e
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.004054b0
mov esi, eax
test esi, esi
js 0x406d8e
cmp word [edi], 0x3d
jne 0x406d71
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x4069d6
mov eax, dword [ebp - 0x2230]
push edi
lea ecx, [ebp - 0x2218]
push ecx
mov ecx, dword [ebp - 0x221c]
lea edx, [ebp - 0x2250]
push edx
mov byte [ebp - 4], 1
mov dword [ebp - 0x2250], eax
mov dword [ebp - 0x224c], ebx
mov dword [ebp - 0x2248], ebx
call fcn.00406370
mov esi, eax
mov dword [ebp - 0x2250], ebx
mov dword [ebp - 0x224c], ebx
mov dword [ebp - 0x2248], ebx
cmp esi, ebx
jl 0x406dbf
mov byte [ebp - 4], bl
mov dword [ebp - 0x224c], ebx
mov ebx, dword [ebp - 0x221c]
jmp 0x406891
cmp dword [ebp + 0x14], ebx
jne 0x406a4d
cmp dword [ebp - 0x2240], ebx
je 0x406a4d
mov eax, dword [ebp - 0x2230]
push 0x20006
push ebx
push eax
lea ecx, [ebp - 0x225c]
mov dword [ebp - 0x225c], ebx
mov dword [ebp - 0x2258], ebx
mov dword [ebp - 0x2254], ebx
call fcn.00405070
cmp eax, ebx
jne 0x406dd7
mov esi, dword [ebp - 0x225c]
lea ecx, [ebp - 0x2218]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
je 0x406a36
cmp eax, 2
jne 0x406dd7
cmp esi, ebx
je 0x406a47
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x225c], ebx
mov dword [ebp - 0x2258], ebx
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.004056b0
mov esi, eax
cmp esi, ebx
jl 0x406d8e
jmp 0x4068d4
movzx ecx, word [edi]
mov eax, edi
test cx, cx
je 0x406a91
cmp cx, 0x5c
je 0x406a89
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
test cx, cx
jne 0x406a72
jmp 0x406a91
test eax, eax
jne 0x406d71
cmp dword [ebp + 0x10], 0
je 0x406b33
mov esi, dword [ebp - 0x2230]
push 0x2001f
push edi
push esi
lea ecx, [ebp - 0x2228]
call fcn.00405070
test eax, eax
je 0x406af1
push 0x20019
push edi
push esi
lea ecx, [ebp - 0x2228]
call fcn.00405070
test eax, eax
je 0x406af1
push 0
push 0
push 0x2001f
push 0
push 0
push edi
push esi
lea ecx, [ebp - 0x2228]
call fcn.00404fd0
mov esi, eax
test esi, esi
jne 0x406dea
mov ebx, dword [ebp - 0x221c]
push edi
mov ecx, ebx
call fcn.004054b0
mov esi, eax
test esi, esi
js 0x406d8e
cmp word [edi], 0x3d
jne 0x406891
push edi
push 0
lea edx, [ebp - 0x2228]
push edx
mov ecx, ebx
call fcn.00406370
mov esi, eax
test esi, esi
js 0x406d8e
jmp 0x406891
cmp dword [ebp + 0x14], 0
jne 0x406b92
mov eax, dword [ebp - 0x2230]
push 0x20019
push edi
push eax
lea ecx, [ebp - 0x2228]
call fcn.00405070
mov ebx, eax
mov dword [ebp - 0x222c], ebx
test ebx, ebx
je 0x406b64
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x218]
push 0x104
push ecx
call fcn.004baa56
add esp, 0x10
cmp eax, 0x50
ja case.0x406b8b.1
movzx edx, byte [eax + 0x406e60]
jmp dword [edx*4 + 0x406e50]
mov dword [ebp - 0x222c], 2
mov ebx, dword [ebp - 0x222c]
jmp 0x406b5d
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.004054b0
mov esi, eax
test esi, esi
js 0x406d8e
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.004056b0
mov esi, eax
test esi, esi
js 0x406d8e
cmp word [edi], 0x7b
jne 0x406c25
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
cmp eax, 1
jne 0x406c25
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x2228]
mov ecx, dword [ebp - 0x221c]
push ebx
push 0
push eax
push edi
call fcn.004066f0
mov esi, eax
test esi, esi
jns 0x406c09
test ebx, ebx
je 0x406d8e
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.004054b0
mov esi, eax
test esi, esi
js 0x406d8e
mov ebx, dword [ebp - 0x222c]
mov ecx, dword [ebp - 0x2244]
mov dword [ebp + 0x14], ecx
cmp ebx, 2
je 0x4068d4
test ebx, ebx
je 0x406c53
test ecx, ecx
jne 0x4068d4
push ebx
call fcn.00404d50
add esp, 4
mov esi, eax
jmp 0x406d8e
mov ebx, dword [ebp - 0x2228]
test ecx, ecx
je 0x406cab
mov ecx, dword [ebp - 0x221c]
push ebx
call fcn.00405660
test eax, eax
je 0x406cab
mov ecx, dword [ebp - 0x221c]
lea edx, [ebp - 0x218]
push edx
call fcn.00405620
test eax, eax
je 0x4068d4
cmp dword [ebp - 0x2240], 0
je 0x4068d4
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2228]
call fcn.004057a0
jmp 0x4068d4
mov ecx, dword [ebp - 0x221c]
push ebx
call fcn.00405660
mov dword [ebp - 0x226c], eax
mov dword [ebp - 0x222c], 0
test ebx, ebx
je 0x406ce2
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x222c], eax
mov dword [ebp - 0x2228], 0
mov ebx, dword [ebp - 0x222c]
mov dword [ebp - 0x2224], 0
test ebx, ebx
jne 0x406e14
cmp dword [ebp - 0x2240], ebx
je 0x4068d4
cmp dword [ebp - 0x226c], ebx
jne 0x4068d4
mov ecx, dword [ebp - 0x2230]
lea edx, [ebp - 0x218]
mov dword [ebp - 0x2268], ecx
push edx
lea ecx, [ebp - 0x2268]
mov dword [ebp - 0x2264], ebx
mov dword [ebp - 0x2260], ebx
call fcn.00404f50
mov dword [ebp - 0x2268], ebx
mov dword [ebp - 0x2264], ebx
mov dword [ebp - 0x2260], ebx
cmp eax, ebx
jne 0x406e2d
lea ecx, [ebp - 0x2268]
call fcn.00405780
jmp 0x4068d4
lea ecx, [ebp - 0x223c]
call fcn.00405780
lea ecx, [ebp - 0x2228]
call fcn.00405780
mov eax, 0x80020009
jmp 0x406da1
lea ecx, [ebp - 0x223c]
call fcn.00405780
mov eax, dword [ebp - 0x2228]
test eax, eax
je 0x406d9f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
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.004b9ff3
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [ebp - 0x2250]
call fcn.00405780
lea ecx, [ebp - 0x2228]
call fcn.00405780
jmp 0x406d9f
push eax
call fcn.00404d50
add esp, 4
mov esi, eax
lea ecx, [ebp - 0x225c]
jmp 0x406d89
lea ecx, [ebp - 0x2228]
call fcn.00405780
push esi
call fcn.00404d50
add esp, 4
jmp 0x406da1
push 0x8007000e
call fcn.004044f0
push 0x80070057
call fcn.004044f0
lea ecx, [ebp - 0x2228]
call fcn.00405780
push ebx
call fcn.00404d50
add esp, 4
jmp 0x406da1
push eax
call fcn.00404d50
add esp, 4
mov esi, eax
lea ecx, [ebp - 0x2268]
jmp 0x406d89
push 0x80004005
call fcn.004044f0
lea ecx, [ecx]
movsb byte es:[edi], byte [esi]
imul eax, dword [eax], 0
outsb dx, byte [esi]
inc eax
add byte [edx], cl
outsb dx, byte [esi]
inc eax
add byte [ebx + 0x6e], al
inc eax
add byte [eax], al
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ecx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [edx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [edx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [ebx]
add eax, dword [eax]
int3