Function at 0x100325c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100769af
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x100c0040]
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.10032180
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.10032cd0
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 [0x1007d584]
call esi
test eax, eax
js 0x1003297c
and edi, 0xfffffffd
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 1
cmp dword [ebp - 0x1c], 0
je 0x1003266f
lea ecx, [ebp - 0x1c]
call fcn.10030bc0
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 0x1003281e
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 0x1003270a
cmp dword [ebp - 0x34], 4
jne 0x10032810
cmp dword [ebp - 0x38], eax
je 0x10032810
push dword [ebp - 0x2c]
mov bl, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10032924
call fcn.100218f0
cmp byte [eax + 0x1c], bl
je 0x10032810
call fcn.100218f0
mov ebx, eax
call fcn.1000a960
mov edi, eax
test edi, edi
je 0x10032972
mov ecx, dword [edi]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x1007d584]
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.10016170
call fcn.1000a960
mov edi, eax
test edi, edi
je 0x10032972
mov ecx, dword [edi]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x1007d584]
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 0x100a416c
call fcn.10014a40
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x100327b2
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x100327b2
lea eax, [ebp - 0x20]
mov ecx, ebx
push eax
call fcn.10021b10
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 0x100327df
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1007d584]
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 0x10032807
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1007d584]
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 0x10032924
call fcn.100218f0
cmp byte [eax + 0x1c], bl
je 0x10032924
call fcn.100218f0
mov ebx, eax
call fcn.1000a960
mov edi, eax
test edi, edi
je 0x10032972
mov ecx, dword [edi]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x1007d584]
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.10016170
call fcn.1000a960
mov edi, eax
test edi, edi
je 0x10032972
mov ecx, dword [edi]
mov esi, dword [ecx + 0xc]
mov ecx, esi
call dword [0x1007d584]
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 0x100a416c
call fcn.10014a40
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x100328c6
push str.AiEmbeddedDirectCall
push eax
call dword [sym.imp.msi.dll_MsiGetComponentStateW]
cmp eax, 1
je 0x100328c6
lea eax, [ebp - 0x20]
mov ecx, ebx
push eax
call fcn.10021b10
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 0x100328f3
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1007d584]
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 0x1003291b
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x1007d584]
mov ecx, edi
call esi
mov edi, dword [ebp + 8]
mov esi, dword [ebp - 0x1c]
mov bl, byte [ebp - 0xd]
cmp esi, 0x400
jbe 0x10032947
test bl, bl
jne 0x10032947
cmp dword [ebp - 0x3c], 1
jne 0x10032947
push 0x100a4178
push str.DarkTheme
push edi
call dword [sym.imp.msi.dll_MsiSummaryInfoGetPropertyCount]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x24], 0
je 0x1003295c
lea ecx, [ebp - 0x24]
call fcn.10030bc0
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.10031c30
int3