Function at 0x4c0ed0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x654
mov eax, dword [0x535a40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x61c], eax
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x608], edi
test esi, esi
je 0x4c12ff
test eax, eax
je 0x4c12ff
test edi, edi
je 0x4c12ff
push ebx
lea eax, [ebp - 0x644]
mov dword [ebp - 0x610], 0
push eax
mov dword [ebp - 0x60c], 0
xor ebx, ebx
mov dword [ebp - 0x620], 0
mov dword [ebp - 0x614], 0
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x634]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [esi]
lea ecx, [ebp - 0x644]
push ebx
push ebx
push ecx
push ebx
push str.namespace
push esi
call dword [eax + 0x10]
test eax, eax
je 0x4c0f77
mov ebx, eax
jmp 0x4c1271
mov eax, dword [esi]
lea ecx, [ebp - 0x634]
push 0
push 0
push ecx
push 0
push str.provider
push esi
call dword [eax + 0x10]
test eax, eax
je 0x4c0f9a
mov ebx, eax
jmp 0x4c1271
cmp word [ebp - 0x634], 8
jne 0x4c125f
cmp word [ebp - 0x644], 8
jne 0x4c125f
cmp dword [ebp - 0x62c], ebx
je 0x4c125f
mov edx, dword [ebp - 0x63c]
test edx, edx
je 0x4c125f
mov ecx, dword [ebp - 0x61c]
lea esi, [ebp - 0x614]
push esi
push 0
push 0
mov eax, dword [ecx]
push 0
push 0
push 0
push 0
push edx
push ecx
call dword [eax + 0xc]
test eax, eax
jns 0x4c0ffb
mov ebx, eax
jmp 0x4c1271
mov ecx, 0x16
lea edi, [ebp - 0x404]
mov esi, str.select__from___win32provider_where_Name__
lea eax, [ebp - 0x3aa]
rep movsd dword es:[edi], dword [esi]
push 0x1a4
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.004c53a0
push dword [ebp - 0x62c]
lea eax, [ebp - 0x404]
push 0xff
push eax
call fcn.004d6355
add esp, 0x18
test eax, eax
jne 0x4c1266
push 0x515a44
lea eax, [ebp - 0x404]
push 0xff
push eax
call fcn.004d6355
add esp, 0xc
test eax, eax
jne 0x4c1266
mov ecx, dword [ebp - 0x614]
lea edx, [ebp - 0x610]
push edx
push 0
push 0x30
mov eax, dword [ecx]
lea edx, [ebp - 0x404]
push edx
push 0x50090c
push ecx
call dword [eax + 0x50]
test eax, eax
je 0x4c1093
mov ebx, eax
jmp 0x4c126b
mov ecx, dword [ebp - 0x610]
lea edx, [ebp - 0x620]
push edx
lea edx, [ebp - 0x60c]
push edx
mov eax, dword [ecx]
push 1
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
test eax, eax
je 0x4c10bc
mov ebx, eax
jmp 0x4c126b
lea eax, [ebp - 0x654]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov ecx, dword [ebp - 0x60c]
lea edx, [ebp - 0x654]
push 0
push 0
push edx
mov eax, dword [ecx]
push 0
push 0x515a48
push ecx
call dword [eax + 0x10]
test eax, eax
je 0x4c10f2
mov ebx, eax
jmp 0x4c126b
cmp word [ebp - 0x654], 8
jne 0x4c126b
mov esi, dword [ebp - 0x64c]
test esi, esi
je 0x4c126b
movups xmm0, xmmword [str.SOFTWAREClassesCLSID_]
push 0x1ce
lea eax, [ebp - 0x1d4]
movups xmmword [ebp - 0x204], xmm0
push 0
movups xmm0, xmmword [0x515a64]
push eax
movups xmmword [ebp - 0x1f4], xmm0
movups xmm0, xmmword [0x515a74]
movups xmmword [ebp - 0x1e4], xmm0
call fcn.004c53a0
push esi
lea eax, [ebp - 0x204]
push 0xff
push eax
call fcn.004d6355
add esp, 0x18
test eax, eax
jne 0x4c1266
push 0x4faa3c
lea eax, [ebp - 0x204]
push 0xff
push eax
call fcn.004d6355
add esp, 0xc
test eax, eax
jne 0x4c1266
lea eax, [ebp - 0x618]
push eax
push 0x20119
push 0
lea eax, [ebp - 0x204]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4c1266
push 0x1fe
push eax
lea eax, [ebp - 0x604]
push eax
call fcn.004c53a0
add esp, 0xc
mov dword [ebp - 0x624], 0x1fe
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x604]
push eax
push 0
push 0
push 0x4f9d20
push dword [ebp - 0x618]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4c1266
push dword [ebp - 0x62c]
call fcn.004c08d0
mov edi, dword [ebp - 0x608]
add esp, 4
mov dword [edi], eax
test eax, eax
jne 0x4c1218
mov ebx, 0x8007000e
jmp 0x4c1271
push dword [ebp - 0x63c]
call fcn.004c08d0
add esp, 4
mov dword [edi + 4], eax
test eax, eax
jne 0x4c1234
mov ebx, 0x8007000e
jmp 0x4c1271
lea eax, [ebp - 0x604]
push eax
call fcn.004c08d0
add esp, 4
mov dword [edi + 8], eax
test eax, eax
jne 0x4c1251
mov ebx, 0x8007000e
jmp 0x4c1271
push dword [ebp - 0x618]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4c1271
mov ebx, 0x8000ffff
jmp 0x4c1271
mov ebx, 0x8000ffff
mov edi, dword [ebp - 0x608]
mov ecx, dword [ebp - 0x60c]
test ecx, ecx
je 0x4c1281
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x610]
test ecx, ecx
je 0x4c1291
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x614]
test ecx, ecx
je 0x4c12a1
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x644]
push eax
call esi
lea eax, [ebp - 0x634]
push eax
call esi
test ebx, ebx
je 0x4c12ec
mov eax, dword [edi]
test eax, eax
je 0x4c12cc
push eax
call fcn.004c8d5f
add esp, 4
mov eax, dword [edi + 4]
test eax, eax
je 0x4c12dc
push eax
call fcn.004c8d5f
add esp, 4
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x4c12ec
push ecx
call fcn.004c8d5f
add esp, 4
mov eax, ebx
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004c34b7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x80070057
pop edi
xor ecx, ebp
pop esi
call fcn.004c34b7
mov esp, ebp
pop ebp
ret