Function at 0x40a4bc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x41b070]
xor eax, dword [ebp + 4]
push ebx
push esi
mov ebx, ecx
push edi
lea esi, [ebx + 0xc]
mov edi, edx
mov dword [ebp - 4], eax
call fcn.004096bf
mov eax, dword [ebp + 0xc]
xor edi, edi
push 0x17
mov dword [ebx + 0x10], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebx + 0x14], eax
push str.Settings.Snapin
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 8], edi
call fcn.0040a787
test eax, eax
jl 0x40a523
mov eax, dword [ebp - 8]
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
lea esi, [ebp - 0x1c]
mov dword [ebp - 8], edi
call fcn.0040a738
cmp dword [ebx + 0x14], edi
jne 0x40a624
push 0x20019
push str.SOFTWAREMicrosoftMMCNodeTypes4C31843B_67A8_452D_99F2_6137BEA59880ExtensionsPropertySheet
push reloc.OLEAUT32.dll_SysReAllocString
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], edi
call fcn.0040a146
test eax, eax
jne 0x40a616
mov dword [ebp - 0x10], edi
mov word [ebp - 0x238], di
mov ecx, 0x81
lea edi, [ebp - 0x236]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
push eax
push eax
push eax
push eax
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x238]
push ecx
mov dword [ebp - 0xc], 0x104
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x40a614
and dword [ebp + 0x10], eax
mov esi, 0x416530
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x238]
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.ole32.dll_CLSIDFromString]
xor edi, edi
test eax, eax
jl 0x40a5e6
lea eax, [ebp + 0x10]
push eax
push 0x4183d4
push 0x17
push edi
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40a5e6
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
lea esi, [ebp - 0x1c]
mov dword [ebp + 0x10], edi
call fcn.0040a738
mov eax, dword [ebp + 0x10]
inc dword [ebp - 0x10]
cmp eax, edi
mov dword [ebp - 0xc], 0x104
je 0x40a5fd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push edi
push edi
push edi
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 0x10]
jmp 0x40a580
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x40a624
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
cmp dword [ebp - 0x18], edi
jle 0x40a63e
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + esi*4]
mov edx, ebx
call fcn.0040a475
inc esi
cmp esi, dword [ebp - 0x18]
jl 0x40a62b
mov eax, dword [ebp + 8]
add ebx, 0x270
call fcn.0040a69d
xor esi, esi
cmp dword [ebp - 0x18], edi
mov ebx, eax
jle 0x40a667
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + esi*4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc esi
cmp esi, dword [ebp - 0x18]
jl 0x40a655
cmp ebx, edi
jle 0x40a66f
xor ebx, ebx
jmp 0x40a674
mov ebx, 0x800704c7
mov eax, dword [ebp - 8]
cmp eax, edi
je 0x40a681
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea esi, [ebp - 0x1c]
call fcn.00402f2c
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
mov eax, ebx
pop ebx
call fcn.00415ab2
leave
ret 0xc