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

Disassembly:
mov eax, 0x41d117
call fcn.00412998
sub esp, 0x224
and dword [ebp - 0x14], 0
push esi
push edi
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
and dword [ebp - 4], 0
push edi
mov dword [ebp - 0x24], eax
call fcn.00406c9a
mov esi, eax
test esi, esi
jl 0x40754e
push ebx
jmp 0x40750b
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.Delete
push edi
mov dword [ebp - 0x1c], 1
call esi
mov ebx, eax
neg ebx
push str.ForceRemove
sbb ebx, ebx
push edi
inc ebx
call esi
test eax, eax
je 0x4070f2
test ebx, ebx
je 0x4071a1
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00406c9a
mov esi, eax
test esi, esi
jl 0x40754d
cmp dword [ebp + 0x10], 0
je 0x4071a1
and dword [ebp + 8], 0
mov cl, byte [edi]
mov byte [ebp - 4], 1
mov eax, edi
jmp 0x40712b
cmp cl, 0x5c
je 0x407131
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [eax]
test cl, cl
jne 0x40711d
jmp 0x407139
test eax, eax
jne 0x407516
mov esi, 0x41e4e8
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x407169
add esi, 4
cmp esi, str.TypeLib
jl 0x40713e
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [ebp + 8]
mov dword [ebp + 8], eax
call fcn.00407600
and dword [ebp + 8], 0
test ebx, ebx
je 0x407195
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00406c9a
mov esi, eax
test esi, esi
jl 0x407525
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004075b0
mov esi, eax
lea ecx, [ebp + 8]
test esi, esi
jmp 0x407241
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call fcn.004013c8
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4071c7
mov ecx, dword [ebp - 0x10]
and dword [ebp - 0x1c], eax
push edi
call fcn.00406c9a
mov esi, eax
test esi, esi
jl 0x40754d
push 0x41e5d8
push edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4072ad
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x230]
push eax
call fcn.00406c9a
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jl 0x40754d
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00406c9a
mov esi, eax
cmp esi, ebx
jl 0x40754d
cmp byte [edi], 0x3d
jne 0x40751e
cmp dword [ebp + 0x10], ebx
je 0x407250
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
push edi
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 2
call fcn.0040768a
mov esi, eax
mov dword [ebp - 0x20], ebx
lea ecx, [ebp - 0x20]
cmp esi, ebx
jl 0x407548
mov byte [ebp - 4], 0
jmp 0x4074c9
cmp dword [ebp + 0x14], ebx
jne 0x40729b
cmp dword [ebp - 0x1c], ebx
je 0x40729b
push 0x20006
push ebx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
call fcn.004013df
cmp eax, ebx
jne 0x40752a
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, ebx
je 0x407293
cmp eax, 2
jne 0x40752a
lea ecx, [ebp - 0x18]
call fcn.004013c8
mov ecx, dword [ebp - 0x10]
push edi
call fcn.004075b0
mov esi, eax
cmp esi, ebx
jmp 0x407509
mov cl, byte [edi]
mov eax, edi
jmp 0x4072c1
cmp cl, 0x5c
je 0x4072c7
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov cl, byte [eax]
test cl, cl
jne 0x4072b3
jmp 0x4072cf
cmp eax, esi
jne 0x40751e
cmp dword [ebp + 0x10], esi
je 0x407375
mov ebx, 0x2001f
push ebx
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
call fcn.004013df
test eax, eax
je 0x40733b
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
call fcn.004013df
test eax, eax
je 0x40733b
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
push ebx
push esi
push esi
push esi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x407536
lea ecx, [ebp - 0x14]
call fcn.004013c8
cmp eax, esi
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], ecx
jne 0x407536
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00406c9a
mov esi, eax
test esi, esi
jl 0x40754d
cmp byte [edi], 0x3d
jne 0x4074ce
mov ecx, dword [ebp - 0x10]
push edi
push 0
lea eax, [ebp - 0x14]
push eax
call fcn.0040768a
mov esi, eax
test esi, esi
jl 0x40754d
jmp 0x4074ce
cmp dword [ebp + 0x14], esi
jne 0x407390
push 0x20019
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
call fcn.004013df
mov dword [ebp - 0x18], eax
jmp 0x407397
mov dword [ebp - 0x18], 2
cmp dword [ebp - 0x18], esi
je 0x4073a3
mov dword [ebp + 0x14], 1
push 0x104
push edi
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ebx, dword [ebp - 0x10]
push edi
mov ecx, ebx
call fcn.00406c9a
mov esi, eax
test esi, esi
jl 0x40754d
push edi
mov ecx, ebx
call fcn.004075b0
mov esi, eax
test esi, esi
jl 0x40754d
cmp byte [edi], 0x7b
jne 0x407414
push dword [ebp + 0x14]
mov ecx, ebx
push 0
push dword [ebp - 0x14]
push edi
call fcn.00407086
mov esi, eax
test esi, esi
jge 0x407402
cmp dword [ebp + 0x14], 0
je 0x40754d
push edi
mov ecx, ebx
call fcn.00406c9a
mov esi, eax
test esi, esi
jl 0x40754d
cmp dword [ebp - 0x18], 2
mov eax, dword [ebp - 0x24]
mov dword [ebp + 0x14], eax
je 0x40750b
xor ebx, ebx
cmp dword [ebp - 0x18], ebx
je 0x407443
cmp eax, ebx
jne 0x40750b
push dword [ebp - 0x18]
call fcn.00407568
pop ecx
mov esi, eax
jmp 0x40754d
cmp dword [ebp - 0x24], ebx
je 0x407499
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
call fcn.0040757b
test eax, eax
je 0x407499
mov ebx, 0x41e4e8
push dword [ebx]
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40750b
add ebx, 4
cmp ebx, str.TypeLib
jl 0x40745c
cmp dword [ebp - 0x1c], 0
je 0x40750b
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x14]
call fcn.00407600
jmp 0x40750b
lea ecx, [ebp - 0x14]
call fcn.004013c8
cmp eax, ebx
jne 0x407536
cmp dword [ebp - 0x1c], ebx
je 0x40750b
lea eax, [ebp - 0x12c]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
and dword [ebp - 0x1c], 0
test eax, eax
jne 0x40753c
lea ecx, [ebp - 0x1c]
call fcn.004013c8
cmp dword [ebp + 0x10], 0
je 0x40750b
cmp byte [edi], 0x7b
jne 0x40750b
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x40750b
mov ecx, dword [ebp - 0x10]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x14]
push edi
call fcn.00407086
mov esi, eax
test esi, esi
jl 0x40754d
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00406c9a
mov esi, eax
test esi, esi
jl 0x40754d
cmp byte [edi], 0x7d
jne 0x4070c2
jmp 0x40754d
lea ecx, [ebp + 8]
call fcn.004013c8
mov esi, 0x80020009
jmp 0x40754d
lea ecx, [ebp + 8]
jmp 0x407548
push eax
call fcn.00407568
pop ecx
lea ecx, [ebp - 0x18]
jmp 0x407546
push eax
jmp 0x407436
push eax
call fcn.00407568
pop ecx
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.004013c8
pop ebx
lea ecx, [ebp - 0x14]
call fcn.004013c8
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x10