Function at 0x1000ad80
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x100184cb
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x1001f220]
xor eax, esp
mov dword [esp + 0x110], eax
push ebp
push esi
push edi
mov eax, dword [0x1001f220]
xor eax, esp
push eax
lea eax, [esp + 0x124]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x134]
lea ecx, [esp + 0x18]
mov dword [esp + 0x12c], 1
call fcn.10008b30
cmp dword [esp + 0x168], 0
mov esi, dword [esp + 0x13c]
mov byte [esp + 0x12c], 2
mov dword [esp + 0x10], 0
jne 0x1000ae24
mov edi, 0x10
cmp dword [esp + 0x150], edi
jae 0x1000ae0b
lea esi, [esp + 0x13c]
push 0
call fcn.10008e90
push eax
push esi
push ebp
call fcn.10008f20
add esp, 0x10
mov esi, eax
jmp 0x1000af28
cmp dword [esp + 0x150], 0x10
jae 0x1000ae35
lea esi, [esp + 0x13c]
lea eax, [esp + 0x10]
push eax
call fcn.10008e90
push eax
push 0
push esi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x1000af2e
cmp dword [esp + 0x16c], 0x10
mov eax, dword [esp + 0x158]
jae 0x1000ae6c
lea eax, [esp + 0x158]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [esp + 0x10]
push 0
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
mov esi, eax
lea eax, [esp + 0x30]
push eax
push 0
mov edi, 0x104
push ecx
mov dword [esp + 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
jne 0x1000af23
mov ecx, dword [esp + 0x10]
push 0
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x30]
push eax
push 0
push ecx
mov dword [esp + 0x34], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
jne 0x1000af23
mov eax, dword [esp + 0x13c]
mov edi, 0x10
cmp dword [esp + 0x150], edi
jae 0x1000aeef
lea eax, [esp + 0x13c]
push eax
lea edx, [esp + 0x1c]
push str.Deleting_empty_parent_key:__s
push edx
call fcn.10008c90
mov eax, dword [esp + 0x148]
add esp, 0xc
cmp dword [esp + 0x150], edi
jae 0x1000af19
lea eax, [esp + 0x13c]
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x1000af28
mov edi, 0x10
test esi, esi
je 0x1000af7b
jmp 0x1000af33
mov edi, 0x10
cmp esi, 2
je 0x1000af7b
cmp dword [esp + 0x16c], edi
mov ecx, dword [esp + 0x158]
jae 0x1000af4f
lea ecx, [esp + 0x158]
cmp dword [esp + 0x150], edi
mov eax, dword [esp + 0x13c]
jae 0x1000af66
lea eax, [esp + 0x13c]
push ecx
push eax
push str.Failed_to_delete_registry_key:__s_s
lea eax, [esp + 0x24]
push esi
push eax
call fcn.10008d30
add esp, 0x14
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
mov byte [esp + 0x12c], 1
call fcn.10008b50
cmp dword [esp + 0x150], edi
jb 0x1000afb0
mov edx, dword [esp + 0x13c]
push edx
call fcn.1000cb22
add esp, 4
cmp dword [esp + 0x16c], edi
mov dword [esp + 0x150], 0xf
mov dword [esp + 0x14c], 0
mov byte [esp + 0x13c], 0
jb 0x1000afe7
mov eax, dword [esp + 0x158]
push eax
call fcn.1000cb22
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x124]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.1000d030
add esp, 0x120
ret 0x40