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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a3f1b
mov eax, dword fs:[0]
push eax
mov eax, 0x1148
call fcn.0042da30
mov eax, dword [0x4c4024]
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 - 0x114c], eax
mov ecx, dword [ebp + 0xc]
xorps xmm0, xmm0
mov ebx, dword [ebp + 8]
movq qword [ebp - 0x1148], xmm0
mov dword [ebp - 0x1140], 0
mov dword [ebp - 0x1150], ecx
mov dword [ebp - 0x1148], 0
mov dword [ebp - 0x1144], 0
mov dword [ebp - 0x1140], 0
push ebx
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00420f80
mov esi, eax
test esi, esi
js 0x421854
cmp byte [ebx], 0x7d
je 0x421841
nop dword [eax + eax]
push str.Delete
push ebx
mov dword [ebp - 0x1154], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
neg eax
push str.ForceRemove
sbb edi, edi
push ebx
inc edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4211b3
test edi, edi
je 0x4212b1
mov ecx, dword [ebp - 0x114c]
push ebx
call fcn.00420f80
mov esi, eax
test esi, esi
js 0x421841
cmp dword [ebp + 0x10], 0
je 0x4212b1
mov al, byte [ebx]
mov ecx, ebx
mov dword [ebp - 0x1124], 0
mov dword [ebp - 0x111c], 0
test al, al
je 0x42120d
nop
cmp al, 0x5c
je 0x421205
push ecx
call dword [sym.imp.USER32.dll_CharNextA]
mov ecx, eax
mov al, byte [ecx]
test al, al
jne 0x4211f0
jmp 0x42120d
test ecx, ecx
jne 0x421831
mov esi, 0x4bceb4
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x42126a
add esi, 4
cmp esi, str.RegOpenKeyTransactedA
jl 0x421212
mov eax, dword [ebp - 0x1150]
lea ecx, [ebp - 0x1124]
push ebx
mov dword [ebp - 0x1124], eax
mov dword [ebp - 0x1120], 0
mov dword [ebp - 0x111c], 0
call fcn.00420d50
mov dword [ebp - 0x1124], 0
mov dword [ebp - 0x111c], 0
test edi, edi
je 0x4212a7
mov edi, dword [ebp - 0x114c]
mov ecx, edi
push ebx
call fcn.00420f80
mov esi, eax
test esi, esi
js 0x421841
push ebx
mov ecx, edi
call fcn.00420bf0
mov esi, eax
test esi, esi
js 0x421841
mov dword [ebp - 0x1120], 0
jmp 0x421517
mov dword [ebp - 0x1120], 0
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov edi, dword [ebp - 0x114c]
test eax, eax
jne 0x4212df
push ebx
mov ecx, edi
mov dword [ebp - 0x1154], eax
call fcn.00420f80
mov esi, eax
test esi, esi
js 0x421841
push 0x4bce08
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x42146c
lea eax, [ebp - 0x1114]
mov ecx, edi
push eax
call fcn.00420f80
mov esi, eax
test esi, esi
js 0x421841
push ebx
mov ecx, edi
call fcn.00420f80
mov esi, eax
test esi, esi
js 0x421841
cmp byte [ebx], 0x3d
jne 0x421831
cmp dword [ebp + 0x10], 0
je 0x4213ba
xorps xmm0, xmm0
mov dword [ebp - 0x1128], 0
movq qword [ebp - 0x1130], xmm0
mov eax, dword [ebp - 0x1150]
mov ecx, edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x1130], eax
lea eax, [ebp - 0x1114]
push ebx
push eax
lea eax, [ebp - 0x1130]
mov dword [ebp - 0x112c], 0
push eax
mov dword [ebp - 0x1128], 0
call fcn.004204f0
mov esi, eax
mov dword [ebp - 0x1130], 0
mov dword [ebp - 0x112c], 0
mov dword [ebp - 0x1128], 0
test esi, esi
js 0x421841
mov byte [ebp - 4], 0
mov dword [ebp - 0x112c], 0
jmp 0x421517
cmp dword [ebp + 0x14], 0
jne 0x421455
cmp dword [ebp - 0x1154], 0
je 0x421455
push 0x20006
push 0
push dword [ebp - 0x1150]
lea ecx, [ebp - 0x113c]
mov dword [ebp - 0x113c], 0
mov dword [ebp - 0x1138], 0
mov dword [ebp - 0x1134], 0
call fcn.00420c70
test eax, eax
jne 0x421815
mov edi, dword [ebp - 0x113c]
lea eax, [ebp - 0x1114]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x421430
cmp eax, 2
jne 0x4217ff
test edi, edi
je 0x421445
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x113c], 0
mov edi, dword [ebp - 0x114c]
mov dword [ebp - 0x1138], 0
push ebx
mov ecx, edi
call fcn.00420bf0
mov esi, eax
test esi, esi
js 0x421841
jmp 0x4217f4
mov al, byte [ebx]
mov ecx, ebx
test al, al
je 0x421491
cmp al, 0x5c
je 0x421489
push ecx
call dword [sym.imp.USER32.dll_CharNextA]
mov ecx, eax
mov al, byte [ecx]
test al, al
jne 0x421474
jmp 0x421491
test ecx, ecx
jne 0x421831
cmp dword [ebp + 0x10], 0
je 0x42156b
mov esi, dword [ebp - 0x1150]
lea ecx, [ebp - 0x1148]
push 0x2001f
push ebx
push esi
call fcn.00420c70
test eax, eax
je 0x4214e5
push 0x20019
push ebx
push esi
lea ecx, [ebp - 0x1148]
call fcn.00420c70
test eax, eax
je 0x4214e5
sub esp, 0x14
lea ecx, [ebp - 0x1148]
push ebx
push esi
call fcn.00420320
test eax, eax
jne 0x421838
push ebx
mov ecx, edi
call fcn.00420f80
mov esi, eax
test esi, esi
js 0x421841
cmp byte [ebx], 0x3d
jne 0x421517
push ebx
push 0
lea eax, [ebp - 0x1148]
mov ecx, edi
push eax
call fcn.004204f0
mov esi, eax
test esi, esi
js 0x421841
cmp byte [ebx], 0x7b
jne 0x4217f4
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x421525
sub ecx, edx
cmp ecx, 1
jne 0x4217f4
push 0
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp - 0x1148]
push ebx
call fcn.004210e0
mov esi, eax
test esi, esi
js 0x421841
push ebx
mov ecx, edi
call fcn.00420f80
mov esi, eax
test esi, esi
js 0x421841
jmp 0x4217f4
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x42158d
push 0x20019
push ebx
push dword [ebp - 0x1150]
lea ecx, [ebp - 0x1148]
call fcn.00420c70
mov edi, eax
jmp 0x421592
mov edi, 2
test edi, edi
mov eax, 1
push 0xffffffffffffffff
cmove eax, esi
push ebx
mov dword [ebp - 0x1118], eax
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.0047e2e3
push eax
call fcn.00420b50
mov ecx, dword [ebp - 0x114c]
add esp, 0x14
push ebx
call fcn.00420f80
mov esi, eax
test esi, esi
js 0x421841
mov ecx, dword [ebp - 0x114c]
push ebx
call fcn.00420bf0
mov esi, eax
test esi, esi
js 0x421841
cmp byte [ebx], 0x7b
jne 0x421646
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4215f5
sub ecx, edx
cmp ecx, 1
jne 0x421646
push dword [ebp - 0x1118]
mov ecx, dword [ebp - 0x114c]
push 0
push dword [ebp - 0x1148]
push ebx
call fcn.004210e0
mov esi, eax
test esi, esi
jns 0x421630
cmp dword [ebp - 0x1118], 0
je 0x421841
mov ecx, dword [ebp - 0x114c]
push ebx
call fcn.00420f80
mov esi, eax
test esi, esi
js 0x421841
cmp edi, 2
je 0x4217f4
test edi, edi
je 0x421664
cmp dword [ebp + 0x14], 0
jne 0x4217f4
mov ecx, edi
jmp 0x42183a
cmp dword [ebp + 0x14], 0
je 0x4216fa
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1118]
mov dword [ebp - 0x1118], 0
push eax
push 0
push 0
push 0
push dword [ebp - 0x1148]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x4216fa
cmp eax, dword [ebp - 0x1118]
sbb eax, eax
neg eax
je 0x4216fa
mov edi, 0x4bceb4
push dword [edi]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x4217f4
add edi, 4
cmp edi, str.RegOpenKeyTransactedA
jl 0x4216b4
cmp dword [ebp - 0x1154], 0
je 0x4217f4
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x1148]
call fcn.00420d50
jmp 0x4217f4
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1118]
mov dword [ebp - 0x1118], 0
push eax
push 0
push 0
push 0
push dword [ebp - 0x1148]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x421733
xor edi, edi
jmp 0x42173f
xor eax, eax
cmp eax, dword [ebp - 0x1118]
sbb edi, edi
neg edi
mov ecx, dword [ebp - 0x1148]
xor eax, eax
test ecx, ecx
je 0x42175a
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [ebp - 0x1148], ecx
mov dword [ebp - 0x1144], 0
test eax, eax
jne 0x421838
cmp dword [ebp - 0x1154], eax
je 0x4217f4
test edi, edi
jne 0x4217f4
cmp byte [0x4c69fc], al
jne 0x4217bf
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x4217b1
push str.RegDeleteKeyExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4c69f8], eax
mov byte [0x4c69fc], 1
jmp 0x4217c4
mov eax, dword [0x4c69f8]
mov byte [0x4c69fc], 1
jmp 0x4217c4
mov eax, dword [0x4c69f8]
test eax, eax
je 0x4217dd
push 0
push 0
lea ecx, [ebp - 0x114]
push ecx
push dword [ebp - 0x1150]
call eax
jmp 0x4217f0
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 0x1150]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x421838
cmp byte [ebx], 0x7d
jne 0x421180
jmp 0x421841
mov ecx, eax
call fcn.00420f70
mov esi, eax
test edi, edi
je 0x421841
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x421841
mov ecx, eax
call fcn.00420f70
mov esi, eax
mov eax, dword [ebp - 0x113c]
test eax, eax
je 0x421841
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x421841
mov esi, 0x80020009
jmp 0x421841
mov ecx, eax
call fcn.00420f70
mov esi, eax
mov eax, dword [ebp - 0x1148]
test eax, eax
je 0x421852
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.0042ca6a
mov esp, ebp
pop ebp
ret 0x10