Function at 0x140039a90
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x140178010]
xor rax, rsp
mov qword [rbp - 8], rax
mov rdi, r8
mov rbx, rdx
cmp dword [0x1401784a0], 0
je 0x140039cd4
call fcn.14000bb10
test dword [rax + 0xc0], 0x200
je 0x140039cd4
lea rdx, str.SOFTWARESAVITECHSVLoadSenseGIGABYTEJDSenseJackPlug
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpW]
test eax, eax
jne 0x140039cd4
lea rdx, str.JackImpedance
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpW]
test eax, eax
jne 0x140039cd4
mov edi, 0x3e7
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
xor r14d, r14d
mov qword [rbp - 0x28], r14
mov dword [rbp - 0x20], r14d
mov qword [rbp - 0x18], r14
mov dword [rbp - 0x30], r14d
mov esi, 1
mov r9d, esi
lea r8, str.SOFTWARESAVITECHSVLoadSenseGIGABYTEJDSenseJackPlug
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x28]
call fcn.14002b400
test eax, eax
je 0x140039b76
lea r9, str.SOFTWARESAVITECHSVLoadSenseGIGABYTEJDSenseJackPlug
mov r8d, eax
lea rdx, str.CRegClient::GetRegUI4Property
lea rcx, str._s_nRet_d_szRegKey_s
call fcn.14006dd20
nop
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x140039bc5
jmp 0x140039bbf
mov dword [rbp - 0x10], 4
lea rax, [rbp - 0x10]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0xc]
xor r8d, r8d
lea rdx, str.JackImpedance
mov rbx, qword [rbp - 0x28]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140039bb7
cmp dword [rbp - 0xc], 4
jne 0x140039bb7
mov edi, dword [rbp - 0x30]
test rbx, rbx
je 0x140039bc5
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
call fcn.14000bd10
mov rcx, rax
call fcn.1400a1a60
call fcn.14000bd10
cmp dword [rax + 0x140], 0
jne 0x140039c18
cmp dword [0x140180270], 0
je 0x140039c18
cmp dword [0x140180274], 0
jne 0x140039bff
mov rax, qword [0x140179638]
test byte [rax + 0x1c], 1
je 0x140039c18
mov r8d, 0x3e
lea rdx, str.CMMPlatform::AudioDevList_GetHeadPosition
lea rcx, str._s__d_please_call_AudioDevList_AddRef_before_AudioDevList_GetHeadPosition
call fcn.14006dd20
call fcn.14000bd10
mov rbx, qword [rax + 0xe0]
test rbx, rbx
je 0x140039cc7
call fcn.14000bd10
call fcn.14000bd10
mov rcx, qword [rbx + 0x10]
mov rbx, qword [rbx]
test rcx, rcx
je 0x140039c24
cmp dword [rcx + 0x1ac], 1
jne 0x140039c24
lea rbx, [rcx + 0x10]
mov dword [rbp - 0x30], r14d
xor r9d, r9d
lea r8, [rbp - 0x30]
lea rdx, [0x1400fdc60]
mov rcx, rbx
call fcn.140002b90
test eax, eax
je 0x140039c73
cmp dword [rbp - 0x30], edi
je 0x140039cae
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], rax
mov eax, SafeArrayUnaccessData
mov word [rbp - 0x28], ax
mov dword [rbp - 0x20], edi
xor r9d, r9d
lea r8, [rbp - 0x28]
lea rdx, [0x1400fdc60]
mov rcx, rbx
call fcn.140003b20
mov esi, eax
lea rcx, [rbp - 0x28]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_PropVariantClear]
mov r9d, edi
mov r8d, esi
lea rdx, str.CCustomizeGigabyte::OnRegKeyChanged
lea rcx, str._s_bSuccess_d_dwHpMode_d
call fcn.14006dd20
call fcn.14000bd10
mov rcx, rax
call fcn.1400a1ae0
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400df340
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret