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

Disassembly:
mov eax, 0x4146e3
call fcn.00414500
sub esp, 0x228
mov eax, dword [0x4188a0]
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x10], eax
push edi
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x220], ebx
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
push edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x22c], 1
mov dword [ebp - 0x234], eax
call fcn.0040477a
jmp 0x4068b6
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x4014b4
push edi
call esi
mov ebx, eax
neg ebx
push 0x4014d8
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x406706
test ebx, ebx
je 0x4067ad
mov ecx, dword [ebp - 0x21c]
push edi
call fcn.0040477a
mov esi, eax
test esi, esi
jl 0x406bc7
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x4067ad
mov dword [ebp + 8], esi
push 0x5c
push edi
mov byte [ebp - 4], 2
call fcn.00404672
test eax, eax
jne 0x406bba
mov ecx, dword [ebp - 0x21c]
push edi
call fcn.00404880
test eax, eax
je 0x406760
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
call fcn.004052ea
mov dword [ebp + 8], esi
cmp ebx, esi
je 0x4067a1
mov ecx, dword [ebp - 0x21c]
push edi
call fcn.0040477a
mov esi, eax
test esi, esi
jl 0x406c0e
mov ecx, dword [ebp - 0x21c]
push edi
call fcn.00404978
mov esi, eax
test esi, esi
lea ecx, [ebp + 8]
jl 0x406c11
mov byte [ebp - 4], 1
call fcn.00404286
jmp 0x406b67
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00404286
push 0x4014c4
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4067d9
mov ecx, dword [ebp - 0x21c]
and dword [ebp - 0x22c], eax
push edi
call fcn.0040477a
mov esi, eax
test esi, esi
jl 0x406bc7
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x4014f0
push edi
xor ebx, ebx
call esi
test eax, eax
jne 0x4068bf
mov ecx, dword [ebp - 0x21c]
lea eax, [ebp - 0x218]
push eax
call fcn.0040477a
mov esi, eax
cmp esi, ebx
jl 0x406bc7
mov ecx, dword [ebp - 0x21c]
push edi
call fcn.0040477a
mov esi, eax
cmp esi, ebx
jl 0x406bc7
cmp word [edi], 0x3d
jne 0x406bc2
cmp dword [ebp + 0x10], ebx
je 0x406864
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x21c]
push ebx
mov dword [ebp + 8], eax
push edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp + 8]
push eax
call fcn.004063a3
lea ecx, [ebp + 8]
mov esi, eax
mov dword [ebp + 8], ebx
call fcn.00404286
cmp esi, ebx
jmp 0x406b65
cmp dword [ebp + 0x14], ebx
jne 0x4068aa
push 0x20006
push ebx
push dword [ebp + 0xc]
lea ecx, [ebp + 8]
mov dword [ebp + 8], ebx
call fcn.004042eb
cmp eax, ebx
jne 0x406c00
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
je 0x4068a2
cmp eax, 2
jne 0x406bfe
lea ecx, [ebp + 8]
call fcn.00404286
mov ecx, dword [ebp - 0x21c]
push edi
call fcn.00404978
mov esi, eax
cmp esi, ebx
jmp 0x406bac
push 0x5c
push edi
call fcn.00404672
test eax, eax
jne 0x406bc2
cmp dword [ebp + 0x10], ebx
je 0x406991
push 0xf003f
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x220]
call fcn.004042eb
test eax, eax
je 0x406928
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x220]
call fcn.004042eb
test eax, eax
je 0x406928
push ebx
push ebx
push 0x2001f
push ebx
push ebx
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x220]
call fcn.0040429d
test eax, eax
jne 0x406bc2
mov ax, word [edi]
cmp ax, 0x4c
mov byte [ebp - 0x228], 0
je 0x40693e
cmp ax, 0x6c
jne 0x406951
push 0x401b90
push edi
call esi
test eax, eax
jne 0x406951
mov byte [ebp - 0x228], 1
mov ecx, dword [ebp - 0x21c]
push edi
call fcn.0040477a
mov esi, eax
test esi, esi
jl 0x406bc7
cmp word [edi], 0x3d
jne 0x406b67
push dword [ebp - 0x228]
mov ecx, dword [ebp - 0x21c]
push edi
push 0
lea eax, [ebp - 0x220]
push eax
call fcn.004063a3
jmp 0x406b61
cmp dword [ebp + 0x14], ebx
jne 0x4069b5
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x220]
call fcn.004042eb
test eax, eax
je 0x4069b5
mov dword [ebp + 0x14], 1
cmp dword [ebp - 0x224], ebx
jne 0x4069f9
mov esi, 0x208
push esi
call fcn.0040418d
test al, al
je 0x4069db
mov eax, esi
call fcn.00414410
mov dword [ebp - 0x224], esp
jmp 0x4069ed
push esi
lea ecx, [ebp - 0x230]
call fcn.004061b2
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], ebx
je 0x406c18
push 0x104
push edi
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp dword [ebp + 0x14], ebx
jne 0x406a3e
push dword [ebp - 0x220]
mov ecx, dword [ebp - 0x21c]
call fcn.004048ac
test eax, eax
jne 0x406a3e
push dword [ebp - 0x220]
mov ecx, dword [ebp - 0x21c]
call fcn.004048e1
test eax, eax
je 0x406b0d
mov ebx, dword [ebp - 0x21c]
push edi
mov ecx, ebx
call fcn.0040477a
mov esi, eax
test esi, esi
jl 0x406bc7
push edi
mov ecx, ebx
call fcn.00404978
mov esi, eax
test esi, esi
jl 0x406bc7
cmp word [edi], 0x7b
jne 0x406ab9
push dword [ebp + 0x14]
mov ecx, ebx
push 0
push dword [ebp - 0x220]
push edi
call fcn.00406680
mov esi, eax
test esi, esi
jl 0x406bc7
cmp dword [ebp + 0x14], 0
je 0x406ac9
mov eax, dword [ebp - 0x234]
push edi
mov ecx, ebx
mov dword [ebp + 0x14], eax
call fcn.0040477a
mov esi, eax
test esi, esi
jl 0x406bc7
push edi
mov ecx, ebx
call fcn.00404978
jmp 0x406ba8
cmp dword [ebp + 0x14], 0
jne 0x406bae
mov ebx, dword [ebp - 0x21c]
push dword [ebp - 0x220]
mov ecx, ebx
call fcn.004048ac
test eax, eax
je 0x406b03
push dword [ebp - 0x224]
mov ecx, ebx
call fcn.00404880
test eax, eax
je 0x406afc
push dword [ebp - 0x224]
lea ecx, [ebp - 0x220]
call fcn.004052ea
mov ecx, ebx
jmp 0x406ba2
cmp dword [ebp + 0x14], 0
jne 0x406bae
lea ecx, [ebp - 0x220]
call fcn.00404286
test eax, eax
jne 0x406bc2
cmp dword [ebp - 0x22c], eax
je 0x406b43
push dword [ebp - 0x224]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
and dword [ebp + 8], 0
lea ecx, [ebp + 8]
call fcn.00404286
mov ecx, dword [ebp - 0x21c]
push edi
call fcn.0040477a
mov esi, eax
test esi, esi
jl 0x406bc7
mov ecx, dword [ebp - 0x21c]
push edi
call fcn.00404978
mov esi, eax
test esi, esi
jl 0x406bc7
cmp dword [ebp + 0x10], 0
je 0x406bae
cmp word [edi], 0x7b
jne 0x406bae
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x406bae
mov ecx, dword [ebp - 0x21c]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x220]
push edi
call fcn.00406680
mov esi, eax
test esi, esi
jl 0x406bc7
mov ecx, dword [ebp - 0x21c]
push edi
call fcn.0040477a
mov esi, eax
test esi, esi
jl 0x406bc7
cmp word [edi], 0x7d
jne 0x4066dd
jmp 0x406bc7
lea ecx, [ebp + 8]
call fcn.00404286
mov esi, 0x80020009
lea ecx, [ebp - 0x220]
call fcn.00404286
lea ecx, [ebp - 0x230]
call fcn.00404dee
mov eax, esi
lea esp, [ebp - 0x240]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.00414165
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp eax, ebx
jle 0x406c0c
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
lea ecx, [ebp + 8]
call fcn.00404286
jmp 0x406bc7
mov esi, 0x8007000e
jmp 0x406bc7