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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439e85
mov eax, dword fs:[0]
push eax
mov eax, 0x2244
call fcn.0042f7d0
mov eax, dword [0x452588]
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, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x221c], ecx
mov dword [ebp - 0x2228], eax
mov dword [ebp - 0x2224], ebx
mov dword [ebp - 0x2220], ebx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2244], eax
mov eax, edi
mov dword [ebp - 4], ebx
call fcn.004222ce
mov esi, eax
cmp esi, ebx
jl 0x422911
cmp word [edi], 0x7d
je 0x42290f
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.Delete
push edi
mov dword [ebp - 0x2230], 1
call esi
mov ebx, eax
neg ebx
push str.ForceRemove
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x422490
test ebx, ebx
je 0x4225a0
mov ecx, dword [ebp - 0x221c]
mov eax, edi
call fcn.004222ce
mov esi, eax
test esi, esi
jl 0x4228fa
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x4225a2
push 0x5c
mov eax, edi
mov dword [ebp - 0x2240], esi
mov dword [ebp - 0x223c], esi
call fcn.00421b5e
pop ecx
test eax, eax
jne 0x4229ec
push edi
call fcn.004220bc
test eax, eax
je 0x422504
mov eax, dword [ebp - 0x2228]
push edi
lea ecx, [ebp - 0x2240]
mov dword [ebp - 0x2240], eax
mov dword [ebp - 0x223c], esi
call fcn.0042211e
mov dword [ebp - 0x2240], esi
mov dword [ebp - 0x223c], esi
cmp ebx, esi
je 0x422598
mov ecx, dword [ebp - 0x221c]
mov eax, edi
call fcn.004222ce
mov esi, eax
test esi, esi
jl 0x4228fa
mov ecx, dword [ebp - 0x221c]
call fcn.0042205f
mov esi, eax
test esi, esi
jl 0x4228fa
and dword [ebp - 0x223c], 0
cmp word [edi], 0x7b
jne 0x422589
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x422589
mov ecx, dword [ebp - 0x221c]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x2224]
push edi
call fcn.004223e4
mov esi, eax
test esi, esi
jl 0x4228fa
mov ecx, dword [ebp - 0x221c]
mov eax, edi
call fcn.004222ce
mov esi, eax
test esi, esi
jl 0x4228fa
cmp word [edi], 0x7d
jne 0x42245d
jmp 0x4228fa
mov dword [ebp - 0x223c], esi
jmp 0x4225a2
xor esi, esi
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4225d1
and dword [ebp - 0x2230], eax
mov ecx, dword [ebp - 0x221c]
mov eax, edi
call fcn.004222ce
mov esi, eax
test esi, esi
jl 0x4228fa
xor esi, esi
push 0x440544
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x422707
mov ecx, dword [ebp - 0x221c]
lea eax, [ebp - 0x2218]
call fcn.004222ce
mov esi, eax
test esi, esi
jl 0x4228fa
mov ecx, dword [ebp - 0x221c]
mov eax, edi
call fcn.004222ce
mov esi, eax
test esi, esi
jl 0x4228fa
cmp word [edi], 0x3d
jne 0x422a0a
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x42267b
mov eax, dword [ebp - 0x2228]
mov ecx, dword [ebp - 0x221c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x224c], eax
push edi
lea eax, [ebp - 0x2218]
push eax
lea edx, [ebp - 0x224c]
mov dword [ebp - 0x2248], ebx
call fcn.00421c8e
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x224c], ebx
mov dword [ebp - 0x2248], ebx
jl 0x422a60
mov byte [ebp - 4], bl
mov dword [ebp - 0x2248], ebx
jmp 0x42253f
cmp dword [ebp + 0x14], ebx
jne 0x4226f3
cmp dword [ebp - 0x2230], ebx
je 0x4226f3
push 0x20006
push ebx
push dword [ebp - 0x2228]
lea eax, [ebp - 0x2238]
mov dword [ebp - 0x2238], ebx
mov dword [ebp - 0x2234], ebx
call fcn.004220eb
cmp eax, ebx
jne 0x422a13
lea eax, [ebp - 0x2218]
push eax
push dword [ebp - 0x2238]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
je 0x4226d3
cmp eax, 2
jne 0x422a13
cmp dword [ebp - 0x2238], ebx
je 0x4226ed
push dword [ebp - 0x2238]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2238], ebx
mov dword [ebp - 0x2234], ebx
mov ecx, dword [ebp - 0x221c]
call fcn.0042205f
mov esi, eax
cmp esi, ebx
jmp 0x422583
push 0x5c
mov eax, edi
call fcn.00421b5e
pop ecx
test eax, eax
jne 0x4229ec
cmp dword [ebp + 0x10], esi
je 0x4227fb
mov ebx, 0x2001f
push ebx
push edi
push dword [ebp - 0x2228]
lea eax, [ebp - 0x2224]
call fcn.004220eb
test eax, eax
je 0x4227b7
push 0x20019
push edi
push dword [ebp - 0x2228]
lea eax, [ebp - 0x2224]
call fcn.004220eb
test eax, eax
je 0x4227b7
lea eax, [ebp - 0x2250]
push eax
lea eax, [ebp - 0x2230]
push eax
push esi
push ebx
push esi
push esi
push esi
push edi
push dword [ebp - 0x2228]
mov dword [ebp - 0x2230], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x422a37
xor eax, eax
cmp dword [ebp - 0x2224], esi
je 0x42279d
push dword [ebp - 0x2224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x2230]
mov dword [ebp - 0x2220], esi
mov dword [ebp - 0x2224], ecx
cmp eax, esi
jne 0x422a37
mov ecx, dword [ebp - 0x221c]
mov eax, edi
call fcn.004222ce
mov esi, eax
test esi, esi
jl 0x4228fa
cmp word [edi], 0x3d
jne 0x42253f
mov ecx, dword [ebp - 0x221c]
push edi
push 0
lea edx, [ebp - 0x2224]
call fcn.00421c8e
mov esi, eax
test esi, esi
jl 0x4228fa
jmp 0x42253f
cmp dword [ebp + 0x14], esi
jne 0x42281f
push 0x20019
push edi
push dword [ebp - 0x2228]
lea eax, [ebp - 0x2224]
call fcn.004220eb
mov dword [ebp - 0x222c], eax
jmp 0x422829
mov dword [ebp - 0x222c], 2
cmp dword [ebp - 0x222c], esi
je 0x422838
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00426e2d
push eax
call fcn.00422f54
mov ecx, dword [ebp - 0x221c]
add esp, 0x14
mov eax, edi
call fcn.004222ce
mov esi, eax
test esi, esi
jl 0x4228fa
mov ecx, dword [ebp - 0x221c]
call fcn.0042205f
mov esi, eax
test esi, esi
jl 0x4228fa
cmp word [edi], 0x7b
jne 0x4228c5
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x4228c5
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x221c]
push 0
push dword [ebp - 0x2224]
push edi
call fcn.004223e4
mov esi, eax
test esi, esi
jge 0x4228b2
cmp dword [ebp + 0x14], 0
je 0x4228fa
mov ecx, dword [ebp - 0x221c]
mov eax, edi
call fcn.004222ce
mov esi, eax
test esi, esi
jl 0x4228fa
cmp dword [ebp - 0x222c], 2
mov eax, dword [ebp - 0x2244]
mov dword [ebp + 0x14], eax
je 0x422589
xor ebx, ebx
cmp dword [ebp - 0x222c], ebx
je 0x42292d
cmp eax, ebx
jne 0x422589
mov eax, dword [ebp - 0x222c]
call fcn.0042229f
mov esi, eax
cmp dword [ebp - 0x2224], 0
je 0x42290f
push dword [ebp - 0x2224]
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.00424012
leave
ret 0x10
cmp eax, ebx
je 0x422978
push dword [ebp - 0x2224]
call fcn.0042224e
test eax, eax
je 0x422978
lea eax, [ebp - 0x218]
push eax
call fcn.004220bc
test eax, eax
je 0x422589
cmp dword [ebp - 0x2230], 0
je 0x422589
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2224]
call fcn.0042211e
jmp 0x422589
push dword [ebp - 0x2224]
call fcn.0042224e
mov dword [ebp - 0x222c], eax
xor eax, eax
cmp dword [ebp - 0x2224], ebx
je 0x4229a5
push dword [ebp - 0x2224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2224], ebx
mov dword [ebp - 0x2220], ebx
cmp eax, ebx
jne 0x422a59
cmp dword [ebp - 0x2230], ebx
je 0x422589
cmp dword [ebp - 0x222c], 0
jne 0x422589
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x2228]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x4228f3
jmp 0x422589
cmp dword [ebp - 0x2224], esi
je 0x422a00
push dword [ebp - 0x2224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x422911
cmp dword [ebp - 0x2224], 0
jmp 0x4229f2
call fcn.0042229f
mov esi, eax
cmp dword [ebp - 0x2238], ebx
je 0x4228fa
push dword [ebp - 0x2238]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4228fa
call fcn.0042229f
mov edi, eax
cmp dword [ebp - 0x2224], esi
je 0x422a52
push dword [ebp - 0x2224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x422911
call fcn.0042229f
mov esi, eax
cmp dword [ebp - 0x2224], ebx
jmp 0x422901