Function at 0x4084da
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
push ebx
push esi
lea ecx, [ebp - 4]
call fcn.004080b2
mov esi, dword [ebp + 0xc]
xor ebx, ebx
cmp esi, ebx
je 0x408693
push 0x4aed64
push dword [ebp + 8]
call fcn.00406685
test eax, eax
pop ecx
pop ecx
jne 0x408693
lea eax, [ebp - 4]
push eax
push 0x48d090
push 1
push ebx
push 0x4aed54
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x408693
cmp dword [esi], ebx
mov eax, esi
push edi
mov dword [ebp + 0xc], eax
jne 0x4086a6
cmp dword [ebp + 0x10], ebx
jne 0x408692
push 0x40
lea eax, [ebp - 0x19c]
push eax
push dword [ebp + 8]
call dword [sym.imp.ole32.dll_StringFromGUID2]
call dword [0x4c5080]
push str.CLSID_
lea eax, [ebp - 0x11c]
push eax
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x19c]
push eax
lea eax, [ebp - 0x11c]
push eax
call esi
push str.Required_Categories
lea eax, [ebp - 0x11c]
push eax
call esi
push 0x20019
lea eax, [ebp - 0x11c]
mov edi, SysReAllocString
push eax
push edi
lea ecx, [ebp + 8]
mov dword [ebp - 0xc], edi
mov dword [ebp + 8], ebx
mov dword [ebp + 0x10], ebx
call fcn.004067e8
test eax, eax
jne 0x4085f9
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp + 0x10]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
lea ecx, [ebp + 8]
mov dword [ebp + 0xc], eax
call fcn.00406783
cmp dword [ebp + 0xc], ebx
jne 0x4085f9
cmp dword [ebp + 0x10], ebx
jne 0x4085f9
lea eax, [ebp - 0x11c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push str.CLSID_
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x19c]
push eax
lea eax, [ebp - 0x11c]
push eax
call esi
push str.Implemented_Categories
lea eax, [ebp - 0x11c]
push eax
call esi
push 0x20019
lea eax, [ebp - 0x11c]
push eax
push edi
lea ecx, [ebp + 8]
call fcn.004067e8
test eax, eax
jne 0x40867a
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp + 0x10]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
lea ecx, [ebp + 8]
mov esi, eax
call fcn.00406783
cmp esi, ebx
jne 0x40867a
cmp dword [ebp + 0x10], ebx
jne 0x40867a
lea eax, [ebp - 0x11c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp + 8]
call fcn.00406783
lea ecx, [ebp - 0xc]
call fcn.00406783
lea ecx, [ebp - 8]
call fcn.0040710b
pop edi
lea ecx, [ebp - 4]
call fcn.00407387
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 0x10], ebx
mov esi, dword [eax + 4]
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
push edx
push 1
push dword [ebp + 8]
movsd dword es:[edi], dword [esi]
je 0x4086d9
cmp dword [eax], 1
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
jne 0x4086ce
call dword [ecx + 0x14]
jmp 0x4086d1
call dword [ecx + 0x1c]
cmp eax, ebx
jge 0x4086ec
mov ebx, eax
jmp 0x408692
cmp dword [eax], 1
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
jne 0x4086e9
call dword [ecx + 0x18]
jmp 0x4086ec
call dword [ecx + 0x20]
add dword [ebp + 0xc], 8
mov eax, dword [ebp + 0xc]
cmp dword [eax], ebx
jne 0x4086a3
jmp 0x40853e