Function at 0x4082e9
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b4
mov eax, dword [0x454b30]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
mov esi, ecx
cmp esi, ebx
push edi
mov dword [ebp - 0x19c], eax
mov dword [ebp - 0x1a4], ebx
je 0x40856a
push 0x44b384
push eax
call fcn.00408600
test eax, eax
pop ecx
pop ecx
jne 0x40856a
lea eax, [ebp - 0x1a4]
push eax
push 0x44d0e0
push 1
push ebx
push 0x44b394
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40855a
cmp dword [esi], ebx
mov eax, esi
mov dword [ebp - 0x1a0], eax
jne 0x408583
cmp dword [ebp + 0xc], ebx
jne 0x40855a
push 0x40
lea eax, [ebp - 0x188]
push eax
push dword [ebp - 0x19c]
call dword [sym.imp.ole32.dll_StringFromGUID2]
call dword [0x455ee4]
push str.CLSID_
mov esi, 0x80
lea eax, [ebp - 0x108]
push esi
push eax
mov dword [ebp - 0x1b0], ebx
call fcn.00416123
push eax
call fcn.00405c09
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0040862d
push str.Required_Categories
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.004160a9
push eax
call fcn.00405c09
add esp, 0x28
lea eax, [ebp - 0x1a8]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x108]
mov edi, SysReAllocString
push eax
push edi
mov dword [ebp - 0x1ac], edi
mov dword [ebp - 0x19c], ebx
mov dword [ebp - 0x1a0], ebx
mov dword [ebp - 0x1a8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x408474
lea ecx, [ebp - 0x19c]
call fcn.00407046
cmp eax, ebx
mov ecx, dword [ebp - 0x1a8]
mov dword [ebp - 0x19c], ecx
jne 0x408474
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x1a0]
push eax
push ebx
push ebx
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
lea ecx, [ebp - 0x19c]
mov dword [ebp - 0x1a8], eax
call fcn.00407046
cmp dword [ebp - 0x1a8], ebx
jne 0x408474
cmp dword [ebp - 0x1a0], ebx
jne 0x408474
lea eax, [ebp - 0x108]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push str.CLSID_
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.00416123
push eax
call fcn.00405c09
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0040862d
push str.Implemented_Categories
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.004160a9
push eax
call fcn.00405c09
add esp, 0x28
lea eax, [ebp - 0x1a8]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x108]
push eax
push edi
mov dword [ebp - 0x1a8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x408539
lea ecx, [ebp - 0x19c]
call fcn.00407046
cmp eax, ebx
mov ecx, dword [ebp - 0x1a8]
mov dword [ebp - 0x19c], ecx
jne 0x408539
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x1a0]
push eax
push ebx
push ebx
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
lea ecx, [ebp - 0x19c]
mov esi, eax
call fcn.00407046
cmp esi, ebx
jne 0x408539
cmp dword [ebp - 0x1a0], ebx
jne 0x408539
lea eax, [ebp - 0x108]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x19c]
call fcn.00407046
lea ecx, [ebp - 0x1ac]
call fcn.00407046
lea ecx, [ebp - 0x1b0]
call fcn.004059b5
mov eax, dword [ebp - 0x1a4]
cmp eax, ebx
je 0x40856a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041618f
leave
ret 8
mov eax, dword [ebp - 0x1a0]
cmp dword [ebp + 0xc], ebx
mov esi, dword [eax + 4]
lea edi, [ebp - 0x198]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x198]
movsd dword es:[edi], dword [esi]
push edx
push 1
push dword [ebp - 0x19c]
movsd dword es:[edi], dword [esi]
je 0x4085d4
cmp dword [eax], 1
mov eax, dword [ebp - 0x1a4]
mov ecx, dword [eax]
push eax
jne 0x4085b7
call dword [ecx + 0x14]
jmp 0x4085ba
call dword [ecx + 0x1c]
mov esi, eax
cmp esi, ebx
jge 0x4085ea
mov eax, dword [ebp - 0x1a4]
cmp eax, ebx
je 0x4085d0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x40856c
cmp dword [eax], 1
mov eax, dword [ebp - 0x1a4]
mov ecx, dword [eax]
push eax
jne 0x4085e7
call dword [ecx + 0x18]
jmp 0x4085ea
call dword [ecx + 0x20]
add dword [ebp - 0x1a0], 8
mov eax, dword [ebp - 0x1a0]
cmp dword [eax], ebx
jne 0x40857d
jmp 0x408361