Function at 0x40aa5a
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46b151
mov eax, dword fs:[0]
push eax
mov eax, 0x224c
call fcn.0045ff20
mov eax, dword [0x483260]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x221c], ecx
mov dword [ebp - 0x2220], eax
mov dword [ebp - 0x2228], esi
mov dword [ebp - 0x2224], esi
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x223c], eax
mov eax, ebx
mov dword [ebp - 4], esi
call fcn.0040a948
mov edi, eax
cmp edi, esi
jmp 0x40afdd
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.Delete
push ebx
mov dword [ebp - 0x2238], 1
call edi
mov esi, eax
neg esi
push str.ForceRemove
sbb esi, esi
push ebx
inc esi
call edi
test eax, eax
je 0x40aafb
test esi, esi
je 0x40abbd
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.0040a948
mov edi, eax
test edi, edi
jl 0x40b04b
cmp dword [ebp + 0x10], 0
je 0x40abbd
xor edi, edi
push 0x5c
mov eax, ebx
mov dword [ebp - 0x2234], edi
mov dword [ebp - 0x2230], edi
call fcn.0040a074
pop ecx
test eax, eax
jne 0x40afeb
push ebx
call fcn.0040a6f4
test eax, eax
je 0x40ab70
mov eax, dword [ebp - 0x2220]
push ebx
lea ecx, [ebp - 0x2234]
mov dword [ebp - 0x2234], eax
mov dword [ebp - 0x2230], edi
call fcn.0040a75e
mov dword [ebp - 0x2234], edi
mov dword [ebp - 0x2230], edi
cmp esi, edi
je 0x40abb2
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.0040a948
mov edi, eax
test edi, edi
jl 0x40affd
mov ecx, dword [ebp - 0x221c]
mov esi, ebx
call fcn.0040a68f
lea esi, [ebp - 0x2234]
mov edi, eax
call fcn.0040a880
test edi, edi
jl 0x40b04b
jmp 0x40af97
lea esi, [ebp - 0x2234]
call fcn.0040a880
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40abea
and dword [ebp - 0x2238], eax
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.0040a948
mov edi, eax
test edi, edi
jl 0x40b04b
push 0x475660
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40ad0a
mov ecx, dword [ebp - 0x221c]
lea eax, [ebp - 0x2218]
call fcn.0040a948
mov edi, eax
xor esi, esi
cmp edi, esi
jl 0x40b04b
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.0040a948
mov edi, eax
cmp edi, esi
jl 0x40b04b
cmp word [ebx], 0x3d
jne 0x40aff6
cmp dword [ebp + 0x10], esi
je 0x40ac95
mov eax, dword [ebp - 0x2220]
mov ecx, dword [ebp - 0x221c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x2244], eax
push ebx
lea eax, [ebp - 0x2218]
push eax
lea edx, [ebp - 0x2244]
mov dword [ebp - 0x2240], esi
call fcn.0040a391
mov edi, eax
mov dword [ebp - 0x2244], esi
mov dword [ebp - 0x2240], esi
cmp edi, esi
lea esi, [ebp - 0x2244]
jl 0x40b046
mov byte [ebp - 4], 0
jmp 0x40af92
cmp dword [ebp + 0x14], esi
jne 0x40acf8
cmp dword [ebp - 0x2238], esi
je 0x40acf8
push esi
push dword [ebp - 0x2220]
mov eax, 0x20006
lea ecx, [ebp - 0x224c]
mov dword [ebp - 0x224c], esi
mov dword [ebp - 0x2248], esi
call fcn.0040a720
cmp eax, esi
jne 0x40b005
lea eax, [ebp - 0x2218]
push eax
push dword [ebp - 0x224c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, esi
je 0x40aced
cmp eax, 2
jne 0x40b005
lea esi, [ebp - 0x224c]
call fcn.0040a880
mov ecx, dword [ebp - 0x221c]
mov esi, ebx
call fcn.0040a68f
jmp 0x40afd9
push 0x5c
mov eax, ebx
call fcn.0040a074
pop ecx
test eax, eax
jne 0x40aff6
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x40adb7
push ebx
push dword [ebp - 0x2220]
mov esi, 0x2001f
mov eax, esi
lea ecx, [ebp - 0x2228]
call fcn.0040a720
test eax, eax
je 0x40ad7b
push ebx
push dword [ebp - 0x2220]
lea eax, [esi - 6]
lea ecx, [ebp - 0x2228]
call fcn.0040a720
test eax, eax
je 0x40ad7b
push ebx
push dword [ebp - 0x2220]
mov eax, esi
lea ecx, [ebp - 0x2228]
call fcn.0040a09b
mov edi, eax
test edi, edi
jne 0x40b012
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.0040a948
mov edi, eax
test edi, edi
jl 0x40b04b
cmp word [ebx], 0x3d
jne 0x40af97
mov ecx, dword [ebp - 0x221c]
push ebx
push 0
lea edx, [ebp - 0x2228]
call fcn.0040a391
mov edi, eax
jmp 0x40aba5
cmp dword [ebp + 0x14], esi
jne 0x40addb
push ebx
push dword [ebp - 0x2220]
mov eax, 0x20019
lea ecx, [ebp - 0x2228]
call fcn.0040a720
mov dword [ebp - 0x222c], eax
jmp 0x40ade5
mov dword [ebp - 0x222c], 2
cmp dword [ebp - 0x222c], esi
je 0x40adf4
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0043fe71
push eax
call fcn.00402f30
mov ecx, dword [ebp - 0x221c]
add esp, 0x14
mov eax, ebx
call fcn.0040a948
mov edi, eax
test edi, edi
jl 0x40b04b
mov ecx, dword [ebp - 0x221c]
mov esi, ebx
call fcn.0040a68f
mov edi, eax
test edi, edi
jl 0x40b04b
cmp word [ebx], 0x7b
jne 0x40ae8f
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40ae8f
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x221c]
push 0
push dword [ebp - 0x2228]
push ebx
call fcn.0040aa5a
mov edi, eax
test edi, edi
jge 0x40ae78
cmp dword [ebp + 0x14], 0
je 0x40b04b
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.0040a948
mov edi, eax
test edi, edi
jl 0x40b04b
mov eax, dword [ebp - 0x223c]
mov dword [ebp + 0x14], eax
mov eax, dword [ebp - 0x222c]
cmp eax, 2
je 0x40afdf
test eax, eax
je 0x40aec4
cmp dword [ebp - 0x223c], 0
jne 0x40afdf
call fcn.0040a913
mov edi, eax
jmp 0x40b04b
cmp dword [ebp - 0x223c], 0
je 0x40af14
push dword [ebp - 0x2228]
call fcn.0040a840
test eax, eax
je 0x40af14
lea eax, [ebp - 0x218]
push eax
call fcn.0040a6f4
test eax, eax
je 0x40afdf
cmp dword [ebp - 0x2238], 0
je 0x40afdf
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2228]
call fcn.0040a75e
jmp 0x40afdf
push dword [ebp - 0x2228]
call fcn.0040a840
lea esi, [ebp - 0x2228]
mov dword [ebp - 0x2258], eax
call fcn.0040a880
xor ecx, ecx
mov dword [ebp - 0x222c], eax
cmp eax, ecx
jne 0x40b026
cmp dword [ebp - 0x2238], ecx
je 0x40afdf
cmp dword [ebp - 0x2258], ecx
jne 0x40afdf
mov eax, dword [ebp - 0x2220]
mov dword [ebp - 0x2254], eax
lea eax, [ebp - 0x218]
push eax
lea esi, [ebp - 0x2254]
mov dword [ebp - 0x2250], ecx
call fcn.0040a8a3
and dword [ebp - 0x2254], 0
and dword [ebp - 0x2250], 0
test eax, eax
jne 0x40b039
call fcn.0040a880
cmp dword [ebp + 0x10], 0
je 0x40afdf
cmp word [ebx], 0x7b
jne 0x40afdf
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x40afdf
mov ecx, dword [ebp - 0x221c]
push 0
push dword [ebp + 0x10]
push dword [ebp - 0x2228]
push ebx
call fcn.0040aa5a
mov edi, eax
test edi, edi
jl 0x40b04b
mov ecx, dword [ebp - 0x221c]
mov eax, ebx
call fcn.0040a948
mov edi, eax
test edi, edi
jl 0x40b04b
cmp word [ebx], 0x7d
jne 0x40aac8
jmp 0x40b04b
lea esi, [ebp - 0x2234]
call fcn.0040a880
mov edi, 0x80020009
jmp 0x40b04b
lea esi, [ebp - 0x2234]
jmp 0x40b046
call fcn.0040a913
lea esi, [ebp - 0x224c]
jmp 0x40b044
lea esi, [ebp - 0x2228]
call fcn.0040a880
mov eax, edi
call fcn.0040a913
jmp 0x40b058
lea esi, [ebp - 0x2228]
call fcn.0040a880
mov eax, dword [ebp - 0x222c]
jmp 0x40b01f
call fcn.0040a913
lea esi, [ebp - 0x2254]
mov edi, eax
call fcn.0040a880
lea esi, [ebp - 0x2228]
call fcn.0040a880
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043b2b9
leave
ret 0x10