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

Disassembly:
mov rax, rsp
mov dword [rax + 0x10], edx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0xa0
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov qword [rax + 8], rbx
lea rcx, [rax - 0x38]
mov rax, qword [0x14018ba38]
mov qword [rcx], rax
mov rax, qword [0x14018ba40]
mov qword [rcx + 8], rax
xor r13d, r13d
cmp qword [0x140206e20], r13
jne 0x14007424e
mov r12d, r13d
jmp 0x140074277
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0xd8]
mov edx, 0x37
lea r8d, [rdx - 0x36]
lea rcx, [rsp + 0x90]
call fcn.140086370
mov r12d, eax
call fcn.14012a060
mov rdx, rax
mov ecx, r13d
test rax, rax
setne cl
test ecx, ecx
jne 0x140074297
mov ecx, 0x80004005
call fcn.140002cb0
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 0x1400742e3
movzx ebx, dx
mov ecx, ebx
call fcn.140138f84
test rax, rax
je 0x140074304
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140004c30
mov rdi, qword [rsp + 0x50]
jmp 0x140074304
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.140003210
mov rdi, qword [rsp + 0x50]
mov qword [rsp + 0x68], r13
lea rax, [rsp + 0x68]
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 0x14007433c
mov rbx, qword [rsp + 0x68]
mov qword [rsp + 0x78], rbx
jmp 0x140074392
mov qword [rsp + 0x70], r13
lea rax, [rsp + 0x84]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140074523
mov rbx, qword [rsp + 0x70]
mov qword [rsp + 0x78], rbx
mov dword [rsp + 0xe0], r13d
lea rax, str.AsusGPIOHigh
lea rbp, str.AsusGPIOLow
cmp dword [rsp + 0xd8], 0
cmovne rbp, rax
call fcn.14012a060
mov rdx, rax
mov ecx, r13d
test rax, rax
setne cl
test ecx, ecx
jne 0x1400743d4
mov ecx, 0x80004005
call fcn.140002cb0
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
lea rdi, [rax + 0x18]
mov qword [rsp + 0x58], rdi
test rbp, rbp
je 0x14007442e
test rbp, 0xffffffffffff0000
jne 0x14007441a
movzx ebp, bp
mov ecx, ebp
call fcn.140138f84
test rax, rax
je 0x140074446
mov r8d, ebp
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.140004c30
mov rdi, qword [rsp + 0x58]
jmp 0x140074446
xor eax, eax
mov rcx, rsi
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
jmp 0x140074431
mov ecx, r13d
mov r8d, ecx
mov rdx, rbp
lea rcx, [rsp + 0x58]
call fcn.140003210
mov rdi, qword [rsp + 0x58]
mov dword [rsp + 0xe8], 4
lea rax, [rsp + 0xe8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x80]
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r11d, dword [rsp + 0xe0]
add r11d, 1
mov eax, 0x51eb851f
mul r11d
shr edx, 5
imul edx, edx, 0x64
sub r11d, edx
mov dword [rsp + 0xe0], 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
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 0x1400744ef
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140074500
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 0x14007451e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r12d
jmp 0x14007453e
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], esi
add esi, 0xffffffff
test esi, esi
jg 0x14007453c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
mov rbx, qword [rsp + 0xd0]
add rsp, 0xa0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret