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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4283d5
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x458b30]
xor eax, esp
mov dword [esp + 0x430], eax
push ebx
push esi
push edi
mov eax, dword [0x458b30]
xor eax, esp
push eax
lea eax, [esp + 0x448]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
and dword [esp + 0x14], 0
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x14]
and dword [esp + 0x450], 0
mov dword [esp + 0x24], eax
jmp 0x406a3e
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.Delete
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 0x4065a3
test ebx, ebx
je 0x406639
mov ecx, dword [esp + 0x1c]
mov eax, edi
call fcn.004063fa
mov esi, eax
test esi, esi
jl 0x406aa7
cmp dword [ebp + 0x10], 0
je 0x406639
and dword [esp + 0x18], 0
push 0x5c
mov eax, edi
call fcn.0040627c
test eax, eax
pop ecx
jne 0x406a57
push edi
call fcn.00406fc7
test eax, eax
je 0x4065f6
mov eax, dword [esp + 0x20]
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
call fcn.00406ff3
and dword [esp + 0x18], 0
test ebx, ebx
je 0x406630
mov ecx, dword [esp + 0x1c]
mov eax, edi
call fcn.004063fa
mov esi, eax
test esi, esi
jl 0x406a67
mov ecx, dword [esp + 0x1c]
call fcn.00406f62
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.0040712c
test esi, esi
jl 0x406aa7
jmp 0x406a09
lea ecx, [esp + 0x18]
call fcn.0040712c
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x406662
and dword [esp + 0x10], eax
mov ecx, dword [esp + 0x1c]
mov eax, edi
call fcn.004063fa
mov esi, eax
test esi, esi
jl 0x406aa7
push 0x44f674
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40677b
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x234]
call fcn.004063fa
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x406aa7
mov ecx, dword [esp + 0x1c]
mov eax, edi
call fcn.004063fa
mov esi, eax
cmp esi, ebx
jl 0x406aa7
cmp word [edi], 0x3d
jne 0x406a60
cmp dword [ebp + 0x10], ebx
je 0x4066fa
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x450], 1
mov dword [esp + 0x10], eax
push edi
lea eax, [esp + 0x238]
push eax
lea edx, [esp + 0x18]
call fcn.00406ad8
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x10]
jl 0x406aa2
mov byte [esp + 0x450], bl
jmp 0x406a04
cmp dword [ebp + 0x14], ebx
jne 0x406769
cmp dword [esp + 0x10], ebx
je 0x406769
lea eax, [esp + 0x10]
push eax
push 0x20006
push ebx
push ebx
push dword [esp + 0x30]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x406a6d
lea ecx, [esp + 0x18]
call fcn.0040712c
cmp eax, ebx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], ecx
jne 0x406a6d
lea eax, [esp + 0x234]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
je 0x406760
cmp eax, 2
jne 0x406a6d
lea ecx, [esp + 0x18]
call fcn.0040712c
mov ecx, dword [esp + 0x1c]
call fcn.00406f62
mov esi, eax
cmp esi, ebx
jmp 0x406a49
push 0x5c
mov eax, edi
call fcn.0040627c
test eax, eax
pop ecx
jne 0x406a60
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x40687b
lea eax, [esp + 0x10]
push eax
push 0x2001f
push esi
push edi
push dword [esp + 0x30]
mov dword [esp + 0x24], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
call esi
xor ebx, ebx
cmp eax, ebx
jne 0x4067cf
lea ecx, [esp + 0x14]
call fcn.0040712c
cmp eax, ebx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
je 0x406845
lea eax, [esp + 0x10]
push eax
push 0x20019
push ebx
push edi
push dword [esp + 0x30]
mov dword [esp + 0x24], ebx
call esi
cmp eax, ebx
jne 0x4067fe
lea ecx, [esp + 0x14]
call fcn.0040712c
cmp eax, ebx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
je 0x406845
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x14]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push edi
push dword [esp + 0x40]
mov dword [esp + 0x34], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
cmp esi, ebx
jne 0x406a78
lea ecx, [esp + 0x14]
call fcn.0040712c
mov esi, eax
cmp esi, ebx
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
jne 0x406a78
mov ecx, dword [esp + 0x1c]
mov eax, edi
call fcn.004063fa
mov esi, eax
test esi, esi
jl 0x406aa7
cmp word [edi], 0x3d
jne 0x406a09
mov ecx, dword [esp + 0x1c]
push edi
push 0
lea edx, [esp + 0x1c]
call fcn.00406ad8
mov esi, eax
jmp 0x406623
cmp dword [ebp + 0x14], esi
jne 0x4068b3
lea eax, [esp + 0x18]
push eax
push 0x20019
push esi
push edi
push dword [esp + 0x30]
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x4068af
lea ecx, [esp + 0x14]
call fcn.0040712c
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], ecx
mov ebx, eax
jmp 0x4068b6
push 2
pop ebx
cmp ebx, esi
je 0x4068c1
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x34]
push 0x104
push eax
call fcn.0041652d
push eax
call fcn.00405cef
mov ecx, dword [esp + 0x30]
add esp, 0x14
mov eax, edi
call fcn.004063fa
mov esi, eax
test esi, esi
jl 0x406aa7
mov ecx, dword [esp + 0x1c]
call fcn.00406f62
mov esi, eax
test esi, esi
jl 0x406aa7
cmp word [edi], 0x7b
jne 0x40694e
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40694e
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x20]
push 0
push dword [esp + 0x1c]
push edi
call fcn.0040650b
mov esi, eax
test esi, esi
jge 0x406939
cmp dword [ebp + 0x14], 0
je 0x406aa7
mov ecx, dword [esp + 0x1c]
mov eax, edi
call fcn.004063fa
mov esi, eax
test esi, esi
jl 0x406aa7
cmp ebx, 2
mov eax, dword [esp + 0x24]
mov dword [ebp + 0x14], eax
je 0x406a4b
test ebx, ebx
je 0x406978
test eax, eax
jne 0x406a4b
mov eax, ebx
call fcn.00407143
mov esi, eax
jmp 0x406aa7
test eax, eax
je 0x4069b9
push dword [esp + 0x14]
call fcn.004070f7
test eax, eax
je 0x4069b9
lea eax, [esp + 0x2c]
push eax
call fcn.00406fc7
test eax, eax
je 0x406a4b
cmp dword [esp + 0x10], 0
je 0x406a4b
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x18]
call fcn.00406ff3
jmp 0x406a4b
push dword [esp + 0x14]
call fcn.004070f7
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], eax
call fcn.0040712c
mov ebx, eax
test ebx, ebx
jne 0x406a8a
cmp dword [esp + 0x10], eax
je 0x406a4b
cmp dword [esp + 0x18], eax
jne 0x406a4b
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
and dword [esp + 0x10], ebx
test eax, eax
jne 0x406a97
lea ecx, [esp + 0x10]
call fcn.0040712c
cmp dword [ebp + 0x10], 0
je 0x406a4b
cmp word [edi], 0x7b
jne 0x406a4b
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x406a4b
mov ecx, dword [esp + 0x1c]
push 0
push dword [ebp + 0x10]
push dword [esp + 0x1c]
push edi
call fcn.0040650b
mov esi, eax
test esi, esi
jl 0x406aa7
mov ecx, dword [esp + 0x1c]
mov eax, edi
call fcn.004063fa
mov esi, eax
test esi, esi
jl 0x406aa7
cmp word [edi], 0x7d
jne 0x406572
jmp 0x406aa7
lea ecx, [esp + 0x18]
call fcn.0040712c
mov esi, 0x80020009
jmp 0x406aa7
lea ecx, [esp + 0x18]
jmp 0x406aa2
call fcn.00407143
lea ecx, [esp + 0x18]
jmp 0x406aa0
lea ecx, [esp + 0x14]
call fcn.0040712c
mov eax, esi
call fcn.00407143
jmp 0x406ab2
lea ecx, [esp + 0x14]
call fcn.0040712c
mov eax, ebx
jmp 0x406a83
call fcn.00407143
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.0040712c
lea ecx, [esp + 0x14]
call fcn.0040712c
mov eax, esi
mov ecx, dword [esp + 0x448]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x430]
xor ecx, esp
call fcn.00414511
mov esp, ebp
pop ebp
ret 0x10