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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2254
call fcn.0047e270
mov eax, dword [0x4c4cc0]
xor eax, esp
mov dword [esp + 0x2250], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x14]
push esi
push edi
xor edi, edi
mov dword [esp + 0x34], eax
mov eax, ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
call fcn.004067bc
mov esi, eax
cmp esi, edi
jl 0x406d30
cmp word [ebx], 0x7d
je 0x406d2e
mov esi, dword [0x4a606c]
push str.Delete
push ebx
mov dword [esp + 0x2c], 1
call esi
neg eax
push str.ForceRemove
sbb edi, edi
push ebx
inc edi
call esi
test eax, eax
je 0x406970
test edi, edi
je 0x406a6c
mov ecx, dword [esp + 0xc]
mov eax, ebx
call fcn.004067bc
mov esi, eax
test esi, esi
js 0x406d1d
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x406a6c
push 0x5c
mov eax, ebx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
call fcn.00405f5e
pop ecx
test eax, eax
jne 0x406de8
push ebx
call fcn.004064fd
test eax, eax
je 0x4069de
mov eax, dword [esp + 0x1c]
push ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
call fcn.004065d2
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
cmp edi, esi
je 0x406a68
mov ecx, dword [esp + 0xc]
mov eax, ebx
call fcn.004067bc
mov esi, eax
test esi, esi
js 0x406d1d
mov ecx, dword [esp + 0xc]
mov edi, ebx
call fcn.004064a0
mov esi, eax
test esi, esi
js 0x406d1d
and dword [esp + 0x2c], 0
cmp word [ebx], 0x7b
jne 0x406a59
push ebx
call dword [0x4a6060]
cmp eax, 1
jne 0x406a59
mov ecx, dword [esp + 0xc]
push 0
push dword [ebp + 0x10]
push dword [esp + 0x18]
push ebx
call fcn.004068e2
mov esi, eax
test esi, esi
js 0x406d1d
mov ecx, dword [esp + 0xc]
mov eax, ebx
call fcn.004067bc
mov esi, eax
test esi, esi
js 0x406d1d
cmp word [ebx], 0x7d
jne 0x406941
jmp 0x406d1d
mov dword [esp + 0x2c], esi
push str.NoRemove
push ebx
call dword [0x4a606c]
test eax, eax
jne 0x406a95
and dword [esp + 0x24], eax
mov ecx, dword [esp + 0xc]
mov eax, ebx
call fcn.004067bc
mov esi, eax
test esi, esi
js 0x406d1d
push 0x4b27a8
push ebx
call dword [0x4a606c]
test eax, eax
jne 0x406ba5
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x258]
call fcn.004067bc
mov esi, eax
test esi, esi
js 0x406d1d
mov ecx, dword [esp + 0xc]
mov eax, ebx
call fcn.004067bc
mov esi, eax
test esi, esi
js 0x406d1d
cmp word [ebx], 0x3d
jne 0x406e02
xor edi, edi
cmp dword [ebp + 0x10], edi
je 0x406b2e
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x44], eax
push ebx
lea eax, [esp + 0x25c]
push eax
lea edx, [esp + 0x4c]
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
call fcn.0040610f
mov esi, eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
cmp esi, edi
jl 0x406e43
mov dword [esp + 0x48], edi
jmp 0x406a15
cmp dword [ebp + 0x14], edi
jne 0x406b95
cmp dword [esp + 0x24], edi
je 0x406b95
xor esi, esi
push 0x20006
push esi
push dword [esp + 0x24]
lea edi, [esp + 0x44]
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
call fcn.0040658b
cmp eax, esi
jne 0x406e1b
mov edi, dword [esp + 0x38]
lea eax, [esp + 0x258]
push eax
push edi
call dword [0x4a6008]
cmp eax, esi
je 0x406b82
cmp eax, 2
jne 0x406e09
cmp edi, esi
je 0x406b91
push edi
call dword [0x4a6020]
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov ecx, dword [esp + 0xc]
mov edi, ebx
call fcn.004064a0
jmp 0x406a4f
push 0x5c
mov eax, ebx
call fcn.00405f5e
pop ecx
test eax, eax
jne 0x406e02
cmp dword [ebp + 0x10], eax
je 0x406c38
push 0x2001f
push ebx
push dword [esp + 0x24]
lea edi, [esp + 0x1c]
call fcn.0040658b
test eax, eax
je 0x406bfa
push 0x20019
push ebx
push dword [esp + 0x24]
call fcn.0040658b
test eax, eax
je 0x406bfa
push ebx
push dword [esp + 0x20]
mov eax, edi
call fcn.00405ff7
test eax, eax
jne 0x406d16
mov ecx, dword [esp + 0xc]
mov eax, ebx
call fcn.004067bc
mov esi, eax
test esi, esi
js 0x406d1d
cmp word [ebx], 0x3d
jne 0x406a15
mov ecx, dword [esp + 0xc]
push ebx
push 0
lea edx, [esp + 0x18]
call fcn.0040610f
mov esi, eax
test esi, esi
js 0x406d1d
jmp 0x406a15
cmp dword [ebp + 0x14], 0
jne 0x406c57
push 0x20019
push ebx
push dword [esp + 0x24]
lea edi, [esp + 0x1c]
call fcn.0040658b
mov dword [esp + 0x20], eax
jmp 0x406c5f
mov dword [esp + 0x20], 2
cmp dword [esp + 0x20], 0
je 0x406c6d
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x58]
push 0x104
push eax
call fcn.00479aa4
push eax
call fcn.00402343
mov ecx, dword [esp + 0x20]
add esp, 0x14
mov eax, ebx
call fcn.004067bc
mov esi, eax
test esi, esi
js 0x406d1d
mov ecx, dword [esp + 0xc]
mov edi, ebx
call fcn.004064a0
mov esi, eax
test esi, esi
js 0x406d1d
cmp word [ebx], 0x7b
jne 0x406cf0
push ebx
call dword [0x4a6060]
cmp eax, 1
jne 0x406cf0
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x10]
push 0
push dword [esp + 0x18]
push ebx
call fcn.004068e2
mov esi, eax
test esi, esi
jns 0x406cdf
cmp dword [ebp + 0x14], 0
je 0x406d1d
mov ecx, dword [esp + 0xc]
mov eax, ebx
call fcn.004067bc
mov esi, eax
test esi, esi
js 0x406d1d
cmp dword [esp + 0x20], 2
mov eax, dword [esp + 0x34]
mov dword [ebp + 0x14], eax
je 0x406a59
mov eax, dword [esp + 0x20]
xor edi, edi
cmp eax, edi
je 0x406d47
cmp dword [esp + 0x34], edi
jne 0x406a59
call fcn.004067ad
mov esi, eax
cmp dword [esp + 0x10], 0
je 0x406d2e
push dword [esp + 0x10]
call dword [0x4a6020]
mov eax, esi
mov ecx, dword [esp + 0x225c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00478b4c
mov esp, ebp
pop ebp
ret 0x10
cmp dword [esp + 0x34], edi
je 0x406d89
push dword [esp + 0x10]
call fcn.00406714
test eax, eax
je 0x406d89
lea eax, [esp + 0x50]
push eax
call fcn.004064fd
test eax, eax
je 0x406a59
cmp dword [esp + 0x24], edi
je 0x406a59
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x14]
call fcn.004065d2
jmp 0x406a59
push dword [esp + 0x10]
call fcn.00406714
mov dword [esp + 0x20], eax
xor eax, eax
cmp dword [esp + 0x10], edi
je 0x406dac
push dword [esp + 0x10]
call dword [0x4a6020]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
cmp eax, edi
jne 0x406e3c
cmp dword [esp + 0x24], edi
je 0x406a59
cmp dword [esp + 0x20], edi
jne 0x406a59
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x20]
call dword [0x4a6024]
test eax, eax
jne 0x406d16
jmp 0x406a59
cmp dword [esp + 0x10], esi
je 0x406df8
push dword [esp + 0x10]
call dword [0x4a6020]
mov eax, 0x80020009
jmp 0x406d30
cmp dword [esp + 0x10], 0
jmp 0x406dec
call fcn.004067ad
mov esi, eax
test edi, edi
je 0x406d1d
push edi
jmp 0x406e31
call fcn.004067ad
cmp dword [esp + 0x38], 0
mov esi, eax
je 0x406d1d
push dword [esp + 0x38]
call dword [0x4a6020]
jmp 0x406d1d
call fcn.004067ad
mov esi, eax
cmp dword [esp + 0x10], edi
jmp 0x406d22