Function at 0x41c970
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c0
push ebx
push esi
push edi
push 0x2c
push 2
push dword [ebp + 8]
xor ebx, ebx
lea eax, [ebp - 0xb0]
inc ebx
push eax
mov dword [ebp - 0x14], ebx
call fcn.0040ad20
push 0x10
pop ecx
mov esi, eax
lea edi, [ebp - 0x70]
rep movsd dword es:[edi], dword [esi]
push dword [ebp - 0x70]
call fcn.00403cd5
add esp, 0x14
test eax, eax
je 0x41cc6c
xor esi, esi
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x18]
push eax
push 0x403904
push ebx
push esi
push 0x4038f4
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jne 0x41cc5d
push dword [ebp - 0x70]
call fcn.00403cb6
pop ecx
push dword [ebp - 0x70]
lea ecx, [ebp - 0x2c]
mov ebx, eax
mov word [ebp - 0x2c], si
call fcn.0041b1ec
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 0x30]
push edx
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x2c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x24]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push ebx
lea ecx, [ebp - 8]
call fcn.0041b1be
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx]
lea esi, [ebp - 0x1c]
push esi
push dword [eax]
push ecx
call dword [edx + 0x30]
push dword [ebp - 8]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
and word [ebp - 0x2b8], 0
mov ebx, 0x206
push ebx
xor esi, esi
lea eax, [ebp - 0x2b6]
push esi
push eax
call sub.MSVCRT.dll_memset
mov ecx, dword [ebp - 0x6c]
add esp, 0xc
cmp ecx, esi
mov dword [ebp - 4], esi
je 0x41cacb
movzx eax, word [ecx]
cmp ax, si
je 0x41cacb
cmp ax, 0x23
jne 0x41ca81
inc esi
inc ecx
inc ecx
push ecx
mov dword [ebp - 0x6c], ecx
call fcn.00403b00
pop ecx
mov dword [ebp - 4], eax
jmp 0x41cace
mov edi, dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
push 0x40373c
push ecx
call edi
test eax, eax
je 0x41cac3
push 0x40372c
push dword [ebp - 0x6c]
call edi
test eax, eax
je 0x41cac3
push 0xb
call fcn.00411f6f
cmp eax, 0xffffffff
pop ecx
je 0x41cace
push dword [eax*8 + 0x40203c]
push dword [ebp - 0x6c]
call edi
mov esi, eax
neg esi
sbb esi, esi
inc esi
jmp 0x41cace
xor esi, esi
inc esi
mov dword [ebp - 4], esi
jmp 0x41cace
xor esi, esi
inc esi
xor edi, edi
inc edi
test esi, esi
je 0x41cb86
call fcn.0040ba0d
test eax, eax
je 0x41cb5d
lea eax, [ebp - 8]
push eax
push 0x401bf8
call dword [sym.imp.ole32.dll_StringFromCLSID]
test eax, eax
jne 0x41cb9e
xor esi, esi
push ebx
lea eax, [ebp - 0x4be]
push esi
push eax
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x10], 0x104
mov word [ebp - 0x4c0], si
call sub.MSVCRT.dll_memset
push dword [ebp - 8]
lea eax, [ebp - 0x4c0]
push 0x403718
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x2b8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x4c0]
push eax
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov edi, eax
neg edi
sbb edi, edi
inc edi
jmp 0x41cb96
mov eax, dword [ebp - 4]
cmp eax, 1
lea ecx, [ebp - 0x2b8]
push ecx
ja 0x41cb74
imul eax, eax, 5
add eax, 0x1505
push eax
push 0x403700
call fcn.00411194
add esp, 0xc
mov edi, eax
jmp 0x41cb96
push dword [ebp - 0x6c]
lea eax, [ebp - 0x2b8]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
test edi, edi
je 0x41cc5d
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push eax
call dword [ecx + 0x58]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push eax
call dword [ecx + 0x1c]
xor ebx, ebx
cmp dword [ebp - 8], ebx
je 0x41cc4b
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
push edx
mov word [ebp - 0x2c], 3
mov dword [ebp - 0x24], ebx
mov ecx, dword [eax]
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x2c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x28]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 4]
and dword [ebp - 0xc], 0
mov ecx, dword [eax]
lea edx, [ebp - 0xc]
push edx
push eax
call dword [ecx + 0x24]
lea eax, [ebp - 0x2b8]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x2b8]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x41cc2f
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0xc]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
inc ebx
cmp ebx, dword [ebp - 8]
jne 0x41cbc3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret