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

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x11c
mov eax, dword [0x409088]
xor eax, dword [ebp + 0x70]
push ebx
push esi
push edi
lea ecx, [ebp + 0x64]
mov dword [ebp + 0x68], eax
call fcn.00405220
mov ebx, dword [ebp + 0x78]
test ebx, ebx
je 0x4056e6
mov esi, dword [ebp + 0x74]
mov eax, dword [esi]
cmp eax, dword [0x407a8c]
jne 0x4054de
mov ecx, dword [esi + 4]
cmp ecx, dword [0x407a90]
jne 0x4054de
mov edx, dword [esi + 8]
cmp edx, dword [0x407a94]
jne 0x4054de
mov eax, dword [esi + 0xc]
cmp eax, dword [0x407a98]
je 0x4056e6
lea ecx, [ebp + 0x64]
push ecx
push 0x4079d0
push 1
push 0
push 0x407a7c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4056e6
cmp dword [ebx], 0
je 0x405572
mov edx, dword [ebx + 4]
mov eax, dword [edx]
mov dword [ebp + 0x54], eax
mov ecx, dword [edx + 4]
mov dword [ebp + 0x58], ecx
mov eax, dword [edx + 8]
mov dword [ebp + 0x5c], eax
mov ecx, dword [edx + 0xc]
mov eax, dword [ebp + 0x7c]
mov dword [ebp + 0x60], ecx
lea ecx, [ebp + 0x54]
push ecx
push 1
test eax, eax
mov eax, dword [ebx]
push esi
je 0x405555
cmp eax, 1
mov eax, dword [ebp + 0x64]
mov edx, dword [eax]
push eax
jne 0x40553d
call dword [edx + 0x14]
jmp 0x405540
call dword [edx + 0x1c]
mov edi, eax
test edi, edi
jge 0x405568
lea ecx, [ebp + 0x64]
call fcn.00405210
mov eax, edi
jmp 0x4056f0
cmp eax, 1
mov eax, dword [ebp + 0x64]
mov edx, dword [eax]
push eax
jne 0x405565
call dword [edx + 0x18]
jmp 0x405568
call dword [edx + 0x20]
mov eax, dword [ebx + 8]
add ebx, 8
test eax, eax
jne 0x405503
mov eax, dword [ebp + 0x7c]
test eax, eax
jne 0x4056e6
push 0x40
lea edx, [ebp - 0xb0]
push edx
push esi
call dword [sym.imp.ole32.dll_StringFromGUID2]
call dword [0x409020]
mov edi, eax
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.00405e80
mov eax, esp
push edi
push esi
lea ecx, [ebp - 0xb0]
push ecx
push eax
call fcn.00401190
mov edi, eax
test edi, edi
je 0x4056e6
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.CLSID_
lea edx, [ebp - 0x30]
push edx
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
lea eax, [ebp - 0x30]
push eax
call esi
push str.Required_Categories
lea ecx, [ebp - 0x30]
push ecx
call esi
push 0x20019
lea edx, [ebp - 0x30]
xor eax, eax
push edx
push SysReAllocString
lea ecx, [ebp + 0x7c]
mov dword [ebp + 0x50], SysStringLen
mov dword [ebp + 0x7c], eax
mov dword [ebp + 0x78], eax
call fcn.00401340
test eax, eax
jne 0x405663
push eax
mov ecx, dword [ebp + 0x7c]
push eax
push eax
push eax
push eax
push eax
push eax
lea eax, [ebp + 0x78]
push eax
push 0
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
lea ecx, [ebp + 0x7c]
mov dword [ebp + 0x74], eax
call fcn.00401320
mov eax, dword [ebp + 0x74]
test eax, eax
jne 0x405663
mov eax, dword [ebp + 0x78]
test eax, eax
jne 0x405663
lea edx, [ebp - 0x30]
push edx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push str.CLSID_
lea eax, [ebp - 0x30]
push eax
call ebx
push edi
lea ecx, [ebp - 0x30]
push ecx
call esi
push str.Implemented_Categories
lea edx, [ebp - 0x30]
push edx
call esi
push 0x20019
lea eax, [ebp - 0x30]
push eax
push SysReAllocString
lea ecx, [ebp + 0x7c]
call fcn.00401340
test eax, eax
jne 0x4056d6
mov edx, dword [ebp + 0x7c]
push eax
push eax
push eax
push eax
push eax
push eax
push eax
lea ecx, [ebp + 0x78]
push ecx
push eax
push eax
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
lea ecx, [ebp + 0x7c]
mov esi, eax
call fcn.00401320
test esi, esi
jne 0x4056d6
mov eax, dword [ebp + 0x78]
test eax, eax
jne 0x4056d6
lea eax, [ebp - 0x30]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [ebp + 0x7c]
call fcn.00402520
lea ecx, [ebp + 0x50]
call fcn.00402520
lea ecx, [ebp + 0x64]
call fcn.00405210
xor eax, eax
lea esp, [ebp - 0xbc]
mov ecx, dword [ebp + 0x68]
xor ecx, dword [ebp + 0x70]
call fcn.00405e0f
pop edi
pop esi
pop ebx
add ebp, 0x6c
mov esp, ebp
pop ebp
ret 0xc