Function at 0x1000a683
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1154
call fcn.1001df00
mov eax, dword [0x1002f060]
xor eax, esp
mov dword [esp + 0x1150], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x14]
push esi
push edi
xor edi, edi
mov dword [esp + 0x34], eax
mov eax, ebx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
call fcn.1000a590
mov esi, eax
cmp esi, edi
jl 0x1000aac7
cmp byte [ebx], 0x7d
je 0x1000aac5
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push str.Delete
push ebx
mov dword [esp + 0x2c], 1
call esi
neg eax
push str.ForceRemove
sbb edi, edi
push ebx
inc edi
call esi
test eax, eax
je 0x1000a710
test edi, edi
je 0x1000a80a
mov ecx, dword [esp + 0xc]
mov eax, ebx
call fcn.1000a590
mov esi, eax
test esi, esi
js 0x1000aab4
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x1000a80a
push 0x5c
mov eax, ebx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
call fcn.10009b2d
pop ecx
test eax, eax
jne 0x1000ab7f
push ebx
call fcn.1000a2bc
test eax, eax
je 0x1000a77e
mov eax, dword [esp + 0x1c]
push ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
call fcn.1000a391
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
cmp edi, esi
je 0x1000a806
mov ecx, dword [esp + 0xc]
mov eax, ebx
call fcn.1000a590
mov esi, eax
test esi, esi
js 0x1000aab4
mov ecx, dword [esp + 0xc]
mov edi, ebx
call fcn.1000a260
mov esi, eax
test esi, esi
js 0x1000aab4
and dword [esp + 0x2c], 0
cmp byte [ebx], 0x7b
jne 0x1000a7f8
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x1000a7f8
mov ecx, dword [esp + 0xc]
push 0
push dword [ebp + 0x10]
push dword [esp + 0x18]
push ebx
call fcn.1000a683
mov esi, eax
test esi, esi
js 0x1000aab4
mov ecx, dword [esp + 0xc]
mov eax, ebx
call fcn.1000a590
mov esi, eax
test esi, esi
js 0x1000aab4
cmp byte [ebx], 0x7d
jne 0x1000a6e1
jmp 0x1000aab4
mov dword [esp + 0x2c], esi
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1000a833
and dword [esp + 0x24], eax
mov ecx, dword [esp + 0xc]
mov eax, ebx
call fcn.1000a590
mov esi, eax
test esi, esi
js 0x1000aab4
push 0x10026fa4
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1000a942
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x158]
call fcn.1000a590
mov esi, eax
test esi, esi
js 0x1000aab4
mov ecx, dword [esp + 0xc]
mov eax, ebx
call fcn.1000a590
mov esi, eax
test esi, esi
js 0x1000aab4
cmp byte [ebx], 0x3d
jne 0x1000ab99
xor edi, edi
cmp dword [ebp + 0x10], edi
je 0x1000a8cb
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x44], eax
push ebx
lea eax, [esp + 0x15c]
push eax
lea edx, [esp + 0x4c]
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
call fcn.10009dce
mov esi, eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
cmp esi, edi
jl 0x1000abda
mov dword [esp + 0x48], edi
jmp 0x1000a7b5
cmp dword [ebp + 0x14], edi
jne 0x1000a932
cmp dword [esp + 0x24], edi
je 0x1000a932
xor esi, esi
push 0x20006
push esi
push dword [esp + 0x24]
lea edi, [esp + 0x44]
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
call fcn.1000a34a
cmp eax, esi
jne 0x1000abb2
mov edi, dword [esp + 0x38]
lea eax, [esp + 0x158]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
cmp eax, esi
je 0x1000a91f
cmp eax, 2
jne 0x1000aba0
cmp edi, esi
je 0x1000a92e
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov ecx, dword [esp + 0xc]
mov edi, ebx
call fcn.1000a260
jmp 0x1000a7ee
push 0x5c
mov eax, ebx
call fcn.10009b2d
pop ecx
test eax, eax
jne 0x1000ab99
cmp dword [ebp + 0x10], eax
je 0x1000a9d4
push 0x2001f
push ebx
push dword [esp + 0x24]
lea edi, [esp + 0x1c]
call fcn.1000a34a
test eax, eax
je 0x1000a997
push 0x20019
push ebx
push dword [esp + 0x24]
call fcn.1000a34a
test eax, eax
je 0x1000a997
push ebx
push dword [esp + 0x20]
mov eax, edi
call fcn.10009bc3
test eax, eax
jne 0x1000aaad
mov ecx, dword [esp + 0xc]
mov eax, ebx
call fcn.1000a590
mov esi, eax
test esi, esi
js 0x1000aab4
cmp byte [ebx], 0x3d
jne 0x1000a7b5
mov ecx, dword [esp + 0xc]
push ebx
push 0
lea edx, [esp + 0x18]
call fcn.10009dce
mov esi, eax
test esi, esi
js 0x1000aab4
jmp 0x1000a7b5
cmp dword [ebp + 0x14], 0
jne 0x1000a9f3
push 0x20019
push ebx
push dword [esp + 0x24]
lea edi, [esp + 0x1c]
call fcn.1000a34a
mov dword [esp + 0x20], eax
jmp 0x1000a9fb
mov dword [esp + 0x20], 2
cmp dword [esp + 0x20], 0
je 0x1000aa09
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x58]
push 0x104
push eax
call fcn.1001a461
push eax
call fcn.1000a228
mov ecx, dword [esp + 0x20]
add esp, 0x14
mov eax, ebx
call fcn.1000a590
mov esi, eax
test esi, esi
js 0x1000aab4
mov ecx, dword [esp + 0xc]
mov edi, ebx
call fcn.1000a260
mov esi, eax
test esi, esi
js 0x1000aab4
cmp byte [ebx], 0x7b
jne 0x1000aa87
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x1000aa87
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x10]
push 0
push dword [esp + 0x18]
push ebx
call fcn.1000a683
mov esi, eax
test esi, esi
jns 0x1000aa76
cmp dword [ebp + 0x14], 0
je 0x1000aab4
mov ecx, dword [esp + 0xc]
mov eax, ebx
call fcn.1000a590
mov esi, eax
test esi, esi
js 0x1000aab4
cmp dword [esp + 0x20], 2
mov eax, dword [esp + 0x34]
mov dword [ebp + 0x14], eax
je 0x1000a7f8
mov eax, dword [esp + 0x20]
xor edi, edi
cmp eax, edi
je 0x1000aade
cmp dword [esp + 0x34], edi
jne 0x1000a7f8
call fcn.1000a581
mov esi, eax
cmp dword [esp + 0x10], 0
je 0x1000aac5
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x115c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10017a76
mov esp, ebp
pop ebp
ret 0x10
cmp dword [esp + 0x34], edi
je 0x1000ab20
push dword [esp + 0x10]
call fcn.1000a4c6
test eax, eax
je 0x1000ab20
lea eax, [esp + 0x50]
push eax
call fcn.1000a2bc
test eax, eax
je 0x1000a7f8
cmp dword [esp + 0x24], edi
je 0x1000a7f8
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x14]
call fcn.1000a391
jmp 0x1000a7f8
push dword [esp + 0x10]
call fcn.1000a4c6
mov dword [esp + 0x20], eax
xor eax, eax
cmp dword [esp + 0x10], edi
je 0x1000ab43
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
cmp eax, edi
jne 0x1000abd3
cmp dword [esp + 0x24], edi
je 0x1000a7f8
cmp dword [esp + 0x20], edi
jne 0x1000a7f8
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x1000aaad
jmp 0x1000a7f8
cmp dword [esp + 0x10], esi
je 0x1000ab8f
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x1000aac7
cmp dword [esp + 0x10], 0
jmp 0x1000ab83
call fcn.1000a581
mov esi, eax
test edi, edi
je 0x1000aab4
push edi
jmp 0x1000abc8
call fcn.1000a581
cmp dword [esp + 0x38], 0
mov esi, eax
je 0x1000aab4
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1000aab4
call fcn.1000a581
mov esi, eax
cmp dword [esp + 0x10], edi
jmp 0x1000aab9