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

Disassembly:
mov dword [rsp + 0x10], edx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0xb0
mov qword [rsp + 0x90], 0xfffffffffffffffe
mov qword [rsp + 0xe0], rbx
mov rcx, qword [0x14022c510]
test rcx, rcx
jne 0x140075ff9
xor ebp, ebp
mov r13d, ebp
jmp 0x140076059
xor ebp, ebp
mov dword [rsp + 0xf8], ebp
lea rdx, [rsp + 0xa0]
mov rax, qword [0x1401a8568]
mov qword [rdx], rax
mov rax, qword [0x1401a8570]
mov qword [rdx + 8], rax
lea rax, [rsp + 0xf8]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0xe8]
mov qword [rsp + 0x20], rax
lea r9d, [rbp + 1]
lea r8d, [rbp + 0x37]
lea rdx, [rsp + 0xa0]
call fcn.14008acf0
mov r13d, eax
call fcn.14013e120
mov rdx, rax
mov ecx, ebp
test rax, rax
setne cl
test ecx, ecx
jne 0x140076078
mov ecx, 0x80004005
call fcn.140001c70
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x50], rdi
lea rdx, str.SOFTWARERealtekAudioGUI_INFORMATION
or rsi, 0xffffffffffffffff
test rdx, 0xffffffffffff0000
jne 0x1400760c4
movzx ebx, dx
mov ecx, ebx
call fcn.14014c5c0
test rax, rax
je 0x1400760e5
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140005140
mov rdi, qword [rsp + 0x50]
jmp 0x1400760e5
xor eax, eax
mov rcx, rsi
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [rsp + 0x50]
call fcn.1400038f0
mov rdi, qword [rsp + 0x50]
mov qword [rsp + 0x70], rbp
lea rax, [rsp + 0x70]
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 0x140076120
mov rbx, qword [rsp + 0x70]
mov qword [rsp + 0x80], rbx
jmp 0x140076178
mov qword [rsp + 0x78], rbp
lea rax, [rsp + 0x88]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ebp
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140076300
mov rbx, qword [rsp + 0x78]
mov qword [rsp + 0x80], rbx
mov dword [rsp + 0xf0], ebp
lea rax, str.AsusGPIOHigh
lea r12, str.AsusGPIOLow
cmp dword [rsp + 0xe8], 0
cmovne r12, rax
call fcn.14013e120
mov rdx, rax
mov ecx, ebp
test rax, rax
setne cl
test ecx, ecx
jne 0x1400761b8
mov ecx, 0x80004005
call fcn.140001c70
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x58], rdi
test r12, r12
je 0x140076211
test r12, 0xffffffffffff0000
jne 0x1400761ff
movzx ebp, r12w
mov ecx, ebp
call fcn.14014c5c0
test rax, rax
je 0x140076226
mov r8d, ebp
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.140005140
mov rdi, qword [rsp + 0x58]
jmp 0x140076226
xor eax, eax
mov rcx, rsi
mov rdi, r12
repne scasw ax, word [rdi]
not rcx
lea rbp, [rcx - 1]
mov r8d, ebp
mov rdx, r12
lea rcx, [rsp + 0x58]
call fcn.1400038f0
mov rdi, qword [rsp + 0x58]
mov dword [rsp + 0x60], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x8c]
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r11d, dword [rsp + 0xf0]
add r11d, 1
mov eax, 0x51eb851f
mul r11d
shr edx, 5
imul edx, edx, 0x64
sub r11d, edx
mov dword [rsp + 0xf0], r11d
mov dword [rsp + 0x68], r11d
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rdx, [rdi - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400762c9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x1400762dd
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
add esi, 0xffffffff
test esi, esi
jg 0x1400762fb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r13d
jmp 0x14007631b
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], esi
add esi, 0xffffffff
test esi, esi
jg 0x140076319
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
mov rbx, qword [rsp + 0xe0]
add rsp, 0xb0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret