Function at 0x40aa21
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x446ee6
mov eax, dword fs:[0]
push eax
mov eax, 0x225c
call fcn.00414060
mov eax, dword [0x462114]
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, ecx
mov dword [ebp - 0x221c], eax
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2220], ecx
xor ecx, ecx
mov dword [ebp - 0x2244], ecx
mov dword [ebp - 0x222c], ecx
mov dword [ebp - 0x2228], ecx
mov dword [ebp - 0x2224], ecx
mov dword [ebp - 4], ecx
mov ecx, eax
push edi
call fcn.0040a8d7
mov esi, eax
test esi, esi
js 0x40b005
push 0x7d
pop eax
cmp word [edi], ax
je 0x40b005
xor eax, eax
inc eax
push str.Delete
push edi
mov dword [ebp - 0x2230], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x4580ac
sbb ebx, ebx
push edi
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40aad4
test ebx, ebx
je 0x40ab98
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.0040a8d7
mov esi, eax
test esi, esi
js 0x40b005
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x40ab9a
push 0x5c
pop edx
mov ecx, edi
mov dword [ebp - 0x223c], esi
mov dword [ebp - 0x2238], esi
mov dword [ebp - 0x2234], esi
call fcn.00409f7f
test eax, eax
jne 0x40aff5
push edi
call fcn.0040a598
test eax, eax
je 0x40ab4d
mov eax, dword [ebp - 0x2220]
lea ecx, [ebp - 0x223c]
push edi
mov dword [ebp - 0x223c], eax
call fcn.0040a686
mov dword [ebp - 0x223c], esi
mov dword [ebp - 0x2238], esi
mov dword [ebp - 0x2234], esi
test ebx, ebx
je 0x40ab8b
mov ebx, dword [ebp - 0x221c]
mov ecx, ebx
push edi
call fcn.0040a8d7
mov esi, eax
test esi, esi
js 0x40afed
push edi
mov ecx, ebx
call fcn.0040a533
lea ecx, [ebp - 0x223c]
mov esi, eax
call fcn.0040a7df
test esi, esi
js 0x40b005
jmp 0x40af87
lea ecx, [ebp - 0x223c]
call fcn.0040a7df
jmp 0x40ab9a
xor esi, esi
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ebx, dword [ebp - 0x221c]
test eax, eax
jne 0x40abc8
push edi
mov ecx, ebx
mov dword [ebp - 0x2230], esi
call fcn.0040a8d7
mov esi, eax
test esi, esi
js 0x40b005
push 0x4580a4
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40acf9
lea eax, [ebp - 0x2218]
mov ecx, ebx
push eax
call fcn.0040a8d7
mov esi, eax
test esi, esi
js 0x40b005
push edi
mov ecx, ebx
call fcn.0040a8d7
mov esi, eax
test esi, esi
js 0x40b005
push 0x3d
pop eax
cmp word [edi], ax
jne 0x40b000
cmp dword [ebp + 0x10], 0
je 0x40ac7f
mov eax, dword [ebp - 0x2220]
xor ecx, ecx
inc ecx
mov byte [ebp - 4], cl
mov ecx, ebx
mov dword [ebp - 0x2250], eax
xor eax, eax
mov dword [ebp - 0x224c], eax
mov dword [ebp - 0x2248], eax
lea eax, [ebp - 0x2218]
push edi
push eax
lea eax, [ebp - 0x2250]
push eax
call fcn.0040a08c
mov esi, eax
lea ecx, [ebp - 0x2250]
xor eax, eax
mov dword [ebp - 0x2250], eax
mov dword [ebp - 0x224c], eax
mov dword [ebp - 0x2248], eax
test esi, esi
js 0x40b03d
mov byte [ebp - 4], al
call fcn.0040a7df
jmp 0x40af87
cmp dword [ebp + 0x14], 0
jne 0x40acec
cmp dword [ebp - 0x2230], 0
je 0x40acec
xor eax, eax
lea ecx, [ebp - 0x225c]
push 0x20006
push eax
push dword [ebp - 0x2220]
mov dword [ebp - 0x225c], eax
mov dword [ebp - 0x2258], eax
mov dword [ebp - 0x2254], eax
call fcn.0040a62a
test eax, eax
jne 0x40b02e
lea eax, [ebp - 0x2218]
push eax
push dword [ebp - 0x225c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x40ace1
cmp eax, 2
jne 0x40b02e
lea ecx, [ebp - 0x225c]
call fcn.0040a7df
push edi
mov ecx, ebx
call fcn.0040a533
jmp 0x40afd6
push 0x5c
pop edx
mov ecx, edi
call fcn.00409f7f
test eax, eax
jne 0x40b000
cmp dword [ebp + 0x10], eax
je 0x40ad95
mov esi, dword [ebp - 0x2220]
lea ecx, [ebp - 0x222c]
push 0x2001f
push edi
push esi
call fcn.0040a62a
test eax, eax
je 0x40ad5e
push 0x20019
push edi
push esi
lea ecx, [ebp - 0x222c]
call fcn.0040a62a
test eax, eax
je 0x40ad5e
sub esp, 0x14
lea ecx, [ebp - 0x222c]
push edi
push esi
call fcn.00409fb9
test eax, eax
jne 0x40b053
push edi
mov ecx, ebx
call fcn.0040a8d7
mov esi, eax
test esi, esi
js 0x40b005
push 0x3d
pop eax
cmp word [edi], ax
jne 0x40af87
push edi
xor eax, eax
mov ecx, ebx
push eax
lea eax, [ebp - 0x222c]
push eax
call fcn.0040a08c
mov esi, eax
jmp 0x40ab7e
cmp dword [ebp + 0x14], 0
jne 0x40adb6
push 0x20019
push edi
push dword [ebp - 0x2220]
lea ecx, [ebp - 0x222c]
call fcn.0040a62a
mov ebx, eax
jmp 0x40adb9
push 2
pop ebx
mov eax, dword [ebp + 0x14]
test ebx, ebx
push 1
pop ecx
push 0xffffffffffffffff
cmovne eax, ecx
push edi
mov dword [ebp - 0x2240], eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0041b169
push eax
call fcn.00408e87
mov ecx, dword [ebp - 0x221c]
add esp, 0x14
push edi
call fcn.0040a8d7
mov esi, eax
test esi, esi
js 0x40b005
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.0040a533
mov esi, eax
test esi, esi
js 0x40b005
push 0x7b
pop eax
cmp word [edi], ax
jne 0x40ae7e
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x2244]
jne 0x40ae20
sub ecx, edx
xor eax, eax
sar ecx, 1
inc eax
cmp ecx, eax
jne 0x40ae7e
push dword [ebp - 0x2240]
mov ecx, dword [ebp - 0x221c]
xor eax, eax
push eax
push dword [ebp - 0x222c]
push edi
call fcn.0040aa21
mov esi, eax
test esi, esi
jns 0x40ae68
cmp dword [ebp - 0x2240], 0
je 0x40b005
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.0040a8d7
mov esi, eax
test esi, esi
js 0x40b005
cmp ebx, 2
je 0x40afdc
test ebx, ebx
je 0x40aea3
cmp dword [ebp + 0x14], 0
jne 0x40afdc
mov ecx, ebx
call fcn.0040a8c9
mov esi, eax
jmp 0x40b005
cmp dword [ebp + 0x14], 0
je 0x40aef0
push dword [ebp - 0x222c]
call fcn.0040a7aa
test eax, eax
je 0x40aef0
lea eax, [ebp - 0x218]
push eax
call fcn.0040a598
test eax, eax
je 0x40afdc
cmp dword [ebp - 0x2230], 0
je 0x40afdc
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x222c]
call fcn.0040a686
jmp 0x40afdc
push dword [ebp - 0x222c]
call fcn.0040a7aa
mov ecx, dword [ebp - 0x222c]
mov ebx, eax
xor eax, eax
test ecx, ecx
je 0x40af18
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [ebp - 0x222c], ecx
xor ecx, ecx
mov dword [ebp - 0x2228], ecx
test eax, eax
jne 0x40b053
cmp dword [ebp - 0x2230], ecx
je 0x40afdc
test ebx, ebx
jne 0x40afdc
mov eax, dword [ebp - 0x2220]
mov dword [ebp - 0x2268], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x2264], ecx
mov dword [ebp - 0x2260], ecx
lea ecx, [ebp - 0x2268]
push eax
call fcn.0040a850
xor ecx, ecx
mov dword [ebp - 0x2268], ecx
test eax, eax
jne 0x40b044
lea ecx, [ebp - 0x2268]
call fcn.0040a7df
mov ebx, dword [ebp - 0x221c]
cmp dword [ebp + 0x10], 0
je 0x40afdc
push 0x7b
pop eax
cmp word [edi], ax
jne 0x40afdc
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x2244]
jne 0x40af9a
sub ecx, edx
xor eax, eax
sar ecx, 1
inc eax
cmp ecx, eax
jne 0x40afdf
xor eax, eax
mov ecx, ebx
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x222c]
push edi
call fcn.0040aa21
mov esi, eax
test esi, esi
js 0x40b005
push edi
mov ecx, ebx
call fcn.0040a8d7
mov esi, eax
test esi, esi
js 0x40b005
xor eax, eax
inc eax
push 0x7d
pop ecx
cmp word [edi], cx
jne 0x40aaa5
jmp 0x40b005
lea ecx, [ebp - 0x223c]
jmp 0x40b03d
lea ecx, [ebp - 0x223c]
call fcn.0040a7df
mov esi, 0x80020009
lea ecx, [ebp - 0x222c]
call fcn.0040a7df
mov eax, esi
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.0041345a
leave
ret 0x10
mov ecx, eax
call fcn.0040a8c9
lea ecx, [ebp - 0x225c]
mov esi, eax
call fcn.0040a7df
jmp 0x40b005
mov ecx, eax
call fcn.0040a8c9
lea ecx, [ebp - 0x2268]
jmp 0x40b03b
mov ecx, eax
jmp 0x40ae97