Function at 0x22794a5e
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0xb0]
sub esp, 0x130
mov eax, dword [0x227a16b0]
push ebx
push esi
mov esi, dword [ebp + 0xbc]
push edi
mov edi, dword [ebp + 0xb8]
xor eax, ebp
lea ecx, [ebp - 0x70]
mov dword [ebp + 0xac], eax
mov dword [ebp - 0x68], edi
call fcn.227942bf
xor ebx, ebx
cmp esi, ebx
je 0x22794cba
push 0x2279cdd0
push edi
call fcn.22793774
test eax, eax
pop ecx
pop ecx
jne 0x22794cba
lea eax, [ebp - 0x70]
push eax
push 0x2279c710
push 1
push ebx
push 0x2279cdc0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x22794cba
cmp dword [esi], ebx
mov eax, esi
mov dword [ebp - 0x6c], eax
jne 0x22794b34
cmp dword [ebp + 0xc0], ebx
jne 0x22794cba
push 0x40
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x68]
call dword [sym.imp.ole32.dll_StringFromGUID2]
call dword [str.__y_]
mov edi, eax
lea eax, [ebp - 0x54]
push eax
mov dword [ebp - 0x74], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
cmp esi, 0x400
jg 0x22794b90
push esi
call fcn.227937b9
test al, al
pop ecx
je 0x22794b90
mov eax, esi
add eax, 3
and al, 0xfc
call fcn.2279a4c0
mov eax, esp
jmp 0x22794b99
mov eax, dword [ebp - 0x6c]
cmp dword [ebp + 0xc0], ebx
mov esi, dword [eax + 4]
lea edi, [ebp - 0x64]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x64]
movsd dword es:[edi], dword [esi]
push edx
push 1
push dword [ebp - 0x68]
movsd dword es:[edi], dword [esi]
je 0x22794b6d
cmp dword [eax], 1
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax]
push eax
jne 0x22794b5f
call dword [ecx + 0x14]
jmp 0x22794b62
call dword [ecx + 0x1c]
cmp eax, ebx
jge 0x22794b80
mov ebx, eax
jmp 0x22794cba
cmp dword [eax], 1
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax]
push eax
jne 0x22794b7d
call dword [ecx + 0x18]
jmp 0x22794b80
call dword [ecx + 0x20]
add dword [ebp - 0x6c], 8
mov eax, dword [ebp - 0x6c]
cmp dword [eax], ebx
jne 0x22794b31
jmp 0x22794ada
push esi
lea ecx, [ebp - 0x74]
call fcn.2279426c
push edi
push esi
lea ecx, [ebp - 0x54]
push ecx
push eax
call fcn.22793849
cmp eax, ebx
mov dword [ebp - 0x78], eax
je 0x22794cb2
push str.CLSID_
lea eax, [ebp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp - 0x78]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp + 0x2c]
push eax
call esi
push str.Required_Categories
lea eax, [ebp + 0x2c]
push eax
call esi
push 0x20019
lea eax, [ebp + 0x2c]
mov edi, SysReAllocString
push eax
push edi
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x6c], ebx
call fcn.22793992
test eax, eax
jne 0x22794c34
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x6c]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x7c], eax
call fcn.2279392d
cmp dword [ebp - 0x7c], ebx
jne 0x22794c34
cmp dword [ebp - 0x6c], ebx
jne 0x22794c34
lea eax, [ebp + 0x2c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push str.CLSID_
lea eax, [ebp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp - 0x78]
lea eax, [ebp + 0x2c]
push eax
call esi
push str.Implemented_Categories
lea eax, [ebp + 0x2c]
push eax
call esi
push 0x20019
lea eax, [ebp + 0x2c]
push eax
push edi
lea ecx, [ebp - 0x68]
call fcn.22793992
test eax, eax
jne 0x22794ca2
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x6c]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
lea ecx, [ebp - 0x68]
mov esi, eax
call fcn.2279392d
cmp esi, ebx
jne 0x22794ca2
cmp dword [ebp - 0x6c], ebx
jne 0x22794ca2
lea eax, [ebp + 0x2c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [ebp - 0x68]
call fcn.2279392d
lea ecx, [ebp - 0x80]
call fcn.2279392d
lea ecx, [ebp - 0x74]
call fcn.22793ec9
lea ecx, [ebp - 0x70]
call fcn.227970c3
mov eax, ebx
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xac]
xor ecx, ebp
call fcn.2279a349
add ebp, 0xb0
leave
ret 0xc