Function at 0x406635
Capabilities:
Delete registry value

Disassembly:
push ebp
lea ebp, [esp - 0x220c]
mov eax, 0x220c
call fcn.00422df0
push 0xffffffffffffffff
push 0x4363ba
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x44e080]
xor eax, ebp
mov dword [ebp + 0x2208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 0x2218]
mov edi, dword [ebp + 0x2214]
mov dword [ebp - 0x10], ecx
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], ecx
mov ecx, eax
push edi
call fcn.004064dc
mov esi, eax
test esi, esi
js 0x406b3d
push 0x7d
pop eax
cmp word [edi], ax
je 0x406b3d
xor eax, eax
push str.Delete
inc eax
push edi
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push str.ForceRemove
sbb ebx, ebx
push edi
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4066e1
test ebx, ebx
je 0x406787
mov ecx, dword [ebp - 0x24]
push edi
call fcn.004064dc
mov esi, eax
test esi, esi
js 0x406b3d
xor esi, esi
cmp dword [ebp + 0x221c], esi
je 0x406789
push 0x5c
pop edx
mov ecx, edi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
call fcn.00405c7d
test eax, eax
jne 0x406b30
push edi
call fcn.004061c9
test eax, eax
je 0x406745
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x34]
push edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
call fcn.004062b4
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
test ebx, ebx
je 0x40677d
mov ebx, dword [ebp - 0x24]
mov ecx, ebx
push edi
call fcn.004064dc
mov esi, eax
test esi, esi
js 0x406b2b
push edi
mov ecx, ebx
call fcn.00406164
lea ecx, [ebp - 0x34]
mov esi, eax
call fcn.004063e8
test esi, esi
js 0x406b3d
jmp 0x406ae2
lea ecx, [ebp - 0x34]
call fcn.004063e8
jmp 0x406789
xor esi, esi
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ebx, dword [ebp - 0x24]
test eax, eax
jne 0x4067b1
push edi
mov ecx, ebx
mov dword [ebp - 0x28], esi
call fcn.004064dc
mov esi, eax
test esi, esi
js 0x406b3d
push 0x443944
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4068ac
lea eax, [ebp]
mov ecx, ebx
push eax
call fcn.004064dc
mov esi, eax
test esi, esi
js 0x406b3d
push edi
mov ecx, ebx
call fcn.004064dc
mov esi, eax
test esi, esi
js 0x406b3d
push 0x3d
pop eax
cmp word [edi], ax
jne 0x406b38
cmp dword [ebp + 0x221c], 0
je 0x40684a
xor eax, eax
mov ecx, ebx
inc eax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x10]
and dword [ebp - 0x40], 0
and dword [ebp - 0x3c], 0
mov dword [ebp - 0x44], eax
lea eax, [ebp]
push edi
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00405d68
mov esi, eax
lea ecx, [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
test esi, esi
js 0x406b78
mov byte [ebp - 4], al
call fcn.004063e8
jmp 0x406ae2
cmp dword [ebp + 0x2220], 0
jne 0x40689f
cmp dword [ebp - 0x28], 0
je 0x40689f
xor eax, eax
lea ecx, [ebp - 0x5c]
push 0x20006
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
call fcn.00406258
test eax, eax
jne 0x406b6c
lea eax, [ebp]
push eax
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x406897
cmp eax, 2
jne 0x406b6c
lea ecx, [ebp - 0x5c]
call fcn.004063e8
push edi
mov ecx, ebx
call fcn.00406164
jmp 0x40669c
push 0x5c
pop edx
mov ecx, edi
call fcn.00405c7d
test eax, eax
jne 0x406b38
cmp dword [ebp + 0x221c], eax
je 0x406937
mov esi, dword [ebp - 0x10]
lea ecx, [ebp - 0x20]
push 0x2001f
push edi
push esi
call fcn.00406258
test eax, eax
je 0x406904
push 0x20019
push edi
push esi
lea ecx, [ebp - 0x20]
call fcn.00406258
test eax, eax
je 0x406904
sub esp, 0x14
lea ecx, [ebp - 0x20]
push edi
push esi
call fcn.00405cb7
test eax, eax
jne 0x406a0e
push edi
mov ecx, ebx
call fcn.004064dc
mov esi, eax
test esi, esi
js 0x406b3d
push 0x3d
pop eax
cmp word [edi], ax
jne 0x406ae2
push edi
push 0
lea eax, [ebp - 0x20]
mov ecx, ebx
push eax
call fcn.00405d68
mov esi, eax
jmp 0x406770
cmp dword [ebp + 0x2220], 0
jne 0x406953
push 0x20019
push edi
push dword [ebp - 0x10]
lea ecx, [ebp - 0x20]
call fcn.00406258
jmp 0x406956
push 2
pop eax
mov ecx, dword [ebp + 0x2220]
test eax, eax
push 1
mov dword [ebp - 0x14], eax
pop eax
push 0xffffffffffffffff
cmovne ecx, eax
lea eax, [ebp + 0x2000]
push edi
push 0x104
push eax
mov dword [ebp - 0x38], ecx
call fcn.00428de5
push eax
call fcn.00402354
add esp, 0x14
mov ecx, ebx
push edi
call fcn.004064dc
mov esi, eax
test esi, esi
js 0x406b3d
push edi
mov ecx, ebx
call fcn.00406164
mov esi, eax
test esi, esi
js 0x406b3d
push 0x7b
pop eax
cmp word [edi], ax
jne 0x4069f1
push edi
call fcn.00425b9b
pop ecx
cmp eax, 1
jne 0x4069f1
push dword [ebp - 0x38]
mov ecx, ebx
push 0
push dword [ebp - 0x20]
push edi
call fcn.00406635
mov esi, eax
test esi, esi
jns 0x4069df
cmp dword [ebp - 0x38], 0
je 0x406b3d
push edi
mov ecx, ebx
call fcn.004064dc
mov esi, eax
test esi, esi
js 0x406b3d
mov eax, dword [ebp - 0x14]
cmp eax, 2
je 0x4066a6
test eax, eax
je 0x406a1c
cmp dword [ebp + 0x2220], 0
jne 0x4066a6
mov ecx, eax
call fcn.004064ce
mov esi, eax
jmp 0x406b3d
cmp dword [ebp + 0x2220], 0
je 0x406a63
push dword [ebp - 0x20]
call fcn.004063b3
test eax, eax
je 0x406a63
lea eax, [ebp + 0x2000]
push eax
call fcn.004061c9
test eax, eax
je 0x4066a6
cmp dword [ebp - 0x28], 0
je 0x4066a6
lea eax, [ebp + 0x2000]
push eax
lea ecx, [ebp - 0x20]
call fcn.004062b4
jmp 0x4066a6
push dword [ebp - 0x20]
call fcn.004063b3
mov ecx, dword [ebp - 0x20]
mov edx, eax
xor eax, eax
mov dword [ebp - 0x14], edx
test ecx, ecx
je 0x406a88
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x14]
xor ecx, ecx
mov dword [ebp - 0x20], ecx
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
test eax, eax
jne 0x406a0e
cmp dword [ebp - 0x28], ecx
je 0x4066a6
test edx, edx
jne 0x4066a6
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x50], eax
lea eax, [ebp + 0x2000]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], ecx
lea ecx, [ebp - 0x50]
push eax
call fcn.00406456
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x50]
xor eax, eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
call fcn.004063e8
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x406a0e
cmp dword [ebp + 0x221c], 0
je 0x4066a6
push 0x7b
pop eax
cmp word [edi], ax
jne 0x4066a6
push edi
call fcn.00425b9b
pop ecx
cmp eax, 1
jne 0x4066a6
push 0
push dword [ebp + 0x221c]
mov ecx, ebx
push dword [ebp - 0x20]
push edi
call fcn.00406635
mov esi, eax
test esi, esi
js 0x406b3d
mov ecx, ebx
jmp 0x406696
lea ecx, [ebp - 0x34]
jmp 0x406b78
lea ecx, [ebp - 0x34]
call fcn.004063e8
mov esi, 0x80020009
lea ecx, [ebp - 0x20]
call fcn.004063e8
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 + 0x2208]
xor ecx, ebp
call fcn.00421c45
add ebp, 0x220c
leave
ret 0x10
mov ecx, eax
call fcn.004064ce
mov esi, eax
lea ecx, [ebp - 0x5c]
call fcn.004063e8
jmp 0x406b3d