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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d0206
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 edi, dword [ebp + 8]
and dword [esp + 0x43c], 0
mov dword [esp + 0x1c], eax
mov eax, edi
call fcn.004679ec
mov esi, eax
test esi, esi
jl 0x467ef3
cmp word [edi], 0x7d
je 0x467ef1
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
push str.Delete
push edi
mov dword [esp + 0x1c], 1
call esi
mov ebx, eax
neg ebx
push str.ForceRemove
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x467b87
test ebx, ebx
je 0x467c52
mov ecx, dword [esp + 0x10]
mov eax, edi
call fcn.004679ec
mov esi, eax
test esi, esi
jl 0x467ee0
cmp dword [ebp + 0x10], 0
je 0x467c52
push 0x5c
mov eax, edi
call fcn.0046787b
test eax, eax
pop ecx
jne 0x467fa4
push edi
call fcn.00468488
test eax, eax
je 0x467bd3
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
call fcn.004684b4
test ebx, ebx
je 0x467c52
mov ecx, dword [esp + 0x10]
mov eax, edi
call fcn.004679ec
mov esi, eax
test esi, esi
jl 0x467ee0
mov ecx, dword [esp + 0x10]
call fcn.0046843f
mov esi, eax
test esi, esi
jl 0x467ee0
cmp word [edi], 0x7b
jne 0x467c43
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
cmp eax, 1
jne 0x467c43
mov ecx, dword [esp + 0x10]
push 0
push dword [ebp + 0x10]
push dword [esp + 0x14]
push edi
call fcn.00467afd
mov esi, eax
test esi, esi
jl 0x467ee0
mov ecx, dword [esp + 0x10]
mov eax, edi
call fcn.004679ec
mov esi, eax
test esi, esi
jl 0x467ee0
cmp word [edi], 0x7d
jne 0x467b56
jmp 0x467ee0
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x467c7b
and dword [esp + 0x14], eax
mov ecx, dword [esp + 0x10]
mov eax, edi
call fcn.004679ec
mov esi, eax
test esi, esi
jl 0x467ee0
push 0x4e6e04
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x467d73
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x228]
call fcn.004679ec
mov esi, eax
test esi, esi
jl 0x467ee0
mov ecx, dword [esp + 0x10]
mov eax, edi
call fcn.004679ec
mov esi, eax
test esi, esi
jl 0x467ee0
cmp word [edi], 0x3d
jne 0x467fa4
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x467d0b
mov eax, dword [ebp + 0xc]
mov byte [esp + 0x43c], 1
mov dword [esp + 0x14], eax
push edi
lea eax, [esp + 0x22c]
push eax
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x1c]
call fcn.00468004
mov esi, eax
cmp esi, ebx
jl 0x467fbf
mov byte [esp + 0x43c], bl
jmp 0x467bff
cmp dword [ebp + 0x14], ebx
jne 0x467d61
cmp dword [esp + 0x14], ebx
je 0x467d61
push 0x20006
push ebx
push dword [ebp + 0xc]
lea eax, [esp + 0x20]
mov dword [esp + 0x20], ebx
call fcn.00433728
cmp eax, ebx
jne 0x467fe3
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x228]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x467d54
cmp eax, 2
jne 0x467fc8
test ebx, ebx
je 0x467d5f
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov ecx, dword [esp + 0x10]
call fcn.0046843f
mov esi, eax
cmp esi, ebx
jmp 0x467c3d
push 0x5c
mov eax, edi
call fcn.0046787b
test eax, eax
pop ecx
jne 0x467fa4
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x467e04
mov esi, 0x2001f
push esi
push edi
push dword [ebp + 0xc]
lea eax, [esp + 0x18]
call fcn.00433728
test eax, eax
je 0x467dcf
push 0x20019
push edi
push dword [ebp + 0xc]
lea eax, [esp + 0x18]
call fcn.00433728
test eax, eax
je 0x467dcf
push esi
push edi
push dword [ebp + 0xc]
lea eax, [esp + 0x18]
call fcn.00455caf
test eax, eax
jne 0x467ed9
mov ecx, dword [esp + 0x10]
mov eax, edi
call fcn.004679ec
mov esi, eax
test esi, esi
jl 0x467ee0
cmp word [edi], 0x3d
jne 0x467bff
push edi
push 0
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x1c]
call fcn.00468004
jmp 0x467bf5
cmp dword [ebp + 0x14], esi
jne 0x467e21
push 0x20019
push edi
push dword [ebp + 0xc]
lea eax, [esp + 0x18]
call fcn.00433728
mov dword [esp + 0x18], eax
jmp 0x467e29
mov dword [esp + 0x18], 2
cmp dword [esp + 0x18], esi
je 0x467e36
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x28]
push 0x104
push eax
call fcn.0048f23a
push eax
call fcn.00408455
mov ecx, dword [esp + 0x24]
add esp, 0x14
mov eax, edi
call fcn.004679ec
mov esi, eax
test esi, esi
jl 0x467ee0
mov ecx, dword [esp + 0x10]
call fcn.0046843f
mov esi, eax
test esi, esi
jl 0x467ee0
cmp word [edi], 0x7b
jne 0x467eb3
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
cmp eax, 1
jne 0x467eb3
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x14]
push 0
push dword [esp + 0x14]
push edi
call fcn.00467afd
mov esi, eax
test esi, esi
jge 0x467ea2
cmp dword [ebp + 0x14], 0
je 0x467ee0
mov ecx, dword [esp + 0x10]
mov eax, edi
call fcn.004679ec
mov esi, eax
test esi, esi
jl 0x467ee0
cmp dword [esp + 0x18], 2
mov eax, dword [esp + 0x1c]
mov dword [ebp + 0x14], eax
je 0x467c43
xor ebx, ebx
cmp dword [esp + 0x18], ebx
je 0x467f0a
cmp eax, ebx
jne 0x467c43
mov eax, dword [esp + 0x18]
call fcn.00468a3c
mov esi, eax
cmp dword [esp + 0xc], 0
je 0x467ef1
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 eax, ebx
je 0x467f4b
push dword [esp + 0xc]
call fcn.00468578
test eax, eax
je 0x467f4b
lea eax, [esp + 0x20]
push eax
call fcn.00468488
test eax, eax
je 0x467c43
cmp dword [esp + 0x14], 0
je 0x467c43
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x10]
call fcn.004684b4
jmp 0x467c43
push dword [esp + 0xc]
call fcn.00468578
cmp dword [esp + 0xc], ebx
mov dword [esp + 0x18], eax
je 0x467f74
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
mov dword [esp + 0xc], ebx
jne 0x467ffa
cmp dword [esp + 0x14], ebx
je 0x467c43
cmp dword [esp + 0x18], 0
jne 0x467c43
lea eax, [esp + 0x20]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x467ed9
jmp 0x467c43
cmp dword [esp + 0xc], 0
je 0x467fb5
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x467ef3
cmp dword [esp + 0xc], ebx
jmp 0x467ee5
call fcn.00468a3c
test ebx, ebx
mov esi, eax
je 0x467ee0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x467ee0
call fcn.00468a3c
cmp dword [esp + 0x14], ebx
mov esi, eax
je 0x467ee0
push dword [esp + 0x14]
jmp 0x467fd8
call fcn.00468a3c
jmp 0x467ef3