Function at 0x1001049d
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100880b4
mov eax, dword fs:[0]
push eax
mov eax, 0x225c
call fcn.10060b20
mov eax, dword [0x100af334]
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 - 0x2230], ecx
mov dword [ebp - 0x222c], ecx
mov dword [ebp - 0x2228], ecx
mov dword [ebp - 4], ecx
mov ecx, eax
push edi
call fcn.10010353
mov esi, eax
test esi, esi
js 0x10010a6f
push 0x7d
pop eax
cmp word [edi], ax
je 0x10010a6f
xor eax, eax
inc eax
push str.Delete
push edi
mov dword [ebp - 0x2224], eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push str.ForceRemove
sbb ebx, ebx
push edi
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x10010550
test ebx, ebx
je 0x10010614
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.10010353
mov esi, eax
test esi, esi
js 0x10010a6f
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x10010616
push 0x5c
pop edx
mov ecx, edi
mov dword [ebp - 0x223c], esi
mov dword [ebp - 0x2238], esi
mov dword [ebp - 0x2234], esi
call fcn.1000fb81
test eax, eax
jne 0x10010a5f
push edi
call fcn.10010154
test eax, eax
je 0x100105c9
mov eax, dword [ebp - 0x2220]
lea ecx, [ebp - 0x223c]
push edi
mov dword [ebp - 0x223c], eax
call fcn.10010183
mov dword [ebp - 0x223c], esi
mov dword [ebp - 0x2238], esi
mov dword [ebp - 0x2234], esi
test ebx, ebx
je 0x10010607
mov ebx, dword [ebp - 0x221c]
mov ecx, ebx
push edi
call fcn.10010353
mov esi, eax
test esi, esi
js 0x10010a57
push edi
mov ecx, ebx
call fcn.100100ef
lea ecx, [ebp - 0x223c]
mov esi, eax
call fcn.1000711f
test esi, esi
js 0x10010a6f
jmp 0x100109f1
lea ecx, [ebp - 0x223c]
call fcn.1000711f
jmp 0x10010616
xor esi, esi
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ebx, dword [ebp - 0x221c]
test eax, eax
jne 0x10010644
push edi
mov ecx, ebx
mov dword [ebp - 0x2224], esi
call fcn.10010353
mov esi, eax
test esi, esi
js 0x10010a6f
push 0x100a2d64
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10010775
lea eax, [ebp - 0x2218]
mov ecx, ebx
push eax
call fcn.10010353
mov esi, eax
test esi, esi
js 0x10010a6f
push edi
mov ecx, ebx
call fcn.10010353
mov esi, eax
test esi, esi
js 0x10010a6f
push 0x3d
pop eax
cmp word [edi], ax
jne 0x10010a6a
cmp dword [ebp + 0x10], 0
je 0x100106fb
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.1000fc24
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 0x10010aa7
mov byte [ebp - 4], al
call fcn.1000711f
jmp 0x100109f1
cmp dword [ebp + 0x14], 0
jne 0x10010768
cmp dword [ebp - 0x2224], 0
je 0x10010768
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.10007067
test eax, eax
jne 0x10010a98
lea eax, [ebp - 0x2218]
push eax
push dword [ebp - 0x225c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x1001075d
cmp eax, 2
jne 0x10010a98
lea ecx, [ebp - 0x225c]
call fcn.1000711f
push edi
mov ecx, ebx
call fcn.100100ef
jmp 0x10010a40
push 0x5c
pop edx
mov ecx, edi
call fcn.1000fb81
test eax, eax
jne 0x10010a6a
cmp dword [ebp + 0x10], eax
je 0x10010819
mov esi, dword [ebp - 0x2220]
lea ecx, [ebp - 0x2230]
push 0x2001f
push edi
push esi
call fcn.10007067
test eax, eax
je 0x100107e2
push 0x20019
push edi
push esi
lea ecx, [ebp - 0x2230]
call fcn.10007067
test eax, eax
je 0x100107e2
xor eax, eax
lea ecx, [ebp - 0x2230]
push eax
push eax
push 0x2001f
push eax
push eax
push edi
push esi
call fcn.10007139
test eax, eax
jne 0x10010abd
push edi
mov ecx, ebx
call fcn.10010353
mov esi, eax
test esi, esi
js 0x10010a6f
push 0x3d
pop eax
cmp word [edi], ax
jne 0x100109f1
push edi
xor eax, eax
mov ecx, ebx
push eax
lea eax, [ebp - 0x2230]
push eax
call fcn.1000fc24
mov esi, eax
jmp 0x100105fa
cmp dword [ebp + 0x14], 0
jne 0x1001083a
push 0x20019
push edi
push dword [ebp - 0x2220]
lea ecx, [ebp - 0x2230]
call fcn.10007067
mov ebx, eax
jmp 0x1001083d
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.10072176
push eax
call fcn.10005648
mov ecx, dword [ebp - 0x221c]
add esp, 0x14
push edi
call fcn.10010353
mov esi, eax
test esi, esi
js 0x10010a6f
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.100100ef
mov esi, eax
test esi, esi
js 0x10010a6f
push 0x7b
pop eax
cmp word [edi], ax
jne 0x10010902
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x2244]
jne 0x100108a4
sub ecx, edx
xor eax, eax
sar ecx, 1
inc eax
cmp ecx, eax
jne 0x10010902
push dword [ebp - 0x2240]
mov ecx, dword [ebp - 0x221c]
xor eax, eax
push eax
push dword [ebp - 0x2230]
push edi
call fcn.1001049d
mov esi, eax
test esi, esi
jns 0x100108ec
cmp dword [ebp - 0x2240], 0
je 0x10010a6f
mov ecx, dword [ebp - 0x221c]
push edi
call fcn.10010353
mov esi, eax
test esi, esi
js 0x10010a6f
cmp ebx, 2
je 0x10010a46
test ebx, ebx
je 0x10010927
cmp dword [ebp + 0x14], 0
jne 0x10010a46
mov ecx, ebx
call fcn.10010345
mov esi, eax
jmp 0x10010a6f
cmp dword [ebp + 0x14], 0
je 0x10010974
push dword [ebp - 0x2230]
call fcn.10010245
test eax, eax
je 0x10010974
lea eax, [ebp - 0x218]
push eax
call fcn.10010154
test eax, eax
je 0x10010a46
cmp dword [ebp - 0x2224], 0
je 0x10010a46
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2230]
call fcn.10010183
jmp 0x10010a46
push dword [ebp - 0x2230]
call fcn.10010245
lea ecx, [ebp - 0x2230]
mov ebx, eax
call fcn.1000711f
test eax, eax
jne 0x10010abd
cmp dword [ebp - 0x2224], eax
je 0x10010a46
test ebx, ebx
jne 0x10010a46
mov eax, dword [ebp - 0x2220]
lea ecx, [ebp - 0x2268]
mov dword [ebp - 0x2268], eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x2264], ebx
mov dword [ebp - 0x2260], ebx
call fcn.100102cc
mov dword [ebp - 0x2268], ebx
test eax, eax
jne 0x10010aae
lea ecx, [ebp - 0x2268]
call fcn.1000711f
mov ebx, dword [ebp - 0x221c]
cmp dword [ebp + 0x10], 0
je 0x10010a46
push 0x7b
pop eax
cmp word [edi], ax
jne 0x10010a46
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 0x2244]
jne 0x10010a04
sub ecx, edx
xor eax, eax
sar ecx, 1
inc eax
cmp ecx, eax
jne 0x10010a49
xor eax, eax
mov ecx, ebx
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x2230]
push edi
call fcn.1001049d
mov esi, eax
test esi, esi
js 0x10010a6f
push edi
mov ecx, ebx
call fcn.10010353
mov esi, eax
test esi, esi
js 0x10010a6f
xor eax, eax
inc eax
push 0x7d
pop ecx
cmp word [edi], cx
jne 0x10010521
jmp 0x10010a6f
lea ecx, [ebp - 0x223c]
jmp 0x10010aa7
lea ecx, [ebp - 0x223c]
call fcn.1000711f
mov esi, 0x80020009
lea ecx, [ebp - 0x2230]
call fcn.1000711f
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.1005fd1a
leave
ret 0x10
mov ecx, eax
call fcn.10010345
lea ecx, [ebp - 0x225c]
mov esi, eax
call fcn.1000711f
jmp 0x10010a6f
mov ecx, eax
call fcn.10010345
lea ecx, [ebp - 0x2268]
jmp 0x10010aa5
mov ecx, eax
jmp 0x1001091b