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

Disassembly:
sub esp, 0x42c
mov eax, dword [0x423190]
push ebp
push esi
push edi
mov edi, dword [esp + 0x43c]
mov dword [esp + 0x434], eax
mov eax, dword [esp + 0x448]
xor ebp, ebp
push edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x20], eax
call fcn.00406170
mov esi, eax
cmp esi, ebp
jge 0x4066e0
lea ecx, [esp + 0x10]
call fcn.00401880
pop edi
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x428]
call fcn.0040c26e
add esp, 0x42c
ret 0x10
cmp word [edi], 0x7d
push ebx
je 0x406cb8
jmp 0x4066f0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x41c91c
push edi
mov dword [esp + 0x18], 1
call esi
mov ebx, eax
neg ebx
push str.ForceRemove
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x406721
cmp ebx, ebp
je 0x40684d
mov ecx, dword [esp + 0x1c]
push edi
call fcn.00406170
mov esi, eax
cmp esi, ebp
jl 0x406cb8
cmp dword [esp + 0x448], ebp
je 0x40684d
xor ecx, ecx
mov dword [esp + 0x18], ebp
mov cx, word [edi]
cmp cx, bp
mov eax, edi
je 0x406773
mov esi, dword [sym.imp.USER32.dll_CharNextW]
cmp cx, 0x5c
je 0x40676b
push eax
call esi
mov cx, word [eax]
cmp cx, bp
jne 0x406758
jmp 0x406773
cmp eax, ebp
jne 0x406c46
mov esi, 0x41c7e8
mov ecx, dword [esi]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4067ae
add esi, 4
cmp esi, 0x41c818
jl 0x406778
mov edx, dword [esp + 0x444]
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], edx
call fcn.00406df0
xor eax, eax
mov dword [esp + 0x18], eax
jmp 0x4067b2
mov eax, dword [esp + 0x18]
cmp ebx, ebp
je 0x406842
mov ebx, dword [esp + 0x1c]
push edi
mov ecx, ebx
call fcn.00406170
mov esi, eax
cmp esi, ebp
jl 0x406c5f
push edi
mov ecx, ebx
call fcn.00406d50
mov esi, eax
lea ecx, [esp + 0x18]
call fcn.00401880
cmp esi, ebp
jl 0x406cb8
cmp word [edi], 0x7b
jne 0x406833
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x406833
mov eax, dword [esp + 0x448]
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
push ebp
push eax
push ecx
push edi
mov ecx, ebx
call fcn.00406680
mov esi, eax
cmp esi, ebp
jl 0x406cb8
push edi
mov ecx, ebx
call fcn.00406170
mov esi, eax
cmp esi, ebp
jl 0x406cb8
cmp word [edi], 0x7d
jne 0x4066f0
jmp 0x406cb8
cmp eax, ebp
je 0x40684d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x406875
mov ecx, dword [esp + 0x1c]
push edi
mov dword [esp + 0x14], ebp
call fcn.00406170
mov esi, eax
cmp esi, ebp
jl 0x406cb8
push 0x41c958
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x406984
mov ebx, dword [esp + 0x1c]
lea eax, [esp + 0x230]
push eax
mov ecx, ebx
call fcn.00406170
mov esi, eax
cmp esi, ebp
jl 0x406cb8
push edi
mov ecx, ebx
call fcn.00406170
mov esi, eax
cmp esi, ebp
jl 0x406cb8
cmp word [edi], 0x3d
jne 0x406c65
cmp dword [esp + 0x448], ebp
je 0x4068fa
mov ecx, dword [esp + 0x444]
push edi
lea edx, [esp + 0x234]
push edx
lea eax, [esp + 0x18]
mov dword [esp + 0x18], ecx
push eax
mov ecx, ebx
call fcn.00406f30
mov esi, eax
mov dword [esp + 0x10], ebp
lea ecx, [esp + 0x10]
jmp 0x4067de
cmp dword [esp + 0x44c], ebp
jne 0x406977
cmp dword [esp + 0x10], ebp
je 0x406977
mov edx, dword [esp + 0x444]
lea ecx, [esp + 0x10]
push ecx
push 0x20006
push ebp
push ebp
push edx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x24], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x406c7b
lea ecx, [esp + 0x18]
call fcn.00401880
cmp eax, ebp
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], ecx
jne 0x406c7b
lea eax, [esp + 0x230]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebp
je 0x406968
cmp eax, 2
jne 0x406c7b
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x406977
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
mov ecx, ebx
call fcn.00406d50
jmp 0x406829
xor ecx, ecx
mov cx, word [edi]
cmp cx, bp
mov eax, edi
je 0x4069b1
mov esi, dword [sym.imp.USER32.dll_CharNextW]
cmp cx, 0x5c
je 0x4069a9
push eax
call esi
mov cx, word [eax]
cmp cx, bp
jne 0x406996
jmp 0x4069b1
cmp eax, ebp
jne 0x406c4f
cmp dword [esp + 0x448], ebp
je 0x406a98
mov esi, dword [esp + 0x444]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [esp + 0x10]
push ecx
push 0x2001f
push ebp
push edi
push esi
mov dword [esp + 0x24], ebp
call ebx
cmp eax, ebp
jne 0x4069f7
lea ecx, [esp + 0x14]
call fcn.00401880
cmp eax, ebp
mov edx, dword [esp + 0x10]
mov dword [esp + 0x14], edx
je 0x406a63
lea eax, [esp + 0x10]
push eax
push 0x20019
push ebp
push edi
push esi
mov dword [esp + 0x24], ebp
call ebx
cmp eax, ebp
jne 0x406a23
lea ecx, [esp + 0x14]
call fcn.00401880
cmp eax, ebp
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
je 0x406a63
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x14]
push eax
push ebp
push 0x2001f
push ebp
push ebp
push ebp
push edi
push esi
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebp
jne 0x406c97
lea ecx, [esp + 0x14]
call fcn.00401880
cmp eax, ebp
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
jne 0x406c97
mov ecx, dword [esp + 0x1c]
push edi
call fcn.00406170
mov esi, eax
cmp esi, ebp
jl 0x406cb8
cmp word [edi], 0x3d
jne 0x4067eb
mov ecx, dword [esp + 0x1c]
push edi
push ebp
lea edx, [esp + 0x1c]
push edx
call fcn.00406f30
mov esi, eax
jmp 0x4067e3
cmp dword [esp + 0x44c], ebp
jne 0x406b97
mov ecx, dword [esp + 0x444]
lea eax, [esp + 0x18]
push eax
push 0x20019
push ebp
push edi
push ecx
mov dword [esp + 0x2c], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x406ad8
lea ecx, [esp + 0x14]
call fcn.00401880
mov edx, dword [esp + 0x18]
mov dword [esp + 0x14], edx
cmp eax, ebp
mov ebx, eax
je 0x406ae9
mov dword [esp + 0x44c], 1
push 0x104
push edi
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov ecx, dword [esp + 0x1c]
push edi
call fcn.00406170
mov esi, eax
cmp esi, ebp
jl 0x406cb8
mov ecx, dword [esp + 0x1c]
push edi
call fcn.00406d50
mov esi, eax
cmp esi, ebp
jl 0x406cb8
cmp word [edi], 0x7b
jne 0x406b67
mov ecx, dword [esp + 0x44c]
mov edx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x20]
push ebp
push edx
push edi
call fcn.00406680
mov esi, eax
cmp esi, ebp
jge 0x406b53
cmp dword [esp + 0x44c], ebp
je 0x406cb8
mov ecx, dword [esp + 0x1c]
push edi
call fcn.00406170
mov esi, eax
cmp esi, ebp
jl 0x406cb8
cmp ebx, 2
mov eax, dword [esp + 0x20]
mov dword [esp + 0x44c], eax
je 0x406833
cmp ebx, ebp
je 0x406ba1
cmp eax, ebp
jne 0x406833
push ebx
call fcn.00406ce0
add esp, 4
mov esi, eax
jmp 0x406cb8
mov ebx, 2
jmp 0x406ade
cmp eax, ebp
je 0x406bfe
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x20]
call fcn.00406d00
test eax, eax
je 0x406bfe
mov ebx, 0x41c7e8
lea esp, [esp]
mov edx, dword [ebx]
push edx
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x406833
add ebx, 4
cmp ebx, 0x41c818
jl 0x406bc0
cmp dword [esp + 0x10], ebp
je 0x406833
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x18]
call fcn.00406df0
jmp 0x406833
lea ecx, [esp + 0x14]
call fcn.00401880
cmp eax, ebp
jne 0x406c97
cmp dword [esp + 0x10], ebp
je 0x406833
mov eax, dword [esp + 0x444]
lea edx, [esp + 0x28]
push edx
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, ebp
mov dword [esp + 0x10], ebp
jne 0x406ca4
lea ecx, [esp + 0x10]
call fcn.00401880
jmp 0x406833
lea ecx, [esp + 0x18]
call fcn.00401880
lea ecx, [esp + 0x14]
call fcn.00401880
mov eax, 0x80020009
jmp 0x406cc3
lea ecx, [esp + 0x18]
jmp 0x406cb3
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x406c74
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x406cc3
push eax
call fcn.00406ce0
mov esi, eax
mov eax, dword [esp + 0x1c]
add esp, 4
cmp eax, ebp
je 0x406cb8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x406cb8
push eax
call fcn.00406ce0
add esp, 4
mov esi, eax
jmp 0x406cb8
push eax
call fcn.00406ce0
add esp, 4
mov esi, eax
lea ecx, [esp + 0x10]
call fcn.00401880
lea ecx, [esp + 0x14]
call fcn.00401880
mov eax, esi
mov ecx, dword [esp + 0x438]
pop ebx
pop edi
pop esi
pop ebp
call fcn.0040c26e
add esp, 0x42c
ret 0x10