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

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x120
push ebx
push esi
mov esi, dword [ebp + 0x78]
xor ebx, ebx
cmp esi, ebx
push edi
mov dword [ebp + 0x68], ebx
je 0x403608
push 0x40c9dc
push dword [ebp + 0x74]
call fcn.00401840
test eax, eax
pop ecx
pop ecx
jne 0x403608
lea eax, [ebp + 0x68]
push eax
push 0x40c7a8
push 1
push ebx
push 0x40c9cc
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4035fb
cmp dword [esi], ebx
mov eax, esi
mov dword [ebp + 0x78], eax
jne 0x403466
cmp dword [ebp + 0x7c], ebx
jne 0x4035fb
push 0x40
lea eax, [ebp - 0xb4]
push eax
push dword [ebp + 0x74]
call dword [sym.imp.ole32.dll_StringFromGUID2]
call dword [0x40f040]
mov edi, eax
lea eax, [ebp - 0xb4]
push eax
mov dword [ebp + 0x64], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
cmp esi, 0x400
jg 0x4034ce
push esi
call fcn.00401b8d
test al, al
pop ecx
je 0x4034ce
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.00406060
mov eax, esp
jmp 0x4034d7
mov eax, dword [ebp + 0x78]
cmp dword [ebp + 0x7c], ebx
mov esi, dword [eax + 4]
lea edi, [ebp + 0x4c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edx, [ebp + 0x4c]
movsd dword es:[edi], dword [esi]
push edx
push 1
push dword [ebp + 0x74]
movsd dword es:[edi], dword [esi]
je 0x4034ab
cmp dword [eax], 1
mov eax, dword [ebp + 0x68]
mov ecx, dword [eax]
push eax
jne 0x40348e
call dword [ecx + 0x14]
jmp 0x403491
call dword [ecx + 0x1c]
mov esi, eax
cmp esi, ebx
jge 0x4034be
mov eax, dword [ebp + 0x68]
cmp eax, ebx
je 0x4034a4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x40360a
cmp dword [eax], 1
mov eax, dword [ebp + 0x68]
mov ecx, dword [eax]
push eax
jne 0x4034bb
call dword [ecx + 0x18]
jmp 0x4034be
call dword [ecx + 0x20]
add dword [ebp + 0x78], 8
mov eax, dword [ebp + 0x78]
cmp dword [eax], ebx
jne 0x403463
jmp 0x403404
push esi
lea ecx, [ebp + 0x64]
call fcn.00402a4f
push edi
push esi
lea ecx, [ebp - 0xb4]
push ecx
push eax
call fcn.00401c1d
cmp eax, ebx
mov dword [ebp + 0x78], eax
je 0x4035f3
push str.CLSID_
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 0x78]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x34]
push eax
call esi
push str.Required_Categories
lea eax, [ebp - 0x34]
push eax
call esi
push 0x20019
lea eax, [ebp - 0x34]
mov edi, SysReAllocStringLen
push eax
push edi
lea ecx, [ebp + 0x74]
mov dword [ebp + 0x60], edi
mov dword [ebp + 0x74], ebx
mov dword [ebp + 0x7c], ebx
call fcn.00401dbe
test eax, eax
jne 0x403575
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp + 0x7c]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 0x74]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
lea ecx, [ebp + 0x74]
mov dword [ebp + 0x5c], eax
call fcn.00401d59
cmp dword [ebp + 0x5c], ebx
jne 0x403575
cmp dword [ebp + 0x7c], ebx
jne 0x403575
lea eax, [ebp - 0x34]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push str.CLSID_
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 0x78]
lea eax, [ebp - 0x34]
push eax
call esi
push str.Implemented_Categories
lea eax, [ebp - 0x34]
push eax
call esi
push 0x20019
lea eax, [ebp - 0x34]
push eax
push edi
lea ecx, [ebp + 0x74]
call fcn.00401dbe
test eax, eax
jne 0x4035e3
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp + 0x7c]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 0x74]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
lea ecx, [ebp + 0x74]
mov esi, eax
call fcn.00401d59
cmp esi, ebx
jne 0x4035e3
cmp dword [ebp + 0x7c], ebx
jne 0x4035e3
lea eax, [ebp - 0x34]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [ebp + 0x74]
call fcn.00401d59
lea ecx, [ebp + 0x60]
call fcn.00401d59
lea ecx, [ebp + 0x64]
call fcn.0040249e
mov eax, dword [ebp + 0x68]
cmp eax, ebx
je 0x403608
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
lea esp, [ebp - 0xc0]
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret 0xc