Function at 0x4087e1
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41cb67
mov eax, dword fs:[0]
push eax
mov eax, 0x225c
call fcn.0041be80
mov eax, dword [0x42800c]
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 dword [ebp - 0x2258], ecx
mov eax, dword [ebp + 0xc]
lea edi, [ebp - 0x2254]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x225c], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp - 0x2268], eax
mov dword [ebp - 0x2254], eax
mov dword [ebp - 0x2250], eax
mov dword [ebp - 0x224c], eax
push ebx
mov dword [ebp - 4], eax
mov edi, ecx
call fcn.0040868b
mov esi, eax
test esi, esi
js 0x408e27
push 0x7d
pop eax
cmp word [ebx], ax
je 0x408e27
xor eax, eax
inc eax
push str.Delete
push ebx
mov dword [ebp - 0x2260], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push str.ForceRemove
sbb esi, esi
inc esi
push ebx
mov dword [ebp - 0x2264], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4088a3
test esi, esi
je 0x408984
push ebx
mov ecx, edi
call fcn.0040868b
mov esi, eax
test esi, esi
js 0x408e27
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x408986
xor eax, eax
lea edi, [ebp - 0x2224]
stosd dword es:[edi], eax
mov ecx, ebx
push 0x5c
pop edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x2224], esi
mov dword [ebp - 0x2220], esi
mov dword [ebp - 0x221c], esi
call fcn.00407d70
test eax, eax
jne 0x408e17
push ebx
call fcn.00408435
test eax, eax
je 0x40892f
mov eax, dword [ebp - 0x225c]
lea ecx, [ebp - 0x2224]
push ebx
mov dword [ebp - 0x2224], eax
mov dword [ebp - 0x2220], esi
mov dword [ebp - 0x221c], esi
call fcn.00408464
mov dword [ebp - 0x2224], esi
mov dword [ebp - 0x2220], esi
mov dword [ebp - 0x221c], esi
cmp dword [ebp - 0x2264], esi
je 0x408971
mov edi, dword [ebp - 0x2258]
mov ecx, edi
push ebx
call fcn.0040868b
mov esi, eax
test esi, esi
js 0x408e0f
push ebx
mov ecx, edi
call fcn.004083ce
lea ecx, [ebp - 0x2224]
mov esi, eax
call fcn.00401dbb
test esi, esi
js 0x408e27
jmp 0x408da4
lea ecx, [ebp - 0x2224]
call fcn.00401dbb
mov edi, dword [ebp - 0x2258]
jmp 0x408986
xor esi, esi
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4089ae
push ebx
mov ecx, edi
mov dword [ebp - 0x2260], esi
call fcn.0040868b
mov esi, eax
test esi, esi
js 0x408e27
push 0x42538c
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x408b01
lea eax, [ebp - 0x2218]
mov ecx, edi
push eax
call fcn.0040868b
mov esi, eax
test esi, esi
js 0x408e27
push ebx
mov ecx, edi
call fcn.0040868b
mov esi, eax
test esi, esi
js 0x408e27
push 0x3d
pop eax
cmp word [ebx], ax
jne 0x408e22
cmp dword [ebp + 0x10], 0
je 0x408a76
xor eax, eax
lea edi, [ebp - 0x2230]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x225c]
xor ecx, ecx
mov edi, dword [ebp - 0x2258]
inc ecx
mov byte [ebp - 4], cl
mov ecx, edi
mov dword [ebp - 0x2230], eax
xor eax, eax
mov dword [ebp - 0x222c], eax
mov dword [ebp - 0x2228], eax
lea eax, [ebp - 0x2218]
push ebx
push eax
lea eax, [ebp - 0x2230]
push eax
call fcn.00407f20
mov esi, eax
lea ecx, [ebp - 0x2230]
xor eax, eax
mov dword [ebp - 0x2230], eax
mov dword [ebp - 0x222c], eax
mov dword [ebp - 0x2228], eax
test esi, esi
js 0x408e61
mov byte [ebp - 4], al
call fcn.00401dbb
jmp 0x408da4
cmp dword [ebp + 0x14], 0
jne 0x408af4
cmp dword [ebp - 0x2260], 0
je 0x408af4
xor eax, eax
lea edi, [ebp - 0x2248]
stosd dword es:[edi], eax
lea ecx, [ebp - 0x2248]
push 0x20006
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
push eax
push dword [ebp - 0x225c]
mov dword [ebp - 0x2248], eax
mov dword [ebp - 0x2244], eax
mov dword [ebp - 0x2240], eax
call fcn.00401d42
test eax, eax
jne 0x408e52
lea eax, [ebp - 0x2218]
push eax
push dword [ebp - 0x2248]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x408ae3
cmp eax, 2
jne 0x408e52
lea ecx, [ebp - 0x2248]
call fcn.00401dbb
mov edi, dword [ebp - 0x2258]
push ebx
mov ecx, edi
call fcn.004083ce
jmp 0x408df3
push 0x5c
pop edx
mov ecx, ebx
call fcn.00407d70
test eax, eax
jne 0x408e22
cmp dword [ebp + 0x10], eax
je 0x408b9d
mov esi, dword [ebp - 0x225c]
lea ecx, [ebp - 0x2254]
push 0x2001f
push ebx
push esi
call fcn.00401d42
test eax, eax
je 0x408b66
push 0x20019
push ebx
push esi
lea ecx, [ebp - 0x2254]
call fcn.00401d42
test eax, eax
je 0x408b66
sub esp, 0x14
lea ecx, [ebp - 0x2254]
push ebx
push esi
call fcn.00407d9c
test eax, eax
jne 0x408e77
push ebx
mov ecx, edi
call fcn.0040868b
mov esi, eax
test esi, esi
js 0x408e27
push 0x3d
pop eax
cmp word [ebx], ax
jne 0x408da4
push ebx
xor eax, eax
mov ecx, edi
push eax
lea eax, [ebp - 0x2254]
push eax
call fcn.00407f20
mov esi, eax
jmp 0x408964
cmp dword [ebp + 0x14], 0
jne 0x408bbe
push 0x20019
push ebx
push dword [ebp - 0x225c]
lea ecx, [ebp - 0x2254]
call fcn.00401d42
mov edi, eax
jmp 0x408bc1
push 2
pop edi
mov eax, dword [ebp + 0x14]
test edi, edi
push 1
pop ecx
push 0xffffffffffffffff
cmovne eax, ecx
push ebx
mov dword [ebp - 0x2264], eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0040f9f3
push eax
call fcn.00402137
mov ecx, dword [ebp - 0x2258]
add esp, 0x14
push ebx
call fcn.0040868b
mov esi, eax
test esi, esi
js 0x408e27
mov ecx, dword [ebp - 0x2258]
push ebx
call fcn.004083ce
mov esi, eax
test esi, esi
js 0x408e27
push 0x7b
pop eax
cmp word [ebx], ax
jne 0x408c86
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x2268]
jne 0x408c28
sub ecx, edx
xor eax, eax
sar ecx, 1
inc eax
cmp ecx, eax
jne 0x408c86
push dword [ebp - 0x2264]
mov ecx, dword [ebp - 0x2258]
xor eax, eax
push eax
push dword [ebp - 0x2254]
push ebx
call fcn.004087e1
mov esi, eax
test esi, esi
jns 0x408c70
cmp dword [ebp - 0x2264], 0
je 0x408e27
mov ecx, dword [ebp - 0x2258]
push ebx
call fcn.0040868b
mov esi, eax
test esi, esi
js 0x408e27
cmp edi, 2
je 0x408df9
test edi, edi
je 0x408cab
cmp dword [ebp + 0x14], 0
jne 0x408df9
mov ecx, edi
call fcn.0040867d
mov esi, eax
jmp 0x408e27
cmp dword [ebp + 0x14], 0
je 0x408cf8
push dword [ebp - 0x2254]
call fcn.00408565
test eax, eax
je 0x408cf8
lea eax, [ebp - 0x218]
push eax
call fcn.00408435
test eax, eax
je 0x408df9
cmp dword [ebp - 0x2260], 0
je 0x408df9
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2254]
call fcn.00408464
jmp 0x408df9
push dword [ebp - 0x2254]
call fcn.00408565
mov ecx, dword [ebp - 0x2254]
mov edi, eax
xor eax, eax
test ecx, ecx
je 0x408d20
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [ebp - 0x2254], ecx
xor ecx, ecx
mov dword [ebp - 0x2250], ecx
test eax, eax
jne 0x408e77
cmp dword [ebp - 0x2260], ecx
je 0x408dfb
test edi, edi
jne 0x408dfb
lea edi, [ebp - 0x223c]
stosd dword es:[edi], eax
lea ecx, [ebp - 0x223c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x225c]
xor edi, edi
mov dword [ebp - 0x223c], eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x2238], edi
mov dword [ebp - 0x2234], edi
call fcn.00408604
mov dword [ebp - 0x223c], edi
mov dword [ebp - 0x2238], edi
mov dword [ebp - 0x2234], edi
test eax, eax
jne 0x408e68
lea ecx, [ebp - 0x223c]
call fcn.00401dbb
mov edi, dword [ebp - 0x2258]
cmp dword [ebp + 0x10], 0
je 0x408df9
push 0x7b
pop eax
cmp word [ebx], ax
jne 0x408df9
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x2268]
jne 0x408db7
sub ecx, edx
xor eax, eax
sar ecx, 1
inc eax
cmp ecx, eax
jne 0x408dfc
xor eax, eax
mov ecx, edi
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x2254]
push ebx
call fcn.004087e1
mov esi, eax
test esi, esi
js 0x408e27
push ebx
mov ecx, edi
call fcn.0040868b
mov esi, eax
test esi, esi
js 0x408e27
xor eax, eax
inc eax
push 0x7d
pop ecx
cmp word [ebx], cx
je 0x408e27
mov edi, dword [ebp - 0x2258]
jmp 0x40886e
lea ecx, [ebp - 0x2224]
jmp 0x408e61
lea ecx, [ebp - 0x2224]
call fcn.00401dbb
mov esi, 0x80020009
lea ecx, [ebp - 0x2254]
call fcn.00401dbb
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.00409765
mov esp, ebp
pop ebp
ret 0x10
mov ecx, eax
call fcn.0040867d
lea ecx, [ebp - 0x2248]
mov esi, eax
call fcn.00401dbb
jmp 0x408e27
mov ecx, eax
call fcn.0040867d
lea ecx, [ebp - 0x223c]
jmp 0x408e5f
mov ecx, eax
jmp 0x408c9f