Function at 0x407fa8
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49a8ad
mov eax, dword fs:[0]
push eax
mov eax, 0x2260
call fcn.0042a280
mov eax, dword [0x4cf094]
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 ebx, ecx
mov dword [ebp - 0x226c], ecx
mov dword [ebp - 0x2230], ebx
mov dword [ebp - 0x222c], ecx
mov dword [ebp - 0x2228], ecx
mov dword [ebp - 4], ecx
mov ecx, eax
push edi
call fcn.00407e52
mov esi, eax
test esi, esi
js 0x40860c
push 0x7d
pop eax
cmp word [edi], ax
je 0x4085fb
xor eax, eax
inc eax
push str.Delete
push edi
mov dword [ebp - 0x2234], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push str.ForceRemove
sbb esi, esi
inc esi
push edi
mov dword [ebp - 0x2224], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x408063
test esi, esi
je 0x40812f
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00407e52
mov esi, eax
test esi, esi
js 0x4085fb
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x408131
push 0x5c
pop edx
mov ecx, edi
mov dword [ebp - 0x2240], esi
mov dword [ebp - 0x223c], esi
mov dword [ebp - 0x2238], esi
call fcn.00407464
test eax, eax
jne 0x4085f6
push edi
call fcn.00407b5e
test eax, eax
je 0x4080e8
mov eax, dword [ebp - 0x2220]
lea ecx, [ebp - 0x2240]
push edi
mov dword [ebp - 0x2240], eax
mov dword [ebp - 0x223c], esi
mov dword [ebp - 0x2238], esi
call fcn.00407c4e
mov dword [ebp - 0x2240], esi
mov dword [ebp - 0x223c], esi
mov dword [ebp - 0x2238], esi
cmp dword [ebp - 0x2224], esi
je 0x408127
mov ebx, dword [ebp - 0x221c]
mov ecx, ebx
push edi
call fcn.00407e52
mov esi, eax
test esi, esi
js 0x4085fb
push edi
mov ecx, ebx
call fcn.00407af7
mov esi, eax
test esi, esi
js 0x4085fb
xor ebx, ebx
mov dword [ebp - 0x223c], ebx
jmp 0x408555
mov dword [ebp - 0x223c], esi
jmp 0x408131
xor esi, esi
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40815d
mov ecx, dword [ebp - 0x221c]
push edi
mov dword [ebp - 0x2234], esi
call fcn.00407e52
mov esi, eax
test esi, esi
js 0x4085fb
push 0x4b99cc
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4082b4
mov ecx, dword [ebp - 0x221c]
lea eax, [ebp - 0x2218]
push eax
call fcn.00407e52
mov esi, eax
test esi, esi
js 0x4085fb
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00407e52
mov esi, eax
test esi, esi
js 0x4085fb
push 0x3d
pop eax
cmp word [edi], ax
jne 0x4085f6
cmp dword [ebp + 0x10], 0
je 0x408219
mov ecx, dword [ebp - 0x221c]
xor eax, eax
inc eax
xor ebx, ebx
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x2220]
mov dword [ebp - 0x225c], eax
lea eax, [ebp - 0x2218]
push edi
push eax
lea eax, [ebp - 0x225c]
mov dword [ebp - 0x2258], ebx
push eax
mov dword [ebp - 0x2254], ebx
call fcn.00407673
mov esi, eax
mov dword [ebp - 0x225c], ebx
mov dword [ebp - 0x2258], ebx
mov dword [ebp - 0x2254], ebx
test esi, esi
js 0x4085fb
mov byte [ebp - 4], bl
mov dword [ebp - 0x2258], ebx
jmp 0x408555
cmp dword [ebp + 0x14], 0
jne 0x408299
cmp dword [ebp - 0x2234], 0
je 0x408299
xor esi, esi
lea ecx, [ebp - 0x2250]
push 0x20006
push esi
push dword [ebp - 0x2220]
mov dword [ebp - 0x2250], esi
mov dword [ebp - 0x224c], esi
mov dword [ebp - 0x2248], esi
call fcn.00407bf0
test eax, eax
jne 0x4085d6
mov ebx, dword [ebp - 0x2250]
lea eax, [ebp - 0x2218]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x40827c
cmp eax, 2
jne 0x4085c6
test ebx, ebx
je 0x40828d
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2250], esi
mov ebx, dword [ebp - 0x2230]
mov dword [ebp - 0x224c], esi
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00407af7
mov esi, eax
test esi, esi
js 0x4085fb
jmp 0x4084ae
push 0x5c
pop edx
mov ecx, edi
call fcn.00407464
test eax, eax
jne 0x4085f6
cmp dword [ebp + 0x10], eax
je 0x40835c
mov ebx, dword [ebp - 0x2220]
lea ecx, [ebp - 0x2230]
push 0x2001f
push edi
push ebx
call fcn.00407bf0
test eax, eax
je 0x408319
push 0x20019
push edi
push ebx
lea ecx, [ebp - 0x2230]
call fcn.00407bf0
test eax, eax
je 0x408319
sub esp, 0x14
lea ecx, [ebp - 0x2230]
push edi
push ebx
call fcn.00407503
test eax, eax
jne 0x40845f
mov ebx, dword [ebp - 0x221c]
mov ecx, ebx
push edi
call fcn.00407e52
mov esi, eax
test esi, esi
js 0x4085fb
push 0x3d
pop eax
cmp word [edi], ax
jne 0x408355
push edi
xor eax, eax
mov ecx, ebx
push eax
lea eax, [ebp - 0x2230]
push eax
call fcn.00407673
mov esi, eax
test esi, esi
js 0x4085fb
xor ebx, ebx
jmp 0x408555
cmp dword [ebp + 0x14], 0
jne 0x408381
push 0x20019
push edi
push dword [ebp - 0x2220]
lea ecx, [ebp - 0x2230]
call fcn.00407bf0
mov ebx, dword [ebp - 0x2230]
jmp 0x408384
push 2
pop eax
mov ecx, dword [ebp + 0x14]
test eax, eax
push 1
mov dword [ebp - 0x2224], eax
pop eax
push 0xffffffffffffffff
cmovne ecx, eax
lea eax, [ebp - 0x218]
push edi
push 0x104
push eax
mov dword [ebp - 0x2244], ecx
call fcn.0044bd1f
push eax
call fcn.00407abc
mov ecx, dword [ebp - 0x221c]
add esp, 0x14
push edi
call fcn.00407e52
mov esi, eax
test esi, esi
js 0x4085fb
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00407af7
mov esi, eax
test esi, esi
js 0x4085fb
push 0x7b
pop eax
cmp word [edi], ax
jne 0x40844a
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x226c]
jne 0x4083f1
sub ecx, edx
xor eax, eax
sar ecx, 1
inc eax
cmp ecx, eax
jne 0x40844a
push dword [ebp - 0x2244]
mov ecx, dword [ebp - 0x221c]
xor eax, eax
push eax
push ebx
push edi
call fcn.00407fa8
mov esi, eax
test esi, esi
jns 0x408434
cmp dword [ebp - 0x2244], 0
je 0x4085fb
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00407e52
mov esi, eax
test esi, esi
js 0x4085fb
mov eax, dword [ebp - 0x2224]
cmp eax, 2
je 0x4084ae
test eax, eax
je 0x40846d
cmp dword [ebp + 0x14], 0
jne 0x4084ae
mov ecx, eax
call fcn.00407e44
mov esi, eax
jmp 0x4085fb
cmp dword [ebp + 0x14], 0
je 0x4084c2
push ebx
call fcn.00407d23
test eax, eax
je 0x4084c2
lea eax, [ebp - 0x218]
push eax
call fcn.00407b5e
test eax, eax
je 0x4084ae
cmp dword [ebp - 0x2234], 0
je 0x4084ae
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2230]
call fcn.00407c4e
mov ebx, dword [ebp - 0x2230]
xor eax, eax
inc eax
push 0x7d
pop ecx
cmp word [edi], cx
jne 0x40802e
jmp 0x4085fb
push ebx
call fcn.00407d23
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x2224], ecx
test ebx, ebx
je 0x4084ed
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov ebx, ecx
mov ecx, dword [ebp - 0x2224]
mov dword [ebp - 0x2230], ebx
xor edx, edx
mov dword [ebp - 0x222c], edx
test eax, eax
jne 0x40845f
cmp dword [ebp - 0x2234], edx
je 0x4084ae
test ecx, ecx
jne 0x4084ae
mov eax, dword [ebp - 0x2220]
lea ecx, [ebp - 0x2268]
mov dword [ebp - 0x2268], eax
xor ebx, ebx
lea eax, [ebp - 0x218]
mov dword [ebp - 0x2264], ebx
push eax
mov dword [ebp - 0x2260], ebx
call fcn.00407dcb
mov dword [ebp - 0x2268], ebx
mov dword [ebp - 0x2264], ebx
mov dword [ebp - 0x2260], ebx
test eax, eax
jne 0x40845f
mov dword [ebp - 0x2264], ebx
cmp dword [ebp + 0x10], 0
je 0x4084a8
push 0x7b
pop eax
cmp word [edi], ax
jne 0x4084a8
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x408570
sub ecx, edx
xor eax, eax
sar ecx, 1
inc eax
cmp ecx, eax
jne 0x4085bb
mov ecx, dword [ebp - 0x221c]
push ebx
push dword [ebp + 0x10]
mov ebx, dword [ebp - 0x2230]
push ebx
push edi
call fcn.00407fa8
mov esi, eax
test esi, esi
js 0x4085fb
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.00407e52
mov esi, eax
test esi, esi
jns 0x4084ae
jmp 0x4085fb
mov ebx, dword [ebp - 0x2230]
jmp 0x4084b1
mov ecx, eax
call fcn.00407e44
mov esi, eax
test ebx, ebx
je 0x4085fb
push ebx
jmp 0x4085ee
mov ecx, eax
call fcn.00407e44
cmp dword [ebp - 0x2250], 0
mov esi, eax
je 0x4085fb
push dword [ebp - 0x2250]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4085fb
mov esi, 0x80020009
mov ecx, dword [ebp - 0x2230]
test ecx, ecx
je 0x40860c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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.00428f89
mov esp, ebp
pop ebp
ret 0x10