Function at 0x4083d9
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b4
mov eax, dword [0x458b30]
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 0x40865a
push 0x44f35c
push eax
call fcn.004086f0
test eax, eax
pop ecx
pop ecx
jne 0x40865a
lea eax, [ebp - 0x1a4]
push eax
push 0x4513c8
push 1
push ebx
push 0x44f36c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40864a
cmp dword [esi], ebx
mov eax, esi
mov dword [ebp - 0x1a0], eax
jne 0x408673
cmp dword [ebp + 0xc], ebx
jne 0x40864a
push 0x40
lea eax, [ebp - 0x188]
push eax
push dword [ebp - 0x19c]
call dword [sym.imp.ole32.dll_StringFromGUID2]
call dword [0x459ee4]
push str.CLSID_
mov esi, 0x80
lea eax, [ebp - 0x108]
push esi
push eax
mov dword [ebp - 0x1b0], ebx
call fcn.00414520
push eax
call fcn.00405cef
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0040871d
push str.Required_Categories
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.00414497
push eax
call fcn.00405cef
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 0x408564
lea ecx, [ebp - 0x19c]
call fcn.0040712c
cmp eax, ebx
mov ecx, dword [ebp - 0x1a8]
mov dword [ebp - 0x19c], ecx
jne 0x408564
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.0040712c
cmp dword [ebp - 0x1a8], ebx
jne 0x408564
cmp dword [ebp - 0x1a0], ebx
jne 0x408564
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.00414520
push eax
call fcn.00405cef
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0040871d
push str.Implemented_Categories
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.00414497
push eax
call fcn.00405cef
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 0x408629
lea ecx, [ebp - 0x19c]
call fcn.0040712c
cmp eax, ebx
mov ecx, dword [ebp - 0x1a8]
mov dword [ebp - 0x19c], ecx
jne 0x408629
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.0040712c
cmp esi, ebx
jne 0x408629
cmp dword [ebp - 0x1a0], ebx
jne 0x408629
lea eax, [ebp - 0x108]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x19c]
call fcn.0040712c
lea ecx, [ebp - 0x1ac]
call fcn.0040712c
lea ecx, [ebp - 0x1b0]
call fcn.00405a9b
mov eax, dword [ebp - 0x1a4]
cmp eax, ebx
je 0x40865a
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.00414511
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 0x4086c4
cmp dword [eax], 1
mov eax, dword [ebp - 0x1a4]
mov ecx, dword [eax]
push eax
jne 0x4086a7
call dword [ecx + 0x14]
jmp 0x4086aa
call dword [ecx + 0x1c]
mov esi, eax
cmp esi, ebx
jge 0x4086da
mov eax, dword [ebp - 0x1a4]
cmp eax, ebx
je 0x4086c0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x40865c
cmp dword [eax], 1
mov eax, dword [ebp - 0x1a4]
mov ecx, dword [eax]
push eax
jne 0x4086d7
call dword [ecx + 0x18]
jmp 0x4086da
call dword [ecx + 0x20]
add dword [ebp - 0x1a0], 8
mov eax, dword [ebp - 0x1a0]
cmp dword [eax], ebx
jne 0x40866d
jmp 0x408451