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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ebdeb
mov eax, dword fs:[0]
push eax
mov eax, 0x224c
call fcn.0045c6a0
mov eax, dword [0x53e01c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x221c], eax
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2224], ecx
mov dword [ebp - 0x2230], 0
mov dword [ebp - 0x222c], 0
mov dword [ebp - 0x2228], 0
push edi
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00406620
mov esi, eax
test esi, esi
js 0x406ee9
cmp word [edi], 0x7d
je 0x406ed6
nop word [eax + eax]
push str.Delete
push edi
mov dword [ebp - 0x2234], 1
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 0x4068a3
test ebx, ebx
je 0x4069a5
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00406620
mov esi, eax
test esi, esi
js 0x406ed6
cmp dword [ebp + 0x10], 0
je 0x4069a5
movzx ecx, word [edi]
mov eax, edi
mov dword [ebp - 0x2240], 0
mov dword [ebp - 0x2238], 0
test cx, cx
je 0x406904
mov edx, ecx
cmp dx, 0x5c
je 0x4068fc
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
mov edx, ecx
test cx, cx
jne 0x4068e3
jmp 0x406904
test eax, eax
jne 0x406ec6
mov esi, 0x5298a0
nop dword [eax]
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40695e
add esi, 4
cmp esi, str.RegOpenKeyTransactedW
jl 0x406910
mov eax, dword [ebp - 0x2224]
lea ecx, [ebp - 0x2240]
push edi
mov dword [ebp - 0x2240], eax
mov dword [ebp - 0x223c], 0
call fcn.00406480
mov dword [ebp - 0x2240], 0
mov dword [ebp - 0x2238], 0
test ebx, ebx
je 0x40699b
mov ebx, dword [ebp - 0x221c]
mov ecx, ebx
push edi
call fcn.00406620
mov esi, eax
test esi, esi
js 0x406ed6
push edi
mov ecx, ebx
call fcn.00406360
mov esi, eax
test esi, esi
js 0x406ed6
mov dword [ebp - 0x223c], 0
jmp 0x406c04
mov dword [ebp - 0x223c], 0
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ebx, dword [ebp - 0x221c]
test eax, eax
jne 0x4069d3
push edi
mov ecx, ebx
mov dword [ebp - 0x2234], eax
call fcn.00406620
mov esi, eax
test esi, esi
js 0x406ed6
push 0x529794
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x406b48
lea eax, [ebp - 0x2218]
mov ecx, ebx
push eax
call fcn.00406620
mov esi, eax
test esi, esi
js 0x406ed6
push edi
mov ecx, ebx
call fcn.00406620
mov esi, eax
test esi, esi
js 0x406ed6
cmp word [edi], 0x3d
jne 0x406ec6
cmp dword [ebp + 0x10], 0
je 0x406a96
mov eax, dword [ebp - 0x2224]
mov ecx, ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x224c], eax
lea eax, [ebp - 0x2218]
push edi
push eax
lea eax, [ebp - 0x224c]
mov dword [ebp - 0x2248], 0
push eax
mov dword [ebp - 0x2244], 0
call fcn.00405db0
mov esi, eax
mov dword [ebp - 0x224c], 0
mov dword [ebp - 0x2248], 0
mov dword [ebp - 0x2244], 0
test esi, esi
js 0x406ed6
mov byte [ebp - 4], 0
mov dword [ebp - 0x2248], 0
jmp 0x406c04
cmp dword [ebp + 0x14], 0
jne 0x406b31
cmp dword [ebp - 0x2234], 0
je 0x406b31
push 0x20006
push 0
push dword [ebp - 0x2224]
lea ecx, [ebp - 0x2258]
mov dword [ebp - 0x2258], 0
mov dword [ebp - 0x2254], 0
mov dword [ebp - 0x2250], 0
call fcn.004063d0
test eax, eax
jne 0x406eaa
mov ebx, dword [ebp - 0x2258]
lea eax, [ebp - 0x2218]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x406b0c
cmp eax, 2
jne 0x406e94
test ebx, ebx
je 0x406b21
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2258], 0
mov ebx, dword [ebp - 0x221c]
mov dword [ebp - 0x2254], 0
push edi
mov ecx, ebx
call fcn.00406360
mov esi, eax
test esi, esi
js 0x406ed6
jmp 0x406e88
movzx ecx, word [edi]
mov eax, edi
test cx, cx
je 0x406b75
mov edx, ecx
cmp dx, 0x5c
je 0x406b6d
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
mov edx, ecx
test cx, cx
jne 0x406b54
jmp 0x406b75
test eax, eax
jne 0x406ec6
cmp dword [ebp + 0x10], 0
je 0x406c5f
mov esi, dword [ebp - 0x2224]
lea ecx, [ebp - 0x2230]
push 0x2001f
push edi
push esi
call fcn.004063d0
test eax, eax
je 0x406bd1
push 0x20019
push edi
push esi
lea ecx, [ebp - 0x2230]
call fcn.004063d0
test eax, eax
je 0x406bd1
sub esp, 8
lea ecx, [ebp - 0x2230]
push 0x2001f
sub esp, 8
push edi
push esi
call fcn.00405cc0
test eax, eax
jne 0x406ecd
push edi
mov ecx, ebx
call fcn.00406620
mov esi, eax
test esi, esi
js 0x406ed6
cmp word [edi], 0x3d
jne 0x406c04
push edi
push 0
lea eax, [ebp - 0x2230]
mov ecx, ebx
push eax
call fcn.00405db0
mov esi, eax
test esi, esi
js 0x406ed6
cmp word [edi], 0x7b
jne 0x406e88
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406c13
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x406e88
push 0
push dword [ebp + 0x10]
mov ecx, ebx
push dword [ebp - 0x2230]
push edi
call fcn.004067e0
mov esi, eax
test esi, esi
js 0x406ed6
push edi
mov ecx, ebx
call fcn.00406620
mov esi, eax
test esi, esi
js 0x406ed6
jmp 0x406e88
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x406c81
push 0x20019
push edi
push dword [ebp - 0x2224]
lea ecx, [ebp - 0x2230]
call fcn.004063d0
mov ebx, eax
jmp 0x406c86
mov ebx, 2
test ebx, ebx
mov eax, 1
push 0xffffffffffffffff
cmove eax, esi
push edi
mov dword [ebp - 0x2220], eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004c1f2e
push eax
call fcn.004062c0
mov ecx, dword [ebp - 0x221c]
add esp, 0x14
push edi
call fcn.00406620
mov esi, eax
test esi, esi
js 0x406ed6
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00406360
mov esi, eax
test esi, esi
js 0x406ed6
cmp word [edi], 0x7b
jne 0x406d47
mov ecx, edi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406cf0
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x406d47
push dword [ebp - 0x2220]
mov ecx, dword [ebp - 0x221c]
push 0
push dword [ebp - 0x2230]
push edi
call fcn.004067e0
mov esi, eax
test esi, esi
jns 0x406d31
cmp dword [ebp - 0x2220], 0
je 0x406ed6
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00406620
mov esi, eax
test esi, esi
js 0x406ed6
cmp ebx, 2
je 0x406e88
test ebx, ebx
je 0x406d65
cmp dword [ebp + 0x14], 0
jne 0x406e88
mov ecx, ebx
jmp 0x406ecf
cmp dword [ebp + 0x14], 0
je 0x406df7
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x2220]
mov dword [ebp - 0x2220], 0
push eax
push 0
push 0
push 0
push dword [ebp - 0x2230]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x406df7
cmp dword [ebp - 0x2220], eax
jbe 0x406df7
mov ebx, 0x5298a0
push dword [ebx]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x406e88
add ebx, 4
cmp ebx, str.RegOpenKeyTransactedW
jl 0x406db1
cmp dword [ebp - 0x2234], 0
je 0x406e88
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2230]
call fcn.00406480
jmp 0x406e88
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x2220]
mov dword [ebp - 0x2220], 0
push eax
push 0
push 0
push 0
push dword [ebp - 0x2230]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x406e30
xor ebx, ebx
jmp 0x406e3c
xor eax, eax
cmp eax, dword [ebp - 0x2220]
sbb ebx, ebx
neg ebx
mov ecx, dword [ebp - 0x2230]
xor eax, eax
test ecx, ecx
je 0x406e57
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [ebp - 0x2230], ecx
mov dword [ebp - 0x222c], 0
test eax, eax
jne 0x406ecd
cmp dword [ebp - 0x2234], eax
je 0x406e88
test ebx, ebx
jne 0x406e88
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x2224]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x406ecd
cmp word [edi], 0x7d
jne 0x406870
jmp 0x406ed6
mov ecx, eax
call fcn.00406610
mov esi, eax
test ebx, ebx
je 0x406ed6
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x406ed6
mov ecx, eax
call fcn.00406610
mov esi, eax
mov eax, dword [ebp - 0x2258]
test eax, eax
je 0x406ed6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x406ed6
mov esi, 0x80020009
jmp 0x406ed6
mov ecx, eax
call fcn.00406610
mov esi, eax
mov eax, dword [ebp - 0x2230]
test eax, eax
je 0x406ee7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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 - 0x10]
xor ecx, ebp
call fcn.0045b5b0
mov esp, ebp
pop ebp
ret 0x10