Function at 0x140120c10
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov r11, rsp
push rsi
push rdi
push r12
sub rsp, 0x120
mov qword [rsp + 0xe0], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov rax, qword [0x140210348]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov edi, ecx
xor r12d, r12d
mov dword [r11 - 0xa4], r12d
mov dword [r11 - 0xa8], r12d
mov dword [r11 - 0x98], r12d
xor edx, edx
lea r8d, [r12 + 0x28]
lea rcx, [r11 - 0x94]
call fcn.140160e90
mov dword [rsp + 0xa4], r12d
mov dword [rsp + 0xa8], r12d
mov dword [rsp + 0xac], r12d
mov dword [rsp + 0xb0], r12d
mov dword [rsp + 0xb4], r12d
mov dword [rsp + 0xb8], r12d
mov dword [rsp + 0xbc], r12d
mov dword [rsp + 0xc0], r12d
mov dword [rsp + 0xc4], r12d
mov dword [rsp + 0xc8], r12d
lea rdx, [rsp + 0x100]
lea rcx, str.atkexCom.axdata
call qword [sym.imp.ole32.dll_CLSIDFromProgID]
test eax, eax
js 0x140120d3f
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [0x14019c1a0]
xor edx, edx
lea r8d, [r12 + 4]
lea rcx, [rsp + 0x100]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140120d3f
mov qword [rsp + 0x20], r12
lea r9, str.iAcpiInit
mov r8, qword [rsp + 0x78]
lea rdx, [rsp + 0xe8]
lea ecx, [r12 + 1]
call fcn.140056ba0
mov rcx, qword [rsp + 0x78]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov dword [rsp + 0x90], 1
jmp 0x140120d4e
cmp dword [rsp + 0x90], 0
jne 0x140120d4e
mov ebp, r12d
jmp 0x140120d7a
mov r8d, r12d
test edi, edi
sete r8b
mov edx, 0x1306a00c
mov r9d, 1
lea rcx, [rsp + 0x90]
call fcn.140056fe0
and al, 1
mov ebp, r12d
cmp al, 1
sete bpl
call fcn.14013d07c
mov rdx, rax
mov ecx, r12d
test rax, rax
setne cl
test ecx, ecx
jne 0x140120d9a
mov ecx, 0x80004005
call fcn.140001c00
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x58], rdi
lea rdx, str.SOFTWARERealtekAudioGUI_INFORMATION
or rsi, 0xffffffffffffffff
test rdx, 0xffffffffffff0000
jne 0x140120de6
movzx ebx, dx
mov ecx, ebx
call fcn.14013d654
test rax, rax
je 0x140120e07
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.1400020e0
mov rdi, qword [rsp + 0x58]
jmp 0x140120e07
xor eax, eax
mov rcx, rsi
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [rsp + 0x58]
call fcn.140002390
mov rdi, qword [rsp + 0x58]
mov qword [rsp + 0x80], r12
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, rdi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140120e4b
mov rbx, qword [rsp + 0x80]
mov qword [rsp + 0xd0], rbx
jmp 0x140120ead
mov qword [rsp + 0x88], r12
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x88]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140120fb2
mov rbx, qword [rsp + 0x88]
mov qword [rsp + 0xd0], rbx
mov dword [rsp + 0x50], r12d
mov dword [rsp + 0x70], 4
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xdc]
xor r8d, r8d
lea rdx, str.AsusDepopCount
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r11d, dword [rsp + 0x50]
add r11d, 1
mov eax, 0x51eb851f
mul r11d
shr edx, 5
imul edx, edx, 0x64
sub r11d, edx
mov dword [rsp + 0x50], r11d
mov dword [rsp + 0x60], r11d
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.AsusDepopCount
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x68], ebp
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.AsusSetDePopSetItem
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
test rbx, rbx
je 0x140120f77
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], esi
add esi, 0xffffffff
test esi, esi
jg 0x140120f91
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
cmp dword [rsp + 0x94], 0
je 0x140120feb
lea rdx, str.70714792_4D69_4785_8BF0_2572169B3F32
mov rcx, qword [rsp + 0x98]
call qword [sym.RtkNGUI64.exe_int____cdecl___struct_HWND______ptr64__wchar_t_const____ptr64____ptr64_AsSysSvr_UnregisterNotify]
jmp 0x140120feb
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], esi
add esi, 0xffffffff
test esi, esi
jg 0x140120fcc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
cmp dword [rsp + 0x94], 0
je 0x140120feb
lea rdx, str.70714792_4D69_4785_8BF0_2572169B3F32
mov rcx, qword [rsp + 0x98]
call qword [sym.RtkNGUI64.exe_int____cdecl___struct_HWND______ptr64__wchar_t_const____ptr64____ptr64_AsSysSvr_UnregisterNotify]
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.14015d000
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret