Function at 0x408b16
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2254
call fcn.00411c10
mov eax, dword [0x41d060]
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
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2220], eax
mov eax, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x223c], eax
push edi
mov eax, ebx
mov dword [ebp - 0x2214], ecx
call fcn.00408a00
mov edi, eax
test edi, edi
jl 0x408fce
cmp word [ebx], 0x7d
je 0x408fcc
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.Delete
push ebx
mov dword [ebp - 0x2228], 1
call edi
mov esi, eax
neg esi
push str.ForceRemove
sbb esi, esi
push ebx
inc esi
call edi
test eax, eax
je 0x408ba7
test esi, esi
je 0x408c61
mov ecx, dword [ebp - 0x2214]
mov eax, ebx
call fcn.00408a00
mov edi, eax
test edi, edi
jl 0x408fb7
xor edi, edi
cmp dword [ebp + 0x10], edi
je 0x408c63
push 0x5c
mov eax, ebx
mov dword [ebp - 0x2238], edi
mov dword [ebp - 0x2234], edi
call fcn.004082c7
pop ecx
test eax, eax
jne 0x40911e
push ebx
call fcn.00408799
test eax, eax
je 0x408c1b
mov eax, dword [ebp - 0x2220]
push ebx
lea ecx, [ebp - 0x2238]
mov dword [ebp - 0x2238], eax
mov dword [ebp - 0x2234], edi
call fcn.00408803
mov dword [ebp - 0x2238], edi
mov dword [ebp - 0x2234], edi
cmp esi, edi
je 0x408c59
mov ecx, dword [ebp - 0x2214]
mov eax, ebx
call fcn.00408a00
mov edi, eax
test edi, edi
jl 0x408fb7
mov ecx, dword [ebp - 0x2214]
mov edi, ebx
call fcn.00408734
mov edi, eax
test edi, edi
jl 0x408fb7
and dword [ebp - 0x2234], 0
jmp 0x4090bf
mov dword [ebp - 0x2234], edi
jmp 0x408c63
xor edi, edi
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x408c92
and dword [ebp - 0x2228], eax
mov ecx, dword [ebp - 0x2214]
mov eax, ebx
call fcn.00408a00
mov edi, eax
test edi, edi
jl 0x408fb7
xor edi, edi
push 0x4191ac
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x408dc3
mov ecx, dword [ebp - 0x2214]
lea eax, [ebp - 0x2210]
call fcn.00408a00
mov edi, eax
test edi, edi
jl 0x408fb7
mov ecx, dword [ebp - 0x2214]
mov eax, ebx
call fcn.00408a00
mov edi, eax
test edi, edi
jl 0x408fb7
cmp word [ebx], 0x3d
jne 0x40913c
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x408d35
mov eax, dword [ebp - 0x2220]
mov ecx, dword [ebp - 0x2214]
mov dword [ebp - 0x224c], eax
push ebx
lea eax, [ebp - 0x2210]
push eax
lea edx, [ebp - 0x224c]
mov dword [ebp - 0x2248], esi
call fcn.004083d0
mov edi, eax
cmp edi, esi
mov dword [ebp - 0x224c], esi
mov dword [ebp - 0x2248], esi
jl 0x409192
mov dword [ebp - 0x2248], esi
jmp 0x4090bf
cmp dword [ebp + 0x14], esi
jne 0x408dad
cmp dword [ebp - 0x2228], esi
je 0x408dad
push esi
push dword [ebp - 0x2220]
mov eax, 0x20006
lea ecx, [ebp - 0x2230]
mov dword [ebp - 0x2230], esi
mov dword [ebp - 0x222c], esi
call fcn.004087c5
cmp eax, esi
jne 0x409145
lea eax, [ebp - 0x2210]
push eax
push dword [ebp - 0x2230]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, esi
je 0x408d8d
cmp eax, 2
jne 0x409145
cmp dword [ebp - 0x2230], esi
je 0x408da7
push dword [ebp - 0x2230]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2230], esi
mov dword [ebp - 0x222c], esi
mov ecx, dword [ebp - 0x2214]
mov edi, ebx
call fcn.00408734
mov edi, eax
cmp edi, esi
jmp 0x409109
push 0x5c
mov eax, ebx
call fcn.004082c7
pop ecx
test eax, eax
jne 0x40911e
cmp dword [ebp + 0x10], edi
je 0x408eb6
push ebx
push dword [ebp - 0x2220]
mov esi, 0x2001f
mov eax, esi
lea ecx, [ebp - 0x221c]
call fcn.004087c5
test eax, eax
je 0x408e72
push ebx
push dword [ebp - 0x2220]
lea eax, [esi - 6]
lea ecx, [ebp - 0x221c]
call fcn.004087c5
test eax, eax
je 0x408e72
lea eax, [ebp - 0x2250]
push eax
lea eax, [ebp - 0x2228]
push eax
push edi
push esi
push edi
push edi
push edi
push ebx
push dword [ebp - 0x2220]
mov dword [ebp - 0x2228], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
jne 0x409169
xor eax, eax
cmp dword [ebp - 0x221c], edi
je 0x408e58
push dword [ebp - 0x221c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x2228]
mov dword [ebp - 0x221c], ecx
mov dword [ebp - 0x2218], edi
cmp eax, edi
jne 0x409169
mov ecx, dword [ebp - 0x2214]
mov eax, ebx
call fcn.00408a00
mov edi, eax
test edi, edi
jl 0x408fb7
cmp word [ebx], 0x3d
jne 0x4090bf
mov ecx, dword [ebp - 0x2214]
push ebx
push 0
lea edx, [ebp - 0x221c]
call fcn.004083d0
mov edi, eax
test edi, edi
jl 0x408fb7
jmp 0x4090bf
cmp dword [ebp + 0x14], edi
jne 0x408eda
push ebx
push dword [ebp - 0x2220]
mov eax, 0x20019
lea ecx, [ebp - 0x221c]
call fcn.004087c5
mov dword [ebp - 0x2224], eax
jmp 0x408ee4
mov dword [ebp - 0x2224], 2
cmp dword [ebp - 0x2224], edi
je 0x408ef3
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00409a49
push eax
call fcn.004086ff
mov ecx, dword [ebp - 0x2214]
add esp, 0x14
mov eax, ebx
call fcn.00408a00
mov edi, eax
test edi, edi
jl 0x408fb7
mov ecx, dword [ebp - 0x2214]
mov edi, ebx
call fcn.00408734
mov edi, eax
test edi, edi
jl 0x408fb7
cmp word [ebx], 0x7b
jne 0x408f82
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x408f82
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x2214]
push 0
push dword [ebp - 0x221c]
push ebx
call fcn.00408b16
mov edi, eax
test edi, edi
jge 0x408f6f
cmp dword [ebp + 0x14], 0
je 0x408fb7
mov ecx, dword [ebp - 0x2214]
mov eax, ebx
call fcn.00408a00
mov edi, eax
test edi, edi
jl 0x408fb7
cmp dword [ebp - 0x2224], 2
mov eax, dword [ebp - 0x223c]
mov dword [ebp + 0x14], eax
je 0x40910f
xor esi, esi
cmp dword [ebp - 0x2224], esi
je 0x408fdf
cmp eax, esi
jne 0x40910f
mov eax, dword [ebp - 0x2224]
call fcn.004089d1
mov edi, eax
cmp dword [ebp - 0x221c], 0
je 0x408fcc
push dword [ebp - 0x221c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409a3a
leave
ret 0x10
cmp eax, esi
je 0x40902a
push dword [ebp - 0x221c]
call fcn.0040892e
test eax, eax
je 0x40902a
lea eax, [ebp - 0x210]
push eax
call fcn.00408799
test eax, eax
je 0x40910f
cmp dword [ebp - 0x2228], 0
je 0x40910f
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x221c]
call fcn.00408803
jmp 0x40910f
push dword [ebp - 0x221c]
call fcn.0040892e
mov dword [ebp - 0x2224], eax
xor eax, eax
cmp dword [ebp - 0x221c], esi
je 0x409057
push dword [ebp - 0x221c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x221c], esi
mov dword [ebp - 0x2218], esi
cmp eax, esi
jne 0x40918b
cmp dword [ebp - 0x2228], esi
je 0x40910f
cmp dword [ebp - 0x2224], 0
jne 0x40910f
mov eax, dword [ebp - 0x2220]
and dword [ebp - 0x2240], 0
mov dword [ebp - 0x2244], eax
lea eax, [ebp - 0x210]
push eax
lea esi, [ebp - 0x2244]
call fcn.0040897a
and dword [ebp - 0x2244], 0
and dword [ebp - 0x2240], 0
test eax, eax
jne 0x408fb0
and dword [ebp - 0x2240], eax
cmp dword [ebp + 0x10], 0
je 0x40910f
cmp word [ebx], 0x7b
jne 0x40910f
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40910f
mov ecx, dword [ebp - 0x2214]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x221c]
push ebx
call fcn.00408b16
mov edi, eax
test edi, edi
jl 0x408fb7
mov ecx, dword [ebp - 0x2214]
mov eax, ebx
call fcn.00408a00
mov edi, eax
test edi, edi
jl 0x408fb7
cmp word [ebx], 0x7d
jne 0x408b74
jmp 0x408fb7
cmp dword [ebp - 0x221c], edi
je 0x409132
push dword [ebp - 0x221c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x408fce
cmp dword [ebp - 0x221c], 0
jmp 0x409124
call fcn.004089d1
mov edi, eax
cmp dword [ebp - 0x2230], esi
je 0x408fb7
push dword [ebp - 0x2230]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x408fb7
call fcn.004089d1
mov esi, eax
cmp dword [ebp - 0x221c], edi
je 0x409184
push dword [ebp - 0x221c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x408fce
call fcn.004089d1
mov edi, eax
cmp dword [ebp - 0x221c], esi
jmp 0x408fbe