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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2248
call fcn.1004e6c7
mov eax, dword [0x1001e268]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x221c], 0
and dword [ebp - 0x2218], 0
push ebx
push esi
mov dword [ebp - 0x2214], eax
mov eax, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2210], ecx
mov dword [ebp - 0x2244], eax
jmp 0x10021d5f
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x100025fc
push edi
mov dword [ebp - 0x2228], 1
call esi
mov ebx, eax
neg ebx
push 0x10002620
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x100218af
test ebx, ebx
je 0x10021972
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.1001fb2f
mov esi, eax
test esi, esi
jl 0x10021dd3
cmp dword [ebp + 0x10], 0
je 0x10021972
push 0x5c
xor esi, esi
push edi
mov dword [ebp - 0x2224], esi
mov dword [ebp - 0x2220], esi
call fcn.1001fab8
test eax, eax
jne 0x10021d77
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.1001fc3d
test eax, eax
je 0x10021927
mov eax, dword [ebp - 0x2214]
push edi
lea ecx, [ebp - 0x2224]
mov dword [ebp - 0x2224], eax
mov dword [ebp - 0x2220], esi
call fcn.10020539
mov dword [ebp - 0x2224], esi
mov dword [ebp - 0x2220], esi
cmp ebx, esi
je 0x10021967
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.1001fb2f
mov esi, eax
test esi, esi
jl 0x10021d89
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.1001fca1
lea ecx, [ebp - 0x2224]
mov esi, eax
call fcn.1001f71c
test esi, esi
jl 0x10021dd3
jmp 0x10021d24
lea ecx, [ebp - 0x2224]
call fcn.1001f71c
push 0x1000260c
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1002199e
mov ecx, dword [ebp - 0x2210]
and dword [ebp - 0x2228], eax
push edi
call fcn.1001fb2f
mov esi, eax
test esi, esi
jl 0x10021dd3
push 0x10002638
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10021ab9
mov ecx, dword [ebp - 0x2210]
lea eax, [ebp - 0x220c]
push eax
call fcn.1001fb2f
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x10021dd3
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.1001fb2f
mov esi, eax
cmp esi, ebx
jl 0x10021dd3
cmp word [edi], 0x3d
jne 0x10021d82
cmp dword [ebp + 0x10], ebx
je 0x10021a41
mov eax, dword [ebp - 0x2214]
mov ecx, dword [ebp - 0x2210]
mov dword [ebp - 0x2238], eax
push edi
lea eax, [ebp - 0x220c]
push eax
lea eax, [ebp - 0x2238]
push eax
mov dword [ebp - 0x2234], ebx
call fcn.10021548
lea ecx, [ebp - 0x2238]
mov esi, eax
mov dword [ebp - 0x2238], ebx
mov dword [ebp - 0x2234], ebx
call fcn.1001f71c
cmp esi, ebx
jmp 0x1002195c
cmp dword [ebp + 0x14], ebx
jne 0x10021aa4
cmp dword [ebp - 0x2228], ebx
je 0x10021aa4
push 0x20006
push ebx
push dword [ebp - 0x2214]
lea ecx, [ebp - 0x2230]
mov dword [ebp - 0x2230], ebx
mov dword [ebp - 0x222c], ebx
call fcn.1001f785
cmp eax, ebx
jne 0x10021d91
lea eax, [ebp - 0x220c]
push eax
push dword [ebp - 0x2230]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
je 0x10021a99
cmp eax, 2
jne 0x10021d91
lea ecx, [ebp - 0x2230]
call fcn.1001f71c
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.1001fca1
mov esi, eax
cmp esi, ebx
jmp 0x10021d69
push 0x5c
push edi
call fcn.1001fab8
test eax, eax
jne 0x10021d82
cmp dword [ebp + 0x10], eax
je 0x10021b68
mov esi, 0x2001f
push esi
push edi
push dword [ebp - 0x2214]
lea ecx, [ebp - 0x221c]
call fcn.1001f785
test eax, eax
je 0x10021b2c
push 0x20019
push edi
push dword [ebp - 0x2214]
lea ecx, [ebp - 0x221c]
call fcn.1001f785
test eax, eax
je 0x10021b2c
xor ebx, ebx
push ebx
push ebx
push esi
push ebx
push ebx
push edi
push dword [ebp - 0x2214]
lea ecx, [ebp - 0x221c]
call fcn.1001f737
mov esi, eax
cmp esi, ebx
jne 0x10021d9f
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.1001fb2f
mov esi, eax
test esi, esi
jl 0x10021dd3
cmp word [edi], 0x3d
jne 0x10021d24
mov ecx, dword [ebp - 0x2210]
push edi
push 0
lea eax, [ebp - 0x221c]
push eax
call fcn.10021548
mov esi, eax
jmp 0x1002195a
cmp dword [ebp + 0x14], 0
jne 0x10021b89
push 0x20019
push edi
push dword [ebp - 0x2214]
lea ecx, [ebp - 0x221c]
call fcn.1001f785
mov ebx, eax
jmp 0x10021b8c
push 2
pop ebx
test ebx, ebx
je 0x10021b97
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.MSVCR90.dll_wcsncpy_s]
add esp, 0x10
push eax
call fcn.1001f576
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.1001fb2f
mov esi, eax
test esi, esi
jl 0x10021dd3
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.1001fca1
mov esi, eax
test esi, esi
jl 0x10021dd3
cmp word [edi], 0x7b
jne 0x10021c30
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x10021c30
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x2210]
push 0
push dword [ebp - 0x221c]
push edi
call fcn.10021834
mov esi, eax
test esi, esi
jge 0x10021c1a
cmp dword [ebp + 0x14], 0
je 0x10021dd3
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.1001fb2f
mov esi, eax
test esi, esi
jl 0x10021dd3
mov eax, dword [ebp - 0x2244]
mov dword [ebp + 0x14], eax
cmp ebx, 2
je 0x10021d6b
test ebx, ebx
je 0x10021c5b
test eax, eax
jne 0x10021d6b
push ebx
call fcn.1001f660
mov esi, eax
jmp 0x10021dd3
test eax, eax
je 0x10021cb2
push dword [ebp - 0x221c]
mov ecx, dword [ebp - 0x2210]
call fcn.1001fc6c
test eax, eax
je 0x10021cb2
mov ecx, dword [ebp - 0x2210]
lea eax, [ebp - 0x20c]
push eax
call fcn.1001fc3d
test eax, eax
je 0x10021d6b
cmp dword [ebp - 0x2228], 0
je 0x10021d6b
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x221c]
call fcn.10020539
jmp 0x10021d6b
push dword [ebp - 0x221c]
mov ecx, dword [ebp - 0x2210]
call fcn.1001fc6c
lea ecx, [ebp - 0x221c]
mov dword [ebp - 0x2248], eax
call fcn.1001f71c
mov ebx, eax
test ebx, ebx
jne 0x10021db2
cmp dword [ebp - 0x2228], eax
je 0x10021d6b
cmp dword [ebp - 0x2248], eax
jne 0x10021d6b
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x2214]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
and dword [ebp - 0x2240], ebx
and dword [ebp - 0x223c], ebx
test eax, eax
jne 0x10021dc0
lea ecx, [ebp - 0x2240]
call fcn.1001f71c
cmp dword [ebp + 0x10], 0
je 0x10021d6b
cmp word [edi], 0x7b
jne 0x10021d6b
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x10021d6b
mov ecx, dword [ebp - 0x2210]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x221c]
push edi
call fcn.10021834
mov esi, eax
test esi, esi
jl 0x10021dd3
mov ecx, dword [ebp - 0x2210]
push edi
call fcn.1001fb2f
mov esi, eax
test esi, esi
jl 0x10021dd3
cmp word [edi], 0x7d
jne 0x1002187c
jmp 0x10021dd3
lea ecx, [ebp - 0x2224]
call fcn.1001f71c
mov esi, 0x80020009
jmp 0x10021dd3
lea ecx, [ebp - 0x2224]
jmp 0x10021dce
push eax
call fcn.1001f660
lea ecx, [ebp - 0x2230]
jmp 0x10021dcc
lea ecx, [ebp - 0x221c]
call fcn.1001f71c
push esi
call fcn.1001f660
jmp 0x10021de0
lea ecx, [ebp - 0x221c]
call fcn.1001f71c
push ebx
jmp 0x10021dab
push eax
call fcn.1001f660
lea ecx, [ebp - 0x2240]
mov esi, eax
call fcn.1001f71c
lea ecx, [ebp - 0x221c]
call fcn.1001f71c
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004da72
leave
ret 0x10