Function at 0x46f820
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e10d8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x527064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x14], eax
push str.e:_b_t_bfdad672_1e32_4be5_965f_d9a51e52de98installintegrator_srcmcdiregMcDiRegFetchRegValue.h
push str.CMcDiRegValues::GetProdRegStatus
push 0xc1
push 3
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.00431610
mov byte [ebp - 4], 1
mov edx, str.Entering_GetProdRegStatus
mov ecx, dword [eax]
call fcn.004333c0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
call fcn.004327d0
mov eax, dword [ebp - 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add eax, 0x14
push eax
call ebx
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov byte [ebp - 4], 3
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], edi
jae 0x46f8b7
lea eax, [ebp + 8]
lea ecx, [ebp - 0x10]
push ecx
push 0x20019
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x46f96a
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x46f96a
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 4
push eax
push dword [ebp - 0x14]
lea eax, [ebp - 0x14]
push eax
push esi
push str.RegistrationStatus
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x46f917
cmp dword [ebp - 0x14], 4
je 0x46f966
lea esi, [eax + 0xd]
push str.e:_b_t_bfdad672_1e32_4be5_965f_d9a51e52de98installintegrator_srcmcdiregMcDiRegFetchRegValue.h
push str.CMcDiRegValues::GetProdRegStatus
push 0xcd
push 4
lea ecx, [ebp - 0x10]
call fcn.00431610
mov byte [ebp - 4], 4
mov edx, str.Failed_to_get_string_from_registry_value_:
mov ecx, dword [eax]
call fcn.004333c0
push esi
mov edx, str.RegistrationStatus
mov ecx, eax
call fcn.00433720
mov edx, str.._Error:
mov ecx, eax
call fcn.004333c0
mov ecx, eax
call fcn.0043a770
mov byte [ebp - 4], 5
jmp 0x46f9b7
xor esi, esi
jmp 0x46f9cc
push str.e:_b_t_bfdad672_1e32_4be5_965f_d9a51e52de98installintegrator_srcmcdiregMcDiRegFetchRegValue.h
push str.CMcDiRegValues::GetProdRegStatus
push 0xd2
push 4
lea ecx, [ebp - 0x10]
call fcn.00431610
mov byte [ebp - 4], 6
mov edx, 0x502f3c
mov ecx, dword [eax]
call fcn.004333c0
push esi
mov edx, str.RegistrationStatus
mov ecx, eax
call fcn.00433720
mov edx, str.._Error:
mov ecx, eax
call fcn.004333c0
mov ecx, eax
call fcn.0043a770
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x10]
call fcn.004327d0
mov eax, dword [ebp - 0x10]
add eax, 0x14
push eax
call ebx
mov byte [ebp - 4], 3
push str.e:_b_t_bfdad672_1e32_4be5_965f_d9a51e52de98installintegrator_srcmcdiregMcDiRegFetchRegValue.h
push str.CMcDiRegValues::GetProdRegStatus
push 0xd5
push 3
lea ecx, [ebp - 0x10]
call fcn.00431610
mov byte [ebp - 4], 8
mov edx, str.Leaving_GetProdRegStatus
mov ecx, dword [eax]
call fcn.004333c0
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x10]
call fcn.004327d0
mov eax, dword [ebp - 0x10]
add eax, 0x14
push eax
call ebx
test edi, edi
je 0x46fa15
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x1c]
cmp ecx, 8
jb 0x46fa2c
push 2
inc ecx
push ecx
push dword [ebp + 8]
call fcn.00402ff0
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c