Function at 0x1002c3e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100677bf
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.1002bfa0
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.1002caf0
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 0x1002c79c
and edi, 0xfffffffd
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 1
cmp dword [ebp - 0x1c], 0
je 0x1002c48f
lea ecx, [ebp - 0x1c]
call fcn.1002a9e0
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 0x1002c63e
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 0x1002c52a
cmp dword [ebp - 0x34], 4
jne 0x1002c630
cmp dword [ebp - 0x38], eax
je 0x1002c630
push dword [ebp - 0x2c]
mov bl, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1002c744
call fcn.1001cd60
cmp byte [eax + 0x1c], bl
je 0x1002c630
call fcn.1001cd60
mov ebx, eax
call fcn.1000a220
mov edi, eax
test edi, edi
je 0x1002c792
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.10012f10
call fcn.1000a220
mov edi, eax
test edi, edi
je 0x1002c792
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.100117e0
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x1002c5d2
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x1002c5d2
lea eax, [ebp - 0x20]
mov ecx, ebx
push eax
call fcn.1001cf80
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 0x1002c5ff
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 0x1002c627
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 0x1002c744
call fcn.1001cd60
cmp byte [eax + 0x1c], bl
je 0x1002c744
call fcn.1001cd60
mov ebx, eax
call fcn.1000a220
mov edi, eax
test edi, edi
je 0x1002c792
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.10012f10
call fcn.1000a220
mov edi, eax
test edi, edi
je 0x1002c792
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.100117e0
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x1002c6e6
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x1002c6e6
lea eax, [ebp - 0x20]
mov ecx, ebx
push eax
call fcn.1001cf80
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 0x1002c713
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 0x1002c73b
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 0x1002c767
test bl, bl
jne 0x1002c767
cmp dword [ebp - 0x3c], 1
jne 0x1002c767
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 0x1002c77c
lea ecx, [ebp - 0x24]
call fcn.1002a9e0
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.1002ba50
int3