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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x14], eax
call fcn.00401d82
mov esi, eax
cmp esi, ebx
jl 0x4025c2
cmp byte [edi], 0x7d
je 0x40259e
push dword [0x4061cc]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push edi
call esi
push dword [0x4061c4]
mov ebx, eax
neg ebx
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x402125
test ebx, ebx
je 0x4021e8
mov ecx, dword [ebp - 8]
push edi
call fcn.00401d82
mov esi, eax
test esi, esi
jl 0x40259e
cmp dword [ebp + 0x10], 0
je 0x4021e8
and dword [ebp + 8], 0
mov cl, byte [edi]
mov eax, edi
test cl, cl
je 0x402166
cmp cl, 0x5c
je 0x40215e
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [eax]
jmp 0x40214a
test eax, eax
jne 0x402578
mov esi, 0x407048
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x402196
add esi, 4
cmp esi, str.TYPELIB
jl 0x40216b
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
call fcn.00402634
and dword [ebp + 8], 0
test ebx, ebx
je 0x4021d9
mov ecx, dword [ebp - 8]
push edi
call fcn.00401d82
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x402590
mov ecx, dword [ebp - 8]
push edi
call fcn.00402a4a
mov esi, eax
cmp esi, ebx
jl 0x402590
cmp dword [ebp + 8], ebx
je 0x40252a
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40252a
cmp dword [ebp + 8], 0
je 0x4021e8
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [0x4061c8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40220f
mov ecx, dword [ebp - 8]
and dword [ebp - 0x10], eax
push edi
call fcn.00401d82
mov esi, eax
test esi, esi
jl 0x40259e
push dword [0x4061c0]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4022ea
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x11c]
push eax
call fcn.00401d82
mov esi, eax
test esi, esi
jl 0x40259e
mov ecx, dword [ebp - 8]
push edi
call fcn.00401d82
mov esi, eax
test esi, esi
jl 0x40259e
cmp byte [edi], 0x3d
jne 0x4025bc
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x40228c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x11c]
push edi
push eax
lea eax, [ebp + 8]
push eax
call fcn.00402718
mov esi, eax
mov dword [ebp + 8], ebx
cmp esi, ebx
jl 0x4025c2
jmp 0x40252a
cmp dword [ebp + 0x14], ebx
jne 0x4022d8
push 0x20006
push ebx
push dword [ebp + 0xc]
lea ecx, [ebp + 8]
mov dword [ebp + 8], ebx
call fcn.004025f6
cmp eax, ebx
jne 0x4025c9
lea eax, [ebp - 0x11c]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, ebx
je 0x4022ca
cmp eax, 2
jne 0x4025c7
cmp dword [ebp + 8], ebx
je 0x4022d8
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
push edi
call fcn.00402a4a
mov esi, eax
cmp esi, ebx
jmp 0x402571
mov cl, byte [edi]
mov eax, edi
test cl, cl
je 0x40230e
cmp cl, 0x5c
je 0x402302
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [eax]
jmp 0x4022ee
xor ebx, ebx
cmp eax, ebx
jne 0x4025e1
jmp 0x402310
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x4023b4
mov esi, 0xf003f
lea ecx, [ebp - 4]
push esi
push edi
push dword [ebp + 0xc]
call fcn.004025f6
test eax, eax
je 0x402384
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 4]
call fcn.004025f6
test eax, eax
je 0x402384
lea eax, [ebp - 0x18]
mov dword [ebp + 8], ebx
push eax
lea eax, [ebp + 8]
push eax
push ebx
push esi
push ebx
push ebx
push ebx
push edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x4025e1
xor eax, eax
cmp dword [ebp - 4], ebx
je 0x402376
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
cmp eax, ebx
mov dword [ebp - 4], ecx
jne 0x4025e1
mov ecx, dword [ebp - 8]
push edi
call fcn.00401d82
mov esi, eax
test esi, esi
jl 0x40259e
cmp byte [edi], 0x3d
jne 0x40252a
mov ecx, dword [ebp - 8]
push edi
lea eax, [ebp - 4]
push 0
push eax
call fcn.00402718
jmp 0x402524
cmp dword [ebp + 0x14], ebx
jne 0x4023d5
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 4]
call fcn.004025f6
test eax, eax
je 0x4023d5
mov dword [ebp + 0x14], 1
cmp dword [ebp - 0xc], ebx
jne 0x4023e7
mov eax, 0x104
call fcn.00405290
mov dword [ebp - 0xc], esp
push 0x104
push edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp dword [ebp + 0x14], ebx
jne 0x40241d
push dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.0040299e
test eax, eax
jne 0x40241d
push dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.004029d3
test eax, eax
je 0x4024dc
mov ecx, dword [ebp - 8]
push edi
call fcn.00401d82
mov esi, eax
test esi, esi
jl 0x40259e
mov ecx, dword [ebp - 8]
push edi
call fcn.00402a4a
mov esi, eax
test esi, esi
jl 0x40259e
cmp byte [edi], 0x7b
jne 0x402490
push dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
push 0
push dword [ebp - 4]
push edi
call fcn.004020ba
mov esi, eax
test esi, esi
jl 0x40259e
cmp dword [ebp + 0x14], 0
je 0x40249a
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
push edi
mov dword [ebp + 0x14], eax
call fcn.00401d82
mov esi, eax
test esi, esi
jl 0x40259e
mov ecx, dword [ebp - 8]
push edi
call fcn.00402a4a
jmp 0x40256d
cmp dword [ebp + 0x14], 0
jne 0x4020f1
push dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.0040299e
test eax, eax
je 0x4024dc
mov esi, 0x407048
push dword [esi]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x402564
add esi, 4
cmp esi, str.TYPELIB
jl 0x4024ae
push dword [ebp - 0xc]
lea ecx, [ebp - 4]
call fcn.00402634
jmp 0x402564
xor esi, esi
cmp dword [ebp - 4], esi
je 0x4024f7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
mov dword [ebp - 4], esi
jne 0x4025ef
cmp dword [ebp - 0x10], esi
je 0x402508
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [ebp - 8]
push edi
call fcn.00401d82
mov esi, eax
test esi, esi
jl 0x40259e
mov ecx, dword [ebp - 8]
push edi
call fcn.00402a4a
mov esi, eax
test esi, esi
jl 0x40259e
cmp dword [ebp + 0x10], 0
je 0x4020f1
cmp byte [edi], 0x7b
jne 0x4020f1
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x4020f1
push 0
mov ecx, dword [ebp - 8]
push dword [ebp + 0x10]
push dword [ebp - 4]
push edi
call fcn.004020ba
mov esi, eax
test esi, esi
jl 0x40259e
mov ecx, dword [ebp - 8]
push edi
call fcn.00401d82
mov esi, eax
test esi, esi
jl 0x40259e
jmp 0x4020f1
xor esi, esi
cmp dword [ebp + 8], esi
je 0x40258b
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp + 8], esi
cmp dword [ebp - 4], esi
jmp 0x4025e4
cmp dword [ebp + 8], ebx
je 0x40259e
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 0
je 0x4025ad
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
lea esp, [ebp - 0x128]
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp dword [ebp - 4], 0
jmp 0x4025e4
cmp dword [ebp - 4], ebx
jmp 0x4025a2
cmp eax, ebx
jle 0x4025d5
and eax, 0xffff
or eax, 0x80070000
cmp dword [ebp + 8], ebx
mov esi, eax
je 0x40259e
push dword [ebp + 8]
jmp 0x402598
cmp dword [ebp - 4], ebx
je 0x4025ef
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x4025af