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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a6791
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x428
and dword [esp], 0
push ebx
push esi
push edi
mov dword [esp + 0x10], ecx
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
and dword [esp + 0x43c], 0
mov dword [esp + 0x1c], eax
mov eax, ebx
call fcn.00467524
mov esi, eax
test esi, esi
jl 0x467aa9
cmp word [ebx], 0x7d
je 0x467aa7
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.Delete
push ebx
mov dword [esp + 0x1c], 1
call esi
mov edi, eax
neg edi
push str.ForceRemove
sbb edi, edi
push ebx
inc edi
call esi
test eax, eax
je 0x4676bf
test edi, edi
je 0x46778d
mov ecx, dword [esp + 0x10]
mov eax, ebx
call fcn.00467524
mov esi, eax
test esi, esi
jl 0x467a96
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x46778f
push 0x5c
mov eax, ebx
call fcn.004673b3
test eax, eax
pop ecx
jne 0x467b56
push ebx
call fcn.0046801c
test eax, eax
je 0x46770c
mov eax, dword [ebp + 0xc]
push ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
call fcn.00468048
cmp edi, esi
je 0x46778f
mov ecx, dword [esp + 0x10]
mov eax, ebx
call fcn.00467524
mov esi, eax
test esi, esi
jl 0x467a96
mov ecx, dword [esp + 0x10]
mov edi, ebx
call fcn.00467fd3
mov esi, eax
test esi, esi
jl 0x467a96
cmp word [ebx], 0x7b
jne 0x46777e
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x46777e
mov ecx, dword [esp + 0x10]
push 0
push dword [ebp + 0x10]
push dword [esp + 0x14]
push ebx
call fcn.00467635
mov esi, eax
test esi, esi
jl 0x467a96
mov ecx, dword [esp + 0x10]
mov eax, ebx
call fcn.00467524
mov esi, eax
test esi, esi
jl 0x467a96
cmp word [ebx], 0x7d
jne 0x46768e
jmp 0x467a96
xor esi, esi
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4677ba
and dword [esp + 0x14], eax
mov ecx, dword [esp + 0x10]
mov eax, ebx
call fcn.00467524
mov esi, eax
test esi, esi
jl 0x467a96
xor esi, esi
push 0x4b8bc0
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4678b2
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x228]
call fcn.00467524
mov esi, eax
test esi, esi
jl 0x467a96
mov ecx, dword [esp + 0x10]
mov eax, ebx
call fcn.00467524
mov esi, eax
test esi, esi
jl 0x467a96
cmp word [ebx], 0x3d
jne 0x467b70
xor edi, edi
cmp dword [ebp + 0x10], edi
je 0x46784b
mov eax, dword [ebp + 0xc]
mov byte [esp + 0x43c], 1
mov dword [esp + 0x14], eax
push ebx
lea eax, [esp + 0x22c]
push eax
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x1c]
call fcn.00467ba5
mov esi, eax
cmp esi, edi
jl 0x467b77
mov byte [esp + 0x43c], 0
jmp 0x46773a
cmp dword [ebp + 0x14], edi
jne 0x4678a2
cmp dword [esp + 0x14], edi
je 0x4678a2
lea eax, [esp + 0x14]
push eax
push 0x20006
push edi
push edi
push dword [ebp + 0xc]
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x467a8f
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x228]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x467897
cmp eax, 2
jne 0x467b80
test edi, edi
je 0x4678a2
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x10]
mov edi, ebx
call fcn.00467fd3
jmp 0x467774
push 0x5c
mov eax, ebx
call fcn.004673b3
test eax, eax
pop ecx
jne 0x467b56
cmp dword [ebp + 0x10], esi
je 0x46798f
lea eax, [esp + 0x14]
push eax
push 0x2001f
push esi
push ebx
push dword [ebp + 0xc]
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x46790a
xor eax, eax
cmp dword [esp + 0xc], esi
je 0x4678fc
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xc], ecx
je 0x46795a
xor esi, esi
lea eax, [esp + 0x14]
push eax
push 0x20019
push esi
push ebx
push dword [ebp + 0xc]
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x467945
xor eax, eax
cmp dword [esp + 0xc], esi
je 0x467939
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xc], ecx
je 0x46795a
push ebx
push dword [ebp + 0xc]
lea esi, [esp + 0x14]
call fcn.0042b3da
test eax, eax
jne 0x467a8f
mov ecx, dword [esp + 0x10]
mov eax, ebx
call fcn.00467524
mov esi, eax
test esi, esi
jl 0x467a96
cmp word [ebx], 0x3d
jne 0x46773a
push ebx
push 0
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x1c]
call fcn.00467ba5
jmp 0x467730
cmp dword [ebp + 0x14], esi
jne 0x4679d1
lea eax, [esp + 0x18]
push eax
push 0x20019
push esi
push ebx
push dword [ebp + 0xc]
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x4679cb
xor eax, eax
cmp dword [esp + 0xc], esi
je 0x4679c3
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x18], eax
jmp 0x4679d9
mov dword [esp + 0x18], 2
cmp dword [esp + 0x18], esi
je 0x4679e6
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x28]
push 0x104
push eax
call fcn.0048ec5a
push eax
call fcn.00405db4
mov ecx, dword [esp + 0x24]
add esp, 0x14
mov eax, ebx
call fcn.00467524
mov esi, eax
test esi, esi
jl 0x467a96
mov ecx, dword [esp + 0x10]
mov edi, ebx
call fcn.00467fd3
mov esi, eax
test esi, esi
jl 0x467a96
cmp word [ebx], 0x7b
jne 0x467a69
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x467a69
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x14]
push 0
push dword [esp + 0x14]
push ebx
call fcn.00467635
mov esi, eax
test esi, esi
jge 0x467a58
cmp dword [ebp + 0x14], 0
je 0x467a96
mov ecx, dword [esp + 0x10]
mov eax, ebx
call fcn.00467524
mov esi, eax
test esi, esi
jl 0x467a96
cmp dword [esp + 0x18], 2
mov eax, dword [esp + 0x1c]
mov dword [ebp + 0x14], eax
je 0x46777e
mov eax, dword [esp + 0x18]
xor edi, edi
cmp eax, edi
je 0x467ac0
cmp dword [esp + 0x1c], edi
jne 0x46777e
call fcn.004685f5
mov esi, eax
cmp dword [esp + 0xc], 0
je 0x467aa7
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x434]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [esp + 0x1c], edi
je 0x467b02
push dword [esp + 0xc]
call fcn.00468131
test eax, eax
je 0x467b02
lea eax, [esp + 0x20]
push eax
call fcn.0046801c
test eax, eax
je 0x46777e
cmp dword [esp + 0x14], edi
je 0x46777e
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x10]
call fcn.00468048
jmp 0x46777e
push dword [esp + 0xc]
call fcn.00468131
cmp dword [esp + 0xc], edi
mov dword [esp + 0x18], eax
je 0x467b27
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, edi
mov dword [esp + 0xc], edi
jne 0x467b9b
cmp dword [esp + 0x14], edi
je 0x46777e
cmp dword [esp + 0x18], edi
jne 0x46777e
lea eax, [esp + 0x20]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x467a8f
jmp 0x46777e
cmp dword [esp + 0xc], esi
je 0x467b66
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x467aa9
cmp dword [esp + 0xc], 0
jmp 0x467b5a
cmp dword [esp + 0xc], edi
jmp 0x467a9b
call fcn.004685f5
test edi, edi
mov esi, eax
je 0x467a96
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x467a96
call fcn.004685f5
jmp 0x467aa9