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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x101000c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 0x220], ecx
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x214], edi
cmp ecx, edi
je 0x100acab
cmp ecx, 0xffffffff
je 0x100acab
cmp eax, edi
je 0x100acab
xor edx, edx
cmp dx, word [eax]
je 0x100acab
push esi
lea edx, [ebp - 0x214]
push edx
mov edx, dword [ebp + 0x10]
or edx, 0x2000000
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, edi
jne 0x100ac9a
push ebx
push edi
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x21c]
push eax
push edi
push edi
push edi
push dword [ebp - 0x214]
mov dword [ebp - 0x21c], edi
call dword [sym.imp.KERNEL32.dll_RegQueryInfoKeyW]
mov esi, eax
cmp esi, edi
jne 0x100ac02
mov ebx, dword [ebp - 0x21c]
xor esi, esi
dec ebx
cmp ebx, edi
jl 0x100aba0
cmp esi, edi
jne 0x100ab92
push 0x105
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov esi, eax
cmp esi, edi
jne 0x100ab8f
push dword [ebp + 0x10]
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x214]
call fcn.0100aa8a
test eax, eax
jne 0x100ab8f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x100ab8c
call esi
mov esi, eax
jmp 0x100ab8f
push 0x1f
pop esi
dec ebx
jns 0x100ab3e
cmp esi, 0x103
jne 0x100ab9c
xor esi, esi
cmp esi, edi
jne 0x100ac02
mov ebx, dword [sym.imp.KERNEL32.dll_RegEnumValueW]
jmp 0x100abcd
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_RegDeleteValueW]
test eax, eax
jne 0x100abcd
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x100abcd
call esi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push edi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x105
call ebx
mov esi, eax
cmp esi, edi
je 0x100aba8
cmp esi, 0x103
jne 0x100ac02
xor esi, esi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
jne 0x100ac99
cmp eax, edi
je 0x100ac1e
mov esi, eax
jmp 0x100ac99
mov esi, 0x1006150
push esi
mov dword [ebp - 0x218], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
cmp ebx, edi
jne 0x100ac4d
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, edi
je 0x100ac71
mov dword [ebp - 0x218], 1
push 0x1006140
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x100ac71
push edi
push dword [ebp + 0x10]
push dword [ebp - 0x224]
push dword [ebp - 0x220]
call eax
jmp 0x100ac83
push dword [ebp - 0x224]
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [ebp - 0x218], 1
mov esi, eax
jne 0x100ac99
cmp ebx, edi
je 0x100ac99
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp esi, edi
sete al
pop esi
jmp 0x100acb5
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0100909d
leave
ret 0xc