Function at 0x4086d1
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f5f0
mov eax, dword fs:[0]
push eax
mov eax, 0x225c
call fcn.00420ed0
mov eax, dword [0x45706c]
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.00407bab
mov esi, eax
test esi, esi
js 0x408ccb
push 0x7d
pop eax
cmp word [edi], ax
je 0x408ccb
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 0x44da8c
sbb ebx, ebx
push edi
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x408784
test ebx, ebx
je 0x408854
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00407bab
mov esi, eax
test esi, esi
js 0x408ccb
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x408856
push 0x5c
pop edx
mov ecx, edi
mov dword [ebp - 0x223c], esi
mov dword [ebp - 0x2238], esi
mov dword [ebp - 0x2234], esi
call fcn.00407b56
test eax, eax
jne 0x408cbb
push edi
call fcn.004081de
test eax, eax
je 0x408809
mov eax, dword [ebp - 0x2220]
lea ecx, [ebp - 0x223c]
push edi
mov dword [ebp - 0x223c], eax
mov dword [ebp - 0x2238], esi
mov dword [ebp - 0x2234], esi
call fcn.00407565
mov dword [ebp - 0x223c], esi
mov dword [ebp - 0x2238], esi
mov dword [ebp - 0x2234], esi
test ebx, ebx
je 0x408847
mov ebx, dword [ebp - 0x221c]
mov ecx, ebx
push edi
call fcn.00407bab
mov esi, eax
test esi, esi
js 0x408cb3
push edi
mov ecx, ebx
call fcn.00408244
lea ecx, [ebp - 0x223c]
mov esi, eax
call fcn.00407453
test esi, esi
js 0x408ccb
jmp 0x408c4d
lea ecx, [ebp - 0x223c]
call fcn.00407453
jmp 0x408856
xor esi, esi
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ebx, dword [ebp - 0x221c]
test eax, eax
jne 0x408884
push edi
mov ecx, ebx
mov dword [ebp - 0x2230], esi
call fcn.00407bab
mov esi, eax
test esi, esi
js 0x408ccb
push 0x44da84
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4089b5
lea eax, [ebp - 0x2218]
mov ecx, ebx
push eax
call fcn.00407bab
mov esi, eax
test esi, esi
js 0x408ccb
push edi
mov ecx, ebx
call fcn.00407bab
mov esi, eax
test esi, esi
js 0x408ccb
push 0x3d
pop eax
cmp word [edi], ax
jne 0x408cc6
cmp dword [ebp + 0x10], 0
je 0x40893b
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.00407d01
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 0x408d05
mov byte [ebp - 4], al
call fcn.00407453
jmp 0x408c4d
cmp dword [ebp + 0x14], 0
jne 0x4089a8
cmp dword [ebp - 0x2230], 0
je 0x4089a8
xor eax, eax
lea ecx, [ebp - 0x2268]
push 0x20006
push eax
push dword [ebp - 0x2220]
mov dword [ebp - 0x2268], eax
mov dword [ebp - 0x2264], eax
mov dword [ebp - 0x2260], eax
call fcn.00407507
test eax, eax
jne 0x408cf6
lea eax, [ebp - 0x2218]
push eax
push dword [ebp - 0x2268]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x40899d
cmp eax, 2
jne 0x408cf6
lea ecx, [ebp - 0x2268]
call fcn.00407453
push edi
mov ecx, ebx
call fcn.00408244
jmp 0x408c9c
push 0x5c
pop edx
mov ecx, edi
call fcn.00407b56
test eax, eax
jne 0x408cc6
cmp dword [ebp + 0x10], eax
je 0x408a51
mov esi, dword [ebp - 0x2220]
lea ecx, [ebp - 0x222c]
push 0x2001f
push edi
push esi
call fcn.00407507
test eax, eax
je 0x408a1a
push 0x20019
push edi
push esi
lea ecx, [ebp - 0x222c]
call fcn.00407507
test eax, eax
je 0x408a1a
sub esp, 0x14
lea ecx, [ebp - 0x222c]
push edi
push esi
call fcn.0040746d
test eax, eax
jne 0x408d1b
push edi
mov ecx, ebx
call fcn.00407bab
mov esi, eax
test esi, esi
js 0x408ccb
push 0x3d
pop eax
cmp word [edi], ax
jne 0x408c4d
push edi
xor eax, eax
mov ecx, ebx
push eax
lea eax, [ebp - 0x222c]
push eax
call fcn.00407d01
mov esi, eax
jmp 0x40883a
cmp dword [ebp + 0x14], 0
jne 0x408a72
push 0x20019
push edi
push dword [ebp - 0x2220]
lea ecx, [ebp - 0x222c]
call fcn.00407507
mov ebx, eax
jmp 0x408a75
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.0042769a
push eax
call fcn.00401552
mov ecx, dword [ebp - 0x221c]
add esp, 0x14
push edi
call fcn.00407bab
mov esi, eax
test esi, esi
js 0x408ccb
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00408244
mov esi, eax
test esi, esi
js 0x408ccb
push 0x7b
pop eax
cmp word [edi], ax
jne 0x408b3a
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x2244]
jne 0x408adc
sub ecx, edx
xor eax, eax
sar ecx, 1
inc eax
cmp ecx, eax
jne 0x408b3a
push dword [ebp - 0x2240]
mov ecx, dword [ebp - 0x221c]
xor eax, eax
push eax
push dword [ebp - 0x222c]
push edi
call fcn.004086d1
mov esi, eax
test esi, esi
jns 0x408b24
cmp dword [ebp - 0x2240], 0
je 0x408ccb
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00407bab
mov esi, eax
test esi, esi
js 0x408ccb
cmp ebx, 2
je 0x408ca2
test ebx, ebx
je 0x408b5f
cmp dword [ebp + 0x14], 0
jne 0x408ca2
mov ecx, ebx
call fcn.00407197
mov esi, eax
jmp 0x408ccb
cmp dword [ebp + 0x14], 0
je 0x408bac
push dword [ebp - 0x222c]
call fcn.0040820d
test eax, eax
je 0x408bac
lea eax, [ebp - 0x218]
push eax
call fcn.004081de
test eax, eax
je 0x408ca2
cmp dword [ebp - 0x2230], 0
je 0x408ca2
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x222c]
call fcn.00407565
jmp 0x408ca2
push dword [ebp - 0x222c]
call fcn.0040820d
mov ecx, dword [ebp - 0x222c]
mov ebx, eax
xor eax, eax
test ecx, ecx
je 0x408bd4
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 0x408d1b
cmp dword [ebp - 0x2230], ecx
je 0x408ca2
test ebx, ebx
jne 0x408ca2
mov eax, dword [ebp - 0x2220]
lea ecx, [ebp - 0x225c]
mov dword [ebp - 0x225c], eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x2258], ebx
mov dword [ebp - 0x2254], ebx
call fcn.004073da
mov dword [ebp - 0x225c], ebx
mov dword [ebp - 0x2258], ebx
mov dword [ebp - 0x2254], ebx
test eax, eax
jne 0x408d0c
lea ecx, [ebp - 0x225c]
call fcn.00407453
mov ebx, dword [ebp - 0x221c]
cmp dword [ebp + 0x10], 0
je 0x408ca2
push 0x7b
pop eax
cmp word [edi], ax
jne 0x408ca2
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x2244]
jne 0x408c60
sub ecx, edx
xor eax, eax
sar ecx, 1
inc eax
cmp ecx, eax
jne 0x408ca5
xor eax, eax
mov ecx, ebx
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x222c]
push edi
call fcn.004086d1
mov esi, eax
test esi, esi
js 0x408ccb
push edi
mov ecx, ebx
call fcn.00407bab
mov esi, eax
test esi, esi
js 0x408ccb
xor eax, eax
inc eax
push 0x7d
pop ecx
cmp word [edi], cx
jne 0x408755
jmp 0x408ccb
lea ecx, [ebp - 0x223c]
jmp 0x408d05
lea ecx, [ebp - 0x223c]
call fcn.00407453
mov esi, 0x80020009
lea ecx, [ebp - 0x222c]
call fcn.00407453
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.0041fc33
mov esp, ebp
pop ebp
ret 0x10
mov ecx, eax
call fcn.00407197
lea ecx, [ebp - 0x2268]
mov esi, eax
call fcn.00407453
jmp 0x408ccb
mov ecx, eax
call fcn.00407197
lea ecx, [ebp - 0x225c]
jmp 0x408d03
mov ecx, eax
jmp 0x408b53