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

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov qword [rbp - 1], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1402f2080]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rcx
xor esi, esi
mov dword [rbp - 9], esi
mov edi, dword [rcx + 0x38]
mov qword [rbp + 0x1f], rsi
call fcn.140015450
mov rcx, rax
test rax, rax
je 0x14010670a
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp + 0x1f], rax
mov dword [rbp - 9], 1
mov r9d, edi
lea r8, str.SOFTWARERealtekAudioGUI_INFORMATIONJackInfomation
lea rdx, str._sJack_d
lea rcx, [rbp + 0x1f]
call fcn.140021720
mov dword [rbp + 0x17], esi
mov qword [rbp + 7], rsi
lea rax, [rbp + 7]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rbp + 0x1f]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov rcx, qword [rbp + 7]
test rcx, rcx
je 0x1401065aa
mov dword [rbp + 0x27], 4
lea rax, [rbp + 0x27]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x17]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x3f]
xor r8d, r8d
lea rdx, str.JackStatusChangedWhenPowerDown
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov rcx, qword [rbp + 7]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, dword [rbp + 0x17]
mov dword [rbx + 0x44], eax
mov edi, 0xffffffff
mov rcx, rbx
cmp eax, 1
jne 0x1401066ab
call fcn.140109120
mov ebx, dword [rbx + 0x38]
mov qword [rbp + 0x37], rsi
call fcn.140015450
mov rcx, rax
test rax, rax
je 0x1401066ff
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp + 0x37], rax
mov dword [rbp - 9], 3
mov r9d, ebx
lea r8, str.SOFTWARERealtekAudioGUI_INFORMATIONJackInfomation
lea rdx, str._sJack_d
lea rcx, [rbp + 0x37]
call fcn.140021720
mov dword [rbp + 0x2f], esi
mov qword [rbp + 0xf], rsi
lea rax, [rbp + 0x43]
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0xf]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov rbx, qword [rbp + 0x37]
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
mov rcx, qword [rbp + 0xf]
test rcx, rcx
je 0x140106689
mov dword [rsp + 0x28], 4
lea rax, [rbp + 0x2f]
mov qword [rsp + 0x20], rax
lea r9d, [rdi + 5]
xor r8d, r8d
lea rdx, str.JackStatusChangedWhenPowerDown
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov rcx, qword [rbp + 0xf]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov dword [rbp - 9], 1
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1401066bf
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x1401066bf
xor edx, edx
call fcn.140107c00
test eax, eax
je 0x1401066bf
mov rcx, rbx
call fcn.140109120
nop
mov rdx, qword [rbp + 0x1f]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x1401066da
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140146480
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov ecx, 0x80004005
call fcn.1400151f0
nop
mov ecx, 0x80004005
call fcn.1400151f0
int3