Function at 0x405f5a
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b0
mov eax, dword [0x426200]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
xor ebx, ebx
mov esi, edx
cmp esi, ebx
push edi
mov dword [ebp - 0x1a0], ecx
mov dword [ebp - 0x1a8], ebx
je 0x4061dd
mov eax, 0x41f498
call fcn.00406273
test eax, eax
jne 0x4061dd
lea eax, [ebp - 0x1a8]
push eax
push 0x421b60
push 1
push ebx
push 0x41f4b8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4061cd
cmp dword [esi], ebx
mov eax, esi
mov dword [ebp - 0x1a4], eax
jne 0x4061f6
cmp dword [ebp + 8], ebx
jne 0x4061cd
push 0x40
lea eax, [ebp - 0x18c]
push eax
push dword [ebp - 0x1a0]
call dword [sym.imp.ole32.dll_StringFromGUID2]
call dword [section..data]
push str.CLSID_
mov esi, 0x80
lea eax, [ebp - 0x10c]
push esi
push eax
call fcn.0040f806
push eax
call fcn.00405867
lea eax, [ebp - 0x18c]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.00406298
push str.Required_Categories
lea eax, [ebp - 0x10c]
push esi
push eax
call fcn.0041035e
push eax
call fcn.00405867
add esp, 0x28
lea eax, [ebp - 0x1b0]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x10c]
push eax
mov edi, SysReAllocString
push edi
mov dword [ebp - 0x1a0], ebx
mov dword [ebp - 0x1a4], ebx
mov dword [ebp - 0x1b0], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x4060d3
mov eax, dword [ebp - 0x1b0]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x1a4]
push ecx
push ebx
push ebx
push ebx
push eax
mov dword [ebp - 0x1a0], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [ebp - 0x1a0], ebx
mov dword [ebp - 0x1ac], eax
je 0x4060b5
push dword [ebp - 0x1a0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1a0], ebx
cmp dword [ebp - 0x1ac], ebx
jne 0x4060d3
cmp dword [ebp - 0x1a4], ebx
jne 0x4060d3
lea eax, [ebp - 0x10c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push str.CLSID_
lea eax, [ebp - 0x10c]
push esi
push eax
call fcn.0040f806
push eax
call fcn.00405867
lea eax, [ebp - 0x18c]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.00406298
push str.Implemented_Categories
lea eax, [ebp - 0x10c]
push esi
push eax
call fcn.0041035e
push eax
call fcn.00405867
add esp, 0x28
lea eax, [ebp - 0x1ac]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x10c]
push eax
push edi
mov dword [ebp - 0x1ac], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x4061b2
xor eax, eax
cmp dword [ebp - 0x1a0], ebx
je 0x406154
push dword [ebp - 0x1a0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
mov ecx, dword [ebp - 0x1ac]
mov dword [ebp - 0x1a0], ecx
jne 0x4061b2
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x1a4]
push eax
push ebx
push ebx
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [ebp - 0x1a0], ebx
mov esi, eax
je 0x406198
push dword [ebp - 0x1a0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1a0], ebx
cmp esi, ebx
jne 0x4061b2
cmp dword [ebp - 0x1a4], ebx
jne 0x4061b2
lea eax, [ebp - 0x10c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [ebp - 0x1a0], ebx
je 0x4061c6
push dword [ebp - 0x1a0]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x1a8]
cmp eax, ebx
je 0x4061dd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410457
leave
ret 4
mov eax, dword [ebp - 0x1a4]
cmp dword [ebp + 8], ebx
mov esi, dword [eax + 4]
lea edi, [ebp - 0x19c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x19c]
movsd dword es:[edi], dword [esi]
push edx
push 1
push dword [ebp - 0x1a0]
movsd dword es:[edi], dword [esi]
je 0x406247
cmp dword [eax], 1
mov eax, dword [ebp - 0x1a8]
mov ecx, dword [eax]
push eax
jne 0x40622a
call dword [ecx + 0x14]
jmp 0x40622d
call dword [ecx + 0x1c]
mov esi, eax
cmp esi, ebx
jge 0x40625d
mov eax, dword [ebp - 0x1a8]
cmp eax, ebx
je 0x406243
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x4061df
cmp dword [eax], 1
mov eax, dword [ebp - 0x1a8]
mov ecx, dword [eax]
push eax
jne 0x40625a
call dword [ecx + 0x18]
jmp 0x40625d
call dword [ecx + 0x20]
add dword [ebp - 0x1a4], 8
mov eax, dword [ebp - 0x1a4]
cmp dword [eax], ebx
jne 0x4061f0
jmp 0x405fcc