Function at 0x10030890
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x100e57c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ecx, str.SOFTWAREDolbyDolby_Control_Center
push esi
mov esi, dword [0x100da014]
shr ecx, 0x10
push edi
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x210], esi
test ecx, ecx
jne 0x100309b7
mov edx, str.SOFTWAREDolbyDolby_Control_Center
movzx eax, dx
push eax
lea ecx, [ebp - 0x210]
call fcn.100018e0
mov esi, dword [ebp - 0x210]
mov ebx, dword [0x100da014]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea edx, [ebp - 0x214]
push edx
push 1
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x21c], 0x104
call edi
test eax, eax
je 0x10030a08
lea eax, [ebp - 0x214]
push eax
push 0x101
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
je 0x10030a08
mov edx, dword [ebp - 0x218]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
xor ecx, ecx
lea eax, [ebx - 0xc]
mov word [edx], cx
cmp eax, dword [0x100da010]
je 0x10030979
add ebx, 0xfffffff4
push ebx
call edi
test eax, eax
jg 0x10030979
push ebx
call fcn.1004b641
add esp, 4
lea ecx, [esi - 0xc]
cmp ecx, dword [0x100da010]
je 0x10030997
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x10030997
push esi
call fcn.1004b641
add esp, 4
mov eax, dword [ebp - 0x220]
lea edx, [eax - 0xc]
cmp edx, dword [0x100da010]
je 0x10030ae1
lea esi, [eax - 0xc]
push esi
call edi
jmp 0x10030ad4
push str.SOFTWAREDolbyDolby_Control_Center
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
test edi, edi
je 0x100308f5
push edi
lea ecx, [ebp - 0x210]
call fcn.100010e0
test eax, eax
je 0x100308ef
lea eax, [edi + edi]
lea ecx, [eax + 2]
cmp ecx, eax
jb 0x100308ef
mov esi, dword [ebp - 0x210]
push eax
push str.SOFTWAREDolbyDolby_Control_Center
push esi
call fcn.1004b2e0
add esp, 0xc
jmp 0x100308f5
push str.InstallPath
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push str.InstallPath
push eax
lea ecx, [ebp - 0x210]
call fcn.100013d0
mov edi, dword [ebp - 0x210]
mov edx, dword [ebp - 0x214]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push 0
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10030a5b
xor ebx, ebx
cmp dword [ebp - 0x21c], ebx
setne bl
jmp 0x10030a61
mov ebx, dword [ebp - 0x224]
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x218]
neg ebx
sbb ebx, ebx
mov word [ecx], bx
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [edi - 0xc]
cmp edx, dword [0x100da010]
je 0x10030a9f
add edi, 0xfffffff4
push edi
call ebx
test eax, eax
jg 0x10030a9f
push edi
call fcn.1004b641
add esp, 4
lea eax, [esi - 0xc]
cmp eax, dword [0x100da010]
je 0x10030abd
add esi, 0xfffffff4
push esi
call ebx
test eax, eax
jg 0x10030abd
push esi
call fcn.1004b641
add esp, 4
mov eax, dword [ebp - 0x220]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x100da010]
je 0x10030ae1
lea esi, [eax - 0xc]
push esi
call ebx
test eax, eax
jg 0x10030ae1
push esi
call fcn.1004b641
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.1004bb49
mov esp, ebp
pop ebp
ret 8