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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x4a55d0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x120], 0
test edi, edi
je 0x40ce26
mov eax, dword [esi]
cmp eax, dword [0x48b5d8]
jne 0x40caeb
mov ecx, dword [esi + 4]
cmp ecx, dword [0x48b5dc]
jne 0x40caeb
mov edx, dword [esi + 8]
cmp edx, dword [0x48b5e0]
jne 0x40caeb
mov eax, dword [esi + 0xc]
cmp eax, dword [0x48b5e4]
je 0x40ce26
lea ecx, [ebp - 0x120]
push ecx
push 0x496b64
push 1
push 0
push 0x48b668
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40ce14
cmp dword [edi], 0
mov ebx, edi
je 0x40cba1
cmp dword [ebp + 8], 0
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
mov dword [ebp - 0x11c], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x118], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x114], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x110], edx
mov ecx, dword [eax]
lea edx, [ebp - 0x11c]
push edx
push 1
push esi
push eax
je 0x40cb86
cmp dword [ebx], 1
jne 0x40cb62
mov eax, dword [ecx + 0x14]
jmp 0x40cb65
mov eax, dword [ecx + 0x1c]
call eax
mov edi, eax
test edi, edi
jge 0x40cb95
mov eax, dword [ebp - 0x120]
test eax, eax
je 0x40cb7f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, edi
jmp 0x40ce28
cmp dword [ebx], 1
jne 0x40cb90
mov eax, dword [ecx + 0x18]
jmp 0x40cb93
mov eax, dword [ecx + 0x20]
call eax
add ebx, 8
cmp dword [ebx], 0
jne 0x40cb19
cmp dword [ebp + 8], 0
jne 0x40ce14
push 0x40
lea eax, [ebp - 0x10c]
push eax
push esi
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea ecx, [ebp - 0x10c]
xor ebx, ebx
push ecx
mov dword [ebp - 0x130], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
push 2
push eax
lea edx, [ebp - 0x124]
push edx
mov dword [ebp - 0x124], eax
call fcn.0040e500
add esp, 0xc
test eax, eax
jl 0x40ce09
mov esi, dword [ebp - 0x124]
cmp esi, 0x400
jg 0x40cc17
push esi
call fcn.0040e570
add esp, 4
test al, al
je 0x40cc17
mov eax, esi
call fcn.0043a7d0
mov eax, esp
jmp 0x40cc23
push esi
lea ecx, [ebp - 0x130]
call fcn.0040e660
push 3
push esi
lea ecx, [ebp - 0x10c]
push ecx
push eax
call fcn.0040de80
mov edi, eax
cmp edi, ebx
je 0x40ce09
push str.CLSID_
lea edx, [ebp - 0x8c]
push 0x80
push edx
call fcn.00438d2d
add esp, 0xc
push eax
call fcn.00401cc0
add esp, 4
push edi
lea eax, [ebp - 0x8c]
push 0x80
push eax
call fcn.00438d95
add esp, 0xc
push eax
call fcn.00401cc0
add esp, 4
push str.Required_Categories
lea ecx, [ebp - 0x8c]
push 0x80
push ecx
call fcn.00438d95
add esp, 0xc
push eax
call fcn.00401cc0
add esp, 4
push SysReAllocString
mov ecx, 0x20019
lea edx, [ebp - 0x8c]
lea esi, [ebp - 0x12c]
mov dword [ebp - 0x138], SysStringLen
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x124], ebx
call fcn.0040ecc0
test eax, eax
jne 0x40cd29
mov eax, dword [ebp - 0x12c]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [ebp - 0x124]
push edx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
lea ecx, [ebp - 0x12c]
mov esi, eax
call fcn.0040eea0
cmp esi, ebx
jne 0x40cd29
cmp dword [ebp - 0x124], ebx
jne 0x40cd29
lea ecx, [ebp - 0x8c]
push ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push str.CLSID_
lea edx, [ebp - 0x8c]
push 0x80
push edx
call fcn.00438d2d
add esp, 0xc
push eax
call fcn.00401cc0
add esp, 4
push edi
lea eax, [ebp - 0x8c]
push 0x80
push eax
call fcn.00438d95
add esp, 0xc
push eax
call fcn.00401cc0
add esp, 4
push str.Implemented_Categories
lea ecx, [ebp - 0x8c]
push 0x80
push ecx
call fcn.00438d95
add esp, 0xc
push eax
call fcn.00401cc0
add esp, 4
push SysReAllocString
mov ecx, 0x20019
lea edx, [ebp - 0x8c]
lea esi, [ebp - 0x12c]
call fcn.0040ecc0
test eax, eax
jne 0x40cdf3
mov eax, dword [ebp - 0x12c]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [ebp - 0x124]
push edx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
lea ecx, [ebp - 0x12c]
mov esi, eax
call fcn.0040eea0
cmp esi, ebx
jne 0x40cdf3
cmp dword [ebp - 0x124], ebx
jne 0x40cdf3
lea ecx, [ebp - 0x8c]
push ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [ebp - 0x12c]
call fcn.0040eed0
lea ecx, [ebp - 0x138]
call fcn.0040eed0
lea ecx, [ebp - 0x130]
call fcn.00402110
mov eax, dword [ebp - 0x120]
test eax, eax
je 0x40ce26
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
xor eax, eax
lea esp, [ebp - 0x144]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0043671a
mov esp, ebp
pop ebp
ret 4