Function at 0x40a4b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51694b
mov eax, dword fs:[0]
push eax
sub esp, 0xc48
mov eax, dword [0x5749c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x555], 0
je 0x40a72e
push str.CxUtilSvc
call fcn.00404ce0
add esp, 4
cmp eax, 1
jne 0x40a89f
mov eax, dword [esi + 0x48]
push eax
lea ecx, [ebp - 0xc44]
call fcn.00401f70
mov edx, dword [str.SOFTWAREConexantSA3]
xor eax, eax
mov dword [ebp - 4], eax
cmp edx, eax
je 0x40a535
mov eax, edx
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a526
sub eax, ebx
sar eax, 1
push eax
push edx
lea ecx, [esi + 0x558]
call fcn.004019a0
mov eax, dword [esi + 0x55c]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x40a6df
push str.FLOW
push eax
call fcn.0050045f
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 8
test eax, eax
jne 0x40a63e
mov eax, dword [ebp - 0xc44]
cmp dword [eax - 0xc], 0
jl 0x40a63e
push str._ControlPanel
push eax
call fcn.004ffee7
add esp, 8
test eax, eax
je 0x40a63e
sub eax, dword [ebp - 0xc44]
sar eax, 1
cmp eax, 0xffffffff
je 0x40a63e
mov ecx, dword [str.SOFTWAREConexantSA3]
push ecx
lea ecx, [esi + 0x558]
call fcn.00401c20
push 0x526a5c
lea ecx, [esi + 0x558]
call fcn.00409d90
mov eax, dword [esi + 0x558]
lea edx, [ebp - 0xc50]
push edx
push 0x20119
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x40a63e
mov edx, dword [ebp - 0xc50]
lea eax, [ebp - 0xc4c]
push eax
lea ecx, [ebp - 0x628]
push ecx
push 0
push 0
push str.CplExeFile
push edx
mov dword [ebp - 0xc4c], 0x30c
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40a63e
mov eax, dword [esi + 0x48]
push ecx
mov ecx, esp
mov dword [ebp - 0xc48], esp
push eax
call fcn.00401f70
push 0
push 0
mov ecx, esi
call fcn.00409e00
mov dword [esi + 0x48], 0x5254dc
mov ecx, dword [str.SOFTWAREConexantSA3]
push ecx
lea ecx, [esi + 0x558]
call fcn.00401c20
push 0x526a58
lea ecx, [esi + 0x558]
call fcn.00409d90
mov eax, dword [esi + 0x55c]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esi + 0x558]
call fcn.00404110
mov eax, dword [esi + 0x558]
lea edx, [ebp - 0xc50]
push edx
push 0x20119
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x40a6c8
mov edx, dword [ebp - 0xc50]
lea eax, [ebp - 0xc4c]
push eax
lea ecx, [ebp - 0x628]
push ecx
push 0
push 0
push str.CplExeFile
push edx
mov dword [ebp - 0xc4c], 0x30c
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40a6df
mov eax, dword [esi + 0x55c]
push eax
push str.Conexant
lea ecx, [esi + 0x558]
call fcn.00403b40
mov eax, dword [esi + 0x48]
push ecx
mov ecx, esp
mov dword [ebp - 0xc48], esp
push eax
call fcn.00401f70
push 0
push 0
mov ecx, esi
call fcn.00409e00
mov eax, dword [ebp - 0xc44]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a89f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40a89f
mov ecx, dword [esi + 0x55c]
cmp dword [ecx - 0xc], 0
je 0x40a7ef
push 1
push 0x526a58
lea ecx, [esi + 0x558]
call fcn.00404110
mov eax, dword [esi + 0x55c]
mov edx, dword [eax - 0xc]
push edx
push eax
lea ecx, [esi + 0x558]
call fcn.00404110
mov eax, dword [esi + 0x558]
lea ecx, [ebp - 0xc48]
push ecx
push 0x20119
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a7bc
mov ecx, dword [ebp - 0xc48]
lea edx, [ebp - 0xc54]
push edx
lea eax, [ebp - 0xc40]
push eax
push 0
push 0
push str.CplExeFile
push ecx
mov dword [ebp - 0xc54], 0x30c
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x40a7d3
mov edx, dword [esi + 0x55c]
push edx
push str.Conexant
lea ecx, [esi + 0x558]
call fcn.00403b40
push ecx
mov ecx, esp
mov dword [ebp - 0xc44], esp
push 0x526a42
call fcn.004043b0
push 0
push 0
jmp 0x40a898
cmp byte [esi + 0x549], 0
je 0x40a81a
push ecx
mov ecx, esp
mov dword [ebp - 0xc44], esp
push 0x526a42
call fcn.004043b0
movzx eax, byte [esi + 0x553]
push eax
push 4
jmp 0x40a898
cmp byte [ebp + 8], 0
jne 0x40a87b
cmp byte [esi + 0x548], 0
je 0x40a848
push ecx
mov ecx, esp
mov dword [ebp - 0xc44], esp
push 0x526a42
call fcn.004043b0
movzx edx, byte [esi + 0x553]
push edx
push 3
jmp 0x40a898
cmp byte [esi + 0x554], 0
je 0x40a87b
mov ecx, esi
call fcn.00404ef0
test al, al
je 0x40a89f
push ecx
mov ecx, esp
mov dword [ebp - 0xc44], esp
push 0x526a42
call fcn.004043b0
movzx eax, byte [esi + 0x553]
push eax
push 2
jmp 0x40a898
push ecx
mov ecx, esp
mov dword [ebp - 0xc44], esp
push 0x526a42
call fcn.004043b0
movzx ecx, byte [esi + 0x553]
push ecx
push 1
mov ecx, esi
call fcn.00409e00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ffd80
mov esp, ebp
pop ebp
ret 4