Function at 0x140039630
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x140178010]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
mov qword [rbp - 0x40], rcx
lea rax, vtable.CCustomizeGigabyte.1.0
mov qword [rcx], rax
lea rax, vtable.CCustomizeGigabyte.0
mov qword [rcx + 8], rax
xor r12d, r12d
mov qword [rcx + 0x10], r12
cmp dword [0x1401784a0], r12d
je 0x1400398cb
call fcn.14000bb10
test dword [rax + 0xc0], 0x200
je 0x1400398cb
mov esi, 0x3e7
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x30], r12
mov dword [rbp - 0x28], r12d
mov qword [rbp - 0x20], r12
mov dword [rbp - 0x38], r12d
mov r15d, 1
mov r9d, r15d
lea r8, str.SOFTWARESAVITECHSVLoadSenseGIGABYTEJDSenseJackPlug
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x30]
call fcn.14002b400
test eax, eax
je 0x140039705
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 - 0x30]
test rcx, rcx
je 0x140039754
jmp 0x14003974e
mov dword [rbp - 0x18], 4
lea rax, [rbp - 0x18]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x14]
xor r8d, r8d
lea rdx, str.JackImpedance
mov rbx, qword [rbp - 0x30]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140039746
cmp dword [rbp - 0x14], 4
jne 0x140039746
mov esi, dword [rbp - 0x38]
test rbx, rbx
je 0x140039754
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 0x1400397a7
cmp dword [0x140180270], 0
je 0x1400397a7
cmp dword [0x140180274], 0
jne 0x14003978e
mov rax, qword [0x140179638]
test byte [rax + 0x1c], 1
je 0x1400397a7
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 0x140039857
call fcn.14000bd10
call fcn.14000bd10
mov rcx, qword [rbx + 0x10]
mov rbx, qword [rbx]
test rcx, rcx
je 0x1400397b3
cmp dword [rcx + 0x1ac], 1
jne 0x1400397b3
lea rbx, [rcx + 0x10]
mov dword [rbp - 0x38], r12d
xor r9d, r9d
lea r8, [rbp - 0x38]
lea rdx, [0x1400fdc60]
mov rcx, rbx
call fcn.140002b90
test eax, eax
je 0x140039802
cmp dword [rbp - 0x38], esi
je 0x14003983e
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], rax
mov eax, SafeArrayUnaccessData
mov word [rbp - 0x30], ax
mov dword [rbp - 0x28], esi
xor r9d, r9d
lea r8, [rbp - 0x30]
lea rdx, [0x1400fdc60]
mov rcx, rbx
call fcn.140003b20
mov r15d, eax
lea rcx, [rbp - 0x30]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_PropVariantClear]
mov r9d, esi
mov r8d, r15d
lea rdx, str.CCustomizeGigabyte::CCustomizeGigabyte
lea rcx, str._s_bSuccess_d_dwHpMode_d
call fcn.14006dd20
call fcn.14000bd10
mov rcx, rax
call fcn.1400a1ae0
call fcn.140006ac0
mov rcx, rax
lea r8, str.SOFTWARESAVITECHSVLoadSenseGIGABYTEJDSenseJackPlug
mov rdx, 0xffffffff80000002
call fcn.1400a58d0
mov qword [rdi + 0x10], rax
test rax, rax
je 0x1400398aa
lea rdx, str.JackImpedance
mov rcx, rax
call fcn.1400a4f50
mov rcx, qword [rdi + 0x10]
add rcx, 0x20
lea rdx, [rdi + 8]
call fcn.140006b90
jmp 0x1400398cb
lea r9, str.SOFTWARESAVITECHSVLoadSenseGIGABYTEJDSenseJackPlug
mov r8d, 0x30
lea rdx, str.CCustomizeGigabyte::CCustomizeGigabyte
lea rcx, str._s__d___RegKeyNotify_fail__path___s
call fcn.14006dd20
nop
mov rax, rdi
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400df340
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret