Function at 0x1000a210
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10020558
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x1002c014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
lea ebx, [esi + 4]
or edi, 0xffffffff
cmp dword [ebx], 0
je 0x1000a3c0
mov dword [ebp - 0x1c], 4
nop word [eax + eax]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [ebp - 0x18], 0
ja 0x1000a3b8
mov eax, dword [esi + 8]
lea edi, [esi + 8]
push 0x5c
push eax
mov ecx, dword [eax - 0xc]
mov dword [ebp - 0x20], ecx
call fcn.100111ba
mov esi, eax
add esp, 8
test esi, esi
jne 0x1000a2b3
or esi, 0xffffffff
jmp 0x1000a2b7
sub esi, dword [edi]
sar esi, 1
mov eax, dword [ebp - 0x20]
mov ecx, edi
sub eax, esi
dec eax
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.1000aaf0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x24]
push esi
push eax
mov ecx, edi
call fcn.1000a990
mov byte [ebp - 4], 2
mov ecx, edi
push eax
call fcn.100095d0
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000a304
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx]
test eax, eax
je 0x1000a311
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [edi]
cmp dword [eax - 4], 1
jle 0x1000a325
push dword [eax - 0xc]
mov ecx, edi
call fcn.10002aa0
mov eax, dword [edi]
mov esi, dword [ebp - 0x14]
push ebx
push 0xf003f
push 0
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000a397
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], 1
jle 0x1000a354
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
call fcn.10002aa0
mov eax, dword [ebp - 0x10]
push eax
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x1000a395
mov esi, dword [ebp - 0x1c]
dec esi
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], al
or edi, 0xffffffff
mov edx, dword [ebp - 0x10]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000a388
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
mov esi, dword [ebp - 0x14]
jg 0x1000a260
jmp 0x1000a3b8
jmp 0x1000a397
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov edx, dword [ebp - 0x10]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000a3b8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 8]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [eax]
sub edx, 0x10
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x1000a3eb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret