Function at 0x10008292
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10063d9e
mov eax, dword fs:[0]
push eax
mov eax, 0x225c
call fcn.10063390
mov eax, dword [0x1008a008]
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 - 0x222c], ecx
mov dword [ebp - 0x2230], ebx
mov dword [ebp - 0x2228], ecx
mov dword [ebp - 4], ecx
mov ecx, eax
push edi
call fcn.1000813c
mov esi, eax
test esi, esi
js 0x100088bc
push 0x7d
pop eax
cmp word [edi], ax
je 0x100088b1
xor eax, eax
push str.Delete
inc eax
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 0x10008347
test esi, esi
je 0x10008414
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.1000813c
mov esi, eax
test esi, esi
js 0x100088b1
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x10008416
push 0x5c
pop edx
mov ecx, edi
mov dword [ebp - 0x2240], esi
mov dword [ebp - 0x223c], esi
mov dword [ebp - 0x2238], esi
call fcn.10007743
test eax, eax
jne 0x100088ac
push edi
call fcn.10007e48
test eax, eax
je 0x100083cc
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.10007f38
mov dword [ebp - 0x2240], esi
mov dword [ebp - 0x223c], esi
mov dword [ebp - 0x2238], esi
cmp dword [ebp - 0x2224], esi
je 0x1000840c
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.1000813c
mov esi, eax
test esi, esi
js 0x100088b1
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.10007de1
mov esi, eax
test esi, esi
js 0x100088b1
and dword [ebp - 0x223c], 0
jmp 0x10008825
mov dword [ebp - 0x223c], esi
jmp 0x10008416
xor esi, esi
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10008442
mov ecx, dword [ebp - 0x221c]
push edi
mov dword [ebp - 0x2234], esi
call fcn.1000813c
mov esi, eax
test esi, esi
js 0x100088b1
push 0x1006eeec
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1000858d
mov ecx, dword [ebp - 0x221c]
lea eax, [ebp - 0x2218]
push eax
call fcn.1000813c
mov esi, eax
test esi, esi
js 0x100088b1
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.1000813c
mov esi, eax
test esi, esi
js 0x100088b1
push 0x3d
pop eax
cmp word [edi], ax
jne 0x100088ac
cmp dword [ebp + 0x10], 0
je 0x10008500
mov ecx, dword [ebp - 0x221c]
xor eax, eax
inc eax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x2220]
and dword [ebp - 0x2258], 0
and dword [ebp - 0x2254], 0
mov dword [ebp - 0x225c], eax
lea eax, [ebp - 0x2218]
push edi
push eax
lea eax, [ebp - 0x225c]
push eax
call fcn.10007953
xor ecx, ecx
mov esi, eax
mov dword [ebp - 0x225c], ecx
mov dword [ebp - 0x2258], ecx
mov dword [ebp - 0x2254], ecx
test esi, esi
js 0x100088b1
mov byte [ebp - 4], cl
mov dword [ebp - 0x2258], ecx
jmp 0x10008825
cmp dword [ebp + 0x14], 0
jne 0x1000857c
cmp dword [ebp - 0x2234], 0
je 0x1000857c
xor eax, eax
lea ecx, [ebp - 0x224c]
push 0x20006
push eax
push dword [ebp - 0x2220]
mov dword [ebp - 0x224c], eax
mov dword [ebp - 0x2248], eax
mov dword [ebp - 0x2244], eax
call fcn.10007eda
test eax, eax
jne 0x1000887b
mov esi, dword [ebp - 0x224c]
lea eax, [ebp - 0x2218]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x10008563
cmp eax, 2
jne 0x1000887b
test esi, esi
je 0x10008575
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x224c], 0
and dword [ebp - 0x2248], 0
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.10007de1
jmp 0x10008870
push 0x5c
pop edx
mov ecx, edi
call fcn.10007743
test eax, eax
jne 0x100088ac
cmp dword [ebp + 0x10], eax
je 0x10008638
mov ebx, dword [ebp - 0x2220]
lea ecx, [ebp - 0x2230]
push 0x2001f
push edi
push ebx
call fcn.10007eda
test eax, eax
je 0x100085f2
push 0x20019
push edi
push ebx
lea ecx, [ebp - 0x2230]
call fcn.10007eda
test eax, eax
je 0x100085f2
sub esp, 0x14
lea ecx, [ebp - 0x2230]
push edi
push ebx
call fcn.100077e2
test eax, eax
jne 0x1000889b
mov ebx, dword [ebp - 0x221c]
mov ecx, ebx
push edi
call fcn.1000813c
mov esi, eax
test esi, esi
js 0x100088a4
push 0x3d
pop eax
cmp word [edi], ax
jne 0x1000862d
push edi
push 0
lea eax, [ebp - 0x2230]
mov ecx, ebx
push eax
call fcn.10007953
mov esi, eax
test esi, esi
js 0x100088a4
mov ebx, dword [ebp - 0x2230]
jmp 0x10008825
cmp dword [ebp + 0x14], 0
jne 0x1000865d
push 0x20019
push edi
push dword [ebp - 0x2220]
lea ecx, [ebp - 0x2230]
call fcn.10007eda
mov ebx, dword [ebp - 0x2230]
jmp 0x10008660
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 - 0x2250], ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
push eax
call fcn.100059df
mov ecx, dword [ebp - 0x221c]
add esp, 0x14
push edi
call fcn.1000813c
mov esi, eax
test esi, esi
js 0x100088b1
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.10007de1
mov esi, eax
test esi, esi
js 0x100088b1
push 0x7b
pop eax
cmp word [edi], ax
jne 0x10008714
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
cmp eax, 1
jne 0x10008714
push dword [ebp - 0x2250]
mov ecx, dword [ebp - 0x221c]
push 0
push ebx
push edi
call fcn.10008292
mov esi, eax
test esi, esi
jns 0x100086fe
cmp dword [ebp - 0x2250], 0
je 0x100088b1
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.1000813c
mov esi, eax
test esi, esi
js 0x100088b1
mov eax, dword [ebp - 0x2224]
cmp eax, 2
je 0x10008303
test eax, eax
je 0x1000873f
cmp dword [ebp + 0x14], 0
jne 0x10008303
mov ecx, eax
call fcn.1000812e
mov esi, eax
jmp 0x100088b1
cmp dword [ebp + 0x14], 0
je 0x1000878d
push ebx
call fcn.1000800d
test eax, eax
je 0x1000878d
lea eax, [ebp - 0x218]
push eax
call fcn.10007e48
test eax, eax
je 0x10008303
cmp dword [ebp - 0x2234], 0
je 0x10008303
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2230]
call fcn.10007f38
mov ebx, dword [ebp - 0x2230]
jmp 0x10008303
push ebx
call fcn.1000800d
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x2224], ecx
test ebx, ebx
je 0x100087b6
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x2224]
xor ebx, ebx
mov dword [ebp - 0x2230], ebx
and dword [ebp - 0x222c], 0
test eax, eax
jne 0x10008731
cmp dword [ebp - 0x2234], eax
je 0x10008303
test ecx, ecx
jne 0x10008303
mov eax, dword [ebp - 0x2220]
and dword [ebp - 0x2264], ecx
and dword [ebp - 0x2260], ecx
lea ecx, [ebp - 0x2268]
mov dword [ebp - 0x2268], eax
lea eax, [ebp - 0x218]
push eax
call fcn.100080b5
xor ecx, ecx
mov dword [ebp - 0x2268], ecx
mov dword [ebp - 0x2264], ecx
mov dword [ebp - 0x2260], ecx
test eax, eax
jne 0x10008731
mov dword [ebp - 0x2264], ecx
cmp dword [ebp + 0x10], 0
je 0x10008303
push 0x7b
pop eax
cmp word [edi], ax
jne 0x10008303
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
cmp eax, 1
jne 0x10008303
mov ecx, dword [ebp - 0x221c]
push 0
push dword [ebp + 0x10]
push ebx
push edi
call fcn.10008292
mov esi, eax
test esi, esi
js 0x100088b1
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.1000813c
mov esi, eax
test esi, esi
js 0x100088b1
jmp 0x10008303
mov ecx, eax
call fcn.1000812e
cmp dword [ebp - 0x224c], 0
mov esi, eax
je 0x100088b1
push dword [ebp - 0x224c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100088b1
mov ecx, eax
call fcn.1000812e
mov esi, eax
mov ebx, dword [ebp - 0x2230]
jmp 0x100088b1
mov esi, 0x80020009
test ebx, ebx
je 0x100088bc
push ebx
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.10061b61
mov esp, ebp
pop ebp
ret 0x10