Function at 0x100dc9d
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 [0x1016034]
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 0x100debe
cmp ecx, 0xffffffff
je 0x100debe
cmp eax, edi
je 0x100debe
xor edx, edx
cmp dx, word [eax]
je 0x100debe
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.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, edi
jne 0x100dead
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.ADVAPI32.dll_RegQueryInfoKeyW]
mov esi, eax
cmp esi, edi
jne 0x100de15
mov ebx, dword [ebp - 0x21c]
xor esi, esi
dec ebx
cmp ebx, edi
jl 0x100ddb3
cmp esi, edi
jne 0x100dda5
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 0x100dda2
push dword [ebp + 0x10]
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x214]
call fcn.0100dc9d
test eax, eax
jne 0x100dda2
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x100dd9f
call esi
mov esi, eax
jmp 0x100dda2
push 0x1f
pop esi
dec ebx
jns 0x100dd51
cmp esi, 0x103
jne 0x100ddaf
xor esi, esi
cmp esi, edi
jne 0x100de15
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
jmp 0x100dde0
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x100dde0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x100dde0
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 0x100ddbb
cmp esi, 0x103
jne 0x100de15
xor esi, esi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
jne 0x100deac
cmp eax, edi
je 0x100de31
mov esi, eax
jmp 0x100deac
mov esi, 0x10013cc
push esi
mov dword [ebp - 0x218], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
cmp ebx, edi
jne 0x100de60
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, edi
je 0x100de84
mov dword [ebp - 0x218], 1
push 0x10041b0
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x100de84
push edi
push dword [ebp + 0x10]
push dword [ebp - 0x224]
push dword [ebp - 0x220]
call eax
jmp 0x100de96
push dword [ebp - 0x224]
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [ebp - 0x218], 1
mov esi, eax
jne 0x100deac
cmp ebx, edi
je 0x100deac
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 0x100dec8
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0100a4c9
leave
ret 0xc