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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4241e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push esi
push edi
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 1
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x404e33
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4050eb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4050eb
mov edi, dword [ebp + 8]
mov edx, dword [edi]
cmp edx, dword [0x42b5a4]
jne 0x404e65
mov eax, dword [edi + 4]
cmp eax, dword [0x42b5a8]
jne 0x404e65
mov ecx, dword [edi + 8]
cmp ecx, dword [0x42b5ac]
jne 0x404e65
mov edx, dword [edi + 0xc]
cmp edx, dword [0x42b5b0]
je 0x4050dc
lea eax, [ebp - 0x10]
push eax
push 0x42704c
push 1
push 0
push 0x42b5b4
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4050dc
cmp dword [ebx], 0
je 0x404f06
lea ebx, [ebx]
mov ecx, dword [ebx + 4]
mov edx, dword [ecx]
mov dword [ebp - 0x24], edx
mov eax, dword [ecx + 4]
mov dword [ebp - 0x20], eax
mov edx, dword [ecx + 8]
mov dword [ebp - 0x1c], edx
mov eax, dword [ecx + 0xc]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
push edx
push 1
test eax, eax
mov eax, dword [ebx]
push edi
je 0x404ee9
cmp eax, 1
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
jne 0x404eca
call dword [ecx + 0x14]
jmp 0x404ecd
call dword [ecx + 0x1c]
mov esi, eax
test esi, esi
jge 0x404efc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004043b0
mov eax, esi
jmp 0x4050ed
cmp eax, 1
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
jne 0x404ef9
call dword [ecx + 0x18]
jmp 0x404efc
call dword [ecx + 0x20]
mov eax, dword [ebx + 8]
add ebx, 8
test eax, eax
jne 0x404e90
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x4050dc
push 0x40
lea eax, [ebp - 0x128]
push eax
push edi
call dword [sym.imp.ole32.dll_StringFromGUID2]
call dword [0x4341f8]
mov edi, eax
mov dword [ebp + 8], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
cmp esi, 0x400
jg 0x404f6b
push esi
call fcn.00401350
add esp, 4
test al, al
je 0x404f6b
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.00422260
mov eax, esp
jmp 0x404f74
push esi
lea ecx, [ebp + 8]
call fcn.00403cb0
push edi
push esi
lea edx, [ebp - 0x128]
push edx
push eax
call fcn.004014f0
mov edi, eax
test edi, edi
je 0x4050d0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.CLSID_
lea eax, [ebp - 0xa8]
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
lea ecx, [ebp - 0xa8]
push ecx
call esi
push str.Required_Categories
lea edx, [ebp - 0xa8]
push edx
call esi
mov dword [ebp - 0x14], SysReAllocStringLen
mov byte [ebp - 4], 4
xor eax, eax
mov dword [ebp + 0x10], eax
mov byte [ebp - 4], 5
mov dword [ebp + 0xc], eax
push 0x20019
lea eax, [ebp - 0xa8]
push eax
push SysReAllocStringLen
lea ecx, [ebp + 0x10]
call fcn.00401780
test eax, eax
jne 0x405036
mov edx, dword [ebp + 0x10]
push eax
push eax
push eax
push eax
push eax
push eax
push eax
lea ecx, [ebp + 0xc]
push ecx
push eax
push eax
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
lea ecx, [ebp + 0x10]
mov dword [ebp - 0x28], eax
call fcn.00401760
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x405036
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x405036
lea eax, [ebp - 0xa8]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push str.CLSID_
lea ecx, [ebp - 0xa8]
push ecx
call ebx
push edi
lea edx, [ebp - 0xa8]
push edx
call esi
push str.Implemented_Categories
lea eax, [ebp - 0xa8]
push eax
call esi
push 0x20019
lea ecx, [ebp - 0xa8]
push ecx
push SysReAllocStringLen
lea ecx, [ebp + 0x10]
call fcn.00401780
test eax, eax
jne 0x4050b8
push eax
push eax
push eax
push eax
push eax
push eax
push eax
lea edx, [ebp + 0xc]
push edx
push eax
push eax
push eax
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
lea ecx, [ebp + 0x10]
mov esi, eax
call fcn.00401760
test esi, esi
jne 0x4050b8
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x4050b8
lea ecx, [ebp - 0xa8]
push ecx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov byte [ebp - 4], 4
lea ecx, [ebp + 0x10]
call fcn.004033d0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x14]
call fcn.004033d0
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.00402a30
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004043b0
xor eax, eax
lea esp, [ebp - 0x134]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc