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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a9ee0
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.00463e06
mov esi, eax
test esi, esi
jl 0x464385
cmp word [ebx], 0x7d
je 0x464383
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 0x463fa1
test edi, edi
je 0x46406e
mov ecx, dword [esp + 0x10]
mov eax, ebx
call fcn.00463e06
mov esi, eax
test esi, esi
jl 0x464372
cmp dword [ebp + 0x10], 0
je 0x46406e
push 0x5c
mov eax, ebx
call fcn.00463c95
test eax, eax
pop ecx
jne 0x464432
push ebx
call fcn.004648f8
test eax, eax
je 0x463fed
mov eax, dword [ebp + 0xc]
push ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
call fcn.00464924
test edi, edi
je 0x46406e
mov ecx, dword [esp + 0x10]
mov eax, ebx
call fcn.00463e06
mov esi, eax
test esi, esi
jl 0x464372
mov ecx, dword [esp + 0x10]
mov edi, ebx
call fcn.004648af
mov esi, eax
test esi, esi
jl 0x464372
cmp word [ebx], 0x7b
jne 0x46405f
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
cmp eax, 1
jne 0x46405f
mov ecx, dword [esp + 0x10]
push 0
push dword [ebp + 0x10]
push dword [esp + 0x14]
push ebx
call fcn.00463f17
mov esi, eax
test esi, esi
jl 0x464372
mov ecx, dword [esp + 0x10]
mov eax, ebx
call fcn.00463e06
mov esi, eax
test esi, esi
jl 0x464372
cmp word [ebx], 0x7d
jne 0x463f70
jmp 0x464372
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x464097
and dword [esp + 0x14], eax
mov ecx, dword [esp + 0x10]
mov eax, ebx
call fcn.00463e06
mov esi, eax
test esi, esi
jl 0x464372
push 0x4bc2dc
push ebx
xor esi, esi
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x464191
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x228]
call fcn.00463e06
mov esi, eax
test esi, esi
jl 0x464372
mov ecx, dword [esp + 0x10]
mov eax, ebx
call fcn.00463e06
mov esi, eax
test esi, esi
jl 0x464372
cmp word [ebx], 0x3d
jne 0x464432
xor edi, edi
cmp dword [ebp + 0x10], edi
je 0x46412a
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.00464481
mov esi, eax
cmp esi, edi
jl 0x46444d
mov byte [esp + 0x43c], 0
jmp 0x46401b
cmp dword [ebp + 0x14], edi
jne 0x464181
cmp dword [esp + 0x14], edi
je 0x464181
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 0x46436b
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x228]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x464176
cmp eax, 2
jne 0x464456
test edi, edi
je 0x464181
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x10]
mov edi, ebx
call fcn.004648af
jmp 0x464055
push 0x5c
mov eax, ebx
call fcn.00463c95
test eax, eax
pop ecx
jne 0x464471
cmp dword [ebp + 0x10], esi
je 0x46426b
and dword [esp + 0x14], eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0x14]
push eax
mov esi, 0x2001f
push esi
push 0
push ebx
push dword [ebp + 0xc]
call edi
test eax, eax
jne 0x4641e9
cmp dword [esp + 0xc], eax
je 0x4641dd
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xc], ecx
je 0x464236
and dword [esp + 0x14], 0
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push ebx
push dword [ebp + 0xc]
call edi
test eax, eax
jne 0x464220
cmp dword [esp + 0xc], eax
je 0x464214
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0xc], ecx
je 0x464236
push esi
push ebx
push dword [ebp + 0xc]
lea edi, [esp + 0x18]
call fcn.0045472f
test eax, eax
jne 0x46436b
mov ecx, dword [esp + 0x10]
mov eax, ebx
call fcn.00463e06
mov esi, eax
test esi, esi
jl 0x464372
cmp word [ebx], 0x3d
jne 0x46401b
push ebx
push 0
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x1c]
call fcn.00464481
jmp 0x464011
cmp dword [ebp + 0x14], esi
jne 0x4642ad
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 0x4642a7
xor eax, eax
cmp dword [esp + 0xc], esi
je 0x46429f
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 0x4642b5
mov dword [esp + 0x18], 2
cmp dword [esp + 0x18], esi
je 0x4642c2
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x28]
push 0x104
push eax
call fcn.0047e26b
push eax
call fcn.00408387
mov ecx, dword [esp + 0x24]
add esp, 0x14
mov eax, ebx
call fcn.00463e06
mov esi, eax
test esi, esi
jl 0x464372
mov ecx, dword [esp + 0x10]
mov edi, ebx
call fcn.004648af
mov esi, eax
test esi, esi
jl 0x464372
cmp word [ebx], 0x7b
jne 0x464345
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
cmp eax, 1
jne 0x464345
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x14]
push 0
push dword [esp + 0x14]
push ebx
call fcn.00463f17
mov esi, eax
test esi, esi
jge 0x464334
cmp dword [ebp + 0x14], 0
je 0x464372
mov ecx, dword [esp + 0x10]
mov eax, ebx
call fcn.00463e06
mov esi, eax
test esi, esi
jl 0x464372
cmp dword [esp + 0x18], 2
mov eax, dword [esp + 0x1c]
mov dword [ebp + 0x14], eax
je 0x46405f
mov eax, dword [esp + 0x18]
xor edi, edi
cmp eax, edi
je 0x46439c
cmp dword [esp + 0x1c], edi
jne 0x46405f
call fcn.00464ef5
mov esi, eax
cmp dword [esp + 0xc], 0
je 0x464383
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 0x4643de
push dword [esp + 0xc]
call fcn.00464a0d
test eax, eax
je 0x4643de
lea eax, [esp + 0x20]
push eax
call fcn.004648f8
test eax, eax
je 0x46405f
cmp dword [esp + 0x14], edi
je 0x46405f
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x10]
call fcn.00464924
jmp 0x46405f
push dword [esp + 0xc]
call fcn.00464a0d
cmp dword [esp + 0xc], edi
mov dword [esp + 0x18], eax
je 0x464403
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, edi
mov dword [esp + 0xc], edi
jne 0x464477
cmp dword [esp + 0x14], edi
je 0x46405f
cmp dword [esp + 0x18], edi
jne 0x46405f
lea eax, [esp + 0x20]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x46436b
jmp 0x46405f
cmp dword [esp + 0xc], 0
je 0x464443
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x464385
cmp dword [esp + 0xc], edi
jmp 0x464377
call fcn.00464ef5
test edi, edi
mov esi, eax
je 0x464372
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x464372
cmp dword [esp + 0xc], esi
jmp 0x464437
call fcn.00464ef5
jmp 0x464385