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

Disassembly:
mov eax, 0x41ce96
call fcn.0040e958
sub esp, 0x21c
and dword [ebp - 0x10], 0
push esi
push edi
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
and dword [ebp - 4], 0
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040ae25
mov esi, eax
test esi, esi
jge 0x40b252
lea ecx, [ebp - 0x10]
call fcn.0040b786
mov eax, esi
jmp 0x40b6f8
push ebx
jmp 0x40b37f
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.Delete
push edi
mov dword [ebp - 0x18], 1
call esi
mov ebx, eax
neg ebx
push str.ForceRemove
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x40b288
test ebx, ebx
je 0x40b3a0
mov ecx, dword [ebp - 0x14]
push edi
call fcn.0040ae25
mov esi, eax
test esi, esi
jl 0x40b6e6
cmp dword [ebp + 0x10], 0
je 0x40b3a0
and dword [ebp + 8], 0
mov cl, byte [edi]
mov byte [ebp - 4], 1
mov eax, edi
jmp 0x40b2c1
cmp cl, 0x5c
je 0x40b2c7
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [eax]
test cl, cl
jne 0x40b2b3
jmp 0x40b2cf
test eax, eax
jne 0x40b708
mov esi, 0x41e50c
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40b2ff
add esi, 4
cmp esi, str.TypeLib
jl 0x40b2d4
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
call fcn.0040b85c
and dword [ebp + 8], 0
test ebx, ebx
je 0x40b38d
mov ecx, dword [ebp - 0x14]
push edi
call fcn.0040ae25
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x40b739
mov ecx, dword [ebp - 0x14]
push edi
call fcn.0040b807
mov esi, eax
cmp esi, ebx
jl 0x40b739
cmp dword [ebp + 8], ebx
mov byte [ebp - 4], bl
je 0x40b340
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [edi], 0x7b
jne 0x40b37f
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x40b37f
mov ecx, dword [ebp - 0x14]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push edi
call fcn.0040b211
mov esi, eax
test esi, esi
jl 0x40b6e6
mov ecx, dword [ebp - 0x14]
push edi
call fcn.0040ae25
mov esi, eax
test esi, esi
jl 0x40b6e6
cmp byte [edi], 0x7d
jne 0x40b258
jmp 0x40b6e6
cmp dword [ebp + 8], 0
mov byte [ebp - 4], 0
je 0x40b3a0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40b3c6
mov ecx, dword [ebp - 0x14]
and dword [ebp - 0x18], eax
push edi
call fcn.0040ae25
mov esi, eax
test esi, esi
jl 0x40b6e6
push 0x41e5fc
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x40b4ac
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x228]
push eax
call fcn.0040ae25
mov esi, eax
test esi, esi
jl 0x40b6e6
mov ecx, dword [ebp - 0x14]
push edi
call fcn.0040ae25
mov esi, eax
test esi, esi
jl 0x40b6e6
cmp byte [edi], 0x3d
jne 0x40b749
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x40b449
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
mov dword [ebp + 8], eax
push edi
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 2
call fcn.0040b8e6
mov esi, eax
cmp esi, ebx
mov dword [ebp + 8], ebx
jl 0x40b758
mov byte [ebp - 4], bl
jmp 0x40b340
cmp dword [ebp + 0x14], ebx
jne 0x40b49a
cmp dword [ebp - 0x18], ebx
je 0x40b49a
push 0x20006
push ebx
push dword [ebp + 0xc]
lea ecx, [ebp + 8]
mov dword [ebp + 8], ebx
call fcn.0040b79d
cmp eax, ebx
jne 0x40b730
lea eax, [ebp - 0x228]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, ebx
je 0x40b48c
cmp eax, 2
jne 0x40b730
cmp dword [ebp + 8], ebx
je 0x40b49a
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x14]
push edi
call fcn.0040b807
mov esi, eax
cmp esi, ebx
jmp 0x40b379
mov cl, byte [edi]
mov eax, edi
jmp 0x40b4c0
cmp cl, 0x5c
je 0x40b4c6
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [eax]
test cl, cl
jne 0x40b4b2
jmp 0x40b4ce
test eax, eax
jne 0x40b749
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x40b580
mov esi, 0x2001f
push esi
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.0040b79d
test eax, eax
je 0x40b546
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.0040b79d
test eax, eax
je 0x40b546
lea eax, [ebp - 0x20]
push eax
xor ebx, ebx
lea eax, [ebp + 8]
push eax
push ebx
push esi
push ebx
push ebx
push ebx
push edi
push dword [ebp + 0xc]
mov dword [ebp + 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x40b74f
xor eax, eax
cmp dword [ebp - 0x10], ebx
je 0x40b538
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
jne 0x40b74f
mov ecx, dword [ebp - 0x14]
push edi
call fcn.0040ae25
mov esi, eax
test esi, esi
jl 0x40b6e6
cmp byte [edi], 0x3d
jne 0x40b340
mov ecx, dword [ebp - 0x14]
push edi
push 0
lea eax, [ebp - 0x10]
push eax
call fcn.0040b8e6
mov esi, eax
test esi, esi
jl 0x40b6e6
jmp 0x40b340
cmp dword [ebp + 0x14], esi
jne 0x40b59b
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.0040b79d
mov dword [ebp + 8], eax
jmp 0x40b5a2
mov dword [ebp + 8], 2
cmp dword [ebp + 8], esi
je 0x40b5ae
mov dword [ebp + 0x14], 1
push 0x104
push edi
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ebx, dword [ebp - 0x14]
push edi
mov ecx, ebx
call fcn.0040ae25
mov esi, eax
test esi, esi
jl 0x40b6e6
push edi
mov ecx, ebx
call fcn.0040b807
mov esi, eax
test esi, esi
jl 0x40b6e6
cmp byte [edi], 0x7b
jne 0x40b61f
push dword [ebp + 0x14]
mov ecx, ebx
push 0
push dword [ebp - 0x10]
push edi
call fcn.0040b211
mov esi, eax
test esi, esi
jge 0x40b60d
cmp dword [ebp + 0x14], 0
je 0x40b6e6
push edi
mov ecx, ebx
call fcn.0040ae25
mov esi, eax
test esi, esi
jl 0x40b6e6
cmp dword [ebp + 8], 2
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 0x14], eax
je 0x40b37f
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x40b646
cmp eax, ebx
jne 0x40b37f
push dword [ebp + 8]
jmp 0x40b6de
cmp dword [ebp - 0x1c], ebx
je 0x40b69f
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
call fcn.0040b7d2
test eax, eax
je 0x40b69f
mov ebx, 0x41e50c
push dword [ebx]
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40b37f
add ebx, 4
cmp ebx, str.TypeLib
jl 0x40b65f
cmp dword [ebp - 0x18], 0
je 0x40b37f
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040b85c
jmp 0x40b37f
cmp dword [ebp - 0x10], ebx
je 0x40b6bb
push dword [ebp - 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebx
and dword [ebp - 0x10], 0
test eax, eax
jne 0x40b75d
cmp dword [ebp - 0x18], 0
je 0x40b37f
lea eax, [ebp - 0x124]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x40b37f
push eax
call fcn.0040b773
pop ecx
mov esi, eax
cmp dword [ebp - 0x10], 0
je 0x40b6f5
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 0x10
xor esi, esi
cmp dword [ebp + 8], esi
je 0x40b71b
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp + 8], esi
cmp dword [ebp - 0x10], esi
je 0x40b729
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x40b6f7
push eax
call fcn.0040b773
pop ecx
mov esi, eax
cmp dword [ebp + 8], ebx
je 0x40b6e6
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40b6e6
cmp dword [ebp - 0x10], 0
jmp 0x40b71e
push eax
call fcn.0040b773
pop ecx
mov esi, eax
cmp dword [ebp - 0x10], ebx
jmp 0x40b6ea
push eax
call fcn.0040b773
cmp dword [ebp - 0x10], 0
pop ecx
mov esi, eax
je 0x40b6f5
push dword [ebp - 0x10]
call ebx
jmp 0x40b6f5