Function at 0x1002c470
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006782f
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x100ad040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], 0
call fcn.1002c030
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
call fcn.1002cb80
mov edi, 4
mov dword [ebp - 0x14], 4
mov dword [ebp - 0x14], edi
and edi, 0xfffffffb
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 2
or edi, 2
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
mov esi, dword [ecx + 0x18]
lea ecx, [ebp - 0x18]
push ecx
push 1
push eax
mov ecx, esi
call dword [0x1006e578]
call esi
test eax, eax
js 0x1002c82c
and edi, 0xfffffffd
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 1
cmp dword [ebp - 0x1c], 0
je 0x1002c51f
lea ecx, [ebp - 0x1c]
call fcn.1002aa70
movzx eax, byte [ebp - 0x16]
movzx ecx, byte [ebp - 0x17]
mov edi, dword [ebp + 8]
push str.AIEXTERNALUI
lea eax, [eax + eax*4]
lea esi, [eax + ecx*2]
movzx eax, byte [ebp - 0x15]
add esi, eax
push edi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
mov dword [ebp - 0x3c], eax
xor bl, bl
lea eax, [ebp - 0x2c]
mov byte [ebp - 0xd], bl
push eax
push 0x20019
push 0
push str.SOFTWAREPoliciesMicrosoftWindowsInstaller
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x30], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002c6ce
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x34]
push eax
push 0
push str.MsiDisableEmbeddedUI
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1002c5ba
cmp dword [ebp - 0x34], 4
jne 0x1002c6c0
cmp dword [ebp - 0x38], eax
je 0x1002c6c0
push dword [ebp - 0x2c]
mov bl, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1002c7d4
call fcn.1001cdb0
cmp byte [eax + 0x1c], bl
je 0x1002c6c0
call fcn.1001cdb0
mov ebx, eax
call fcn.1000a250
mov edi, eax
test edi, edi
je 0x1002c822
mov ecx, dword [edi]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x1006e578]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x20]
push str.Failed_to_read_the_machine_policy_value
call fcn.10012f20
call fcn.1000a250
mov edi, eax
test edi, edi
je 0x1002c822
mov ecx, dword [edi]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x1006e578]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x28]
push 0
push 0x10093cf4
call fcn.10011800
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x1002c662
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x1002c662
lea eax, [ebp - 0x20]
mov ecx, ebx
push eax
call fcn.1001cfd0
mov byte [ebp - 4], 8
or ebx, 0xffffffff
mov ecx, dword [ebp - 0x28]
mov eax, ebx
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1002c68f
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1006e578]
mov ecx, edi
call esi
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1002c6b7
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1006e578]
mov ecx, edi
call esi
mov edi, dword [ebp + 8]
mov esi, dword [ebp - 0x1c]
mov bl, byte [ebp - 0xd]
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1002c7d4
call fcn.1001cdb0
cmp byte [eax + 0x1c], bl
je 0x1002c7d4
call fcn.1001cdb0
mov ebx, eax
call fcn.1000a250
mov edi, eax
test edi, edi
je 0x1002c822
mov ecx, dword [edi]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x1006e578]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x20]
push str.Failed_to_open_the_registry_key
call fcn.10012f20
call fcn.1000a250
mov edi, eax
test edi, edi
je 0x1002c822
mov ecx, dword [edi]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x1006e578]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x28]
push 0
push 0x10093cf4
call fcn.10011800
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x1002c776
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x1002c776
lea eax, [ebp - 0x20]
mov ecx, ebx
push eax
call fcn.1001cfd0
mov byte [ebp - 4], 0x12
or ebx, 0xffffffff
mov ecx, dword [ebp - 0x28]
mov eax, ebx
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x1002c7a3
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1006e578]
mov ecx, edi
call esi
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x1002c7cb
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1006e578]
mov ecx, edi
call esi
mov edi, dword [ebp + 8]
mov esi, dword [ebp - 0x1c]
mov bl, byte [ebp - 0xd]
cmp esi, 0x400
jbe 0x1002c7f7
test bl, bl
jne 0x1002c7f7
cmp dword [ebp - 0x3c], 1
jne 0x1002c7f7
push 0x10093d00
push str.DarkTheme
push edi
call dword [sym.imp.msi.dll_MsiSummaryInfoGetPropertyCount]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x24], 0
je 0x1002c80c
lea ecx, [ebp - 0x24]
call fcn.1002aa70
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.10005390
push eax
call fcn.1002bae0
int3