Function at 0x410551
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x51a448]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 0x124], edx
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x120], esi
mov dword [ebp - 0x128], ebx
test edi, edi
je 0x4105ae
call fcn.004104ea
test eax, eax
jne 0x4105ae
lea eax, [ebp - 0x128]
push eax
push 0x5086d0
push 1
push ebx
push 0x4f72e0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x41064a
mov eax, ebx
mov ebx, eax
mov ecx, dword [ebp - 0x128]
test ecx, ecx
je 0x4105c2
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, ebx
lea esp, [ebp - 0x14c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0049d307
leave
ret 4
lea edx, [ebp - 0x11c]
mov esi, dword [edi + 4]
lea edi, [ebp - 0x11c]
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 + 8], ebx
je 0x41061e
push dword [ebp - 0x120]
cmp eax, 1
mov eax, dword [ebp - 0x128]
push eax
mov ecx, dword [eax]
jne 0x41060f
call dword [ecx + 0x14]
jmp 0x410612
call dword [ecx + 0x1c]
test eax, eax
js 0x4105b0
mov esi, dword [ebp - 0x120]
jmp 0x41063b
mov esi, dword [ebp - 0x120]
cmp eax, 1
mov eax, dword [ebp - 0x128]
push esi
push eax
mov ecx, dword [eax]
jne 0x410638
call dword [ecx + 0x18]
jmp 0x41063b
call dword [ecx + 0x20]
mov edi, dword [ebp - 0x124]
add edi, 8
mov dword [ebp - 0x124], edi
mov eax, dword [edi]
test eax, eax
jne 0x4105db
cmp dword [ebp + 8], ebx
jne 0x4105b2
push 0x40
lea eax, [ebp - 0x10c]
push eax
push esi
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
jne 0x410675
push 0xd
pop eax
jmp 0x4105b0
lea eax, [ebp - 0x10c]
mov esi, ebx
push eax
mov dword [ebp - 0x120], esi
call fcn.004c96f6
inc eax
lea ecx, [ebp - 0x124]
mov edx, eax
mov dword [ebp - 0x124], eax
call fcn.004125d1
add esp, 4
test eax, eax
js 0x4105b2
mov edi, dword [ebp - 0x124]
cmp edi, 0x400
jg 0x4106cc
mov ecx, edi
call fcn.00412631
test al, al
je 0x4106cc
mov eax, edi
call fcn.004f3f50
mov eax, esp
jmp 0x4106de
push edi
lea ecx, [ebp - 0x120]
call fcn.004126c3
mov esi, dword [ebp - 0x120]
push 3
push edi
lea edx, [ebp - 0x10c]
mov ecx, eax
call fcn.00411e2a
mov dword [ebp - 0x124], eax
test eax, eax
je 0x4108d0
push str.CLSID_
mov edi, 0x80
lea eax, [ebp - 0x8c]
push edi
push eax
call fcn.004ce331
add esp, 0xc
push eax
call fcn.00412c8a
pop ecx
push dword [ebp - 0x124]
lea eax, [ebp - 0x8c]
push edi
push eax
call fcn.004ce3f4
add esp, 0xc
push eax
call fcn.00412c8a
mov dword [esp], 0x5086e0
lea eax, [ebp - 0x8c]
push edi
push eax
call fcn.004ce3f4
add esp, 0xc
push eax
call fcn.00412c8a
mov dword [esp], 0x20019
lea eax, [ebp - 0x8c]
mov ecx, SysReAllocString
mov dword [ebp - 0x13c], ebx
push eax
mov dword [ebp - 0x140], ecx
push ecx
lea ecx, [ebp - 0x134]
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x134], ebx
mov dword [ebp - 0x130], ebx
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x120], ebx
call fcn.00412deb
test eax, eax
jne 0x4107f0
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x120]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x134]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
lea ecx, [ebp - 0x134]
mov edi, eax
call fcn.00412f45
test edi, edi
jne 0x4107eb
cmp dword [ebp - 0x120], ebx
jne 0x4107eb
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x140]
call fcn.00412fca
mov edi, 0x80
push str.CLSID_
lea eax, [ebp - 0x8c]
push edi
push eax
call fcn.004ce331
add esp, 0xc
push eax
call fcn.00412c8a
pop ecx
push dword [ebp - 0x124]
lea eax, [ebp - 0x8c]
push edi
push eax
call fcn.004ce3f4
add esp, 0xc
push eax
call fcn.00412c8a
mov dword [esp], str.Implemented_Categories
lea eax, [ebp - 0x8c]
push edi
push eax
call fcn.004ce3f4
add esp, 0xc
push eax
call fcn.00412c8a
mov dword [esp], 0x20019
lea eax, [ebp - 0x8c]
push eax
push SysReAllocString
lea ecx, [ebp - 0x134]
call fcn.00412deb
test eax, eax
jne 0x4108af
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x120]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0x134]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
lea ecx, [ebp - 0x134]
mov edi, eax
call fcn.00412f45
test edi, edi
jne 0x4108af
cmp dword [ebp - 0x120], ebx
jne 0x4108af
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x140]
call fcn.00412fca
lea ecx, [ebp - 0x134]
call fcn.00412f45
lea ecx, [ebp - 0x140]
call fcn.00412f45
jmp 0x4108d0
push esi
mov esi, dword [esi]
call fcn.004c8ceb
pop ecx
test esi, esi
jne 0x4108c7
jmp 0x4105b2