Function at 0x4a8820
Capabilities:
Get number of processors
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f0a48
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x536ed4]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
lea ebx, [esp + 0x24]
mov dword [esp + 0x68], eax
call fcn.0043ab30
xor edi, edi
cmp dword [esp + 0x24], edi
jne 0x4a88c3
xor ebx, ebx
jmp 0x4a88e3
xor eax, eax
cmp dword [ebp + 8], edi
sete al
push eax
push 0x1306a00c
call fcn.0043ac80
and al, 1
sub al, 1
neg al
sbb eax, eax
add eax, 1
mov ebx, eax
push str.SOFTWARERealtekAudioGUI_INFORMATION
lea ecx, [esp + 0x18]
call fcn.00401b10
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
push 0x2001f
push edi
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x4a8975
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
push eax
push edi
push 0x2001f
push edi
push edi
push edi
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x40], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
je 0x4a8975
mov byte [esp + 0x68], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4a8964
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x68], 0xffffffff
cmp dword [esp + 0x28], edi
jmp 0x4a8a25
mov esi, dword [esp + 0x1c]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x28]
push ecx
push edi
push str.AsusDepopCount
push esi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp + 0x18]
xor edx, edx
add eax, 1
mov ecx, 0x64
div ecx
push 4
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edx
lea edx, [esp + 0x20]
push edx
push 4
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push str.AsusDepopCount
push esi
call edi
push 4
lea eax, [esp + 0x20]
push eax
push 4
push 0
push str.AsusSetDePopSetItem
push esi
mov dword [esp + 0x34], ebx
call edi
test esi, esi
je 0x4a89f3
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x68], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a8a18
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x68], 0xffffffff
cmp dword [esp + 0x28], 0
je 0x4a8a37
mov ecx, dword [esp + 0x2c]
push str.70714792_4D69_4785_8BF0_2572169B3F32
push ecx
call dword [sym.RtkNGUI.exe_int____stdcall___struct_HWND_____wchar_t_const___AsSysSvr_UnregisterNotify]
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret