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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x468114]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x118], esi
mov dword [ebp - 0x11c], edi
mov dword [ebp - 0x120], ebx
test edi, edi
je 0x4108f6
push 0x458824
push esi
call fcn.0040f6bc
pop ecx
pop ecx
test eax, eax
jne 0x4108f6
lea eax, [ebp - 0x120]
push eax
push 0x456414
push 1
push ebx
push 0x45a044
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x410992
mov eax, ebx
mov ebx, eax
mov ecx, dword [ebp - 0x120]
test ecx, ecx
je 0x41090a
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, ebx
lea esp, [ebp - 0x148]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004146b1
leave
ret 0xc
lea edx, [ebp - 0x114]
mov esi, dword [edi + 4]
lea edi, [ebp - 0x114]
push edx
push 1
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmp dword [ebp + 0x10], ebx
je 0x410966
push dword [ebp - 0x118]
cmp eax, 1
mov eax, dword [ebp - 0x120]
push eax
mov ecx, dword [eax]
jne 0x410957
call dword [ecx + 0x14]
jmp 0x41095a
call dword [ecx + 0x1c]
test eax, eax
js 0x4108f8
mov esi, dword [ebp - 0x118]
jmp 0x410983
mov esi, dword [ebp - 0x118]
cmp eax, 1
mov eax, dword [ebp - 0x120]
push esi
push eax
mov ecx, dword [eax]
jne 0x410980
call dword [ecx + 0x18]
jmp 0x410983
call dword [ecx + 0x20]
mov edi, dword [ebp - 0x11c]
add edi, 8
mov dword [ebp - 0x11c], edi
mov eax, dword [edi]
test eax, eax
jne 0x410923
cmp dword [ebp + 0x10], ebx
jne 0x4108fa
push 0x40
lea eax, [ebp - 0x104]
push eax
push esi
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
jne 0x4109bd
push 0xd
pop eax
jmp 0x4108f8
lea eax, [ebp - 0x104]
mov esi, ebx
push eax
mov dword [ebp - 0x118], esi
call fcn.00422b62
inc eax
push 2
push eax
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x11c]
push eax
call fcn.00403747
add esp, 0x10
test eax, eax
js 0x4108fa
mov edi, dword [ebp - 0x11c]
cmp edi, 0x400
jg 0x410a16
push edi
call fcn.00404c42
pop ecx
test al, al
je 0x410a16
mov eax, edi
call fcn.004147d0
mov eax, esp
jmp 0x410a28
push edi
lea ecx, [ebp - 0x118]
call fcn.0040393c
mov esi, dword [ebp - 0x118]
push 3
push edi
lea ecx, [ebp - 0x104]
push ecx
push eax
call fcn.00401393
mov dword [ebp - 0x124], eax
test eax, eax
je 0x410c30
push 0x456424
mov edi, 0x80
lea eax, [ebp - 0x84]
push edi
push eax
call fcn.00422bd7
push eax
call fcn.00407f54
push dword [ebp - 0x124]
lea eax, [ebp - 0x84]
push edi
push eax
call fcn.00436f3c
push eax
call fcn.00407f54
push str.Required_Categories
lea eax, [ebp - 0x84]
push edi
push eax
call fcn.00436f3c
push eax
call fcn.00407f54
add esp, 0x30
mov dword [ebp - 0x138], ebx
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x134], ebx
mov ecx, SysReAllocStringLen
mov dword [ebp - 0x130], ebx
mov dword [ebp - 0x13c], ecx
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x84]
mov dword [ebp - 0x12c], ebx
push eax
push ecx
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x11c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x410b4f
mov edi, dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
push ebx
push ebx
push edi
mov dword [ebp - 0x130], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov dword [ebp - 0x11c], eax
test edi, edi
je 0x410b2c
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x130], ebx
test eax, eax
jne 0x410b4a
cmp dword [ebp - 0x118], ebx
jne 0x410b4a
lea eax, [ebp - 0x84]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edi, 0x80
push 0x456424
lea eax, [ebp - 0x84]
push edi
push eax
call fcn.00422bd7
push eax
call fcn.00407f54
push dword [ebp - 0x124]
lea eax, [ebp - 0x84]
push edi
push eax
call fcn.00436f3c
push eax
call fcn.00407f54
push str.Implemented_Categories
lea eax, [ebp - 0x84]
push edi
push eax
call fcn.00436f3c
push eax
call fcn.00407f54
add esp, 0x30
lea eax, [ebp - 0x84]
lea ecx, [ebp - 0x130]
push 0x20019
push eax
push SysReAllocStringLen
call fcn.004113f5
test eax, eax
jne 0x410c1a
push ebx
mov edi, dword [ebp - 0x130]
lea eax, [ebp - 0x118]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov dword [ebp - 0x124], eax
test edi, edi
je 0x410bf6
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x130], ebx
mov dword [ebp - 0x12c], ebx
test eax, eax
jne 0x410c1a
cmp dword [ebp - 0x118], ebx
jne 0x410c1a
lea eax, [ebp - 0x84]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [ebp - 0x130]
call fcn.00410f85
lea ecx, [ebp - 0x13c]
call fcn.00410f85
test esi, esi
je 0x4108fa
mov edi, dword [esi]
push esi
mov esi, edi
call fcn.00422b5d
pop ecx
test edi, edi
jne 0x410c38
jmp 0x4108fa